@bluxcc/core 0.1.0

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.
Files changed (98) hide show
  1. package/dist/assets/Icons.d.ts +98 -0
  2. package/dist/assets/Logos.d.ts +24 -0
  3. package/dist/assets/bluxLogo.d.ts +8 -0
  4. package/dist/components/Alert/index.d.ts +9 -0
  5. package/dist/components/AssetsList/index.d.ts +6 -0
  6. package/dist/components/Button/index.d.ts +17 -0
  7. package/dist/components/CardItem/index.d.ts +16 -0
  8. package/dist/components/Divider/index.d.ts +2 -0
  9. package/dist/components/Header/index.d.ts +10 -0
  10. package/dist/components/Input/OTPInput.d.ts +8 -0
  11. package/dist/components/Input/index.d.ts +18 -0
  12. package/dist/components/Modal/Backdrop/index.d.ts +7 -0
  13. package/dist/components/Modal/index.d.ts +11 -0
  14. package/dist/components/Provider.d.ts +1 -0
  15. package/dist/components/QRCode/index.d.ts +10 -0
  16. package/dist/components/TabBox/index.d.ts +12 -0
  17. package/dist/components/Transaction/History/index.d.ts +12 -0
  18. package/dist/components/Transaction/Summary/index.d.ts +10 -0
  19. package/dist/constants/consts.d.ts +2 -0
  20. package/dist/constants/explorers.d.ts +9 -0
  21. package/dist/constants/locales.d.ts +9 -0
  22. package/dist/constants/networkDetails.d.ts +14 -0
  23. package/dist/constants/routes.d.ts +9 -0
  24. package/dist/constants/themes.d.ts +3 -0
  25. package/dist/enums.d.ts +33 -0
  26. package/dist/exports/blux.d.ts +15 -0
  27. package/dist/exports/core/callBuilder.d.ts +59 -0
  28. package/dist/exports/core/getAccount.d.ts +8 -0
  29. package/dist/exports/core/getAccounts.d.ts +15 -0
  30. package/dist/exports/core/getAssets.d.ts +13 -0
  31. package/dist/exports/core/getBalances.d.ts +8 -0
  32. package/dist/exports/core/getClaimableBalances.d.ts +14 -0
  33. package/dist/exports/core/getEffects.d.ts +16 -0
  34. package/dist/exports/core/getLedgers.d.ts +12 -0
  35. package/dist/exports/core/getLiquidityPools.d.ts +13 -0
  36. package/dist/exports/core/getNetwork.d.ts +2 -0
  37. package/dist/exports/core/getOffers.d.ts +16 -0
  38. package/dist/exports/core/getOperations.d.ts +17 -0
  39. package/dist/exports/core/getOrderbook.d.ts +9 -0
  40. package/dist/exports/core/getPayments.d.ts +12 -0
  41. package/dist/exports/core/getStrictReceivePaths.d.ts +9 -0
  42. package/dist/exports/core/getStrictSendPaths.d.ts +9 -0
  43. package/dist/exports/core/getTradeAggregation.d.ts +5 -0
  44. package/dist/exports/core/getTrades.d.ts +16 -0
  45. package/dist/exports/core/getTransactions.d.ts +16 -0
  46. package/dist/exports/core/index.d.ts +131 -0
  47. package/dist/exports/core/networks.d.ts +9 -0
  48. package/dist/exports/core/switchNetwork.d.ts +2 -0
  49. package/dist/exports/index.d.ts +144 -0
  50. package/dist/exports/utils.d.ts +14 -0
  51. package/dist/hooks/useBalances.d.ts +8 -0
  52. package/dist/hooks/useDynamicHeight.d.ts +4 -0
  53. package/dist/hooks/useIsMobile.d.ts +1 -0
  54. package/dist/hooks/useLang.d.ts +2 -0
  55. package/dist/hooks/useModalAnimation.d.ts +7 -0
  56. package/dist/hooks/useTransactions.d.ts +11 -0
  57. package/dist/hooks/useUpdateAccount.d.ts +2 -0
  58. package/dist/index.cjs.js +6 -0
  59. package/dist/index.d.ts +149 -0
  60. package/dist/index.esm.js +6 -0
  61. package/dist/index.iife.js +6 -0
  62. package/dist/pages/About/index.d.ts +2 -0
  63. package/dist/pages/Onboarding/OTP/index.d.ts +2 -0
  64. package/dist/pages/Onboarding/index.d.ts +2 -0
  65. package/dist/pages/Profile/Activity/index.d.ts +2 -0
  66. package/dist/pages/Profile/Balances/AddToken/index.d.ts +2 -0
  67. package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +2 -0
  68. package/dist/pages/Profile/Balances/index.d.ts +2 -0
  69. package/dist/pages/Profile/Receive/index.d.ts +2 -0
  70. package/dist/pages/Profile/SelectAsset/index.d.ts +9 -0
  71. package/dist/pages/Profile/Send/SendForm.d.ts +2 -0
  72. package/dist/pages/Profile/Send/index.d.ts +2 -0
  73. package/dist/pages/Profile/Swap/AssetBox/index.d.ts +4 -0
  74. package/dist/pages/Profile/Swap/index.d.ts +2 -0
  75. package/dist/pages/Profile/index.d.ts +2 -0
  76. package/dist/pages/SendTransaction/index.d.ts +2 -0
  77. package/dist/pages/SignMessage/index.d.ts +2 -0
  78. package/dist/pages/Successful/index.d.ts +2 -0
  79. package/dist/pages/Waiting/index.d.ts +2 -0
  80. package/dist/pages/WrongNetwork/index.d.ts +2 -0
  81. package/dist/stellar/getTransactionDetails.d.ts +8 -0
  82. package/dist/stellar/handleTransactionSigning.d.ts +5 -0
  83. package/dist/stellar/paymentTransaction.d.ts +4 -0
  84. package/dist/stellar/signTransaction.d.ts +3 -0
  85. package/dist/stellar/submitTransaction.d.ts +7 -0
  86. package/dist/store.d.ts +72 -0
  87. package/dist/types.d.ts +109 -0
  88. package/dist/utils/animatedGradient.d.ts +18 -0
  89. package/dist/utils/helpers.d.ts +31 -0
  90. package/dist/utils/walletLogos.d.ts +2 -0
  91. package/dist/wallets/albedo.d.ts +2 -0
  92. package/dist/wallets/freighter.d.ts +2 -0
  93. package/dist/wallets/hana.d.ts +2 -0
  94. package/dist/wallets/index.d.ts +3 -0
  95. package/dist/wallets/lobstr.d.ts +2 -0
  96. package/dist/wallets/rabet.d.ts +2 -0
  97. package/dist/wallets/xbull.d.ts +2 -0
  98. package/package.json +61 -0
@@ -0,0 +1,6 @@
1
+ var Blux=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,o={exports:{}},i={exports:{}};function a(){return n||(n=1,e=i,t=i.exports,function(){function n(e,t){Object.defineProperty(o.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}function r(e,t){var n=(e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass")+"."+t;z[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),z[n]=!0)}function o(e,t,n){this.props=e,this.context=t,this.refs=K,this.updater=n||H}function i(){}function a(e,t,n){this.props=e,this.context=t,this.refs=K,this.updater=n||H}function s(e){return""+e}function c(e){try{s(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),s(e)}}function u(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Y?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case R:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case D:return"Suspense";case U:return"SuspenseList";case V:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case P:return"Portal";case L:return(e.displayName||"Context")+".Provider";case N:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:u(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return u(e(t))}catch(e){}}return null}function l(e){if(e===R)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===F)return"<...>";try{var t=u(e);return t?"<"+t+">":"<...>"}catch(e){return"<...>"}}function f(){var e=J.A;return null===e?null:e.getOwner()}function p(){return Error("react-stack-top-frame")}function d(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function h(){var e=u(this.type);return ne[e]||(ne[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function y(e,t,n,r,o,i,a,s){return n=i.ref,e={$$typeof:O,type:e,key:t,props:i,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:h}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function m(e){return"object"==typeof e&&null!==e&&e.$$typeof===O}function g(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(c(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function b(){}function v(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a,s,u,l=!1;if(null===e)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case O:case P:l=!0;break;case F:return v((l=e._init)(e._payload),t,n,r,o)}}if(l){o=o(l=e);var f=""===r?"."+g(l,0):r;return Z(o)?(n="",null!=f&&(n=f.replace(ae,"$&/")+"/"),v(o,t,n,"",function(e){return e})):null!=o&&(m(o)&&(null!=o.key&&(l&&l.key===o.key||c(o.key)),a=o,s=n+(null==o.key||l&&l.key===o.key?"":(""+o.key).replace(ae,"$&/")+"/")+f,s=y(a.type,s,void 0,0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(s._store.validated=a._store.validated),n=s,""!==r&&null!=l&&m(l)&&null==l.key&&l._store&&!l._store.validated&&(n._store.validated=2),o=n),t.push(o)),1}if(l=0,f=""===r?".":r+":",Z(e))for(var p=0;p<e.length;p++)l+=v(r=e[p],t,n,i=f+g(r,p),o);else if("function"==typeof(p=null===(u=e)||"object"!=typeof u?null:"function"==typeof(u=q&&u[q]||u["@@iterator"])?u:null))for(p===e.entries&&(ie||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0),e=p.call(e),p=0;!(r=e.next()).done;)l+=v(r=r.value,t,n,i=f+g(r,p++),o);else if("object"===i){if("function"==typeof e.then)return v(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(b,b):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function w(e,t,n){if(null==e)return e;var r=[],o=0;return v(e,r,"","",function(e){return t.call(n,e,o++)}),r}function S(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return void 0===(t=e._result)&&console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",t),"default"in t||console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t),t.default;throw e._result}function x(){var e=J.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}function k(){}function E(t){if(null===ue)try{var n=("require"+Math.random()).slice(0,7);ue=(e&&e[n]).call(e,"timers").setImmediate}catch(e){ue=function(e){!1===ce&&(ce=!0,"undefined"==typeof MessageChannel&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ue(t)}function T(e){return 1<e.length&&"function"==typeof AggregateError?new AggregateError(e):e[0]}function A(e,t){t!==le-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),le=t}function C(e,t,n){var r=J.actQueue;if(null!==r)if(0!==r.length)try{return _(r),void E(function(){return C(e,t,n)})}catch(e){J.thrownErrors.push(e)}else J.actQueue=null;0<J.thrownErrors.length?(r=T(J.thrownErrors),J.thrownErrors.length=0,n(r)):t(e)}function _(e){if(!pe){pe=!0;var t=0;try{for(;t<e.length;t++)for(var n=e[t];;){J.didUsePromise=!1;var r=n(!1);if(null===r)break;if(J.didUsePromise)return e[t]=n,void e.splice(0,t);n=r}e.length=0}catch(n){e.splice(0,t+1),J.thrownErrors.push(n)}finally{pe=!1}}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var O=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),L=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),q=Symbol.iterator,z={},H={isMounted:function(){return!1},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e){r(e,"replaceState")},enqueueSetState:function(e){r(e,"setState")}},W=Object.assign,K={};Object.freeze(K),o.prototype.isReactComponent={},o.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var $,X={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for($ in X)X.hasOwnProperty($)&&n($,X[$]);i.prototype=o.prototype,(X=a.prototype=new i).constructor=a,W(X,o.prototype),X.isPureReactComponent=!0;var G,Q,Z=Array.isArray,Y=Symbol.for("react.client.reference"),J={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ee=Object.prototype.hasOwnProperty,te=console.createTask?console.createTask:function(){return null},ne={},re=(X={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(X,p)(),oe=te(l(p)),ie=!1,ae=/\/+/g,se="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ce=!1,ue=null,le=0,fe=!1,pe=!1,de="function"==typeof queueMicrotask?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:E;X=Object.freeze({__proto__:null,c:function(e){return x().useMemoCache(e)}}),t.Children={map:w,forEach:function(e,t,n){w(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return w(e,function(){t++}),t},toArray:function(e){return w(e,function(e){return e})||[]},only:function(e){if(!m(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=o,t.Fragment=R,t.Profiler=I,t.PureComponent=a,t.StrictMode=j,t.Suspense=D,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,t.__COMPILER_RUNTIME=X,t.act=function(e){var t=J.actQueue,n=le;le++;var r=J.actQueue=null!==t?t:[],o=!1;try{var i=e()}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length)throw A(0,n),e=T(J.thrownErrors),J.thrownErrors.length=0,e;if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i;return de(function(){o||fe||(fe=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(e,t){o=!0,a.then(function(o){if(A(0,n),0===n){try{_(r),E(function(){return C(o,e,t)})}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length){var i=T(J.thrownErrors);J.thrownErrors.length=0,t(i)}}else e(o)},function(e){A(0,n),0<J.thrownErrors.length?(e=T(J.thrownErrors),J.thrownErrors.length=0,t(e)):t(e)})}}}var s=i;if(A(0,n),0===n&&(_(r),0!==r.length&&de(function(){o||fe||(fe=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),J.actQueue=null),0<J.thrownErrors.length)throw e=T(J.thrownErrors),J.thrownErrors.length=0,e;return{then:function(e,t){o=!0,0===n?(J.actQueue=r,E(function(){return C(s,e,t)})):e(s)}}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.captureOwnerStack=function(){var e=J.getCurrentStack;return null===e?null:e()},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r,o=W({},e.props),i=e.key,a=e._owner;if(null!=t)for(s in(r=!(ee.call(t,"ref")&&(r=Object.getOwnPropertyDescriptor(t,"ref").get)&&r.isReactWarning)&&void 0!==t.ref)&&(a=f()),d(t)&&(c(t.key),i=""+t.key),t)!ee.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(o[s]=t[s]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){r=Array(s);for(var u=0;u<s;u++)r[u]=arguments[u+2];o.children=r}for(o=y(e.type,i,void 0,0,a,o,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)m(a=arguments[i])&&a._store&&(a._store.validated=1);return o},t.createContext=function(e){return(e={$$typeof:L,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:N,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},t.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++){var o=arguments[r];m(o)&&o._store&&(o._store.validated=1)}if(r={},o=null,null!=t)for(u in Q||!("__self"in t)||"key"in t||(Q=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),d(t)&&(c(t.key),o=""+t.key),t)ee.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&(r[u]=t[u]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];Object.freeze&&Object.freeze(a),r.children=a}if(e&&e.defaultProps)for(u in i=e.defaultProps)void 0===r[u]&&(r[u]=i[u]);o&&function(e,t){function n(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(r,"function"==typeof e?e.displayName||e.name||"Unknown":e);var u=1e4>J.recentlyCreatedOwnerStacks++;return y(e,o,void 0,0,f(),r,u?Error("react-stack-top-frame"):re,u?te(l(e)):oe)},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===M?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?console.error("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&null!=e.defaultProps&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var t,n={$$typeof:B,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(Object.defineProperty(e,"name",{value:n}),e.displayName=n)}}),n},t.isValidElement=m,t.lazy=function(e){return{$$typeof:F,_payload:{_status:-1,_result:e},_init:S}},t.memo=function(e,t){var n;return null==e&&console.error("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),t={$$typeof:M,type:e,compare:void 0===t?null:t},Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},t.startTransition=function(e){var t=J.T,n={};J.T=n,n._updatedFibers=new Set;try{var r=e(),o=J.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,se)}catch(e){se(e)}finally{null===t&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),J.T=t}},t.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},t.use=function(e){return x().use(e)},t.useActionState=function(e,t,n){return x().useActionState(e,t,n)},t.useCallback=function(e,t){return x().useCallback(e,t)},t.useContext=function(e){var t=x();return e.$$typeof===N&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),t.useContext(e)},t.useDebugValue=function(e,t){return x().useDebugValue(e,t)},t.useDeferredValue=function(e,t){return x().useDeferredValue(e,t)},t.useEffect=function(e,t,n){null==e&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var r=x();if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return x().useId()},t.useImperativeHandle=function(e,t,n){return x().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return null==e&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return null==e&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),x().useLayoutEffect(e,t)},t.useMemo=function(e,t){return x().useMemo(e,t)},t.useOptimistic=function(e,t){return x().useOptimistic(e,t)},t.useReducer=function(e,t,n){return x().useReducer(e,t,n)},t.useRef=function(e){return x().useRef(e)},t.useState=function(e){return x().useState(e)},t.useSyncExternalStore=function(e,t,n){return x().useSyncExternalStore(e,t,n)},t.useTransition=function(){return x().useTransition()},t.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),i.exports;var e,t}function s(){return r||(r=1,o.exports=a()),o.exports}var c,u,l=s(),f=t(l),p={exports:{}},d={},h={exports:{}},y={};function m(){return u||(u=1,h.exports=(c||(c=1,e=y,function(){function t(){if(S=!1,T){var t=e.unstable_now();_=t;var n=!0;try{e:{v=!1,w&&(w=!1,k(A),A=-1),b=!0;var i=g;try{t:{for(a(t),m=r(d);null!==m&&!(m.expirationTime>t&&c());){var l=m.callback;if("function"==typeof l){m.callback=null,g=m.priorityLevel;var f=l(m.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof f){m.callback=f,a(t),n=!0;break t}m===r(d)&&o(d),a(t)}else o(d);m=r(d)}if(null!==m)n=!0;else{var p=r(h);null!==p&&u(s,p.startTime-t),n=!1}}break e}finally{m=null,g=i,b=!1}n=void 0}}finally{n?O():T=!1}}}function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,c=e[s],u=s+1,l=e[u];if(0>i(c,n))u<o&&0>i(l,c)?(e[r]=l,e[u]=n,r=u):(e[r]=c,e[s]=n,r=s);else{if(!(u<o&&0>i(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function a(e){for(var t=r(h);null!==t;){if(null===t.callback)o(h);else{if(!(t.startTime<=e))break;o(h),t.sortIndex=t.expirationTime,n(d,t)}t=r(h)}}function s(e){if(w=!1,a(e),!v)if(null!==r(d))v=!0,T||(T=!0,O());else{var t=r(h);null!==t&&u(s,t.startTime-e)}}function c(){return!(!S&&e.unstable_now()-_<C)}function u(t,n){A=x(function(){t(e.unstable_now())},n)}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var f=Date,p=f.now();e.unstable_now=function(){return f.now()-p}}var d=[],h=[],y=1,m=null,g=3,b=!1,v=!1,w=!1,S=!1,x="function"==typeof setTimeout?setTimeout:null,k="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null,T=!1,A=-1,C=5,_=-1;if("function"==typeof E)var O=function(){E(t)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=t,O=function(){R.postMessage(null)}}else O=function(){x(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(e){switch(g){case 1:case 2:case 3:var t=3;break;default:t=g}var n=g;g=t;try{return e()}finally{g=n}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=g;g=e;try{return t()}finally{g=n}},e.unstable_scheduleCallback=function(t,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return t={id:y++,callback:o,priorityLevel:t,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(t.sortIndex=i,n(h,t),null===r(d)&&t===r(h)&&(w?(k(A),A=-1):w=!0,u(s,i-a))):(t.sortIndex=c,n(d,t),v||b||(v=!0,T||(T=!0,O()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=g;return function(){var n=g;g=t;try{return e.apply(this,arguments)}finally{g=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),y)),h.exports;var e}var g,b,v,w,S={exports:{}},x={};function k(){return g||(g=1,function(){function e(){}function t(e){return""+e}function n(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}function r(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":'something with type "'+typeof e+'"'}function o(e){return null===e?"`null`":void 0===e?"`undefined`":""===e?"an empty string":"string"==typeof e?JSON.stringify(e):"number"==typeof e?"`"+e+"`":'something with type "'+typeof e+'"'}function i(){var e=l.H;return null===e&&console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."),e}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=s(),c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},u=Symbol.for("react.portal"),l=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,x.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error("Target container is not a DOM element.");return function(e,n,r){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;try{t(o);var i=!1}catch(e){i=!0}return i&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.","function"==typeof Symbol&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object"),t(o)),{$$typeof:u,key:null==o?null:""+o,children:e,containerInfo:n,implementation:r}}(e,n,null,r)},x.flushSync=function(e){var t=l.T,n=c.p;try{if(l.T=null,c.p=2,e)return e()}finally{l.T=t,c.p=n,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},x.preconnect=function(e,t){"string"==typeof e&&e?null!=t&&"object"!=typeof t?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):null!=t&&"string"!=typeof t.crossOrigin&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",r(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,c.d.C(e,t))},x.prefetchDNS=function(e){if("string"==typeof e&&e){if(1<arguments.length){var t=arguments[1];"object"==typeof t&&t.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}}else console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e));"string"==typeof e&&c.d.D(e)},x.preinit=function(e,t){if("string"==typeof e&&e?null==t||"object"!=typeof t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):"style"!==t.as&&"script"!==t.as&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(e)),"string"==typeof e&&t&&"string"==typeof t.as){var i=t.as,a=n(i,t.crossOrigin),s="string"==typeof t.integrity?t.integrity:void 0,u="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===i?c.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:u}):"script"===i&&c.d.X(e,{crossOrigin:a,integrity:s,fetchPriority:u,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},x.preinitModule=function(e,t){var i="";if("string"==typeof e&&e||(i+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?i+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"script"!==t.as&&(i+=" The `as` option encountered was "+o(t.as)+"."),i)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",i);else if("script"===(i=t&&"string"==typeof t.as?t.as:"script"));else i=o(i),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',i,e);"string"==typeof e&&("object"==typeof t&&null!==t?null!=t.as&&"script"!==t.as||(i=n(t.as,t.crossOrigin),c.d.M(e,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})):null==t&&c.d.M(e))},x.preload=function(e,t){var o="";if("string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),null==t||"object"!=typeof t?o+=" The `options` argument encountered was "+r(t)+".":"string"==typeof t.as&&t.as||(o+=" The `as` option encountered was "+r(t.as)+"."),o&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',o),"string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var i=n(o=t.as,t.crossOrigin);c.d.L(e,o,{crossOrigin:i,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},x.preloadModule=function(e,t){var o="";"string"==typeof e&&e||(o+=" The `href` argument encountered was "+r(e)+"."),void 0!==t&&"object"!=typeof t?o+=" The `options` argument encountered was "+r(t)+".":t&&"as"in t&&"string"!=typeof t.as&&(o+=" The `as` option encountered was "+r(t.as)+"."),o&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',o),"string"==typeof e&&(t?(o=n(t.as,t.crossOrigin),c.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0})):c.d.m(e))},x.requestFormReset=function(e){c.d.r(e)},x.unstable_batchedUpdates=function(e,t){return e(t)},x.useFormState=function(e,t,n){return i().useFormState(e,t,n)},x.useFormStatus=function(){return i().useHostTransitionStatus()},x.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),x}function E(){return v||(v=1,function(){function e(e,t){for(e=e.memoizedState;null!==e&&0<t;)e=e.next,t--;return e}function t(e,n,r,o){if(r>=n.length)return o;var i=n[r],a=Jl(e)?e.slice():Nl({},e);return a[i]=t(e[i],n,r+1,o),a}function n(e,t,n){if(t.length===n.length){for(var o=0;o<n.length-1;o++)if(t[o]!==n[o])return void console.warn("copyWithRename() expects paths to be the same except for the deepest key");return r(e,t,n,0)}console.warn("copyWithRename() expects paths of the same length")}function r(e,t,n,o){var i=t[o],a=Jl(e)?e.slice():Nl({},e);return o+1===t.length?(a[n[o]]=a[i],Jl(a)?a.splice(i,1):delete a[i]):a[i]=r(e[i],t,n,o+1),a}function o(e,t,n){var r=t[n],i=Jl(e)?e.slice():Nl({},e);return n+1===t.length?(Jl(i)?i.splice(r,1):delete i[r],i):(i[r]=o(e[r],t,n+1),i)}function i(){return!1}function a(){return null}function c(){}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function l(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function f(){}function p(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")}function h(e,t,n,r){return new An(e,t,n,r)}function y(e,t){e.context===yh&&(el(e.current,2,t,e,null,null),js())}function g(e,t){if(null!==mh){var n=t.staleFamilies;t=t.updatedFamilies,ec(),Tn(e.current,t,n),js()}}function v(e){mh=e}function w(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function E(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function T(e){if(x(e)!==e)throw Error("Unable to find node on an unmounted component.")}function A(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=A(e)))return t;e=e.sibling}return null}function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zl&&e[Zl]||e["@@iterator"])?e:null}function _(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===Yl?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ul:return"Fragment";case Fl:return"Profiler";case Ml:return"StrictMode";case Wl:return"Suspense";case Kl:return"SuspenseList";case Gl:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Dl:return"Portal";case zl:return(e.displayName||"Context")+".Provider";case ql:return(e._context.displayName||"Context")+".Consumer";case Hl:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $l:return null!==(t=e.displayName||null)?t:_(e.type)||"Memo";case Xl:t=e._payload,e=e._init;try{return _(e(t))}catch(e){}}return null}function O(e){return"number"==typeof e.tag?P(e):"string"==typeof e.name?e.name:null}function P(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===Ml?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;break;case 29:if(null!=(t=e._debugInfo))for(var n=t.length-1;0<=n;n--)if("string"==typeof t[n].name)return t[n].name;if(null!==e.return)return P(e.return)}return null}function R(e){return{current:e}}function j(e,t){0>af?console.error("Unexpected pop."):(t!==of[af]&&console.error("Unexpected Fiber popped."),e.current=rf[af],rf[af]=null,of[af]=null,af--)}function I(e,t,n){af++,rf[af]=e.current,of[af]=n,e.current=t}function N(e){return null===e&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function L(e,t){I(uf,t,e),I(cf,e,e),I(sf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=9===n?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?ru(t):Hv;break;default:if(n=t.tagName,t=t.namespaceURI)t=ou(t=ru(t),n);else switch(n){case"svg":t=Wv;break;case"math":t=Kv;break;default:t=Hv}}n={context:t,ancestorInfo:n=wt(null,n=n.toLowerCase())},j(sf,e),I(sf,n,e)}function B(e){j(sf,e),j(cf,e),j(uf,e)}function D(){return N(sf.current)}function U(e){null!==e.memoizedState&&I(lf,e,e);var t=N(sf.current),n=e.type,r=ou(t.context,n);t!==(r={context:r,ancestorInfo:n=wt(t.ancestorInfo,n)})&&(I(cf,e,e),I(sf,r,e))}function M(e){cf.current===e&&(j(sf,e),j(cf,e)),lf.current===e&&(j(lf,e),Aw._currentValue=Tw)}function F(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function V(e){try{return q(e),!1}catch(e){return!0}}function q(e){return""+e}function z(e,t){if(V(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,F(e)),q(e)}function H(e,t){if(V(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,F(e)),q(e)}function W(e){if(V(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",F(e)),q(e)}function K(e){if("function"==typeof kf&&Ef(e),Af&&"function"==typeof Af.setStrictMode)try{Af.setStrictMode(Tf,e)}catch(e){_f||(_f=!0,console.error("React instrumentation encountered an error: %s",e))}}function $(e){Cf=e}function X(){null!==Cf&&"function"==typeof Cf.markCommitStopped&&Cf.markCommitStopped()}function G(e){null!==Cf&&"function"==typeof Cf.markComponentRenderStarted&&Cf.markComponentRenderStarted(e)}function Q(){null!==Cf&&"function"==typeof Cf.markComponentRenderStopped&&Cf.markComponentRenderStopped()}function Z(e){null!==Cf&&"function"==typeof Cf.markRenderStarted&&Cf.markRenderStarted(e)}function Y(){null!==Cf&&"function"==typeof Cf.markRenderStopped&&Cf.markRenderStopped()}function J(e,t){null!==Cf&&"function"==typeof Cf.markStateUpdateScheduled&&Cf.markStateUpdateScheduled(e,t)}function ee(e){return 1&e?"SyncHydrationLane":2&e?"Sync":4&e?"InputContinuousHydration":8&e?"InputContinuous":16&e?"DefaultHydration":32&e?"Default":128&e?"TransitionHydration":4194048&e?"Transition":62914560&e?"Retry":67108864&e?"SelectiveHydration":134217728&e?"IdleHydration":268435456&e?"Idle":536870912&e?"Offscreen":1073741824&e?"Deferred":void 0}function te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function ne(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=te(r):0!==(a&=s)?o=te(a):n||0!==(n=s&~e)&&(o=te(n)):0!==(s=r&~i)?o=te(s):0!==a?o=te(a):n||0!==(n=r&~e)&&(o=te(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function ie(){var e=If;return!(4194048&(If<<=1))&&(If=256),e}function ae(){var e=Nf;return!(62914560&(Nf<<=1))&&(Nf=4194304),e}function se(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ce(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ue(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pf(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pf(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function fe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pe(e,t,n){if(Of)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Pf(n),o=1<<r;e[r].add(t),n&=~o}}function de(e,t){if(Of)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var o=31-Pf(t);e=1<<o,0<(o=n[o]).size&&(o.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),o.clear()),t&=~e}}function he(e){return Lf<(e&=-e)?Bf<e?134217727&e?Df:Uf:Bf:Lf}function ye(){var e=tf.p;return 0!==e?e:void 0===(e=window.event)?Df:fl(e.type)}function me(e){delete e[Ff],delete e[Vf],delete e[zf],delete e[Hf],delete e[Wf]}function ge(e){var t=e[Ff];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qf]||n[Ff]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tu(e);null!==e;){if(n=e[Ff])return n;e=Tu(e)}return t}n=(e=n).parentNode}return null}function be(e){if(e=e[Ff]||e[qf]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function ve(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function we(e){var t=e[Kf];return t||(t=e[Kf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Se(e){e[$f]=!0}function xe(e,t){ke(e,t),ke(e+"Capture",t)}function ke(e,t){Gf[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Gf[e]=t;var n=e.toLowerCase();for(Qf[n]=e,"onDoubleClick"===e&&(Qf.ondblclick=e),e=0;e<t.length;e++)Xf.add(t[e])}function Ee(e,t){Zf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||("select"===e?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||null==t.checked||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Te(e){return!!ff.call(ep,e)||!ff.call(Jf,e)&&(Yf.test(e)?ep[e]=!0:(Jf[e]=!0,console.error("Invalid attribute name: `%s`",e),!1))}function Ae(e,t,n){if(Te(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":case"function":return n;case"boolean":if(!1===n)return n}return void 0===n?void 0:null}return""===(e=e.getAttribute(t))&&!0===n||(z(n,t),e===""+n?n:e)}}function Ce(e,t,n){if(Te(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}z(n,t),e.setAttribute(t,""+n)}}function _e(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}z(n,t),e.setAttribute(t,""+n)}}function Oe(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}z(r,n),e.setAttributeNS(t,n,""+r)}}function Pe(){}function Re(e){if(void 0===np)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);np=t&&t[1]||"",rp=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+np+e+rp}function je(e,t){if(!e||op)return"";var n=ip.get(e);if(void 0!==n)return n;op=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=ef.H,ef.H=null,function(){if(0===tp){El=console.log,Tl=console.info,Al=console.warn,Cl=console.error,_l=console.group,Ol=console.groupCollapsed,Pl=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}tp++}();try{var o={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=o.DetermineComponentFrameRoot(),s=a[0],c=a[1];if(s&&c){var u=s.split("\n"),l=c.split("\n");for(a=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;if(i===u.length||a===l.length)for(i=u.length-1,a=l.length-1;1<=i&&0<=a&&u[i]!==l[a];)a--;for(;1<=i&&0<=a;i--,a--)if(u[i]!==l[a]){if(1!==i||1!==a)do{if(i--,0>--a||u[i]!==l[a]){var f="\n"+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&ip.set(e,f),f}}while(1<=i&&0<=a);break}}}finally{op=!1,ef.H=r,function(){if(0===--tp){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Nl({},e,{value:El}),info:Nl({},e,{value:Tl}),warn:Nl({},e,{value:Al}),error:Nl({},e,{value:Cl}),group:Nl({},e,{value:_l}),groupCollapsed:Nl({},e,{value:Ol}),groupEnd:Nl({},e,{value:Pl})})}0>tp&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return u=(u=e?e.displayName||e.name:"")?Re(u):"","function"==typeof e&&ip.set(e,u),u}function Ie(e){var t=Error.prepareStackTrace;return Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith("Error: react-stack-top-frame\n")&&(e=e.slice(29)),-1!==(t=e.indexOf("\n"))&&(e=e.slice(t+1)),-1!==(t=e.indexOf("react_stack_bottom_frame"))&&(t=e.lastIndexOf("\n",t)),-1===t?"":e=e.slice(0,t)}function Ne(e){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re("Lazy");case 13:return Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return je(e.type,!1);case 11:return je(e.type.render,!1);case 1:return je(e.type,!0);case 31:return Re("Activity");default:return""}}function Le(e){try{var t="";do{t+=Ne(e);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var o=n[r];if("string"==typeof o.name){var i=t,a=o.env;t=i+Re(o.name+(a?" ["+a+"]":""))}}e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function Be(e){return(e=e?e.displayName||e.name:"")?Re(e):""}function De(){if(null===ap)return null;var e=ap._debugOwner;return null!=e?O(e):null}function Ue(){if(null===ap)return"";var e=ap;try{var t="";switch(6===e.tag&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Re(e.type);break;case 13:t+=Re("Suspense");break;case 19:t+=Re("SuspenseList");break;case 31:t+=Re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||""!==t||(t+=Be(e.type));break;case 11:e._debugOwner||""!==t||(t+=Be(e.type.render))}for(;e;)if("number"==typeof e.tag){var n=e;e=n._debugOwner;var r=n._debugStack;e&&r&&("string"!=typeof r&&(n._debugStack=r=Ie(r)),""!==r&&(t+="\n"+r))}else{if(null==e.debugStack)break;var o=e.debugStack;(e=e.owner)&&o&&(t+="\n"+Ie(o))}var i=t}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return i}function Me(e,t,n,r,o,i,a){var s=ap;Fe(e);try{return null!==e&&e._debugTask?e._debugTask.run(t.bind(null,n,r,o,i,a)):t(n,r,o,i,a)}finally{Fe(s)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Fe(e){ef.getCurrentStack=null===e?null:Ue,sp=!1,ap=e}function Ve(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return W(e),e;default:return""}}function qe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ze(e){e._valueTracker||(e._valueTracker=function(e){var t=qe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);W(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){W(e),r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){W(e),r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function We(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ke(e){return e.replace(cp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $e(e,t){void 0===t.checked||void 0===t.defaultChecked||lp||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component",t.type),lp=!0),void 0===t.value||void 0===t.defaultValue||up||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component",t.type),up=!0)}function Xe(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?(z(a,"type"),e.type=a):e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+Ve(t)):e.value!==""+Ve(t)&&(e.value=""+Ve(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Qe(e,a,Ve(t)):null!=n?Qe(e,a,Ve(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?(z(s,"name"),e.name=""+Ve(s)):e.removeAttribute("name")}function Ge(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(z(i,"type"),e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+Ve(n):"",t=null!=t?""+Ve(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(z(a,"name"),e.name=a)}function Qe(e,t,n){"number"===t&&We(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ze(e,t){null==t.value&&("object"==typeof t.children&&null!==t.children?jl.Children.forEach(t.children,function(e){null==e||"string"==typeof e||"number"==typeof e||"bigint"==typeof e||pp||(pp=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):null==t.dangerouslySetInnerHTML||dp||(dp=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),null==t.selected||fp||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fp=!0)}function Ye(){var e=De();return e?"\n\nCheck the render method of `"+e+"`.":""}function Je(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ve(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function et(e,t){for(e=0;e<yp.length;e++){var n=yp[e];if(null!=t[n]){var r=Jl(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Ye()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Ye())}}void 0===t.value||void 0===t.defaultValue||hp||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),hp=!0)}function tt(e,t){void 0===t.value||void 0===t.defaultValue||mp||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",De()||"A component"),mp=!0),null!=t.children&&null==t.value&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function nt(e,t,n){null==t||((t=""+Ve(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+Ve(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function rt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Jl(r)){if(1<r.length)throw Error("<textarea> can only have at most one child.");r=r[0]}n=r}null==n&&(n=""),t=n}n=Ve(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function ot(e,t){return void 0===e.serverProps&&0===e.serverTail.length&&1===e.children.length&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ot(e.children[0],t):e}function it(e){return" "+" ".repeat(e)}function at(e){return"+ "+" ".repeat(e)}function st(e){return"- "+" ".repeat(e)}function ct(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:case 1:return(e=e.type).displayName||e.name||null;case 11:return(e=e.type.render).displayName||e.name||null;default:return null}}function ut(e,t){return gp.test(e)?(e=JSON.stringify(e)).length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}":e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function lt(e,t,n){var r=120-2*n;if(null===t)return at(n)+ut(e,r)+"\n";if("string"==typeof t){for(var o=0;o<t.length&&o<e.length&&t.charCodeAt(o)===e.charCodeAt(o);o++);return o>r-8&&10<o&&(e="..."+e.slice(o-8),t="..."+t.slice(o-8)),at(n)+ut(e,r)+"\n"+st(n)+ut(t,r)+"\n"}return it(n)+ut(e,r)+"\n"}function ft(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function pt(e,t){switch(typeof e){case"string":return(e=JSON.stringify(e)).length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(null===e)return"null";if(Jl(e))return"[...]";if(e.$$typeof===Bl)return(t=_(e.type))?"<"+t+">":"<...>";var n=ft(e);if("Object"===n){for(var r in n="",t-=2,e)if(e.hasOwnProperty(r)){var o=JSON.stringify(r);if(o!=='"'+r+'"'&&(r=o),t-=r.length-2,0>(t-=(o=pt(e[r],15>t?t:15)).length)){n+=""===n?"...":", ...";break}n+=(""===n?"":",")+r+":"+o}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function dt(e,t){return"string"!=typeof e||gp.test(e)?"{"+pt(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ht(e,t,n){var r,o=120-n.length-e.length,i=[];for(r in t)if(t.hasOwnProperty(r)&&"children"!==r){var a=dt(t[r],120-n.length-r.length-1);o-=r.length+a.length+2,i.push(r+"="+a)}return 0===i.length?n+"<"+e+">\n":0<o?n+"<"+e+" "+i.join(" ")+">\n":n+"<"+e+"\n"+n+" "+i.join("\n"+n+" ")+"\n"+n+">\n"}function yt(e,t,n){var r,o="",i=Nl({},t);for(r in e)if(e.hasOwnProperty(r)){delete i[r];var a=120-2*n-r.length-2,s=pt(e[r],a);t.hasOwnProperty(r)?(a=pt(t[r],a),o+=at(n)+r+": "+s+"\n",o+=st(n)+r+": "+a+"\n"):o+=at(n)+r+": "+s+"\n"}for(var c in i)i.hasOwnProperty(c)&&(e=pt(i[c],120-2*n-c.length-2),o+=st(n)+c+": "+e+"\n");return o}function mt(e,t){var n=ct(e);if(null===n){for(n="",e=e.child;e;)n+=mt(e,t),e=e.sibling;return n}return it(t)+"<"+n+">\n"}function gt(e,t){var n=ot(e,t);if(n!==e&&(1!==e.children.length||e.children[0]!==n))return it(t)+"...\n"+gt(n,t+1);n="";var r=e.fiber._debugInfo;if(r)for(var o=0;o<r.length;o++){var i=r[o].name;"string"==typeof i&&(n+=it(t)+"<"+i+">\n",t++)}if(r="",o=e.fiber.pendingProps,6===e.fiber.tag)r=lt(o,e.serverProps,t),t++;else if(null!==(i=ct(e.fiber)))if(void 0===e.serverProps){var a=120-2*(r=t)-i.length-2,s="";for(u in o)if(o.hasOwnProperty(u)&&"children"!==u){var c=dt(o[u],15);if(0>(a-=u.length+c.length+2)){s+=" ...";break}s+=" "+u+"="+c}r=it(r)+"<"+i+s+">\n",t++}else null===e.serverProps?(r=ht(i,o,at(t)),t++):"string"==typeof e.serverProps?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(r=function(e,t,n,r){var o="",i=new Map;for(u in n)n.hasOwnProperty(u)&&i.set(u.toLowerCase(),u);if(1===i.size&&i.has("children"))o+=ht(e,t,it(r));else{for(var a in t)if(t.hasOwnProperty(a)&&"children"!==a){var s=120-2*(r+1)-a.length-1,c=i.get(a.toLowerCase());if(void 0!==c){i.delete(a.toLowerCase());var u=t[a];c=n[c];var l=dt(u,s);s=dt(c,s),"object"==typeof u&&null!==u&&"object"==typeof c&&null!==c&&"Object"===ft(u)&&"Object"===ft(c)&&(2<Object.keys(u).length||2<Object.keys(c).length||-1<l.indexOf("...")||-1<s.indexOf("..."))?o+=it(r+1)+a+"={{\n"+yt(u,c,r+2)+it(r+1)+"}}\n":(o+=at(r+1)+a+"="+l+"\n",o+=st(r+1)+a+"="+s+"\n")}else o+=it(r+1)+a+"="+dt(t[a],s)+"\n"}i.forEach(function(e){if("children"!==e){var t=120-2*(r+1)-e.length-1;o+=st(r+1)+e+"="+dt(n[e],t)+"\n"}}),o=""===o?it(r)+"<"+e+">\n":it(r)+"<"+e+"\n"+o+it(r)+">\n"}return e=n.children,t=t.children,"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(i="","string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(i=""+t),o+=lt(i,""+e,r+1)):"string"!=typeof t&&"number"!=typeof t&&"bigint"!=typeof t||(o=null==e?o+lt(""+t,null,r+1):o+lt(""+t,void 0,r+1)),o}(i,o,e.serverProps,t),t++);var u="";for(o=e.fiber.child,i=0;o&&i<e.children.length;)(a=e.children[i]).fiber===o?(u+=gt(a,t),i++):u+=mt(o,t),o=o.sibling;for(o&&0<e.children.length&&(u+=it(t)+"...\n"),o=e.serverTail,null===e.serverProps&&t--,e=0;e<o.length;e++)u="string"==typeof(i=o[e])?u+(st(t)+ut(i,120-2*t)+"\n"):u+ht(i.type,i.props,st(t));return n+r+u}function bt(e){try{return"\n\n"+gt(e,0)}catch(e){return""}}function vt(e,t,n){for(var r=t,o=null,i=0;r;)r===e&&(i=0),o={fiber:r,children:null!==o?[o]:[],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,r=r.return;return null!==o?bt(o).replaceAll(/^[+-]/gm,">"):""}function wt(e,t){var n=Nl({},e||xp),r={tag:t};return-1!==vp.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==wp.indexOf(t)&&(n.pTagInButtonScope=null),-1!==bp.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),"#document"===t||"html"===t?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=r),null!==e||"#document"!==t&&"html"!==t&&"body"!==t?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function St(e,t,n){switch(t){case"select":return"hr"===e||"option"===e||"optgroup"===e||"script"===e||"template"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":if(n)break;return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":if(!n)return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===Sp.indexOf(t);case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t;case"head":return n||null===t;case"html":return n&&"#document"===t||null===t;case"body":return n&&("#document"===t||"html"===t)||null===t}return!0}function xt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function kt(e,t){var n=(t=t||xp).current;if(t=(n=St(e,n&&n.tag,t.implicitRootScope)?null:n)?null:function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}(e,t),!(t=n||t))return!0;var r=t.tag;if(t=String(!!n)+"|"+e+"|"+r,kp[t])return!1;kp[t]=!0;var o=(t=ap)?xt(t.return,r):null,i=null!==t&&null!==o?vt(o,t,null):"",a="<"+e+">";return n?(n="","table"===r&&"tr"===e&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s",a,r,n,i)):console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s",a,r,i),t&&(e=t.return,null===o||null===e||o===e&&e._debugOwner===t._debugOwner||Me(o,function(){console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.",r,a)})),!1}function Et(e,t,n){if(n||St("#text",t,!1))return!0;if(kp[n="#text|"+t])return!1;kp[n]=!0;var r=(n=ap)?xt(n,t):null;return n=null!==n&&null!==r?vt(r,n,6!==n.tag?{children:null}:null):"",/\S/.test(e)?console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s",t,n):console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s",t,n),!1}function Tt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function At(e,t,n){var r=0===t.indexOf("--");r||(-1<t.indexOf("-")?Rp.hasOwnProperty(t)&&Rp[t]||(Rp[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,t.replace(_p,"ms-").replace(Op,function(e,t){return t.toUpperCase()}))):Cp.test(t)?Rp.hasOwnProperty(t)&&Rp[t]||(Rp[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Pp.test(n)||jp.hasOwnProperty(n)&&jp[n]||(jp[n]=!0,console.error('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(Pp,""))),"number"==typeof n&&(isNaN(n)?Ip||(Ip=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Np||(Np=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Lp.has(t)?"float"===t?e.cssFloat=n:(H(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function Ct(e,t,n){if(null!=t&&"object"!=typeof t)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,null!=n){if(t){var r={};if(n)for(var o in n)if(n.hasOwnProperty(o)&&!t.hasOwnProperty(o))for(var i=Ep[o]||[o],a=0;a<i.length;a++)r[i[a]]=o;for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(o=Ep[s]||[s],i=0;i<o.length;i++)r[o[i]]=s;for(var c in s={},t)for(o=Ep[c]||[c],i=0;i<o.length;i++)s[o[i]]=c;for(var u in c={},r)if(o=r[u],(i=s[u])&&o!==i&&!c[a=o+","+i]){c[a]=!0,a=console;var l=t[o];a.error.call(a,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",null==l||"boolean"==typeof l||""===l?"Removing":"Updating",o,i)}}for(var f in n)!n.hasOwnProperty(f)||null!=t&&t.hasOwnProperty(f)||(0===f.indexOf("--")?e.setProperty(f,""):"float"===f?e.cssFloat="":e[f]="");for(var p in t)u=t[p],t.hasOwnProperty(p)&&n[p]!==u&&At(e,p,u)}else for(r in t)t.hasOwnProperty(r)&&At(e,r,t[r])}function _t(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ot(e){return Up.get(e)||e}function Pt(e,t){if(ff.call(Vp,t)&&Vp[t])return!0;if(zp.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),null==(e=Fp.hasOwnProperty(e)?e:null))return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Vp[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Vp[t]=!0}if(qp.test(t)){if(e=t.toLowerCase(),null==(e=Fp.hasOwnProperty(e)?e:null))return Vp[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Vp[t]=!0)}return!0}function Rt(e,t,n,r){if(ff.call(Wp,t)&&Wp[t])return!0;var o=t.toLowerCase();if("onfocusin"===o||"onfocusout"===o)return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Wp[t]=!0;if("function"==typeof n&&("form"===e&&"action"===t||"input"===e&&"formAction"===t||"button"===e&&"formAction"===t))return!0;if(null!=r){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(null!=(r=e.hasOwnProperty(o)?e[o]:null))return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Wp[t]=!0;if(Kp.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Wp[t]=!0}else if(Kp.test(t))return $p.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Wp[t]=!0;if(Xp.test(t)||Gp.test(t))return!0;if("innerhtml"===o)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Wp[t]=!0;if("aria"===o)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Wp[t]=!0;if("is"===o&&null!=n&&"string"!=typeof n)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Wp[t]=!0;if("number"==typeof n&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Wp[t]=!0;if(Mp.hasOwnProperty(o)){if((o=Mp[o])!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,o),Wp[t]=!0}else if(t!==o)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,o),Wp[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return"data-"===(o=t.toLowerCase().slice(0,5))||"aria-"===o||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Wp[t]=!0)}case"function":case"symbol":return Wp[t]=!0,!1;case"string":if("false"===n||"true"===n){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Wp[t]=!0}}return!0}function jt(e){return Qp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Nt(e){var t=be(e);if(t&&(e=t.stateNode)){var n=e[Vf]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xe(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(z(t,"name"),n=n.querySelectorAll('input[name="'+Ke(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Vf]||null;if(!o)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Xe(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&He(r)}break e;case"textarea":nt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Je(e,!!n.multiple,t,!1)}}}function Lt(e,t,n){if(ed)return e(t,n);ed=!0;try{return e(t)}finally{if(ed=!1,(null!==Yp||null!==Jp)&&(js(),Yp&&(t=Yp,e=Jp,Jp=Yp=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function Bt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Vf]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Dt(){if(ud)return ud;var e,t,n=cd,r=n.length,o="value"in sd?sd.value:sd.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ud=o.slice(e,1<t?1-t:void 0)}function Ut(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Mt(){return!0}function Ft(){return!1}function Vt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Mt:Ft,this.isPropagationStopped=Ft,this}return Nl(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Mt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Mt)},persist:function(){},isPersistent:Mt}),t}function qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ed[e])&&!!t[e]}function zt(){return qt}function Ht(e,t){switch(e){case"keyup":return-1!==Rd.indexOf(t.keyCode);case"keydown":return t.keyCode!==jd;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function Kt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vd[e.type]:"textarea"===t}function $t(e,t,n,r){Yp?Jp?Jp.push(r):Jp=[r]:Yp=r,0<(t=Nc(t,"onChange")).length&&(n=new fd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}function Xt(e){Cc(e,0)}function Gt(e){if(He(ve(e)))return e}function Qt(e,t){if("change"===e)return t}function Zt(){qd&&(qd.detachEvent("onpropertychange",Yt),zd=qd=null)}function Yt(e){if("value"===e.propertyName&&Gt(zd)){var t=[];$t(t,zd,e,It(e)),Lt(Xt,t)}}function Jt(e,t,n){"focusin"===e?(Zt(),zd=n,(qd=t).attachEvent("onpropertychange",Yt)):"focusout"===e&&Zt()}function en(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gt(zd)}function tn(e,t){if("click"===e)return Gt(t)}function nn(e,t){if("input"===e||"change"===e)return Gt(t)}function rn(e,t){if(Wd(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ff.call(t,o)||!Wd(e[o],t[o]))return!1}return!0}function on(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function an(e,t){var n,r=on(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=on(r)}}function sn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cn(e){for(var t=We((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=We((e=t.contentWindow).document)}return t}function un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ln(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Qd||null==$d||$d!==We(r)||("selectionStart"in(r=$d)&&un(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Gd&&rn(Gd,r)||(Gd=r,0<(r=Nc(Xd,"onSelect")).length&&(t=new fd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$d)))}function fn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function pn(e){if(Yd[e])return Yd[e];if(!Zd[e])return e;var t,n=Zd[e];for(t in n)if(n.hasOwnProperty(t)&&t in Jd)return Yd[e]=n[t];return e}function dn(e,t){sh.set(e,t),xe(t,[e])}function hn(e,t){if("object"==typeof e&&null!==e){var n=uh.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Le(t)},uh.set(e,t),t)}return{value:e,source:t,stack:Le(t)}}function yn(){for(var e=dh,t=hh=dh=0;t<e;){var n=ph[t];ph[t++]=null;var r=ph[t];ph[t++]=null;var o=ph[t];ph[t++]=null;var i=ph[t];if(ph[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&vn(n,o,i)}}function mn(e,t,n,r){ph[dh++]=e,ph[dh++]=t,ph[dh++]=n,ph[dh++]=r,hh|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function gn(e,t,n,r){return mn(e,t,n,r),wn(e)}function bn(e,t){return mn(e,null,null,t),wn(e)}function vn(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||e._visibility&lh||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Pf(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function wn(e){if(Zb>Qb)throw nv=Zb=0,rv=Yb=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");nv>tv&&(nv=0,rv=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),null===e.alternate&&4098&e.flags&&pc(e);for(var t=e,n=t.return;null!==n;)null===t.alternate&&!!(4098&t.flags)&&pc(e),n=(t=n).return;return 3===t.tag?t.stateNode:null}function Sn(e){if(null===mh)return e;var t=mh(e);return void 0===t?e:t.current}function xn(e){if(null===mh)return e;var t=mh(e);return void 0===t?null!=e&&"function"==typeof e.render&&(t=Sn(e.render),e.render!==t)?(t={$$typeof:Hl,render:t},void 0!==e.displayName&&(t.displayName=e.displayName),t):e:t.current}function kn(e,t){if(null===mh)return!1;var n=e.elementType,r=!1,o="object"==typeof(t=t.type)&&null!==t?t.$$typeof:null;switch(e.tag){case 1:"function"==typeof t&&(r=!0);break;case 0:("function"==typeof t||o===Xl)&&(r=!0);break;case 11:(o===Hl||o===Xl)&&(r=!0);break;case 14:case 15:(o===$l||o===Xl)&&(r=!0);break;default:return!1}return!(!r||(e=mh(n),void 0===e||e!==mh(t)))}function En(e){null!==mh&&"function"==typeof WeakSet&&(null===gh&&(gh=new WeakSet),gh.add(e))}function Tn(e,t,n){var r=e.alternate,o=e.child,i=e.sibling,a=e.tag,s=e.type,c=null;switch(a){case 0:case 15:case 1:c=s;break;case 11:c=s.render}if(null===mh)throw Error("Expected resolveFamily to be set during hot reload.");var u=!1;s=!1,null!==c&&(void 0!==(c=mh(c))&&(n.has(c)?s=!0:t.has(c)&&(1===a?s=!0:u=!0))),null!==gh&&(gh.has(e)||null!==r&&gh.has(r))&&(s=!0),s&&(e._debugNeedsRemount=!0),(s||u)&&(null!==(r=bn(e,2))&&Cs(r,e,2)),null===o||s||Tn(o,t,n),null!==i&&Tn(i,t,n)}function An(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Eh||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}function Cn(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _n(e,t){var n=e.alternate;switch(null===n?((n=h(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:case 1:n.type=Sn(e.type);break;case 11:n.type=xn(e.type)}return n}function On(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Pn(e,t,n,r,o,i){var a=0,s=e;if("function"==typeof e)Cn(e)&&(a=1),s=Sn(s);else if("string"==typeof e)a=function(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===Wv||null!=t.itemProp)return!r||null==t.itemProp||"meta"!==e&&"title"!==e&&"style"!==e&&"link"!==e&&"script"!==e||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError){if("stylesheet"===t.rel&&"string"==typeof t.precedence){e=t.href;var o=t.onError,i=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),o&&n.push("`onError`"),null!=i&&n.push("`disabled`"),o=function(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}(n,"and"),o+=1===n.length?" prop":" props",i=1===n.length?"an "+o:"the "+o,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,i,o)}r&&("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return"stylesheet"!==t.rel||(e=t.precedence,t=t.disabled,"string"!=typeof e&&r&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),"string"==typeof e&&null==t);case"script":if(!(e=t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async)||t.onLoad||t.onError||!t.src||"string"!=typeof t.src){r&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":r&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}(e,n,a=D())?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case Gl:return(t=h(31,n,t,o)).elementType=Gl,t.lanes=i,t;case Ul:return jn(n.children,o,i,t);case Ml:a=8,o|=Sh,o|=xh;break;case Fl:return r=o,"string"!=typeof(e=n).id&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),(t=h(12,e,t,r|wh)).elementType=Fl,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Wl:return(t=h(13,n,t,o)).elementType=Wl,t.lanes=i,t;case Kl:return(t=h(19,n,t,o)).elementType=Kl,t.lanes=i,t;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Vl:case zl:a=10;break e;case ql:a=9;break e;case Hl:a=11,s=xn(s);break e;case $l:a=14;break e;case Xl:a=16,s=null;break e}s="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?n="null":Jl(e)?n="array":void 0!==e&&e.$$typeof===Bl?(n="<"+(_(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(a=r?O(r):null)&&(s+="\n\nCheck the render method of `"+a+"`."),a=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+n+"."+s),s=null}return(t=h(a,n,t,o)).elementType=e,t.type=s,t.lanes=i,t._debugOwner=r,t}function Rn(e,t,n){return(t=Pn(e.type,e.key,e.props,e._owner,t,n))._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function jn(e,t,n,r){return(e=h(7,e,r,t)).lanes=n,e}function In(e,t,n){return(e=h(6,e,null,t)).lanes=n,e}function Nn(e,t,n){return(t=h(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ln(e,t){Mn(),Ah[Ch++]=Oh,Ah[Ch++]=_h,_h=e,Oh=t}function Bn(e,t,n){Mn(),Ph[Rh++]=Ih,Ph[Rh++]=Nh,Ph[Rh++]=jh,jh=e;var r=Ih;e=Nh;var o=32-Pf(r)-1;r&=~(1<<o),n+=1;var i=32-Pf(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Ih=1<<32-Pf(t)+o|n<<o|r,Nh=i+e}else Ih=1<<i|n<<o|r,Nh=e}function Dn(e){Mn(),null!==e.return&&(Ln(e,1),Bn(e,1,0))}function Un(e){for(;e===_h;)_h=Ah[--Ch],Ah[Ch]=null,Oh=Ah[--Ch],Ah[Ch]=null;for(;e===jh;)jh=Ph[--Rh],Ph[Rh]=null,Nh=Ph[--Rh],Ph[Rh]=null,Ih=Ph[--Rh],Ph[Rh]=null}function Mn(){Dh||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Fn(e,t){if(null===e.return){if(null===Mh)Mh={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Mh.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Mh.distanceFromLeaf>t&&(Mh.distanceFromLeaf=t)}return Mh}var n=Fn(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?((n=n[n.length-1]).distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Vn(e,t){Uh||((e=Fn(e,0)).serverProps=null,null!==t&&(t=xu(t),e.serverTail.push(t)))}function qn(e){var t="",n=Mh;throw null!==n&&(Mh=null,t=bt(n)),Xn(hn(Error("Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch"+t),e)),qh}function zn(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ff]=e,t[Vf]=r,Dc(n,r),n){case"dialog":_c("cancel",t),_c("close",t);break;case"iframe":case"object":case"embed":_c("load",t);break;case"video":case"audio":for(n=0;n<mv.length;n++)_c(mv[n],t);break;case"source":_c("error",t);break;case"img":case"image":case"link":_c("error",t),_c("load",t);break;case"details":_c("toggle",t);break;case"input":Ee("input",r),_c("invalid",t),$e(0,r),Ge(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ze(t);break;case"option":Ze(0,r);break;case"select":Ee("select",r),_c("invalid",t),et(t,r);break;case"textarea":Ee("textarea",r),_c("invalid",t),tt(0,r),rt(t,r.value,r.defaultValue,r.children),ze(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||qc(t.textContent,n)?(null!=r.popover&&(_c("beforetoggle",t),_c("toggle",t)),null!=r.onScroll&&_c("scroll",t),null!=r.onScrollEnd&&_c("scrollend",t),null!=r.onClick&&(t.onclick=zc),t=!0):t=!1,t||qn(e)}function Hn(e){for(Lh=e.return;Lh;)switch(Lh.tag){case 5:case 13:return void(Vh=!1);case 27:case 3:return void(Vh=!0);default:Lh=Lh.return}}function Wn(e){if(e!==Lh)return!1;if(!Dh)return Hn(e),Dh=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||iu(e.type,e.memoizedProps)),t=!t),t&&Bh){for(t=Bh;t;){var r=Fn(e,0),o=xu(t);r.serverTail.push(o),t="Suspense"===o.type?Eu(t):Su(t.nextSibling)}qn(e)}if(Hn(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Bh=Eu(e)}else 27===n?(n=Bh,fu(e.type)?(e=nw,nw=null,Bh=e):Bh=n):Bh=Lh?Su(e.stateNode.nextSibling):null;return!0}function Kn(){Bh=Lh=null,Uh=Dh=!1}function $n(){var e=Fh;return null!==e&&(null===Ab?Ab=e:Ab.push.apply(Ab,e),Fh=null),e}function Xn(e){null===Fh?Fh=[e]:Fh.push(e)}function Gn(){var e=Mh;if(null!==e){Mh=null;for(var t=bt(e);0<e.children.length;)e=e.children[0];Me(e.fiber,function(){console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s","https://react.dev/link/hydration-mismatch",t)})}}function Qn(){Zh=Qh=null,Yh=!1}function Zn(e,t,n){I($h,t._currentValue,e),t._currentValue=n,I(Xh,t._currentRenderer,e),void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Gh&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Gh}function Yn(e,t){e._currentValue=$h.current;var n=Xh.current;j(Xh,t),e._currentRenderer=n,j($h,t)}function Jn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function er(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var a=o.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=o;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Jn(i.return,n,e),r||(a=null);break e}i=s.next}}else if(18===o.tag){if(null===(a=o.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");a.lanes|=n,null!==(i=a.alternate)&&(i.lanes|=n),Jn(a,n,e),a=null}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}function tr(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var a=o.alternate;if(null===a)throw Error("Should have a current fiber. This is a bug in React.");if(null!==(a=a.memoizedProps)){var s=o.type;Wd(o.pendingProps.value,a.value)||(null!==e?e.push(s):e=[s])}}else if(o===lf.current){if(null===(a=o.alternate))throw Error("Should have a current fiber. This is a bug in React.");a.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Aw):e=[Aw])}o=o.return}null!==e&&er(t,e,n,r),t.flags|=262144}function nr(e){for(e=e.firstContext;null!==e;){if(!Wd(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function rr(e){Qh=e,Zh=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function or(e){return Yh&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ar(Qh,e)}function ir(e,t){return null===Qh&&rr(e),ar(e,t)}function ar(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Zh){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Zh=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Zh=Zh.next=t;return n}function sr(){return{controller:new Jh,data:new Map,refCount:0}}function cr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function ur(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),0===e.refCount&&ey(ty,function(){e.controller.abort()})}function lr(){var e=sy;return sy=0,e}function fr(e){var t=sy;return sy=e,t}function pr(e){var t=sy;return sy+=e,t}function dr(e){ay=ry(),0>e.actualStartTime&&(e.actualStartTime=ay)}function hr(e){if(0<=ay){var t=ry()-ay;e.actualDuration+=t,e.selfBaseDuration=t,ay=-1}}function yr(e){if(0<=ay){var t=ry()-ay;e.actualDuration+=t,ay=-1}}function mr(){if(0<=ay){var e=ry()-ay;ay=-1,sy+=e}}function gr(){ay=ry()}function br(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function vr(){if(0===--fy&&null!==ly){null!==dy&&(dy.status="fulfilled");var e=ly;ly=null,py=0,dy=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wr(){var e=yy.current;return null!==e?e:eb.pooledCache}function Sr(e,t){I(yy,null===t?yy.current:t.pool,e)}function xr(){var e=wr();return null===e?null:{parent:ny._currentValue,pool:e}}function kr(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Er(){}function Tr(e,t,n){null!==ef.actQueue&&(ef.didUsePromise=!0);var r=e.thenables;switch(void 0===(n=r[n])?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Er,Er),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw Cr(e=t.reason),e;default:if("string"==typeof t.status)t.then(Er,Er);else{if(null!==(e=eb)&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw Cr(e=t.reason),e}throw Ry=t,jy=!0,Cy}}function Ar(){if(null===Ry)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ry;return Ry=null,jy=!1,e}function Cr(e){if(e===Cy||e===Oy)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Or(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pr(e){return{lane:e,tag:Uy,payload:null,callback:null,next:null}}function Rr(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,Hy===r&&!zy){var o=P(e);console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s",o),zy=!0}return(Jg&Hg)!==zg?(null===(o=r.pending)?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=wn(e),vn(e,null,n),t):(mn(e,r,t,n),wn(e))}function jr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,le(e,n)}}function Ir(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nr(){if(Wy){if(null!==dy)throw dy}}function Lr(e,t,n,r){Wy=!1;var o=e.updateQueue;qy=!1,Hy=o.shared;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var c=s,u=c.next;c.next=null,null===a?i=u:a.next=u,a=c;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==a&&(null===s?l.firstBaseUpdate=u:s.next=u,l.lastBaseUpdate=c))}if(null!==i){var f=o.baseState;for(a=0,l=u=c=null,s=i;;){var p=-536870913&s.lane,d=p!==s.lane;if(d?(nb&p)===p:(r&p)===p){0!==p&&p===py&&(Wy=!0),null!==l&&(l=l.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{p=e;var h=s,y=t,m=n;switch(h.tag){case My:if("function"==typeof(h=h.payload)){Yh=!0;var g=h.call(m,f,y);if(p.mode&Sh){K(!0);try{h.call(m,f,y)}finally{K(!1)}}Yh=!1,f=g;break e}f=h;break e;case Vy:p.flags=-65537&p.flags|128;case Uy:if("function"==typeof(g=h.payload)){if(Yh=!0,h=g.call(m,f,y),p.mode&Sh){K(!0);try{g.call(m,f,y)}finally{K(!1)}}Yh=!1}else h=g;if(null==h)break e;f=Nl({},f,h);break e;case Fy:qy=!0}}null!==(p=s.callback)&&(e.flags|=64,d&&(e.flags|=8192),null===(d=o.callbacks)?o.callbacks=[p]:d.push(p))}else d={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(u=l=d,c=f):l=l.next=d,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}null===l&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=l,null===i&&(o.shared.lanes=0),wb|=a,e.lanes=a,e.memoizedState=f}Hy=null}function Br(e,t){if("function"!=typeof e)throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Dr(e,t){var n=e.shared.hiddenCallbacks;if(null!==n)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Br(n[e],t)}function Ur(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Br(n[e],t)}function Mr(e,t){var n=bb;I($y,n,e),I(Ky,t,e),bb=n|t.baseLanes}function Fr(e){I($y,bb,e),I(Ky,Ky.current,e)}function Vr(e){bb=$y.current,j(Ky,e),j($y,e)}function qr(){var e=lm;null===fm?fm=[e]:fm.push(e)}function zr(){var e=lm;if(null!==fm&&(pm++,fm[pm]!==e)){var t=P(Jy);if(!Xy.has(t)&&(Xy.add(t),null!==fm)){for(var n="",r=0;r<=pm;r++){var o=fm[r],i=r===pm?e:o;for(o=r+1+". "+o;30>o.length;)o+=" ";n+=o+=i+"\n"}console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}}function Hr(e){null==e||Jl(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",lm,typeof e)}function Wr(){var e=P(Jy);Zy.has(e)||(Zy.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Kr(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function $r(e,t){if(dm)return!1;if(null===t)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",lm),!1;e.length!==t.length&&console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",lm,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Wd(e[n],t[n]))return!1;return!0}function Xr(e,t,n,r,o,i){Yy=i,Jy=t,fm=null!==e?e._debugHookTypes:null,pm=-1,dm=null!==e&&e.type!==t.type,"[object AsyncFunction]"!==Object.prototype.toString.call(n)&&"[object AsyncGeneratorFunction]"!==Object.prototype.toString.call(n)||(i=P(Jy),Qy.has(i)||(Qy.add(i),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",null===i?"An unknown Component":"<"+i+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,ef.H=null!==e&&null!==e.memoizedState?gm:null!==fm?mm:ym,om=i=(t.mode&Sh)!==bh;var a=Em(n,r,o);if(om=!1,rm&&(a=Qr(t,n,r,o)),i){K(!0);try{a=Qr(t,n,r,o)}finally{K(!1)}}return Gr(e,t),a}function Gr(e,t){t._debugHookTypes=fm,null===t.dependencies?null!==sm&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:sm}):t.dependencies._debugThenableState=sm,ef.H=hm;var n=null!==em&&null!==em.next;if(Yy=0,fm=lm=tm=em=Jy=null,pm=-1,null!==e&&(65011712&e.flags)!=(65011712&t.flags)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),nm=!1,am=0,sm=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");null===e||gg||null!==(e=e.dependencies)&&nr(e)&&(gg=!0),jy?(jy=!1,e=!0):e=!1,e&&(t=P(t)||"Unknown",Gy.has(t)||Qy.has(t)||(Gy.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Qr(e,t,n,r){Jy=e;var o=0;do{if(rm&&(sm=null),am=0,rm=!1,o>=um)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o+=1,dm=!1,tm=em=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}pm=-1,ef.H=bm,i=Em(t,n,r)}while(rm);return i}function Zr(){var e=ef.H,t=e.useState()[0];return t="function"==typeof t.then?ro(t):t,e=e.useState()[0],(null!==em?em.memoizedState:null)!==e&&(Jy.flags|=1024),t}function Yr(){var e=0!==im;return im=0,e}function Jr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&xh)!==bh?-402655237&t.flags:-2053&t.flags,e.lanes&=~n}function eo(e){if(nm){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}nm=!1}Yy=0,fm=tm=em=Jy=null,pm=-1,lm=null,rm=!1,am=im=0,sm=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===tm?Jy.memoizedState=tm=e:tm=tm.next=e,tm}function no(){if(null===em){var e=Jy.alternate;e=null!==e?e.memoizedState:null}else e=em.next;var t=null===tm?Jy.memoizedState:tm.next;if(null!==t)tm=t,em=e;else{if(null===e){if(null===Jy.alternate)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}e={memoizedState:(em=e).memoizedState,baseState:em.baseState,baseQueue:em.baseQueue,queue:em.queue,next:null},null===tm?Jy.memoizedState=tm=e:tm=tm.next=e}return tm}function ro(e){var t=am;return am+=1,null===sm&&(sm={didWarnAboutUncachedPromise:!1,thenables:[]}),e=Tr(sm,e,t),t=Jy,null===(null===tm?t.memoizedState:tm.next)&&(t=t.alternate,ef.H=null!==t&&null!==t.memoizedState?gm:ym),e}function oo(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ro(e);if(e.$$typeof===zl)return or(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function io(e){var t=null,n=Jy.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Jy.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Jy.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index])||dm)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ql;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function ao(e,t){return"function"==typeof t?t(e):t}function so(e,t,n){var r=to();if(void 0!==n){var o=n(t);if(om){K(!0);try{n(t)}finally{K(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=pi.bind(null,Jy,e),[r.memoizedState,e]}function co(e){return uo(no(),em,e)}function uo(e,t,n){var r=e.queue;if(null===r)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}t.baseQueue!==o&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var s=a=null,c=null,u=t=o.next,l=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(nb&f)===f:(Yy&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===py&&(l=!0);else{if((Yy&p)===p){u=u.next,p===py&&(l=!0);continue}f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=f,a=i):c=c.next=f,Jy.lanes|=p,wb|=p}f=u.action,om&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,a=i):c=c.next=p,Jy.lanes|=f,wb|=f;u=u.next}while(null!==u&&u!==t);if(null===c?a=i:c.next=s,!Wd(i,e.memoizedState)&&(gg=!0,l&&null!==(n=dy)))throw n;e.memoizedState=i,e.baseState=a,e.baseQueue=c,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function lo(e){var t=no(),n=t.queue;if(null===n)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Wd(i,t.memoizedState)||(gg=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function fo(e,t,n){var r=Jy,o=to();if(Dh){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var i=n();Ay||i===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ay=!0)}else{if(i=t(),Ay||(n=t(),Wd(i,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ay=!0)),null===eb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");124&nb||ho(r,t,i)}return o.memoizedState=i,n={value:i,getSnapshot:t},o.queue=n,Vo(mo.bind(null,r,n,e),[e]),r.flags|=2048,Do(Ny|Dy,{destroy:void 0,resource:void 0},yo.bind(null,r,n,i,t),null),i}function po(e,t,n){var r=Jy,o=no(),i=Dh;if(i){if(void 0===n)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!Ay){var a=t();Wd(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ay=!0)}(a=!Wd((em||o).memoizedState,n))&&(o.memoizedState=n,gg=!0),o=o.queue;var s=mo.bind(null,r,o,e);if(Fo(2048,Dy,s,[e]),o.getSnapshot!==t||a||null!==tm&&tm.memoizedState.tag&Ny){if(r.flags|=2048,Do(Ny|Dy,{destroy:void 0,resource:void 0},yo.bind(null,r,o,n,t),null),null===eb)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||124&Yy||ho(r,t,n)}return n}function ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jy.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Jy.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function yo(e,t,n,r){t.value=n,t.getSnapshot=r,go(t)&&bo(e)}function mo(e,t,n){return n(function(){go(t)&&bo(e)})}function go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wd(e,n)}catch(e){return!0}}function bo(e){var t=bn(e,2);null!==t&&Cs(t,e,2)}function vo(e){var t=to();if("function"==typeof e){var n=e;if(e=n(),om){K(!0);try{n()}finally{K(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:e},t}function wo(e){var t=(e=vo(e)).queue,n=di.bind(null,Jy,t);return t.dispatch=n,[e.memoizedState,n]}function So(e){var t=to();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=yi.bind(null,Jy,!0,n),n.dispatch=t,[e,t]}function xo(e,t){return ko(no(),em,e,t)}function ko(e,t,n,r){return e.baseState=n,uo(e,em,"function"==typeof r?r:ao)}function Eo(e,t){var n=no();return null!==em?ko(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])}function To(e,t,n,r,o){if(mi(e))throw Error("Cannot update form state while rendering.");if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==ef.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,Ao(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Ao(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=ef.T,a={};ef.T=a,ef.T._updatedFibers=new Set;try{var s=n(o,r),c=ef.S;null!==c&&c(a,s),Co(e,t,s)}catch(n){Oo(e,t,n)}finally{ef.T=i,null===i&&a._updatedFibers&&(e=a._updatedFibers.size,a._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{Co(e,t,a=n(o,r))}catch(n){Oo(e,t,n)}}function Co(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?(n.then(function(n){_o(e,t,n)},function(n){return Oo(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):_o(e,t,n)}function _o(e,t,n){t.status="fulfilled",t.value=n,Po(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ao(e,n)))}function Oo(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Po(t),t=t.next}while(t!==r)}e.action=null}function Po(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ro(e,t){return t}function jo(e,t){if(Dh){var n=eb.formState;if(null!==n){e:{var r=Jy;if(Dh){if(Bh){t:{for(var o=Bh,i=Vh;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Su(o.nextSibling))){o=null;break t}}o=(i=o.data)===Fv||i===Vv?o:null}if(o){Bh=Su(o.nextSibling),r=o.data===Fv;break e}}qn(r)}r=!1}r&&(t=n[0])}}return(n=to()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:t},n.queue=r,n=di.bind(null,Jy,r),r.dispatch=n,r=vo(!1),i=yi.bind(null,Jy,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=to()).queue=o,n=To.bind(null,Jy,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Io(e){return No(no(),em,e)}function No(e,t,n){if(t=uo(e,t,Ro)[0],e=co(ao)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ro(t)}catch(e){if(e===Cy)throw Oy;throw e}else r=t;var o=(t=no()).queue,i=o.dispatch;return n!==t.memoizedState&&(Jy.flags|=2048,Do(Ny|Dy,{destroy:void 0,resource:void 0},Lo.bind(null,o,n),null)),[r,i,e]}function Lo(e,t){e.action=t}function Bo(e){var t=no(),n=em;if(null!==n)return No(t,n,e);no(),t=t.memoizedState;var r=(n=no()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Do(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Jy.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Jy.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Uo(e){return e={current:e},to().memoizedState=e}function Mo(e,t,n,r){var o=to();r=void 0===r?null:r,Jy.flags|=e,o.memoizedState=Do(Ny|t,{destroy:void 0,resource:void 0},n,r)}function Fo(e,t,n,r){var o=no();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==em&&null!==r&&$r(r,em.memoizedState.deps)?o.memoizedState=Do(t,i,n,r):(Jy.flags|=e,o.memoizedState=Do(Ny|t,i,n,r))}function Vo(e,t){(Jy.mode&xh)!==bh&&(Jy.mode&kh)===bh?Mo(276826112,Dy,e,t):Mo(8390656,Dy,e,t)}function qo(e,t){var n=4194308;return(Jy.mode&xh)!==bh&&(n|=134217728),Mo(n,By,e,t)}function zo(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Ho(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null;var r=4194308;(Jy.mode&xh)!==bh&&(r|=134217728),Mo(r,By,zo.bind(null,t,e),n)}function Wo(e,t,n){"function"!=typeof t&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null"),n=null!=n?n.concat([e]):null,Fo(4,By,zo.bind(null,t,e),n)}function Ko(e,t){return to().memoizedState=[e,void 0===t?null:t],e}function $o(e,t){var n=no();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&$r(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xo(e,t){var n=to();t=void 0===t?null:t;var r=e();if(om){K(!0);try{e()}finally{K(!1)}}return n.memoizedState=[r,t],r}function Go(e,t){var n=no();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&$r(t,r[1]))return r[0];if(r=e(),om){K(!0);try{e()}finally{K(!1)}}return n.memoizedState=[r,t],r}function Qo(e,t){return Jo(to(),e,t)}function Zo(e,t){return ei(no(),em.memoizedState,e,t)}function Yo(e,t){var n=no();return null===em?Jo(n,e,t):ei(n,em.memoizedState,e,t)}function Jo(e,t,n){return void 0===n||1073741824&Yy?e.memoizedState=t:(e.memoizedState=n,e=As(),Jy.lanes|=e,wb|=e,n)}function ei(e,t,n,r){return Wd(n,t)?n:null!==Ky.current?(e=Jo(e,n,r),Wd(e,t)||(gg=!0),e):42&Yy?(e=As(),Jy.lanes|=e,wb|=e,t):(gg=!0,e.memoizedState=n)}function ti(e,t,n,r,o){var i=tf.p;tf.p=0!==i&&i<Bf?i:Bf;var a,s,c,u=ef.T,l={};ef.T=l,yi(e,!1,t,n),l._updatedFibers=new Set;try{var f=o(),p=ef.S;if(null!==p&&p(l,f),null!==f&&"object"==typeof f&&"function"==typeof f.then)hi(e,t,(a=r,s=[],c={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},f.then(function(){c.status="fulfilled",c.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(c.status="rejected",c.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),c),Ts(e));else hi(e,t,r,Ts(e))}catch(n){hi(e,t,{then:function(){},status:"rejected",reason:n},Ts(e))}finally{tf.p=i,ef.T=u,null===u&&l._updatedFibers&&(e=l._updatedFibers.size,l._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function ni(e,t,n,r){if(5!==e.tag)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var o=ri(e).queue;ti(e,o,t,Tw,null===n?f:function(){return oi(e),n(r)})}function ri(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:Tw,baseState:Tw,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:Tw},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function oi(e){null===ef.T&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."),hi(e,ri(e).next.queue,{},Ts(e))}function ii(){var e=vo(!1);return e=ti.bind(null,Jy,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function ai(){var e=co(ao)[0],t=no().memoizedState;return["boolean"==typeof e?e:ro(e),t]}function si(){var e=lo(ao)[0],t=no().memoizedState;return["boolean"==typeof e?e:ro(e),t]}function ci(){return or(Aw)}function ui(){var e=to(),t=eb.identifierPrefix;if(Dh){var n=Nh;t="«"+t+"R"+(n=(Ih&~(1<<32-Pf(Ih)-1)).toString(32)+n),0<(n=im++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=cm++).toString(32)+"»";return e.memoizedState=t}function li(){return to().memoizedState=fi.bind(null,Jy)}function fi(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 24:case 3:var r=Ts(n),o=Rr(n,e=Pr(r),r);return null!==o&&(Cs(o,n,r),jr(o,n,r)),n=sr(),null!=t&&null!==o&&console.error("The seed argument is not enabled outside experimental channels."),void(e.payload={cache:n})}n=n.return}}function pi(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var o={lane:r=Ts(e),revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};mi(e)?gi(t,o):null!==(o=gn(e,t,o,r))&&(Cs(o,e,r),bi(o,t,r)),J(e,r)}function di(e,t,n){var r=arguments;"function"==typeof r[3]&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),hi(e,t,n,r=Ts(e)),J(e,r)}function hi(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(mi(e))gi(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer)){var a=ef.H;ef.H=wm;try{var s=t.lastRenderedState,c=i(s,n);if(o.hasEagerState=!0,o.eagerState=c,Wd(c,s))return mn(e,t,o,0),null===eb&&yn(),!1}catch(e){}finally{ef.H=a}}if(null!==(n=gn(e,t,o,r)))return Cs(n,e,r),bi(n,t,r),!0}return!1}function yi(e,t,n,r){if(null===ef.T&&0===py&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),r={lane:2,revertLane:kc(),action:r,hasEagerState:!1,eagerState:null,next:null},mi(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else null!==(t=gn(e,n,r,2))&&Cs(t,e,2);J(e,2)}function mi(e){var t=e.alternate;return e===Jy||null!==t&&t===Jy}function gi(e,t){rm=nm=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bi(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,le(e,n)}}function vi(e){var t=zm;return null!=e&&(zm=null===t?e:t.concat(e)),t}function wi(e,t,n){for(var r=Object.keys(e.props),o=0;o<r.length;o++){var i=r[o];if("children"!==i&&"key"!==i){null===t&&((t=Rn(e,n.mode,0))._debugInfo=zm,t.return=n),Me(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},i);break}}}function Si(e){var t=qm;return qm+=1,null===Vm&&(Vm={didWarnAboutUncachedPromise:!1,thenables:[]}),Tr(Vm,e,t)}function xi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ki(e,t){if(t.$$typeof===Ll)throw Error('A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.');throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function Ei(e,t){var n=P(e)||"Component";Km[n]||(Km[n]=!0,t=t.displayName||t.name||"Component",3===e.tag?console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)",t,t,t):console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>",t,t,n,t,n))}function Ti(e,t){var n=P(e)||"Component";$m[n]||($m[n]=!0,t=String(t),3===e.tag?console.error("Symbols are not valid as a React child.\n root.render(%s)",t):console.error("Symbols are not valid as a React child.\n <%s>%s</%s>",n,t,n))}function Ai(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=_n(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=In(n,e.mode,r)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=zm,t):((t=o(t,n)).return=e,t._debugInfo=zm,t)}function u(e,t,n,r){var i=n.type;return i===Ul?(wi(n,t=f(e,t,n.props.children,r,n.key),e),t):null!==t&&(t.elementType===i||kn(t,n)||"object"==typeof i&&null!==i&&i.$$typeof===Xl&&Fm(i)===t.type)?(xi(t=o(t,n.props),n),t.return=e,t._debugOwner=n._owner,t._debugInfo=zm,t):(xi(t=Rn(n,e.mode,r),n),t.return=e,t._debugInfo=zm,t)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nn(n,e.mode,r)).return=e,t._debugInfo=zm,t):((t=o(t,n.children||[])).return=e,t._debugInfo=zm,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=jn(n,e.mode,r,i)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=zm,t):((t=o(t,n)).return=e,t._debugInfo=zm,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=In(""+t,e.mode,n)).return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=zm,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Bl:return xi(n=Rn(t,e.mode,n),t),n.return=e,e=vi(t._debugInfo),n._debugInfo=zm,zm=e,n;case Dl:return(t=Nn(t,e.mode,n)).return=e,t._debugInfo=zm,t;case Xl:var r=vi(t._debugInfo);return e=p(e,t=Fm(t),n),zm=r,e}if(Jl(t)||C(t))return(n=jn(t,e.mode,n,null)).return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=vi(t._debugInfo),n._debugInfo=zm,zm=e,n;if("function"==typeof t.then)return r=vi(t._debugInfo),e=p(e,Si(t),n),zm=r,e;if(t.$$typeof===zl)return p(e,ir(e,t),n);ki(e,t)}return"function"==typeof t&&Ei(e,t),"symbol"==typeof t&&Ti(e,t),null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Bl:return n.key===o?(o=vi(n._debugInfo),e=u(e,t,n,r),zm=o,e):null;case Dl:return n.key===o?l(e,t,n,r):null;case Xl:return o=vi(n._debugInfo),e=d(e,t,n=Fm(n),r),zm=o,e}if(Jl(n)||C(n))return null!==o?null:(o=vi(n._debugInfo),e=f(e,t,n,r,null),zm=o,e);if("function"==typeof n.then)return o=vi(n._debugInfo),e=d(e,t,Si(n),r),zm=o,e;if(n.$$typeof===zl)return d(e,t,ir(e,n),r);ki(e,n)}return"function"==typeof n&&Ei(e,n),"symbol"==typeof n&&Ti(e,n),null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Bl:return n=e.get(null===r.key?n:r.key)||null,e=vi(r._debugInfo),t=u(t,n,r,o),zm=e,t;case Dl:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Xl:var i=vi(r._debugInfo);return t=y(e,t,n,r=Fm(r),o),zm=i,t}if(Jl(r)||C(r))return n=e.get(n)||null,e=vi(r._debugInfo),t=f(t,n,r,o,null),zm=e,t;if("function"==typeof r.then)return i=vi(r._debugInfo),t=y(e,t,n,Si(r),o),zm=i,t;if(r.$$typeof===zl)return y(e,t,n,ir(t,r),o);ki(t,r)}return"function"==typeof r&&Ei(t,r),"symbol"==typeof r&&Ti(t,r),null}function m(e,t,n,r){if("object"!=typeof n||null===n)return r;switch(n.$$typeof){case Bl:case Dl:c(e,t,n);var o=n.key;if("string"!=typeof o)break;if(null===r){(r=new Set).add(o);break}if(!r.has(o)){r.add(o);break}Me(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",o)});break;case Xl:m(e,t,n=Fm(n),r)}return r}function g(s,c,u,l){if("object"==typeof u&&null!==u&&u.type===Ul&&null===u.key&&(wi(u,null,s),u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Bl:var f=vi(u._debugInfo);e:{for(var h=u.key;null!==c;){if(c.key===h){if((h=u.type)===Ul){if(7===c.tag){n(s,c.sibling),(l=o(c,u.props.children)).return=s,l._debugOwner=u._owner,l._debugInfo=zm,wi(u,l,s),s=l;break e}}else if(c.elementType===h||kn(c,u)||"object"==typeof h&&null!==h&&h.$$typeof===Xl&&Fm(h)===c.type){n(s,c.sibling),xi(l=o(c,u.props),u),l.return=s,l._debugOwner=u._owner,l._debugInfo=zm,s=l;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===Ul?((l=jn(u.props.children,s.mode,l,u.key)).return=s,l._debugOwner=s,l._debugTask=s._debugTask,l._debugInfo=zm,wi(u,l,s),s=l):(xi(l=Rn(u,s.mode,l),u),l.return=s,l._debugInfo=zm,s=l)}return s=a(s),zm=f,s;case Dl:e:{for(u=(f=u).key;null!==c;){if(c.key===u){if(4===c.tag&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){n(s,c.sibling),(l=o(c,f.children||[])).return=s,s=l;break e}n(s,c);break}t(s,c),c=c.sibling}(l=Nn(f,s.mode,l)).return=s,s=l}return a(s);case Xl:return f=vi(u._debugInfo),s=g(s,c,u=Fm(u),l),zm=f,s}if(Jl(u))return f=vi(u._debugInfo),s=function(o,a,s,c){for(var u=null,l=null,f=null,h=a,g=a=0,b=null;null!==h&&g<s.length;g++){h.index>g?(b=h,h=null):b=h.sibling;var v=d(o,h,s[g],c);if(null===v){null===h&&(h=b);break}u=m(o,v,s[g],u),e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===f?l=v:f.sibling=v,f=v,h=b}if(g===s.length)return n(o,h),Dh&&Ln(o,g),l;if(null===h){for(;g<s.length;g++)null!==(h=p(o,s[g],c))&&(u=m(o,h,s[g],u),a=i(h,a,g),null===f?l=h:f.sibling=h,f=h);return Dh&&Ln(o,g),l}for(h=r(h);g<s.length;g++)null!==(b=y(h,o,g,s[g],c))&&(u=m(o,b,s[g],u),e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),a=i(b,a,g),null===f?l=b:f.sibling=b,f=b);return e&&h.forEach(function(e){return t(o,e)}),Dh&&Ln(o,g),l}(s,c,u,l),zm=f,s;if(C(u)){if(f=vi(u._debugInfo),"function"!=typeof(h=C(u)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var b=h.call(u);return b===u?0===s.tag&&"[object GeneratorFunction]"===Object.prototype.toString.call(s.type)&&"[object Generator]"===Object.prototype.toString.call(b)||(Hm||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Hm=!0):u.entries!==h||xm||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xm=!0),s=function(o,a,s,c){if(null==s)throw Error("An iterable object provided no iterator.");for(var u=null,l=null,f=a,h=a=0,g=null,b=null,v=s.next();null!==f&&!v.done;h++,v=s.next()){f.index>h?(g=f,f=null):g=f.sibling;var w=d(o,f,v.value,c);if(null===w){null===f&&(f=g);break}b=m(o,w,v.value,b),e&&f&&null===w.alternate&&t(o,f),a=i(w,a,h),null===l?u=w:l.sibling=w,l=w,f=g}if(v.done)return n(o,f),Dh&&Ln(o,h),u;if(null===f){for(;!v.done;h++,v=s.next())null!==(f=p(o,v.value,c))&&(b=m(o,f,v.value,b),a=i(f,a,h),null===l?u=f:l.sibling=f,l=f);return Dh&&Ln(o,h),u}for(f=r(f);!v.done;h++,v=s.next())null!==(g=y(f,o,h,v.value,c))&&(b=m(o,g,v.value,b),e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),a=i(g,a,h),null===l?u=g:l.sibling=g,l=g);return e&&f.forEach(function(e){return t(o,e)}),Dh&&Ln(o,h),u}(s,c,b,l),zm=f,s}if("function"==typeof u.then)return f=vi(u._debugInfo),s=g(s,c,Si(u),l),zm=f,s;if(u.$$typeof===zl)return g(s,c,ir(s,u),l);ki(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(f=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(l=o(c,f)).return=s,s=l):(n(s,c),(l=In(f,s.mode,l)).return=s,l._debugOwner=s,l._debugTask=s._debugTask,l._debugInfo=zm,s=l),a(s)):("function"==typeof u&&Ei(s,u),"symbol"==typeof u&&Ti(s,u),n(s,c))}return function(e,t,n,r){var o=zm;zm=null;try{qm=0;var i=g(e,t,n,r);return Vm=null,i}catch(t){if(t===Cy||t===Oy)throw t;var a=h(29,t,null,e.mode);a.lanes=r,a.return=e;var s=a._debugInfo=zm;if(a._debugOwner=e._debugOwner,a._debugTask=e._debugTask,null!=s)for(var c=s.length-1;0<=c;c--)if("string"==typeof s[c].stack){a._debugOwner=s[c],a._debugTask=s[c].debugTask;break}return a}finally{zm=o}}}function Ci(e){var t=e.alternate;I(eg,eg.current&Ym,e),I(Qm,e,e),null===Zm&&(null===t||null!==Ky.current||null!==t.memoizedState)&&(Zm=e)}function _i(e){if(22===e.tag){if(I(eg,eg.current,e),I(Qm,e,e),null===Zm){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Zm=e)}}else Oi(e)}function Oi(e){I(eg,eg.current,e),I(Qm,Qm.current,e)}function Pi(e){j(Qm,e),Zm===e&&(Zm=null),j(eg,e)}function Ri(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Lv||wu(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ji(e){if(null!==e&&"function"!=typeof e){var t=String(e);fg.has(t)||(fg.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ii(e,t,n,r){var o=e.memoizedState,i=n(r,o);if(e.mode&Sh){K(!0);try{i=n(r,o)}finally{K(!1)}}void 0===i&&(t=_(t)||"Component",sg.has(t)||(sg.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),o=null==i?o:Nl({},o,i),e.memoizedState=o,0===e.lanes&&(e.updateQueue.baseState=o)}function Ni(e,t,n,r,o,i,a){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){if(n=s.shouldComponentUpdate(r,i,a),e.mode&Sh){K(!0);try{n=s.shouldComponentUpdate(r,i,a)}finally{K(!1)}}return void 0===n&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",_(t)||"Component"),n}return!t.prototype||!t.prototype.isPureReactComponent||(!rn(n,r)||!rn(o,i))}function Li(e,t,n,r){var o=t.state;"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o&&(e=P(e)||"Component",ng.has(e)||(ng.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),pg.enqueueReplaceState(t,t.state,null))}function Bi(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=Nl({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Di(e){dg(e),console.warn("%s\n\n%s\n",hg?"An error occurred in the <"+hg+"> component.":"An error occurred in one of your React components.","Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.")}function Ui(e){var t=hg?"The above error occurred in the <"+hg+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+(yg||"Anonymous")+".";if("object"==typeof e&&null!==e&&"string"==typeof e.environmentName){var r=e.environmentName;"string"==typeof(e=["%o\n\n%s\n\n%s\n",e,t,n].slice(0))[0]?e.splice(0,1,Cw+e[0],_w,Pw+r+Pw,Ow):e.splice(0,0,Cw,_w,Pw+r+Pw,Ow),e.unshift(console),(r=Rw.apply(console.error,e))()}else console.error("%o\n\n%s\n\n%s\n",e,t,n)}function Mi(e){dg(e)}function Fi(e,t){try{hg=t.source?P(t.source):null,yg=null;var n=t.value;if(null!==ef.actQueue)ef.thrownErrors.push(n);else(0,e.onUncaughtError)(n,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Vi(e,t,n){try{hg=n.source?P(n.source):null,yg=P(t),(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function qi(e,t,n){return(n=Pr(n)).tag=Vy,n.payload={element:null},n.callback=function(){Me(t.source,Fi,e,t)},n}function zi(e){return(e=Pr(e)).tag=Vy,e}function Hi(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){En(n),Me(r.source,Vi,t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){En(n),Me(r.source,Vi,t,n,r),"function"!=typeof o&&(null===Ib?Ib=new Set([this]):Ib.add(this)),jm(this,r),"function"==typeof o||!(2&n.lanes)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",P(n)||"Unknown")})}function Wi(e,t,n,r){t.child=null===e?Gm(t,null,n,r):Xm(t,e.child,n,r)}function Ki(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return rr(t),G(t),r=Xr(e,t,n,a,i,o),s=Yr(),Q(),null===e||gg?(Dh&&s&&Dn(t),t.flags|=1,Wi(e,t,r,o),t.child):(Jr(e,t,o),da(e,t,o))}function $i(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Cn(i)||void 0!==i.defaultProps||null!==n.compare?((e=Pn(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(n=Sn(i),t.tag=15,t.type=n,na(t,i),Xi(e,t,n,r,o))}if(i=e.child,!ha(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:rn)(a,r)&&e.ref===t.ref)return da(e,t,o)}return t.flags|=1,(e=_n(i,r)).ref=t.ref,e.return=t,t.child=e}function Xi(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(rn(i,r)&&e.ref===t.ref&&t.type===e.type){if(gg=!1,t.pendingProps=r=i,!ha(e,o))return t.lanes=e.lanes,da(e,t,o);131072&e.flags&&(gg=!0)}}return Yi(e,t,n,r,o)}function Gi(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Qi(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Qi(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Sr(t,null!==i?i.cachePool:null),null!==i?Mr(t,i):Fr(t),_i(t)}else null!==i?(Sr(t,i.cachePool),Mr(t,i),Oi(t),t.memoizedState=null):(null!==e&&Sr(t,null),Fr(t),Oi(t));return Wi(e,t,o,n),t.child}function Qi(e,t,n,r){var o=wr();return o=null===o?null:{parent:ny._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Sr(t,null),Fr(t),_i(t),null!==e&&tr(e,t,r,!0),null}function Zi(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===n||(t.flags|=4194816)}}function Yi(e,t,n,r,o){if(n.prototype&&"function"==typeof n.prototype.render){var i=_(n)||"Unknown";bg[i]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",i,i),bg[i]=!0)}return t.mode&Sh&&my.recordLegacyContextWarning(t,null),null===e&&(na(t,t.type),n.contextTypes&&(i=_(n)||"Unknown",wg[i]||(wg[i]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",i)))),rr(t),G(t),n=Xr(e,t,n,r,void 0,o),r=Yr(),Q(),null===e||gg?(Dh&&r&&Dn(t),t.flags|=1,Wi(e,t,n,o),t.child):(Jr(e,t,o),da(e,t,o))}function Ji(e,t,n,r,o,i){return rr(t),G(t),pm=-1,dm=null!==e&&e.type!==t.type,t.updateQueue=null,n=Qr(t,r,n,o),Gr(e,t),r=Yr(),Q(),null===e||gg?(Dh&&r&&Dn(t),t.flags|=1,Wi(e,t,n,i),t.child):(Jr(e,t,i),da(e,t,i))}function ea(e,t,n,r,o){switch(a(t)){case!1:var i=t.stateNode,s=new t.type(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,s,null);break;case!0:t.flags|=128,t.flags|=65536,i=Error("Simulated error coming from DevTools");var c=o&-o;if(t.lanes|=c,null===(s=eb))throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Hi(c=zi(c),s,t,hn(i,t)),Ir(t,c)}if(rr(t),null===t.stateNode){if(s=yh,i=n.contextType,"contextType"in n&&null!==i&&(void 0===i||i.$$typeof!==zl)&&!lg.has(n)&&(lg.add(n),c=void 0===i?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof i?" However, it is set to a "+typeof i+".":i.$$typeof===ql?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",_(n)||"Component",c)),"object"==typeof i&&null!==i&&(s=or(i)),i=new n(r,s),t.mode&Sh){K(!0);try{i=new n(r,s)}finally{K(!1)}}if(s=t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=pg,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=tg,"function"==typeof n.getDerivedStateFromProps&&null===s&&(s=_(n)||"Component",rg.has(s)||(rg.add(s),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",s,null===i.state?"null":"undefined",s))),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate){var u=c=s=null;if("function"==typeof i.componentWillMount&&!0!==i.componentWillMount.__suppressDeprecationWarning?s="componentWillMount":"function"==typeof i.UNSAFE_componentWillMount&&(s="UNSAFE_componentWillMount"),"function"==typeof i.componentWillReceiveProps&&!0!==i.componentWillReceiveProps.__suppressDeprecationWarning?c="componentWillReceiveProps":"function"==typeof i.UNSAFE_componentWillReceiveProps&&(c="UNSAFE_componentWillReceiveProps"),"function"==typeof i.componentWillUpdate&&!0!==i.componentWillUpdate.__suppressDeprecationWarning?u="componentWillUpdate":"function"==typeof i.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==s||null!==c||null!==u){i=_(n)||"Component";var l="function"==typeof n.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ig.has(i)||(ig.add(i),console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",i,l,null!==s?"\n "+s:"",null!==c?"\n "+c:"",null!==u?"\n "+u:""))}}i=t.stateNode,s=_(n)||"Component",i.render||(n.prototype&&"function"==typeof n.prototype.render?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),i.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),n.childContextTypes&&!ug.has(n)&&(ug.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),n.contextTypes&&!cg.has(n)&&(cg.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",s)),"function"==typeof i.componentShouldUpdate&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),n.prototype&&n.prototype.isPureReactComponent&&void 0!==i.shouldComponentUpdate&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",_(n)||"A pure component"),"function"==typeof i.componentDidUnmount&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),"function"==typeof i.componentDidReceiveProps&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),"function"==typeof i.componentWillRecieveProps&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),"function"==typeof i.UNSAFE_componentWillRecieveProps&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),c=i.props!==r,void 0!==i.props&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),i.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),"function"!=typeof i.getSnapshotBeforeUpdate||"function"==typeof i.componentDidUpdate||og.has(n)||(og.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",_(n))),"function"==typeof i.getDerivedStateFromProps&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),"function"==typeof i.getDerivedStateFromError&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),"function"==typeof n.getSnapshotBeforeUpdate&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(c=i.state)&&("object"!=typeof c||Jl(c))&&console.error("%s.state: must be set to an object or null",s),"function"==typeof i.getChildContext&&"object"!=typeof n.childContextTypes&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},_r(t),s=n.contextType,i.context="object"==typeof s&&null!==s?or(s):yh,i.state===r&&(s=_(n)||"Component",ag.has(s)||(ag.add(s),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))),t.mode&Sh&&my.recordLegacyContextWarning(t,i),my.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(Ii(t,n,s,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",P(t)||"Component"),pg.enqueueReplaceState(i,i.state,null)),Lr(t,r,i,o),Nr(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),(t.mode&xh)!==bh&&(t.flags|=134217728),i=!0}else if(null===e){i=t.stateNode;var f=t.memoizedProps;c=Bi(n,f),i.props=c;var p=i.context;u=n.contextType,s=yh,"object"==typeof u&&null!==u&&(s=or(u)),u="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate,f=t.pendingProps!==f,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(f||p!==s)&&Li(t,i,r,s),qy=!1;var d=t.memoizedState;i.state=d,Lr(t,r,i,o),Nr(),p=t.memoizedState,f||d!==p||qy?("function"==typeof l&&(Ii(t,n,l,r),p=t.memoizedState),(c=qy||Ni(t,n,c,r,d,p,s))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308),(t.mode&xh)!==bh&&(t.flags|=134217728)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),(t.mode&xh)!==bh&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,i=c):("function"==typeof i.componentDidMount&&(t.flags|=4194308),(t.mode&xh)!==bh&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Or(e,t),u=Bi(n,s=t.memoizedProps),i.props=u,l=t.pendingProps,d=i.context,p=n.contextType,c=yh,"object"==typeof p&&null!==p&&(c=or(p)),(p="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==l||d!==c)&&Li(t,i,r,c),qy=!1,d=t.memoizedState,i.state=d,Lr(t,r,i,o),Nr();var h=t.memoizedState;s!==l||d!==h||qy||null!==e&&null!==e.dependencies&&nr(e.dependencies)?("function"==typeof f&&(Ii(t,n,f,r),h=t.memoizedState),(u=qy||Ni(t,n,u,r,d,h,c)||null!==e&&null!==e.dependencies&&nr(e.dependencies))?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,i=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),i=!1)}if(c=i,Zi(e,t),s=!!(128&t.flags),c||s){if(c=t.stateNode,Fe(t),s&&"function"!=typeof n.getDerivedStateFromError)n=null,ay=-1;else{if(G(t),n=Am(c),t.mode&Sh){K(!0);try{Am(c)}finally{K(!1)}}Q()}t.flags|=1,null!==e&&s?(t.child=Xm(t,e.child,null,o),t.child=Xm(t,null,n,o)):Wi(e,t,n,o),t.memoizedState=c.state,e=t.child}else e=da(e,t,o);return o=t.stateNode,i&&o.props!==r&&(xg||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",P(t)||"a component"),xg=!0),e}function ta(e,t,n,r){return Kn(),t.flags|=256,Wi(e,t,n,r),t.child}function na(e,t){t&&t.childContextTypes&&console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",t.displayName||t.name||"Component"),"function"==typeof t.getDerivedStateFromProps&&(e=_(t)||"Unknown",Sg[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),Sg[e]=!0)),"object"==typeof t.contextType&&null!==t.contextType&&(t=_(t)||"Unknown",vg[t]||(console.error("%s: Function components do not support contextType.",t),vg[t]=!0))}function ra(e){return{baseLanes:e,cachePool:xr()}}function oa(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=kb),e}function ia(e,t,n){var r,o=t.pendingProps;i(t)&&(t.flags|=128);var a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(eg.current&Jm)),r&&(a=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(Dh){if(a?Ci(t):Oi(t),Dh){var c,u=Bh;if(!(c=!u)){e:{var l=u;for(c=Vh;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=Su(l.nextSibling))){c=null;break e}}c=l}null!==c?(Mn(),t.memoizedState={dehydrated:c,treeContext:null!==jh?{id:Ih,overflow:Nh}:null,retryLane:536870912,hydrationErrors:null},(l=h(18,null,null,bh)).stateNode=c,l.return=t,t.child=l,Lh=t,Bh=null,c=!0):c=!1,c=!c}c&&(Vn(t,u),qn(t))}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return wu(u)?t.lanes=32:t.lanes=536870912,null;Pi(t)}return u=o.children,o=o.fallback,a?(Oi(t),u=sa({mode:"hidden",children:u},a=t.mode),o=jn(o,a,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(a=t.child).memoizedState=ra(n),a.childLanes=oa(e,r,n),t.memoizedState=Tg,o):(Ci(t),aa(t,u))}var f=e.memoizedState;if(null!==f&&null!==(u=f.dehydrated)){if(s)256&t.flags?(Ci(t),t.flags&=-257,t=ca(e,t,n)):null!==t.memoizedState?(Oi(t),t.child=e.child,t.flags|=128,t=null):(Oi(t),a=o.fallback,u=t.mode,o=sa({mode:"visible",children:o.children},u),(a=jn(a,u,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,Xm(t,e.child,null,n),(o=t.child).memoizedState=ra(n),o.childLanes=oa(e,r,n),t.memoizedState=Tg,t=a);else if(Ci(t),Dh&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),wu(u)){if(r=u.nextSibling&&u.nextSibling.dataset){c=r.dgst;var p=r.msg;l=r.stck;var d=r.cstck}r=c,o=l,c=a=d,(a=(u=p)?Error(u):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).stack=o||"",a.digest=r,o={value:a,source:null,stack:r=void 0===c?null:c},"string"==typeof r&&uh.set(a,o),Xn(o),t=ca(e,t,n)}else if(gg||tr(e,t,n,!1),r=0!==(n&e.childLanes),gg||r){if(null!==(r=eb)&&(0!==(o=0!==((o=42&(o=n&-n)?1:fe(o))&(r.suspendedLanes|n))?0:o)&&o!==f.retryLane))throw f.retryLane=o,bn(e,o),Cs(r,e,o),mg;u.data===Lv||Us(),t=ca(e,t,n)}else u.data===Lv?(t.flags|=192,t.child=e.child,t=null):(e=f.treeContext,Bh=Su(u.nextSibling),Lh=t,Dh=!0,Fh=null,Uh=!1,Mh=null,Vh=!1,null!==e&&(Mn(),Ph[Rh++]=Ih,Ph[Rh++]=Nh,Ph[Rh++]=jh,Ih=e.id,Nh=e.overflow,jh=t),(t=aa(t,o.children)).flags|=4096);return t}return a?(Oi(t),a=o.fallback,u=t.mode,l=(c=e.child).sibling,(o=_n(c,{mode:"hidden",children:o.children})).subtreeFlags=65011712&c.subtreeFlags,null!==l?a=_n(l,a):(a=jn(a,u,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,null===(u=e.child.memoizedState)?u=ra(n):(null!==(c=u.cachePool)?(l=ny._currentValue,c=c.parent!==l?{parent:l,pool:l}:c):c=xr(),u={baseLanes:u.baseLanes|n,cachePool:c}),a.memoizedState=u,a.childLanes=oa(e,r,n),t.memoizedState=Tg,o):(Ci(t),e=(n=e.child).sibling,(n=_n(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function aa(e,t){return(t=sa({mode:"visible",children:t},e.mode)).return=e,e.child=t}function sa(e,t){return(e=h(22,e,null,t)).lanes=0,e.stateNode={_visibility:lh,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function ca(e,t,n){return Xm(t,e.child,null,n),(e=aa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ua(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Jn(e.return,t,n)}function la(e,t){var n=Jl(e);return e=!n&&"function"==typeof C(e),!n&&!e||(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1)}function fa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function pa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(r=r.children,void 0!==o&&"forwards"!==o&&"backwards"!==o&&"together"!==o&&!kg[o])if(kg[o]=!0,"string"==typeof o)switch(o.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',o,o.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',o,o.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',o)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',o);void 0===i||Eg[i]||("collapsed"!==i&&"hidden"!==i?(Eg[i]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',i)):"forwards"!==o&&"backwards"!==o&&(Eg[i]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)));e:if(("forwards"===o||"backwards"===o)&&null!=r&&!1!==r)if(Jl(r)){for(var a=0;a<r.length;a++)if(!la(r[a],a))break e}else if(a=C(r),"function"==typeof a){if(a=a.call(r))for(var s=a.next(),c=0;!s.done;s=a.next()){if(!la(s.value,c))break e;c++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o);if(Wi(e,t,r,n),0!==((r=eg.current)&Jm))r=r&Ym|Jm,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ua(e,n,t);else if(19===e.tag)ua(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=Ym}switch(I(eg,r,t),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ri(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),fa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ri(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}fa(t,!0,n,null,i);break;case"together":fa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ay=-1,wb|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(tr(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==t.child){for(n=_n(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_n(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ha(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!nr(e))}function ya(e,t,n){if(t._debugNeedsRemount&&null!==e){(n=Pn(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes))._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(null===r)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw Error("Expected to find the previous sibling.");o.sibling=n}return null===(t=r.deletions)?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(null!==e)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)gg=!0;else{if(!(ha(e,n)||128&t.flags))return gg=!1,function(e,t,n){switch(t.tag){case 3:L(t,t.stateNode.containerInfo),Zn(t,ny,e.memoizedState.cache),Kn();break;case 27:case 5:U(t);break;case 4:L(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 12:0!==(n&t.childLanes)&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ia(e,t,n):(Ci(t),null!==(e=da(e,t,n))?e.sibling:null);Ci(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(tr(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return pa(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),I(eg,eg.current,t),r)break;return null;case 22:case 23:return t.lanes=0,Gi(e,t,n);case 24:Zn(t,ny,e.memoizedState.cache)}return da(e,t,n)}(e,t,n);gg=!!(131072&e.flags)}else gg=!1,(r=Dh)&&(Mn(),r=!!(1048576&t.flags)),r&&(r=t.index,Mn(),Bn(t,Oh,r));switch(t.lanes=0,t.tag){case 16:e:{if(r=t.pendingProps,e=Fm(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){if((o=e.$$typeof)===Hl){t.tag=11,t.type=e=xn(e),t=Ki(null,t,e,r,n);break e}if(o===$l){t.tag=14,t=$i(null,t,e,r,n);break e}}throw t="",null!==e&&"object"==typeof e&&e.$$typeof===Xl&&(t=" Did you wrap a component in React.lazy() more than once?"),e=_(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}Cn(e)?(r=Bi(e,r),t.tag=1,t.type=e=Sn(e),t=ea(null,t,e,r,n)):(t.tag=0,na(t,e),t.type=e=Sn(e),t=Yi(null,t,e,r,n))}return t;case 0:return Yi(e,t,t.type,t.pendingProps,n);case 1:return ea(e,t,r=t.type,o=Bi(r,t.pendingProps),n);case 3:e:{if(L(t,t.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");r=t.pendingProps;var i=t.memoizedState;o=i.element,Or(e,t),Lr(t,r,null,n);var a=t.memoizedState;if(r=a.cache,Zn(t,ny,r),r!==i.cache&&er(t,[ny],n,!0),Nr(),r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ta(e,t,r,n);break e}if(r!==o){Xn(o=hn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t)),t=ta(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(Bh=Su(e.firstChild),Lh=t,Dh=!0,Fh=null,Uh=!1,Mh=null,Vh=!0,e=Gm(t,null,r,n),t.child=e;e;)e.flags=-3&e.flags|4096,e=e.sibling}else{if(Kn(),r===o){t=da(e,t,n);break e}Wi(e,t,r,n)}t=t.child}return t;case 26:return Zi(e,t),null===e?(e=Iu(t.type,null,t.pendingProps,null))?t.memoizedState=e:Dh||(e=t.type,n=t.pendingProps,(r=nu(r=N(uf.current)).createElement(e))[Ff]=t,r[Vf]=n,Kc(r,e,n),Se(r),t.stateNode=r):t.memoizedState=Iu(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return U(t),null===e&&Dh&&(r=N(uf.current),o=D(),r=t.stateNode=_u(t.type,t.pendingProps,r,o,!1),Uh||null!==(o=tu(r,t.type,t.pendingProps,o))&&(Fn(t,0).serverProps=o),Lh=t,Vh=!0,o=Bh,fu(t.type)?(nw=o,Bh=Su(r.firstChild)):Bh=o),Wi(e,t,t.pendingProps.children,n),Zi(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&Dh&&(i=D(),r=kt(t.type,i.ancestorInfo),(a=!(o=Bh))||(null!==(a=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[$f])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;z(o.name,"name");var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Su(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,Vh))?(t.stateNode=a,Uh||null!==(i=tu(a,t.type,t.pendingProps,i))&&(Fn(t,0).serverProps=i),Lh=t,Bh=Su(a.firstChild),Vh=!1,i=!0):i=!1,a=!i),a&&(r&&Vn(t,o),qn(t))),U(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,r=i.children,iu(o,i)?r=null:null!==a&&iu(o,a)&&(t.flags|=32),null!==t.memoizedState&&(o=Xr(e,t,Zr,null,null,n),Aw._currentValue=o),Zi(e,t),Wi(e,t,r,n),t.child;case 6:return null===e&&Dh&&(e=t.pendingProps,e=null==(r=(n=D()).ancestorInfo.current)||Et(e,r.tag,n.ancestorInfo.implicitRootScope),(r=!(n=Bh))||(null!==(r=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Su(e.nextSibling)))return null}return e}(n,t.pendingProps,Vh))?(t.stateNode=r,Lh=t,Bh=null,r=!0):r=!1,r=!r),r&&(e&&Vn(t,n),qn(t))),null;case 13:return ia(e,t,n);case 4:return L(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xm(t,null,r,n):Wi(e,t,r,n),t.child;case 11:return Ki(e,t,t.type,t.pendingProps,n);case 7:return Wi(e,t,t.pendingProps,n),t.child;case 8:return Wi(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,(r=t.stateNode).effectDuration=-0,r.passiveEffectDuration=-0,Wi(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=(o=t.pendingProps).value,"value"in o||Ag||(Ag=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Zn(t,r,i),Wi(e,t,o.children,n),t.child;case 9:return o=t.type._context,"function"!=typeof(r=t.pendingProps.children)&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),rr(t),o=or(o),G(t),r=Em(r,o,void 0),Q(),t.flags|=1,Wi(e,t,r,n),t.child;case 14:return $i(e,t,t.type,t.pendingProps,n);case 15:return Xi(e,t,t.type,t.pendingProps,n);case 19:return pa(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((e=sa(r,n)).ref=t.ref,t.child=e,e.return=t,t=e):((e=_n(e.child,r)).ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return Gi(e,t,n);case 24:return rr(t),r=or(ny),null===e?(null===(o=wr())&&(o=eb,i=sr(),o.pooledCache=i,cr(i),null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},_r(t),Zn(t,ny,o)):(0!==(e.lanes&n)&&(Or(e,t),Lr(t,null,null,n),Nr()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),Zn(t,ny,r)):(r=i.cache,Zn(t,ny,r),r!==o.cache&&er(t,[ny],n,!0))),Wi(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ma(e){e.flags|=4}function ga(e,t){if("stylesheet"!==t.type||(t.state.loading&sw)!==rw)e.flags&=-16777217;else if(e.flags|=16777216,!Ku(t)){if(null!==(t=Qm.current)&&((4194048&nb)===nb?null!==Zm:(62914560&nb)!==nb&&!(536870912&nb)||t!==Zm))throw Ry=Py,_y;e.flags|=8192}}function ba(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ae():536870912,e.lanes|=t,Eb|=t)}function va(e,t){if(!Dh)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function wa(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&wh)!==bh){for(var o=e.selfBaseDuration,i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,o+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=o}else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else if((e.mode&wh)!==bh){o=e.actualDuration,i=e.selfBaseDuration;for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,o+=a.actualDuration,i+=a.treeBaseDuration,a=a.sibling;e.actualDuration=o,e.treeBaseDuration=i}else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Sa(e,t,n){var r=t.pendingProps;switch(Un(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return wa(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yn(ny,t),B(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Wn(t)?(Gn(),ma(t)):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,$n())),wa(t),null;case 26:return n=t.memoizedState,null===e?(ma(t),null!==n?(wa(t),ga(t,n)):(wa(t),t.flags&=-16777217)):n?n!==e.memoizedState?(ma(t),wa(t),ga(t,n)):(wa(t),t.flags&=-16777217):(e.memoizedProps!==r&&ma(t),wa(t),t.flags&=-16777217),null;case 27:M(t),n=N(uf.current);var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ma(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(t),null}e=D(),Wn(t)?zn(t):(e=_u(o,r,n,e,!0),t.stateNode=e,ma(t))}return wa(t),null;case 5:if(M(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ma(t);else{if(!r){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(t),null}if(o=D(),Wn(t))zn(t);else{switch(e=N(uf.current),kt(n,o.ancestorInfo),o=o.context,e=nu(e),o){case Wv:e=e.createElementNS(Dp,n);break;case Kv:e=e.createElementNS(Bp,n);break;default:switch(n){case"svg":e=e.createElementNS(Dp,n);break;case"math":e=e.createElementNS(Bp,n);break;case"script":(e=e.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?e.createElement("select",{is:r.is}):e.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?e.createElement(n,{is:r.is}):e.createElement(n),-1===n.indexOf("-")&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),"[object HTMLUnknownElement]"!==Object.prototype.toString.call(e)||ff.call(Gv,n)||(Gv[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[Ff]=t,e[Vf]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Kc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ma(t)}}return wa(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ma(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=N(uf.current),n=D(),Wn(t)){e=t.stateNode,n=t.memoizedProps,o=!Uh,r=null;var i=Lh;if(null!==i)switch(i.tag){case 3:o&&(null!==(o=ku(e,n,r))&&(Fn(t,0).serverProps=o));break;case 27:case 5:r=i.memoizedProps,o&&(null!==(o=ku(e,n,r))&&(Fn(t,0).serverProps=o))}e[Ff]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||qc(e.nodeValue,n)))||qn(t)}else null!=(o=n.ancestorInfo.current)&&Et(r,o.tag,n.ancestorInfo.implicitRootScope),(e=nu(e).createTextNode(r))[Ff]=t,t.stateNode=e}return wa(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=Wn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");o[Ff]=t,wa(t),(t.mode&wh)!==bh&&null!==r&&(null!==(o=t.child)&&(t.treeBaseDuration-=o.treeBaseDuration))}else Gn(),Kn(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,wa(t),(t.mode&wh)!==bh&&null!==r&&(null!==(o=t.child)&&(t.treeBaseDuration-=o.treeBaseDuration));o=!1}else o=$n(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Pi(t),t):(Pi(t),null)}return Pi(t),128&t.flags?(t.lanes=n,(t.mode&wh)!==bh&&br(t),t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ba(t,t.updateQueue),wa(t),(t.mode&wh)!==bh&&n&&(null!==(e=t.child)&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return B(t),null===e&&Pc(t.stateNode.containerInfo),wa(t),null;case 10:return Yn(t.type,t),wa(t),null;case 19:if(j(eg,t),null===(o=t.memoizedState))return wa(t),null;if(r=!!(128&t.flags),null===(i=o.rendering))if(r)va(o,!1);else{if(vb!==Kg||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Ri(e))){for(t.flags|=128,va(o,!1),e=i.updateQueue,t.updateQueue=e,ba(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)On(n,e),n=n.sibling;return I(eg,eg.current&Ym|Jm,t),t.child}e=e.sibling}null!==o.tail&&mf()>Pb&&(t.flags|=128,r=!0,va(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ri(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ba(t,e),va(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!Dh)return wa(t),null}else 2*mf()-o.renderingStartTime>Pb&&536870912!==n&&(t.flags|=128,r=!0,va(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=mf(),e.sibling=null,n=eg.current,I(eg,n=r?n&Ym|Jm:n&Ym,t),e):(wa(t),null);case 22:case 23:return Pi(t),Vr(t),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(wa(t),6&t.subtreeFlags&&(t.flags|=8192)):wa(t),null!==(n=t.updateQueue)&&ba(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&j(yy,t),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yn(ny,t),wa(t),null;case 25:case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function xa(e,t){switch(Un(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&wh)!==bh&&br(t),t):null;case 3:return Yn(ny,t),B(t),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return M(t),null;case 13:if(Pi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Kn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&wh)!==bh&&br(t),t):null;case 19:return j(eg,t),null;case 4:return B(t),null;case 10:return Yn(t.type,t),null;case 22:case 23:return Pi(t),Vr(t),null!==e&&j(yy,t),65536&(e=t.flags)?(t.flags=-65537&e|128,(t.mode&wh)!==bh&&br(t),t):null;case 24:return Yn(ny,t),null;default:return null}}function ka(e,t){switch(Un(t),t.tag){case 3:Yn(ny,t),B(t);break;case 26:case 27:case 5:M(t);break;case 4:B(t);break;case 13:Pi(t);break;case 19:j(eg,t);break;case 10:Yn(t.type,t);break;case 22:case 23:Pi(t),Vr(t),null!==e&&j(yy,t);break;case 24:Yn(ny,t)}}function Ea(e){return(e.mode&wh)!==bh}function Ta(e,t){Ea(e)?(gr(),Ca(t,e),mr()):Ca(t,e)}function Aa(e,t,n){Ea(e)?(gr(),_a(n,e,t),mr()):_a(n,e,t)}function Ca(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e&&((e&Dy)!==Iy?null!==Cf&&"function"==typeof Cf.markComponentPassiveEffectMountStarted&&Cf.markComponentPassiveEffectMountStarted(t):(e&By)!==Iy&&null!==Cf&&"function"==typeof Cf.markComponentLayoutEffectMountStarted&&Cf.markComponentLayoutEffectMountStarted(t),r=void 0,(e&Ly)!==Iy&&(ov=!0),r=Me(t,Bm,n),(e&Ly)!==Iy&&(ov=!1),(e&Dy)!==Iy?null!==Cf&&"function"==typeof Cf.markComponentPassiveEffectMountStopped&&Cf.markComponentPassiveEffectMountStopped():(e&By)!==Iy&&null!==Cf&&"function"==typeof Cf.markComponentLayoutEffectMountStopped&&Cf.markComponentLayoutEffectMountStopped(),void 0!==r&&"function"!=typeof r)){var i;i=0!==(n.tag&By)?"useLayoutEffect":0!==(n.tag&Ly)?"useInsertionEffect":"useEffect";Me(t,function(e,t){console.error("%s must not return anything besides a function, which is used for clean-up.%s",e,t)},i,null===r?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof r.then?"\n\nIt looks like you wrote "+i+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+i+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching":" You returned: "+r)}n=n.next}while(n!==o)}}catch(e){rc(t,t.return,e)}}function _a(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;void 0!==s&&(a.destroy=void 0,(e&Dy)!==Iy?null!==Cf&&"function"==typeof Cf.markComponentPassiveEffectUnmountStarted&&Cf.markComponentPassiveEffectUnmountStarted(t):(e&By)!==Iy&&null!==Cf&&"function"==typeof Cf.markComponentLayoutEffectUnmountStarted&&Cf.markComponentLayoutEffectUnmountStarted(t),(e&Ly)!==Iy&&(ov=!0),Me(o=t,Um,o,n,s),(e&Ly)!==Iy&&(ov=!1),(e&Dy)!==Iy?null!==Cf&&"function"==typeof Cf.markComponentPassiveEffectUnmountStopped&&Cf.markComponentPassiveEffectUnmountStopped():(e&By)!==Iy&&null!==Cf&&"function"==typeof Cf.markComponentLayoutEffectUnmountStopped&&Cf.markComponentLayoutEffectUnmountStopped())}r=r.next}while(r!==i)}}catch(e){rc(t,t.return,e)}}function Oa(e,t){Ea(e)?(gr(),Ca(t,e),mr()):Ca(t,e)}function Pa(e,t,n){Ea(e)?(gr(),_a(n,e,t),mr()):_a(n,e,t)}function Ra(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||xg||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",P(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",P(e)||"instance"));try{Me(e,Ur,t,n)}catch(t){rc(e,e.return,t)}}}function ja(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ia(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||xg||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",P(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",P(e)||"instance"));try{var o=Bi(e.type,n,(e.elementType,e.type)),i=Me(e,ja,t,o,r);n=Cg,void 0!==i||n.has(e.type)||(n.add(e.type),Me(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",P(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(t){rc(e,e.return,t)}}function Na(e,t,n){n.props=Bi(e.type,e.memoizedProps),n.state=e.memoizedState,Ea(e)?(gr(),Me(e,Nm,e,t,n),mr()):Me(e,Nm,e,t,n)}function La(e){var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;default:n=e.stateNode}if("function"==typeof t)if(Ea(e))try{gr(),e.refCleanup=t(n)}finally{mr()}else e.refCleanup=t(n);else"string"==typeof t?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",P(e)),t.current=n}}function Ba(e,t){try{Me(e,La,e)}catch(n){rc(e,t,n)}}function Da(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{if(Ea(e))try{gr(),Me(e,r)}finally{mr()}else Me(e,r)}catch(n){rc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{if(Ea(e))try{gr(),Me(e,n,null)}finally{mr()}else Me(e,n,null)}catch(n){rc(e,t,n)}else n.current=null}function Ua(e,t,n,r){var o=e.memoizedProps,i=o.id,a=o.onCommit;o=o.onRender,t=null===t?"mount":"update",cy&&(t="nested-update"),"function"==typeof o&&o(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),"function"==typeof a&&a(e.memoizedProps.id,t,r,n)}function Ma(e,t,n,r){var o=e.memoizedProps;e=o.id,o=o.onPostCommit,t=null===t?"mount":"update",cy&&(t="nested-update"),"function"==typeof o&&o(e,t,r,n)}function Fa(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Me(e,su,r,t,n,e)}catch(t){rc(e,e.return,t)}}function Va(e,t,n){try{Me(e,cu,e.stateNode,e.type,n,t,e)}catch(t){rc(e,e.return,t)}}function qa(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&fu(e.type)||4===e.tag}function za(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||qa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&fu(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ha(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zc));else if(4!==r&&(27===r&&fu(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Ha(e,t,n),e=e.sibling;null!==e;)Ha(e,t,n),e=e.sibling}function Wa(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&fu(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Wa(e,t,n),e=e.sibling;null!==e;)Wa(e,t,n),e=e.sibling}function Ka(e){for(var t,n=e.return;null!==n;){if(qa(n)){t=n;break}n=n.return}if(null==t)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,Wa(e,n=za(e),t);break;case 5:n=t.stateNode,32&t.flags&&(uu(n),t.flags&=-33),Wa(e,t=za(e),n);break;case 3:case 4:t=t.stateNode.containerInfo,Ha(e,n=za(e),t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function $a(e){var t=e.stateNode,n=e.memoizedProps;try{Me(e,Ou,e.type,n,t,e)}catch(t){rc(e,e.return,t)}}function Xa(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:os(e,n),4&r&&Ta(n,By|Ny);break;case 1:if(os(e,n),4&r)if(e=n.stateNode,null===t)n.type.defaultProps||"ref"in n.memoizedProps||xg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",P(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",P(n)||"instance")),Ea(n)?(gr(),Me(n,_m,n,e),mr()):Me(n,_m,n,e);else{var o=Bi(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||xg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",P(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",P(n)||"instance")),Ea(n)?(gr(),Me(n,Pm,n,e,o,t,e.__reactInternalSnapshotBeforeUpdate),mr()):Me(n,Pm,n,e,o,t,e.__reactInternalSnapshotBeforeUpdate)}64&r&&Ra(n),512&r&&Ba(n,n.return);break;case 3:if(t=lr(),os(e,n),64&r&&null!==(r=n.updateQueue)){if(o=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:o=n.child.stateNode}try{Me(n,Ur,r,o)}catch(e){rc(n,n.return,e)}}e.effectDuration+=fr(t);break;case 27:null===t&&4&r&&$a(n);case 26:case 5:os(e,n),null===t&&4&r&&Fa(n),512&r&&Ba(n,n.return);break;case 12:if(4&r){r=lr(),os(e,n),(e=n.stateNode).effectDuration+=pr(r);try{Me(n,Ua,n,t,iy,e.effectDuration)}catch(e){rc(n,n.return,e)}}else os(e,n);break;case 13:os(e,n),4&r&&Ya(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if(e.data!==Lv||n.readyState===qv)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=sc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||_g)){t=null!==t&&null!==t.memoizedState||Og,o=_g;var i=Og;_g=r,(Og=t)&&!i?cs(e,n,!!(8772&n.subtreeFlags)):os(e,n),_g=o,Og=i}break;case 30:break;default:os(e,n)}}function Ga(e){var t=e.alternate;null!==t&&(e.alternate=null,Ga(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qa(e,t,n){for(n=n.child;null!==n;)Za(e,t,n),n=n.sibling}function Za(e,t,n){if(Af&&"function"==typeof Af.onCommitFiberUnmount)try{Af.onCommitFiberUnmount(Tf,n)}catch(e){_f||(_f=!0,console.error("React instrumentation encountered an error: %s",e))}switch(n.tag){case 26:Og||Da(n,t),Qa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Og||Da(n,t);var r=Lg,o=Bg;fu(n.type)&&(Lg=n.stateNode,Bg=!1),Qa(e,t,n),Me(n,Pu,n.stateNode),Lg=r,Bg=o;break;case 5:Og||Da(n,t);case 6:if(r=Lg,o=Bg,Lg=null,Qa(e,t,n),Bg=o,null!==(Lg=r))if(Bg)try{Me(n,du,Lg,n.stateNode)}catch(e){rc(n,t,e)}else try{Me(n,pu,Lg,n.stateNode)}catch(e){rc(n,t,e)}break;case 18:null!==Lg&&(Bg?(hu(9===(e=Lg).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),wl(e)):hu(Lg,n.stateNode));break;case 4:r=Lg,o=Bg,Lg=n.stateNode.containerInfo,Bg=!0,Qa(e,t,n),Lg=r,Bg=o;break;case 0:case 11:case 14:case 15:Og||_a(Ly,n,t),Og||Aa(n,t,By),Qa(e,t,n);break;case 1:Og||(Da(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&Na(n,t,r)),Qa(e,t,n);break;case 21:Qa(e,t,n);break;case 22:Og=(r=Og)||null!==n.memoizedState,Qa(e,t,n),Og=r;break;default:Qa(e,t,n)}}function Ya(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Me(t,Cu,e)}catch(e){rc(t,t.return,e)}}function Ja(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Rg),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Rg),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}(e);t.forEach(function(t){var r=cc.bind(null,e,t);if(!n.has(t)){if(n.add(t),Of){if(null===Ig||null===Ng)throw Error("Expected finished root and lanes to be set. This is a bug in React.");dc(Ng,Ig)}t.then(r,r)}})}function es(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=e,i=t,a=n[r],s=i;e:for(;null!==s;){switch(s.tag){case 27:if(fu(s.type)){Lg=s.stateNode,Bg=!1;break e}break;case 5:Lg=s.stateNode,Bg=!1;break e;case 3:case 4:Lg=s.stateNode.containerInfo,Bg=!0;break e}s=s.return}if(null===Lg)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Za(o,i,a),Lg=null,Bg=!1,null!==(i=(o=a).alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)ts(t,e),t=t.sibling}function ts(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:es(t,e),ns(e),4&r&&(_a(Ly|Ny,e,e.return),Ca(Ly|Ny,e),Aa(e,e.return,By|Ny));break;case 1:es(t,e),ns(e),512&r&&(Og||null===n||Da(n,n.return)),64&r&&_g&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=Dg;if(es(t,e),ns(e),512&r&&(Og||null===n||Da(n,n.return)),4&r)if(t=null!==n?n.memoizedState:null,r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,t=o.ownerDocument||o;t:switch(r){case"title":(!(o=t.getElementsByTagName("title")[0])||o[$f]||o[Ff]||o.namespaceURI===Dp||o.hasAttribute("itemprop"))&&(o=t.createElement(r),t.head.insertBefore(o,t.querySelector("head > title"))),Kc(o,r,n),o[Ff]=e,Se(o),r=o;break e;case"link":var i=Hu("link","href",t).get(r+(n.href||""));if(i)for(var a=0;a<i.length;a++)if((o=i[a]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){i.splice(a,1);break t}Kc(o=t.createElement(r),r,n),t.head.appendChild(o);break;case"meta":if(i=Hu("meta","content",t).get(r+(n.content||"")))for(a=0;a<i.length;a++)if(o=i[a],z(n.content,"content"),o.getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){i.splice(a,1);break t}Kc(o=t.createElement(r),r,n),t.head.appendChild(o);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+r+'". This is a bug in React.')}o[Ff]=e,Se(o),r=o}e.stateNode=r}else Wu(o,e.type,e.stateNode);else e.stateNode=Fu(o,r,e.memoizedProps);else t!==r?(null===t?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):t.count--,null===r?Wu(o,e.type,e.stateNode):Fu(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Va(e,e.memoizedProps,n.memoizedProps);break;case 27:es(t,e),ns(e),512&r&&(Og||null===n||Da(n,n.return)),null!==n&&4&r&&Va(e,e.memoizedProps,n.memoizedProps);break;case 5:if(es(t,e),ns(e),512&r&&(Og||null===n||Da(n,n.return)),32&e.flags){t=e.stateNode;try{Me(e,uu,t)}catch(t){rc(e,e.return,t)}}4&r&&null!=e.stateNode&&Va(e,t=e.memoizedProps,null!==n?n.memoizedProps:t),1024&r&&(Pg=!0,"form"!==e.type&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(es(t,e),ns(e),4&r){if(null===e.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");r=e.memoizedProps,n=null!==n?n.memoizedProps:r,t=e.stateNode;try{Me(e,lu,t,n,r)}catch(t){rc(e,e.return,t)}}break;case 3:if(o=lr(),Sw=null,i=Dg,Dg=Ru(t.containerInfo),es(t,e),Dg=i,ns(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Me(e,Au,t.containerInfo)}catch(t){rc(e,e.return,t)}Pg&&(Pg=!1,rs(e)),t.effectDuration+=fr(o);break;case 4:r=Dg,Dg=Ru(e.stateNode.containerInfo),es(t,e),ns(e),Dg=r;break;case 12:r=lr(),es(t,e),ns(e),e.stateNode.effectDuration+=pr(r);break;case 13:es(t,e),ns(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(_b=mf()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Ja(e,r)));break;case 22:o=null!==e.memoizedState;var s=null!==n&&null!==n.memoizedState,c=_g,u=Og;if(_g=c||o,Og=u||s,es(t,e),Og=u,_g=c,ns(e),8192&r)e:for(t=e.stateNode,t._visibility=o?t._visibility&~lh:t._visibility|lh,o&&(null===n||s||_g||Og||as(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){s=n=t;try{i=s.stateNode,o?Me(s,yu,i):Me(s,gu,s.stateNode,s.memoizedProps)}catch(e){rc(s,s.return,e)}}}else if(6===t.tag){if(null===n){s=t;try{a=s.stateNode,o?Me(s,mu,a):Me(s,bu,a,s.memoizedProps)}catch(e){rc(s,s.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Ja(e,n))));break;case 19:es(t,e),ns(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Ja(e,r)));break;case 30:case 21:break;default:es(t,e),ns(e)}}function ns(e){var t=e.flags;if(2&t){try{Me(e,Ka,e)}catch(t){rc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function rs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;rs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function os(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Xa(e,t.alternate,t),t=t.sibling}function is(e){switch(e.tag){case 0:case 11:case 14:case 15:Aa(e,e.return,By),as(e);break;case 1:Da(e,e.return);var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Na(e,e.return,t),as(e);break;case 27:Me(e,Pu,e.stateNode);case 26:case 5:Da(e,e.return),as(e);break;case 22:null===e.memoizedState&&as(e);break;default:as(e)}}function as(e){for(e=e.child;null!==e;)is(e),e=e.sibling}function ss(e,t,n,r){var o=n.flags;switch(n.tag){case 0:case 11:case 15:cs(e,n,r),Ta(n,By);break;case 1:if(cs(e,n,r),"function"==typeof(t=n.stateNode).componentDidMount&&Me(n,_m,n,t),null!==(t=n.updateQueue)){e=n.stateNode;try{Me(n,Dr,t,e)}catch(e){rc(n,n.return,e)}}r&&64&o&&Ra(n),Ba(n,n.return);break;case 27:$a(n);case 26:case 5:cs(e,n,r),r&&null===t&&4&o&&Fa(n),Ba(n,n.return);break;case 12:if(r&&4&o){o=lr(),cs(e,n,r),(r=n.stateNode).effectDuration+=pr(o);try{Me(n,Ua,n,t,iy,r.effectDuration)}catch(e){rc(n,n.return,e)}}else cs(e,n,r);break;case 13:cs(e,n,r),r&&4&o&&Ya(e,n);break;case 22:null===n.memoizedState&&cs(e,n,r),Ba(n,n.return);break;case 30:break;default:cs(e,n,r)}}function cs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;)ss(e,t.alternate,t,n),t=t.sibling}function us(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&cr(e),null!=n&&ur(n))}function ls(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(cr(t),null!=e&&ur(e))}function fs(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ps(e,t,n,r),t=t.sibling}function ps(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:fs(e,t,n,r),2048&o&&Oa(t,Dy|Ny);break;case 1:case 13:default:fs(e,t,n,r);break;case 3:var i=lr();fs(e,t,n,r),2048&o&&(n=null,null!==t.alternate&&(n=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==n&&(cr(t),null!=n&&ur(n))),e.passiveEffectDuration+=fr(i);break;case 12:if(2048&o){o=lr(),fs(e,t,n,r),(e=t.stateNode).passiveEffectDuration+=pr(o);try{Me(t,Ma,t,t.alternate,iy,e.passiveEffectDuration)}catch(e){rc(t,t.return,e)}}else fs(e,t,n,r);break;case 23:break;case 22:i=t.stateNode;var a=t.alternate;null!==t.memoizedState?i._visibility&fh?fs(e,t,n,r):ys(e,t):i._visibility&fh?fs(e,t,n,r):(i._visibility|=fh,ds(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&us(a,t);break;case 24:fs(e,t,n,r),2048&o&&ls(t.alternate,t)}}function ds(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;)hs(e,t,n,r,o),t=t.sibling}function hs(e,t,n,r,o){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ds(e,t,n,r,o),Oa(t,Dy);break;case 23:break;case 22:var a=t.stateNode;null!==t.memoizedState?a._visibility&fh?ds(e,t,n,r,o):ys(e,t):(a._visibility|=fh,ds(e,t,n,r,o)),o&&2048&i&&us(t.alternate,t);break;case 24:ds(e,t,n,r,o),o&&2048&i&&ls(t.alternate,t);break;default:ds(e,t,n,r,o)}}function ys(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:ys(n,r),2048&o&&us(r.alternate,r);break;case 24:ys(n,r),2048&o&&ls(r.alternate,r);break;default:ys(n,r)}t=t.sibling}}function ms(e){if(e.subtreeFlags&Ug)for(e=e.child;null!==e;)gs(e),e=e.sibling}function gs(e){switch(e.tag){case 26:ms(e),e.flags&Ug&&null!==e.memoizedState&&function(e,t,n){if(null===xw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=xw;if("stylesheet"===t.type&&("string"!=typeof n.media||!1!==matchMedia(n.media).matches)&&(t.state.loading&sw)===rw){if(null===t.instance){var o=Lu(n.href),i=e.querySelector(Bu(o));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=Xu.bind(r),e.then(r,r)),t.state.loading|=sw,t.instance=i,void Se(i);i=e.ownerDocument||e,n=Du(n),(o=cw.get(o))&&qu(n,o),Se(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),Kc(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&aw)===rw&&(r.count++,t=Xu.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Dg,e.memoizedState,e.memoizedProps);break;case 5:default:ms(e);break;case 3:case 4:var t=Dg;Dg=Ru(e.stateNode.containerInfo),ms(e),Dg=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ug,Ug=16777216,ms(e),Ug=t):ms(e))}}function bs(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function vs(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];jg=r,ks(r,e)}bs(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)ws(e),e=e.sibling}function ws(e){switch(e.tag){case 0:case 11:case 15:vs(e),2048&e.flags&&Pa(e,e.return,Dy|Ny);break;case 3:var t=lr();vs(e),e.stateNode.passiveEffectDuration+=fr(t);break;case 12:t=lr(),vs(e),e.stateNode.passiveEffectDuration+=pr(t);break;case 22:t=e.stateNode,null!==e.memoizedState&&t._visibility&fh&&(null===e.return||13!==e.return.tag)?(t._visibility&=~fh,Ss(e)):vs(e);break;default:vs(e)}}function Ss(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];jg=r,ks(r,e)}bs(e)}for(e=e.child;null!==e;)xs(e),e=e.sibling}function xs(e){switch(e.tag){case 0:case 11:case 15:Pa(e,e.return,Dy),Ss(e);break;case 22:var t=e.stateNode;t._visibility&fh&&(t._visibility&=~fh,Ss(e));break;default:Ss(e)}}function ks(e,t){for(;null!==jg;){var n=jg,r=n;switch(r.tag){case 0:case 11:case 15:Pa(r,t,Dy);break;case 23:case 22:null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(null!=(r=r.memoizedState.cachePool.pool)&&cr(r));break;case 24:ur(r.memoizedState.cache)}if(null!==(r=n.child))r.return=n,jg=r;else e:for(n=e;null!==jg;){var o=(r=jg).sibling,i=r.return;if(Ga(r),r===n){jg=null;break e}if(null!==o){o.return=i,jg=o;break e}jg=i}}}function Es(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===ef.actQueue||console.error("The current testing environment is not configured to support act(...)"),e}function Ts(e){if((Jg&Hg)!==zg&&0!==nb)return nb&-nb;var t=ef.T;return null!==t?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),0!==(e=py)?e:kc()):ye()}function As(){0===kb&&(kb=536870912&nb&&!Dh?536870912:ie());var e=Qm.current;return null!==e&&(e.flags|=32),kb}function Cs(e,t,n){if(ov&&console.error("useInsertionEffect must not schedule updates."),Jb&&(ev=!0),(e!==eb||db!==ib&&db!==pb)&&null===e.cancelPendingCommit||(Ns(e,0),Rs(e,nb,kb,!1)),ce(e,n),0!==(Jg&Hg)&&e===eb){if(sp)switch(t.tag){case 0:case 11:case 15:e=tb&&P(tb)||"Unknown",sv.has(e)||(sv.add(e),t=P(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:av||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),av=!0)}}else Of&&pe(e,t,n),function(e){Es()&&null===ef.actQueue&&Me(e,function(){console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act",P(e))})}(t),e===eb&&((Jg&Hg)===zg&&(Sb|=n),vb===Qg&&Rs(e,nb,kb,!1)),hc(e)}function _s(e,t,n){if((Jg&(Hg|Wg))!==zg)throw Error("Should not already be working.");for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||re(e,t),o=r?function(e,t){var n=Jg;Jg|=Hg;var r=Bs(),o=Ds();if(eb!==e||nb!==t){if(Of){var i=e.memoizedUpdaters;0<i.size&&(dc(e,nb),i.clear()),de(e,t)}jb=null,Pb=mf()+Rb,Ns(e,t)}else mb=re(e,t);Z(t);e:for(;;)try{if(db!==rb&&null!==tb)t:switch(t=tb,i=hb,db){case ob:db=rb,hb=null,Ws(e,t,i,ob);break;case ib:case pb:if(kr(i)){db=rb,hb=null,zs(t);break}t=function(){db!==ib&&db!==pb||eb!==e||(db=lb),hc(e)},i.then(t,t);break e;case ab:db=lb;break e;case sb:db=cb;break e;case lb:kr(i)?(db=rb,hb=null,zs(t)):(db=rb,hb=null,Ws(e,t,i,lb));break;case cb:var a=null;switch(tb.tag){case 26:a=tb.memoizedState;case 5:case 27:var s=tb;if(!a||Ku(a)){db=rb,hb=null;var c=s.sibling;if(null!==c)tb=c;else{var u=s.return;null!==u?(tb=u,Ks(u)):tb=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}db=rb,hb=null,Ws(e,t,i,cb);break;case ub:db=rb,hb=null,Ws(e,t,i,ub);break;case fb:Is(),vb=Zg;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}null!==ef.actQueue?Fs():Vs();break}catch(t){Ls(e,t)}return Qn(),ef.H=r,ef.A=o,Jg=n,null!==tb?(null!==Cf&&"function"==typeof Cf.markRenderYielded&&Cf.markRenderYielded(),Kg):(Y(),eb=null,nb=0,yn(),vb)}(e,t):Ms(e,t,!0),i=r;;){if(o===Kg){mb&&!r&&Rs(e,t,0,!1);break}if(n=e.current.alternate,!i||Ps(n)){if(o===Xg){if(i=t,e.errorRecoveryDisabledLanes&i)var a=0;else a=0!==(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var s=a;a=Tb;var c=(o=e).current.memoizedState.isDehydrated;if(c&&(Ns(o,s).flags|=256),(s=Ms(o,s,!1))!==Xg){if(gb&&!c){o.errorRecoveryDisabledLanes|=i,Sb|=i,o=Qg;break e}o=Ab,Ab=a,null!==o&&(null===Ab?Ab=o:Ab.push.apply(Ab,o))}o=s}if(i=!1,o!==Xg)continue}}if(o===$g){Ns(e,0),Rs(e,t,0,!0);break}e:{switch(r=e,o){case Kg:case $g:throw Error("Root did not complete. This is a bug in React.");case Qg:if((4194048&t)!==t)break;case Zg:Rs(r,t,kb,!yb);break e;case Xg:Ab=null;break;case Gg:case Yg:break;default:throw Error("Unknown root exit status.")}if(null!==ef.actQueue)Xs(r,n,t,Ab,jb,Cb,kb,Sb,Eb);else{if((62914560&t)===t&&10<(i=_b+Ob-mf())){if(Rs(r,t,kb,!yb),0!==ne(r,0,!0))break e;r.timeoutHandle=Zv(Os.bind(null,r,n,Ab,jb,Cb,t,kb,Sb,Eb,yb,o,Bb,oy,0),i);break e}Os(r,n,Ab,jb,Cb,t,kb,Sb,Eb,yb,o,Nb,oy,0)}}break}o=Ms(e,t,!1),i=!1}hc(e)}function Os(e,t,n,r,o,i,a,s,c,u,l,f,p,d){if(e.timeoutHandle=Jv,(8192&(f=t.subtreeFlags)||!(16785408&~f))&&(xw={stylesheets:null,count:0,unsuspend:$u},gs(t),null!==(f=function(){if(null===xw)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=xw;return e.stylesheets&&0===e.count&&Gu(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=f(Xs.bind(null,e,t,i,n,r,o,a,s,c,l,Lb,p,d)),void Rs(e,i,a,!u);Xs(e,t,i,n,r,o,a,s,c)}function Ps(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Wd(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rs(e,t,n,r){t&=~xb,t&=~Sb,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Pf(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&ue(e,n,t)}function js(){return(Jg&(Hg|Wg))!==zg||(yc(0,!1),!1)}function Is(){if(null!==tb){if(db===rb)var e=tb.return;else e=tb,Qn(),eo(e),Vm=null,qm=0,e=tb;for(;null!==e;)ka(e.alternate,e),e=e.return;tb=null}}function Ns(e,t){var n=e.timeoutHandle;n!==Jv&&(e.timeoutHandle=Jv,Yv(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Is(),eb=e,tb=n=_n(e.current,null),nb=t,db=rb,hb=null,yb=!1,mb=re(e,t),gb=!1,vb=Kg,Eb=kb=xb=Sb=wb=0,Ab=Tb=null,Cb=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Pf(r),i=1<<o;t|=e[o],r&=~i}return bb=t,yn(),1e3<(t=Wh())-zh&&(ef.recentlyCreatedOwnerStacks=0,zh=t),my.discardPendingWarnings(),n}function Ls(e,t){Jy=null,ef.H=hm,ef.getCurrentStack=null,sp=!1,ap=null,t===Cy||t===Oy?(t=Ar(),db=ab):t===_y?(t=Ar(),db=sb):db=t===mg?fb:null!==t&&"object"==typeof t&&"function"==typeof t.then?ub:ob,hb=t;var n=tb;if(null===n)vb=$g,Fi(e,hn(t,e.current));else switch(n.mode&wh&&hr(n),Q(),db){case ob:null!==Cf&&"function"==typeof Cf.markComponentErrored&&Cf.markComponentErrored(n,t,nb);break;case ib:case pb:case ab:case ub:case lb:null!==Cf&&"function"==typeof Cf.markComponentSuspended&&Cf.markComponentSuspended(n,t,nb)}}function Bs(){var e=ef.H;return ef.H=hm,null===e?hm:e}function Ds(){var e=ef.A;return ef.A=Mg,e}function Us(){vb=Qg,yb||(4194048&nb)!==nb&&null!==Qm.current||(mb=!0),!(134217727&wb)&&!(134217727&Sb)||null===eb||Rs(eb,nb,kb,!1)}function Ms(e,t,n){var r=Jg;Jg|=Hg;var o=Bs(),i=Ds();if(eb!==e||nb!==t){if(Of){var a=e.memoizedUpdaters;0<a.size&&(dc(e,nb),a.clear()),de(e,t)}jb=null,Ns(e,t)}Z(t),t=!1,a=vb;e:for(;;)try{if(db!==rb&&null!==tb){var s=tb,c=hb;switch(db){case fb:Is(),a=Zg;break e;case ab:case ib:case pb:case ub:null===Qm.current&&(t=!0);var u=db;if(db=rb,hb=null,Ws(e,s,c,u),n&&mb){a=Kg;break e}break;default:u=db,db=rb,hb=null,Ws(e,s,c,u)}}Fs(),a=vb;break}catch(t){Ls(e,t)}return t&&e.shellSuspendCounter++,Qn(),Jg=r,ef.H=o,ef.A=i,Y(),null===tb&&(eb=null,nb=0,yn()),a}function Fs(){for(;null!==tb;)qs(tb)}function Vs(){for(;null!==tb&&!hf();)qs(tb)}function qs(e){var t=e.alternate;(e.mode&wh)!==bh?(dr(e),t=Me(e,ya,t,e,bb),hr(e)):t=Me(e,ya,t,e,bb),e.memoizedProps=e.pendingProps,null===t?Ks(e):tb=t}function zs(e){var t=Me(e,Hs,e);e.memoizedProps=e.pendingProps,null===t?Ks(e):tb=t}function Hs(e){var t=e.alternate,n=(e.mode&wh)!==bh;switch(n&&dr(e),e.tag){case 15:case 0:t=Ji(t,e,e.pendingProps,e.type,void 0,nb);break;case 11:t=Ji(t,e,e.pendingProps,e.type.render,e.ref,nb);break;case 5:eo(e);default:ka(t,e),t=ya(t,e=tb=On(e,bb),bb)}return n&&hr(e),t}function Ws(e,t,n,r){Qn(),eo(t),Vm=null,qm=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,Of&&dc(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&tr(t,n,o,!0),Dh&&(Uh=!0),null!==(n=Qm.current)){switch(n.tag){case 13:return null===Zm?Us():null===n.alternate&&vb===Kg&&(vb=Gg),n.flags&=-257,n.flags|=65536,n.lanes=o,r===Py?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),oc(e,r,o)),!1;case 22:return n.flags|=65536,r===Py?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),oc(e,r,o)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return oc(e,r,o),Us(),!1}if(Dh)return Uh=!0,null!==(t=Qm.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==qh&&Xn(hn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:r}),n))):(r!==qh&&Xn(hn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=hn(r,n),Ir(e,o=qi(e.stateNode,r,o)),vb!==Qg&&(vb=Xg)),!1;var i=hn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:r}),n);if(null===Tb?Tb=[i]:Tb.push(i),vb!==Qg&&(vb=Xg),null===t)return!0;r=hn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Ir(n,e=qi(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==Ib&&Ib.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Hi(o=zi(o),e,n,r),Ir(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,nb))return vb=$g,Fi(e,hn(n,e.current)),void(tb=null)}catch(t){if(null!==o)throw tb=o,t;return vb=$g,Fi(e,hn(n,e.current)),void(tb=null)}32768&t.flags?(Dh||r===ob?e=!0:mb||536870912&nb?e=!1:(yb=e=!0,(r===ib||r===pb||r===ab||r===ub)&&(null!==(r=Qm.current)&&13===r.tag&&(r.flags|=16384))),$s(t,e)):Ks(t)}function Ks(e){var t=e;do{if(32768&t.flags)return void $s(t,yb);var n=t.alternate;if(e=t.return,dr(t),n=Me(t,Sa,n,t,bb),(t.mode&wh)!==bh&&yr(t),null!==n)return void(tb=n);if(null!==(t=t.sibling))return void(tb=t);tb=t=e}while(null!==t);vb===Kg&&(vb=Yg)}function $s(e,t){do{var n=xa(e.alternate,e);if(null!==n)return n.flags&=32767,void(tb=n);if((e.mode&wh)!==bh){yr(e),n=e.actualDuration;for(var r=e.child;null!==r;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(tb=e);tb=e=n}while(null!==e);vb=Zg,tb=null}function Xs(e,t,n,r,o,i,a,s,c){e.cancelPendingCommit=null;do{ec()}while(zb!==Db);if(my.flushLegacyContextWarning(),my.flushPendingUnsafeLifecycleWarnings(),(Jg&(Hg|Wg))!==zg)throw Error("Should not already be working.");if(null!==Cf&&"function"==typeof Cf.markCommitStarted&&Cf.markCommitStarted(n),null===t)X();else{if(0===n&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var l=31-Pf(n),f=1<<l;s[l]=0,c[l]=-1;var p=u[l];if(null!==p)for(u[l]=null,l=0;l<p.length;l++){var d=p[l];null!==d&&(d.lane&=-536870913)}n&=~f}0!==r&&ue(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,i|=hh,a,s,c),e===eb&&(tb=eb=null,nb=0),Wb=t,Hb=e,Kb=n,$b=i,Xb=o,Gb=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,u=wf,l=function(){return tc(),null},null!==(f=ef.actQueue)?f.push(l):pf(u,l)):(e.callbackNode=null,e.callbackPriority=0),iy=ry(),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=ef.T,ef.T=null,o=tf.p,tf.p=Lf,a=Jg,Jg|=Wg;try{!function(e,t){if(e=e.containerInfo,$v=Nw,un(e=cn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,s=-1,c=-1,u=0,l=0,f=e,p=null;t:for(;;){for(var d;f!==n||0!==o&&3!==f.nodeType||(s=a+o),f!==i||0!==r&&3!==f.nodeType||(c=a+r),3===f.nodeType&&(a+=f.nodeValue.length),null!==(d=f.firstChild);)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++l===r&&(c=a),null!==(d=f.nextSibling))break;p=(f=p).parentNode}f=d}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xv={focusedElem:e,selectionRange:n},Nw=!1,jg=t;null!==jg;)if(e=(t=jg).child,1024&t.subtreeFlags&&null!==e)e.return=t,jg=e;else for(;null!==jg;){switch(n=(e=t=jg).alternate,o=e.flags,e.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:1024&o&&null!==n&&Ia(e,n);break;case 3:if(1024&o)if(9===(n=(e=e.stateNode.containerInfo).nodeType))vu(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vu(e);break;default:e.textContent=""}break;default:if(1024&o)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(e=t.sibling)){e.return=t.return,jg=e;break}jg=t.return}}(e,t)}finally{Jg=a,tf.p=o,ef.T=r}}zb=Ub,Gs(),Qs(),Zs()}var u,l,f}function Gs(){if(zb===Ub){zb=Db;var e=Hb,t=Wb,n=Kb,r=!!(13878&t.flags);if(13878&t.subtreeFlags||r){r=ef.T,ef.T=null;var o=tf.p;tf.p=Lf;var i=Jg;Jg|=Wg;try{Ig=n,Ng=e,ts(t,e),Ng=Ig=null,n=Xv;var a=cn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(a!==s&&s&&s.ownerDocument&&sn(s.ownerDocument.documentElement,s)){if(null!==c&&un(s)){var u=c.start,l=c.end;if(void 0===l&&(l=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(l,s.value.length);else{var f=s.ownerDocument||document,p=f&&f.defaultView||window;if(p.getSelection){var d=p.getSelection(),h=s.textContent.length,y=Math.min(c.start,h),m=void 0===c.end?y:Math.min(c.end,h);!d.extend&&y>m&&(a=m,m=y,y=a);var g=an(s,y),b=an(s,m);if(g&&b&&(1!==d.rangeCount||d.anchorNode!==g.node||d.anchorOffset!==g.offset||d.focusNode!==b.node||d.focusOffset!==b.offset)){var v=f.createRange();v.setStart(g.node,g.offset),d.removeAllRanges(),y>m?(d.addRange(v),d.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),d.addRange(v))}}}}for(f=[],d=s;d=d.parentNode;)1===d.nodeType&&f.push({element:d,left:d.scrollLeft,top:d.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<f.length;s++){var w=f[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Nw=!!$v,Xv=$v=null}finally{Jg=i,tf.p=o,ef.T=r}}e.current=t,zb=Mb}}function Qs(){if(zb===Mb){zb=Db;var e=Hb,t=Wb,n=Kb,r=!!(8772&t.flags);if(8772&t.subtreeFlags||r){r=ef.T,ef.T=null;var o=tf.p;tf.p=Lf;var i=Jg;Jg|=Wg;try{null!==Cf&&"function"==typeof Cf.markLayoutEffectsStarted&&Cf.markLayoutEffectsStarted(n),Ig=n,Ng=e,Xa(e,t.alternate,t),Ng=Ig=null,null!==Cf&&"function"==typeof Cf.markLayoutEffectsStopped&&Cf.markLayoutEffectsStopped()}finally{Jg=i,tf.p=o,ef.T=r}}zb=Fb}}function Zs(){if(zb===Vb||zb===Fb){zb=Db,yf();var e=Hb,t=Wb,n=Kb,r=Gb,o=!!(10256&t.subtreeFlags)||!!(10256&t.flags);o?zb=qb:(zb=Db,Wb=Hb=null,Js(e,e.pendingLanes),nv=0,rv=null);var i=e.pendingLanes;if(0===i&&(Ib=null),o||fc(e),o=he(n),t=t.stateNode,Af&&"function"==typeof Af.onCommitFiberRoot)try{var a=!(128&~t.current.flags);switch(o){case Lf:var s=bf;break;case Bf:s=vf;break;case Df:s=wf;break;case Uf:s=xf;break;default:s=wf}Af.onCommitFiberRoot(Tf,t,s,a)}catch(e){_f||(_f=!0,console.error("React instrumentation encountered an error: %s",e))}if(Of&&e.memoizedUpdaters.clear(),Vg.forEach(function(e){return e()}),null!==r){a=ef.T,s=tf.p,tf.p=Lf,ef.T=null;try{var c=e.onRecoverableError;for(t=0;t<r.length;t++){var u=r[t],l=Ys(u.stack);Me(u.source,c,u.value,l)}}finally{ef.T=a,tf.p=s}}3&Kb&&ec(),hc(e),i=e.pendingLanes,4194090&n&&42&i?(uy=!0,e===Yb?Zb++:(Zb=0,Yb=e)):Zb=0,yc(0,!1),X()}}function Ys(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Js(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,ur(t)))}function ec(e){return Gs(),Qs(),Zs(),tc()}function tc(){if(zb!==qb)return!1;var e=Hb,t=$b;$b=0;var n=he(Kb),r=Df>n?Df:n;n=ef.T;var o=tf.p;try{tf.p=r,ef.T=null,r=Xb,Xb=null;var i=Hb,a=Kb;if(zb=Db,Wb=Hb=null,Kb=0,(Jg&(Hg|Wg))!==zg)throw Error("Cannot flush passive effects while already rendering.");Jb=!0,ev=!1,null!==Cf&&"function"==typeof Cf.markPassiveEffectsStarted&&Cf.markPassiveEffectsStarted(a);var s=Jg;if(Jg|=Wg,ws(i.current),ps(i,i.current,a,r),null!==Cf&&"function"==typeof Cf.markPassiveEffectsStopped&&Cf.markPassiveEffectsStopped(),fc(i),Jg=s,yc(0,!1),ev?i===rv?nv++:(nv=0,rv=i):nv=0,ev=Jb=!1,Af&&"function"==typeof Af.onPostCommitFiberRoot)try{Af.onPostCommitFiberRoot(Tf,i)}catch(e){_f||(_f=!0,console.error("React instrumentation encountered an error: %s",e))}var c=i.current.stateNode;return c.effectDuration=0,c.passiveEffectDuration=0,!0}finally{tf.p=o,ef.T=n,Js(e,t)}}function nc(e,t,n){t=hn(n,t),null!==(e=Rr(e,t=qi(e.stateNode,t,2),2))&&(ce(e,2),hc(e))}function rc(e,t,n){if(ov=!1,3===e.tag)nc(e,e,n);else{for(;null!==t;){if(3===t.tag)return void nc(t,e,n);if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ib||!Ib.has(r)))return e=hn(n,e),void(null!==(r=Rr(t,n=zi(2),2))&&(Hi(n,r,t,e),ce(r,2),hc(r)))}t=t.return}console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}}function oc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new qg;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(gb=!0,o.add(n),r=ic.bind(null,e,t,n),Of&&dc(e,n),t.then(r,r))}function ic(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Es()&&null===ef.actQueue&&console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"),eb===e&&(nb&n)===n&&(vb===Qg||vb===Gg&&(62914560&nb)===nb&&mf()-_b<Ob?(Jg&Hg)===zg&&Ns(e,0):xb|=n,Eb===nb&&(Eb=0)),hc(e)}function ac(e,t){0===t&&(t=ae()),null!==(e=bn(e,t))&&(ce(e,t),hc(e))}function sc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ac(e,n)}function cc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(t),ac(e,n)}function uc(e,t,n){if(67117056&t.subtreeFlags)for(t=t.child;null!==t;){var r=e,o=t,i=o.type===Ml;i=n||i,22!==o.tag?67108864&o.flags?i&&Me(o,lc,r,o,(o.mode&kh)===bh):uc(r,o,i):null===o.memoizedState&&(i&&8192&o.flags?Me(o,lc,r,o):67108864&o.subtreeFlags&&Me(o,uc,r,o,i)),t=t.sibling}}function lc(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];K(!0);try{is(t),n&&xs(t),ss(e,t.alternate,t,!1),n&&hs(e,t,0,null,!1)}finally{K(!1)}}function fc(e){var t=!0;e.current.mode&(Sh|xh)||(t=!1),uc(e,e.current,t)}function pc(e){if((Jg&Hg)===zg){var t=e.tag;if(3===t||1===t||0===t||11===t||14===t||15===t){if(t=P(e)||"ReactComponent",null!==iv){if(iv.has(t))return;iv.add(t)}else iv=new Set([t]);Me(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function dc(e,t){Of&&e.memoizedUpdaters.forEach(function(n){pe(e,n,t)})}function hc(e){e!==uv&&null===e.next&&(null===uv?cv=uv=e:uv=uv.next=e),pv=!0,null!==ef.actQueue?fv||(fv=!0,xc()):lv||(lv=!0,xc())}function yc(e,t){if(!dv&&pv){dv=!0;do{for(var n=!1,r=cv;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Pf(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,wc(r,i))}else i=nb,!(3&(i=ne(r,r===eb?i:0,null!==r.cancelPendingCommit||r.timeoutHandle!==Jv)))||re(r,i)||(n=!0,wc(r,i));r=r.next}}while(n);dv=!1}}function mc(){gc()}function gc(){pv=fv=lv=!1;var e=0;0!==hv&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Qv&&(Qv=e,!0);return Qv=null,!1}()&&(e=hv),hv=0);for(var t=mf(),n=null,r=cv;null!==r;){var o=r.next,i=bc(r,t);0===i?(r.next=null,null===n?cv=o:n.next=o,null===o&&(uv=n)):(n=r,(0!==e||3&i)&&(pv=!0)),r=o}yc(e,!1)}function bc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Pf(i),s=1<<a,c=o[a];-1===c?0!==(s&n)&&0===(s&r)||(o[a]=oe(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}if(n=nb,n=ne(e,e===(t=eb)?n:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Jv),r=e.callbackNode,0===n||e===t&&(db===ib||db===pb)||null!==e.cancelPendingCommit)return null!==r&&Sc(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||re(e,n)){if((t=n&-n)===e.callbackPriority&&(null===ef.actQueue||r===yv))return t;switch(Sc(r),he(n)){case Lf:case Bf:n=vf;break;case Df:n=wf;break;case Uf:n=xf;break;default:n=wf}return r=vc.bind(null,e),null!==ef.actQueue?(ef.actQueue.push(r),n=yv):n=pf(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&Sc(r),e.callbackPriority=2,e.callbackNode=null,2}function vc(e,t){if(uy=cy=!1,zb!==Db&&zb!==qb)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ec()&&e.callbackNode!==n)return null;var r=nb;return 0===(r=ne(e,e===eb?r:0,null!==e.cancelPendingCommit||e.timeoutHandle!==Jv))?null:(_s(e,r,t),bc(e,mf()),null!=e.callbackNode&&e.callbackNode===n?vc.bind(null,e):null)}function wc(e,t){if(ec())return null;cy=uy,uy=!1,_s(e,t,!0)}function Sc(e){e!==yv&&null!==e&&df(e)}function xc(){null!==ef.actQueue&&ef.actQueue.push(function(){return gc(),null}),tw(function(){(Jg&(Hg|Wg))!==zg?pf(bf,mc):gc()})}function kc(){return 0===hv&&(hv=ie()),hv}function Ec(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:(z(e,"action"),jt(""+e))}function Tc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ac(e,t,n){e.currentTarget=n;try{t(e)}catch(e){dg(e)}e.currentTarget=null}function Cc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n];e:{var o=void 0,i=r.event;if(r=r.listeners,t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;null!==c?Me(c,Ac,i,s,u):Ac(i,s,u),o=c}else for(a=0;a<r.length;a++){if(c=(s=r[a]).instance,u=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;null!==c?Me(c,Ac,i,s,u):Ac(i,s,u),o=c}}}}function _c(e,t){gv.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[zf];void 0===n&&(n=t[zf]=new Set);var r=e+"__bubble";n.has(r)||(Rc(t,e,2,!1),n.add(r))}function Oc(e,t,n){gv.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Rc(n,e,r,t)}function Pc(e){if(!e[bv]){e[bv]=!0,Xf.forEach(function(t){"selectionchange"!==t&&(gv.has(t)||Oc(t,!1,e),Oc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[bv]||(t[bv]=!0,Oc("selectionchange",!1,t))}}function Rc(e,t,n,r){switch(fl(t)){case Lf:var o=al;break;case Bf:o=sl;break;default:o=cl}n=o.bind(null,t,n,e),o=void 0,!nd||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jc(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=ge(s)))return;if(5===(c=a.tag)||6===c||26===c||27===c){r=i=a;continue e}s=s.parentNode}}r=r.return}Lt(function(){var r=i,o=It(n),a=[];e:{var s=sh.get(e);if(void 0!==s){var c=fd,u=e;switch(e){case"keypress":if(0===Ut(n))break e;case"keydown":case"keyup":c=Td;break;case"focusin":u="focus",c=gd;break;case"focusout":u="blur",c=gd;break;case"beforeblur":case"afterblur":c=gd;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=md;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cd;break;case eh:case th:case nh:c=bd;break;case ah:c=_d;break;case"scroll":case"scrollend":c=dd;break;case"wheel":c=Od;break;case"copy":case"cut":case"paste":c=vd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Ad;break;case"toggle":case"beforetoggle":c=Pd}var l=!!(4&t),f=!l&&("scroll"===e||"scrollend"===e),p=l?null!==s?s+"Capture":null:s;l=[];for(var d,h=r;null!==h;){var y=h;if(d=y.stateNode,5!==(y=y.tag)&&26!==y&&27!==y||null===d||null===p||null!=(y=Bt(h,p))&&l.push(Ic(h,y,d)),f)break;h=h.return}0<l.length&&(s=new c(s,u,null,n,o),a.push({event:s,listeners:l}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Zp||!(u=n.relatedTarget||n.fromElement)||!ge(u)&&!u[qf])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?ge(u):null)&&(f=x(u),l=u.tag,u!==f||5!==l&&27!==l&&6!==l)&&(u=null)):(c=null,u=r),c!==u)){if(l=yd,y="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=Ad,y="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==c?s:ve(c),d=null==u?s:ve(u),(s=new l(y,h+"leave",c,n,o)).target=f,s.relatedTarget=d,y=null,ge(o)===r&&((l=new l(p,h+"enter",u,n,o)).target=d,l.relatedTarget=f,y=l),f=y,c&&u)e:{for(p=u,h=0,d=l=c;d;d=Lc(d))h++;for(d=0,y=p;y;y=Lc(y))d++;for(;0<h-d;)l=Lc(l),h--;for(;0<d-h;)p=Lc(p),d--;for(;h--;){if(l===p||null!==p&&l===p.alternate)break e;l=Lc(l),p=Lc(p)}l=null}else l=null;null!==c&&Bc(a,s,c,l,!1),null!==u&&null!==f&&Bc(a,f,u,l,!0)}if("select"===(c=(s=r?ve(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var m=Qt;else if(Kt(s))if(Hd)m=nn;else{m=en;var g=Jt}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&_t(r.elementType)&&(m=Qt):m=tn;switch(m&&(m=m(e,r))?$t(a,m,n,o):(g&&g(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&Qe(s,"number",s.value)),g=r?ve(r):window,e){case"focusin":(Kt(g)||"true"===g.contentEditable)&&($d=g,Xd=r,Gd=null);break;case"focusout":Gd=Xd=$d=null;break;case"mousedown":Qd=!0;break;case"contextmenu":case"mouseup":case"dragend":Qd=!1,ln(a,n,o);break;case"selectionchange":if(Kd)break;case"keydown":case"keyup":ln(a,n,o)}var b;if(Id)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Fd?Ht(e,n)&&(v="onCompositionEnd"):"keydown"===e&&n.keyCode===jd&&(v="onCompositionStart");v&&(Bd&&"ko"!==n.locale&&(Fd||"onCompositionStart"!==v?"onCompositionEnd"===v&&Fd&&(b=Dt()):(cd="value"in(sd=o)?sd.value:sd.textContent,Fd=!0)),0<(g=Nc(r,v)).length&&(v=new wd(v,e,null,n,o),a.push({event:v,listeners:g}),b?v.data=b:null!==(b=Wt(n))&&(v.data=b))),(b=Ld?function(e,t){switch(e){case"compositionend":return Wt(t);case"keypress":return t.which!==Dd?null:(Md=!0,Ud);case"textInput":return(e=t.data)===Ud&&Md?null:e;default:return null}}(e,n):function(e,t){if(Fd)return"compositionend"===e||!Id&&Ht(e,t)?(e=Dt(),ud=cd=sd=null,Fd=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bd&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(v=Nc(r,"onBeforeInput")).length&&(g=new Sd("onBeforeInput","beforeinput",null,n,o),a.push({event:g,listeners:v}),g.data=b)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Ec((o[Vf]||null).action),a=r.submitter;a&&null!==(t=(t=a[Vf]||null)?Ec(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new fd("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==hv){var e=a?Tc(o,a):new FormData(o),t={pending:!0,data:e,method:o.method,action:i};Object.freeze(t),ni(n,t,null,e)}}else"function"==typeof i&&(s.preventDefault(),t={pending:!0,data:e=a?Tc(o,a):new FormData(o),method:o.method,action:i},Object.freeze(t),ni(n,t,i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Cc(a,t)})}function Ic(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Bt(e,n))&&r.unshift(Ic(e,o,i)),null!=(o=Bt(e,t))&&r.push(Ic(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Lc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Bc(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(s=s.tag,null!==c&&c===r)break;5!==s&&26!==s&&27!==s||null===u||(c=u,o?null!=(u=Bt(n,i))&&a.unshift(Ic(n,u,c)):o||null!=(u=Bt(n,i))&&a.push(Ic(n,u,c))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dc(e,t){!function(e,t){var n,r=[];for(n in t)Pt(e,n)||r.push(n);t=r.map(function(e){return"`"+e+"`"}).join(", "),1===r.length?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}(e,t),"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Hp||(Hp=!0,"select"===e&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Gf,possibleRegistrationNames:Qf};_t(e)||"string"==typeof t.is||function(e,t,n){var r,o=[];for(r in t)Rt(e,r,t[r],n)||o.push(r);t=o.map(function(e){return"`"+e+"`"}).join(", "),1===o.length?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&null!=t.children&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Uc(e,t,n,r){t!==n&&(n=Vc(n),Vc(t)!==n&&(r[e]=t))}function Mc(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Fc(e,t){return(e=e.namespaceURI===Bp||e.namespaceURI===Dp?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName)).innerHTML=t,e.innerHTML}function Vc(e){return V(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",F(e)),q(e)),("string"==typeof e?e:""+e).replace(Cv,"\n").replace(_v,"")}function qc(e,t){return t=Vc(t),Vc(e)===t}function zc(){}function Hc(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?(Et(r,t,!1),"body"===t||"textarea"===t&&""===r||Tt(e,r)):"number"!=typeof r&&"bigint"!=typeof r||(Et(""+r,t,!1),"body"!==t&&Tt(e,""+r));break;case"className":_e(e,"class",r);break;case"tabIndex":_e(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":_e(e,n,r);break;case"style":Ct(e,r,i);break;case"data":if("object"!==t){_e(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){"src"===n?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}z(r,n),r=jt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(null!=r&&("form"===t?"formAction"===n?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):"function"==typeof r&&(null==o.encType&&null==o.method||Ev||(Ev=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),null==o.target||kv||(kv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):"input"===t||"button"===t?"action"===n?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):"input"!==t||"submit"===o.type||"image"===o.type||Sv?"button"!==t||null==o.type||"submit"===o.type||Sv?"function"==typeof r&&(null==o.name||xv||(xv=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),null==o.formEncType&&null==o.formMethod||Ev||(Ev=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),null==o.formTarget||kv||(kv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Sv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Sv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):"action"===n?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),"function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&Hc(e,t,"name",o.name,o,null),Hc(e,t,"formEncType",o.formEncType,o,null),Hc(e,t,"formMethod",o.formMethod,o,null),Hc(e,t,"formTarget",o.formTarget,o,null)):(Hc(e,t,"encType",o.encType,o,null),Hc(e,t,"method",o.method,o,null),Hc(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}z(r,n),r=jt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&("function"!=typeof r&&Mc(n,r),e.onclick=zc);break;case"onScroll":null!=r&&("function"!=typeof r&&Mc(n,r),_c("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Mc(n,r),_c("scrollend",e));break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=o.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}z(r,n),n=jt(""+r),e.setAttributeNS(Ov,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(z(r,n),e.setAttribute(n,""+r)):e.removeAttribute(n);break;case"inert":""!==r||Av[n]||(Av[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):(z(r,n),e.setAttribute(n,r));break;case"popover":_c("beforetoggle",e),_c("toggle",e),Ce(e,"popover",r);break;case"xlinkActuate":Oe(e,Ov,"xlink:actuate",r);break;case"xlinkArcrole":Oe(e,Ov,"xlink:arcrole",r);break;case"xlinkRole":Oe(e,Ov,"xlink:role",r);break;case"xlinkShow":Oe(e,Ov,"xlink:show",r);break;case"xlinkTitle":Oe(e,Ov,"xlink:title",r);break;case"xlinkType":Oe(e,Ov,"xlink:type",r);break;case"xmlBase":Oe(e,Pv,"xml:base",r);break;case"xmlLang":Oe(e,Pv,"xml:lang",r);break;case"xmlSpace":Oe(e,Pv,"xml:space",r);break;case"is":null!=i&&console.error('Cannot update the "is" prop after it has been initialized.'),Ce(e,"is",r);break;case"innerText":case"textContent":break;case"popoverTarget":Tv||null==r||"object"!=typeof r||(Tv=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?Ce(e,n=Ot(n),r):Gf.hasOwnProperty(n)&&null!=r&&"function"!=typeof r&&Mc(n,r)}}function Wc(e,t,n,r,o,i){switch(n){case"style":Ct(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(null!=(n=r.__html)){if(null!=o.children)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":"string"==typeof r?Tt(e,r):("number"==typeof r||"bigint"==typeof r)&&Tt(e,""+r);break;case"onScroll":null!=r&&("function"!=typeof r&&Mc(n,r),_c("scroll",e));break;case"onScrollEnd":null!=r&&("function"!=typeof r&&Mc(n,r),_c("scrollend",e));break;case"onClick":null!=r&&("function"!=typeof r&&Mc(n,r),e.onclick=zc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Gf.hasOwnProperty(n)?null!=r&&"function"!=typeof r&&Mc(n,r):"o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Vf]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):Ce(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o))}}function Kc(e,t,n){switch(Dc(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_c("error",e),_c("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hc(e,t,r,a,n,null)}}return i&&Hc(e,t,"srcSet",n.srcSet,n,null),void(o&&Hc(e,t,"src",n.src,n,null));case"input":Ee("input",n),_c("invalid",e);var s=r=a=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(null!=l)switch(o){case"name":i=l;break;case"type":a=l;break;case"checked":c=l;break;case"defaultChecked":u=l;break;case"value":r=l;break;case"defaultValue":s=l;break;case"children":case"dangerouslySetInnerHTML":if(null!=l)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hc(e,t,o,l,n,null)}}return $e(0,n),Ge(e,r,s,c,u,a,i,!1),void ze(e);case"select":for(i in Ee("select",n),_c("invalid",e),o=a=r=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":r=s;break;case"defaultValue":a=s;break;case"multiple":o=s;default:Hc(e,t,i,s,n,null)}return et(e,n),t=r,n=a,e.multiple=!!o,void(null!=t?Je(e,!!o,t,!1):null!=n&&Je(e,!!o,n,!0));case"textarea":for(a in Ee("textarea",n),_c("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(a)&&null!=(s=n[a]))switch(a){case"value":o=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Hc(e,t,a,s,n,null)}return tt(0,n),rt(e,o,i,r),void ze(e);case"option":for(c in Ze(0,n),n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))if("selected"===c)e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o;else Hc(e,t,c,o,n,null);return;case"dialog":_c("beforetoggle",e),_c("toggle",e),_c("cancel",e),_c("close",e);break;case"iframe":case"object":_c("load",e);break;case"video":case"audio":for(o=0;o<mv.length;o++)_c(mv[o],e);break;case"image":_c("error",e),_c("load",e);break;case"details":_c("toggle",e);break;case"embed":case"source":case"link":_c("error",e),_c("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Hc(e,t,u,o,n,null)}return;default:if(_t(t)){for(l in n)n.hasOwnProperty(l)&&(void 0!==(o=n[l])&&Wc(e,t,l,o,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(o=n[s])&&Hc(e,t,s,o,n,null))}function $c(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Xc(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Gc(e,t,n){if(null!=t&&"object"!=typeof t)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,o,i=r="";for(o in t)if(t.hasOwnProperty(o)){var a=t[o];null!=a&&"boolean"!=typeof a&&""!==a&&(0===o.indexOf("--")?(H(a,o),r+=i+o+":"+(""+a).trim()):"number"!=typeof a||0===a||Lp.has(o)?(H(a,o),r+=i+o.replace(Tp,"-$1").toLowerCase().replace(Ap,"-ms-")+":"+(""+a).trim()):r+=i+o.replace(Tp,"-$1").toLowerCase().replace(Ap,"-ms-")+":"+a+"px",i=";")}r=r||null,(t=e.getAttribute("style"))!==r&&(r=Vc(r),Vc(t)!==r&&(n.style=Xc(e)))}}function Qc(e,t,n,r,o,i){if(o.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(z(r,t),e===""+r)return}Uc(t,e,r,i)}function Zc(e,t,n,r,o,i){if(o.delete(n),null===(e=e.getAttribute(n))){switch(typeof r){case"function":case"symbol":return}if(!r)return}else switch(typeof r){case"function":case"symbol":break;default:if(r)return}Uc(t,e,r,i)}function Yc(e,t,n,r,o,i){if(o.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":return}else if(null!=r)switch(typeof r){case"function":case"symbol":break;default:if(z(r,n),e===""+r)return}Uc(t,e,r,i)}function Jc(e,t,n,r,o,i){if(o.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(r))return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(!isNaN(r)&&(z(r,t),e===""+r))return}Uc(t,e,r,i)}function eu(e,t,n,r,o,i){if(o.delete(n),null===(e=e.getAttribute(n)))switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return}else if(null!=r)switch(typeof r){case"function":case"symbol":case"boolean":break;default:if(z(r,t),e===(n=jt(""+r)))return}Uc(t,e,r,i)}function tu(e,t,n,r){for(var o={},i=new Set,a=e.attributes,s=0;s<a.length;s++)switch(a[s].name.toLowerCase()){case"value":case"checked":case"selected":break;default:i.add(a[s].name)}if(_t(t)){for(var c in n)if(n.hasOwnProperty(c)){var u=n[c];if(null!=u)if(Gf.hasOwnProperty(c))"function"!=typeof u&&Mc(c,u);else if(!0!==n.suppressHydrationWarning)switch(c){case"children":"string"!=typeof u&&"number"!=typeof u||Uc("children",e.textContent,u,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":a=e.innerHTML,null!=(u=u?u.__html:void 0)&&Uc(c,a,u=Fc(e,u),o);continue;case"style":i.delete(c),Gc(e,u,o);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case"className":i.delete("class"),Uc("className",a=Ae(e,"class",u),u,o);continue;default:r.context===Hv&&"svg"!==t&&"math"!==t?i.delete(c.toLowerCase()):i.delete(c),Uc(c,a=Ae(e,c,u),u,o)}}}else for(u in n)if(n.hasOwnProperty(u)&&null!=(c=n[u]))if(Gf.hasOwnProperty(u))"function"!=typeof c&&Mc(u,c);else if(!0!==n.suppressHydrationWarning)switch(u){case"children":"string"!=typeof c&&"number"!=typeof c||Uc("children",e.textContent,c,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":a=e.innerHTML,null!=(c=c?c.__html:void 0)&&(a!==(c=Fc(e,c))&&(o[u]={__html:a}));continue;case"className":Qc(e,u,"class",c,i,o);continue;case"tabIndex":Qc(e,u,"tabindex",c,i,o);continue;case"style":i.delete(u),Gc(e,c,o);continue;case"multiple":i.delete(u),Uc(u,e.multiple,c,o);continue;case"muted":i.delete(u),Uc(u,e.muted,c,o);continue;case"autoFocus":i.delete("autofocus"),Uc(u,e.autofocus,c,o);continue;case"data":if("object"!==t){i.delete(u),Uc(u,a=e.getAttribute("data"),c,o);continue}case"src":case"href":if(!(""!==c||"a"===t&&"href"===u||"object"===t&&"data"===u)){"src"===u?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',u,u);continue}eu(e,u,u,c,i,o);continue;case"action":case"formAction":if(a=e.getAttribute(u),"function"==typeof c){i.delete(u.toLowerCase()),"formAction"===u?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}if(a===Rv){i.delete(u.toLowerCase()),Uc(u,"function",c,o);continue}eu(e,u,u.toLowerCase(),c,i,o);continue;case"xlinkHref":eu(e,u,"xlink:href",c,i,o);continue;case"contentEditable":Yc(e,u,"contenteditable",c,i,o);continue;case"spellCheck":Yc(e,u,"spellcheck",c,i,o);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Yc(e,u,u,c,i,o);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Zc(e,u,u.toLowerCase(),c,i,o);continue;case"capture":case"download":e:{s=e;var l=a=u,f=o;if(i.delete(l),null===(s=s.getAttribute(l)))switch(typeof c){case"undefined":case"function":case"symbol":break e;default:if(!1===c)break e}else if(null!=c)switch(typeof c){case"function":case"symbol":break;case"boolean":if(!0===c&&""===s)break e;break;default:if(z(c,a),s===""+c)break e}Uc(a,s,c,f)}continue;case"cols":case"rows":case"size":case"span":e:{if(s=e,l=a=u,f=o,i.delete(l),null===(s=s.getAttribute(l)))switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(c)||1>c)break e}else if(null!=c)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(c)||1>c)&&(z(c,a),s===""+c))break e}Uc(a,s,c,f)}continue;case"rowSpan":Jc(e,u,"rowspan",c,i,o);continue;case"start":Jc(e,u,u,c,i,o);continue;case"xHeight":Qc(e,u,"x-height",c,i,o);continue;case"xlinkActuate":Qc(e,u,"xlink:actuate",c,i,o);continue;case"xlinkArcrole":Qc(e,u,"xlink:arcrole",c,i,o);continue;case"xlinkRole":Qc(e,u,"xlink:role",c,i,o);continue;case"xlinkShow":Qc(e,u,"xlink:show",c,i,o);continue;case"xlinkTitle":Qc(e,u,"xlink:title",c,i,o);continue;case"xlinkType":Qc(e,u,"xlink:type",c,i,o);continue;case"xmlBase":Qc(e,u,"xml:base",c,i,o);continue;case"xmlLang":Qc(e,u,"xml:lang",c,i,o);continue;case"xmlSpace":Qc(e,u,"xml:space",c,i,o);continue;case"inert":""!==c||Av[u]||(Av[u]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",u)),Zc(e,u,u,c,i,o);continue;default:if(!(2<u.length)||"o"!==u[0]&&"O"!==u[0]||"n"!==u[1]&&"N"!==u[1]){s=Ot(u),a=!1,r.context===Hv&&"svg"!==t&&"math"!==t?i.delete(s.toLowerCase()):(l=u.toLowerCase(),null!==(l=Mp.hasOwnProperty(l)&&Mp[l]||null)&&l!==u&&(a=!0,i.delete(l)),i.delete(s));e:if(l=e,f=s,s=c,Te(f))if(l.hasAttribute(f))l=l.getAttribute(f),z(s,f),s=l===""+s?s:l;else{switch(typeof s){case"function":case"symbol":break e;case"boolean":if("data-"!==(l=f.toLowerCase().slice(0,5))&&"aria-"!==l)break e}s=void 0===s?void 0:null}else s=void 0;a||Uc(u,s,c,o)}}return 0<i.size&&!0!==n.suppressHydrationWarning&&function(e,t,n){t.forEach(function(t){n[$c(t)]="style"===t?Xc(e):e.getAttribute(t)})}(e,i,o),0===Object.keys(o).length?null:o}function nu(e){return 9===e.nodeType?e:e.ownerDocument}function ru(e){switch(e){case Dp:return Wv;case Bp:return Kv;default:return Hv}}function ou(e,t){if(e===Hv)switch(t){case"svg":return Wv;case"math":return Kv;default:return Hv}return e===Wv&&"foreignObject"===t?Hv:e}function iu(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function au(e){setTimeout(function(){throw e})}function su(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function cu(e,t,n,r){!function(e,t,n,r){switch(Dc(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,a=null,s=null,c=null,u=null,l=null;for(d in n){var f=n[d];if(n.hasOwnProperty(d)&&null!=f)switch(d){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(d)||Hc(e,t,d,null,r,f)}}for(var p in r){var d=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=d||null!=f))switch(p){case"type":i=d;break;case"name":o=d;break;case"checked":u=d;break;case"defaultChecked":l=d;break;case"value":a=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:d!==f&&Hc(e,t,p,d,r,f)}}return t="checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value,r="checkbox"===r.type||"radio"===r.type?null!=r.checked:null!=r.value,t||!r||wv||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),wv=!0),!t||r||vv||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),vv=!0),void Xe(e,a,s,c,u,l,i,o);case"select":for(i in d=a=s=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":d=c;default:r.hasOwnProperty(i)||Hc(e,t,i,null,r,c)}for(o in r)if(i=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":p=i;break;case"defaultValue":s=i;break;case"multiple":a=i;default:i!==c&&Hc(e,t,o,i,r,c)}return r=s,t=a,n=d,void(null!=p?Je(e,!!t,p,!1):!!n!=!!t&&(null!=r?Je(e,!!t,r,!0):Je(e,!!t,t?[]:"",!1)));case"textarea":for(s in d=p=null,n)if(o=n[s],n.hasOwnProperty(s)&&null!=o&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:Hc(e,t,s,null,r,o)}for(a in r)if(o=r[a],i=n[a],r.hasOwnProperty(a)&&(null!=o||null!=i))switch(a){case"value":p=o;break;case"defaultValue":d=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:o!==i&&Hc(e,t,a,o,r,i)}return void nt(e,p,d);case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:Hc(e,t,h,null,r,p));for(c in r)p=r[c],d=n[c],!r.hasOwnProperty(c)||p===d||null==p&&null==d||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:Hc(e,t,c,p,r,d));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&Hc(e,t,y,null,r,p);for(u in r)if(p=r[u],d=n[u],r.hasOwnProperty(u)&&p!==d&&(null!=p||null!=d))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Hc(e,t,u,p,r,d)}return;default:if(_t(t)){for(var m in n)p=n[m],n.hasOwnProperty(m)&&void 0!==p&&!r.hasOwnProperty(m)&&Wc(e,t,m,void 0,r,p);for(l in r)p=r[l],d=n[l],!r.hasOwnProperty(l)||p===d||void 0===p&&void 0===d||Wc(e,t,l,p,r,d);return}}for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&Hc(e,t,g,null,r,p);for(f in r)p=r[f],d=n[f],!r.hasOwnProperty(f)||p===d||null==p&&null==d||Hc(e,t,f,p,r,d)}(e,t,n,r),e[Vf]=r}function uu(e){Tt(e,"")}function lu(e,t,n){e.nodeValue=n}function fu(e){return"head"===e}function pu(e,t){e.removeChild(t)}function du(e,t){(9===e.nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).removeChild(t)}function hu(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if((n=i.data)===Nv){if(0<r&&8>r){n=r;var a=e.ownerDocument;if(n&Dv&&Pu(a.documentElement),n&Uv&&Pu(a.body),n&Mv)for(Pu(n=a.head),a=n.firstChild;a;){var s=a.nextSibling,c=a.nodeName;a[$f]||"SCRIPT"===c||"STYLE"===c||"LINK"===c&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=s}}if(0===o)return e.removeChild(i),void wl(t);o--}else n===Iv||n===Lv||n===Bv?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);wl(t)}function yu(e){"function"==typeof(e=e.style).setProperty?e.setProperty("display","none","important"):e.display="none"}function mu(e){e.nodeValue=""}function gu(e,t){t=null!=(t=t[zv])&&t.hasOwnProperty("display")?t.display:null,e.style.display=null==t||"boolean"==typeof t?"":(""+t).trim()}function bu(e,t){e.nodeValue=t}function vu(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vu(n),me(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function wu(e){return e.data===Bv||e.data===Lv&&e.ownerDocument.readyState===qv}function Su(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if((t=e.data)===Iv||t===Bv||t===Lv||t===Fv||t===Vv)break;if(t===Nv)return null}}return e}function xu(e){if(1===e.nodeType){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,o=0;o<r.length;o++){var i=r[o];n[$c(i.name)]="style"===i.name.toLowerCase()?Xc(e):i.value}return{type:t,props:n}}return 8===e.nodeType?{type:"Suspense",props:{}}:e.nodeValue}function ku(e,t,n){return null===n||!0!==n[jv]?(e.nodeValue===t?e=null:(t=Vc(t),e=Vc(e.nodeValue)===t?null:e.nodeValue),e):null}function Eu(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Nv){if(0===t)return Su(e.nextSibling);t--}else n!==Iv&&n!==Bv&&n!==Lv||t++}e=e.nextSibling}return null}function Tu(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Iv||n===Bv||n===Lv){if(0===t)return e;t--}else n===Nv&&t++}e=e.previousSibling}return null}function Au(e){wl(e)}function Cu(e){wl(e)}function _u(e,t,n,r,o){switch(o&&kt(e,r.ancestorInfo),t=nu(n),e){case"html":if(!(e=t.documentElement))throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(!(e=t.head))throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(!(e=t.body))throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Ou(e,t,n,r){if(!n[qf]&&be(n)){var o=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",o,o,o)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Kc(n,e,t),n[Ff]=r,n[Vf]=t}function Pu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function Ru(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}function ju(e,t,n){var r=ww;if(r&&"string"==typeof t&&t){var o=Ke(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),uw.has(o)||(uw.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(Kc(t=r.createElement("link"),"link",e),Se(t),r.head.appendChild(t)))}}function Iu(e,t,n,r){var o=(o=uf.current)?Ru(o):null;if(!o)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(n=Lu(n.href),(r=(t=we(o).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Lu(n.href);var i=we(o).hoistableStyles,a=i.get(e);if(!a&&(o=o.ownerDocument||o,a={type:"stylesheet",instance:null,count:0,state:{loading:rw,preload:null}},i.set(e,a),(i=o.querySelector(Bu(e)))&&!i._p&&(a.instance=i,a.state.loading=ow|sw),!cw.has(e))){var s={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};cw.set(e,s),i||function(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=ow:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=ow}),t.addEventListener("error",function(){return r.loading|=iw}),Kc(t,"link",n),Se(t),e.head.appendChild(t))}(o,e,s,a.state)}if(t&&null===r)throw n="\n\n - "+Nu(t)+"\n + "+Nu(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return a}if(t&&null!==r)throw n="\n\n - "+Nu(t)+"\n + "+Nu(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(n=Uu(n),(r=(t=we(o).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Nu(e){var t=0,n="<link";return"string"==typeof e.rel?(t++,n+=' rel="'+e.rel+'"'):ff.call(e,"rel")&&(t++,n+=' rel="'+(null===e.rel?"null":"invalid type "+typeof e.rel)+'"'),"string"==typeof e.href?(t++,n+=' href="'+e.href+'"'):ff.call(e,"href")&&(t++,n+=' href="'+(null===e.href?"null":"invalid type "+typeof e.href)+'"'),"string"==typeof e.precedence?(t++,n+=' precedence="'+e.precedence+'"'):ff.call(e,"precedence")&&(t++,n+=" precedence={"+(null===e.precedence?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Lu(e){return'href="'+Ke(e)+'"'}function Bu(e){return'link[rel="stylesheet"]['+e+"]"}function Du(e){return Nl({},e,{"data-precedence":e.precedence,precedence:null})}function Uu(e){return'[src="'+Ke(e)+'"]'}function Mu(e){return"script[async]"+e}function Fu(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Ke(n.href)+'"]');if(r)return t.instance=r,Se(r),r;var o=Nl({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Se(r=(e.ownerDocument||e).createElement("style")),Kc(r,"style",o),Vu(r,n.precedence,e),t.instance=r;case"stylesheet":o=Lu(n.href);var i=e.querySelector(Bu(o));if(i)return t.state.loading|=sw,t.instance=i,Se(i),i;r=Du(n),(o=cw.get(o))&&qu(r,o),Se(i=(e.ownerDocument||e).createElement("link"));var a=i;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),Kc(i,"link",r),t.state.loading|=sw,Vu(i,n.precedence,e),t.instance=i;case"script":return i=Uu(n.src),(o=e.querySelector(Mu(i)))?(t.instance=o,Se(o),o):(r=n,(o=cw.get(i))&&zu(r=Nl({},n),o),Se(o=(e=e.ownerDocument||e).createElement("script")),Kc(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else"stylesheet"===t.type&&(t.state.loading&sw)===rw&&(r=t.instance,t.state.loading|=sw,Vu(r,n.precedence,e));return t.instance}function Vu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function qu(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function zu(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}function Hu(e,t,n){if(null===Sw){var r=new Map,o=Sw=new Map;o.set(n,r)}else(r=(o=Sw).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[$f]||i[Ff]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&i.namespaceURI!==Dp){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function Wu(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Ku(e){return"stylesheet"!==e.type||(e.state.loading&aw)!==rw}function $u(){}function Xu(){if(this.count--,0===this.count)if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}function Gu(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Ew=new Map,t.forEach(Qu,e),Ew=null,Xu.call(e))}function Qu(e,t){if(!(t.state.loading&sw)){var n=Ew.get(e);if(n)var r=n.get(kw);else{n=new Map,Ew.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(kw,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(kw,o),n.set(a,o),this.count++,r=Xu.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=sw}}function Zu(e,t,n,r,o,i,a,s){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Jv,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=se(0),this.hiddenUpdates=se(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function Yu(e,t,n,r,o,i,a,s,c,u,l,f){return e=new Zu(e,t,n,a,s,c,u,f),t=vh,!0===i&&(t|=Sh|xh),Of&&(t|=wh),i=h(3,null,null,t),e.current=i,i.stateNode=e,cr(t=sr()),e.pooledCache=t,cr(t),i.memoizedState={element:r,isDehydrated:n,cache:t},_r(i),e}function Ju(e){return e?e=yh:yh}function el(e,t,n,r,o,i){if(Af&&"function"==typeof Af.onScheduleFiberRoot)try{Af.onScheduleFiberRoot(Tf,r,n)}catch(e){_f||(_f=!0,console.error("React instrumentation encountered an error: %s",e))}null!==Cf&&"function"==typeof Cf.markRenderScheduled&&Cf.markRenderScheduled(t),o=Ju(o),null===r.context?r.context=o:r.pendingContext=o,sp&&null!==ap&&!jw&&(jw=!0,console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",P(ap)||"Unknown")),(r=Pr(t)).payload={element:n},null!==(i=void 0===i?null:i)&&("function"!=typeof i&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i),r.callback=i),null!==(n=Rr(e,r,t))&&(Cs(n,e,t),jr(n,e,t))}function tl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nl(e,t){tl(e,t),(e=e.alternate)&&tl(e,t)}function rl(e){if(13===e.tag){var t=bn(e,67108864);null!==t&&Cs(t,e,67108864),nl(e,67108864)}}function ol(){return ap}function il(){for(var e=new Map,t=1,n=0;31>n;n++){var r=ee(t);e.set(t,r),t*=2}return e}function al(e,t,n,r){var o=ef.T;ef.T=null;var i=tf.p;try{tf.p=Lf,cl(e,t,n,r)}finally{tf.p=i,ef.T=o}}function sl(e,t,n,r){var o=ef.T;ef.T=null;var i=tf.p;try{tf.p=Bf,cl(e,t,n,r)}finally{tf.p=i,ef.T=o}}function cl(e,t,n,r){if(Nw){var o=ul(r);if(null===o)jc(e,t,r,Lw,n),pl(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Dw=dl(Dw,e,t,n,r,o),!0;case"dragenter":return Uw=dl(Uw,e,t,n,r,o),!0;case"mouseover":return Mw=dl(Mw,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Fw.set(i,dl(Fw.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Vw.set(i,dl(Vw.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(pl(e,r),4&t&&-1<zw.indexOf(e)){for(;null!==o;){var i=be(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=te(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var c=1<<31-Pf(a);s.entanglements[1]|=c,a&=~c}hc(i),(Jg&(Hg|Wg))===zg&&(Pb=mf()+Rb,yc(0,!1))}}break;case 13:null!==(s=bn(i,2))&&Cs(s,i,2),js(),nl(i,2)}if(null===(i=ul(r))&&jc(e,t,r,Lw,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else jc(e,t,r,null,n)}}function ul(e){return ll(e=It(e))}function ll(e){if(Lw=null,null!==(e=ge(e))){var t=x(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=E(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Lw=e,null}function fl(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Lf;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Bf;case"message":switch(gf()){case bf:return Lf;case vf:return Bf;case wf:case Sf:return Df;case xf:return Uf;default:return Df}default:return Df}}function pl(e,t){switch(e){case"focusin":case"focusout":Dw=null;break;case"dragenter":case"dragleave":Uw=null;break;case"mouseover":case"mouseout":Mw=null;break;case"pointerover":case"pointerout":Fw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vw.delete(t.pointerId)}}function dl(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=be(t))&&rl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function hl(e){var t=ge(e.target);if(null!==t){var n=x(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=E(n)))return e.blockedOn=t,void function(e,t){var n=tf.p;try{return tf.p=e,t()}finally{tf.p=n}}(e.priority,function(){if(13===n.tag){var e=Ts(n);e=fe(e);var t=bn(n,e);null!==t&&Cs(t,n,e),nl(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yl(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ul(e.nativeEvent);if(null!==n)return null!==(t=be(n))&&rl(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n),o=r;null!==Zp&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Zp=o,n.target.dispatchEvent(r),null===Zp&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Zp=null,t.shift()}return!0}function ml(e,t,n){yl(e)&&n.delete(t)}function gl(){Bw=!1,null!==Dw&&yl(Dw)&&(Dw=null),null!==Uw&&yl(Uw)&&(Uw=null),null!==Mw&&yl(Mw)&&(Mw=null),Fw.forEach(ml),Vw.forEach(ml)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,Bw||(Bw=!0,Rl.unstable_scheduleCallback(Rl.unstable_NormalPriority,gl)))}function vl(e){Hw!==e&&(Hw=e,Rl.unstable_scheduleCallback(Rl.unstable_NormalPriority,function(){Hw===e&&(Hw=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===ll(r||n))continue;break}var i=be(n);null!==i&&(e.splice(t,3),t-=3,n={pending:!0,data:o,method:n.method,action:r},Object.freeze(n),ni(i,n,r,o))}}))}function wl(e){function t(t){return bl(t,e)}null!==Dw&&bl(Dw,e),null!==Uw&&bl(Uw,e),null!==Mw&&bl(Mw,e),Fw.forEach(t),Vw.forEach(t);for(var n=0;n<qw.length;n++){var r=qw[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<qw.length&&null===(n=qw[0]).blockedOn;)hl(n),null===n.blockedOn&&qw.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Vf]||null;if("function"==typeof i)a||vl(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Vf]||null)s=a.formAction;else if(null!==ll(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),vl(n)}}}function Sl(e){this._internalRoot=e}function xl(e){this._internalRoot=e}function kl(e){e[qf]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var El,Tl,Al,Cl,_l,Ol,Pl,Rl=m(),jl=s(),Il=(b||(b=1,S.exports=k()),S.exports),Nl=Object.assign,Ll=Symbol.for("react.element"),Bl=Symbol.for("react.transitional.element"),Dl=Symbol.for("react.portal"),Ul=Symbol.for("react.fragment"),Ml=Symbol.for("react.strict_mode"),Fl=Symbol.for("react.profiler"),Vl=Symbol.for("react.provider"),ql=Symbol.for("react.consumer"),zl=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),Wl=Symbol.for("react.suspense"),Kl=Symbol.for("react.suspense_list"),$l=Symbol.for("react.memo"),Xl=Symbol.for("react.lazy"),Gl=Symbol.for("react.activity"),Ql=Symbol.for("react.memo_cache_sentinel"),Zl=Symbol.iterator,Yl=Symbol.for("react.client.reference"),Jl=Array.isArray,ef=jl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tf=Il.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nf=Object.freeze({pending:!1,data:null,method:null,action:null}),rf=[],of=[],af=-1,sf=R(null),cf=R(null),uf=R(null),lf=R(null),ff=Object.prototype.hasOwnProperty,pf=Rl.unstable_scheduleCallback,df=Rl.unstable_cancelCallback,hf=Rl.unstable_shouldYield,yf=Rl.unstable_requestPaint,mf=Rl.unstable_now,gf=Rl.unstable_getCurrentPriorityLevel,bf=Rl.unstable_ImmediatePriority,vf=Rl.unstable_UserBlockingPriority,wf=Rl.unstable_NormalPriority,Sf=Rl.unstable_LowPriority,xf=Rl.unstable_IdlePriority,kf=Rl.log,Ef=Rl.unstable_setDisableYieldValue,Tf=null,Af=null,Cf=null,_f=!1,Of="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__,Pf=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Rf(e)/jf|0)|0},Rf=Math.log,jf=Math.LN2,If=256,Nf=4194304,Lf=2,Bf=8,Df=32,Uf=268435456,Mf=Math.random().toString(36).slice(2),Ff="__reactFiber$"+Mf,Vf="__reactProps$"+Mf,qf="__reactContainer$"+Mf,zf="__reactEvents$"+Mf,Hf="__reactListeners$"+Mf,Wf="__reactHandles$"+Mf,Kf="__reactResources$"+Mf,$f="__reactMarker$"+Mf,Xf=new Set,Gf={},Qf={},Zf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Yf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Jf={},ep={},tp=0;Pe.__reactDisabledLog=!0;var np,rp,op=!1,ip=new("function"==typeof WeakMap?WeakMap:Map),ap=null,sp=!1,cp=/[\n"\\]/g,up=!1,lp=!1,fp=!1,pp=!1,dp=!1,hp=!1,yp=["value","defaultValue"],mp=!1,gp=/["'&<>\n\t]|^\s|\s$/,bp="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),vp="applet caption html table td th marquee object template foreignObject desc title".split(" "),wp=vp.concat(["button"]),Sp="dd dt li option optgroup p rp rt".split(" "),xp={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},kp={},Ep={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Tp=/([A-Z])/g,Ap=/^ms-/,Cp=/^(?:webkit|moz|o)[A-Z]/,_p=/^-ms-/,Op=/-(.)/g,Pp=/;\s*$/,Rp={},jp={},Ip=!1,Np=!1,Lp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Bp="http://www.w3.org/1998/Math/MathML",Dp="http://www.w3.org/2000/svg",Up=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Fp={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vp={},qp=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zp=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hp=!1,Wp={},Kp=/^on./,$p=/^on[^A-Z]/,Xp=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Gp=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Zp=null,Yp=null,Jp=null,ed=!1,td=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),nd=!1;if(td)try{var rd={};Object.defineProperty(rd,"passive",{get:function(){nd=!0}}),window.addEventListener("test",rd,rd),window.removeEventListener("test",rd,rd)}catch(e){nd=!1}var od,id,ad,sd=null,cd=null,ud=null,ld={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fd=Vt(ld),pd=Nl({},ld,{view:0,detail:0}),dd=Vt(pd),hd=Nl({},pd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ad&&(ad&&"mousemove"===e.type?(od=e.screenX-ad.screenX,id=e.screenY-ad.screenY):id=od=0,ad=e),od)},movementY:function(e){return"movementY"in e?e.movementY:id}}),yd=Vt(hd),md=Vt(Nl({},hd,{dataTransfer:0})),gd=Vt(Nl({},pd,{relatedTarget:0})),bd=Vt(Nl({},ld,{animationName:0,elapsedTime:0,pseudoElement:0})),vd=Vt(Nl({},ld,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wd=Vt(Nl({},ld,{data:0})),Sd=wd,xd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Td=Vt(Nl({},pd,{key:function(e){if(e.key){var t=xd[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ut(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zt,charCode:function(e){return"keypress"===e.type?Ut(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ut(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ad=Vt(Nl({},hd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cd=Vt(Nl({},pd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zt})),_d=Vt(Nl({},ld,{propertyName:0,elapsedTime:0,pseudoElement:0})),Od=Vt(Nl({},hd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Pd=Vt(Nl({},ld,{newState:0,oldState:0})),Rd=[9,13,27,32],jd=229,Id=td&&"CompositionEvent"in window,Nd=null;td&&"documentMode"in document&&(Nd=document.documentMode);var Ld=td&&"TextEvent"in window&&!Nd,Bd=td&&(!Id||Nd&&8<Nd&&11>=Nd),Dd=32,Ud=String.fromCharCode(Dd),Md=!1,Fd=!1,Vd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},qd=null,zd=null,Hd=!1;td&&(Hd=function(e){if(!td)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}("input")&&(!document.documentMode||9<document.documentMode));var Wd="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Kd=td&&"documentMode"in document&&11>=document.documentMode,$d=null,Xd=null,Gd=null,Qd=!1,Zd={animationend:fn("Animation","AnimationEnd"),animationiteration:fn("Animation","AnimationIteration"),animationstart:fn("Animation","AnimationStart"),transitionrun:fn("Transition","TransitionRun"),transitionstart:fn("Transition","TransitionStart"),transitioncancel:fn("Transition","TransitionCancel"),transitionend:fn("Transition","TransitionEnd")},Yd={},Jd={};td&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete Zd.animationend.animation,delete Zd.animationiteration.animation,delete Zd.animationstart.animation),"TransitionEvent"in window||delete Zd.transitionend.transition);var eh=pn("animationend"),th=pn("animationiteration"),nh=pn("animationstart"),rh=pn("transitionrun"),oh=pn("transitionstart"),ih=pn("transitioncancel"),ah=pn("transitionend"),sh=new Map,ch="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ch.push("scrollEnd");var uh=new WeakMap,lh=1,fh=2,ph=[],dh=0,hh=0,yh={};Object.freeze(yh);var mh=null,gh=null,bh=0,vh=1,wh=2,Sh=8,xh=16,kh=64,Eh=!1;try{var Th=Object.preventExtensions({});new Map([[Th,null]]),new Set([Th])}catch(e){Eh=!0}var Ah=[],Ch=0,_h=null,Oh=0,Ph=[],Rh=0,jh=null,Ih=1,Nh="",Lh=null,Bh=null,Dh=!1,Uh=!1,Mh=null,Fh=null,Vh=!1,qh=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),zh=0;if("object"==typeof performance&&"function"==typeof performance.now)var Hh=performance,Wh=function(){return Hh.now()};else{var Kh=Date;Wh=function(){return Kh.now()}}var $h=R(null),Xh=R(null),Gh={},Qh=null,Zh=null,Yh=!1,Jh="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ey=Rl.unstable_scheduleCallback,ty=Rl.unstable_NormalPriority,ny={$$typeof:zl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ry=Rl.unstable_now,oy=-0,iy=-0,ay=-1.1,sy=-0,cy=!1,uy=!1,ly=null,fy=0,py=0,dy=null,hy=ef.S;ef.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===ly){var n=ly=[];fy=0,py=kc(),dy={status:"pending",value:void 0,then:function(e){n.push(e)}}}fy++,t.then(vr,vr)}(0,t),null!==hy&&hy(e,t)};var yy=R(null),my={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gy=[],by=[],vy=[],wy=[],Sy=[],xy=[],ky=new Set;my.recordUnsafeLifecycleWarnings=function(e,t){ky.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&gy.push(e),e.mode&Sh&&"function"==typeof t.UNSAFE_componentWillMount&&by.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&vy.push(e),e.mode&Sh&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&wy.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Sy.push(e),e.mode&Sh&&"function"==typeof t.UNSAFE_componentWillUpdate&&xy.push(e))},my.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<gy.length&&(gy.forEach(function(t){e.add(P(t)||"Component"),ky.add(t.type)}),gy=[]);var t=new Set;0<by.length&&(by.forEach(function(e){t.add(P(e)||"Component"),ky.add(e.type)}),by=[]);var n=new Set;0<vy.length&&(vy.forEach(function(e){n.add(P(e)||"Component"),ky.add(e.type)}),vy=[]);var r=new Set;0<wy.length&&(wy.forEach(function(e){r.add(P(e)||"Component"),ky.add(e.type)}),wy=[]);var o=new Set;0<Sy.length&&(Sy.forEach(function(e){o.add(P(e)||"Component"),ky.add(e.type)}),Sy=[]);var i=new Set;if(0<xy.length&&(xy.forEach(function(e){i.add(P(e)||"Component"),ky.add(e.type)}),xy=[]),0<t.size){var a=p(t);console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",a)}0<r.size&&(a=p(r),console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s",a)),0<i.size&&(a=p(i),console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",a)),0<e.size&&(a=p(e),console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",a)),0<n.size&&(a=p(n),console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",a)),0<o.size&&(a=p(o),console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",a))};var Ey=new Map,Ty=new Set;my.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;null!==r;)r.mode&Sh&&(n=r),r=r.return;null===n?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Ty.has(e.type)&&(r=Ey.get(n),null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Ey.set(n,r)),r.push(e))},my.flushLegacyContextWarning=function(){Ey.forEach(function(e){if(0!==e.length){var t=e[0],n=new Set;e.forEach(function(e){n.add(P(e)||"Component"),Ty.add(e.type)});var r=p(n);Me(t,function(){console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context",r)})}})},my.discardPendingWarnings=function(){gy=[],by=[],vy=[],wy=[],Sy=[],xy=[],Ey=new Map};var Ay,Cy=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),_y=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Oy=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Py={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Ry=null,jy=!1,Iy=0,Ny=1,Ly=2,By=4,Dy=8,Uy=0,My=1,Fy=2,Vy=3,qy=!1,zy=!1,Hy=null,Wy=!1,Ky=R(null),$y=R(0),Xy=new Set,Gy=new Set,Qy=new Set,Zy=new Set,Yy=0,Jy=null,em=null,tm=null,nm=!1,rm=!1,om=!1,im=0,am=0,sm=null,cm=0,um=25,lm=null,fm=null,pm=-1,dm=!1,hm={readContext:or,use:oo,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useLayoutEffect:Kr,useInsertionEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useDeferredValue:Kr,useTransition:Kr,useSyncExternalStore:Kr,useId:Kr,useHostTransitionStatus:Kr,useFormState:Kr,useActionState:Kr,useOptimistic:Kr,useMemoCache:Kr,useCacheRefresh:Kr},ym=null,mm=null,gm=null,bm=null,vm=null,wm=null,Sm=null;ym={readContext:function(e){return or(e)},use:oo,useCallback:function(e,t){return lm="useCallback",qr(),Hr(t),Ko(e,t)},useContext:function(e){return lm="useContext",qr(),or(e)},useEffect:function(e,t){return lm="useEffect",qr(),Hr(t),Vo(e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",qr(),Hr(n),Ho(e,t,n)},useInsertionEffect:function(e,t){lm="useInsertionEffect",qr(),Hr(t),Mo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",qr(),Hr(t),qo(e,t)},useMemo:function(e,t){lm="useMemo",qr(),Hr(t);var n=ef.H;ef.H=vm;try{return Xo(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",qr();var r=ef.H;ef.H=vm;try{return so(e,t,n)}finally{ef.H=r}},useRef:function(e){return lm="useRef",qr(),Uo(e)},useState:function(e){lm="useState",qr();var t=ef.H;ef.H=vm;try{return wo(e)}finally{ef.H=t}},useDebugValue:function(){lm="useDebugValue",qr()},useDeferredValue:function(e,t){return lm="useDeferredValue",qr(),Qo(e,t)},useTransition:function(){return lm="useTransition",qr(),ii()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",qr(),fo(e,t,n)},useId:function(){return lm="useId",qr(),ui()},useFormState:function(e,t){return lm="useFormState",qr(),Wr(),jo(e,t)},useActionState:function(e,t){return lm="useActionState",qr(),jo(e,t)},useOptimistic:function(e){return lm="useOptimistic",qr(),So(e)},useHostTransitionStatus:ci,useMemoCache:io,useCacheRefresh:function(){return lm="useCacheRefresh",qr(),li()}},mm={readContext:function(e){return or(e)},use:oo,useCallback:function(e,t){return lm="useCallback",zr(),Ko(e,t)},useContext:function(e){return lm="useContext",zr(),or(e)},useEffect:function(e,t){return lm="useEffect",zr(),Vo(e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",zr(),Ho(e,t,n)},useInsertionEffect:function(e,t){lm="useInsertionEffect",zr(),Mo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",zr(),qo(e,t)},useMemo:function(e,t){lm="useMemo",zr();var n=ef.H;ef.H=vm;try{return Xo(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",zr();var r=ef.H;ef.H=vm;try{return so(e,t,n)}finally{ef.H=r}},useRef:function(e){return lm="useRef",zr(),Uo(e)},useState:function(e){lm="useState",zr();var t=ef.H;ef.H=vm;try{return wo(e)}finally{ef.H=t}},useDebugValue:function(){lm="useDebugValue",zr()},useDeferredValue:function(e,t){return lm="useDeferredValue",zr(),Qo(e,t)},useTransition:function(){return lm="useTransition",zr(),ii()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",zr(),fo(e,t,n)},useId:function(){return lm="useId",zr(),ui()},useActionState:function(e,t){return lm="useActionState",zr(),jo(e,t)},useFormState:function(e,t){return lm="useFormState",zr(),Wr(),jo(e,t)},useOptimistic:function(e){return lm="useOptimistic",zr(),So(e)},useHostTransitionStatus:ci,useMemoCache:io,useCacheRefresh:function(){return lm="useCacheRefresh",zr(),li()}},gm={readContext:function(e){return or(e)},use:oo,useCallback:function(e,t){return lm="useCallback",zr(),$o(e,t)},useContext:function(e){return lm="useContext",zr(),or(e)},useEffect:function(e,t){lm="useEffect",zr(),Fo(2048,Dy,e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",zr(),Wo(e,t,n)},useInsertionEffect:function(e,t){return lm="useInsertionEffect",zr(),Fo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",zr(),Fo(4,By,e,t)},useMemo:function(e,t){lm="useMemo",zr();var n=ef.H;ef.H=wm;try{return Go(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",zr();var r=ef.H;ef.H=wm;try{return co(e)}finally{ef.H=r}},useRef:function(){return lm="useRef",zr(),no().memoizedState},useState:function(){lm="useState",zr();var e=ef.H;ef.H=wm;try{return co(ao)}finally{ef.H=e}},useDebugValue:function(){lm="useDebugValue",zr()},useDeferredValue:function(e,t){return lm="useDeferredValue",zr(),Zo(e,t)},useTransition:function(){return lm="useTransition",zr(),ai()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",zr(),po(e,t,n)},useId:function(){return lm="useId",zr(),no().memoizedState},useFormState:function(e){return lm="useFormState",zr(),Wr(),Io(e)},useActionState:function(e){return lm="useActionState",zr(),Io(e)},useOptimistic:function(e,t){return lm="useOptimistic",zr(),xo(e,t)},useHostTransitionStatus:ci,useMemoCache:io,useCacheRefresh:function(){return lm="useCacheRefresh",zr(),no().memoizedState}},bm={readContext:function(e){return or(e)},use:oo,useCallback:function(e,t){return lm="useCallback",zr(),$o(e,t)},useContext:function(e){return lm="useContext",zr(),or(e)},useEffect:function(e,t){lm="useEffect",zr(),Fo(2048,Dy,e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",zr(),Wo(e,t,n)},useInsertionEffect:function(e,t){return lm="useInsertionEffect",zr(),Fo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",zr(),Fo(4,By,e,t)},useMemo:function(e,t){lm="useMemo",zr();var n=ef.H;ef.H=Sm;try{return Go(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",zr();var r=ef.H;ef.H=Sm;try{return lo(e)}finally{ef.H=r}},useRef:function(){return lm="useRef",zr(),no().memoizedState},useState:function(){lm="useState",zr();var e=ef.H;ef.H=Sm;try{return lo(ao)}finally{ef.H=e}},useDebugValue:function(){lm="useDebugValue",zr()},useDeferredValue:function(e,t){return lm="useDeferredValue",zr(),Yo(e,t)},useTransition:function(){return lm="useTransition",zr(),si()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",zr(),po(e,t,n)},useId:function(){return lm="useId",zr(),no().memoizedState},useFormState:function(e){return lm="useFormState",zr(),Wr(),Bo(e)},useActionState:function(e){return lm="useActionState",zr(),Bo(e)},useOptimistic:function(e,t){return lm="useOptimistic",zr(),Eo(e,t)},useHostTransitionStatus:ci,useMemoCache:io,useCacheRefresh:function(){return lm="useCacheRefresh",zr(),no().memoizedState}},vm={readContext:function(e){return l(),or(e)},use:function(e){return u(),oo(e)},useCallback:function(e,t){return lm="useCallback",u(),qr(),Ko(e,t)},useContext:function(e){return lm="useContext",u(),qr(),or(e)},useEffect:function(e,t){return lm="useEffect",u(),qr(),Vo(e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",u(),qr(),Ho(e,t,n)},useInsertionEffect:function(e,t){lm="useInsertionEffect",u(),qr(),Mo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",u(),qr(),qo(e,t)},useMemo:function(e,t){lm="useMemo",u(),qr();var n=ef.H;ef.H=vm;try{return Xo(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",u(),qr();var r=ef.H;ef.H=vm;try{return so(e,t,n)}finally{ef.H=r}},useRef:function(e){return lm="useRef",u(),qr(),Uo(e)},useState:function(e){lm="useState",u(),qr();var t=ef.H;ef.H=vm;try{return wo(e)}finally{ef.H=t}},useDebugValue:function(){lm="useDebugValue",u(),qr()},useDeferredValue:function(e,t){return lm="useDeferredValue",u(),qr(),Qo(e,t)},useTransition:function(){return lm="useTransition",u(),qr(),ii()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",u(),qr(),fo(e,t,n)},useId:function(){return lm="useId",u(),qr(),ui()},useFormState:function(e,t){return lm="useFormState",u(),qr(),jo(e,t)},useActionState:function(e,t){return lm="useActionState",u(),qr(),jo(e,t)},useOptimistic:function(e){return lm="useOptimistic",u(),qr(),So(e)},useMemoCache:function(e){return u(),io(e)},useHostTransitionStatus:ci,useCacheRefresh:function(){return lm="useCacheRefresh",qr(),li()}},wm={readContext:function(e){return l(),or(e)},use:function(e){return u(),oo(e)},useCallback:function(e,t){return lm="useCallback",u(),zr(),$o(e,t)},useContext:function(e){return lm="useContext",u(),zr(),or(e)},useEffect:function(e,t){lm="useEffect",u(),zr(),Fo(2048,Dy,e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",u(),zr(),Wo(e,t,n)},useInsertionEffect:function(e,t){return lm="useInsertionEffect",u(),zr(),Fo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",u(),zr(),Fo(4,By,e,t)},useMemo:function(e,t){lm="useMemo",u(),zr();var n=ef.H;ef.H=wm;try{return Go(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",u(),zr();var r=ef.H;ef.H=wm;try{return co(e)}finally{ef.H=r}},useRef:function(){return lm="useRef",u(),zr(),no().memoizedState},useState:function(){lm="useState",u(),zr();var e=ef.H;ef.H=wm;try{return co(ao)}finally{ef.H=e}},useDebugValue:function(){lm="useDebugValue",u(),zr()},useDeferredValue:function(e,t){return lm="useDeferredValue",u(),zr(),Zo(e,t)},useTransition:function(){return lm="useTransition",u(),zr(),ai()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",u(),zr(),po(e,t,n)},useId:function(){return lm="useId",u(),zr(),no().memoizedState},useFormState:function(e){return lm="useFormState",u(),zr(),Io(e)},useActionState:function(e){return lm="useActionState",u(),zr(),Io(e)},useOptimistic:function(e,t){return lm="useOptimistic",u(),zr(),xo(e,t)},useMemoCache:function(e){return u(),io(e)},useHostTransitionStatus:ci,useCacheRefresh:function(){return lm="useCacheRefresh",zr(),no().memoizedState}},Sm={readContext:function(e){return l(),or(e)},use:function(e){return u(),oo(e)},useCallback:function(e,t){return lm="useCallback",u(),zr(),$o(e,t)},useContext:function(e){return lm="useContext",u(),zr(),or(e)},useEffect:function(e,t){lm="useEffect",u(),zr(),Fo(2048,Dy,e,t)},useImperativeHandle:function(e,t,n){return lm="useImperativeHandle",u(),zr(),Wo(e,t,n)},useInsertionEffect:function(e,t){return lm="useInsertionEffect",u(),zr(),Fo(4,Ly,e,t)},useLayoutEffect:function(e,t){return lm="useLayoutEffect",u(),zr(),Fo(4,By,e,t)},useMemo:function(e,t){lm="useMemo",u(),zr();var n=ef.H;ef.H=wm;try{return Go(e,t)}finally{ef.H=n}},useReducer:function(e,t,n){lm="useReducer",u(),zr();var r=ef.H;ef.H=wm;try{return lo(e)}finally{ef.H=r}},useRef:function(){return lm="useRef",u(),zr(),no().memoizedState},useState:function(){lm="useState",u(),zr();var e=ef.H;ef.H=wm;try{return lo(ao)}finally{ef.H=e}},useDebugValue:function(){lm="useDebugValue",u(),zr()},useDeferredValue:function(e,t){return lm="useDeferredValue",u(),zr(),Yo(e,t)},useTransition:function(){return lm="useTransition",u(),zr(),si()},useSyncExternalStore:function(e,t,n){return lm="useSyncExternalStore",u(),zr(),po(e,t,n)},useId:function(){return lm="useId",u(),zr(),no().memoizedState},useFormState:function(e){return lm="useFormState",u(),zr(),Bo(e)},useActionState:function(e){return lm="useActionState",u(),zr(),Bo(e)},useOptimistic:function(e,t){return lm="useOptimistic",u(),zr(),Eo(e,t)},useMemoCache:function(e){return u(),io(e)},useHostTransitionStatus:ci,useCacheRefresh:function(){return lm="useCacheRefresh",zr(),no().memoizedState}};var xm,km={react_stack_bottom_frame:function(e,t,n){var r=sp;sp=!0;try{return e(t,n)}finally{sp=r}}},Em=km.react_stack_bottom_frame.bind(km),Tm={react_stack_bottom_frame:function(e){var t=sp;sp=!0;try{return e.render()}finally{sp=t}}},Am=Tm.react_stack_bottom_frame.bind(Tm),Cm={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){rc(e,e.return,t)}}},_m=Cm.react_stack_bottom_frame.bind(Cm),Om={react_stack_bottom_frame:function(e,t,n,r,o){try{t.componentDidUpdate(n,r,o)}catch(t){rc(e,e.return,t)}}},Pm=Om.react_stack_bottom_frame.bind(Om),Rm={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:null!==n?n:""})}},jm=Rm.react_stack_bottom_frame.bind(Rm),Im={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){rc(e,t,n)}}},Nm=Im.react_stack_bottom_frame.bind(Im),Lm={react_stack_bottom_frame:function(e){null!=e.resourceKind&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Bm=Lm.react_stack_bottom_frame.bind(Lm),Dm={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){rc(e,t,n)}}},Um=Dm.react_stack_bottom_frame.bind(Dm),Mm={react_stack_bottom_frame:function(e){return(0,e._init)(e._payload)}},Fm=Mm.react_stack_bottom_frame.bind(Mm),Vm=null,qm=0,zm=null,Hm=xm=!1,Wm={},Km={},$m={};c=function(e,t,n){if(null!==n&&"object"==typeof n&&n._store&&(!n._store.validated&&null==n.key||2===n._store.validated)){if("object"!=typeof n._store)throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var r=P(e),o=r||"null";if(!Wm[o]){Wm[o]=!0,n=n._owner,e=e._debugOwner;var i="";e&&"number"==typeof e.tag&&(o=P(e))&&(i="\n\nCheck the render method of `"+o+"`."),i||r&&(i="\n\nCheck the top-level render call using <"+r+">.");var a="";null!=n&&e!==n&&(r=null,"number"==typeof n.tag?r=P(n):"string"==typeof n.name&&(r=n.name),r&&(a=" It was passed a child from "+r+".")),Me(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,a)})}}};var Xm=Ai(!0),Gm=Ai(!1),Qm=R(null),Zm=null,Ym=1,Jm=2,eg=R(0),tg={},ng=new Set,rg=new Set,og=new Set,ig=new Set,ag=new Set,sg=new Set,cg=new Set,ug=new Set,lg=new Set,fg=new Set;Object.freeze(tg);var pg={enqueueSetState:function(e,t,n){var r=Ts(e=e._reactInternals),o=Pr(r);o.payload=t,null!=n&&(ji(n),o.callback=n),null!==(t=Rr(e,o,r))&&(Cs(t,e,r),jr(t,e,r)),J(e,r)},enqueueReplaceState:function(e,t,n){var r=Ts(e=e._reactInternals),o=Pr(r);o.tag=My,o.payload=t,null!=n&&(ji(n),o.callback=n),null!==(t=Rr(e,o,r))&&(Cs(t,e,r),jr(t,e,r)),J(e,r)},enqueueForceUpdate:function(e,t){var n=Ts(e=e._reactInternals),r=Pr(n);r.tag=Fy,null!=t&&(ji(t),r.callback=t),null!==(t=Rr(e,r,n))&&(Cs(t,e,n),jr(t,e,n)),null!==Cf&&"function"==typeof Cf.markForceUpdateScheduled&&Cf.markForceUpdateScheduled(e,n)}},dg="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},hg=null,yg=null,mg=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),gg=!1,bg={},vg={},wg={},Sg={},xg=!1,kg={},Eg={},Tg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ag=!1,Cg=null;Cg=new Set;var _g=!1,Og=!1,Pg=!1,Rg="function"==typeof WeakSet?WeakSet:Set,jg=null,Ig=null,Ng=null,Lg=null,Bg=!1,Dg=null,Ug=8192,Mg={getCacheForType:function(e){var t=or(ny),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return ap}};if("function"==typeof Symbol&&Symbol.for){var Fg=Symbol.for;Fg("selector.component"),Fg("selector.has_pseudo_class"),Fg("selector.role"),Fg("selector.test_id"),Fg("selector.text")}var Vg=[],qg="function"==typeof WeakMap?WeakMap:Map,zg=0,Hg=2,Wg=4,Kg=0,$g=1,Xg=2,Gg=3,Qg=4,Zg=6,Yg=5,Jg=zg,eb=null,tb=null,nb=0,rb=0,ob=1,ib=2,ab=3,sb=4,cb=5,ub=6,lb=7,fb=8,pb=9,db=rb,hb=null,yb=!1,mb=!1,gb=!1,bb=0,vb=Kg,wb=0,Sb=0,xb=0,kb=0,Eb=0,Tb=null,Ab=null,Cb=!1,_b=0,Ob=300,Pb=1/0,Rb=500,jb=null,Ib=null,Nb=0,Lb=1,Bb=2,Db=0,Ub=1,Mb=2,Fb=3,Vb=4,qb=5,zb=0,Hb=null,Wb=null,Kb=0,$b=0,Xb=null,Gb=null,Qb=50,Zb=0,Yb=null,Jb=!1,ev=!1,tv=50,nv=0,rv=null,ov=!1,iv=null,av=!1,sv=new Set,cv=null,uv=null,lv=!1,fv=!1,pv=!1,dv=!1,hv=0,yv={};!function(){for(var e=0;e<ch.length;e++){var t=ch[e];dn(t.toLowerCase(),"on"+(t=t[0].toUpperCase()+t.slice(1)))}dn(eh,"onAnimationEnd"),dn(th,"onAnimationIteration"),dn(nh,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(rh,"onTransitionRun"),dn(oh,"onTransitionStart"),dn(ih,"onTransitionCancel"),dn(ah,"onTransitionEnd")}(),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mv="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mv)),bv="_reactListening"+Math.random().toString(36).slice(2),vv=!1,wv=!1,Sv=!1,xv=!1,kv=!1,Ev=!1,Tv=!1,Av={},Cv=/\r\n?/g,_v=/\u0000|\uFFFD/g,Ov="http://www.w3.org/1999/xlink",Pv="http://www.w3.org/XML/1998/namespace",Rv="javascript:throw new Error('React form unexpectedly submitted.')",jv="suppressHydrationWarning",Iv="$",Nv="/$",Lv="$?",Bv="$!",Dv=1,Uv=2,Mv=4,Fv="F!",Vv="F",qv="complete",zv="style",Hv=0,Wv=1,Kv=2,$v=null,Xv=null,Gv={dialog:!0,webview:!0},Qv=null,Zv="function"==typeof setTimeout?setTimeout:void 0,Yv="function"==typeof clearTimeout?clearTimeout:void 0,Jv=-1,ew="function"==typeof Promise?Promise:void 0,tw="function"==typeof queueMicrotask?queueMicrotask:void 0!==ew?function(e){return ew.resolve(null).then(e).catch(au)}:Zv,nw=null,rw=0,ow=1,iw=2,aw=3,sw=4,cw=new Map,uw=new Set,lw=tf.d;tf.d={f:function(){var e=lw.f(),t=js();return e||t},r:function(e){var t=be(e);null!==t&&5===t.tag&&"form"===t.type?oi(t):lw.r(e)},D:function(e){lw.D(e),ju("dns-prefetch",e,null)},C:function(e,t){lw.C(e,t),ju("preconnect",e,t)},L:function(e,t,n){lw.L(e,t,n);var r=ww;if(r&&e&&t){var o='link[rel="preload"][as="'+Ke(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Ke(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+Ke(n.imageSizes)+'"]')):o+='[href="'+Ke(e)+'"]';var i=o;switch(t){case"style":i=Lu(e);break;case"script":i=Uu(e)}cw.has(i)||(e=Nl({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),cw.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Bu(i))||"script"===t&&r.querySelector(Mu(i))||(Kc(t=r.createElement("link"),"link",e),Se(t),r.head.appendChild(t)))}},m:function(e,t){lw.m(e,t);var n=ww;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+Ke(r)+'"][href="'+Ke(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Uu(e)}if(!cw.has(i)&&(e=Nl({rel:"modulepreload",href:e},t),cw.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mu(i)))return}Kc(r=n.createElement("link"),"link",e),Se(r),n.head.appendChild(r)}}},X:function(e,t){lw.X(e,t);var n=ww;if(n&&e){var r=we(n).hoistableScripts,o=Uu(e),i=r.get(o);i||((i=n.querySelector(Mu(o)))||(e=Nl({src:e,async:!0},t),(t=cw.get(o))&&zu(e,t),Se(i=n.createElement("script")),Kc(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){lw.S(e,t,n);var r=ww;if(r&&e){var o=we(r).hoistableStyles,i=Lu(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:rw,preload:null};if(a=r.querySelector(Bu(i)))s.loading=ow|sw;else{e=Nl({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cw.get(i))&&qu(e,n);var c=a=r.createElement("link");Se(c),Kc(c,"link",e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener("load",function(){s.loading|=ow}),c.addEventListener("error",function(){s.loading|=iw}),s.loading|=sw,Vu(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){lw.M(e,t);var n=ww;if(n&&e){var r=we(n).hoistableScripts,o=Uu(e),i=r.get(o);i||((i=n.querySelector(Mu(o)))||(e=Nl({src:e,async:!0,type:"module"},t),(t=cw.get(o))&&zu(e,t),Se(i=n.createElement("script")),Kc(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var fw,pw,dw,hw,yw,mw,gw,bw,vw,ww="undefined"==typeof document?null:document,Sw=null,xw=null,kw=null,Ew=null,Tw=nf,Aw={$$typeof:zl,Provider:null,Consumer:null,_currentValue:Tw,_currentValue2:Tw,_threadCount:0},Cw="%c%s%c ",_w="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Ow="",Pw=" ",Rw=Function.prototype.bind,jw=!1;fw=function(n,r,o,i){null!==(r=e(n,r))&&(o=t(r.memoizedState,o,0,i),r.memoizedState=o,r.baseState=o,n.memoizedProps=Nl({},n.memoizedProps),null!==(o=bn(n,2))&&Cs(o,n,2))},pw=function(t,n,r){null!==(n=e(t,n))&&(r=o(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,t.memoizedProps=Nl({},t.memoizedProps),null!==(r=bn(t,2))&&Cs(r,t,2))},dw=function(t,r,o,i){null!==(r=e(t,r))&&(o=n(r.memoizedState,o,i),r.memoizedState=o,r.baseState=o,t.memoizedProps=Nl({},t.memoizedProps),null!==(o=bn(t,2))&&Cs(o,t,2))},hw=function(e,n,r){e.pendingProps=t(e.memoizedProps,n,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(n=bn(e,2))&&Cs(n,e,2)},yw=function(e,t){e.pendingProps=o(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=bn(e,2))&&Cs(t,e,2)},mw=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),null!==(t=bn(e,2))&&Cs(t,e,2)},gw=function(e){var t=bn(e,2);null!==t&&Cs(t,e,2)},bw=function(e){a=e},vw=function(e){i=e};var Iw,Nw=!0,Lw=null,Bw=!1,Dw=null,Uw=null,Mw=null,Fw=new Map,Vw=new Map,qw=[],zw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Hw=null;if(xl.prototype.render=Sl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error("Cannot update an unmounted root.");var n=arguments;"function"==typeof n[1]?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==n[1]&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var r=t.current;el(r,Ts(r),n,t,null,null)},xl.prototype.unmount=Sl.prototype.unmount=function(){var e=arguments;if("function"==typeof e[0]&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),null!==(e=this._internalRoot)){this._internalRoot=null;var t=e.containerInfo;(Jg&(Hg|Wg))!==zg&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),el(e.current,2,null,e,null,null),js(),t[qf]=null}},xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=ye();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qw.length&&0!==t&&t<qw[n].priority;n++);qw.splice(n,0,e),0===n&&hl(e)}},function(){var e=jl.version;if("19.1.1"!==e)throw Error('Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: '+e+"\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")}(),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),tf.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=function(e){var t=e.alternate;if(!t){if(null===(t=x(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return T(o),e;if(i===r)return T(o),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?A(e):null)?null:e.stateNode},(Iw={bundleType:1,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:ef,reconcilerVersion:"19.1.1"}).overrideHookState=fw,Iw.overrideHookStateDeletePath=pw,Iw.overrideHookStateRenamePath=dw,Iw.overrideProps=hw,Iw.overridePropsDeletePath=yw,Iw.overridePropsRenamePath=mw,Iw.scheduleUpdate=gw,Iw.setErrorHandler=bw,Iw.setSuspenseHandler=vw,Iw.scheduleRefresh=g,Iw.scheduleRoot=y,Iw.setRefreshHandler=v,Iw.getCurrentFiber=ol,Iw.getLaneLabelMap=il,Iw.injectProfilingHooks=$,!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Tf=t.inject(e),Af=t}catch(e){console.error("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}(Iw)&&td&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Edge")||-1<navigator.userAgent.indexOf("Firefox"))){var Ww=window.location.protocol;/^(https?|file):$/.test(Ww)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+("file:"===Ww?"\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq":""),"font-weight:bold")}d.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");kl(e);var n=!1,r="",o=Di,i=Ui,a=Mi;return null!=t&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Bl&&console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(a=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Yu(e,1,!1,null,0,n,r,o,i,a,0,null),e[qf]=t.current,Pc(e),new Sl(t)},d.hydrateRoot=function(e,t,n){if(!w(e))throw Error("Target container is not a DOM element.");kl(e),void 0===t&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=!1,o="",i=Di,a=Ui,s=Mi,c=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(a=n.onCaughtError),void 0!==n.onRecoverableError&&(s=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Yu(e,1,!0,t,0,r,o,i,a,s,0,c)).context=Ju(null),(o=Pr(r=fe(r=Ts(n=t.current)))).callback=null,Rr(n,o,r),n=r,t.current.lanes=n,ce(t,n),hc(t),e[qf]=t.current,Pc(e),new xl(t)},d.version="19.1.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),d}var T,A=(w||(w=1,p.exports=E()),p.exports),C={exports:{}};var _,O=(T||(T=1,self,_=()=>(()=>{var t={41:(e,t,n)=>{var r=n(655),o=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{e.exports=Function.prototype.call},251:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=u}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*y}},345:(e,t,n)=>{e.exports=n(7007).EventEmitter},414:e=>{e.exports=Math.round},453:(e,t,n)=>{var r,o=n(9612),i=n(9383),a=n(1237),s=n(9290),c=n(9538),u=n(8068),l=n(9675),f=n(5345),p=n(1514),d=n(8968),h=n(6188),y=n(8002),m=n(5880),g=n(414),b=n(3093),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=n(5795),x=n(655),k=function(){throw new l},E=S?function(){try{return k}catch(e){try{return S(arguments,"callee").get}catch(e){return k}}}():k,T=n(4039)(),A=n(3628),C=n(1064),_=n(8648),O=n(1002),P=n(76),R={},j="undefined"!=typeof Uint8Array&&A?A(Uint8Array):r,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":E,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(A)try{null.error}catch(e){var N=A(A(e));I["%Error.prototype%"]=N}var L=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(n=A(o.prototype))}return I[t]=n,n},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(6743),U=n(9957),M=D.call(P,Array.prototype.concat),F=D.call(O,Array.prototype.splice),V=D.call(P,String.prototype.replace),q=D.call(P,String.prototype.slice),z=D.call(P,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(e,t){var n,r=e;if(U(B,r)&&(r="%"+(n=B[r])[0]+"%"),U(I,r)){var o=I[r];if(o===R&&(o=L(r)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,H,function(e,t,n,o){r[r.length]=n?V(o,W,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=K("%"+r+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(r=c[0],F(n,M([0,1],c)));for(var f=1,p=!0;f<n.length;f+=1){var d=n[f],h=q(d,0,1),y=q(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&p||(s=!0),U(I,i="%"+(r+="."+d)+"%"))a=I[i];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=n.length){var m=S(a,d);a=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else p=U(a,d),a=a[d];p&&!s&&(I[i]=a)}}return a}},487:(e,t,n)=>{var r=n(6897),o=n(655),i=n(3126),a=n(2205);e.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},507:(e,t,n)=>{var r=n(453),o=n(6556),i=n(8859),a=n(9675),s=r("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),l=o("Map.prototype.has",!0),f=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=f(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,n){e||(e=new s),u(e,t,n)}};return t}},537:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])m(s)||!S(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function c(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=f(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(E(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return p(n)}var u,l="",S=!1,T=["{","}"];return h(n)&&(S=!0,T=["[","]"]),E(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(l=" "+RegExp.prototype.toString.call(n)),x(n)&&(l=" "+Date.prototype.toUTCString.call(n)),k(n)&&(l=" "+p(n)),0!==a.length||S&&0!=n.length?r<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=S?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)_(t,String(a))?i.push(d(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,n,r,s,a):a.map(function(t){return d(e,n,r,s,t,S)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,T)):T[0]+l+T[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),_(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function x(e){return S(e)&&"[object Date]"===T(e)}function k(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(a.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=h,t.isBoolean=y,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=w,t.types.isRegExp=w,t.isObject=S,t.isDate=x,t.types.isDate=x,t.isError=k,t.types.isNativeError=k,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[A((e=new Date).getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),[e.getDate(),C[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!=typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,r){e?n(e):t(r)});try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then(function(e){process.nextTick(i.bind(null,null,e))},function(e){process.nextTick(P.bind(null,e,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},592:(e,t,n)=>{var r=n(655),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},655:e=>{var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},784:(e,t,n)=>{n.d(t,{$D:()=>d,Af:()=>u,WC:()=>l,fG:()=>p,jr:()=>h,tR:()=>f});var r=n(8950),o=n(4076);function i(e){return i="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},i(e)}function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=e.errorResultXdr,n=e.diagnosticEventsXdr;return delete e.errorResultXdr,delete e.diagnosticEventsXdr,t?s(s(s({},e),void 0!==n&&n.length>0&&{diagnosticEvents:n.map(function(e){return r.xdr.DiagnosticEvent.fromXDR(e,"base64")})}),{},{errorResult:r.xdr.TransactionResult.fromXDR(t,"base64")}):s({},e)}function l(e){var t,n,o,i,a=r.xdr.TransactionMeta.fromXDR(e.resultMetaXdr,"base64"),s={ledger:e.ledger,createdAt:e.createdAt,applicationOrder:e.applicationOrder,feeBump:e.feeBump,envelopeXdr:r.xdr.TransactionEnvelope.fromXDR(e.envelopeXdr,"base64"),resultXdr:r.xdr.TransactionResult.fromXDR(e.resultXdr,"base64"),resultMetaXdr:a,events:{contractEventsXdr:(null!==(t=null===(n=e.events)||void 0===n?void 0:n.contractEventsXdr)&&void 0!==t?t:[]).map(function(e){return e.map(function(e){return r.xdr.ContractEvent.fromXDR(e,"base64")})}),transactionEventsXdr:(null!==(o=null===(i=e.events)||void 0===i?void 0:i.transactionEventsXdr)&&void 0!==o?o:[]).map(function(e){return r.xdr.TransactionEvent.fromXDR(e,"base64")})}};switch(a.switch()){case 3:case 4:var c,u,l=a.value();null!==l.sorobanMeta()&&(s.returnValue=null!==(c=null===(u=l.sorobanMeta())||void 0===u?void 0:u.returnValue())&&void 0!==c?c:void 0)}return e.diagnosticEventsXdr&&(s.diagnosticEventsXdr=e.diagnosticEventsXdr.map(function(e){return r.xdr.DiagnosticEvent.fromXDR(e,"base64")})),s}function f(e){return s({status:e.status,txHash:e.txHash},l(e))}function p(e){var t;return{latestLedger:e.latestLedger,oldestLedger:e.oldestLedger,latestLedgerCloseTime:e.latestLedgerCloseTime,oldestLedgerCloseTime:e.oldestLedgerCloseTime,cursor:e.cursor,events:(null!==(t=e.events)&&void 0!==t?t:[]).map(function(e){var t=s({},e);return delete t.contractId,s(s(s({},t),""!==e.contractId&&{contractId:new r.Contract(e.contractId)}),{},{topic:e.topic.map(function(e){return r.xdr.ScVal.fromXDR(e,"base64")}),value:r.xdr.ScVal.fromXDR(e.value,"base64")})})}}function d(e){var t;return{latestLedger:e.latestLedger,entries:(null!==(t=e.entries)&&void 0!==t?t:[]).map(function(e){if(!e.key||!e.xdr)throw new TypeError("invalid ledger entry: ".concat(JSON.stringify(e)));return s({lastModifiedLedgerSeq:e.lastModifiedLedgerSeq,key:r.xdr.LedgerKey.fromXDR(e.key,"base64"),val:r.xdr.LedgerEntryData.fromXDR(e.xdr,"base64")},void 0!==e.liveUntilLedgerSeq&&{liveUntilLedgerSeq:e.liveUntilLedgerSeq})})}}function h(e){var t,n;if(!o.j.isSimulationRaw(e))return e;var i={_parsed:!0,id:e.id,latestLedger:e.latestLedger,events:null!==(t=null===(n=e.events)||void 0===n?void 0:n.map(function(e){return r.xdr.DiagnosticEvent.fromXDR(e,"base64")}))&&void 0!==t?t:[]};return"string"==typeof e.error?s(s({},i),{},{error:e.error}):function(e,t){var n,o,i,a,c,u=s(s(s({},t),{},{transactionData:new r.SorobanDataBuilder(e.transactionData),minResourceFee:e.minResourceFee},null!==(n=null===(o=e.results)||void 0===o?void 0:o.length)&&void 0!==n&&n&&{result:e.results.map(function(e){var t;return{auth:(null!==(t=e.auth)&&void 0!==t?t:[]).map(function(e){return r.xdr.SorobanAuthorizationEntry.fromXDR(e,"base64")}),retval:e.xdr?r.xdr.ScVal.fromXDR(e.xdr,"base64"):r.xdr.ScVal.scvVoid()}})[0]}),null!==(i=null===(a=e.stateChanges)||void 0===a?void 0:a.length)&&void 0!==i&&i&&{stateChanges:null===(c=e.stateChanges)||void 0===c?void 0:c.map(function(e){return{type:e.type,key:r.xdr.LedgerKey.fromXDR(e.key,"base64"),before:e.before?r.xdr.LedgerEntry.fromXDR(e.before,"base64"):null,after:e.after?r.xdr.LedgerEntry.fromXDR(e.after,"base64"):null}})});return e.restorePreamble&&""!==e.restorePreamble.transactionData?s(s({},u),{},{restorePreamble:{minResourceFee:e.restorePreamble.minResourceFee,transactionData:new r.SorobanDataBuilder(e.restorePreamble.transactionData)}}):u}(e,i)}},920:(e,t,n)=>{var r=n(9675),o=n(8859),i=n(4803),a=n(507),s=n(2271)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},1002:e=>{e.exports=Function.prototype.apply},1064:(e,t,n)=>{var r=n(9612);e.exports=r.getPrototypeOf||null},1083:(e,t,n)=>{var r=n(1568),o=n(8835),i=e.exports;for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);function s(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=s(e),r.request.call(this,e,t)},i.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1237:e=>{e.exports=EvalError},1270:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,a=2147483647,s=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function h(e){throw new RangeError(f[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(l,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function b(e){return y(e,function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)}).join("")}function v(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=s)e=p(e/35);return p(r+36*e/(e+38))}function x(e){var t,n,r,o,i,c,u,l,f,d,y=[],m=e.length,g=0,w=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=g,c=1,u=s;o>=m&&h("invalid-input"),((l=v(e.charCodeAt(o++)))>=s||l>p((a-g)/c))&&h("overflow"),g+=l*c,!(l<(f=u<=x?1:u>=x+26?26:u-x));u+=s)c>p(a/(d=s-f))&&h("overflow"),c*=d;x=S(g-i,t=y.length+1,0==i),p(g/t)>a-w&&h("overflow"),w+=p(g/t),g%=t,y.splice(g++,0,w)}return b(y)}function k(e){var t,n,r,o,i,c,u,l,f,y,m,b,v,x,k,E=[];for(b=(e=g(e)).length,t=128,n=0,i=72,c=0;c<b;++c)(m=e[c])<128&&E.push(d(m));for(r=o=E.length,o&&E.push("-");r<b;){for(u=a,c=0;c<b;++c)(m=e[c])>=t&&m<u&&(u=m);for(u-t>p((a-n)/(v=r+1))&&h("overflow"),n+=(u-t)*v,t=u,c=0;c<b;++c)if((m=e[c])<t&&++n>a&&h("overflow"),m==t){for(l=n,f=s;!(l<(y=f<=i?1:f>=i+26?26:f-i));f+=s)k=l-y,x=s-y,E.push(d(w(y+k%x,0))),l=p(k/x);E.push(d(w(l,0))),i=S(n,v,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:b},decode:x,encode:k,toASCII:function(e){return m(e,function(e){return u.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},1293:(e,t,n)=>{var r=n(5546),o=n(2708);e.exports={parse:function(e){var t=r.parse(e.toString());return o.compile(t)}}},1333:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1430:function(e,t,n){var r,o,i;i=function(e){var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),o=r.length,i=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[o-1]&&""===r[o-2]&&r.pop(),-1!==r[(o=r.length)-1].indexOf(".")&&(i=7),t=0;t<o&&""!==r[t];t++);if(t<i)for(r.splice(t,1,"0000");r.length<i;)r.splice(t,0,"0000");for(var a=0;a<i;a++){n=r[a].split("");for(var s=0;s<3&&"0"===n[0]&&n.length>1;s++)n.splice(0,1);r[a]=n.join("")}var c=-1,u=0,l=0,f=-1,p=!1;for(a=0;a<i;a++)p?"0"===r[a]?l+=1:(p=!1,l>u&&(c=f,u=l)):"0"===r[a]&&(p=!0,f=a,l=1);l>u&&(c=f,u=l),u>1&&r.splice(c,u,""),o=r.length;var d="";for(""===r[0]&&(d=":"),a=0;a<o&&(d+=r[a],a!==o-1);a++)d+=":";return""===r[o-1]&&(d+=":"),d},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}},e.exports?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},1514:e=>{e.exports=Math.abs},1568:(e,t,n)=>{var r=n(5537),o=n(6917),i=n(7510),a=n(6866),s=n(8835),c=t;c.request=function(e,t){e="string"==typeof e?s.parse(e):i(e);var o=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return t&&f.on("response",t),f},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},1731:(e,t,n)=>{var r=n(8287).Buffer,o=n(8835).parse,i=n(7007),a=n(1083),s=n(1568),c=n(537),u=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],l=[239,187,191],f=262144,p=/^(cookie|authorization)$/i;function d(e,t){var n=d.CONNECTING,i=t&&t.headers,c=!1;Object.defineProperty(this,"readyState",{get:function(){return n}}),Object.defineProperty(this,"url",{get:function(){return e}});var m,g=this;function b(t){n!==d.CLOSED&&(n=d.CONNECTING,T("error",new h("error",{message:t})),k&&(e=k,k=null,c=!1),setTimeout(function(){n!==d.CONNECTING||g.connectionInProgress||(g.connectionInProgress=!0,E())},g.reconnectInterval))}g.reconnectInterval=1e3,g.connectionInProgress=!1;var v="";i&&i["Last-Event-ID"]&&(v=i["Last-Event-ID"],delete i["Last-Event-ID"]);var w=!1,S="",x="",k=null;function E(){var y=o(e),S="https:"===y.protocol;if(y.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},v&&(y.headers["Last-Event-ID"]=v),i){var x=c?function(e){var t={};for(var n in e)p.test(n)||(t[n]=e[n]);return t}(i):i;for(var C in x){var _=x[C];_&&(y.headers[C]=_)}}if(y.rejectUnauthorized=!(t&&!t.rejectUnauthorized),t&&void 0!==t.createConnection&&(y.createConnection=t.createConnection),t&&t.proxy){var O=o(t.proxy);S="https:"===O.protocol,y.protocol=S?"https:":"http:",y.path=e,y.headers.Host=y.host,y.hostname=O.hostname,y.host=O.host,y.port=O.port}if(t&&t.https)for(var P in t.https)if(-1!==u.indexOf(P)){var R=t.https[P];void 0!==R&&(y[P]=R)}t&&void 0!==t.withCredentials&&(y.withCredentials=t.withCredentials),m=(S?a:s).request(y,function(t){if(g.connectionInProgress=!1,500===t.statusCode||502===t.statusCode||503===t.statusCode||504===t.statusCode)return T("error",new h("error",{status:t.statusCode,message:t.statusMessage})),void b();if(301===t.statusCode||302===t.statusCode||307===t.statusCode){var o=t.headers.location;if(!o)return void T("error",new h("error",{status:t.statusCode,message:t.statusMessage}));var i=new URL(e).origin,a=new URL(o).origin;return c=i!==a,307===t.statusCode&&(k=e),e=o,void process.nextTick(E)}if(200!==t.statusCode)return T("error",new h("error",{status:t.statusCode,message:t.statusMessage})),g.close();var s,u;n=d.OPEN,t.on("close",function(){t.removeAllListeners("close"),t.removeAllListeners("end"),b()}),t.on("end",function(){t.removeAllListeners("close"),t.removeAllListeners("end"),b()}),T("open",new h("open"));var p=0,y=-1,m=0,v=0;t.on("data",function(e){s?(e.length>s.length-v&&((m=2*s.length+e.length)>f&&(m=s.length+e.length+f),u=r.alloc(m),s.copy(u,0,0,v),s=u),e.copy(s,v),v+=e.length):(function(e){return l.every(function(t,n){return e[n]===t})}(s=e)&&(s=s.slice(l.length)),v=s.length);for(var t=0,n=v;t<n;){w&&(10===s[t]&&++t,w=!1);for(var o,i=-1,a=y,c=p;i<0&&c<n;++c)58===(o=s[c])?a<0&&(a=c-t):13===o?(w=!0,i=c-t):10===o&&(i=c-t);if(i<0){p=n-t,y=a;break}p=0,y=-1,A(s,t,a,i),t+=i+1}t===n?(s=void 0,v=0):t>0&&(s=s.slice(t,v),v=s.length)})}),m.on("error",function(e){g.connectionInProgress=!1,b(e.message)}),m.setNoDelay&&m.setNoDelay(!0),m.end()}function T(){g.listeners(arguments[0]).length>0&&g.emit.apply(g,arguments)}function A(t,n,r,o){if(0===o){if(S.length>0){var i=x||"message";T(i,new y(i,{data:S.slice(0,-1),lastEventId:v,origin:new URL(e).origin})),S=""}x=void 0}else if(r>0){var a,s=r<0,c=t.slice(n,n+(s?o:r)).toString();n+=a=s?o:32!==t[n+r+1]?r+1:r+2;var u=o-a,l=t.slice(n,n+u).toString();if("data"===c)S+=l+"\n";else if("event"===c)x=l;else if("id"===c)v=l;else if("retry"===c){var f=parseInt(l,10);Number.isNaN(f)||(g.reconnectInterval=f)}}}E(),this._close=function(){n!==d.CLOSED&&(n=d.CLOSED,m.abort&&m.abort(),m.xhr&&m.xhr.abort&&m.xhr.abort())}}function h(e,t){if(Object.defineProperty(this,"type",{writable:!1,value:e,enumerable:!0}),t)for(var n in t)t.hasOwnProperty(n)&&Object.defineProperty(this,n,{writable:!1,value:t[n],enumerable:!0})}function y(e,t){for(var n in Object.defineProperty(this,"type",{writable:!1,value:e,enumerable:!0}),t)t.hasOwnProperty(n)&&Object.defineProperty(this,n,{writable:!1,value:t[n],enumerable:!0})}e.exports=d,c.inherits(d,i.EventEmitter),d.prototype.constructor=d,["open","error","message"].forEach(function(e){Object.defineProperty(d.prototype,"on"+e,{get:function(){var t=this.listeners(e)[0];return t?t._listener?t._listener:t:void 0},set:function(t){this.removeAllListeners(e),this.addEventListener(e,t)}})}),Object.defineProperty(d,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(d,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(d,"CLOSED",{enumerable:!0,value:2}),d.prototype.CONNECTING=0,d.prototype.OPEN=1,d.prototype.CLOSED=2,d.prototype.close=function(){this._close()},d.prototype.addEventListener=function(e,t){"function"==typeof t&&(t._listener=t,this.on(e,t))},d.prototype.dispatchEvent=function(e){if(!e.type)throw new Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(e.type,e.detail)},d.prototype.removeEventListener=function(e,t){"function"==typeof t&&(t._listener=void 0,this.removeListener(e,t))}},1924:(e,t,n)=>{n.r(t),n.d(t,{StellarBase:()=>a,default:()=>s,httpClient:()=>r.ok});var r=n(9983),o=n(4356),i={};for(const e in o)["default","StellarBase","httpClient"].indexOf(e)<0&&(i[e]=()=>o[e]);n.d(t,i);var a=n(8950);const s=(e=n.hmd(e)).exports},2205:(e,t,n)=>{var r=n(6743),o=n(1002),i=n(3144);e.exports=function(){return i(r,o,arguments)}},2271:(e,t,n)=>{var r=n(453),o=n(6556),i=n(8859),a=n(507),s=n(9675),c=r("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),l(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return n}:a},2634:()=>{},2642:(e,t,n)=>{var r=n(7720),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(a),l=u?a.slice(0,u.index):a,f=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;f.push(l)}for(var p=0;n.depth>0&&null!==(u=s.exec(a))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(u[1])}if(u){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");f.push("["+a.slice(u.index)+"]")}return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,n,i),u=e.length-1;u>=0;--u){var l,f=e[u];if("[]"===f&&n.parseArrays)l=n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s);else{l=n.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(d,10);n.parseArrays||""!==d?!isNaN(h)&&f!==d&&String(h)===d&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(l=[])[h]=s:"__proto__"!==d&&(l[d]=s):l={0:s}}s=l}return s}(f,t,n,i)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,t.throwOnLimitExceeded?l+1:l);if(t.throwOnLimitExceeded&&f.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var p,d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p<f.length;++p)0===f[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[p]?h="utf-8":"utf8=%26%2310003%3B"===f[p]&&(h="iso-8859-1"),d=p,p=f.length);for(p=0;p<f.length;++p)if(p!==d){var y,m,g=f[p],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(y=t.decoder(g,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(g.slice(0,v),a.decoder,h,"key"),m=r.maybeMap(c(g.slice(v+1),t,i(n[y])?n[y].length:0),function(e){return t.decoder(e,a.decoder,h,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=o.call(n,y);w&&"combine"===t.duplicates?n[y]=r.combine(n[y],m):w&&"last"!==t.duplicates||(n[y]=m)}return n}(e,n):e,f=n.plainObjects?{__proto__:null}:{},p=Object.keys(l),d=0;d<p.length;++d){var h=p[d],y=u(h,l[h],n,"string"==typeof e);f=r.merge(f,y,n)}return!0===n.allowSparse?f:r.compact(f)}},2682:(e,t,n)=>{var r=n(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===o.call(s)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},2708:e=>{e.exports={compile:function(e){var t=[],n=[],r="",o=Object.create(null),i=o;return function(e){for(var t,n=0;n<e.length;n++)switch((t=e[n]).type){case"Assign":s(t);break;case"ObjectPath":f(t);break;case"ArrayPath":p(t)}return o}(e);function a(e,t,n){var r=new Error(e);throw r.line=t,r.column=n,r}function s(e){var o,s=e.key,l=e.value,f=e.line,p=e.column;o=r?r+"."+s:s,void 0!==i[s]&&a("Cannot redefine existing key '"+o+"'.",f,p),i[s]=u(l),c(o)||(t.push(o),n.push(o))}function c(e){return-1!==t.indexOf(e)}function u(e){return"Array"===e.type?function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n];null===t?t=r.type:r.type!==t&&a("Cannot add value of type "+r.type+" to array of type "+t+".",r.line,r.column)}return e.map(u)}(e.value):"InlineTable"===e.type?l(e.value):e.value}function l(e){for(var t=Object.create(null),n=0;n<e.length;n++){var r=e[n];"InlineTable"===r.value.type?t[r.key]=l(r.value.value):"InlineTableValue"===r.type&&(t[r.key]=u(r.value))}return t}function f(e){var n=e.value,s=n.map(h).join("."),u=e.line,l=e.column;c(s)&&a("Cannot redefine existing key '"+n+"'.",u,l),t.push(s),i=d(o,n,Object.create(null),u,l),r=n}function p(e){var n=e.value,s=n.map(h).join("."),u=e.line,l=e.column;if(c(s)||t.push(s),(t=t.filter(function(e){return 0!==e.indexOf(s)})).push(s),i=d(o,n,[],u,l),r=s,i instanceof Array){var f=Object.create(null);i.push(f),i=f}else a("Cannot redefine existing key '"+n+"'.",u,l)}function d(e,t,r,o,i){for(var s=[],c="",u=(t.join("."),e),l=0;l<t.length;l++){var f=t[l];s.push(f),c=s.join("."),void 0===u[f]?l===t.length-1?u[f]=r:u[f]=Object.create(null):l!==t.length-1&&n.indexOf(c)>-1&&a("Cannot redefine existing key '"+c+"'.",o,i),(u=u[f])instanceof Array&&u.length&&l<t.length-1&&(u=u[u.length-1])}return u}function h(e){return e.indexOf(".")>-1?'"'+e+'"':e}}}},2726:(e,t,n)=>{function r(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var s=n(8287).Buffer,c=n(5340).inspect,u=c&&c.custom||"inspect";function l(e,t,n){s.prototype.copy.call(e,t,n)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t=s.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?r+=o:r+=o.slice(0,e),0===(e-=i)){i===o.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0===(e-=i)){i===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(i));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return c(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&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,a(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2861:(e,t,n)=>{var r=n(8287),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2955:(e,t,n)=>{var r;function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function h(e){var t=e[a];if(null!==t){var n=e[p].read();null!==n&&(e[l]=null,e[a]=null,e[s]=null,t(d(n,!1)))}}function y(e){process.nextTick(h,e)}var m=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((o(r={get stream(){return this[p]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[c]?n(e[c]):t(d(void 0,!0))})});var n,r=this[l];if(r)n=new Promise(function(e,t){return function(n,r){e.then(function(){t[u]?n(d(void 0,!0)):t[f](n,r)},r)}}(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,function(){return this}),o(r,"return",function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){e?n(e):t(d(void 0,!0))})})}),r),m);e.exports=function(e){var t,n=Object.create(g,(o(t={},p,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var r=n[p].read();r?(n[l]=null,n[a]=null,n[s]=null,e(d(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[l]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[l]=null,n[a]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[a];null!==r&&(n[l]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0}),e.on("readable",y.bind(null,n)),n}},3093:(e,t,n)=>{var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3121:(e,t,n)=>{function r(e){return r="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},r(e)}function o(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,i(r.key),r)}}function i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>c});var a,s,c=(a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},s=[{key:"validateTimebounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e.timeBounds)return!1;var n=Math.floor(Date.now()/1e3),r=e.timeBounds,o=r.minTime,i=r.maxTime;return n>=Number.parseInt(o,10)-t&&n<=Number.parseInt(i,10)+t}},{key:"sleep",value:function(e){return new Promise(function(t){return setTimeout(t,e)})}}],s&&o(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a)},3126:(e,t,n)=>{var r=n(6743),o=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},3141:(e,t,n)=>{var r=n(2861).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(e.lastNeed=o-2),o):--r<n||-2===o?0:(o=a(t[r]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3144:(e,t,n)=>{var r=n(6743),o=n(1002),i=n(76),a=n(7119);e.exports=a||r.call(i,o)},3209:(e,t,n)=>{var r=65536,o=n(2861).Buffer,i=n.g.crypto||n.g.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>r)for(var a=0;a<e;a+=r)i.getRandomValues(n.slice(a,a+r));else i.getRandomValues(n);return"function"==typeof t?process.nextTick(function(){t(null,n)}):n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},3496:(e,t,n)=>{n.r(t),n.d(t,{Api:()=>r.j,AxiosClient:()=>s,BasicSleepStrategy:()=>_,Durability:()=>C,LinearSleepStrategy:()=>O,Server:()=>oe,assembleTransaction:()=>h.X,default:()=>ie,parseRawEvents:()=>y.fG,parseRawSimulation:()=>y.jr});var r=n(4076),o=n(4193),i=n.n(o),a=n(8950);const s=(0,n(9983).vt)({headers:{"X-Client-Name":"js-soroban-client","X-Client-Version":"14.1.1"}});function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return u(l,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),l}var a={};function s(){}function l(){}function f(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),d=f.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,u(d,"constructor",f),u(f,"constructor",l),l.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,r,function(){return this}),u(d,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:h}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function i(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},u(e,t,n,r)}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){return e.hasOwnProperty(t)}function p(e,t){return d.apply(this,arguments)}function d(){var e;return e=c().m(function e(t,n){var r,o,i,a=arguments;return c().w(function(e){for(;;)switch(e.n){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:null,e.n=1,s.post(t,{jsonrpc:"2.0",id:1,method:n,params:r});case 1:if(!f((o=e.v).data,"error")){e.n=2;break}throw o.data.error;case 2:return e.a(2,null===(i=o.data)||void 0===i?void 0:i.result);case 3:return e.a(2)}},e)}),d=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)})},d.apply(this,arguments)}var h=n(8680),y=n(784),m=n(3121),g=n(8287).Buffer;function b(e){return b="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},b(e)}function v(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return k(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(k(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,k(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,k(f,"constructor",u),k(u,"constructor",c),c.displayName="GeneratorFunction",k(u,o,"GeneratorFunction"),k(f),k(f,o,"Generator"),k(f,r,function(){return this}),k(f,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:p}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}k=function(e,t,n,r){function i(t,n){k(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},k(e,t,n,r)}function E(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function T(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){E(i,r,o,a,s,"next",e)}function s(e){E(i,r,o,a,s,"throw",e)}a(void 0)})}}function A(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}var C=function(e){return e.Temporary="temporary",e.Persistent="persistent",e}({}),_=function(e){return 1e3},O=function(e){return 1e3*e};function P(e){var t,n=[];switch(e.switch()){case 0:n=e.operations();break;case 1:case 2:case 3:case 4:n=e.value().operations();break;default:throw new Error("Unexpected transaction meta switch value")}var r=null===(t=n.flatMap(function(e){return e.changes()}).find(function(e){return e.switch()===a.xdr.LedgerEntryChangeType.ledgerEntryCreated()&&e.created().data().switch()===a.xdr.LedgerEntryType.account()}))||void 0===t||null===(t=t.created())||void 0===t||null===(t=t.data())||void 0===t||null===(t=t.account())||void 0===t||null===(t=t.seqNum())||void 0===t?void 0:t.toString();if(r)return r;throw new Error("No account created in transaction")}var R,j,I,N,L,B,D,U,M,F,V,q,z,H,W,K,$,X,G,Q,Z,Y,J,ee,te,ne,re,oe=(R=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.serverURL=i()(t),n.headers&&0!==Object.keys(n.headers).length&&s.interceptors.request.use(function(e){return e.headers=Object.assign(e.headers,n.headers),e}),"https"!==this.serverURL.protocol()&&!n.allowHttp)throw new Error("Cannot connect to insecure Soroban RPC server if `allowHttp` isn't set")},j=[{key:"getAccount",value:(re=T(x().m(function e(t){var n,r,o;return x().w(function(e){for(;;)switch(e.n){case 0:return n=a.xdr.LedgerKey.account(new a.xdr.LedgerKeyAccount({accountId:a.Keypair.fromPublicKey(t).xdrPublicKey()})),e.n=1,this.getLedgerEntries(n);case 1:if(0!==(r=e.v).entries.length){e.n=2;break}return e.a(2,Promise.reject({code:404,message:"Account not found: ".concat(t)}));case 2:return o=r.entries[0].val.account(),e.a(2,new a.Account(t,o.seqNum().toString()))}},e,this)})),function(e){return re.apply(this,arguments)})},{key:"getHealth",value:(ne=T(x().m(function e(){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getHealth"))},e,this)})),function(){return ne.apply(this,arguments)})},{key:"getContractData",value:(te=T(x().m(function e(t,n){var r,o,i,s,c,u=arguments;return x().w(function(e){for(;;)switch(e.n){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:C.Persistent,"string"!=typeof t){e.n=1;break}o=new a.Contract(t).address().toScAddress(),e.n=4;break;case 1:if(!(t instanceof a.Address)){e.n=2;break}o=t.toScAddress(),e.n=4;break;case 2:if(!(t instanceof a.Contract)){e.n=3;break}o=t.address().toScAddress(),e.n=4;break;case 3:throw new TypeError("unknown contract type: ".concat(t));case 4:c=r,e.n=c===C.Temporary?5:c===C.Persistent?6:7;break;case 5:return i=a.xdr.ContractDataDurability.temporary(),e.a(3,8);case 6:return i=a.xdr.ContractDataDurability.persistent(),e.a(3,8);case 7:throw new TypeError("invalid durability: ".concat(r));case 8:return s=a.xdr.LedgerKey.contractData(new a.xdr.LedgerKeyContractData({key:n,contract:o,durability:i})),e.a(2,this.getLedgerEntries(s).then(function(e){return 0===e.entries.length?Promise.reject({code:404,message:"Contract data not found. Contract: ".concat(a.Address.fromScAddress(o).toString(),", Key: ").concat(n.toXDR("base64"),", Durability: ").concat(r)}):e.entries[0]}))}},e,this)})),function(e,t){return te.apply(this,arguments)})},{key:"getContractWasmByContractId",value:(ee=T(x().m(function e(t){var n,r,o,i;return x().w(function(e){for(;;)switch(e.n){case 0:return r=new a.Contract(t).getFootprint(),e.n=1,this.getLedgerEntries(r);case 1:if((o=e.v).entries.length&&null!==(n=o.entries[0])&&void 0!==n&&n.val){e.n=2;break}return e.a(2,Promise.reject({code:404,message:"Could not obtain contract hash from server"}));case 2:return i=o.entries[0].val.contractData().val().instance().executable().wasmHash(),e.a(2,this.getContractWasmByHash(i))}},e,this)})),function(e){return ee.apply(this,arguments)})},{key:"getContractWasmByHash",value:(J=T(x().m(function e(t){var n,r,o,i,s,c,u=arguments;return x().w(function(e){for(;;)switch(e.n){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:void 0,o="string"==typeof t?g.from(t,r):t,i=a.xdr.LedgerKey.contractCode(new a.xdr.LedgerKeyContractCode({hash:o})),e.n=1,this.getLedgerEntries(i);case 1:if((s=e.v).entries.length&&null!==(n=s.entries[0])&&void 0!==n&&n.val){e.n=2;break}return e.a(2,Promise.reject({code:404,message:"Could not obtain contract wasm from server"}));case 2:return c=s.entries[0].val.contractCode().code(),e.a(2,c)}},e,this)})),function(e){return J.apply(this,arguments)})},{key:"getLedgerEntries",value:(Y=T(x().m(function e(){var t=arguments;return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._getLedgerEntries.apply(this,t).then(y.$D))},e,this)})),function(){return Y.apply(this,arguments)})},{key:"_getLedgerEntries",value:(Z=T(x().m(function e(){var t,n,r,o=arguments;return x().w(function(e){for(;;)if(0===e.n){for(t=o.length,n=new Array(t),r=0;r<t;r++)n[r]=o[r];return e.a(2,p(this.serverURL.toString(),"getLedgerEntries",{keys:n.map(function(e){return e.toXDR("base64")})}))}},e,this)})),function(){return Z.apply(this,arguments)})},{key:"pollTransaction",value:(Q=T(x().m(function e(t,n){var o,i,a,s,c,u;return x().w(function(e){for(;;)switch(e.n){case 0:a=(null!==(o=null==n?void 0:n.attempts)&&void 0!==o?o:0)<1?30:null!==(i=null==n?void 0:n.attempts)&&void 0!==i?i:30,c=1;case 1:if(!(c<a)){e.n=5;break}return e.n=2,this.getTransaction(t);case 2:if((s=e.v).status===r.j.GetTransactionStatus.NOT_FOUND){e.n=3;break}return e.a(2,s);case 3:return e.n=4,m.A.sleep((null!==(u=null==n?void 0:n.sleepStrategy)&&void 0!==u?u:_)(c));case 4:c++,e.n=1;break;case 5:return e.a(2,s)}},e,this)})),function(e,t){return Q.apply(this,arguments)})},{key:"getTransaction",value:(G=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._getTransaction(t).then(function(e){var n={};return e.status!==r.j.GetTransactionStatus.NOT_FOUND&&Object.assign(n,(0,y.WC)(e)),w({status:e.status,txHash:t,latestLedger:e.latestLedger,latestLedgerCloseTime:e.latestLedgerCloseTime,oldestLedger:e.oldestLedger,oldestLedgerCloseTime:e.oldestLedgerCloseTime},n)}))},e,this)})),function(e){return G.apply(this,arguments)})},{key:"_getTransaction",value:(X=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getTransaction",{hash:t}))},e,this)})),function(e){return X.apply(this,arguments)})},{key:"getTransactions",value:($=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._getTransactions(t).then(function(e){return{transactions:(e.transactions||[]).map(y.tR),latestLedger:e.latestLedger,latestLedgerCloseTimestamp:e.latestLedgerCloseTimestamp,oldestLedger:e.oldestLedger,oldestLedgerCloseTimestamp:e.oldestLedgerCloseTimestamp,cursor:e.cursor}}))},e,this)})),function(e){return $.apply(this,arguments)})},{key:"_getTransactions",value:(K=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getTransactions",t))},e,this)})),function(e){return K.apply(this,arguments)})},{key:"getEvents",value:(W=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._getEvents(t).then(y.fG))},e,this)})),function(e){return W.apply(this,arguments)})},{key:"_getEvents",value:(H=T(x().m(function e(t){var n;return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getEvents",w(w({filters:null!==(n=t.filters)&&void 0!==n?n:[],pagination:w(w({},t.cursor&&{cursor:t.cursor}),t.limit&&{limit:t.limit})},t.startLedger&&{startLedger:t.startLedger}),t.endLedger&&{endLedger:t.endLedger})))},e,this)})),function(e){return H.apply(this,arguments)})},{key:"getNetwork",value:(z=T(x().m(function e(){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getNetwork"))},e,this)})),function(){return z.apply(this,arguments)})},{key:"getLatestLedger",value:(q=T(x().m(function e(){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getLatestLedger"))},e,this)})),function(){return q.apply(this,arguments)})},{key:"simulateTransaction",value:(V=T(x().m(function e(t,n,r){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._simulateTransaction(t,n,r).then(y.jr))},e,this)})),function(e,t,n){return V.apply(this,arguments)})},{key:"_simulateTransaction",value:(F=T(x().m(function e(t,n,r){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"simulateTransaction",w({transaction:t.toXDR(),authMode:r},void 0!==n&&{resourceConfig:{instructionLeeway:n.cpuInstructions}})))},e,this)})),function(e,t,n){return F.apply(this,arguments)})},{key:"prepareTransaction",value:(M=T(x().m(function e(t){var n;return x().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.simulateTransaction(t);case 1:if(n=e.v,!r.j.isSimulationError(n)){e.n=2;break}throw new Error(n.error);case 2:return e.a(2,(0,h.X)(t,n).build())}},e,this)})),function(e){return M.apply(this,arguments)})},{key:"sendTransaction",value:(U=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,this._sendTransaction(t).then(y.Af))},e,this)})),function(e){return U.apply(this,arguments)})},{key:"_sendTransaction",value:(D=T(x().m(function e(t){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"sendTransaction",{transaction:t.toXDR()}))},e,this)})),function(e){return D.apply(this,arguments)})},{key:"requestAirdrop",value:(B=T(x().m(function e(t,n){var o,i,c,u,l,f,p,d,h;return x().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o="string"==typeof t?t:t.accountId(),d=n){e.n=2;break}return e.n=1,this.getNetwork();case 1:d=e.v.friendbotUrl;case 2:if(n=d){e.n=3;break}throw new Error("No friendbot URL configured for current network");case 3:return e.p=3,e.n=4,s.post("".concat(n,"?addr=").concat(encodeURIComponent(o)));case 4:if((i=e.v).data.result_meta_xdr){e.n=7;break}return e.n=5,this.getTransaction(i.data.hash);case 5:if((u=e.v).status===r.j.GetTransactionStatus.SUCCESS){e.n=6;break}throw new Error("Funding account ".concat(t," failed"));case 6:c=u.resultMetaXdr,e.n=8;break;case 7:c=a.xdr.TransactionMeta.fromXDR(i.data.result_meta_xdr,"base64");case 8:return l=P(c),e.a(2,new a.Account(o,l));case 9:if(e.p=9,h=e.v,400!==(null===(f=h.response)||void 0===f?void 0:f.status)){e.n=10;break}if(null===(p=h.response.detail)||void 0===p||!p.includes("createAccountAlreadyExist")){e.n=10;break}return e.a(2,this.getAccount(o));case 10:throw h;case 11:return e.a(2)}},e,this,[[3,9]])})),function(e,t){return B.apply(this,arguments)})},{key:"getFeeStats",value:(L=T(x().m(function e(){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getFeeStats"))},e,this)})),function(){return L.apply(this,arguments)})},{key:"getVersionInfo",value:(N=T(x().m(function e(){return x().w(function(e){for(;;)if(0===e.n)return e.a(2,p(this.serverURL.toString(),"getVersionInfo"))},e,this)})),function(){return N.apply(this,arguments)})},{key:"getSACBalance",value:(I=T(x().m(function e(t,n,r){var o,i,s,c,u,l,f,p,d,h,y;return x().w(function(e){for(;;)switch(e.n){case 0:if(a.StrKey.isValidContract(t)){e.n=1;break}throw new TypeError("expected contract ID, got ".concat(t));case 1:if(null==r){e.n=2;break}y=r,e.n=4;break;case 2:return e.n=3,this.getNetwork().then(function(e){return e.passphrase});case 3:y=e.v;case 4:return o=y,i=n.contractId(o),s=(0,a.nativeToScVal)(["Balance",t],{type:["symbol","address"]}),c=a.xdr.LedgerKey.contractData(new a.xdr.LedgerKeyContractData({contract:new a.Address(i).toScAddress(),durability:a.xdr.ContractDataDurability.persistent(),key:s})),e.n=5,this.getLedgerEntries(c);case 5:if(0!==(u=e.v).entries.length){e.n=6;break}return e.a(2,{latestLedger:u.latestLedger});case 6:if(l=u.entries[0],f=l.lastModifiedLedgerSeq,p=l.liveUntilLedgerSeq,(d=l.val).switch().value===a.xdr.LedgerEntryType.contractData().value){e.n=7;break}return e.a(2,{latestLedger:u.latestLedger});case 7:return h=(0,a.scValToNative)(d.contractData().val()),e.a(2,{latestLedger:u.latestLedger,balanceEntry:{liveUntilLedgerSeq:p,lastModifiedLedgerSeq:f,amount:h.amount.toString(),authorized:h.authorized,clawback:h.clawback}})}},e,this)})),function(e,t,n){return I.apply(this,arguments)})}],j&&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,A(r.key),r)}}(R.prototype,j),Object.defineProperty(R,"prototype",{writable:!1}),R);const ie=(e=n.hmd(e)).exports},3600:(e,t,n)=>{e.exports=o;var r=n(4610);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}n(6698)(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},3628:(e,t,n)=>{var r=n(8648),o=n(1064),i=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},3898:(e,t,n)=>{n.r(t),n.d(t,{Api:()=>{},Resolver:()=>v,STELLAR_TOML_MAX_SIZE:()=>g});var r=n(1293),o=n.n(r),i=n(9983),a=n(8732);function s(e){return s="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},s(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return u(l,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),l}var a={};function s(){}function l(){}function f(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),d=f.prototype=s.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=f,u(d,"constructor",f),u(f,"constructor",l),l.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(d),u(d,o,"Generator"),u(d,r,function(){return this}),u(d,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:h}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function i(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},u(e,t,n,r)}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(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,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}var d,h,y,m,g=102400,b=i.ok.CancelToken,v=(d=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},h=[{key:"resolve",value:(y=c().m(function e(t){var n,r,s,u,l,f=arguments;return c().w(function(e){for(;;)if(0===e.n)return s=void 0===(r=f.length>1&&void 0!==f[1]?f[1]:{}).allowHttp?a.T.isAllowHttp():r.allowHttp,u=void 0===r.timeout?a.T.getTimeout():r.timeout,l=s?"http":"https",e.a(2,i.ok.get("".concat(l,"://").concat(t,"/.well-known/stellar.toml"),{maxRedirects:null!==(n=r.allowedRedirects)&&void 0!==n?n:0,maxContentLength:g,cancelToken:u?new b(function(e){return setTimeout(function(){return e("timeout of ".concat(u,"ms exceeded"))},u)}):void 0,timeout:u}).then(function(e){try{var t=o().parse(e.data);return Promise.resolve(t)}catch(e){return Promise.reject(new Error("stellar.toml is invalid - Parsing error on line ".concat(e.line,", column ").concat(e.column,": ").concat(e.message)))}}).catch(function(e){throw e.message.match(/^maxContentLength size/)?new Error("stellar.toml file exceeds allowed size of ".concat(g)):e}))},e)}),m=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=y.apply(e,t);function i(e){l(o,n,r,i,a,"next",e)}function a(e){l(o,n,r,i,a,"throw",e)}i(void 0)})},function(e){return m.apply(this,arguments)})}],h&&f(d,h),Object.defineProperty(d,"prototype",{writable:!1}),d)},4035:(e,t,n)=>{var r,o=n(6556),i=n(9092)(),a=n(9957),s=n(5795);if(i){var c=o("RegExp.prototype.exec"),u={},l=function(){throw u},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{c(e,f)}catch(e){return e===u}}}else{var p=o("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===p(e)}}e.exports=r},4039:(e,t,n)=>{var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},4076:(e,t,n)=>{var r;n.d(t,{j:()=>r}),function(e){var t=function(e){return e.SUCCESS="SUCCESS",e.NOT_FOUND="NOT_FOUND",e.FAILED="FAILED",e}({});function n(e){return"transactionData"in e}e.GetTransactionStatus=t,e.isSimulationError=function(e){return"error"in e},e.isSimulationSuccess=n,e.isSimulationRestore=function(e){return n(e)&&"restorePreamble"in e&&!!e.restorePreamble.transactionData},e.isSimulationRaw=function(e){return!e._parsed}}(r||(r={}))},4193:function(e,t,n){var r,o,i,a;a=function(e,t,n,r){var o=r&&r.URI;function i(e,t){var n=arguments.length>=1;if(!(this instanceof i))return n?arguments.length>=2?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var a=i.prototype,s=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===u(e)}function f(e,t){var n,r,o={};if("RegExp"===u(t))o=null;else if(l(t))for(n=0,r=t.length;n<r;n++)o[t[n]]=!0;else o[t]=!0;for(n=0,r=e.length;n<r;n++)(o&&void 0!==o[e[n]]||!o&&t.test(e[n]))&&(e.splice(n,1),r--,n--);return e}function p(e,t){var n,r;if(l(t)){for(n=0,r=t.length;n<r;n++)if(!p(e,t[n]))return!1;return!0}var o=u(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===o){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function d(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function y(e){return escape(e)}function m(e){return encodeURIComponent(e).replace(/[!'()*]/g,y).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=m,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=m,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var g,b={encode:"encode",decode:"decode"},v=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,function(n){return i.characters[e][t].map[n]})}catch(e){return n}}};for(g in b)i[g+"PathSegment"]=v("pathname",b[g]),i[g+"UrnPathSegment"]=v("urnpath",b[g]);var w=function(e,t,n){return function(r){var o;o=n?function(e){return i[t](i[n](e))}:i[t];for(var a=(r+"").split(e),s=0,c=a.length;s<c;s++)a[s]=o(a[s]);return a.join(e)}};function S(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function x(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!r),this)}}i.decodePath=w("/","decodePathSegment"),i.decodeUrnPath=w(":","decodeUrnPathSegment"),i.recodePath=w("/","encodePathSegment","decode"),i.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),i.encodeReserved=v("reserved","encode"),i.parse=function(e,t){var n;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(n=(e=(e=e.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var n,r,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),c=e.indexOf(":",a+1);-1!==c&&(-1===s||c<s)?(t.hostname=e.substring(0,o)||null,t.port=null):(r=e.substring(0,o).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(o)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var r,o=e.indexOf("/"),a=e.lastIndexOf("@",o>-1?o:e.length-1);return a>-1&&(-1===o||a<o)?(r=e.substring(0,a).split(":"),t.username=r[0]?i.decode(r[0]):null,r.shift(),t.password=r[0]?i.decode(r.join(":")):null,e=n.substring(a+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,a={},c=e.split("&"),u=c.length,l=0;l<u;l++)n=c[l].split("="),r=i.decodeQuery(n.shift(),t),o=n.length?i.decodeQuery(n.join("="),t):null,"__proto__"!==r&&(s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(o)):a[r]=o);return a},i.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,n){var r,o,a,c,u="";for(o in e)if("__proto__"!==o&&s.call(e,o))if(l(e[o]))for(r={},a=0,c=e[o].length;a<c;a++)void 0!==e[o][a]&&void 0===r[e[o][a]+""]&&(u+="&"+i.buildQueryParameter(o,e[o][a],n),!0!==t&&(r[e[o][a]+""]=!0));else void 0!==e[o]&&(u+="&"+i.buildQueryParameter(o,e[o],n));return u.substring(1)},i.buildQueryParameter=function(e,t,n){return i.encodeQuery(e,n)+(null!==t?"="+i.encodeQuery(t,n):"")},i.addQuery=function(e,t,n){if("object"==typeof t)for(var r in t)s.call(t,r)&&i.addQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),l(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},i.setQuery=function(e,t,n){if("object"==typeof t)for(var r in t)s.call(t,r)&&i.setQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},i.removeQuery=function(e,t,n){var r,o,a;if(l(t))for(r=0,o=t.length;r<o;r++)e[t[r]]=void 0;else if("RegExp"===u(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"==typeof t)for(a in t)s.call(t,a)&&i.removeQuery(e,a,t[a]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===u(n)?!l(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=f(e[t],n):e[t]!==String(n)||l(n)&&1!==n.length?l(e[t])&&(e[t]=f(e[t],n)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,n,r){switch(u(t)){case"String":break;case"RegExp":for(var o in e)if(s.call(e,o)&&t.test(o)&&(void 0===n||i.hasQuery(e,o,n)))return!0;return!1;case"Object":for(var a in t)if(s.call(t,a)&&!i.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(u(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!l(e[t])&&(r?p:d)(e[t],n);case"RegExp":return l(e[t])?!!r&&p(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return l(e[t])?!!r&&p(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);e.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&t.push(a[s]),a[s]&&n++}if(!t.length||!n)return new i("");var c=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||c.path("/"+c.path()),c.normalize()},i.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},i.withinString=function(e,t,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,a=n.trim||i.findUri.trim,s=n.parens||i.findUri.parens,c=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var u=r.exec(e);if(!u)break;var l=u.index;if(n.ignoreHtml){var f=e.slice(Math.max(l-3,0),l);if(f&&c.test(f))continue}for(var p=l+e.slice(l).search(o),d=e.slice(l,p),h=-1;;){var y=s.exec(d);if(!y)break;var m=y.index+y[0].length;h=Math.max(h,m)}if(!((d=h>-1?d.slice(0,h)+d.slice(h).replace(a,""):d.replace(a,"")).length<=u[0].length||n.ignore&&n.ignore.test(d))){var g=t(d,l,p=l+d.length,e);void 0!==g?(g=String(g),e=e.slice(0,l)+g+e.slice(p),r.lastIndex=l+g.length):r.lastIndex=p}}return r.lastIndex=0,e},i.ensureValidHostname=function(t,n){var r=!!t,o=!1;if(!!n&&(o=p(i.hostProtocols,n)),o&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=S("protocol"),a.username=S("username"),a.password=S("password"),a.hostname=S("hostname"),a.port=S("port"),a.query=x("query","?"),a.fragment=x("fragment","#"),a.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var r=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1),!r&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var a=r?e._parts:e;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,r=!1,o=!1,a=!1,s=!1,c=!1,u=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(t=r||o))&&n&&n.has(this._parts.hostname),c=a&&i.idn_expression.test(this._parts.hostname),u=a&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var k=a.protocol,E=a.port,T=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return k.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),E.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return T.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),a=new RegExp("^"+c(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[o.toLowerCase()]&&n.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+c(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?i.decodePathSegment(r):r}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(c(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(n=o.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,u=this.suffix();if(u)s=e?new RegExp(c(u)+"$"):new RegExp(c("."+u)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return s&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,n){var r=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,c=t.length;s<c;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(t[s])))}else(t||"string"==typeof t)&&(t=h(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=h(t):a.splice(e,1);return i&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(e,t,n){var r,o,a;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(l(r=this.segment(e,t,n)))for(o=0,a=r.length;o<a;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(l(t))for(o=0,a=t.length;o<a;o++)t[o]=i.encode(t[o]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,n)};var A=a.query;return a.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):A.call(this,e,t)},a.setQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)s.call(e,o)&&(r[o]=e[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.addQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,e,void 0===t?null:t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.removeQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,e,t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},a.hasQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,e,t,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,o,a="";for("/"!==(n=i.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(o=n.substring(0,r).lastIndexOf("/"))&&(o=r),n=n.substring(0,o)+n.substring(r+3)):n=n.substring(3);return t&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.unicode=function(){var e=i.encode,t=i.decode;i.encode=m,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",o=0,a=t._parts.query.split("&"),s=a.length;o<s;o++){var c=(a[o]||"").split("=");r+="&"+i.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(r+="="+i.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+i.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,n,r,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),o._parts.protocol)return o;if(o._parts.protocol=e._parts.protocol,this._parts.hostname)return o;for(n=0;r=a[n];n++)o._parts[r]=e._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},a.relativeTo=function(e){var t,n,r,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=s._parts,n=e._parts,o=s.path(),a=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,o===a)return t.path="",s.build();if(!(r=i.commonPath(o,a)))return s.build();var c=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(r.length)||"./",s.build()},a.equals=function(e){var t,n,r,o,a,c=this.clone(),u=new i(e),f={};if(c.normalize(),u.normalize(),c.toString()===u.toString())return!0;if(r=c.query(),o=u.query(),c.query(""),u.query(""),c.toString()!==u.toString())return!1;if(r.length!==o.length)return!1;for(a in t=i.parseQuery(r,this._parts.escapeQuerySpace),n=i.parseQuery(o,this._parts.escapeQuerySpace),t)if(s.call(t,a)){if(l(t[a])){if(!d(t[a],n[a]))return!1}else if(t[a]!==n[a])return!1;f[a]=!0}for(a in n)if(s.call(n,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i},e.exports?e.exports=a(n(9340),n(1430),n(4704)):(o=[n(9340),n(1430),n(4704)],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},4356:(e,t,n)=>{n.r(t),n.d(t,{AccountRequiresMemoError:()=>r.Cu,BadRequestError:()=>r.v7,BadResponseError:()=>r.nS,Config:()=>o.T,Federation:()=>s,Friendbot:()=>u,Horizon:()=>l,NetworkError:()=>r.Dr,NotFoundError:()=>r.m_,StellarToml:()=>a,Utils:()=>i.A,WebAuth:()=>c,contract:()=>p,default:()=>y,rpc:()=>f});var r=n(5976),o=n(8732),i=n(3121),a=n(3898),s=n(7600),c=n(5479),u=n(8242),l=n(8733),f=n(3496),p=n(6299),d=n(8950),h={};for(const e in d)["default","Config","Utils","StellarToml","Federation","WebAuth","Friendbot","Horizon","rpc","contract","AccountRequiresMemoError","BadRequestError","BadResponseError","NetworkError","NotFoundError"].indexOf(e)<0&&(h[e]=()=>d[e]);n.d(t,h);const y=(e=n.hmd(e)).exports;void 0===n.g.__USE_AXIOS__&&(n.g.__USE_AXIOS__=!0),void 0===n.g.__USE_EVENTSOURCE__&&(n.g.__USE_EVENTSOURCE__=!1)},4459:e=>{e.exports=Number.isNaN||function(e){return e!=e}},4610:(e,t,n)=>{e.exports=l;var r=n(6048).F,o=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(5382);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new i);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,n){p(e,t,n)})}function p(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(6698)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new o("_transform()"))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},4643:(e,t,n)=>{function r(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},4704:function(e,t,n){var r,o,i;i=function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var o=n.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var o=n.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n},e.exports?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},4765:e=>{var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},4803:(e,t,n)=>{var r=n(8859),o=n(9675),i=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return i(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5291:(e,t,n)=>{var r=n(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,o){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,o,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new r(o?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},5340:()=>{},5345:e=>{e.exports=URIError},5373:(e,t,n)=>{var r=n(8636),o=n(2642),i=n(4765);e.exports={formats:i,parse:o,stringify:r}},5382:(e,t,n)=>{var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var o=n(5412),i=n(6708);n(6698)(u,o);for(var a=r(i.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},5412:(e,t,n)=>{var r;e.exports=E,E.ReadableState=k,n(7007).EventEmitter;var o,i=function(e,t){return e.listeners(t).length},a=n(345),s=n(8287).Buffer,c=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=n(9838);o=u&&u.debuglog?u.debuglog("stream"):function(){};var l,f,p,d=n(2726),h=n(5896),y=n(5291).getHighWaterMark,m=n(6048).F,g=m.ERR_INVALID_ARG_TYPE,b=m.ERR_STREAM_PUSH_AFTER_EOF,v=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(6698)(E,a);var S=h.errorOrDestroy,x=["error","close","destroy","pause","resume"];function k(e,t,o){r=r||n(5382),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",o),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=n(3141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function E(e){if(r=r||n(5382),!(this instanceof E))return new E(e);var t=this instanceof r;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function T(e,t,n,r,i){o("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}(e,u);else if(i||(a=function(e,t){var n,r;return r=t,s.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t)),n}(u,t)),a)S(e,a);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)u.endEmitted?S(e,new w):A(e,u,t,!0);else if(u.ended)S(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?A(e,u,t,!1):R(e,u)):A(e,u,t,!1)}else r||(u.reading=!1,R(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function A(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),R(e,t)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),T(this,e,t,!1,n)},E.prototype.unshift=function(e){return T(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(e){l||(l=n(3141).I);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,o="";null!==r;)o+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var C=1073741824;function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(P,e))}function P(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function R(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(j,e,t))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function L(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function U(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(M,t,e))}function M(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}E.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):O(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=_(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(e){S(this,new v("_read()"))},E.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?h:s;function s(){o("onend"),e.end()}r.endEmitted?process.nextTick(a):n.once("end",a),e.on("unpipe",function t(i,a){o("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",t),n.removeListener("end",s),n.removeListener("end",h),n.removeListener("data",l),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,B(e))}}(n);e.on("drain",c);var u=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==F(r.pipes,e))&&!u&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function f(t){o("onerror",t),h(),e.removeListener("error",f),0===i(e,"error")&&S(e,t)}function p(){e.removeListener("finish",d),h()}function d(){o("onfinish"),e.removeListener("close",p),h()}function h(){o("unpipe"),n.unpipe(e)}return n.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",p),e.once("finish",d),e.emit("pipe",n),r.flowing||(o("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},E.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?O(this):r.reading||process.nextTick(N,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(I,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(L,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<x.length;a++)e.on(x[a],this.emit.bind(this,x[a]));return this._read=function(t){o("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(2955)),f(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(e,t){return void 0===p&&(p=n(5157)),p(E,e,t)})},5479:(e,t,n)=>{n.r(t),n.d(t,{InvalidChallengeError:()=>p,buildChallengeTx:()=>S,gatherTxSigners:()=>A,readChallengeTx:()=>x,verifyChallengeTxSigners:()=>E,verifyChallengeTxThreshold:()=>k,verifyTxSignedBy:()=>T});var r=n(3209),o=n.n(r),i=n(8950),a=n(3121);function s(e){return s="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},s(e)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(u())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&l(o,n.prototype),o}(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},c(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=(this instanceof t?this.constructor:void 0).prototype;return(n=function(e,t,n){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}(this,t,[e])).__proto__=r,n.constructor=t,n.name="InvalidChallengeError",n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(c(Error)),d=n(8287).Buffer;function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||w(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function m(e){return m="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},m(e)}function g(e){return function(e){if(Array.isArray(e))return e}(e)||w(e)||b(e)||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 b(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;if(t.startsWith("M")&&c)throw Error("memo cannot be used if clientAccountID is a muxed account");var f=new i.Account(e.publicKey(),"-1"),p=Math.floor(Date.now()/1e3),d=o()(48).toString("base64"),h=new i.TransactionBuilder(f,{fee:i.BASE_FEE,networkPassphrase:a,timebounds:{minTime:p,maxTime:p+r}}).addOperation(i.Operation.manageData({name:"".concat(n," auth"),value:d,source:t})).addOperation(i.Operation.manageData({name:"web_auth_domain",value:s,source:f.accountId()}));if(u){if(!l)throw Error("clientSigningKey is required if clientDomain is provided");h.addOperation(i.Operation.manageData({name:"client_domain",value:u,source:l}))}c&&h.addMemo(i.Memo.id(c));var y=h.build();return y.sign(e),y.toEnvelope().toXDR("base64").toString()}function x(e,t,n,r,o){var s,c;if(t.startsWith("M"))throw Error("Invalid serverAccountID: multiplexed accounts are not supported.");try{c=new i.Transaction(e,n)}catch(t){try{c=new i.FeeBumpTransaction(e,n)}catch(e){throw new p("Invalid challenge: unable to deserialize challengeTx transaction string")}throw new p("Invalid challenge: expected a Transaction but received a FeeBumpTransaction")}if(0!==Number.parseInt(c.sequence,10))throw new p("The transaction sequence number should be zero");if(c.source!==t)throw new p("The transaction source account is not equal to the server's account");if(c.operations.length<1)throw new p("The transaction should contain at least one operation");var u=g(c.operations),l=u[0],f=u.slice(1);if(!l.source)throw new p("The transaction's operation should contain a source account");var h,b=l.source,v=null;if(c.memo.type!==i.MemoNone){if(b.startsWith("M"))throw new p("The transaction has a memo but the client account ID is a muxed account");if(c.memo.type!==i.MemoID)throw new p("The transaction's memo must be of type `id`");v=c.memo.value}if("manageData"!==l.type)throw new p("The transaction's operation type should be 'manageData'");if(c.timeBounds&&Number.parseInt(null===(s=c.timeBounds)||void 0===s?void 0:s.maxTime,10)===i.TimeoutInfinite)throw new p("The transaction requires non-infinite timebounds");if(!a.A.validateTimebounds(c,300))throw new p("The transaction has expired");if(void 0===l.value)throw new p("The transaction's operation values should not be null");if(!l.value)throw new p("The transaction's operation value should not be null");if(48!==d.from(l.value.toString(),"base64").length)throw new p("The transaction's operation value should be a 64 bytes base64 random string");if(!r)throw new p("Invalid homeDomains: a home domain must be provided for verification");if("string"==typeof r)"".concat(r," auth")===l.name&&(h=r);else{if(!Array.isArray(r))throw new p("Invalid homeDomains: homeDomains type is ".concat(m(r)," but should be a string or an array"));h=r.find(function(e){return"".concat(e," auth")===l.name})}if(!h)throw new p("Invalid homeDomains: the transaction's operation key name does not match the expected home domain");var w,S=y(f);try{for(S.s();!(w=S.n()).done;){var x=w.value;if("manageData"!==x.type)throw new p("The transaction has operations that are not of type 'manageData'");if(x.source!==t&&"client_domain"!==x.name)throw new p("The transaction has operations that are unrecognized");if("web_auth_domain"===x.name){if(void 0===x.value)throw new p("'web_auth_domain' operation value should not be null");if(x.value.compare(d.from(o)))throw new p("'web_auth_domain' operation value does not match ".concat(o))}}}catch(e){S.e(e)}finally{S.f()}if(!T(c,t))throw new p("Transaction not signed by server: '".concat(t,"'"));return{tx:c,clientAccountID:b,matchedHomeDomain:h,memo:v}}function k(e,t,n,r,o,i,a){for(var s=E(e,t,n,o.map(function(e){return e.key}),i,a),c=0,u=function(){var e,t=f[l],n=(null===(e=o.find(function(e){return e.key===t}))||void 0===e?void 0:e.weight)||0;c+=n},l=0,f=s;l<f.length;l++)u();if(c<r)throw new p("signers with weight ".concat(c," do not meet threshold ").concat(r,'"'));return s}function E(e,t,n,r,o,a){var s,c=x(e,t,n,o,a).tx;try{s=i.Keypair.fromPublicKey(t)}catch(e){throw new Error("Couldn't infer keypair from the provided 'serverAccountID': ".concat(e.message))}var u,l,f=new Set,d=y(r);try{for(d.s();!(u=d.n()).done;){var m=u.value;m!==s.publicKey()&&"G"===m.charAt(0)&&f.add(m)}}catch(e){d.e(e)}finally{d.f()}if(0===f.size)throw new p("No verifiable client signers provided, at least one G... address must be provided");var g,b=y(c.operations);try{for(b.s();!(g=b.n()).done;){var v=g.value;if("manageData"===v.type&&"client_domain"===v.name){if(l)throw new p("Found more than one client_domain operation");l=v.source}}}catch(e){b.e(e)}finally{b.f()}var w=[s.publicKey()].concat(h(Array.from(f)));l&&w.push(l);for(var S=A(c,w),k=!1,E=!1,T=0,C=S;T<C.length;T++){var _=C[T];_===s.publicKey()&&(k=!0),_===l&&(E=!0)}if(!k)throw new p("Transaction not signed by server: '".concat(s.publicKey(),"'"));if(l&&!E)throw new p("Transaction not signed by the source account of the 'client_domain' ManageData operation");if(1===S.length)throw new p("None of the given signers match the transaction signatures");if(S.length!==c.signatures.length)throw new p("Transaction has unrecognized signatures");return S.splice(S.indexOf(s.publicKey()),1),l&&S.splice(S.indexOf(l),1),S}function T(e,t){return 0!==A(e,[t]).length}function A(e,t){var n,r=e.hash(),o=h(e.signatures),a=new Set,s=y(t);try{for(s.s();!(n=s.n()).done;){var c=n.value;if(0===o.length)break;var u=void 0;try{u=i.Keypair.fromPublicKey(c)}catch(e){throw new p("Signer is not a valid address: ".concat(e.message))}for(var l=0;l<o.length;l++){var f=o[l];if(f.hint().equals(u.signatureHint())&&u.verify(r,f.signature())){a.add(c),o.splice(l,1);break}}}}catch(e){s.e(e)}finally{s.f()}return Array.from(a)}},5537:(e,t,n)=>{var r=n(8287).Buffer,o=n(6688),i=n(6698),a=n(6917),s=n(8399),c=a.IncomingMessage,u=a.readyStates,l=e.exports=function(e){var t,n=this;s.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){n.setHeader(t,e.headers[t])});var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",function(){n._onFinish()})};i(l,s.Writable),l.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===f.indexOf(n)&&(this._headers[n]={name:e,value:t})},l.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},l.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},l.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var r=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var a=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach(function(e){a.push([t,e])}):a.push([t,n])}),"fetch"===e._mode){var s=null;if(o.abortController){var c=new AbortController;s=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}n.g.fetch(e._opts.url,{method:e._opts.method,headers:a,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:s}).then(function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()},function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new n.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){return void process.nextTick(function(){e.emit("error",t)})}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),a.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case u.LOADING:case u.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(i)}catch(t){return void process.nextTick(function(){e.emit("error",t)})}}}},l.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},l.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},l.prototype._write=function(e,t,n){this._body.push(e),n()},l.prototype._resetTimers=function(e){var t=this;n.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.g.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},l.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),s.Writable.prototype.end.call(this,e,t,n)},l.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5546:e=>{e.exports=function(){function e(e,t,n,r,o,i){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=o,this.column=i,this.name="SyntaxError"}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,r=arguments.length>1?arguments[1]:{},o={},i={start:It},a=It,s=function(){return pn},c=o,u="#",l={type:"literal",value:"#",description:'"#"'},f=void 0,p={type:"any",description:"any character"},d="[",h={type:"literal",value:"[",description:'"["'},y="]",m={type:"literal",value:"]",description:'"]"'},g=function(e){dn(hn("ObjectPath",e,Ot,Pt))},b=function(e){dn(hn("ArrayPath",e,Ot,Pt))},v=function(e,t){return e.concat(t)},w=function(e){return[e]},S=function(e){return e},x=".",k={type:"literal",value:".",description:'"."'},E="=",T={type:"literal",value:"=",description:'"="'},A=function(e,t){dn(hn("Assign",t,Ot,Pt,e))},C=function(e){return e.join("")},_=function(e){return e.value},O='"""',P={type:"literal",value:'"""',description:'"\\"\\"\\""'},R=null,j=function(e){return hn("String",e.join(""),Ot,Pt)},I='"',N={type:"literal",value:'"',description:'"\\""'},L="'''",B={type:"literal",value:"'''",description:"\"'''\""},D="'",U={type:"literal",value:"'",description:'"\'"'},M=function(e){return e},F=function(e){return e},V="\\",q={type:"literal",value:"\\",description:'"\\\\"'},z=function(){return""},H="e",W={type:"literal",value:"e",description:'"e"'},K="E",$={type:"literal",value:"E",description:'"E"'},X=function(e,t){return hn("Float",parseFloat(e+"e"+t),Ot,Pt)},G=function(e){return hn("Float",parseFloat(e),Ot,Pt)},Q="+",Z={type:"literal",value:"+",description:'"+"'},Y=function(e){return e.join("")},J="-",ee={type:"literal",value:"-",description:'"-"'},te=function(e){return"-"+e.join("")},ne=function(e){return hn("Integer",parseInt(e,10),Ot,Pt)},re="true",oe={type:"literal",value:"true",description:'"true"'},ie=function(){return hn("Boolean",!0,Ot,Pt)},ae="false",se={type:"literal",value:"false",description:'"false"'},ce=function(){return hn("Boolean",!1,Ot,Pt)},ue=function(){return hn("Array",[],Ot,Pt)},le=function(e){return hn("Array",e?[e]:[],Ot,Pt)},fe=function(e){return hn("Array",e,Ot,Pt)},pe=function(e,t){return hn("Array",e.concat(t),Ot,Pt)},de=function(e){return e},he=",",ye={type:"literal",value:",",description:'","'},me="{",ge={type:"literal",value:"{",description:'"{"'},be="}",ve={type:"literal",value:"}",description:'"}"'},we=function(e){return hn("InlineTable",e,Ot,Pt)},Se=function(e,t){return hn("InlineTableValue",t,Ot,Pt,e)},xe=function(e){return"."+e},ke=function(e){return e.join("")},Ee=":",Te={type:"literal",value:":",description:'":"'},Ae=function(e){return e.join("")},Ce="T",_e={type:"literal",value:"T",description:'"T"'},Oe="Z",Pe={type:"literal",value:"Z",description:'"Z"'},Re=function(e,t){return hn("Date",new Date(e+"T"+t+"Z"),Ot,Pt)},je=function(e,t){return hn("Date",new Date(e+"T"+t),Ot,Pt)},Ie=/^[ \t]/,Ne={type:"class",value:"[ \\t]",description:"[ \\t]"},Le="\n",Be={type:"literal",value:"\n",description:'"\\n"'},De="\r",Ue={type:"literal",value:"\r",description:'"\\r"'},Me=/^[0-9a-f]/i,Fe={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Ve=/^[0-9]/,qe={type:"class",value:"[0-9]",description:"[0-9]"},ze="_",He={type:"literal",value:"_",description:'"_"'},We=function(){return""},Ke=/^[A-Za-z0-9_\-]/,$e={type:"class",value:"[A-Za-z0-9_\\-]",description:"[A-Za-z0-9_\\-]"},Xe=function(e){return e.join("")},Ge='\\"',Qe={type:"literal",value:'\\"',description:'"\\\\\\""'},Ze=function(){return'"'},Ye="\\\\",Je={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},et=function(){return"\\"},tt="\\b",nt={type:"literal",value:"\\b",description:'"\\\\b"'},rt=function(){return"\b"},ot="\\t",it={type:"literal",value:"\\t",description:'"\\\\t"'},at=function(){return"\t"},st="\\n",ct={type:"literal",value:"\\n",description:'"\\\\n"'},ut=function(){return"\n"},lt="\\f",ft={type:"literal",value:"\\f",description:'"\\\\f"'},pt=function(){return"\f"},dt="\\r",ht={type:"literal",value:"\\r",description:'"\\\\r"'},yt=function(){return"\r"},mt="\\U",gt={type:"literal",value:"\\U",description:'"\\\\U"'},bt=function(e){return function(e){var t=parseInt("0x"+e);if(!(!isFinite(t)||Math.floor(t)!=t||t<0||t>1114111||t>55295&&t<57344))return function(){var e,t,n=[],r=-1,o=arguments.length;if(!o)return"";for(var i="";++r<o;){var a=Number(arguments[r]);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(r+1==o||n.length>16384)&&(i+=String.fromCharCode.apply(null,n),n.length=0)}return i}(t);!function(e){var t=new Error(e);throw t.line=void 0,t.column=void 0,t}("Invalid Unicode escape code: "+e)}(e.join(""))},vt="\\u",wt={type:"literal",value:"\\u",description:'"\\\\u"'},St=0,xt=0,kt=0,Et={line:1,column:1,seenCR:!1},Tt=0,At=[],Ct=0,_t={};if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=i[r.startRule]}function Ot(){return Rt(xt).line}function Pt(){return Rt(xt).column}function Rt(e){return kt!==e&&(kt>e&&(kt=0,Et={line:1,column:1,seenCR:!1}),function(e,n,r){var o,i;for(o=n;o<r;o++)"\n"===(i=t.charAt(o))?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===i||"\u2028"===i||"\u2029"===i?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}(Et,kt,e),kt=e),Et}function jt(e){St<Tt||(St>Tt&&(Tt=St,At=[]),At.push(e))}function It(){var e,t,n,r=49*St+0,i=_t[r];if(i)return St=i.nextPos,i.result;for(e=St,t=[],n=Nt();n!==o;)t.push(n),n=Nt();return t!==o&&(xt=e,t=s()),e=t,_t[r]={nextPos:St,result:e},e}function Nt(){var e,n,r,i,a,s,u,l=49*St+1,f=_t[l];if(f)return St=f.nextPos,f.result;for(e=St,n=[],r=nn();r!==o;)n.push(r),r=nn();if(n!==o)if(r=function(){var e,n=49*St+2,r=_t[n];return r?(St=r.nextPos,r.result):((e=Lt())===o&&(e=function(){var e,n,r,i,a,s,u=49*St+4,l=_t[u];if(l)return St=l.nextPos,l.result;if(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();if(r!==o)if((i=Bt())!==o){for(a=[],s=nn();s!==o;)a.push(s),s=nn();a!==o?(93===t.charCodeAt(St)?(s=y,St++):(s=o,0===Ct&&jt(m)),s!==o?(xt=e,e=n=g(i)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;return _t[u]={nextPos:St,result:e},e}(),e===o&&(e=function(){var e,n,r,i,a,s,u,l,f=49*St+5,p=_t[f];if(p)return St=p.nextPos,p.result;if(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o)if(91===t.charCodeAt(St)?(r=d,St++):(r=o,0===Ct&&jt(h)),r!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o)if((a=Bt())!==o){for(s=[],u=nn();u!==o;)s.push(u),u=nn();s!==o?(93===t.charCodeAt(St)?(u=y,St++):(u=o,0===Ct&&jt(m)),u!==o?(93===t.charCodeAt(St)?(l=y,St++):(l=o,0===Ct&&jt(m)),l!==o?(xt=e,e=n=b(a)):(St=e,e=c)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c;return _t[f]={nextPos:St,result:e},e}(),e===o&&(e=function(){var e,n,r,i,a,s,u=49*St+9,l=_t[u];if(l)return St=l.nextPos,l.result;if(e=St,(n=Mt())!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();if(r!==o)if(61===t.charCodeAt(St)?(i=E,St++):(i=o,0===Ct&&jt(T)),i!==o){for(a=[],s=nn();s!==o;)a.push(s),s=nn();a!==o&&(s=Vt())!==o?(xt=e,e=n=A(n,s)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;if(e===o)if(e=St,(n=Ft())!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();if(r!==o)if(61===t.charCodeAt(St)?(i=E,St++):(i=o,0===Ct&&jt(T)),i!==o){for(a=[],s=nn();s!==o;)a.push(s),s=nn();a!==o&&(s=Vt())!==o?(xt=e,e=n=A(n,s)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;return _t[u]={nextPos:St,result:e},e}()))),_t[n]={nextPos:St,result:e},e)}(),r!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o){for(a=[],s=Lt();s!==o;)a.push(s),s=Lt();if(a!==o){if(s=[],(u=rn())!==o)for(;u!==o;)s.push(u),u=rn();else s=c;s===o&&(s=an()),s!==o?e=n=[n,r,i,a,s]:(St=e,e=c)}else St=e,e=c}else St=e,e=c}else St=e,e=c;else St=e,e=c;if(e===o){if(e=St,n=[],(r=nn())!==o)for(;r!==o;)n.push(r),r=nn();else n=c;if(n!==o){if(r=[],(i=rn())!==o)for(;i!==o;)r.push(i),i=rn();else r=c;r===o&&(r=an()),r!==o?e=n=[n,r]:(St=e,e=c)}else St=e,e=c;e===o&&(e=rn())}return _t[l]={nextPos:St,result:e},e}function Lt(){var e,n,r,i,a,s,d=49*St+3,h=_t[d];if(h)return St=h.nextPos,h.result;if(e=St,35===t.charCodeAt(St)?(n=u,St++):(n=o,0===Ct&&jt(l)),n!==o){for(r=[],i=St,a=St,Ct++,(s=rn())===o&&(s=an()),Ct--,s===o?a=f:(St=a,a=c),a!==o?(t.length>St?(s=t.charAt(St),St++):(s=o,0===Ct&&jt(p)),s!==o?i=a=[a,s]:(St=i,i=c)):(St=i,i=c);i!==o;)r.push(i),i=St,a=St,Ct++,(s=rn())===o&&(s=an()),Ct--,s===o?a=f:(St=a,a=c),a!==o?(t.length>St?(s=t.charAt(St),St++):(s=o,0===Ct&&jt(p)),s!==o?i=a=[a,s]:(St=i,i=c)):(St=i,i=c);r!==o?e=n=[n,r]:(St=e,e=c)}else St=e,e=c;return _t[d]={nextPos:St,result:e},e}function Bt(){var e,t,n,r=49*St+6,i=_t[r];if(i)return St=i.nextPos,i.result;if(e=St,t=[],(n=Ut())!==o)for(;n!==o;)t.push(n),n=Ut();else t=c;return t!==o&&(n=Dt())!==o?(xt=e,e=t=v(t,n)):(St=e,e=c),e===o&&(e=St,(t=Dt())!==o&&(xt=e,t=w(t)),e=t),_t[r]={nextPos:St,result:e},e}function Dt(){var e,t,n,r,i,a=49*St+7,s=_t[a];if(s)return St=s.nextPos,s.result;for(e=St,t=[],n=nn();n!==o;)t.push(n),n=nn();if(t!==o)if((n=Mt())!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();r!==o?(xt=e,e=t=S(n)):(St=e,e=c)}else St=e,e=c;else St=e,e=c;if(e===o){for(e=St,t=[],n=nn();n!==o;)t.push(n),n=nn();if(t!==o)if((n=Ft())!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();r!==o?(xt=e,e=t=S(n)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}return _t[a]={nextPos:St,result:e},e}function Ut(){var e,n,r,i,a,s,u,l=49*St+8,f=_t[l];if(f)return St=f.nextPos,f.result;for(e=St,n=[],r=nn();r!==o;)n.push(r),r=nn();if(n!==o)if((r=Mt())!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o)if(46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),a!==o){for(s=[],u=nn();u!==o;)s.push(u),u=nn();s!==o?(xt=e,e=n=S(r)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c;if(e===o){for(e=St,n=[],r=nn();r!==o;)n.push(r),r=nn();if(n!==o)if((r=Ft())!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o)if(46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),a!==o){for(s=[],u=nn();u!==o;)s.push(u),u=nn();s!==o?(xt=e,e=n=S(r)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c}return _t[l]={nextPos:St,result:e},e}function Mt(){var e,t,n,r=49*St+10,i=_t[r];if(i)return St=i.nextPos,i.result;if(e=St,t=[],(n=un())!==o)for(;n!==o;)t.push(n),n=un();else t=c;return t!==o&&(xt=e,t=C(t)),e=t,_t[r]={nextPos:St,result:e},e}function Ft(){var e,t,n=49*St+11,r=_t[n];return r?(St=r.nextPos,r.result):(e=St,(t=qt())!==o&&(xt=e,t=_(t)),(e=t)===o&&(e=St,(t=zt())!==o&&(xt=e,t=_(t)),e=t),_t[n]={nextPos:St,result:e},e)}function Vt(){var e,n=49*St+12,r=_t[n];return r?(St=r.nextPos,r.result):(e=function(){var e,n=49*St+13,r=_t[n];return r?(St=r.nextPos,r.result):(e=function(){var e,n,r,i,a,s=49*St+14,u=_t[s];if(u)return St=u.nextPos,u.result;if(e=St,t.substr(St,3)===O?(n=O,St+=3):(n=o,0===Ct&&jt(P)),n!==o)if((r=rn())===o&&(r=R),r!==o){for(i=[],a=Kt();a!==o;)i.push(a),a=Kt();i!==o?(t.substr(St,3)===O?(a=O,St+=3):(a=o,0===Ct&&jt(P)),a!==o?(xt=e,e=n=j(i)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;else St=e,e=c;return _t[s]={nextPos:St,result:e},e}(),e===o&&(e=qt())===o&&(e=function(){var e,n,r,i,a,s=49*St+16,u=_t[s];if(u)return St=u.nextPos,u.result;if(e=St,t.substr(St,3)===L?(n=L,St+=3):(n=o,0===Ct&&jt(B)),n!==o)if((r=rn())===o&&(r=R),r!==o){for(i=[],a=$t();a!==o;)i.push(a),a=$t();i!==o?(t.substr(St,3)===L?(a=L,St+=3):(a=o,0===Ct&&jt(B)),a!==o?(xt=e,e=n=j(i)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;else St=e,e=c;return _t[s]={nextPos:St,result:e},e}(),e===o&&(e=zt())),_t[n]={nextPos:St,result:e},e)}(),e===o&&(e=function(){var e,n,r,i,a,s=49*St+38,u=_t[s];return u?(St=u.nextPos,u.result):(e=St,(n=tn())!==o?(84===t.charCodeAt(St)?(r=Ce,St++):(r=o,0===Ct&&jt(_e)),r!==o?(i=function(){var e,n,r,i,a,s,u,l,f,p,d,h=49*St+36,y=_t[h];return y?(St=y.nextPos,y.result):(e=St,n=St,(r=cn())!==o&&(i=cn())!==o?(58===t.charCodeAt(St)?(a=Ee,St++):(a=o,0===Ct&&jt(Te)),a!==o&&(s=cn())!==o&&(u=cn())!==o?(58===t.charCodeAt(St)?(l=Ee,St++):(l=o,0===Ct&&jt(Te)),l!==o&&(f=cn())!==o&&(p=cn())!==o?((d=en())===o&&(d=R),d!==o?n=r=[r,i,a,s,u,l,f,p,d]:(St=n,n=c)):(St=n,n=c)):(St=n,n=c)):(St=n,n=c),n!==o&&(xt=e,n=Ae(n)),e=n,_t[h]={nextPos:St,result:e},e)}(),i!==o?(90===t.charCodeAt(St)?(a=Oe,St++):(a=o,0===Ct&&jt(Pe)),a!==o?(xt=e,e=n=Re(n,i)):(St=e,e=c)):(St=e,e=c)):(St=e,e=c)):(St=e,e=c),e===o&&(e=St,(n=tn())!==o?(84===t.charCodeAt(St)?(r=Ce,St++):(r=o,0===Ct&&jt(_e)),r!==o?(i=function(){var e,n,r,i,a,s,u,l,f,p,d,h,y,m,g,b,v,w=49*St+37,S=_t[w];return S?(St=S.nextPos,S.result):(e=St,n=St,(r=cn())!==o&&(i=cn())!==o?(58===t.charCodeAt(St)?(a=Ee,St++):(a=o,0===Ct&&jt(Te)),a!==o&&(s=cn())!==o&&(u=cn())!==o?(58===t.charCodeAt(St)?(l=Ee,St++):(l=o,0===Ct&&jt(Te)),l!==o&&(f=cn())!==o&&(p=cn())!==o?((d=en())===o&&(d=R),d!==o?(45===t.charCodeAt(St)?(h=J,St++):(h=o,0===Ct&&jt(ee)),h===o&&(43===t.charCodeAt(St)?(h=Q,St++):(h=o,0===Ct&&jt(Z))),h!==o&&(y=cn())!==o&&(m=cn())!==o?(58===t.charCodeAt(St)?(g=Ee,St++):(g=o,0===Ct&&jt(Te)),g!==o&&(b=cn())!==o&&(v=cn())!==o?n=r=[r,i,a,s,u,l,f,p,d,h,y,m,g,b,v]:(St=n,n=c)):(St=n,n=c)):(St=n,n=c)):(St=n,n=c)):(St=n,n=c)):(St=n,n=c),n!==o&&(xt=e,n=Ae(n)),e=n,_t[w]={nextPos:St,result:e},e)}(),i!==o?(xt=e,e=n=je(n,i)):(St=e,e=c)):(St=e,e=c)):(St=e,e=c)),_t[s]={nextPos:St,result:e},e)}(),e===o&&(e=function(){var e,n,r,i,a=49*St+23,s=_t[a];return s?(St=s.nextPos,s.result):(e=St,(n=Xt())===o&&(n=Gt()),n!==o?(101===t.charCodeAt(St)?(r=H,St++):(r=o,0===Ct&&jt(W)),r===o&&(69===t.charCodeAt(St)?(r=K,St++):(r=o,0===Ct&&jt($))),r!==o&&(i=Gt())!==o?(xt=e,e=n=X(n,i)):(St=e,e=c)):(St=e,e=c),e===o&&(e=St,(n=Xt())!==o&&(xt=e,n=G(n)),e=n),_t[a]={nextPos:St,result:e},e)}(),e===o&&(e=function(){var e,t,n=49*St+25,r=_t[n];return r?(St=r.nextPos,r.result):(e=St,(t=Gt())!==o&&(xt=e,t=ne(t)),e=t,_t[n]={nextPos:St,result:e},e)}(),e===o&&(e=function(){var e,n,r=49*St+27,i=_t[r];return i?(St=i.nextPos,i.result):(e=St,t.substr(St,4)===re?(n=re,St+=4):(n=o,0===Ct&&jt(oe)),n!==o&&(xt=e,n=ie()),(e=n)===o&&(e=St,t.substr(St,5)===ae?(n=ae,St+=5):(n=o,0===Ct&&jt(se)),n!==o&&(xt=e,n=ce()),e=n),_t[r]={nextPos:St,result:e},e)}(),e===o&&(e=function(){var e,n,r,i,a,s=49*St+28,u=_t[s];if(u)return St=u.nextPos,u.result;if(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o){for(r=[],i=Yt();i!==o;)r.push(i),i=Yt();r!==o?(93===t.charCodeAt(St)?(i=y,St++):(i=o,0===Ct&&jt(m)),i!==o?(xt=e,e=n=ue()):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;if(e===o&&(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o?((r=Qt())===o&&(r=R),r!==o?(93===t.charCodeAt(St)?(i=y,St++):(i=o,0===Ct&&jt(m)),i!==o?(xt=e,e=n=le(r)):(St=e,e=c)):(St=e,e=c)):(St=e,e=c),e===o)){if(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o){if(r=[],(i=Zt())!==o)for(;i!==o;)r.push(i),i=Zt();else r=c;r!==o?(93===t.charCodeAt(St)?(i=y,St++):(i=o,0===Ct&&jt(m)),i!==o?(xt=e,e=n=fe(r)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;if(e===o)if(e=St,91===t.charCodeAt(St)?(n=d,St++):(n=o,0===Ct&&jt(h)),n!==o){if(r=[],(i=Zt())!==o)for(;i!==o;)r.push(i),i=Zt();else r=c;r!==o&&(i=Qt())!==o?(93===t.charCodeAt(St)?(a=y,St++):(a=o,0===Ct&&jt(m)),a!==o?(xt=e,e=n=pe(r,i)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c}return _t[s]={nextPos:St,result:e},e}(),e===o&&(e=function(){var e,n,r,i,a,s,u=49*St+32,l=_t[u];if(l)return St=l.nextPos,l.result;if(e=St,123===t.charCodeAt(St)?(n=me,St++):(n=o,0===Ct&&jt(ge)),n!==o){for(r=[],i=nn();i!==o;)r.push(i),i=nn();if(r!==o){for(i=[],a=Jt();a!==o;)i.push(a),a=Jt();if(i!==o){for(a=[],s=nn();s!==o;)a.push(s),s=nn();a!==o?(125===t.charCodeAt(St)?(s=be,St++):(s=o,0===Ct&&jt(ve)),s!==o?(xt=e,e=n=we(i)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c}else St=e,e=c}else St=e,e=c;return _t[u]={nextPos:St,result:e},e}())))))),_t[n]={nextPos:St,result:e},e)}function qt(){var e,n,r,i,a=49*St+15,s=_t[a];if(s)return St=s.nextPos,s.result;if(e=St,34===t.charCodeAt(St)?(n=I,St++):(n=o,0===Ct&&jt(N)),n!==o){for(r=[],i=Ht();i!==o;)r.push(i),i=Ht();r!==o?(34===t.charCodeAt(St)?(i=I,St++):(i=o,0===Ct&&jt(N)),i!==o?(xt=e,e=n=j(r)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;return _t[a]={nextPos:St,result:e},e}function zt(){var e,n,r,i,a=49*St+17,s=_t[a];if(s)return St=s.nextPos,s.result;if(e=St,39===t.charCodeAt(St)?(n=D,St++):(n=o,0===Ct&&jt(U)),n!==o){for(r=[],i=Wt();i!==o;)r.push(i),i=Wt();r!==o?(39===t.charCodeAt(St)?(i=D,St++):(i=o,0===Ct&&jt(U)),i!==o?(xt=e,e=n=j(r)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;return _t[a]={nextPos:St,result:e},e}function Ht(){var e,n,r,i=49*St+18,a=_t[i];return a?(St=a.nextPos,a.result):((e=fn())===o&&(e=St,n=St,Ct++,34===t.charCodeAt(St)?(r=I,St++):(r=o,0===Ct&&jt(N)),Ct--,r===o?n=f:(St=n,n=c),n!==o?(t.length>St?(r=t.charAt(St),St++):(r=o,0===Ct&&jt(p)),r!==o?(xt=e,e=n=M(r)):(St=e,e=c)):(St=e,e=c)),_t[i]={nextPos:St,result:e},e)}function Wt(){var e,n,r,i=49*St+19,a=_t[i];return a?(St=a.nextPos,a.result):(e=St,n=St,Ct++,39===t.charCodeAt(St)?(r=D,St++):(r=o,0===Ct&&jt(U)),Ct--,r===o?n=f:(St=n,n=c),n!==o?(t.length>St?(r=t.charAt(St),St++):(r=o,0===Ct&&jt(p)),r!==o?(xt=e,e=n=M(r)):(St=e,e=c)):(St=e,e=c),_t[i]={nextPos:St,result:e},e)}function Kt(){var e,n,r,i=49*St+20,a=_t[i];return a?(St=a.nextPos,a.result):((e=fn())===o&&(e=function(){var e,n,r,i,a=49*St+21,s=_t[a];if(s)return St=s.nextPos,s.result;if(e=St,92===t.charCodeAt(St)?(n=V,St++):(n=o,0===Ct&&jt(q)),n!==o)if(rn()!==o){for(r=[],i=on();i!==o;)r.push(i),i=on();r!==o?(xt=e,e=n=z()):(St=e,e=c)}else St=e,e=c;else St=e,e=c;return _t[a]={nextPos:St,result:e},e}(),e===o&&(e=St,n=St,Ct++,t.substr(St,3)===O?(r=O,St+=3):(r=o,0===Ct&&jt(P)),Ct--,r===o?n=f:(St=n,n=c),n!==o?(t.length>St?(r=t.charAt(St),St++):(r=o,0===Ct&&jt(p)),r!==o?(xt=e,e=n=F(r)):(St=e,e=c)):(St=e,e=c))),_t[i]={nextPos:St,result:e},e)}function $t(){var e,n,r,i=49*St+22,a=_t[i];return a?(St=a.nextPos,a.result):(e=St,n=St,Ct++,t.substr(St,3)===L?(r=L,St+=3):(r=o,0===Ct&&jt(B)),Ct--,r===o?n=f:(St=n,n=c),n!==o?(t.length>St?(r=t.charAt(St),St++):(r=o,0===Ct&&jt(p)),r!==o?(xt=e,e=n=M(r)):(St=e,e=c)):(St=e,e=c),_t[i]={nextPos:St,result:e},e)}function Xt(){var e,n,r,i,a,s,u=49*St+24,l=_t[u];return l?(St=l.nextPos,l.result):(e=St,43===t.charCodeAt(St)?(n=Q,St++):(n=o,0===Ct&&jt(Z)),n===o&&(n=R),n!==o?(r=St,(i=ln())!==o?(46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),a!==o&&(s=ln())!==o?r=i=[i,a,s]:(St=r,r=c)):(St=r,r=c),r!==o?(xt=e,e=n=Y(r)):(St=e,e=c)):(St=e,e=c),e===o&&(e=St,45===t.charCodeAt(St)?(n=J,St++):(n=o,0===Ct&&jt(ee)),n!==o?(r=St,(i=ln())!==o?(46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),a!==o&&(s=ln())!==o?r=i=[i,a,s]:(St=r,r=c)):(St=r,r=c),r!==o?(xt=e,e=n=te(r)):(St=e,e=c)):(St=e,e=c)),_t[u]={nextPos:St,result:e},e)}function Gt(){var e,n,r,i,a,s=49*St+26,u=_t[s];if(u)return St=u.nextPos,u.result;if(e=St,43===t.charCodeAt(St)?(n=Q,St++):(n=o,0===Ct&&jt(Z)),n===o&&(n=R),n!==o){if(r=[],(i=cn())!==o)for(;i!==o;)r.push(i),i=cn();else r=c;r!==o?(i=St,Ct++,46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),Ct--,a===o?i=f:(St=i,i=c),i!==o?(xt=e,e=n=Y(r)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;if(e===o)if(e=St,45===t.charCodeAt(St)?(n=J,St++):(n=o,0===Ct&&jt(ee)),n!==o){if(r=[],(i=cn())!==o)for(;i!==o;)r.push(i),i=cn();else r=c;r!==o?(i=St,Ct++,46===t.charCodeAt(St)?(a=x,St++):(a=o,0===Ct&&jt(k)),Ct--,a===o?i=f:(St=i,i=c),i!==o?(xt=e,e=n=te(r)):(St=e,e=c)):(St=e,e=c)}else St=e,e=c;return _t[s]={nextPos:St,result:e},e}function Qt(){var e,t,n,r,i,a=49*St+29,s=_t[a];if(s)return St=s.nextPos,s.result;for(e=St,t=[],n=Yt();n!==o;)t.push(n),n=Yt();if(t!==o)if((n=Vt())!==o){for(r=[],i=Yt();i!==o;)r.push(i),i=Yt();r!==o?(xt=e,e=t=de(n)):(St=e,e=c)}else St=e,e=c;else St=e,e=c;return _t[a]={nextPos:St,result:e},e}function Zt(){var e,n,r,i,a,s,u,l=49*St+30,f=_t[l];if(f)return St=f.nextPos,f.result;for(e=St,n=[],r=Yt();r!==o;)n.push(r),r=Yt();if(n!==o)if((r=Vt())!==o){for(i=[],a=Yt();a!==o;)i.push(a),a=Yt();if(i!==o)if(44===t.charCodeAt(St)?(a=he,St++):(a=o,0===Ct&&jt(ye)),a!==o){for(s=[],u=Yt();u!==o;)s.push(u),u=Yt();s!==o?(xt=e,e=n=de(r)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c;return _t[l]={nextPos:St,result:e},e}function Yt(){var e,t=49*St+31,n=_t[t];return n?(St=n.nextPos,n.result):((e=nn())===o&&(e=rn())===o&&(e=Lt()),_t[t]={nextPos:St,result:e},e)}function Jt(){var e,n,r,i,a,s,u,l,f,p,d,h=49*St+33,y=_t[h];if(y)return St=y.nextPos,y.result;for(e=St,n=[],r=nn();r!==o;)n.push(r),r=nn();if(n!==o)if((r=Mt())!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o)if(61===t.charCodeAt(St)?(a=E,St++):(a=o,0===Ct&&jt(T)),a!==o){for(s=[],u=nn();u!==o;)s.push(u),u=nn();if(s!==o)if((u=Vt())!==o){for(l=[],f=nn();f!==o;)l.push(f),f=nn();if(l!==o)if(44===t.charCodeAt(St)?(f=he,St++):(f=o,0===Ct&&jt(ye)),f!==o){for(p=[],d=nn();d!==o;)p.push(d),d=nn();p!==o?(xt=e,e=n=Se(r,u)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c;if(e===o){for(e=St,n=[],r=nn();r!==o;)n.push(r),r=nn();if(n!==o)if((r=Mt())!==o){for(i=[],a=nn();a!==o;)i.push(a),a=nn();if(i!==o)if(61===t.charCodeAt(St)?(a=E,St++):(a=o,0===Ct&&jt(T)),a!==o){for(s=[],u=nn();u!==o;)s.push(u),u=nn();s!==o&&(u=Vt())!==o?(xt=e,e=n=Se(r,u)):(St=e,e=c)}else St=e,e=c;else St=e,e=c}else St=e,e=c;else St=e,e=c}return _t[h]={nextPos:St,result:e},e}function en(){var e,n,r,i=49*St+34,a=_t[i];return a?(St=a.nextPos,a.result):(e=St,46===t.charCodeAt(St)?(n=x,St++):(n=o,0===Ct&&jt(k)),n!==o&&(r=ln())!==o?(xt=e,e=n=xe(r)):(St=e,e=c),_t[i]={nextPos:St,result:e},e)}function tn(){var e,n,r,i,a,s,u,l,f,p,d,h,y=49*St+35,m=_t[y];return m?(St=m.nextPos,m.result):(e=St,n=St,(r=cn())!==o&&(i=cn())!==o&&(a=cn())!==o&&(s=cn())!==o?(45===t.charCodeAt(St)?(u=J,St++):(u=o,0===Ct&&jt(ee)),u!==o&&(l=cn())!==o&&(f=cn())!==o?(45===t.charCodeAt(St)?(p=J,St++):(p=o,0===Ct&&jt(ee)),p!==o&&(d=cn())!==o&&(h=cn())!==o?n=r=[r,i,a,s,u,l,f,p,d,h]:(St=n,n=c)):(St=n,n=c)):(St=n,n=c),n!==o&&(xt=e,n=ke(n)),e=n,_t[y]={nextPos:St,result:e},e)}function nn(){var e,n=49*St+39,r=_t[n];return r?(St=r.nextPos,r.result):(Ie.test(t.charAt(St))?(e=t.charAt(St),St++):(e=o,0===Ct&&jt(Ne)),_t[n]={nextPos:St,result:e},e)}function rn(){var e,n,r,i=49*St+40,a=_t[i];return a?(St=a.nextPos,a.result):(10===t.charCodeAt(St)?(e=Le,St++):(e=o,0===Ct&&jt(Be)),e===o&&(e=St,13===t.charCodeAt(St)?(n=De,St++):(n=o,0===Ct&&jt(Ue)),n!==o?(10===t.charCodeAt(St)?(r=Le,St++):(r=o,0===Ct&&jt(Be)),r!==o?e=n=[n,r]:(St=e,e=c)):(St=e,e=c)),_t[i]={nextPos:St,result:e},e)}function on(){var e,t=49*St+41,n=_t[t];return n?(St=n.nextPos,n.result):((e=rn())===o&&(e=nn()),_t[t]={nextPos:St,result:e},e)}function an(){var e,n,r=49*St+42,i=_t[r];return i?(St=i.nextPos,i.result):(e=St,Ct++,t.length>St?(n=t.charAt(St),St++):(n=o,0===Ct&&jt(p)),Ct--,n===o?e=f:(St=e,e=c),_t[r]={nextPos:St,result:e},e)}function sn(){var e,n=49*St+43,r=_t[n];return r?(St=r.nextPos,r.result):(Me.test(t.charAt(St))?(e=t.charAt(St),St++):(e=o,0===Ct&&jt(Fe)),_t[n]={nextPos:St,result:e},e)}function cn(){var e,n,r=49*St+44,i=_t[r];return i?(St=i.nextPos,i.result):(Ve.test(t.charAt(St))?(e=t.charAt(St),St++):(e=o,0===Ct&&jt(qe)),e===o&&(e=St,95===t.charCodeAt(St)?(n=ze,St++):(n=o,0===Ct&&jt(He)),n!==o&&(xt=e,n=We()),e=n),_t[r]={nextPos:St,result:e},e)}function un(){var e,n=49*St+45,r=_t[n];return r?(St=r.nextPos,r.result):(Ke.test(t.charAt(St))?(e=t.charAt(St),St++):(e=o,0===Ct&&jt($e)),_t[n]={nextPos:St,result:e},e)}function ln(){var e,t,n,r=49*St+46,i=_t[r];if(i)return St=i.nextPos,i.result;if(e=St,t=[],(n=cn())!==o)for(;n!==o;)t.push(n),n=cn();else t=c;return t!==o&&(xt=e,t=Xe(t)),e=t,_t[r]={nextPos:St,result:e},e}function fn(){var e,n,r=49*St+47,i=_t[r];return i?(St=i.nextPos,i.result):(e=St,t.substr(St,2)===Ge?(n=Ge,St+=2):(n=o,0===Ct&&jt(Qe)),n!==o&&(xt=e,n=Ze()),(e=n)===o&&(e=St,t.substr(St,2)===Ye?(n=Ye,St+=2):(n=o,0===Ct&&jt(Je)),n!==o&&(xt=e,n=et()),(e=n)===o&&(e=St,t.substr(St,2)===tt?(n=tt,St+=2):(n=o,0===Ct&&jt(nt)),n!==o&&(xt=e,n=rt()),(e=n)===o&&(e=St,t.substr(St,2)===ot?(n=ot,St+=2):(n=o,0===Ct&&jt(it)),n!==o&&(xt=e,n=at()),(e=n)===o&&(e=St,t.substr(St,2)===st?(n=st,St+=2):(n=o,0===Ct&&jt(ct)),n!==o&&(xt=e,n=ut()),(e=n)===o&&(e=St,t.substr(St,2)===lt?(n=lt,St+=2):(n=o,0===Ct&&jt(ft)),n!==o&&(xt=e,n=pt()),(e=n)===o&&(e=St,t.substr(St,2)===dt?(n=dt,St+=2):(n=o,0===Ct&&jt(ht)),n!==o&&(xt=e,n=yt()),(e=n)===o&&(e=function(){var e,n,r,i,a,s,u,l,f,p,d,h=49*St+48,y=_t[h];return y?(St=y.nextPos,y.result):(e=St,t.substr(St,2)===mt?(n=mt,St+=2):(n=o,0===Ct&&jt(gt)),n!==o?(r=St,(i=sn())!==o&&(a=sn())!==o&&(s=sn())!==o&&(u=sn())!==o&&(l=sn())!==o&&(f=sn())!==o&&(p=sn())!==o&&(d=sn())!==o?r=i=[i,a,s,u,l,f,p,d]:(St=r,r=c),r!==o?(xt=e,e=n=bt(r)):(St=e,e=c)):(St=e,e=c),e===o&&(e=St,t.substr(St,2)===vt?(n=vt,St+=2):(n=o,0===Ct&&jt(wt)),n!==o?(r=St,(i=sn())!==o&&(a=sn())!==o&&(s=sn())!==o&&(u=sn())!==o?r=i=[i,a,s,u]:(St=r,r=c),r!==o?(xt=e,e=n=bt(r)):(St=e,e=c)):(St=e,e=c)),_t[h]={nextPos:St,result:e},e)}()))))))),_t[r]={nextPos:St,result:e},e)}var pn=[];function dn(e){pn.push(e)}function hn(e,t,n,r,o){var i={type:e,value:t,line:n(),column:r()};return o&&(i.key=o),i}if((n=a())!==o&&St===t.length)return n;throw n!==o&&St<t.length&&jt({type:"end",description:"end of input"}),function(n,r,o){var i=Rt(o),a=o<t.length?t.charAt(o):null;return null!==r&&function(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(r),new e(null!==n?n:function(e,t){var n,r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=e[n].description;return"Expected "+(e.length>1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}(t)+'"':"end of input")+" found."}(r,a),r,a,o,i.line,i.column)}(null,At,Tt)}}}()},5680:(e,t,n)=>{var r=n(5767);e.exports=function(e){return!!r(e)}},5767:(e,t,n)=>{var r=n(2682),o=n(9209),i=n(487),a=n(6556),s=n(5795),c=n(3628),u=a("Object.prototype.toString"),l=n(9092)(),f="undefined"==typeof globalThis?n.g:globalThis,p=o(),d=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},y={__proto__:null};r(p,l&&s&&c?function(e){var t=new f[e];if(Symbol.toStringTag in t&&c){var n=c(t),r=s(n,Symbol.toStringTag);if(!r&&n){var o=c(n);r=s(o,Symbol.toStringTag)}y["$"+e]=i(r.get)}}:function(e){var t=new f[e],n=t.slice||t.set;n&&(y["$"+e]=i(n))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(u(e),8,-1);return h(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(y,function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(y,function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}}),t}(e):null}},5795:(e,t,n)=>{var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5880:e=>{e.exports=Math.pow},5896:e=>{function t(e,t){r(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,e)):process.nextTick(r,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?i._writableState?i._writableState.errorEmitted?process.nextTick(n,i):(i._writableState.errorEmitted=!0,process.nextTick(t,i,e)):process.nextTick(t,i,e):o?(process.nextTick(n,i),o(e)):process.nextTick(n,i)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},5976:(e,t,n)=>{function r(e){return r="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},r(e)}function o(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,i(r.key),r)}}function i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(c())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&u(o,n.prototype),o}(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)},s(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}n.d(t,{Cu:()=>j,v7:()=>S,nS:()=>A,Dr:()=>f,m_:()=>m});var f=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(this instanceof t?this.constructor:void 0).prototype;return(r=a(this,t,[e])).__proto__=o,r.constructor=t,r.response=n,r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),n=t,(r=[{key:"getResponse",value:function(){return this.response}}])&&o(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(s(Error));function p(e){return p="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},p(e)}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(this instanceof t?this.constructor:void 0).prototype;return(r=function(e,t,n){return t=h(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e,n])).__proto__=o,r.constructor=t,r.name="NotFoundError",r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(f);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},g(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var S=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(this instanceof t?this.constructor:void 0).prototype;return(r=function(e,t,n){return t=v(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}(this,t,[e,n])).__proto__=o,r.constructor=t,r.name="BadRequestError",r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(f);function x(e){return x="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},x(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}var A=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(this instanceof t?this.constructor:void 0).prototype;return(r=function(e,t,n){return t=E(t),function(e,t){if(t&&("object"==x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}(this,t,[e,n])).__proto__=o,r.constructor=t,r.name="BadResponseError",r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(f);function C(e){return C="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},C(e)}function _(e){var t="function"==typeof Map?new Map:void 0;return _=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(O())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&P(o,n.prototype),o}(e,arguments,R(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),P(n,e)},_(e)}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var j=function(e){function t(e,n,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=(this instanceof t?this.constructor:void 0).prototype;return(o=function(e,t,n){return t=R(t),function(e,t){if(t&&("object"==C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}(this,t,[e])).__proto__=i,o.constructor=t,o.name="AccountRequiresMemoError",o.accountId=n,o.operationIndex=r,o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(_(Error))},6048:e=>{var t={};function n(e,n,r){r||(r=Error);var o=function(e){var t,r;function o(t,r,o){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,o))||this}return r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,o}(r);o.prototype.name=r.name,o.prototype.code=e,t[e]=o}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,n){var o,i,a;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))a="The ".concat(e," ").concat(o," ").concat(r(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(r(t,"type"))}return a+". Received type ".concat(typeof n)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},6121:(t,n,r)=>{r.r(n),r.d(n,{axiosClient:()=>xt,create:()=>kt});var o={};function i(e,t){return function(){return e.apply(t,arguments)}}r.r(o),r.d(o,{hasBrowserEnv:()=>ye,hasStandardBrowserEnv:()=>ge,hasStandardBrowserWebWorkerEnv:()=>be,navigator:()=>me,origin:()=>ve});const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:c,toStringTag:u}=Symbol,l=(f=Object.create(null),e=>{const t=a.call(e);return f[t]||(f[t]=t.slice(8,-1).toLowerCase())});var f;const p=e=>(e=e.toLowerCase(),t=>l(t)===e),d=e=>t=>typeof t===e,{isArray:h}=Array,y=d("undefined");function m(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=p("ArrayBuffer"),b=d("string"),v=d("function"),w=d("number"),S=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==l(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||u in e||c in e)},k=p("Date"),E=p("File"),T=p("Blob"),A=p("FileList"),C=p("URLSearchParams"),[_,O,P,R]=["ReadableStream","Request","Response","Headers"].map(p);function j(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(m(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function I(e,t){if(m(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,L=e=>!y(e)&&e!==N,B=(D="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>D&&e instanceof D);var D;const U=p("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=p("RegExp"),V=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},q=p("AsyncFunction"),z=(H="function"==typeof setImmediate,W=v(N.postMessage),H?setImmediate:W?(K=`axios@${Math.random()}`,$=[],N.addEventListener("message",({source:e,data:t})=>{e===N&&t===K&&$.length&&$.shift()()},!1),e=>{$.push(e),N.postMessage(K,"*")}):e=>setTimeout(e));var H,W,K,$;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||z,G={isArray:h,isArrayBuffer:g,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=l(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:b,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:x,isEmptyObject:e=>{if(!S(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:O,isResponse:P,isHeaders:R,isUndefined:y,isDate:k,isFile:E,isBlob:T,isRegExp:F,isFunction:v,isStream:e=>S(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:B,isFileList:A,forEach:j,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},r=(r,o)=>{const i=t&&I(n,o)||o;x(n[i])&&x(r)?n[i]=e(n[i],r):x(r)?n[i]=e({},r):h(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(j(t,(t,r)=>{n&&v(t)?e[r]=i(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!w(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[c]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:V,freezeMethods:e=>{V(e,(t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:I,global:N,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[u]&&e[c])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[r]=e;const o=h(e)?[]:{};return j(e,(e,t)=>{const i=n(e,r+1);!y(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:q,isThenable:e=>e&&(S(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:z,asap:X,isIterable:e=>null!=e&&v(e[c])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=Q.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Y[e]={value:e}}),Object.defineProperties(Q,Y),Object.defineProperty(Z,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,i)=>{const a=Object.create(Z);return G.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Q.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const J=Q;var ee=r(8287).Buffer;function te(e){return G.isPlainObject(e)||G.isArray(e)}function ne(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function re(e,t,n){return e?e.concat(t).map(function(e,t){return e=ne(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const oe=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),ie=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!s&&G.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):ee.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(te)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(s=G.toArray(e)))return n=ne(n),s.forEach(function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===a?re([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!te(e)||(t.append(re(o,n,i),c(e)),!1)}const l=[],f=Object.assign(oe,{defaultVisitor:u,convertValue:c,isVisitable:te});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),G.forEach(n,function(n,i){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])}),l.pop()}}(e),t};function ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function se(e,t){this._pairs=[],e&&ie(e,this,t)}const ce=se.prototype;ce.append=function(e,t){this._pairs.push([e,t])},ce.toString=function(e){const t=e?function(t){return e.call(this,t,ae)}:ae;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ue=se;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fe(e,t,n){if(!t)return e;const r=n&&n.encode||le;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ue(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const pe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}},de={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},he={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ue,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ye="undefined"!=typeof window&&"undefined"!=typeof document,me="object"==typeof navigator&&navigator||void 0,ge=ye&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ve=ye&&window.location.href||"http://localhost",we={...o,...he},Se=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&G.isArray(r)?r.length:i,s?(G.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&G.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&G.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},xe={transitional:de,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return r?JSON.stringify(Se(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ie(e,new we.classes.URLSearchParams,{visitor:function(e,t,n,r){return we.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ie(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||xe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{xe.headers[e]={}});const ke=xe,Ee=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Te=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return!1===e||null==e?e:G.isArray(e)?e.map(Ce):String(e)}function _e(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ae(t);if(!o)throw new Error("header name must be a non-empty string");const i=G.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ce(e))}const i=(e,t)=>G.forEach(e,(e,n)=>o(e,n,t));if(G.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n,r,o={};for(const t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ae(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!_e(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ae(e)){const o=G.findKey(n,e);!o||t&&!_e(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!_e(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,(r,o)=>{const i=G.findKey(n,o);if(i)return t[i]=Ce(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ce(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Te]=this[Te]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ae(e);t[r]||(function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Oe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),G.freezeMethods(Oe);const Pe=Oe;function Re(e,t){const n=this||ke,r=t||n,o=Pe.from(r.headers);let i=r.data;return G.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function je(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Ie,J,{__CANCEL__:!0});const Ne=Ie;function Le(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Be=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},De=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ue=e=>(...t)=>G.asap(()=>e(...t)),Me=we.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,we.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,Fe=we.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ve(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qe=e=>e instanceof Pe?{...e}:e;function ze(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!G.isUndefined(t))return r(void 0,t)}function a(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(qe(e),qe(t),0,!0)};return G.forEach(Object.keys({...e,...t}),function(r){const i=c[r]||o,a=i(e[r],t[r],r);G.isUndefined(a)&&i!==s||(n[r]=a)}),n}const He=e=>{const t=ze({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Pe.from(s),t.url=fe(Ve(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),G.isFormData(r))if(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(we.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||!1!==o&&Me(t.url))){const e=i&&a&&Fe.read(a);e&&s.set(i,e)}return t},We="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=He(e);let o=r.data;const i=Pe.from(r.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let y=new XMLHttpRequest;function m(){if(!y)return;const r=Pe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Le(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y}),y=null}y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(n(new J("Request aborted",J.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||de;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&G.forEach(i.toJSON(),function(e,t){y.setRequestHeader(t,e)}),G.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),f&&"json"!==f&&(y.responseType=r.responseType),d&&([c,l]=Be(d,!0),y.addEventListener("progress",c)),p&&y.upload&&([s,u]=Be(p),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{y&&(n(!t||t.type?new Ne(null,e,y):t),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===we.protocols.indexOf(g)?n(new J("Unsupported protocol "+g+":",J.ERR_BAD_REQUEST,e)):y.send(o||null)})},Ke=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof J?t:new Ne(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>G.asap(a),s}},$e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Xe=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*$e(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Qe=Ge&&"function"==typeof ReadableStream,Ze=Ge&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},et=Qe&&Je(()=>{let e=!1;const t=new Request(we.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tt=Qe&&Je(()=>G.isReadableStream(new Response("").body)),nt={stream:tt&&(e=>e.body)};var rt;Ge&&(rt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!nt[e]&&(nt[e]=G.isFunction(rt[e])?t=>t[e]():(t,n)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})}));const ot={http:null,xhr:We,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=He(e);u=u?(u+"").toLowerCase():"text";let d,h=Ke([o,i&&i.toAbortSignal()],a);const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(c&&et&&"get"!==n&&"head"!==n&&0!==(m=await(async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(we.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Ze(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(G.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=De(m,Be(Ue(c)));r=Xe(n.body,65536,e,t)}}G.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let i=await fetch(d,p);const a=tt&&("stream"===u||"response"===u);if(tt&&(s||a&&y)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=G.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&De(t,Be(Ue(s),!0))||[];i=new Response(Xe(i.body,65536,n,()=>{r&&r(),y&&y()}),e)}u=u||"text";let g=await nt[G.findKey(nt,u)||"text"](i,e);return!a&&y&&y(),await new Promise((t,n)=>{Le(t,n,{data:g,headers:Pe.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})})}catch(t){if(y&&y(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,d),{cause:t.cause||t});throw J.from(t,t&&t.code,e,d)}})};G.forEach(ot,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const it=e=>`- ${e}`,at=e=>G.isFunction(e)||null===e||!1===e,st=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!at(n)&&(r=ot[(t=String(n)).toLowerCase()],void 0===r))throw new J(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(it).join("\n"):" "+it(e[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function ut(e){return ct(e),e.headers=Pe.from(e.headers),e.data=Re.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),st(e.adapter||ke.adapter)(e).then(function(t){return ct(e),t.data=Re.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t},function(t){return je(t)||(ct(e),t&&t.response&&(t.response.data=Re.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)})}const lt="1.11.0",ft={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pt={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+lt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new J(r(o," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ft.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:ft},ht=dt.validators;class yt{constructor(e){this.defaults=e||{},this.interceptors={request:new pe,response:new pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ze(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dt.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:dt.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dt.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Pe.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=a.length;let p=t;for(f=0;f<l;){const t=a[f++],n=a[f++];try{p=t(p)}catch(e){n.call(this,e);break}}try{u=ut.call(this,p)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return fe(Ve((e=ze(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){yt.prototype[e]=function(t,n){return this.request(ze(n||{},{method:e,url:t,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(ze(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}yt.prototype[e]=t(),yt.prototype[e+"Form"]=t(!0)});const mt=yt;class gt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Ne(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gt(function(t){e=t}),cancel:e}}}const bt=gt,vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vt).forEach(([e,t])=>{vt[t]=e});const wt=vt,St=function e(t){const n=new mt(t),r=i(mt.prototype.request,n);return G.extend(r,mt.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ze(t,n))},r}(ke);St.Axios=mt,St.CanceledError=Ne,St.CancelToken=bt,St.isCancel=je,St.VERSION=lt,St.toFormData=ie,St.AxiosError=J,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=ze,St.AxiosHeaders=Pe,St.formToJSON=e=>Se(G.isHTMLForm(e)?new FormData(e):e),St.getAdapter=st,St.HttpStatusCode=wt,St.default=St;var xt=St,kt=St.create},6188:e=>{e.exports=Math.max},6238:(e,t,n)=>{var r=n(6048).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,n,i){if("function"==typeof n)return e(t,null,n);n||(n={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}(i||o);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){s=!1,u=!0,a||i.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){a=!1,f=!0,s||i.call(t)},d=function(e){i.call(t,e)},h=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),i.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new r),i.call(t,e)):void 0},y=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",h),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",l),!1!==n.error&&t.on("error",d),t.on("close",h),function(){t.removeListener("complete",l),t.removeListener("abort",h),t.removeListener("request",y),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",p),t.removeListener("error",d),t.removeListener("close",h)}}},6299:(e,t,n)=>{n.r(t),n.d(t,{AssembledTransaction:()=>Ee,Client:()=>ft,DEFAULT_TIMEOUT:()=>h,Err:()=>d,NULL_ACCOUNT:()=>y,Ok:()=>p,SentTransaction:()=>Z,Spec:()=>$e,Watcher:()=>Y,basicNodeSigner:()=>Pe});var r=n(8950),o=n(3496),i=n(4076),a=n(8680);function s(e){return s="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},s(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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,f(r.key),r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}var p=l(function e(t){c(this,e),this.value=t},[{key:"unwrapErr",value:function(){throw new Error("No error")}},{key:"unwrap",value:function(){return this.value}},{key:"isOk",value:function(){return!0}},{key:"isErr",value:function(){return!1}}]),d=l(function e(t){c(this,e),this.error=t},[{key:"unwrapErr",value:function(){return this.error}},{key:"unwrap",value:function(){throw new Error(this.error.message)}},{key:"isOk",value:function(){return!1}},{key:"isErr",value:function(){return!0}}]),h=300,y="GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF",m=n(8287).Buffer;function g(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return b(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(b(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,b(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,b(f,"constructor",u),b(u,"constructor",c),c.displayName="GeneratorFunction",b(u,o,"GeneratorFunction"),b(f),b(f,o,"Generator"),b(f,r,function(){return this}),b(f,"toString",function(){return"[object Generator]"}),(g=function(){return{w:i,m:p}})()}function b(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}b=function(e,t,n,r){function i(t,n){b(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},b(e,t,n,r)}function v(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e){return S="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},S(e)}function x(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function k(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){x(i,r,o,a,s,"next",e)}function s(e){x(i,r,o,a,s,"throw",e)}a(void 0)})}}function E(e,t,n){return T.apply(this,arguments)}function T(){return T=k(g().m(function e(t,n,r){var o,i,a,s,c,u,l,f,p,d=arguments;return g().w(function(e){for(;;)switch(e.n){case 0:return o=d.length>3&&void 0!==d[3]?d[3]:1.5,i=d.length>4&&void 0!==d[4]&&d[4],s=0,f=a=[],e.n=1,t();case 1:if(f.push.call(f,e.v),n(a[a.length-1])){e.n=2;break}return e.a(2,a);case 2:c=new Date(Date.now()+1e3*r).valueOf(),l=u=1e3;case 3:if(!(Date.now()<c&&n(a[a.length-1]))){e.n=6;break}return s+=1,i&&console.info("Waiting ".concat(u,"ms before trying again (bringing the total wait time to ").concat(l,"ms so far, of total ").concat(1e3*r,"ms)")),e.n=4,new Promise(function(e){return setTimeout(e,u)});case 4:return u*=o,new Date(Date.now()+u).valueOf()>c&&(u=c-Date.now(),i&&console.info("was gonna wait too long; new waitTime: ".concat(u,"ms"))),l=u+l,p=a,e.n=5,t(a[a.length-1]);case 5:p.push.call(p,e.v),i&&n(a[a.length-1])&&console.info("".concat(s,". Called ").concat(t,"; ").concat(a.length," prev attempts. Most recent: ").concat(JSON.stringify(a[a.length-1],null,2))),e.n=3;break;case 6:return e.a(2,a)}},e)})),T.apply(this,arguments)}var A,C=/Error\(Contract, #(\d+)\)/;function _(e){return O.apply(this,arguments)}function O(){return(O=k(g().m(function e(t){var n,r,o;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,WebAssembly.compile(t);case 1:r=e.v,n=WebAssembly.Module.customSections(r,"contractspecv0"),e.n=3;break;case 2:e.p=2,e.v,o=P(t),n=o.get("contractspecv0");case 3:if(n&&0!==n.length){e.n=4;break}throw new Error("Could not obtain contract spec from wasm");case 4:return e.a(2,m.from(n[0]))}},e,null,[[0,2]])}))).apply(this,arguments)}function P(e){var t=new Map,n=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),r=0,o=function(t){if(r+t>e.byteLength)throw new Error("Buffer overflow");var o=new Uint8Array(n,r,t);return r+=t,o};if("0,97,115,109"!==v(o(4)).join())throw new Error("Invalid WASM magic");if("1,0,0,0"!==v(o(4)).join())throw new Error("Invalid WASM version");for(;r<e.byteLength;){var i=o(1)[0],a=p(),s=r;if(0===i){var c=p();if(0===c||r+c>s+a)continue;var u=o(c),l=o(a-(r-s));try{var f=new TextDecoder("utf-8",{fatal:!0}).decode(u);l.length>0&&t.set(f,(t.get(f)||[]).concat(l))}catch(e){}}else r+=a}function p(){for(var e=0,t=0;;){var n=o(1)[0];if(e|=(127&n)<<t,!(128&n))break;if((t+=7)>=32)throw new Error("Invalid WASM value")}return e>>>0}return t}function R(e){for(var t=new r.cereal.XdrReader(e),n=[];!t.eof;)n.push(r.xdr.ScSpecEntry.read(t));return n}function j(e,t){return I.apply(this,arguments)}function I(){return(I=k(g().m(function e(t,n){return g().w(function(e){for(;;)if(0===e.n)return e.a(2,t.publicKey?n.getAccount(t.publicKey):new r.Account(y,"0"))},e)}))).apply(this,arguments)}function N(e,t,n){return t=M(t),function(e,t){if(t&&("object"==F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,D()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function L(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}function B(e){var t="function"==typeof Map?new Map:void 0;return B=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(D())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&U(o,n.prototype),o}(e,arguments,M(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),U(n,e)},B(e)}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function F(e){return F="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},F(e)}function V(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return q(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(q(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,q(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,q(f,"constructor",u),q(u,"constructor",c),c.displayName="GeneratorFunction",q(u,o,"GeneratorFunction"),q(f),q(f,o,"Generator"),q(f,r,function(){return this}),q(f,"toString",function(){return"[object Generator]"}),(V=function(){return{w:i,m:p}})()}function q(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}q=function(e,t,n,r){function i(t,n){q(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},q(e,t,n,r)}function z(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,s,"next",e)}function s(e){z(i,r,o,a,s,"throw",e)}a(void 0)})}}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(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,G(r.key),r)}}function $(e,t,n){return t&&K(e.prototype,t),n&&K(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e){var t=function(e){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}var Q,Z=function(){function e(t){var n,r,a=this;W(this,e),X(this,"send",(r=H(V().m(function t(n){var r,o,s;return V().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,a.server.sendTransaction(a.assembled.signed);case 1:if(a.sendTransactionResponse=t.v,"PENDING"===a.sendTransactionResponse.status){t.n=2;break}throw new e.Errors.SendFailed("Sending the transaction to the network failed!\n".concat(JSON.stringify(a.sendTransactionResponse,null,2)));case 2:return null!=n&&n.onSubmitted&&n.onSubmitted(a.sendTransactionResponse),o=a.sendTransactionResponse.hash,s=null!==(r=a.assembled.options.timeoutInSeconds)&&void 0!==r?r:h,t.n=3,E(H(V().m(function e(){var t;return V().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a.server.getTransaction(o);case 1:return t=e.v,null!=n&&n.onProgress&&n.onProgress(t),e.a(2,t)}},e)})),function(e){return e.status===i.j.GetTransactionStatus.NOT_FOUND},s);case 3:if(a.getTransactionResponseAll=t.v,a.getTransactionResponse=a.getTransactionResponseAll[a.getTransactionResponseAll.length-1],a.getTransactionResponse.status!==i.j.GetTransactionStatus.NOT_FOUND){t.n=4;break}throw new e.Errors.TransactionStillPending("Waited ".concat(s," seconds for transaction to complete, but it did not. ")+"Returning anyway. Check the transaction status manually. "+"Sent transaction: ".concat(JSON.stringify(a.sendTransactionResponse,null,2),"\n")+"All attempts to get the result: ".concat(JSON.stringify(a.getTransactionResponseAll,null,2)));case 4:return t.a(2,a)}},t)})),function(e){return r.apply(this,arguments)})),this.assembled=t,this.server=new o.Server(this.assembled.options.rpcUrl,{allowHttp:null!==(n=this.assembled.options.allowHttp)&&void 0!==n&&n})}return $(e,[{key:"result",get:function(){if("getTransactionResponse"in this&&this.getTransactionResponse){if("returnValue"in this.getTransactionResponse)return this.assembled.options.parseResultXdr(this.getTransactionResponse.returnValue);throw new Error("Transaction failed! Cannot parse result.")}if(this.sendTransactionResponse){var t,n=null===(t=this.sendTransactionResponse.errorResult)||void 0===t?void 0:t.result();if(n)throw new e.Errors.SendFailed("Transaction simulation looked correct, but attempting to send the transaction failed. Check `simulation` and `sendTransactionResponseAll` to troubleshoot. Decoded `sendTransactionResponse.errorResultXdr`: ".concat(n));throw new e.Errors.SendResultOnly("Transaction was sent to the network, but not yet awaited. No result to show. Await transaction completion with `getTransaction(sendTransactionResponse.hash)`")}throw new Error("Sending transaction failed: ".concat(JSON.stringify(this.assembled.signed)))}}])}();A=Z,X(Z,"Errors",{SendFailed:function(e){function t(){return W(this,t),N(this,t,arguments)}return L(t,e),$(t)}(B(Error)),SendResultOnly:function(e){function t(){return W(this,t),N(this,t,arguments)}return L(t,e),$(t)}(B(Error)),TransactionStillPending:function(e){function t(){return W(this,t),N(this,t,arguments)}return L(t,e),$(t)}(B(Error))}),X(Z,"init",(Q=H(V().m(function e(t,n){var r,o;return V().w(function(e){for(;;)switch(e.n){case 0:return r=new A(t),e.n=1,r.send(n);case 1:return o=e.v,e.a(2,o)}},e)})),function(e,t){return Q.apply(this,arguments)}));var Y=$(function e(){W(this,e)}),J=n(8287).Buffer;function ee(e,t,n){return t=ie(t),function(e,t){if(t&&("object"==ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,re()?Reflect.construct(t,n||[],ie(e).constructor):t.apply(e,n))}function te(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}function ne(e){var t="function"==typeof Map?new Map:void 0;return ne=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(re())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&oe(o,n.prototype),o}(e,arguments,ie(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oe(n,e)},ne(e)}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(re=function(){return!!e})()}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}function ae(e){return ae="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},ae(e)}function se(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach(function(t){xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ue(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ae(e)+" is not iterable")}function le(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ye(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 fe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ye(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function pe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return de(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(de(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,de(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,de(f,"constructor",u),de(u,"constructor",c),c.displayName="GeneratorFunction",de(u,o,"GeneratorFunction"),de(f),de(f,o,"Generator"),de(f,r,function(){return this}),de(f,"toString",function(){return"[object Generator]"}),(pe=function(){return{w:i,m:p}})()}function de(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}de=function(e,t,n,r){function i(t,n){de(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},de(e,t,n,r)}function he(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){if(e){if("string"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ge(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function be(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){ge(i,r,o,a,s,"next",e)}function s(e){ge(i,r,o,a,s,"throw",e)}a(void 0)})}}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(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,ke(r.key),r)}}function Se(e,t,n){return t&&we(e.prototype,t),n&&we(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xe(e,t,n){return(t=ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){var t=function(e){if("object"!=ae(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ae(t)?t:t+""}var Ee=function(){function e(t){var n,s,c=this;ve(this,e),xe(this,"simulate",be(pe().m(function t(){var n,o,s,u,l,f,p,d=arguments;return pe().w(function(t){for(;;)switch(t.n){case 0:if(n=(d.length>0&&void 0!==d[0]?d[0]:{}).restore,c.built){t.n=2;break}if(c.raw){t.n=1;break}throw new Error("Transaction has not yet been assembled; call `AssembledTransaction.build` first.");case 1:c.built=c.raw.build();case 2:return n=null!=n?n:c.options.restore,delete c.simulationResult,delete c.simulationTransactionData,t.n=3,c.server.simulateTransaction(c.built);case 3:if(c.simulation=t.v,!n||!i.j.isSimulationRestore(c.simulation)){t.n=8;break}return t.n=4,j(c.options,c.server);case 4:return o=t.v,t.n=5,c.restoreFootprint(c.simulation.restorePreamble,o);case 5:if((s=t.v).status!==i.j.GetTransactionStatus.SUCCESS){t.n=7;break}return p=new r.Contract(c.options.contractId),c.raw=new r.TransactionBuilder(o,{fee:null!==(u=c.options.fee)&&void 0!==u?u:r.BASE_FEE,networkPassphrase:c.options.networkPassphrase}).addOperation(p.call.apply(p,[c.options.method].concat(he(null!==(l=c.options.args)&&void 0!==l?l:[])))).setTimeout(null!==(f=c.options.timeoutInSeconds)&&void 0!==f?f:h),t.n=6,c.simulate();case 6:return t.a(2,c);case 7:throw new e.Errors.RestorationFailure("Automatic restore failed! You set 'restore: true' but the attempted restore did not work. Result:\n".concat(JSON.stringify(s)));case 8:return i.j.isSimulationSuccess(c.simulation)&&(c.built=(0,a.X)(c.built,c.simulation).build()),t.a(2,c)}},t)}))),xe(this,"sign",be(pe().m(function t(){var n,o,i,a,s,u,l,f,p,d,y,m,g=arguments;return pe().w(function(t){for(;;)switch(t.n){case 0:if(i=(o=g.length>0&&void 0!==g[0]?g[0]:{}).force,a=void 0!==i&&i,s=o.signTransaction,u=void 0===s?c.options.signTransaction:s,c.built){t.n=1;break}throw new Error("Transaction has not yet been simulated");case 1:if(a||!c.isReadCall){t.n=2;break}throw new e.Errors.NoSignatureNeeded("This is a read call. It requires no signature or sending. Use `force: true` to sign and send anyway.");case 2:if(u){t.n=3;break}throw new e.Errors.NoSigner("You must provide a signTransaction function, either when calling `signAndSend` or when initializing your Client");case 3:if(!(l=c.needsNonInvokerSigningBy().filter(function(e){return!e.startsWith("C")})).length){t.n=4;break}throw new e.Errors.NeedsMoreSignatures("Transaction requires signatures from ".concat(l,". ")+"See `needsNonInvokerSigningBy` for details.");case 4:return f=null!==(n=c.options.timeoutInSeconds)&&void 0!==n?n:h,c.built=r.TransactionBuilder.cloneFrom(c.built,{fee:c.built.fee,timebounds:void 0,sorobanData:c.simulationData.transactionData}).setTimeout(f).build(),p={networkPassphrase:c.options.networkPassphrase},c.options.address&&(p.address=c.options.address),void 0!==c.options.submit&&(p.submit=c.options.submit),c.options.submitUrl&&(p.submitUrl=c.options.submitUrl),t.n=5,u(c.built.toXDR(),p);case 5:d=t.v,y=d.signedTxXdr,m=d.error,c.handleWalletError(m),c.signed=r.TransactionBuilder.fromXDR(y,c.options.networkPassphrase);case 6:return t.a(2)}},t)}))),xe(this,"signAndSend",be(pe().m(function e(){var t,n,r,o,i,a,s,u=arguments;return pe().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=(t=u.length>0&&void 0!==u[0]?u[0]:{}).force,r=void 0!==n&&n,o=t.signTransaction,i=void 0===o?c.options.signTransaction:o,a=t.watcher,c.signed){e.n=3;break}return s=c.options.submit,c.options.submit&&(c.options.submit=!1),e.p=1,e.n=2,c.sign({force:r,signTransaction:i});case 2:return e.p=2,c.options.submit=s,e.f(2);case 3:return e.a(2,c.send(a))}},e,null,[[1,,2,3]])}))),xe(this,"needsNonInvokerSigningBy",function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeAlreadySigned,n=void 0!==t&&t;if(!c.built)throw new Error("Transaction has not yet been simulated");if(!("operations"in c.built))throw new Error("Unexpected Transaction type; no operations: ".concat(JSON.stringify(c.built)));var o=c.built.operations[0];return he(new Set((null!==(e=o.auth)&&void 0!==e?e:[]).filter(function(e){return e.credentials().switch()===r.xdr.SorobanCredentialsType.sorobanCredentialsAddress()&&(n||"scvVoid"===e.credentials().address().signature().switch().name)}).map(function(e){return r.Address.fromScAddress(e.credentials().address().address()).toString()})))}),xe(this,"signAuthEntries",be(pe().m(function t(){var n,o,i,a,s,u,l,f,p,d,h,y,m,g,b,v,w,S=arguments;return pe().w(function(t){for(;;)switch(t.p=t.n){case 0:if(i=(o=S.length>0&&void 0!==S[0]?S[0]:{}).expiration,a=void 0===i?be(pe().m(function e(){var t;return pe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,c.server.getLatestLedger();case 1:return t=e.v.sequence,e.a(2,t+100)}},e)}))():i,s=o.signAuthEntry,u=void 0===s?c.options.signAuthEntry:s,l=o.address,f=void 0===l?c.options.publicKey:l,p=o.authorizeEntry,d=void 0===p?r.authorizeEntry:p,c.built){t.n=1;break}throw new Error("Transaction has not yet been assembled or simulated");case 1:if(d!==r.authorizeEntry){t.n=4;break}if(0!==(h=c.needsNonInvokerSigningBy()).length){t.n=2;break}throw new e.Errors.NoUnsignedNonInvokerAuthEntries("No unsigned non-invoker auth entries; maybe you already signed?");case 2:if(-1!==h.indexOf(null!=f?f:"")){t.n=3;break}throw new e.Errors.NoSignatureNeeded('No auth entries for public key "'.concat(f,'"'));case 3:if(u){t.n=4;break}throw new e.Errors.NoSigner("You must provide `signAuthEntry` or a custom `authorizeEntry`");case 4:y=c.built.operations[0],m=null!==(n=y.auth)&&void 0!==n?n:[],g=fe(m.entries()),t.p=5,v=pe().m(function e(){var t,n,o,i,s,l,p,h;return pe().w(function(e){for(;;)switch(e.n){case 0:if(t=le(b.value,2),n=t[0],o=t[1],(i=r.xdr.SorobanCredentials.fromXDR(o.credentials().toXDR())).switch()===r.xdr.SorobanCredentialsType.sorobanCredentialsAddress()){e.n=1;break}return e.a(2,0);case 1:if(r.Address.fromScAddress(i.address().address()).toString()===f){e.n=2;break}return e.a(2,0);case 2:return s=null!=u?u:Promise.resolve,l=d,p=o,h=function(){var e=be(pe().m(function e(t){var n,r,o;return pe().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,s(t.toXDR("base64"),{address:f});case 1:return n=e.v,r=n.signedAuthEntry,o=n.error,c.handleWalletError(o),e.a(2,J.from(r,"base64"))}},e)}));return function(t){return e.apply(this,arguments)}}(),e.n=3,a;case 3:return e.n=4,l(p,h,e.v,c.options.networkPassphrase);case 4:m[n]=e.v;case 5:return e.a(2)}},e)}),g.s();case 6:if((b=g.n()).done){t.n=9;break}return t.d(ue(v()),7);case 7:if(0!==t.v){t.n=8;break}return t.a(3,8);case 8:t.n=6;break;case 9:t.n=11;break;case 10:t.p=10,w=t.v,g.e(w);case 11:return t.p=11,g.f(),t.f(11);case 12:return t.a(2)}},t,null,[[5,10,11,12]])}))),this.options=t,this.options.simulate=null===(n=this.options.simulate)||void 0===n||n,this.server=new o.Server(this.options.rpcUrl,{allowHttp:null!==(s=this.options.allowHttp)&&void 0!==s&&s})}return Se(e,[{key:"toJSON",value:function(){var e;return JSON.stringify({method:this.options.method,tx:null===(e=this.built)||void 0===e?void 0:e.toXDR(),simulationResult:{auth:this.simulationData.result.auth.map(function(e){return e.toXDR("base64")}),retval:this.simulationData.result.retval.toXDR("base64")},simulationTransactionData:this.simulationData.transactionData.toXDR("base64")})}},{key:"toXDR",value:function(){var e;if(!this.built)throw new Error("Transaction has not yet been simulated; call `AssembledTransaction.simulate` first.");return null===(e=this.built)||void 0===e?void 0:e.toEnvelope().toXDR("base64")}},{key:"handleWalletError",value:function(t){if(t){var n=t.message,r=t.code,o="".concat(n).concat(t.ext?" (".concat(t.ext.join(", "),")"):"");switch(r){case-1:throw new e.Errors.InternalWalletError(o);case-2:throw new e.Errors.ExternalServiceError(o);case-3:throw new e.Errors.InvalidClientRequest(o);case-4:throw new e.Errors.UserRejected(o);default:throw new Error("Unhandled error: ".concat(o))}}}},{key:"simulationData",get:function(){var t;if(this.simulationResult&&this.simulationTransactionData)return{result:this.simulationResult,transactionData:this.simulationTransactionData};var n=this.simulation;if(!n)throw new e.Errors.NotYetSimulated("Transaction has not yet been simulated");if(i.j.isSimulationError(n))throw new e.Errors.SimulationFailed('Transaction simulation failed: "'.concat(n.error,'"'));if(i.j.isSimulationRestore(n))throw new e.Errors.ExpiredState("You need to restore some contract state before you can invoke this method.\nYou can set `restore` to true in the method options in order to automatically restore the contract state when needed.");return this.simulationResult=null!==(t=n.result)&&void 0!==t?t:{auth:[],retval:r.xdr.ScVal.scvVoid()},this.simulationTransactionData=n.transactionData.build(),{result:this.simulationResult,transactionData:this.simulationTransactionData}}},{key:"result",get:function(){try{if(!this.simulationData.result)throw new Error("No simulation result!");return this.options.parseResultXdr(this.simulationData.result.retval)}catch(n){if("object"!==S(t=n)||null===t||!("toString"in t))throw n;var e=this.parseError(n.toString());if(e)return e;throw n}var t}},{key:"parseError",value:function(e){if(this.options.errorTypes){var t=e.match(C);if(t){var n=parseInt(t[1],10),r=this.options.errorTypes[n];if(r)return new d(r)}}}},{key:"send",value:(c=be(pe().m(function e(t){var n;return pe().w(function(e){for(;;)switch(e.n){case 0:if(this.signed){e.n=1;break}throw new Error("The transaction has not yet been signed. Run `sign` first, or use `signAndSend` instead.");case 1:return e.n=2,Z.init(this,t);case 2:return n=e.v,e.a(2,n)}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"isReadCall",get:function(){var e=this.simulationData.result.auth.length,t=this.simulationData.transactionData.resources().footprint().readWrite().length;return 0===e&&0===t}},{key:"restoreFootprint",value:(s=be(pe().m(function t(n,r){var o,i,a;return pe().w(function(t){for(;;)switch(t.n){case 0:if(this.options.signTransaction){t.n=1;break}throw new Error("For automatic restore to work you must provide a signTransaction function when initializing your Client");case 1:if(null==r){t.n=2;break}a=r,t.n=4;break;case 2:return t.n=3,j(this.options,this.server);case 3:a=t.v;case 4:return r=a,t.n=5,e.buildFootprintRestoreTransaction(ce({},this.options),n.transactionData,r,n.minResourceFee);case 5:return o=t.v,t.n=6,o.signAndSend();case 6:if((i=t.v).getTransactionResponse){t.n=7;break}throw new e.Errors.RestorationFailure("The attempt at automatic restore failed. \n".concat(JSON.stringify(i)));case 7:return t.a(2,i.getTransactionResponse)}},t,this)})),function(e,t){return s.apply(this,arguments)})}],[{key:"fromJSON",value:function(t,n){var o=n.tx,i=n.simulationResult,a=n.simulationTransactionData,s=new e(t);return s.built=r.TransactionBuilder.fromXDR(o,t.networkPassphrase),s.simulationResult={auth:i.auth.map(function(e){return r.xdr.SorobanAuthorizationEntry.fromXDR(e,"base64")}),retval:r.xdr.ScVal.fromXDR(i.retval,"base64")},s.simulationTransactionData=r.xdr.SorobanTransactionData.fromXDR(a,"base64"),s}},{key:"fromXDR",value:function(t,n,o){var i,a=r.xdr.TransactionEnvelope.fromXDR(n,"base64"),s=r.TransactionBuilder.fromXDR(a,t.networkPassphrase),c=s.operations[0];if(null==c||null===(i=c.func)||void 0===i||!i.value||"function"!=typeof c.func.value)throw new Error("Could not extract the method from the transaction envelope.");var u=c.func.value();if(null==u||!u.functionName)throw new Error("Could not extract the method name from the transaction envelope.");var l=u.functionName().toString("utf-8"),f=new e(ce(ce({},t),{},{method:l,parseResultXdr:function(e){return o.funcResToNative(l,e)}}));return f.built=s,f}},{key:"build",value:function(t){var n,o=new r.Contract(t.contractId);return e.buildWithOp(o.call.apply(o,[t.method].concat(he(null!==(n=t.args)&&void 0!==n?n:[]))),t)}},{key:"buildWithOp",value:(n=be(pe().m(function t(n,o){var i,a,s,c;return pe().w(function(t){for(;;)switch(t.n){case 0:return s=new e(o),t.n=1,j(o,s.server);case 1:if(c=t.v,s.raw=new r.TransactionBuilder(c,{fee:null!==(i=o.fee)&&void 0!==i?i:r.BASE_FEE,networkPassphrase:o.networkPassphrase}).setTimeout(null!==(a=o.timeoutInSeconds)&&void 0!==a?a:h).addOperation(n),!o.simulate){t.n=2;break}return t.n=2,s.simulate();case 2:return t.a(2,s)}},t)})),function(e,t){return n.apply(this,arguments)})},{key:"buildFootprintRestoreTransaction",value:(t=be(pe().m(function t(n,o,i,a){var s,c;return pe().w(function(t){for(;;)switch(t.n){case 0:return(c=new e(n)).raw=new r.TransactionBuilder(i,{fee:a,networkPassphrase:n.networkPassphrase}).setSorobanData(o instanceof r.SorobanDataBuilder?o.build():o).addOperation(r.Operation.restoreFootprint({})).setTimeout(null!==(s=n.timeoutInSeconds)&&void 0!==s?s:h),t.n=1,c.simulate({restore:!1});case 1:return t.a(2,c)}},t)})),function(e,n,r,o){return t.apply(this,arguments)})}]);var t,n,s,c}();xe(Ee,"Errors",{ExpiredState:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),RestorationFailure:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),NeedsMoreSignatures:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),NoSignatureNeeded:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),NoUnsignedNonInvokerAuthEntries:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),NoSigner:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),NotYetSimulated:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),FakeAccount:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),SimulationFailed:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),InternalWalletError:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),ExternalServiceError:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),InvalidClientRequest:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error)),UserRejected:function(e){function t(){return ve(this,t),ee(this,t,arguments)}return te(t,e),Se(t)}(ne(Error))});var Te=n(8287).Buffer;function Ae(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return Ce(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ce(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ce(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Ce(f,"constructor",u),Ce(u,"constructor",c),c.displayName="GeneratorFunction",Ce(u,o,"GeneratorFunction"),Ce(f),Ce(f,o,"Generator"),Ce(f,r,function(){return this}),Ce(f,"toString",function(){return"[object Generator]"}),(Ae=function(){return{w:i,m:p}})()}function Ce(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ce=function(e,t,n,r){function i(t,n){Ce(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ce(e,t,n,r)}function _e(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){_e(i,r,o,a,s,"next",e)}function s(e){_e(i,r,o,a,s,"throw",e)}a(void 0)})}}var Pe=function(e,t){return{signTransaction:(o=Oe(Ae().m(function n(o,i){var a;return Ae().w(function(n){for(;;)if(0===n.n)return(a=r.TransactionBuilder.fromXDR(o,(null==i?void 0:i.networkPassphrase)||t)).sign(e),n.a(2,{signedTxXdr:a.toXDR(),signerAddress:e.publicKey()})},n)})),function(e,t){return o.apply(this,arguments)}),signAuthEntry:(n=Oe(Ae().m(function t(n){var o;return Ae().w(function(t){for(;;)if(0===t.n)return o=e.sign((0,r.hash)(Te.from(n,"base64"))).toString("base64"),t.a(2,{signedAuthEntry:o,signerAddress:e.publicKey()})},t)})),function(e){return n.apply(this,arguments)})};var n,o},Re=n(8287).Buffer;function je(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return Ie(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Ie(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ie(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Ie(f,"constructor",u),Ie(u,"constructor",c),c.displayName="GeneratorFunction",Ie(u,o,"GeneratorFunction"),Ie(f),Ie(f,o,"Generator"),Ie(f,r,function(){return this}),Ie(f,"toString",function(){return"[object Generator]"}),(je=function(){return{w:i,m:p}})()}function Ie(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ie=function(e,t,n,r){function i(t,n){Ie(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ie(e,t,n,r)}function Ne(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Le(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e){return De="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},De(e)}function Ue(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,Fe(r.key),r)}}function Me(e,t,n){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}function Ve(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qe(e,t):void 0}}(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 qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ze(e){return/^\d+$/.test(e.name().toString())}var He={U32:{type:"integer",minimum:0,maximum:4294967295},I32:{type:"integer",minimum:-2147483648,maximum:2147483647},U64:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:20},I64:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:21},U128:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:39},I128:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:40},U256:{type:"string",pattern:"^([1-9][0-9]*|0)$",minLength:1,maxLength:78},I256:{type:"string",pattern:"^(-?[1-9][0-9]*|0)$",minLength:1,maxLength:79},Address:{type:"string",format:"address",description:"Address can be a public key or contract id"},ScString:{type:"string",description:"ScString is a string"},ScSymbol:{type:"string",description:"ScSymbol is a string"},DataUrl:{type:"string",pattern:"^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$"}};function We(e){var t;switch(e.switch().value){case r.xdr.ScSpecType.scSpecTypeVal().value:t="Val";break;case r.xdr.ScSpecType.scSpecTypeBool().value:return{type:"boolean"};case r.xdr.ScSpecType.scSpecTypeVoid().value:return{type:"null"};case r.xdr.ScSpecType.scSpecTypeError().value:t="Error";break;case r.xdr.ScSpecType.scSpecTypeU32().value:t="U32";break;case r.xdr.ScSpecType.scSpecTypeI32().value:t="I32";break;case r.xdr.ScSpecType.scSpecTypeU64().value:t="U64";break;case r.xdr.ScSpecType.scSpecTypeI64().value:t="I64";break;case r.xdr.ScSpecType.scSpecTypeTimepoint().value:throw new Error("Timepoint type not supported");case r.xdr.ScSpecType.scSpecTypeDuration().value:throw new Error("Duration not supported");case r.xdr.ScSpecType.scSpecTypeU128().value:t="U128";break;case r.xdr.ScSpecType.scSpecTypeI128().value:t="I128";break;case r.xdr.ScSpecType.scSpecTypeU256().value:t="U256";break;case r.xdr.ScSpecType.scSpecTypeI256().value:t="I256";break;case r.xdr.ScSpecType.scSpecTypeBytes().value:t="DataUrl";break;case r.xdr.ScSpecType.scSpecTypeString().value:t="ScString";break;case r.xdr.ScSpecType.scSpecTypeSymbol().value:t="ScSymbol";break;case r.xdr.ScSpecType.scSpecTypeAddress().value:t="Address";break;case r.xdr.ScSpecType.scSpecTypeOption().value:return We(e.option().valueType());case r.xdr.ScSpecType.scSpecTypeResult().value:break;case r.xdr.ScSpecType.scSpecTypeVec().value:return{type:"array",items:We(e.vec().elementType())};case r.xdr.ScSpecType.scSpecTypeMap().value:var n=e.map();return{type:"array",items:{type:"array",items:[We(n.keyType()),We(n.valueType())],minItems:2,maxItems:2}};case r.xdr.ScSpecType.scSpecTypeTuple().value:var o=e.tuple(),i=o.valueTypes().length,a=i;return{type:"array",items:o.valueTypes().map(We),minItems:i,maxItems:a};case r.xdr.ScSpecType.scSpecTypeBytesN().value:return{$ref:"#/definitions/DataUrl",maxLength:e.bytesN().n()};case r.xdr.ScSpecType.scSpecTypeUdt().value:t=e.udt().name().toString()}return{$ref:"#/definitions/".concat(t)}}function Ke(e){var t={},n=[];e.forEach(function(e){var o=e.type(),i=e.name().toString();t[i]=We(o),o.switch().value!==r.xdr.ScSpecType.scSpecTypeOption().value&&n.push(i)});var o={properties:t};return n.length>0&&(o.required=n),o}var $e=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Me(this,"entries",[]),Re.isBuffer(t))this.entries=R(t);else if("string"==typeof t)this.entries=R(Re.from(t,"base64"));else{if(0===t.length)throw new Error("Contract spec must have at least one entry");var n=t[0];this.entries="string"==typeof n?t.map(function(e){return r.xdr.ScSpecEntry.fromXDR(e,"base64")}):t}}return t=e,n=[{key:"funcs",value:function(){return this.entries.filter(function(e){return e.switch().value===r.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value}).map(function(e){return e.functionV0()})}},{key:"getFunc",value:function(e){var t=this.findEntry(e);if(t.switch().value!==r.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value)throw new Error("".concat(e," is not a function"));return t.functionV0()}},{key:"funcArgsToScVals",value:function(e,t){var n=this;return this.getFunc(e).inputs().map(function(e){return n.nativeToScVal(function(e,t){var n=t.name().toString(),r=Object.entries(e).find(function(e){return Ve(e,1)[0]===n});if(!r)throw new Error("Missing field ".concat(n));return r[1]}(t,e),e.type())})}},{key:"funcResToNative",value:function(e,t){var n="string"==typeof t?r.xdr.ScVal.fromXDR(t,"base64"):t,o=this.getFunc(e).outputs();if(0===o.length){var i=n.switch();if(i.value!==r.xdr.ScValType.scvVoid().value)throw new Error("Expected void, got ".concat(i.name));return null}if(o.length>1)throw new Error("Multiple outputs not supported");var a=o[0];return a.switch().value===r.xdr.ScSpecType.scSpecTypeResult().value?new p(this.scValToNative(n,a.result().okType())):this.scValToNative(n,a)}},{key:"findEntry",value:function(e){var t=this.entries.find(function(t){return t.value().name().toString()===e});if(!t)throw new Error("no such entry: ".concat(e));return t}},{key:"nativeToScVal",value:function(e,t){var n=this,o=t.switch(),i=o.value;if(o.value===r.xdr.ScSpecType.scSpecTypeUdt().value){var a=t.udt();return this.nativeToUdt(e,a.name().toString())}if(i===r.xdr.ScSpecType.scSpecTypeOption().value){var s=t.option();return void 0===e?r.xdr.ScVal.scvVoid():this.nativeToScVal(e,s.valueType())}switch(De(e)){case"object":var c,u,l;if(null===e){if(i===r.xdr.ScSpecType.scSpecTypeVoid().value)return r.xdr.ScVal.scvVoid();throw new TypeError("Type ".concat(t," was not void, but value was null"))}if(e instanceof r.xdr.ScVal)return e;if(e instanceof r.Address){if(t.switch().value!==r.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(t," was not address, but value was Address"));return e.toScVal()}if(e instanceof r.Contract){if(t.switch().value!==r.xdr.ScSpecType.scSpecTypeAddress().value)throw new TypeError("Type ".concat(t," was not address, but value was Address"));return e.address().toScVal()}if(e instanceof Uint8Array||Re.isBuffer(e)){var f=Uint8Array.from(e);switch(i){case r.xdr.ScSpecType.scSpecTypeBytesN().value:var p=t.bytesN();if(f.length!==p.n())throw new TypeError("expected ".concat(p.n()," bytes, but got ").concat(f.length));return r.xdr.ScVal.scvBytes(f);case r.xdr.ScSpecType.scSpecTypeBytes().value:return r.xdr.ScVal.scvBytes(f);default:throw new TypeError("invalid type (".concat(t,") specified for Bytes and BytesN"))}}if(Array.isArray(e))switch(i){case r.xdr.ScSpecType.scSpecTypeVec().value:var d=t.vec().elementType();return r.xdr.ScVal.scvVec(e.map(function(e){return n.nativeToScVal(e,d)}));case r.xdr.ScSpecType.scSpecTypeTuple().value:var h=t.tuple().valueTypes();if(e.length!==h.length)throw new TypeError("Tuple expects ".concat(h.length," values, but ").concat(e.length," were provided"));return r.xdr.ScVal.scvVec(e.map(function(e,t){return n.nativeToScVal(e,h[t])}));case r.xdr.ScSpecType.scSpecTypeMap().value:var y=t.map(),m=y.keyType(),g=y.valueType();return r.xdr.ScVal.scvMap(e.map(function(e){var t=n.nativeToScVal(e[0],m),o=n.nativeToScVal(e[1],g);return new r.xdr.ScMapEntry({key:t,val:o})}));default:throw new TypeError("Type ".concat(t," was not vec, but value was Array"))}if(e.constructor===Map){if(i!==r.xdr.ScSpecType.scSpecTypeMap().value)throw new TypeError("Type ".concat(t," was not map, but value was Map"));for(var b=t.map(),v=[],w=e.entries(),S=w.next();!S.done;){var x=Ve(S.value,2),k=x[0],E=x[1],T=this.nativeToScVal(k,b.keyType()),A=this.nativeToScVal(E,b.valueType());v.push(new r.xdr.ScMapEntry({key:T,val:A})),S=w.next()}return r.xdr.ScVal.scvMap(v)}if("Object"!==(null!==(c=null===(u=e.constructor)||void 0===u?void 0:u.name)&&void 0!==c?c:""))throw new TypeError("cannot interpret ".concat(null===(l=e.constructor)||void 0===l?void 0:l.name," value as ScVal (").concat(JSON.stringify(e),")"));throw new TypeError("Received object ".concat(e," did not match the provided type ").concat(t));case"number":case"bigint":switch(i){case r.xdr.ScSpecType.scSpecTypeU32().value:return r.xdr.ScVal.scvU32(e);case r.xdr.ScSpecType.scSpecTypeI32().value:return r.xdr.ScVal.scvI32(e);case r.xdr.ScSpecType.scSpecTypeU64().value:case r.xdr.ScSpecType.scSpecTypeI64().value:case r.xdr.ScSpecType.scSpecTypeU128().value:case r.xdr.ScSpecType.scSpecTypeI128().value:case r.xdr.ScSpecType.scSpecTypeU256().value:case r.xdr.ScSpecType.scSpecTypeI256().value:var C=o.name.substring(10).toLowerCase();return new r.XdrLargeInt(C,e).toScVal();default:throw new TypeError("invalid type (".concat(t,") specified for integer"))}case"string":return function(e,t){switch(t.value){case r.xdr.ScSpecType.scSpecTypeString().value:return r.xdr.ScVal.scvString(e);case r.xdr.ScSpecType.scSpecTypeSymbol().value:return r.xdr.ScVal.scvSymbol(e);case r.xdr.ScSpecType.scSpecTypeAddress().value:return r.Address.fromString(e).toScVal();case r.xdr.ScSpecType.scSpecTypeU64().value:return new r.XdrLargeInt("u64",e).toScVal();case r.xdr.ScSpecType.scSpecTypeI64().value:return new r.XdrLargeInt("i64",e).toScVal();case r.xdr.ScSpecType.scSpecTypeU128().value:return new r.XdrLargeInt("u128",e).toScVal();case r.xdr.ScSpecType.scSpecTypeI128().value:return new r.XdrLargeInt("i128",e).toScVal();case r.xdr.ScSpecType.scSpecTypeU256().value:return new r.XdrLargeInt("u256",e).toScVal();case r.xdr.ScSpecType.scSpecTypeI256().value:return new r.XdrLargeInt("i256",e).toScVal();case r.xdr.ScSpecType.scSpecTypeBytes().value:case r.xdr.ScSpecType.scSpecTypeBytesN().value:return r.xdr.ScVal.scvBytes(Re.from(e,"base64"));default:throw new TypeError("invalid type ".concat(t.name," specified for string value"))}}(e,o);case"boolean":if(i!==r.xdr.ScSpecType.scSpecTypeBool().value)throw TypeError("Type ".concat(t," was not bool, but value was bool"));return r.xdr.ScVal.scvBool(e);case"undefined":if(!t)return r.xdr.ScVal.scvVoid();switch(i){case r.xdr.ScSpecType.scSpecTypeVoid().value:case r.xdr.ScSpecType.scSpecTypeOption().value:return r.xdr.ScVal.scvVoid();default:throw new TypeError("Type ".concat(t," was not void, but value was undefined"))}case"function":return this.nativeToScVal(e(),t);default:throw new TypeError("failed to convert typeof ".concat(De(e)," (").concat(e,")"))}}},{key:"nativeToUdt",value:function(e,t){var n=this.findEntry(t);switch(n.switch()){case r.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():if("number"!=typeof e)throw new TypeError("expected number for enum ".concat(t,", but got ").concat(De(e)));return this.nativeToEnum(e,n.udtEnumV0());case r.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.nativeToStruct(e,n.udtStructV0());case r.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.nativeToUnion(e,n.udtUnionV0());default:throw new Error("failed to parse udt ".concat(t))}}},{key:"nativeToUnion",value:function(e,t){var n=this,o=e.tag,i=t.cases().find(function(e){return e.value().name().toString()===o});if(!i)throw new TypeError("no such enum entry: ".concat(o," in ").concat(t));var a=r.xdr.ScVal.scvSymbol(o);switch(i.switch()){case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0():return r.xdr.ScVal.scvVec([a]);case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0():var s=i.tupleCase().type();if(Array.isArray(e.values)){if(e.values.length!==s.length)throw new TypeError("union ".concat(t," expects ").concat(s.length," values, but got ").concat(e.values.length));var c=e.values.map(function(e,t){return n.nativeToScVal(e,s[t])});return c.unshift(a),r.xdr.ScVal.scvVec(c)}throw new Error("failed to parse union case ".concat(i," with ").concat(e));default:throw new Error("failed to parse union ".concat(t," with ").concat(e))}}},{key:"nativeToStruct",value:function(e,t){var n=this,o=t.fields();if(o.some(ze)){if(!o.every(ze))throw new Error("mixed numeric and non-numeric field names are not allowed");return r.xdr.ScVal.scvVec(o.map(function(t,r){return n.nativeToScVal(e[r],o[r].type())}))}return r.xdr.ScVal.scvMap(o.map(function(t){var o=t.name().toString();return new r.xdr.ScMapEntry({key:n.nativeToScVal(o,r.xdr.ScSpecTypeDef.scSpecTypeSymbol()),val:n.nativeToScVal(e[o],t.type())})}))}},{key:"nativeToEnum",value:function(e,t){if(t.cases().some(function(t){return t.value()===e}))return r.xdr.ScVal.scvU32(e);throw new TypeError("no such enum entry: ".concat(e," in ").concat(t))}},{key:"scValStrToNative",value:function(e,t){return this.scValToNative(r.xdr.ScVal.fromXDR(e,"base64"),t)}},{key:"scValToNative",value:function(e,t){var n=this,o=t.switch(),i=o.value;if(i===r.xdr.ScSpecType.scSpecTypeUdt().value)return this.scValUdtToNative(e,t.udt());switch(e.switch().value){case r.xdr.ScValType.scvVoid().value:return;case r.xdr.ScValType.scvU64().value:case r.xdr.ScValType.scvI64().value:case r.xdr.ScValType.scvU128().value:case r.xdr.ScValType.scvI128().value:case r.xdr.ScValType.scvU256().value:case r.xdr.ScValType.scvI256().value:return(0,r.scValToBigInt)(e);case r.xdr.ScValType.scvVec().value:if(i===r.xdr.ScSpecType.scSpecTypeVec().value){var a,s=t.vec();return(null!==(a=e.vec())&&void 0!==a?a:[]).map(function(e){return n.scValToNative(e,s.elementType())})}if(i===r.xdr.ScSpecType.scSpecTypeTuple().value){var c,u=t.tuple().valueTypes();return(null!==(c=e.vec())&&void 0!==c?c:[]).map(function(e,t){return n.scValToNative(e,u[t])})}throw new TypeError("Type ".concat(t," was not vec, but ").concat(e," is"));case r.xdr.ScValType.scvAddress().value:return r.Address.fromScVal(e).toString();case r.xdr.ScValType.scvMap().value:var l,f=null!==(l=e.map())&&void 0!==l?l:[];if(i===r.xdr.ScSpecType.scSpecTypeMap().value){var p=t.map(),d=p.keyType(),h=p.valueType();return f.map(function(e){return[n.scValToNative(e.key(),d),n.scValToNative(e.val(),h)]})}throw new TypeError("ScSpecType ".concat(o.name," was not map, but ").concat(JSON.stringify(e,null,2)," is"));case r.xdr.ScValType.scvBool().value:case r.xdr.ScValType.scvU32().value:case r.xdr.ScValType.scvI32().value:case r.xdr.ScValType.scvBytes().value:return e.value();case r.xdr.ScValType.scvString().value:case r.xdr.ScValType.scvSymbol().value:var y;if(i!==r.xdr.ScSpecType.scSpecTypeString().value&&i!==r.xdr.ScSpecType.scSpecTypeSymbol().value)throw new Error("ScSpecType ".concat(o.name," was not string or symbol, but ").concat(JSON.stringify(e,null,2)," is"));return null===(y=e.value())||void 0===y?void 0:y.toString();case r.xdr.ScValType.scvTimepoint().value:case r.xdr.ScValType.scvDuration().value:return(0,r.scValToBigInt)(r.xdr.ScVal.scvU64(e.u64()));default:throw new TypeError("failed to convert ".concat(JSON.stringify(e,null,2)," to native type from type ").concat(o.name))}}},{key:"scValUdtToNative",value:function(e,t){var n=this.findEntry(t.name().toString());switch(n.switch()){case r.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0():return this.enumToNative(e);case r.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0():return this.structToNative(e,n.udtStructV0());case r.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0():return this.unionToNative(e,n.udtUnionV0());default:throw new Error("failed to parse udt ".concat(t.name().toString(),": ").concat(n))}}},{key:"unionToNative",value:function(e,t){var n=this,o=e.vec();if(!o)throw new Error("".concat(JSON.stringify(e,null,2)," is not a vec"));if(0===o.length&&0!==t.cases.length)throw new Error("".concat(e," has length 0, but the there are at least one case in the union"));var i=o[0].sym().toString();if(o[0].switch().value!==r.xdr.ScValType.scvSymbol().value)throw new Error("{vec[0]} is not a symbol");var a=t.cases().find(function(e){return function(t){switch(t.switch().value){case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:return t.tupleCase().name().toString()===e;case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:return t.voidCase().name().toString()===e;default:return!1}}}(i));if(!a)throw new Error("failed to find entry ".concat(i," in union {udt.name().toString()}"));var s={tag:i};if(a.switch().value===r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value){var c=a.tupleCase().type().map(function(e,t){return n.scValToNative(o[t+1],e)});s.values=c}return s}},{key:"structToNative",value:function(e,t){var n,r,o=this,i={},a=t.fields();return a.some(ze)?null===(r=e.vec())||void 0===r?void 0:r.map(function(e,t){return o.scValToNative(e,a[t].type())}):(null===(n=e.map())||void 0===n||n.forEach(function(e,t){var n=a[t];i[n.name().toString()]=o.scValToNative(e.val(),n.type())}),i)}},{key:"enumToNative",value:function(e){if(e.switch().value!==r.xdr.ScValType.scvU32().value)throw new Error("Enum must have a u32 value");return e.u32()}},{key:"errorCases",value:function(){return this.entries.filter(function(e){return e.switch().value===r.xdr.ScSpecEntryKind.scSpecEntryUdtErrorEnumV0().value}).flatMap(function(e){return e.value().cases()})}},{key:"jsonSchema",value:function(e){var t={};this.entries.forEach(function(e){switch(e.switch().value){case r.xdr.ScSpecEntryKind.scSpecEntryUdtEnumV0().value:var n=e.udtEnumV0();t[n.name().toString()]=function(e){var t=e.doc().toString(),n=e.cases(),r=[];n.forEach(function(e){var t=e.name().toString(),n=e.doc().toString();r.push({description:n,title:t,enum:[e.value()],type:"number"})});var o={oneOf:r};return t.length>0&&(o.description=t),o}(n);break;case r.xdr.ScSpecEntryKind.scSpecEntryUdtStructV0().value:var o=e.udtStructV0();t[o.name().toString()]=function(e){var t=e.fields();if(t.some(ze)){if(!t.every(ze))throw new Error("mixed numeric and non-numeric field names are not allowed");return{type:"array",items:t.map(function(e,n){return We(t[n].type())}),minItems:t.length,maxItems:t.length}}var n=e.doc().toString(),r=Ke(t),o=r.properties,i=r.required;return o.additionalProperties=!1,{description:n,properties:o,required:i,type:"object"}}(o);break;case r.xdr.ScSpecEntryKind.scSpecEntryUdtUnionV0().value:var i=e.udtUnionV0();t[i.name().toString()]=function(e){var t=e.doc().toString(),n=e.cases(),o=[];n.forEach(function(e){switch(e.switch().value){case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseVoidV0().value:var t=e.voidCase().name().toString();o.push({type:"object",title:t,properties:{tag:t},additionalProperties:!1,required:["tag"]});break;case r.xdr.ScSpecUdtUnionCaseV0Kind.scSpecUdtUnionCaseTupleV0().value:var n=e.tupleCase(),i=n.name().toString();o.push({type:"object",title:i,properties:{tag:i,values:{type:"array",items:n.type().map(We)}},required:["tag","values"],additionalProperties:!1})}});var i={oneOf:o};return t.length>0&&(i.description=t),i}(i);break;case r.xdr.ScSpecEntryKind.scSpecEntryFunctionV0().value:var a=e.functionV0(),s=a.name().toString(),c=function(e){var t=Ke(e.inputs()),n=t.properties,o=t.required,i={additionalProperties:!1,properties:n,type:"object"};(null==o?void 0:o.length)>0&&(i.required=o);var a={properties:{args:i}},s=e.outputs(),c=s.length>0?We(s[0]):We(r.xdr.ScSpecTypeDef.scSpecTypeVoid()),u=e.doc().toString();return u.length>0&&(a.description=u),a.additionalProperties=!1,c.additionalProperties=!1,{input:a,output:c}}(a),u=c.input;t[s]=u;case r.xdr.ScSpecEntryKind.scSpecEntryUdtErrorEnumV0().value:}});var n={$schema:"http://json-schema.org/draft-07/schema#",definitions:Be(Be({},He),t)};return e&&(n.$ref="#/definitions/".concat(e)),n}}],o=[{key:"fromWasm",value:(i=je().m(function t(n){var r;return je().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,_(n);case 1:return r=t.v,t.a(2,new e(r))}},t)}),a=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function a(e){Ne(o,n,r,a,s,"next",e)}function s(e){Ne(o,n,r,a,s,"throw",e)}a(void 0)})},function(e){return a.apply(this,arguments)})}],n&&Ue(t.prototype,n),o&&Ue(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o,i,a}(),Xe=n(8287).Buffer;function Ge(e){return Ge="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},Ge(e)}var Qe=["method"],Ze=["wasmHash","salt","format","fee","timeoutInSeconds","simulate"];function Ye(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return Je(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Je(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Je(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Je(f,"constructor",u),Je(u,"constructor",c),c.displayName="GeneratorFunction",Je(u,o,"GeneratorFunction"),Je(f),Je(f,o,"Generator"),Je(f,r,function(){return this}),Je(f,"toString",function(){return"[object Generator]"}),(Ye=function(){return{w:i,m:p}})()}function Je(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Je=function(e,t,n,r){function i(t,n){Je(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Je(e,t,n,r)}function et(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 tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach(function(t){ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rt(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,it(r.key),r)}}function ot(e,t,n){return(t=it(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e){var t=function(e){if("object"!=Ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ge(t)?t:t+""}function at(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function st(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){at(i,r,o,a,s,"next",e)}function s(e){at(i,r,o,a,s,"throw",e)}a(void 0)})}}var ct="__constructor";function ut(e,t){return lt.apply(this,arguments)}function lt(){return lt=st(Ye().m(function e(t,n){var r,i,a,s,c,u,l=arguments;return Ye().w(function(e){for(;;)switch(e.n){case 0:if(r=l.length>2&&void 0!==l[2]?l[2]:"hex",n&&n.rpcUrl){e.n=1;break}throw new TypeError("options must contain rpcUrl");case 1:return i=n.rpcUrl,a=n.allowHttp,s={allowHttp:a},c=new o.Server(i,s),e.n=2,c.getContractWasmByHash(t,r);case 2:return u=e.v,e.a(2,$e.fromWasm(u))}},e)})),lt.apply(this,arguments)}var ft=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ot(this,"txFromJSON",function(e){var t=JSON.parse(e),n=t.method,o=nt(t,Qe);return Ee.fromJSON(tt(tt({},r.options),{},{method:n,parseResultXdr:function(e){return r.spec.funcResToNative(n,e)}}),o)}),ot(this,"txFromXDR",function(e){return Ee.fromXDR(r.options,e,r.spec)}),this.spec=t,this.options=n,this.spec.funcs().forEach(function(e){var o=e.name().toString();if(o!==ct){var i=function(e,r){return Ee.build(tt(tt(tt({method:o,args:e&&t.funcArgsToScVals(o,e)},n),r),{},{errorTypes:t.errorCases().reduce(function(e,t){return tt(tt({},e),{},ot({},t.value(),{message:t.doc().toString()}))},{}),parseResultXdr:function(e){return t.funcResToNative(o,e)}}))};r[o]=0===t.getFunc(o).inputs().length?function(e){return i(void 0,e)}:i}})}return t=e,n=[{key:"deploy",value:(c=st(Ye().m(function t(n,o){var i,a,s,c,u,l,f,p,d;return Ye().w(function(t){for(;;)switch(t.n){case 0:return i=o.wasmHash,a=o.salt,s=o.format,c=o.fee,u=o.timeoutInSeconds,l=o.simulate,f=nt(o,Ze),t.n=1,ut(i,f,s);case 1:return p=t.v,d=r.Operation.createCustomContract({address:new r.Address(o.address||o.publicKey),wasmHash:"string"==typeof i?Xe.from(i,null!=s?s:"hex"):i,salt:a,constructorArgs:n?p.funcArgsToScVals(ct,n):[]}),t.a(2,Ee.buildWithOp(d,tt(tt({fee:c,timeoutInSeconds:u,simulate:l},f),{},{contractId:"ignored",method:ct,parseResultXdr:function(t){return new e(p,tt(tt({},f),{},{contractId:r.Address.fromScVal(t).toString()}))}})))}},t)})),function(e,t){return c.apply(this,arguments)})},{key:"fromWasmHash",value:(s=st(Ye().m(function t(n,r){var i,a,s,c,u,l,f=arguments;return Ye().w(function(t){for(;;)switch(t.n){case 0:if(i=f.length>2&&void 0!==f[2]?f[2]:"hex",r&&r.rpcUrl){t.n=1;break}throw new TypeError("options must contain rpcUrl");case 1:return a=r.rpcUrl,s=r.allowHttp,c={allowHttp:s},u=new o.Server(a,c),t.n=2,u.getContractWasmByHash(n,i);case 2:return l=t.v,t.a(2,e.fromWasm(l,r))}},t)})),function(e,t){return s.apply(this,arguments)})},{key:"fromWasm",value:(a=st(Ye().m(function t(n,r){var o;return Ye().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,$e.fromWasm(n);case 1:return o=t.v,t.a(2,new e(o,r))}},t)})),function(e,t){return a.apply(this,arguments)})},{key:"from",value:(i=st(Ye().m(function t(n){var r,i,a,s,c,u;return Ye().w(function(t){for(;;)switch(t.n){case 0:if(n&&n.rpcUrl&&n.contractId){t.n=1;break}throw new TypeError("options must contain rpcUrl and contractId");case 1:return r=n.rpcUrl,i=n.contractId,a=n.allowHttp,s={allowHttp:a},c=new o.Server(r,s),t.n=2,c.getContractWasmByContractId(i);case 2:return u=t.v,t.a(2,e.fromWasm(u,n))}},t)})),function(e){return i.apply(this,arguments)})}],n&&rt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i,a,s,c}()},6549:e=>{e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{var r=n(453),o=n(3126),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},6578:e=>{e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6688:(e,t,n)=>{var r;function o(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function i(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(n.g.fetch)&&a(n.g.ReadableStream),t.writableStream=a(n.g.WritableStream),t.abortController=a(n.g.AbortController),t.arraybuffer=t.fetch||i("arraybuffer"),t.msstream=!t.fetch&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!o()&&a(o().overrideMimeType),r=null},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6708:(e,t,n)=>{function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=E,E.WritableState=k;var i,a={deprecate:n(4643)},s=n(345),c=n(8287).Buffer,u=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=n(5896),f=n(5291).getHighWaterMark,p=n(6048).F,d=p.ERR_INVALID_ARG_TYPE,h=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,v=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function x(){}function k(e,t,i){o=o||n(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(process.nextTick(o,r),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,S(e,r)):(o(r),e._writableState.errorEmitted=!0,S(e,r),P(e,t))}(e,n,r,t,o);else{var i=_(n)||e.destroyed;i||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),r?process.nextTick(A,e,n,i,o):A(e,n,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(e){var t=this instanceof(o=o||n(5382));if(!t&&!i.call(E,this))return new E(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function T(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),P(e,t)}function C(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,T(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,f=n.callback;if(T(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final(function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit("prefinish"),P(e,t)})}function P(e,t){var n=_(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(6698)(E,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===E&&e&&e._writableState instanceof k}})):i=function(e){return e instanceof this},E.prototype.pipe=function(){S(this,new m)},E.prototype.write=function(e,t,n){var r,o=this._writableState,i=!1,a=!o.objectMode&&(r=e,c.isBuffer(r)||r instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=x),o.ending?function(e,t){var n=new v;S(e,n),process.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var o;return null===n?o=new b:"string"==typeof n||t.objectMode||(o=new d("chunk",["string","Buffer"],n)),!o||(S(e,o),process.nextTick(r,o),!1)}(this,o,e,n))&&(o.pendingcb++,i=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n)),t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,r,o,i);return u}(this,o,a,e,t,n)),i},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new h("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=l.destroy,E.prototype._undestroy=l.undestroy,E.prototype._destroy=function(e,t){t(e)}},6743:(e,t,n)=>{var r=n(9353);e.exports=Function.prototype.bind||r},6866:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},6897:(e,t,n)=>{var r=n(453),o=n(41),i=n(592)(),a=n(5795),s=n(9675),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},6917:(e,t,n)=>{var r=n(8287).Buffer,o=n(6688),i=n(6698),a=n(8399),s=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,n,i){var s=this;if(a.Readable.call(s),s._mode=n,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){process.nextTick(function(){s.emit("close")})}),"fetch"===n){if(s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)}),o.writableStream){var c=new WritableStream({write:function(e){return i(!1),new Promise(function(t,n){s._destroyed?n():s.push(r.from(e))?t():s._resumeFetch=t})},close:function(){i(!0),s._destroyed||s.push(null)},abort:function(e){i(!0),s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(c).catch(function(e){i(!0),s._destroyed||s.emit("error",e)})}catch(e){}}var u=t.body.getReader();!function e(){u.read().then(function(t){s._destroyed||(i(t.done),t.done?s.push(null):(s.push(r.from(t.value)),e()))}).catch(function(e){i(!0),s._destroyed||s.emit("error",e)})}()}else if(s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===s.headers[n]&&(s.headers[n]=[]),s.headers[n].push(t[2])):void 0!==s.headers[n]?s.headers[n]+=", "+t[2]:s.headers[n]=t[2],s.rawHeaders.push(t[1],t[2])}}),s._charset="x-user-defined",!o.overrideMimeType){var l=s.rawHeaders["mime-type"];if(l){var f=l.match(/;\s*charset=([^;])(;|$)/);f&&(s._charset=f[1].toLowerCase())}s._charset||(s._charset="utf-8")}};i(c,a.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,o=t._xhr,i=null;switch(t._mode){case"text":if((i=o.responseText).length>t._pos){var a=i.substr(t._pos);if("x-user-defined"===t._charset){for(var c=r.alloc(a.length),u=0;u<a.length;u++)c[u]=255&a.charCodeAt(u);t.push(c)}else t.push(a,t._charset);t._pos=i.length}break;case"arraybuffer":if(o.readyState!==s.DONE||!o.response)break;i=o.response,t.push(r.from(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=o.response,o.readyState!==s.LOADING||!i)break;t.push(r.from(new Uint8Array(i)));break;case"ms-stream":if(i=o.response,o.readyState!==s.LOADING)break;var l=new n.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(r.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(i)}t._xhr.readyState===s.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},7007:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7119:e=>{e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{var r,o=n(3126),i=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},7244:(e,t,n)=>{var r=n(9092)(),o=n(6556)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},7510:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},7526:(e,t)=>{t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],c=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(u(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(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 c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(c(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7600:(e,t,n)=>{n.r(t),n.d(t,{Api:()=>{},FEDERATION_RESPONSE_MAX_SIZE:()=>v,Server:()=>w});var r=n(8950),o=n(4193),i=n.n(o),a=n(8732),s=n(5976),c=n(3898),u=n(9983);function l(e){return l="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},l(e)}function f(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return h(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(h(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,h(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,h(f,"constructor",u),h(u,"constructor",c),c.displayName="GeneratorFunction",h(u,o,"GeneratorFunction"),h(f),h(f,o,"Generator"),h(f,r,function(){return this}),h(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:p}})()}function h(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}h=function(e,t,n,r){function i(t,n){h(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},h(e,t,n,r)}function y(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,s,"next",e)}function s(e){y(i,r,o,a,s,"throw",e)}a(void 0)})}}function g(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,b(r.key),r)}}function b(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}var v=102400,w=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.serverURL=i()(t),this.domain=n;var o=void 0===r.allowHttp?a.T.isAllowHttp():r.allowHttp;if(this.timeout=void 0===r.timeout?a.T.getTimeout():r.timeout,"https"!==this.serverURL.protocol()&&!o)throw new Error("Cannot connect to insecure federation server")}return t=e,n=[{key:"resolveAddress",value:(w=m(d().m(function e(t){var n,r;return d().w(function(e){for(;;)switch(e.n){case 0:if(n=t,!(t.indexOf("*")<0)){e.n=2;break}if(this.domain){e.n=1;break}return e.a(2,Promise.reject(new Error("Unknown domain. Make sure `address` contains a domain (ex. `bob*stellar.org`) or pass `domain` parameter when instantiating the server object.")));case 1:n="".concat(t,"*").concat(this.domain);case 2:return r=this.serverURL.query({type:"name",q:n}),e.a(2,this._sendRequest(r))}},e,this)})),function(e){return w.apply(this,arguments)})},{key:"resolveAccountId",value:(b=m(d().m(function e(t){var n;return d().w(function(e){for(;;)if(0===e.n)return n=this.serverURL.query({type:"id",q:t}),e.a(2,this._sendRequest(n))},e,this)})),function(e){return b.apply(this,arguments)})},{key:"resolveTransactionId",value:(y=m(d().m(function e(t){var n;return d().w(function(e){for(;;)if(0===e.n)return n=this.serverURL.query({type:"txid",q:t}),e.a(2,this._sendRequest(n))},e,this)})),function(e){return y.apply(this,arguments)})},{key:"_sendRequest",value:(h=m(d().m(function e(t){var n;return d().w(function(e){for(;;)if(0===e.n)return n=this.timeout,e.a(2,u.ok.get(t.toString(),{maxContentLength:v,timeout:n}).then(function(e){if(void 0!==e.data.memo&&"string"!=typeof e.data.memo)throw new Error("memo value should be of type string");return e.data}).catch(function(e){if(e instanceof Error){if(e.message.match(/^maxContentLength size/))throw new Error("federation response exceeds allowed size of ".concat(v));return Promise.reject(e)}return Promise.reject(new s.nS("Server query failed. Server responded: ".concat(e.status," ").concat(e.statusText),e.data))}))},e,this)})),function(e){return h.apply(this,arguments)})}],o=[{key:"resolve",value:(p=m(d().m(function t(n){var o,i,a,s,c,u=arguments;return d().w(function(t){for(;;)switch(t.n){case 0:if(o=u.length>1&&void 0!==u[1]?u[1]:{},!(n.indexOf("*")<0)){t.n=2;break}if(r.StrKey.isValidEd25519PublicKey(n)){t.n=1;break}return t.a(2,Promise.reject(new Error("Invalid Account ID")));case 1:return t.a(2,Promise.resolve({account_id:n}));case 2:if(i=n.split("*"),a=f(i,2),s=a[1],2===i.length&&s){t.n=3;break}return t.a(2,Promise.reject(new Error("Invalid Stellar address")));case 3:return t.n=4,e.createForDomain(s,o);case 4:return c=t.v,t.a(2,c.resolveAddress(n))}},t)})),function(e){return p.apply(this,arguments)})},{key:"createForDomain",value:(l=m(d().m(function t(n){var r,o,i=arguments;return d().w(function(t){for(;;)switch(t.n){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},t.n=1,c.Resolver.resolve(n,r);case 1:if((o=t.v).FEDERATION_SERVER){t.n=2;break}return t.a(2,Promise.reject(new Error("stellar.toml does not contain FEDERATION_SERVER field")));case 2:return t.a(2,new e(o.FEDERATION_SERVER,n,r))}},t)})),function(e){return l.apply(this,arguments)})}],n&&g(t.prototype,n),o&&g(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o,l,p,h,y,b,w}()},7720:(e,t,n)=>{var r=n(4765),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:u}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",l=0;l<s.length;l+=c){for(var f=s.length>=c?s.slice(l,l+c):s,p=[],d=0;d<f.length;++d){var h=f.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?p[p.length]=f.charAt(d):h<128?p[p.length]=a[h]:h<2048?p[p.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?p[p.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&f.charCodeAt(d)),p[p.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}u+=p.join("")}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach(function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t},a)}}},7758:(e,t,n)=>{var r,o=n(6048).F,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var p=t.map(function(e,o){var i=o<t.length-1;return function(e,t,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var s=!1;e.on("close",function(){s=!0}),void 0===r&&(r=n(6238)),r(e,{readable:t,writable:o},function(e){if(e)return i(e);s=!0,i()});var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new a("pipe"))}}(e,i,o>0,function(e){l||(l=e),e&&p.forEach(c),i||(p.forEach(c),f(l))})});return t.reduce(u)}},8002:e=>{e.exports=Math.min},8068:e=>{e.exports=SyntaxError},8184:(e,t,n)=>{var r,o=n(6556),i=n(9721)(/^\s*(?:function)?\*/),a=n(9092)(),s=n(3628),c=o("Object.prototype.toString"),u=o("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!a)return"[object GeneratorFunction]"===c(e);if(!s)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},8242:(e,t,n)=>{n.r(t),n.d(t,{Api:()=>{}})},8287:(e,t,n)=>{const r=n(7526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(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 f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=s(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(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(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return d(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 c.from(r,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Q(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.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 l(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 f(e){return l(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(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,c.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return r?-1:K(e).length;t=(""+t).toLowerCase(),o=!0}}function m(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 P(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){let i,a=1,s=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Q(r))return a;e[n+a]=r}return a}function S(e,t,n,r){return X(K(t,e.length-n),e,n,r)}function x(e,t,n,r){return X(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 k(e,t,n,r){return X($(t),e,n,r)}function E(e,t,n,r){return X(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}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)}t.kMaxLength=a,c.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}}(),c.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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.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 o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(G(t,Uint8Array))o+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.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)g(this,t,t+1);return this},c.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)g(this,t,t+3),g(this,t+1,t+2);return this},c.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==l[e]){i=u[e],a=l[e];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Z[e[r]];return o}function R(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function j(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 I(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,o){q(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function L(e,t,n,r,o){q(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return t=+t,n>>>=0,i||B(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.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,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Y(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),c.prototype.readBigUInt64BE=Y(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Y(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(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)}),c.prototype.readBigInt64BE=Y(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(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)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(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},c.prototype.writeBigUInt64LE=Y(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Y(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(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},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(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},c.prototype.writeBigInt64LE=Y(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Y(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.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 o=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),o},c.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&&!c.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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const M={};function F(e,t,n){M[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 V(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 q(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,o,i)}function z(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=V(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=V(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function $(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Y(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},8399:(e,t,n)=>{(t=e.exports=n(5412)).Stream=t,t.Readable=t,t.Writable=n(6708),t.Duplex=n(5382),t.Transform=n(4610),t.PassThrough=n(3600),t.finished=n(6238),t.pipeline=n(7758)},8636:(e,t,n)=>{var r=n(920),o=n(7720),i=n(4765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},y=function e(t,n,i,a,s,u,f,p,y,m,g,b,v,w,S,x,k,E){for(var T,A=t,C=E,_=0,O=!1;void 0!==(C=C.get(h))&&!O;){var P=C.get(t);if(_+=1,void 0!==P){if(P===_)throw new RangeError("Cyclic object value");O=!0}void 0===C.get(h)&&(_=0)}if("function"==typeof m?A=m(n,A):A instanceof Date?A=v(A):"comma"===i&&c(A)&&(A=o.maybeMap(A,function(e){return e instanceof Date?v(e):e})),null===A){if(u)return y&&!x?y(n,d.encoder,k,"key",w):n;A=""}if("string"==typeof(T=A)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||o.isBuffer(A))return y?[S(x?n:y(n,d.encoder,k,"key",w))+"="+S(y(A,d.encoder,k,"value",w))]:[S(n)+"="+S(String(A))];var R,j=[];if(void 0===A)return j;if("comma"===i&&c(A))x&&y&&(A=o.maybeMap(A,y)),R=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(m))R=m;else{var I=Object.keys(A);R=g?I.sort(g):I}var N=p?String(n).replace(/\./g,"%2E"):String(n),L=a&&c(A)&&1===A.length?N+"[]":N;if(s&&c(A)&&0===A.length)return L+"[]";for(var B=0;B<R.length;++B){var D=R[B],U="object"==typeof D&&D&&void 0!==D.value?D.value:A[D];if(!f||null!==U){var M=b&&p?String(D).replace(/\./g,"%2E"):String(D),F=c(A)?"function"==typeof i?i(L,M):L:L+(b?"."+M:"["+M+"]");E.set(t,_);var V=r();V.set(h,E),l(j,e(U,F,i,a,s,u,f,p,"comma"===i&&x&&c(A)?null:y,m,g,b,v,w,S,x,k,V))}}return j};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],u=d.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):c(u.filter)&&(n=u.filter);var f=[];if("object"!=typeof o||null===o)return"";var p=s[u.arrayFormat],h="comma"===p&&u.commaRoundTrip;n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var m=r(),g=0;g<n.length;++g){var b=n[g],v=o[b];u.skipNulls&&null===v||l(f,y(v,b,p,h,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,m))}var w=f.join(u.delimiter),S=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},8648:e=>{e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8680:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(8950),o=n(4076),i=n(784);function a(e,t){if("innerTransaction"in e)return a(e.innerTransaction,t);if(!function(e){if(1!==e.operations.length)return!1;switch(e.operations[0].type){case"invokeHostFunction":case"extendFootprintTtl":case"restoreFootprint":return!0;default:return!1}}(e))throw new TypeError("unsupported transaction: must contain exactly one invokeHostFunction, extendFootprintTtl, or restoreFootprint operation");var n=(0,i.jr)(t);if(!o.j.isSimulationSuccess(n))throw new Error("simulation incorrect: ".concat(JSON.stringify(n)));var s=parseInt(e.fee)||0,c=parseInt(n.minResourceFee)||0,u=r.TransactionBuilder.cloneFrom(e,{fee:(s+c).toString(),sorobanData:n.transactionData.build(),networkPassphrase:e.networkPassphrase});if("invokeHostFunction"===e.operations[0].type){var l;u.clearOperations();var f=e.operations[0],p=null!==(l=f.auth)&&void 0!==l?l:[];u.addOperation(r.Operation.invokeHostFunction({source:f.source,func:f.func,auth:p.length>0?p:n.result.auth}))}return u}},8732:(e,t,n)=>{function r(e){return r="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},r(e)}function o(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,c(r.key),r)}}function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{T:()=>d});var u,l,f={allowHttp:!1,timeout:0},p=a({},f),d=(u=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},l=[{key:"setAllowHttp",value:function(e){p.allowHttp=e}},{key:"setTimeout",value:function(e){p.timeout=e}},{key:"isAllowHttp",value:function(){return p.allowHttp}},{key:"getTimeout",value:function(){return p.timeout}},{key:"setDefault",value:function(){p=a({},f)}}],l&&o(u,l),Object.defineProperty(u,"prototype",{writable:!1}),u)},8733:(e,t,n)=>{var r;n.r(t),n.d(t,{AccountResponse:()=>d,AxiosClient:()=>W,HorizonApi:()=>r,SERVER_TIME_MAP:()=>q,Server:()=>Cn,ServerApi:()=>i,default:()=>_n,getCurrentServerTime:()=>K}),function(e){var t=function(e){return e.constantProduct="constant_product",e}({});e.LiquidityPoolType=t;var n=function(e){return e.createAccount="create_account",e.payment="payment",e.pathPayment="path_payment_strict_receive",e.createPassiveOffer="create_passive_sell_offer",e.manageOffer="manage_sell_offer",e.setOptions="set_options",e.changeTrust="change_trust",e.allowTrust="allow_trust",e.accountMerge="account_merge",e.inflation="inflation",e.manageData="manage_data",e.bumpSequence="bump_sequence",e.manageBuyOffer="manage_buy_offer",e.pathPaymentStrictSend="path_payment_strict_send",e.createClaimableBalance="create_claimable_balance",e.claimClaimableBalance="claim_claimable_balance",e.beginSponsoringFutureReserves="begin_sponsoring_future_reserves",e.endSponsoringFutureReserves="end_sponsoring_future_reserves",e.revokeSponsorship="revoke_sponsorship",e.clawback="clawback",e.clawbackClaimableBalance="clawback_claimable_balance",e.setTrustLineFlags="set_trust_line_flags",e.liquidityPoolDeposit="liquidity_pool_deposit",e.liquidityPoolWithdraw="liquidity_pool_withdraw",e.invokeHostFunction="invoke_host_function",e.bumpFootprintExpiration="bump_footprint_expiration",e.restoreFootprint="restore_footprint",e}({});e.OperationResponseType=n;var r=function(e){return e[e.createAccount=0]="createAccount",e[e.payment=1]="payment",e[e.pathPayment=2]="pathPayment",e[e.createPassiveOffer=3]="createPassiveOffer",e[e.manageOffer=4]="manageOffer",e[e.setOptions=5]="setOptions",e[e.changeTrust=6]="changeTrust",e[e.allowTrust=7]="allowTrust",e[e.accountMerge=8]="accountMerge",e[e.inflation=9]="inflation",e[e.manageData=10]="manageData",e[e.bumpSequence=11]="bumpSequence",e[e.manageBuyOffer=12]="manageBuyOffer",e[e.pathPaymentStrictSend=13]="pathPaymentStrictSend",e[e.createClaimableBalance=14]="createClaimableBalance",e[e.claimClaimableBalance=15]="claimClaimableBalance",e[e.beginSponsoringFutureReserves=16]="beginSponsoringFutureReserves",e[e.endSponsoringFutureReserves=17]="endSponsoringFutureReserves",e[e.revokeSponsorship=18]="revokeSponsorship",e[e.clawback=19]="clawback",e[e.clawbackClaimableBalance=20]="clawbackClaimableBalance",e[e.setTrustLineFlags=21]="setTrustLineFlags",e[e.liquidityPoolDeposit=22]="liquidityPoolDeposit",e[e.liquidityPoolWithdraw=23]="liquidityPoolWithdraw",e[e.invokeHostFunction=24]="invokeHostFunction",e[e.bumpFootprintExpiration=25]="bumpFootprintExpiration",e[e.restoreFootprint=26]="restoreFootprint",e}({});e.OperationResponseTypeI=r;var o=function(e){return e.TX_FAILED="tx_failed",e.TX_BAD_SEQ="tx_bad_seq",e.TX_BAD_AUTH="tx_bad_auth",e.TX_BAD_AUTH_EXTRA="tx_bad_auth_extra",e.TX_FEE_BUMP_INNER_SUCCESS="tx_fee_bump_inner_success",e.TX_FEE_BUMP_INNER_FAILED="tx_fee_bump_inner_failed",e.TX_NOT_SUPPORTED="tx_not_supported",e.TX_SUCCESS="tx_success",e.TX_TOO_EARLY="tx_too_early",e.TX_TOO_LATE="tx_too_late",e.TX_MISSING_OPERATION="tx_missing_operation",e.TX_INSUFFICIENT_BALANCE="tx_insufficient_balance",e.TX_NO_SOURCE_ACCOUNT="tx_no_source_account",e.TX_INSUFFICIENT_FEE="tx_insufficient_fee",e.TX_INTERNAL_ERROR="tx_internal_error",e}({});e.TransactionFailedResultCodes=o}(r||(r={}));var o,i,a=((o={})[o.account_created=0]="account_created",o[o.account_removed=1]="account_removed",o[o.account_credited=2]="account_credited",o[o.account_debited=3]="account_debited",o[o.account_thresholds_updated=4]="account_thresholds_updated",o[o.account_home_domain_updated=5]="account_home_domain_updated",o[o.account_flags_updated=6]="account_flags_updated",o[o.account_inflation_destination_updated=7]="account_inflation_destination_updated",o[o.signer_created=10]="signer_created",o[o.signer_removed=11]="signer_removed",o[o.signer_updated=12]="signer_updated",o[o.trustline_created=20]="trustline_created",o[o.trustline_removed=21]="trustline_removed",o[o.trustline_updated=22]="trustline_updated",o[o.trustline_authorized=23]="trustline_authorized",o[o.trustline_deauthorized=24]="trustline_deauthorized",o[o.trustline_authorized_to_maintain_liabilities=25]="trustline_authorized_to_maintain_liabilities",o[o.trustline_flags_updated=26]="trustline_flags_updated",o[o.offer_created=30]="offer_created",o[o.offer_removed=31]="offer_removed",o[o.offer_updated=32]="offer_updated",o[o.trade=33]="trade",o[o.data_created=40]="data_created",o[o.data_removed=41]="data_removed",o[o.data_updated=42]="data_updated",o[o.sequence_bumped=43]="sequence_bumped",o[o.claimable_balance_created=50]="claimable_balance_created",o[o.claimable_balance_claimant_created=51]="claimable_balance_claimant_created",o[o.claimable_balance_claimed=52]="claimable_balance_claimed",o[o.account_sponsorship_created=60]="account_sponsorship_created",o[o.account_sponsorship_updated=61]="account_sponsorship_updated",o[o.account_sponsorship_removed=62]="account_sponsorship_removed",o[o.trustline_sponsorship_created=63]="trustline_sponsorship_created",o[o.trustline_sponsorship_updated=64]="trustline_sponsorship_updated",o[o.trustline_sponsorship_removed=65]="trustline_sponsorship_removed",o[o.data_sponsorship_created=66]="data_sponsorship_created",o[o.data_sponsorship_updated=67]="data_sponsorship_updated",o[o.data_sponsorship_removed=68]="data_sponsorship_removed",o[o.claimable_balance_sponsorship_created=69]="claimable_balance_sponsorship_created",o[o.claimable_balance_sponsorship_updated=70]="claimable_balance_sponsorship_updated",o[o.claimable_balance_sponsorship_removed=71]="claimable_balance_sponsorship_removed",o[o.signer_sponsorship_created=72]="signer_sponsorship_created",o[o.signer_sponsorship_updated=73]="signer_sponsorship_updated",o[o.signer_sponsorship_removed=74]="signer_sponsorship_removed",o[o.claimable_balance_clawed_back=80]="claimable_balance_clawed_back",o[o.liquidity_pool_deposited=90]="liquidity_pool_deposited",o[o.liquidity_pool_withdrew=91]="liquidity_pool_withdrew",o[o.liquidity_pool_trade=92]="liquidity_pool_trade",o[o.liquidity_pool_created=93]="liquidity_pool_created",o[o.liquidity_pool_removed=94]="liquidity_pool_removed",o[o.liquidity_pool_revoked=95]="liquidity_pool_revoked",o[o.contract_credited=96]="contract_credited",o[o.contract_debited=97]="contract_debited",o);!function(e){e.EffectType=a;var t=function(e){return e.all="all",e.liquidityPools="liquidity_pool",e.orderbook="orderbook",e}({});e.TradeType=t,r.OperationResponseType,r.OperationResponseTypeI}(i||(i={}));var s=n(8950);function c(e){return c="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},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}var f,p,d=(f=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._baseAccount=new s.Account(t.account_id,t.sequence),Object.entries(t).forEach(function(e){var t=function(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(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.")}()}(e,2),r=t[0],o=t[1];n[r]=o})},(p=[{key:"accountId",value:function(){return this._baseAccount.accountId()}},{key:"sequenceNumber",value:function(){return this._baseAccount.sequenceNumber()}},{key:"incrementSequenceNumber",value:function(){this._baseAccount.incrementSequenceNumber(),this.sequence=this._baseAccount.sequenceNumber()}}])&&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,l(r.key),r)}}(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f),h=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,y=Math.ceil,m=Math.floor,g="[BigNumber Error] ",b=g+"Number primitive has more than 15 significant digits: ",v=1e14,w=14,S=9007199254740991,x=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],k=1e7,E=1e9;function T(e){var t=0|e;return e>0||e===t?t:t-1}function A(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=w-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function C(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return c>u^n?1:-1;for(s=(c=o.length)<(u=i.length)?c:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return c==u?0:c>u^n?1:-1}function _(e,t,n,r){if(e<t||e>n||e!==m(e))throw Error(g+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function O(e){var t=e.c.length-1;return T(e.e/w)==t&&e.c[t]%2!=0}function P(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function R(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var j=function e(t){var n,r,o,i,a,s,c,u,l,f,p=H.prototype={constructor:H,toString:null,valueOf:null},d=new H(1),j=20,I=4,N=-7,L=21,B=-1e7,D=1e7,U=!1,M=1,F=0,V={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function H(e,t){var n,i,a,s,c,u,l,f,p=this;if(!(p instanceof H))return new H(e,t);if(null==t){if(e&&!0===e._isBigNumber)return p.s=e.s,void(!e.c||e.e>D?p.c=p.e=null:e.e<B?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice()));if((u="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,c=e;c>=10;c/=10,s++);return void(s>D?p.c=p.e=null:(p.e=s,p.c=[e]))}f=String(e)}else{if(!h.test(f=String(e)))return o(p,f,u);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(s=f.indexOf("."))>-1&&(f=f.replace(".","")),(c=f.search(/e/i))>0?(s<0&&(s=c),s+=+f.slice(c+1),f=f.substring(0,c)):s<0&&(s=f.length)}else{if(_(t,2,q.length,"Base"),10==t&&z)return X(p=new H(e),j+p.e+1,I);if(f=String(e),u="number"==typeof e){if(0*e!=0)return o(p,f,u,t);if(p.s=1/e<0?(f=f.slice(1),-1):1,H.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(b+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=q.slice(0,t),s=c=0,l=f.length;c<l;c++)if(n.indexOf(i=f.charAt(c))<0){if("."==i){if(c>s){s=l;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,c=-1,s=0;continue}return o(p,String(e),u,t)}u=!1,(s=(f=r(f,t,10,p.s)).indexOf("."))>-1?f=f.replace(".",""):s=f.length}for(c=0;48===f.charCodeAt(c);c++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(c,++l)){if(l-=c,u&&H.DEBUG&&l>15&&(e>S||e!==m(e)))throw Error(b+p.s*e);if((s=s-c-1)>D)p.c=p.e=null;else if(s<B)p.c=[p.e=0];else{if(p.e=s,p.c=[],c=(s+1)%w,s<0&&(c+=w),c<l){for(c&&p.c.push(+f.slice(0,c)),l-=w;c<l;)p.c.push(+f.slice(c,c+=w));c=w-(f=f.slice(c)).length}else c-=l;for(;c--;f+="0");p.c.push(+f)}}else p.c=[p.e=0]}function W(e,t,n,r){var o,i,a,s,c;if(null==n?n=I:_(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)c=A(e.c),c=1==r||2==r&&(a<=N||a>=L)?P(c,a):R(c,a,"0");else if(i=(e=X(new H(e),t,n)).e,s=(c=A(e.c)).length,1==r||2==r&&(t<=i||i<=N)){for(;s<t;c+="0",s++);c=P(c,i)}else if(t-=a+(2===r&&i>a),c=R(c,i,"0"),i+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&o?"-"+c:c}function K(e,t){for(var n,r,o=1,i=new H(e[0]);o<e.length;o++)(!(r=new H(e[o])).s||(n=C(i,r))===t||0===n&&i.s===t)&&(i=r);return i}function $(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*w-1)>D?e.c=e.e=null:n<B?e.c=[e.e=0]:(e.e=n,e.c=t),e}function X(e,t,n,r){var o,i,a,s,c,u,l,f=e.c,p=x;if(f){e:{for(o=1,s=f[0];s>=10;s/=10,o++);if((i=t-o)<0)i+=w,a=t,c=f[u=0],l=m(c/p[o-a-1]%10);else if((u=y((i+1)/w))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));c=l=0,o=1,a=(i%=w)-w+1}else{for(c=s=f[u],o=1;s>=10;s/=10,o++);l=(a=(i%=w)-w+o)<0?0:m(c/p[o-a-1]%10)}if(r=r||t<0||null!=f[u+1]||(a<0?c:c%p[o-a-1]),r=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(i>0?a>0?c/p[o-a]: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]=p[(w-t%w)%w],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=u,s=1,u--):(f.length=u+1,s=p[w-i],f[u]=a>0?m(c/p[o-a]%p[a])*s:0),r)for(;;){if(0==u){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==v&&(f[0]=1));break}if(f[u]+=s,f[u]!=v)break;f[u--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>D?e.c=e.e=null:e.e<B&&(e.c=[e.e=0])}return e}function G(e){var t,n=e.e;return null===n?e.toString():(t=A(e.c),t=n<=N||n>=L?P(t,n):R(t,n,"0"),e.s<0?"-"+t:t)}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(g+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(_(n=e[t],0,E,t),j=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(_(n=e[t],0,8,t),I=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(_(n[0],-E,0,t),_(n[1],0,E,t),N=n[0],L=n[1]):(_(n,-E,E,t),N=-(L=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)_(n[0],-E,-1,t),_(n[1],1,E,t),B=n[0],D=n[1];else{if(_(n,-E,E,t),!n)throw Error(g+t+" cannot be zero: "+n);B=-(D=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(g+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!n,Error(g+"crypto unavailable");U=n}else U=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(_(n=e[t],0,9,t),M=n),e.hasOwnProperty(t="POW_PRECISION")&&(_(n=e[t],0,E,t),F=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(g+t+" not an object: "+n);V=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(g+t+" invalid: "+n);z="0123456789"==n.slice(0,10),q=n}}return{DECIMAL_PLACES:j,ROUNDING_MODE:I,EXPONENTIAL_AT:[N,L],RANGE:[B,D],CRYPTO:U,MODULO_MODE:M,POW_PRECISION:F,FORMAT:V,ALPHABET:q}},H.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!H.DEBUG)return!0;var t,n,r=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&o>=-E&&o<=E&&o===m(o)){if(0===r[0]){if(0===o&&1===r.length)return!0;break e}if((t=(o+1)%w)<1&&(t+=w),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=v||n!==m(n))break e;if(0!==n)return!0}}}else if(null===r&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(g+"Invalid BigNumber: "+e)},H.maximum=H.max=function(){return K(arguments,-1)},H.minimum=H.min=function(){return K(arguments,1)},H.random=(i=9007199254740992,a=Math.random()*i&2097151?function(){return m(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,o,i,s=0,c=[],u=new H(d);if(null==e?e=j:_(e,0,E),o=y(e/w),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(i=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(i%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw U=!1,Error(g+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s<o;)(i=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(i%1e14),s+=7);s=o/7}if(!U)for(;s<o;)(i=a())<9e15&&(c[s++]=i%1e14);for(o=c[--s],e%=w,o&&e&&(i=x[w-e],c[s]=m(o/i)*i);0===c[s];c.pop(),s--);if(s<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=w);for(s=1,i=c[0];i>=10;i/=10,s++);s<w&&(r-=w-s)}return u.e=r,u.c=c,u}),H.sum=function(){for(var e=1,t=arguments,n=new H(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 o,i,a=[0],s=0,c=e.length;s<c;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var c,u,l,f,p,d,h,y,m=r.indexOf("."),g=j,b=I;for(m>=0&&(f=F,F=0,r=r.replace(".",""),d=(y=new H(o)).pow(r.length-m),F=f,y.c=t(R(A(d.c),d.e,"0"),10,i,e),y.e=y.c.length),l=f=(h=t(r,o,i,s?(c=q,e):(c=e,q))).length;0==h[--f];h.pop());if(!h[0])return c.charAt(0);if(m<0?--l:(d.c=h,d.e=l,d.s=a,h=(d=n(d,y,g,b,i)).c,p=d.r,l=d.e),m=h[u=l+g+1],f=i/2,p=p||u<0||null!=h[u+1],p=b<4?(null!=m||p)&&(0==b||b==(d.s<0?3:2)):m>f||m==f&&(4==b||p||6==b&&1&h[u-1]||b==(d.s<0?8:7)),u<1||!h[0])r=p?R(c.charAt(1),-g,c.charAt(0)):c.charAt(0);else{if(h.length=u,p)for(--i;++h[--u]>i;)h[u]=0,u||(++l,h=[1].concat(h));for(f=h.length;!h[--f];);for(m=0,r="";m<=f;r+=c.charAt(h[m++]));r=R(r,l,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,c=e.length,u=t%k,l=t/k|0;for(e=e.slice();c--;)s=((o=u*(i=e[c]%k)+(r=l*i+(a=e[c]/k|0)*u)%k*k+s)/n|0)+(r/k|0)+l*a,e[c]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,o,i,a,s){var c,u,l,f,p,d,h,y,g,b,S,x,k,E,A,C,_,O=r.s==o.s?1:-1,P=r.c,R=o.c;if(!(P&&P[0]&&R&&R[0]))return new H(r.s&&o.s&&(P?!R||P[0]!=R[0]:R)?P&&0==P[0]||!R?0*O:O/0:NaN);for(g=(y=new H(O)).c=[],O=i+(u=r.e-o.e)+1,s||(s=v,u=T(r.e/w)-T(o.e/w),O=O/w|0),l=0;R[l]==(P[l]||0);l++);if(R[l]>(P[l]||0)&&u--,O<0)g.push(1),f=!0;else{for(E=P.length,C=R.length,l=0,O+=2,(p=m(s/(R[0]+1)))>1&&(R=e(R,p,s),P=e(P,p,s),C=R.length,E=P.length),k=C,S=(b=P.slice(0,C)).length;S<C;b[S++]=0);_=R.slice(),_=[0].concat(_),A=R[0],R[1]>=s/2&&A++;do{if(p=0,(c=t(R,b,C,S))<0){if(x=b[0],C!=S&&(x=x*s+(b[1]||0)),(p=m(x/A))>1)for(p>=s&&(p=s-1),h=(d=e(R,p,s)).length,S=b.length;1==t(d,b,h,S);)p--,n(d,C<h?_:R,h,s),h=d.length,c=1;else 0==p&&(c=p=1),h=(d=R.slice()).length;if(h<S&&(d=[0].concat(d)),n(b,d,S,s),S=b.length,-1==c)for(;t(R,b,C,S)<1;)p++,n(b,C<S?_:R,S,s),S=b.length}else 0===c&&(p++,b=[0]);g[l++]=p,b[0]?b[S++]=P[k]||0:(b=[P[k]],S=1)}while((k++<E||null!=b[0])&&O--);f=null!=b[0],g[0]||g.splice(0,1)}if(s==v){for(l=1,O=g[0];O>=10;O/=10,l++);X(y,i+(y.e=l+u*w-1)+1,a,f)}else y.e=u,y.r=+f;return y}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,u=/^\.([^.]+)$/,l=/^-?(Infinity|NaN)$/,f=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,n,r){var o,i=n?t:t.replace(f,"");if(l.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(s,function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t}),r&&(o=r,i=i.replace(c,"$1").replace(u,"0.$1")),t!=i))return new H(i,o);if(H.DEBUG)throw Error(g+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},p.absoluteValue=p.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},p.comparedTo=function(e,t){return C(this,new H(e,t))},p.decimalPlaces=p.dp=function(e,t){var n,r,o,i=this;if(null!=e)return _(e,0,E),null==t?t=I:_(t,0,8),X(new H(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((o=n.length-1)-T(this.e/w))*w,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},p.dividedBy=p.div=function(e,t){return n(this,new H(e,t),j,I)},p.dividedToIntegerBy=p.idiv=function(e,t){return n(this,new H(e,t),0,1)},p.exponentiatedBy=p.pow=function(e,t){var n,r,o,i,a,s,c,u,l=this;if((e=new H(e)).c&&!e.isInteger())throw Error(g+"Exponent not an integer: "+G(e));if(null!=t&&(t=new H(t)),a=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return u=new H(Math.pow(+G(l),a?e.s*(2-O(e)):+G(e))),t?u.mod(t):u;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new H(NaN);(r=!s&&l.isInteger()&&t.isInteger())&&(l=l.mod(t))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||a&&l.c[1]>=24e7:l.c[0]<8e13||a&&l.c[0]<=9999975e7)))return i=l.s<0&&O(e)?-0:0,l.e>-1&&(i=1/i),new H(s?1/i:i);F&&(i=y(F/w+2))}for(a?(n=new H(.5),s&&(e.s=1),c=O(e)):c=(o=Math.abs(+G(e)))%2,u=new H(d);;){if(c){if(!(u=u.times(l)).c)break;i?u.c.length>i&&(u.c.length=i):r&&(u=u.mod(t))}if(o){if(0===(o=m(o/2)))break;c=o%2}else if(X(e=e.times(n),e.e+1,1),e.e>14)c=O(e);else{if(0===(o=+G(e)))break;c=o%2}l=l.times(l),i?l.c&&l.c.length>i&&(l.c.length=i):r&&(l=l.mod(t))}return r?u:(s&&(u=d.div(u)),t?u.mod(t):i?X(u,F,I,void 0):u)},p.integerValue=function(e){var t=new H(this);return null==e?e=I:_(e,0,8),X(t,t.e+1,e)},p.isEqualTo=p.eq=function(e,t){return 0===C(this,new H(e,t))},p.isFinite=function(){return!!this.c},p.isGreaterThan=p.gt=function(e,t){return C(this,new H(e,t))>0},p.isGreaterThanOrEqualTo=p.gte=function(e,t){return 1===(t=C(this,new H(e,t)))||0===t},p.isInteger=function(){return!!this.c&&T(this.e/w)>this.c.length-2},p.isLessThan=p.lt=function(e,t){return C(this,new H(e,t))<0},p.isLessThanOrEqualTo=p.lte=function(e,t){return-1===(t=C(this,new H(e,t)))||0===t},p.isNaN=function(){return!this.s},p.isNegative=function(){return this.s<0},p.isPositive=function(){return this.s>0},p.isZero=function(){return!!this.c&&0==this.c[0]},p.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new H(e,t)).s,!s||!t)return new H(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/w,u=e.e/w,l=a.c,f=e.c;if(!c||!u){if(!l||!f)return l?(e.s=-t,e):new H(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new H(l[0]?a:3==I?-0:0)}if(c=T(c),u=T(u),l=l.slice(),s=c-u){for((i=s<0)?(s=-s,o=l):(u=c,o=f),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=l.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(l[t]!=f[t]){i=l[t]<f[t];break}if(i&&(o=l,l=f,f=o,e.s=-e.s),(t=(r=f.length)-(n=l.length))>0)for(;t--;l[n++]=0);for(t=v-1;r>s;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=v}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--u);return l[0]?$(e,l,u):(e.s=3==I?-1:1,e.c=[e.e=0],e)},p.modulo=p.mod=function(e,t){var r,o,i=this;return e=new H(e,t),!i.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||i.c&&!i.c[0]?new H(i):(9==M?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,M),(e=i.minus(r.times(e))).c[0]||1!=M||(e.s=i.s),e)},p.multipliedBy=p.times=function(e,t){var n,r,o,i,a,s,c,u,l,f,p,d,h,y,m,g=this,b=g.c,S=(e=new H(e,t)).c;if(!(b&&S&&b[0]&&S[0]))return!g.s||!e.s||b&&!b[0]&&!S||S&&!S[0]&&!b?e.c=e.e=e.s=null:(e.s*=g.s,b&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=T(g.e/w)+T(e.e/w),e.s*=g.s,(c=b.length)<(f=S.length)&&(h=b,b=S,S=h,o=c,c=f,f=o),o=c+f,h=[];o--;h.push(0));for(y=v,m=k,o=f;--o>=0;){for(n=0,p=S[o]%m,d=S[o]/m|0,i=o+(a=c);i>o;)n=((u=p*(u=b[--a]%m)+(s=d*u+(l=b[a]/m|0)*p)%m*m+h[i]+n)/y|0)+(s/m|0)+d*l,h[i--]=u%y;h[i]=n}return n?++r:h.splice(0,1),$(e,h,r)},p.negated=function(){var e=new H(this);return e.s=-e.s||null,e},p.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new H(e,t)).s,!o||!t)return new H(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/w,a=e.e/w,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new H(o/0);if(!s[0]||!c[0])return c[0]?e:new H(s[0]?r:0*o)}if(i=T(i),a=T(a),s=s.slice(),o=i-a){for(o>0?(a=i,n=c):(o=-o,n=s),n.reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/v|0,s[t]=v===s[t]?0:s[t]%v;return o&&(s=[o].concat(s),++a),$(e,s,a)},p.precision=p.sd=function(e,t){var n,r,o,i=this;if(null!=e&&e!==!!e)return _(e,1,E),null==t?t=I:_(t,0,8),X(new H(i),e,t);if(!(n=i.c))return null;if(r=(o=n.length-1)*w+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},p.shiftedBy=function(e){return _(e,-9007199254740991,S),this.times("1e"+e)},p.squareRoot=p.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,c=a.s,u=a.e,l=j+4,f=new H("0.5");if(1!==c||!s||!s[0])return new H(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+G(a)))||c==1/0?(((t=A(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=T((u+1)/2)-(u<0||u%2),r=new H(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new H(c+""),r.c[0])for((c=(u=r.e)+l)<3&&(c=0);;)if(i=r,r=f.times(i.plus(n(a,i,l,1))),A(i.c).slice(0,c)===(t=A(r.c)).slice(0,c)){if(r.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(X(r,r.e+j+2,1),e=!r.times(r).eq(a));break}if(!o&&(X(i,i.e+j+2,0),i.times(i).eq(a))){r=i;break}l+=4,c+=4,o=1}return X(r,r.e+j+1,I,e)},p.toExponential=function(e,t){return null!=e&&(_(e,0,E),e++),W(this,e,t,1)},p.toFixed=function(e,t){return null!=e&&(_(e,0,E),e=e+this.e+1),W(this,e,t)},p.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=V;else if("object"!=typeof n)throw Error(g+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var i,a=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",l=a[0],f=a[1],p=o.s<0,d=p?l.slice(1):l,h=d.length;if(c&&(i=s,s=c,c=i,h-=i),s>0&&h>0){for(i=h%s||s,l=d.substr(0,i);i<h;i+=s)l+=u+d.substr(i,s);c>0&&(l+=u+d.slice(i)),p&&(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||"")},p.toFraction=function(e){var t,r,o,i,a,s,c,u,l,f,p,h,y=this,m=y.c;if(null!=e&&(!(c=new H(e)).isInteger()&&(c.c||1!==c.s)||c.lt(d)))throw Error(g+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+G(c));if(!m)return new H(y);for(t=new H(d),l=r=new H(d),o=u=new H(d),h=A(m),a=t.e=h.length-y.e-1,t.c[0]=x[(s=a%w)<0?w+s:s],e=!e||c.comparedTo(t)>0?a>0?t:l:c,s=D,D=1/0,c=new H(h),u.c[0]=0;f=n(c,t,0,1),1!=(i=r.plus(f.times(o))).comparedTo(e);)r=o,o=i,l=u.plus(f.times(i=l)),u=i,t=c.minus(f.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),u=u.plus(i.times(l)),r=r.plus(i.times(o)),u.s=l.s=y.s,p=n(l,o,a*=2,I).minus(y).abs().comparedTo(n(u,r,a,I).minus(y).abs())<1?[l,o]:[u,r],D=s,p},p.toNumber=function(){return+G(this)},p.toPrecision=function(e,t){return null!=e&&_(e,1,E),W(this,e,t,2)},p.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=N||i>=L?P(A(n.c),i):R(A(n.c),i,"0"):10===e&&z?t=R(A((n=X(new H(n),j+i+1,I)).c),n.e,"0"):(_(e,2,q.length,"Base"),t=r(R(A(n.c),i,"0"),10,e,o,!0)),o<0&&n.c[0]&&(t="-"+t)),t},p.valueOf=p.toJSON=function(){return G(this)},p._isBigNumber=!0,p[Symbol.toStringTag]="BigNumber",p[Symbol.for("nodejs.util.inspect.custom")]=p.valueOf,null!=t&&H.set(t),H}();const I=j;var N=n(4193),L=n.n(N),B=n(9127),D=n.n(B),U=n(5976),M=n(9983);function F(e){return F="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},F(e)}var V="14.1.1",q={},z=(0,M.vt)({headers:{"X-Client-Name":"js-stellar-sdk","X-Client-Version":V}});function H(e){return Math.floor(e/1e3)}z.interceptors.response.use(function(e){var t=L()(e.config.url).hostname(),n=0;if(e.headers instanceof Headers){var r=e.headers.get("date");r&&(n=H(Date.parse(r)))}else if("object"===F(e.headers)&&"date"in e.headers){var o=e.headers;"string"==typeof o.date&&(n=H(Date.parse(o.date)))}var i=H((new Date).getTime());return Number.isNaN(n)||(q[t]={serverTime:n,localTimeRecorded:i}),e});const W=z;function K(e){var t=q[e];if(!t||!t.localTimeRecorded||!t.serverTime)return null;var n=t.serverTime,r=t.localTimeRecorded,o=H((new Date).getTime());return o-r>300?null:o-r+n}function $(e){return $="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 X(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return G(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(G(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,G(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,G(f,"constructor",u),G(u,"constructor",c),c.displayName="GeneratorFunction",G(u,o,"GeneratorFunction"),G(f),G(f,o,"Generator"),G(f,r,function(){return this}),G(f,"toString",function(){return"[object Generator]"}),(X=function(){return{w:i,m:p}})()}function G(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G=function(e,t,n,r){function i(t,n){G(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},G(e,t,n,r)}function Q(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Z(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Q(i,r,o,a,s,"next",e)}function s(e){Q(i,r,o,a,s,"throw",e)}a(void 0)})}}function Y(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,J(r.key),r)}}function J(e){var t=function(e){if("object"!=$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(t)?t:t+""}var ee,te,ne,re,oe=["transaction"],ie=n.g;ee=null!==(te=null!==(ne=ie.EventSource)&&void 0!==ne?ne:null===(re=ie.window)||void 0===re?void 0:re.EventSource)&&void 0!==te?te:n(1731);var ae,se,ce=function(e,t){return t&&Y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t.clone(),this.filter=[],this.originalSegments=this.url.segment()||[],this.neighborRoot=n},[{key:"call",value:function(){var e=this;return this.checkFilter(),this._sendNormalRequest(this.url).then(function(t){return e._parseResponse(t)})}},{key:"stream",value:function(){var e,t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===ee)throw new Error("Streaming requires eventsource to be enabled. If you need this functionality, compile with USE_EVENTSOURCE=true.");this.checkFilter(),this.url.setQuery("X-Client-Name","js-stellar-sdk"),this.url.setQuery("X-Client-Version",V);var o=function(){t=setTimeout(function(){var t;null===(t=e)||void 0===t||t.close(),e=i()},r.reconnectTimeout||15e3)},i=function(){try{e=new ee(n.url.toString())}catch(e){r.onerror&&r.onerror(e)}if(o(),!e)return e;var a=!1,s=function(){a||(clearTimeout(t),e.close(),i(),a=!0)},c=function(e){if("close"!==e.type){var i=e.data?n._parseRecord(JSON.parse(e.data)):e;i.paging_token&&n.url.setQuery("cursor",i.paging_token),clearTimeout(t),o(),void 0!==r.onmessage&&r.onmessage(i)}else s()},u=function(e){r.onerror&&r.onerror(e)};return e.addEventListener?(e.addEventListener("message",c.bind(n)),e.addEventListener("error",u.bind(n)),e.addEventListener("close",s.bind(n))):(e.onmessage=c.bind(n),e.onerror=u.bind(n)),e};return i(),function(){var n;clearTimeout(t),null===(n=e)||void 0===n||n.close()}}},{key:"cursor",value:function(e){return this.url.setQuery("cursor",e),this}},{key:"limit",value:function(e){return this.url.setQuery("limit",e.toString()),this}},{key:"order",value:function(e){return this.url.setQuery("order",e),this}},{key:"join",value:function(e){return this.url.setQuery("join",e),this}},{key:"forEndpoint",value:function(e,t){if(""===this.neighborRoot)throw new Error("Invalid usage: neighborRoot not set in constructor");return this.filter.push([e,t,this.neighborRoot]),this}},{key:"checkFilter",value:function(){if(this.filter.length>=2)throw new U.v7("Too many filters specified",this.filter);if(1===this.filter.length){var e=this.originalSegments.concat(this.filter[0]);this.url.segment(e)}}},{key:"_requestFnForLink",value:function(e){var t=this;return Z(X().m(function n(){var r,o,i,a,s=arguments;return X().w(function(n){for(;;)switch(n.n){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},e.templated?(i=D()(e.href),o=L()(i.expand(r))):o=L()(e.href),n.n=1,t._sendNormalRequest(o);case 1:return a=n.v,n.a(2,t._parseResponse(a))}},n)}))}},{key:"_parseRecord",value:function(e){var t=this;return e._links?(Object.keys(e._links).forEach(function(n){var r=e._links[n],o=!1;if(void 0!==e[n]&&(e["".concat(n,"_attr")]=e[n],o=!0),o&&oe.indexOf(n)>=0){var i=t._parseRecord(e[n]);e[n]=Z(X().m(function e(){return X().w(function(e){for(;;)if(0===e.n)return e.a(2,i)},e)}))}else e[n]=t._requestFnForLink(r)}),e):e}},{key:"_sendNormalRequest",value:(se=Z(X().m(function e(t){var n;return X().w(function(e){for(;;)if(0===e.n)return""===(n=t).authority()&&(n=n.authority(this.url.authority())),""===n.protocol()&&(n=n.protocol(this.url.protocol())),e.a(2,z.get(n.toString()).then(function(e){return e.data}).catch(this._handleNetworkError))},e,this)})),function(e){return se.apply(this,arguments)})},{key:"_parseResponse",value:function(e){return e._embedded&&e._embedded.records?this._toCollectionPage(e):this._parseRecord(e)}},{key:"_toCollectionPage",value:function(e){for(var t,n,r=this,o=0;o<e._embedded.records.length;o+=1)e._embedded.records[o]=this._parseRecord(e._embedded.records[o]);return{records:e._embedded.records,next:(n=Z(X().m(function t(){var n;return X().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r._sendNormalRequest(L()(e._links.next.href));case 1:return n=t.v,t.a(2,r._toCollectionPage(n))}},t)})),function(){return n.apply(this,arguments)}),prev:(t=Z(X().m(function t(){var n;return X().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r._sendNormalRequest(L()(e._links.prev.href));case 1:return n=t.v,t.a(2,r._toCollectionPage(n))}},t)})),function(){return t.apply(this,arguments)})}}},{key:"_handleNetworkError",value:(ae=Z(X().m(function e(t){var n,r,o;return X().w(function(e){for(;;)switch(e.n){case 0:if(!t.response||!t.response.status){e.n=4;break}o=t.response.status,e.n=404===o?1:2;break;case 1:return e.a(2,Promise.reject(new U.m_(null!==(n=t.response.statusText)&&void 0!==n?n:"Not Found",t.response.data)));case 2:return e.a(2,Promise.reject(new U.Dr(null!==(r=t.response.statusText)&&void 0!==r?r:"Unknown",t.response.data)));case 3:e.n=5;break;case 4:return e.a(2,Promise.reject(new Error(t.message)));case 5:return e.a(2)}},e)})),function(e){return ae.apply(this,arguments)})}]),ue=n(8732);function le(e){return le="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},le(e)}function fe(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,pe(r.key),r)}}function pe(e){var t=function(e){if("object"!=le(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}function de(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(de=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}var me=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=he(t),function(e,t){if(t&&("object"==le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,de()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("accounts"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(t,e),function(e,t){return t&&fe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"accountId",value:function(e){var t=new ce(this.url.clone());return t.filter.push([e]),t}},{key:"forSigner",value:function(e){return this.url.setQuery("signer",e),this}},{key:"forAsset",value:function(e){return this.url.setQuery("asset","".concat(e)),this}},{key:"sponsor",value:function(e){return this.url.setQuery("sponsor",e),this}},{key:"forLiquidityPool",value:function(e){return this.url.setQuery("liquidity_pool",e),this}}])}(ce);function ge(e){return ge="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},ge(e)}function be(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,ve(r.key),r)}}function ve(e){var t=function(e){if("object"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(we=function(){return!!e})()}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}var ke=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Se(t),function(e,t){if(t&&("object"==ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,we()?Reflect.construct(t,n||[],Se(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("assets"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(t,e),function(e,t){return t&&be(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"forCode",value:function(e){return this.url.setQuery("asset_code",e),this}},{key:"forIssuer",value:function(e){return this.url.setQuery("asset_issuer",e),this}}])}(ce);function Ee(e){return Ee="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},Ee(e)}function Te(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,Ae(r.key),r)}}function Ae(e){var t=function(e){if("object"!=Ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ce=function(){return!!e})()}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function Oe(e,t){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oe(e,t)}var Pe=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=_e(t),function(e,t){if(t&&("object"==Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ce()?Reflect.construct(t,n||[],_e(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("claimable_balances"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}(t,e),function(e,t){return t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"claimableBalance",value:function(e){var t=new ce(this.url.clone());return t.filter.push([e]),t}},{key:"sponsor",value:function(e){return this.url.setQuery("sponsor",e),this}},{key:"claimant",value:function(e){return this.url.setQuery("claimant",e),this}},{key:"asset",value:function(e){return this.url.setQuery("asset",e.toString()),this}}])}(ce);function Re(e){return Re="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},Re(e)}function je(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,Ie(r.key),r)}}function Ie(e){var t=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}function Ne(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ne=function(){return!!e})()}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}var De=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Le(t),function(e,t){if(t&&("object"==Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ne()?Reflect.construct(t,n||[],Le(e).constructor):t.apply(e,n))}(this,t,[e,"effects"])).url.segment("effects"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}(t,e),function(e,t){return t&&je(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"forLedger",value:function(e){return this.forEndpoint("ledgers",e.toString())}},{key:"forTransaction",value:function(e){return this.forEndpoint("transactions",e)}},{key:"forOperation",value:function(e){return this.forEndpoint("operations",e)}},{key:"forLiquidityPool",value:function(e){return this.forEndpoint("liquidity_pools",e)}}])}(ce);function Ue(e){return Ue="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},Ue(e)}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Me=function(){return!!e})()}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}var qe=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Fe(t),function(e,t){if(t&&("object"==Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Me()?Reflect.construct(t,n||[],Fe(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("friendbot"),r.url.setQuery("addr",n),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ce);function ze(e){return ze="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},ze(e)}function He(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,We(r.key),r)}}function We(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ke=function(){return!!e})()}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}function Xe(e,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xe(e,t)}var Ge=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=$e(t),function(e,t){if(t&&("object"==ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ke()?Reflect.construct(t,n||[],$e(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("ledgers"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(t,e),function(e,t){return t&&He(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"ledger",value:function(e){return this.filter.push(["ledgers",e.toString()]),this}}])}(ce);function Qe(e){return Qe="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},Qe(e)}function Ze(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,Ye(r.key),r)}}function Ye(e){var t=function(e){if("object"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}function Je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Je=function(){return!!e})()}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},et(e)}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}var nt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=et(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Je()?Reflect.construct(t,n||[],et(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("liquidity_pools"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(t,e),function(e,t){return t&&Ze(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"forAssets",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(function(e){return e.toString()}).join(",");return this.url.setQuery("reserves",r),this}},{key:"forAccount",value:function(e){return this.url.setQuery("account",e),this}},{key:"liquidityPoolId",value:function(e){if(!e.match(/[a-fA-F0-9]{64}/))throw new TypeError("".concat(e," does not look like a liquidity pool ID"));var t=new ce(this.url.clone());return t.filter.push([e.toLowerCase()]),t}}])}(ce);function rt(e){return rt="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},rt(e)}function ot(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,it(r.key),r)}}function it(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}function at(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(at=function(){return!!e})()}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}function ct(e,t){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ct(e,t)}var ut=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=st(t),function(e,t){if(t&&("object"==rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,at()?Reflect.construct(t,n||[],st(e).constructor):t.apply(e,n))}(this,t,[e,"offers"])).url.segment("offers"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(t,e),function(e,t){return t&&ot(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"offer",value:function(e){var t=new ce(this.url.clone());return t.filter.push([e]),t}},{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"buying",value:function(e){return e.isNative()?this.url.setQuery("buying_asset_type","native"):(this.url.setQuery("buying_asset_type",e.getAssetType()),this.url.setQuery("buying_asset_code",e.getCode()),this.url.setQuery("buying_asset_issuer",e.getIssuer())),this}},{key:"selling",value:function(e){return e.isNative()?this.url.setQuery("selling_asset_type","native"):(this.url.setQuery("selling_asset_type",e.getAssetType()),this.url.setQuery("selling_asset_code",e.getCode()),this.url.setQuery("selling_asset_issuer",e.getIssuer())),this}},{key:"sponsor",value:function(e){return this.url.setQuery("sponsor",e),this}},{key:"seller",value:function(e){return this.url.setQuery("seller",e),this}}])}(ce);function lt(e){return lt="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},lt(e)}function ft(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,pt(r.key),r)}}function pt(e){var t=function(e){if("object"!=lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lt(t)?t:t+""}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}var mt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ht(t),function(e,t){if(t&&("object"==lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dt()?Reflect.construct(t,n||[],ht(e).constructor):t.apply(e,n))}(this,t,[e,"operations"])).url.segment("operations"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(t,e),function(e,t){return t&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"operation",value:function(e){var t=new ce(this.url.clone());return t.filter.push([e]),t}},{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"forClaimableBalance",value:function(e){return this.forEndpoint("claimable_balances",e)}},{key:"forLedger",value:function(e){return this.forEndpoint("ledgers",e.toString())}},{key:"forTransaction",value:function(e){return this.forEndpoint("transactions",e)}},{key:"forLiquidityPool",value:function(e){return this.forEndpoint("liquidity_pools",e)}},{key:"includeFailed",value:function(e){return this.url.setQuery("include_failed",e.toString()),this}}])}(ce);function gt(e){return gt="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},gt(e)}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bt=function(){return!!e})()}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vt(e)}function wt(e,t){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wt(e,t)}var St=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=vt(t),function(e,t){if(t&&("object"==gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bt()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("order_book"),n.isNative()?o.url.setQuery("selling_asset_type","native"):(o.url.setQuery("selling_asset_type",n.getAssetType()),o.url.setQuery("selling_asset_code",n.getCode()),o.url.setQuery("selling_asset_issuer",n.getIssuer())),r.isNative()?o.url.setQuery("buying_asset_type","native"):(o.url.setQuery("buying_asset_type",r.getAssetType()),o.url.setQuery("buying_asset_code",r.getCode()),o.url.setQuery("buying_asset_issuer",r.getIssuer())),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wt(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ce);function xt(e){return xt="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},xt(e)}function kt(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,Et(r.key),r)}}function Et(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}function Tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tt=function(){return!!e})()}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}var _t=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=At(t),function(e,t){if(t&&("object"==xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tt()?Reflect.construct(t,n||[],At(e).constructor):t.apply(e,n))}(this,t,[e,"payments"])).url.segment("payments"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ct(e,t)}(t,e),function(e,t){return t&&kt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"forLedger",value:function(e){return this.forEndpoint("ledgers",e.toString())}},{key:"forTransaction",value:function(e){return this.forEndpoint("transactions",e)}},{key:"includeFailed",value:function(e){return this.url.setQuery("include_failed",e.toString()),this}}])}(ce);function Ot(e){return Ot="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},Ot(e)}function Pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pt=function(){return!!e})()}function Rt(e){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rt(e)}function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}var It=function(e){function t(e,n,r,o){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=Rt(t),function(e,t){if(t&&("object"==Ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pt()?Reflect.construct(t,n||[],Rt(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("paths/strict-receive"),"string"==typeof n)i.url.setQuery("source_account",n);else{var a=n.map(function(e){return e.isNative()?"native":"".concat(e.getCode(),":").concat(e.getIssuer())}).join(",");i.url.setQuery("source_assets",a)}return i.url.setQuery("destination_amount",o),r.isNative()?i.url.setQuery("destination_asset_type","native"):(i.url.setQuery("destination_asset_type",r.getAssetType()),i.url.setQuery("destination_asset_code",r.getCode()),i.url.setQuery("destination_asset_issuer",r.getIssuer())),i}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ce);function Nt(e){return Nt="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},Nt(e)}function Lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lt=function(){return!!e})()}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Dt(e,t){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dt(e,t)}var Ut=function(e){function t(e,n,r,o){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=Bt(t),function(e,t){if(t&&("object"==Nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lt()?Reflect.construct(t,n||[],Bt(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("paths/strict-send"),n.isNative()?i.url.setQuery("source_asset_type","native"):(i.url.setQuery("source_asset_type",n.getAssetType()),i.url.setQuery("source_asset_code",n.getCode()),i.url.setQuery("source_asset_issuer",n.getIssuer())),i.url.setQuery("source_amount",r),"string"==typeof o)i.url.setQuery("destination_account",o);else{var a=o.map(function(e){return e.isNative()?"native":"".concat(e.getCode(),":").concat(e.getIssuer())}).join(",");i.url.setQuery("destination_assets",a)}return i}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ce);function Mt(e){return Mt="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},Mt(e)}function Ft(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,Vt(r.key),r)}}function Vt(e){var t=function(e){if("object"!=Mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mt(t)?t:t+""}function qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qt=function(){return!!e})()}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zt(e)}function Ht(e,t){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ht(e,t)}var Wt=[6e4,3e5,9e5,36e5,864e5,6048e5],Kt=function(e){function t(e,n,r,o,i,a,s){var c;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(c=function(e,t,n){return t=zt(t),function(e,t){if(t&&("object"==Mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qt()?Reflect.construct(t,n||[],zt(e).constructor):t.apply(e,n))}(this,t,[e])).url.segment("trade_aggregations"),n.isNative()?c.url.setQuery("base_asset_type","native"):(c.url.setQuery("base_asset_type",n.getAssetType()),c.url.setQuery("base_asset_code",n.getCode()),c.url.setQuery("base_asset_issuer",n.getIssuer())),r.isNative()?c.url.setQuery("counter_asset_type","native"):(c.url.setQuery("counter_asset_type",r.getAssetType()),c.url.setQuery("counter_asset_code",r.getCode()),c.url.setQuery("counter_asset_issuer",r.getIssuer())),"number"!=typeof o||"number"!=typeof i)throw new U.v7("Invalid time bounds",[o,i]);if(c.url.setQuery("start_time",o.toString()),c.url.setQuery("end_time",i.toString()),!c.isValidResolution(a))throw new U.v7("Invalid resolution",a);if(c.url.setQuery("resolution",a.toString()),!c.isValidOffset(s,a))throw new U.v7("Invalid offset",s);return c.url.setQuery("offset",s.toString()),c}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ht(e,t)}(t,e),function(e,t){return t&&Ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"isValidResolution",value:function(e){return Wt.some(function(t){return t===e})}},{key:"isValidOffset",value:function(e,t){var n=36e5;return!(e>t||e>=24*n||e%n!==0)}}])}(ce);function $t(e){return $t="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},$t(e)}function Xt(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,Gt(r.key),r)}}function Gt(e){var t=function(e){if("object"!=$t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$t(t)?t:t+""}function Qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qt=function(){return!!e})()}function Zt(e){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zt(e)}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yt(e,t)}var Jt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Zt(t),function(e,t){if(t&&("object"==$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qt()?Reflect.construct(t,n||[],Zt(e).constructor):t.apply(e,n))}(this,t,[e,"trades"])).url.segment("trades"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(t,e),function(e,t){return t&&Xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"forAssetPair",value:function(e,t){return e.isNative()?this.url.setQuery("base_asset_type","native"):(this.url.setQuery("base_asset_type",e.getAssetType()),this.url.setQuery("base_asset_code",e.getCode()),this.url.setQuery("base_asset_issuer",e.getIssuer())),t.isNative()?this.url.setQuery("counter_asset_type","native"):(this.url.setQuery("counter_asset_type",t.getAssetType()),this.url.setQuery("counter_asset_code",t.getCode()),this.url.setQuery("counter_asset_issuer",t.getIssuer())),this}},{key:"forOffer",value:function(e){return this.url.setQuery("offer_id",e),this}},{key:"forType",value:function(e){return this.url.setQuery("trade_type",e),this}},{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"forLiquidityPool",value:function(e){return this.forEndpoint("liquidity_pools",e)}}])}(ce);function en(e){return en="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},en(e)}function tn(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,nn(r.key),r)}}function nn(e){var t=function(e){if("object"!=en(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==en(t)?t:t+""}function rn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rn=function(){return!!e})()}function on(e){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},on(e)}function an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}var sn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=on(t),function(e,t){if(t&&("object"==en(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rn()?Reflect.construct(t,n||[],on(e).constructor):t.apply(e,n))}(this,t,[e,"transactions"])).url.segment("transactions"),n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(t,e),function(e,t){return t&&tn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"transaction",value:function(e){var t=new ce(this.url.clone());return t.filter.push([e]),t}},{key:"forAccount",value:function(e){return this.forEndpoint("accounts",e)}},{key:"forClaimableBalance",value:function(e){return this.forEndpoint("claimable_balances",e)}},{key:"forLedger",value:function(e){return this.forEndpoint("ledgers",e.toString())}},{key:"forLiquidityPool",value:function(e){return this.forEndpoint("liquidity_pools",e)}},{key:"includeFailed",value:function(e){return this.url.setQuery("include_failed",e.toString()),this}}])}(ce);function cn(e){return cn="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},cn(e)}function un(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 ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach(function(t){fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fn(e,t,n){return(t=gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return dn(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(dn(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,dn(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,dn(f,"constructor",u),dn(u,"constructor",c),c.displayName="GeneratorFunction",dn(u,o,"GeneratorFunction"),dn(f),dn(f,o,"Generator"),dn(f,r,function(){return this}),dn(f,"toString",function(){return"[object Generator]"}),(pn=function(){return{w:i,m:p}})()}function dn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dn=function(e,t,n,r){function i(t,n){dn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},dn(e,t,n,r)}function hn(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function yn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){hn(i,r,o,a,s,"next",e)}function s(e){hn(i,r,o,a,s,"throw",e)}a(void 0)})}}function mn(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,gn(r.key),r)}}function gn(e){var t=function(e){if("object"!=cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cn(t)?t:t+""}function bn(e){return new I(e).div(1e7).toString()}var vn,wn,Sn,xn,kn,En,Tn,An,Cn=function(e,t){return t&&mn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.serverURL=L()(t);var r=void 0===n.allowHttp?ue.T.isAllowHttp():n.allowHttp,o={};if(n.appName&&(o["X-App-Name"]=n.appName),n.appVersion&&(o["X-App-Version"]=n.appVersion),n.authToken&&(o["X-Auth-Token"]=n.authToken),n.headers&&Object.assign(o,n.headers),Object.keys(o).length>0&&W.interceptors.request.use(function(e){return e.headers=e.headers||{},e.headers=Object.assign(e.headers,o),e}),"https"!==this.serverURL.protocol()&&!r)throw new Error("Cannot connect to insecure horizon server")},[{key:"fetchTimebounds",value:(An=yn(pn().m(function e(t){var n,r,o=arguments;return pn().w(function(e){for(;;)switch(e.n){case 0:if(n=o.length>1&&void 0!==o[1]&&o[1],!(r=K(this.serverURL.hostname()))){e.n=1;break}return e.a(2,{minTime:0,maxTime:r+t});case 1:if(!n){e.n=2;break}return e.a(2,{minTime:0,maxTime:Math.floor((new Date).getTime()/1e3)+t});case 2:return e.n=3,W.get(L()(this.serverURL).toString());case 3:return e.a(2,this.fetchTimebounds(t,!0))}},e,this)})),function(e){return An.apply(this,arguments)})},{key:"fetchBaseFee",value:(Tn=yn(pn().m(function e(){var t;return pn().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.feeStats();case 1:return t=e.v,e.a(2,parseInt(t.last_ledger_base_fee,10)||100)}},e,this)})),function(){return Tn.apply(this,arguments)})},{key:"feeStats",value:(En=yn(pn().m(function e(){var t;return pn().w(function(e){for(;;)if(0===e.n)return(t=new ce(L()(this.serverURL))).filter.push(["fee_stats"]),e.a(2,t.call())},e,this)})),function(){return En.apply(this,arguments)})},{key:"root",value:(kn=yn(pn().m(function e(){var t;return pn().w(function(e){for(;;)if(0===e.n)return t=new ce(L()(this.serverURL)),e.a(2,t.call())},e,this)})),function(){return kn.apply(this,arguments)})},{key:"submitTransaction",value:(xn=yn(pn().m(function e(t){var n,r=arguments;return pn().w(function(e){for(;;)switch(e.n){case 0:if((r.length>1&&void 0!==r[1]?r[1]:{skipMemoRequiredCheck:!1}).skipMemoRequiredCheck){e.n=1;break}return e.n=1,this.checkMemoRequired(t);case 1:return n=encodeURIComponent(t.toEnvelope().toXDR().toString("base64")),e.a(2,W.post(L()(this.serverURL).segment("transactions").toString(),"tx=".concat(n),{timeout:6e4,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){if(!e.data.result_xdr)return e.data;var t,n,r=s.xdr.TransactionResult.fromXDR(e.data.result_xdr,"base64").result().value();return r.length&&(t=r.map(function(e,t){if("manageBuyOffer"!==e.value().switch().name&&"manageSellOffer"!==e.value().switch().name)return null;n=!0;var r,o=new I(0),i=new I(0),a=e.value().value().success(),c=a.offersClaimed().map(function(e){var t=e.value(),n="";switch(e.switch()){case s.xdr.ClaimAtomType.claimAtomTypeV0():n=s.StrKey.encodeEd25519PublicKey(t.sellerEd25519());break;case s.xdr.ClaimAtomType.claimAtomTypeOrderBook():n=s.StrKey.encodeEd25519PublicKey(t.sellerId().ed25519());break;default:throw new Error("Invalid offer result type: ".concat(e.switch()))}var r=new I(t.amountBought().toString()),a=new I(t.amountSold().toString());o=o.plus(a),i=i.plus(r);var c=s.Asset.fromOperation(t.assetSold()),u=s.Asset.fromOperation(t.assetBought()),l={type:c.getAssetType(),assetCode:c.getCode(),issuer:c.getIssuer()},f={type:u.getAssetType(),assetCode:u.getCode(),issuer:u.getIssuer()};return{sellerId:n,offerId:t.offerId().toString(),assetSold:l,amountSold:bn(a),assetBought:f,amountBought:bn(r)}}),u=a.offer().switch().name;if("function"==typeof a.offer().value&&a.offer().value()){var l=a.offer().value();r={offerId:l.offerId().toString(),selling:{},buying:{},amount:bn(l.amount().toString()),price:{n:l.price().n(),d:l.price().d()}};var f=s.Asset.fromOperation(l.selling());r.selling={type:f.getAssetType(),assetCode:f.getCode(),issuer:f.getIssuer()};var p=s.Asset.fromOperation(l.buying());r.buying={type:p.getAssetType(),assetCode:p.getCode(),issuer:p.getIssuer()}}return{offersClaimed:c,effect:u,operationIndex:t,currentOffer:r,amountBought:bn(o),amountSold:bn(i),isFullyOpen:!c.length&&"manageOfferDeleted"!==u,wasPartiallyFilled:!!c.length&&"manageOfferDeleted"!==u,wasImmediatelyFilled:!!c.length&&"manageOfferDeleted"===u,wasImmediatelyDeleted:!c.length&&"manageOfferDeleted"===u}}).filter(function(e){return!!e})),ln(ln({},e.data),{},{offerResults:n?t:void 0})}).catch(function(e){return e instanceof Error?Promise.reject(e):Promise.reject(new U.nS("Transaction submission failed. Server responded: ".concat(e.status," ").concat(e.statusText),e.data))}))}},e,this)})),function(e){return xn.apply(this,arguments)})},{key:"submitAsyncTransaction",value:(Sn=yn(pn().m(function e(t){var n,r=arguments;return pn().w(function(e){for(;;)switch(e.n){case 0:if((r.length>1&&void 0!==r[1]?r[1]:{skipMemoRequiredCheck:!1}).skipMemoRequiredCheck){e.n=1;break}return e.n=1,this.checkMemoRequired(t);case 1:return n=encodeURIComponent(t.toEnvelope().toXDR().toString("base64")),e.a(2,W.post(L()(this.serverURL).segment("transactions_async").toString(),"tx=".concat(n),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){return e.data}).catch(function(e){return e instanceof Error?Promise.reject(e):Promise.reject(new U.nS("Transaction submission failed. Server responded: ".concat(e.status," ").concat(e.statusText),e.data))}))}},e,this)})),function(e){return Sn.apply(this,arguments)})},{key:"accounts",value:function(){return new me(L()(this.serverURL))}},{key:"claimableBalances",value:function(){return new Pe(L()(this.serverURL))}},{key:"ledgers",value:function(){return new Ge(L()(this.serverURL))}},{key:"transactions",value:function(){return new sn(L()(this.serverURL))}},{key:"offers",value:function(){return new ut(L()(this.serverURL))}},{key:"orderbook",value:function(e,t){return new St(L()(this.serverURL),e,t)}},{key:"trades",value:function(){return new Jt(L()(this.serverURL))}},{key:"operations",value:function(){return new mt(L()(this.serverURL))}},{key:"liquidityPools",value:function(){return new nt(L()(this.serverURL))}},{key:"strictReceivePaths",value:function(e,t,n){return new It(L()(this.serverURL),e,t,n)}},{key:"strictSendPaths",value:function(e,t,n){return new Ut(L()(this.serverURL),e,t,n)}},{key:"payments",value:function(){return new _t(L()(this.serverURL))}},{key:"effects",value:function(){return new De(L()(this.serverURL))}},{key:"friendbot",value:function(e){return new qe(L()(this.serverURL),e)}},{key:"assets",value:function(){return new ke(L()(this.serverURL))}},{key:"loadAccount",value:(wn=yn(pn().m(function e(t){var n;return pn().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.accounts().accountId(t).call();case 1:return n=e.v,e.a(2,new d(n))}},e,this)})),function(e){return wn.apply(this,arguments)})},{key:"tradeAggregation",value:function(e,t,n,r,o,i){return new Kt(L()(this.serverURL),e,t,n,r,o,i)}},{key:"checkMemoRequired",value:(vn=yn(pn().m(function e(t){var n,r,o,i,a,c;return pn().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t instanceof s.FeeBumpTransaction&&(t=t.innerTransaction),"none"===t.memo.type){e.n=1;break}return e.a(2);case 1:n=new Set,r=0;case 2:if(!(r<t.operations.length)){e.n=14;break}o=t.operations[r],a=o.type,e.n="payment"===a||"pathPaymentStrictReceive"===a||"pathPaymentStrictSend"===a||"accountMerge"===a?3:4;break;case 3:return e.a(3,5);case 4:return e.a(3,13);case 5:if(i=o.destination,!n.has(i)){e.n=6;break}return e.a(3,13);case 6:if(n.add(i),!i.startsWith("M")){e.n=7;break}return e.a(3,13);case 7:return e.p=7,e.n=8,this.loadAccount(i);case 8:if("MQ=="!==e.v.data_attr["config.memo_required"]){e.n=9;break}throw new U.Cu("account requires memo",i,r);case 9:e.n=13;break;case 10:if(e.p=10,!((c=e.v)instanceof U.Cu)){e.n=11;break}throw c;case 11:if(c instanceof U.m_){e.n=12;break}throw c;case 12:return e.a(3,13);case 13:r+=1,e.n=2;break;case 14:return e.a(2)}},e,this,[[7,10]])})),function(e){return vn.apply(this,arguments)})}]);const _n=(e=n.hmd(e)).exports},8835:(e,t,n)=>{var r=n(1270);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),l=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(5373);function b(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!n&&1===e.split("#").length){var v=s.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=i.exec(b);if(w){var S=(w=w[0]).toLowerCase();this.protocol=S,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===b.substr(0,2);!x||w&&y[w]||(b=b.substr(2),this.slashes=!0)}if(!y[w]&&(x||w&&!m[w])){for(var k,E,T=-1,A=0;A<f.length;A++)-1!==(C=b.indexOf(f[A]))&&(-1===T||C<T)&&(T=C);for(-1!==(E=-1===T?b.lastIndexOf("@"):b.lastIndexOf("@",T))&&(k=b.slice(0,E),b=b.slice(E+1),this.auth=decodeURIComponent(k)),T=-1,A=0;A<l.length;A++){var C;-1!==(C=b.indexOf(l[A]))&&(-1===T||C<T)&&(T=C)}-1===T&&(T=b.length),this.host=b.slice(0,T),b=b.slice(T),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var O=this.hostname.split(/\./),P=(A=0,O.length);A<P;A++){var R=O[A];if(R&&!R.match(p)){for(var j="",I=0,N=R.length;I<N;I++)R.charCodeAt(I)>127?j+="x":j+=R[I];if(!j.match(p)){var L=O.slice(0,A),B=O.slice(A+1),D=R.match(d);D&&(L.push(D[1]),B.unshift(D[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+U,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!h[S])for(A=0,P=u.length;A<P;A++){var F=u[A];if(-1!==b.indexOf(F)){var V=encodeURIComponent(F);V===F&&(V=escape(F)),b=b.split(F).join(V)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),t&&(this.query=g.parse(this.query)),b=b.slice(0,z)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var H=this.search||"";this.path=U+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var a=r[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(n[u]=e[u])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var p=l[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||y[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||b||n.host&&e.pathname,S=w,x=n.pathname&&n.pathname.split("/")||[],k=(d=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===x[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=d;else if(d.length)x||(x=[]),x.pop(),x=x.concat(d),n.search=e.search,n.query=e.query;else if(null!=e.search)return k&&(n.host=x.shift(),n.hostname=n.host,(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.hostname=_.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=x.slice(-1)[0],T=(n.host||e.host||x.length>1)&&("."===E||".."===E)||""===E,A=0,C=x.length;C>=0;C--)"."===(E=x[C])?x.splice(C,1):".."===E?(x.splice(C,1),A++):A&&(x.splice(C,1),A--);if(!w&&!S)for(;A--;A)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),T&&"/"!==x.join("/").substr(-1)&&x.push("");var _,O=""===x[0]||x[0]&&"/"===x[0].charAt(0);return k&&(n.hostname=O?"":x.length?x.shift():"",n.host=n.hostname,(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.hostname=_.shift(),n.host=n.hostname)),(w=w||n.host&&x.length)&&!O&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=b(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o},8859:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,E=Array.prototype.join,T=Array.prototype.slice,A=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var o=String(r),i=b.call(t,o.length+1);return v.call(o,n,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var L=n(2634),B=L.custom,D=W(B)?B:null,U={__proto__:null,double:'"',single:"'"},M={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function F(e,t,n){var r=n.quoteStyle||t,o=U[r];return o+e+o}function V(e){return v.call(String(e),/"/g,"&quot;")}function q(e){return!R||!("object"==typeof e&&(R in e||void 0!==e[R]))}function z(e){return"[object Array]"===X(e)&&q(e)}function H(e){return"[object RegExp]"===X(e)&&q(e)}function W(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var c=r||{};if($(c,"quoteStyle")&&!$(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!$(c,"customInspect")||c.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?N(t,x):x}if("bigint"==typeof t){var A=String(t)+"n";return w?N(t,A):A}var _=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=_&&_>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var B=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(c,o);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function M(t,n,r){if(n&&(s=T.call(s)).push(n),r){var i={depth:c.depth};return $(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!H(t)){var K=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Z=ne(t,M);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(Z.length>0?" { "+E.call(Z,", ")+" }":"")}if(W(t)){var re=P?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||P?re:Y(re)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var oe="<"+S.call(String(t.nodeName)),ie=t.attributes||[],ae=0;ae<ie.length;ae++)oe+=" "+ie[ae].name+"="+F(V(ie[ae].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+S.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var se=ne(t,M);return B&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(se)?"["+te(se,B)+"]":"[ "+E.call(se,", ")+" ]"}if(function(e){return"[object Error]"===X(e)&&q(e)}(t)){var ce=ne(t,M);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ce,", ")+" }":"{ ["+String(t)+"] "+E.call(k.call("[cause]: "+M(t.cause),ce),", ")+" }"}if("object"==typeof t&&y){if(D&&"function"==typeof t[D]&&L)return L(t,{depth:_-o});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,n){ue.push(M(n,t,!0)+" => "+M(e,t))}),ee("Map",i.call(t),ue,B)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return l&&l.call(t,function(e){le.push(M(e,t))}),ee("Set",u.call(t),le,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===X(e)&&q(e)}(t))return Y(M(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return Y(M(C.call(t)));if(function(e){return"[object Boolean]"===X(e)&&q(e)}(t))return Y(h.call(t));if(function(e){return"[object String]"===X(e)&&q(e)}(t))return Y(M(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===X(e)&&q(e)}(t)&&!H(t)){var fe=ne(t,M),pe=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!pe&&R&&Object(t)===t&&R in t?b.call(X(t),8,-1):de?"Object":"",ye=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+E.call(k.call([],he||[],de||[]),": ")+"] ":"");return 0===fe.length?ye+"{}":B?ye+"{"+te(fe,B)+"}":ye+"{ "+E.call(fe,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return K.call(e,t)}function X(e){return y.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+r}var o=M[t.quoteStyle||"single"];return o.lastIndex=0,F(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Y(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):E.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=$(e,o)?t(e[o],e):""}var i,a="function"==typeof _?_(e):[];if(P){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)$(e,c)&&(n&&String(Number(c))===c&&c<e.length||P&&i["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof _)for(var u=0;u<a.length;u++)j.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},8950:e=>{var t;t=()=>(()=>{var e={41:(e,t,n)=>{var r=n(655),o=n(8068),i=n(9675),a=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===c&&f?f.writable:!c});else{if(!l&&(s||c||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},76:e=>{e.exports=Function.prototype.call},251:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=u}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*y}},392:(e,t,n)=>{var r=n(2861).Buffer,o=n(5377);function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){e=o(e,t||"utf8");for(var n=this._block,r=this._blockSize,i=e.length,a=this._len,s=0;s<i;){for(var c=a%r,u=Math.min(i-s,r-c),l=0;l<u;l++)n[c+l]=e[s+l];s+=u,(a+=u)%r===0&&this._update(n)}return this._len+=i,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},414:e=>{e.exports=Math.round},448:(e,t,n)=>{n.r(t),n.d(t,{Account:()=>Fr,Address:()=>nr,Asset:()=>$t,AuthClawbackEnabledFlag:()=>fr,AuthImmutableFlag:()=>lr,AuthRequiredFlag:()=>cr,AuthRevocableFlag:()=>ur,BASE_FEE:()=>ao,Claimant:()=>Bn,Contract:()=>bo,FeeBumpTransaction:()=>Dr,Hyper:()=>r.Hyper,Int128:()=>Bo,Int256:()=>qo,Keypair:()=>qt,LiquidityPoolAsset:()=>jn,LiquidityPoolFeeV18:()=>Qt,LiquidityPoolId:()=>Fn,Memo:()=>kr,MemoHash:()=>Sr,MemoID:()=>vr,MemoNone:()=>br,MemoReturn:()=>xr,MemoText:()=>wr,MuxedAccount:()=>Hr,Networks:()=>lo,Operation:()=>pr,ScInt:()=>Yo,SignerKey:()=>Zr,Soroban:()=>yo,SorobanDataBuilder:()=>Xr,StrKey:()=>It,TimeoutInfinite:()=>so,Transaction:()=>Pr,TransactionBase:()=>tn,TransactionBuilder:()=>co,Uint128:()=>Eo,Uint256:()=>Po,UnsignedHyper:()=>r.UnsignedHyper,XdrLargeInt:()=>$o,authorizeEntry:()=>bi,authorizeInvocation:()=>wi,buildInvocationTree:()=>Ei,cereal:()=>a,decodeAddressToMuxedAccount:()=>qn,default:()=>Ci,encodeMuxedAccount:()=>Hn,encodeMuxedAccountToAddress:()=>zn,extractBaseAddress:()=>Wn,getLiquidityPoolId:()=>Zt,hash:()=>c,humanizeEvents:()=>pi,nativeToScVal:()=>ai,scValToBigInt:()=>Jo,scValToNative:()=>si,sign:()=>St,verify:()=>xt,walkInvocationTree:()=>Ti,xdr:()=>i});var r=n(3740),o=r.config(function(e){var t=1024;e.typedef("Value",e.varOpaque()),e.struct("ScpBallot",[["counter",e.lookup("Uint32")],["value",e.lookup("Value")]]),e.enum("ScpStatementType",{scpStPrepare:0,scpStConfirm:1,scpStExternalize:2,scpStNominate:3}),e.struct("ScpNomination",[["quorumSetHash",e.lookup("Hash")],["votes",e.varArray(e.lookup("Value"),2147483647)],["accepted",e.varArray(e.lookup("Value"),2147483647)]]),e.struct("ScpStatementPrepare",[["quorumSetHash",e.lookup("Hash")],["ballot",e.lookup("ScpBallot")],["prepared",e.option(e.lookup("ScpBallot"))],["preparedPrime",e.option(e.lookup("ScpBallot"))],["nC",e.lookup("Uint32")],["nH",e.lookup("Uint32")]]),e.struct("ScpStatementConfirm",[["ballot",e.lookup("ScpBallot")],["nPrepared",e.lookup("Uint32")],["nCommit",e.lookup("Uint32")],["nH",e.lookup("Uint32")],["quorumSetHash",e.lookup("Hash")]]),e.struct("ScpStatementExternalize",[["commit",e.lookup("ScpBallot")],["nH",e.lookup("Uint32")],["commitQuorumSetHash",e.lookup("Hash")]]),e.union("ScpStatementPledges",{switchOn:e.lookup("ScpStatementType"),switchName:"type",switches:[["scpStPrepare","prepare"],["scpStConfirm","confirm"],["scpStExternalize","externalize"],["scpStNominate","nominate"]],arms:{prepare:e.lookup("ScpStatementPrepare"),confirm:e.lookup("ScpStatementConfirm"),externalize:e.lookup("ScpStatementExternalize"),nominate:e.lookup("ScpNomination")}}),e.struct("ScpStatement",[["nodeId",e.lookup("NodeId")],["slotIndex",e.lookup("Uint64")],["pledges",e.lookup("ScpStatementPledges")]]),e.struct("ScpEnvelope",[["statement",e.lookup("ScpStatement")],["signature",e.lookup("Signature")]]),e.struct("ScpQuorumSet",[["threshold",e.lookup("Uint32")],["validators",e.varArray(e.lookup("NodeId"),2147483647)],["innerSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)]]),e.typedef("Thresholds",e.opaque(4)),e.typedef("String32",e.string(32)),e.typedef("String64",e.string(64)),e.typedef("SequenceNumber",e.lookup("Int64")),e.typedef("DataValue",e.varOpaque(64)),e.typedef("AssetCode4",e.opaque(4)),e.typedef("AssetCode12",e.opaque(12)),e.enum("AssetType",{assetTypeNative:0,assetTypeCreditAlphanum4:1,assetTypeCreditAlphanum12:2,assetTypePoolShare:3}),e.union("AssetCode",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeCreditAlphanum4","assetCode4"],["assetTypeCreditAlphanum12","assetCode12"]],arms:{assetCode4:e.lookup("AssetCode4"),assetCode12:e.lookup("AssetCode12")}}),e.struct("AlphaNum4",[["assetCode",e.lookup("AssetCode4")],["issuer",e.lookup("AccountId")]]),e.struct("AlphaNum12",[["assetCode",e.lookup("AssetCode12")],["issuer",e.lookup("AccountId")]]),e.union("Asset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12")}}),e.struct("Price",[["n",e.lookup("Int32")],["d",e.lookup("Int32")]]),e.struct("Liabilities",[["buying",e.lookup("Int64")],["selling",e.lookup("Int64")]]),e.enum("ThresholdIndices",{thresholdMasterWeight:0,thresholdLow:1,thresholdMed:2,thresholdHigh:3}),e.enum("LedgerEntryType",{account:0,trustline:1,offer:2,data:3,claimableBalance:4,liquidityPool:5,contractData:6,contractCode:7,configSetting:8,ttl:9}),e.struct("Signer",[["key",e.lookup("SignerKey")],["weight",e.lookup("Uint32")]]),e.enum("AccountFlags",{authRequiredFlag:1,authRevocableFlag:2,authImmutableFlag:4,authClawbackEnabledFlag:8}),e.const("MASK_ACCOUNT_FLAGS",7),e.const("MASK_ACCOUNT_FLAGS_V17",15),e.const("MAX_SIGNERS",20),e.typedef("SponsorshipDescriptor",e.option(e.lookup("AccountId"))),e.struct("AccountEntryExtensionV3",[["ext",e.lookup("ExtensionPoint")],["seqLedger",e.lookup("Uint32")],["seqTime",e.lookup("TimePoint")]]),e.union("AccountEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[3,"v3"]],arms:{v3:e.lookup("AccountEntryExtensionV3")}}),e.struct("AccountEntryExtensionV2",[["numSponsored",e.lookup("Uint32")],["numSponsoring",e.lookup("Uint32")],["signerSponsoringIDs",e.varArray(e.lookup("SponsorshipDescriptor"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExtensionV2Ext")]]),e.union("AccountEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("AccountEntryExtensionV2")}}),e.struct("AccountEntryExtensionV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("AccountEntryExtensionV1Ext")]]),e.union("AccountEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("AccountEntryExtensionV1")}}),e.struct("AccountEntry",[["accountId",e.lookup("AccountId")],["balance",e.lookup("Int64")],["seqNum",e.lookup("SequenceNumber")],["numSubEntries",e.lookup("Uint32")],["inflationDest",e.option(e.lookup("AccountId"))],["flags",e.lookup("Uint32")],["homeDomain",e.lookup("String32")],["thresholds",e.lookup("Thresholds")],["signers",e.varArray(e.lookup("Signer"),e.lookup("MAX_SIGNERS"))],["ext",e.lookup("AccountEntryExt")]]),e.enum("TrustLineFlags",{authorizedFlag:1,authorizedToMaintainLiabilitiesFlag:2,trustlineClawbackEnabledFlag:4}),e.const("MASK_TRUSTLINE_FLAGS",1),e.const("MASK_TRUSTLINE_FLAGS_V13",3),e.const("MASK_TRUSTLINE_FLAGS_V17",7),e.enum("LiquidityPoolType",{liquidityPoolConstantProduct:0}),e.union("TrustLineAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPoolId"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPoolId:e.lookup("PoolId")}}),e.union("TrustLineEntryExtensionV2Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TrustLineEntryExtensionV2",[["liquidityPoolUseCount",e.lookup("Int32")],["ext",e.lookup("TrustLineEntryExtensionV2Ext")]]),e.union("TrustLineEntryV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[2,"v2"]],arms:{v2:e.lookup("TrustLineEntryExtensionV2")}}),e.struct("TrustLineEntryV1",[["liabilities",e.lookup("Liabilities")],["ext",e.lookup("TrustLineEntryV1Ext")]]),e.union("TrustLineEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("TrustLineEntryV1")}}),e.struct("TrustLineEntry",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")],["balance",e.lookup("Int64")],["limit",e.lookup("Int64")],["flags",e.lookup("Uint32")],["ext",e.lookup("TrustLineEntryExt")]]),e.enum("OfferEntryFlags",{passiveFlag:1}),e.const("MASK_OFFERENTRY_FLAGS",1),e.union("OfferEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("OfferEntry",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["flags",e.lookup("Uint32")],["ext",e.lookup("OfferEntryExt")]]),e.union("DataEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("DataEntry",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")],["dataValue",e.lookup("DataValue")],["ext",e.lookup("DataEntryExt")]]),e.enum("ClaimPredicateType",{claimPredicateUnconditional:0,claimPredicateAnd:1,claimPredicateOr:2,claimPredicateNot:3,claimPredicateBeforeAbsoluteTime:4,claimPredicateBeforeRelativeTime:5}),e.union("ClaimPredicate",{switchOn:e.lookup("ClaimPredicateType"),switchName:"type",switches:[["claimPredicateUnconditional",e.void()],["claimPredicateAnd","andPredicates"],["claimPredicateOr","orPredicates"],["claimPredicateNot","notPredicate"],["claimPredicateBeforeAbsoluteTime","absBefore"],["claimPredicateBeforeRelativeTime","relBefore"]],arms:{andPredicates:e.varArray(e.lookup("ClaimPredicate"),2),orPredicates:e.varArray(e.lookup("ClaimPredicate"),2),notPredicate:e.option(e.lookup("ClaimPredicate")),absBefore:e.lookup("Int64"),relBefore:e.lookup("Int64")}}),e.enum("ClaimantType",{claimantTypeV0:0}),e.struct("ClaimantV0",[["destination",e.lookup("AccountId")],["predicate",e.lookup("ClaimPredicate")]]),e.union("Claimant",{switchOn:e.lookup("ClaimantType"),switchName:"type",switches:[["claimantTypeV0","v0"]],arms:{v0:e.lookup("ClaimantV0")}}),e.enum("ClaimableBalanceFlags",{claimableBalanceClawbackEnabledFlag:1}),e.const("MASK_CLAIMABLE_BALANCE_FLAGS",1),e.union("ClaimableBalanceEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("ClaimableBalanceEntryExtensionV1",[["ext",e.lookup("ClaimableBalanceEntryExtensionV1Ext")],["flags",e.lookup("Uint32")]]),e.union("ClaimableBalanceEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("ClaimableBalanceEntryExtensionV1")}}),e.struct("ClaimableBalanceEntry",[["balanceId",e.lookup("ClaimableBalanceId")],["claimants",e.varArray(e.lookup("Claimant"),10)],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["ext",e.lookup("ClaimableBalanceEntryExt")]]),e.struct("LiquidityPoolConstantProductParameters",[["assetA",e.lookup("Asset")],["assetB",e.lookup("Asset")],["fee",e.lookup("Int32")]]),e.struct("LiquidityPoolEntryConstantProduct",[["params",e.lookup("LiquidityPoolConstantProductParameters")],["reserveA",e.lookup("Int64")],["reserveB",e.lookup("Int64")],["totalPoolShares",e.lookup("Int64")],["poolSharesTrustLineCount",e.lookup("Int64")]]),e.union("LiquidityPoolEntryBody",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolEntryConstantProduct")}}),e.struct("LiquidityPoolEntry",[["liquidityPoolId",e.lookup("PoolId")],["body",e.lookup("LiquidityPoolEntryBody")]]),e.enum("ContractDataDurability",{temporary:0,persistent:1}),e.struct("ContractDataEntry",[["ext",e.lookup("ExtensionPoint")],["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")],["val",e.lookup("ScVal")]]),e.struct("ContractCodeCostInputs",[["ext",e.lookup("ExtensionPoint")],["nInstructions",e.lookup("Uint32")],["nFunctions",e.lookup("Uint32")],["nGlobals",e.lookup("Uint32")],["nTableEntries",e.lookup("Uint32")],["nTypes",e.lookup("Uint32")],["nDataSegments",e.lookup("Uint32")],["nElemSegments",e.lookup("Uint32")],["nImports",e.lookup("Uint32")],["nExports",e.lookup("Uint32")],["nDataSegmentBytes",e.lookup("Uint32")]]),e.struct("ContractCodeEntryV1",[["ext",e.lookup("ExtensionPoint")],["costInputs",e.lookup("ContractCodeCostInputs")]]),e.union("ContractCodeEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("ContractCodeEntryV1")}}),e.struct("ContractCodeEntry",[["ext",e.lookup("ContractCodeEntryExt")],["hash",e.lookup("Hash")],["code",e.varOpaque()]]),e.struct("TtlEntry",[["keyHash",e.lookup("Hash")],["liveUntilLedgerSeq",e.lookup("Uint32")]]),e.union("LedgerEntryExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerEntryExtensionV1",[["sponsoringId",e.lookup("SponsorshipDescriptor")],["ext",e.lookup("LedgerEntryExtensionV1Ext")]]),e.union("LedgerEntryData",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("AccountEntry"),trustLine:e.lookup("TrustLineEntry"),offer:e.lookup("OfferEntry"),data:e.lookup("DataEntry"),claimableBalance:e.lookup("ClaimableBalanceEntry"),liquidityPool:e.lookup("LiquidityPoolEntry"),contractData:e.lookup("ContractDataEntry"),contractCode:e.lookup("ContractCodeEntry"),configSetting:e.lookup("ConfigSettingEntry"),ttl:e.lookup("TtlEntry")}}),e.union("LedgerEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerEntryExtensionV1")}}),e.struct("LedgerEntry",[["lastModifiedLedgerSeq",e.lookup("Uint32")],["data",e.lookup("LedgerEntryData")],["ext",e.lookup("LedgerEntryExt")]]),e.struct("LedgerKeyAccount",[["accountId",e.lookup("AccountId")]]),e.struct("LedgerKeyTrustLine",[["accountId",e.lookup("AccountId")],["asset",e.lookup("TrustLineAsset")]]),e.struct("LedgerKeyOffer",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")]]),e.struct("LedgerKeyData",[["accountId",e.lookup("AccountId")],["dataName",e.lookup("String64")]]),e.struct("LedgerKeyClaimableBalance",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("LedgerKeyLiquidityPool",[["liquidityPoolId",e.lookup("PoolId")]]),e.struct("LedgerKeyContractData",[["contract",e.lookup("ScAddress")],["key",e.lookup("ScVal")],["durability",e.lookup("ContractDataDurability")]]),e.struct("LedgerKeyContractCode",[["hash",e.lookup("Hash")]]),e.struct("LedgerKeyConfigSetting",[["configSettingId",e.lookup("ConfigSettingId")]]),e.struct("LedgerKeyTtl",[["keyHash",e.lookup("Hash")]]),e.union("LedgerKey",{switchOn:e.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"],["contractData","contractData"],["contractCode","contractCode"],["configSetting","configSetting"],["ttl","ttl"]],arms:{account:e.lookup("LedgerKeyAccount"),trustLine:e.lookup("LedgerKeyTrustLine"),offer:e.lookup("LedgerKeyOffer"),data:e.lookup("LedgerKeyData"),claimableBalance:e.lookup("LedgerKeyClaimableBalance"),liquidityPool:e.lookup("LedgerKeyLiquidityPool"),contractData:e.lookup("LedgerKeyContractData"),contractCode:e.lookup("LedgerKeyContractCode"),configSetting:e.lookup("LedgerKeyConfigSetting"),ttl:e.lookup("LedgerKeyTtl")}}),e.enum("EnvelopeType",{envelopeTypeTxV0:0,envelopeTypeScp:1,envelopeTypeTx:2,envelopeTypeAuth:3,envelopeTypeScpvalue:4,envelopeTypeTxFeeBump:5,envelopeTypeOpId:6,envelopeTypePoolRevokeOpId:7,envelopeTypeContractId:8,envelopeTypeSorobanAuthorization:9}),e.enum("BucketListType",{live:0,hotArchive:1}),e.enum("BucketEntryType",{metaentry:-1,liveentry:0,deadentry:1,initentry:2}),e.enum("HotArchiveBucketEntryType",{hotArchiveMetaentry:-1,hotArchiveArchived:0,hotArchiveLive:1}),e.union("BucketMetadataExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"bucketListType"]],arms:{bucketListType:e.lookup("BucketListType")}}),e.struct("BucketMetadata",[["ledgerVersion",e.lookup("Uint32")],["ext",e.lookup("BucketMetadataExt")]]),e.union("BucketEntry",{switchOn:e.lookup("BucketEntryType"),switchName:"type",switches:[["liveentry","liveEntry"],["initentry","liveEntry"],["deadentry","deadEntry"],["metaentry","metaEntry"]],arms:{liveEntry:e.lookup("LedgerEntry"),deadEntry:e.lookup("LedgerKey"),metaEntry:e.lookup("BucketMetadata")}}),e.union("HotArchiveBucketEntry",{switchOn:e.lookup("HotArchiveBucketEntryType"),switchName:"type",switches:[["hotArchiveArchived","archivedEntry"],["hotArchiveLive","key"],["hotArchiveMetaentry","metaEntry"]],arms:{archivedEntry:e.lookup("LedgerEntry"),key:e.lookup("LedgerKey"),metaEntry:e.lookup("BucketMetadata")}}),e.typedef("UpgradeType",e.varOpaque(128)),e.enum("StellarValueType",{stellarValueBasic:0,stellarValueSigned:1}),e.struct("LedgerCloseValueSignature",[["nodeId",e.lookup("NodeId")],["signature",e.lookup("Signature")]]),e.union("StellarValueExt",{switchOn:e.lookup("StellarValueType"),switchName:"v",switches:[["stellarValueBasic",e.void()],["stellarValueSigned","lcValueSignature"]],arms:{lcValueSignature:e.lookup("LedgerCloseValueSignature")}}),e.struct("StellarValue",[["txSetHash",e.lookup("Hash")],["closeTime",e.lookup("TimePoint")],["upgrades",e.varArray(e.lookup("UpgradeType"),6)],["ext",e.lookup("StellarValueExt")]]),e.const("MASK_LEDGER_HEADER_FLAGS",7),e.enum("LedgerHeaderFlags",{disableLiquidityPoolTradingFlag:1,disableLiquidityPoolDepositFlag:2,disableLiquidityPoolWithdrawalFlag:4}),e.union("LedgerHeaderExtensionV1Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderExtensionV1",[["flags",e.lookup("Uint32")],["ext",e.lookup("LedgerHeaderExtensionV1Ext")]]),e.union("LedgerHeaderExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerHeaderExtensionV1")}}),e.struct("LedgerHeader",[["ledgerVersion",e.lookup("Uint32")],["previousLedgerHash",e.lookup("Hash")],["scpValue",e.lookup("StellarValue")],["txSetResultHash",e.lookup("Hash")],["bucketListHash",e.lookup("Hash")],["ledgerSeq",e.lookup("Uint32")],["totalCoins",e.lookup("Int64")],["feePool",e.lookup("Int64")],["inflationSeq",e.lookup("Uint32")],["idPool",e.lookup("Uint64")],["baseFee",e.lookup("Uint32")],["baseReserve",e.lookup("Uint32")],["maxTxSetSize",e.lookup("Uint32")],["skipList",e.array(e.lookup("Hash"),4)],["ext",e.lookup("LedgerHeaderExt")]]),e.enum("LedgerUpgradeType",{ledgerUpgradeVersion:1,ledgerUpgradeBaseFee:2,ledgerUpgradeMaxTxSetSize:3,ledgerUpgradeBaseReserve:4,ledgerUpgradeFlags:5,ledgerUpgradeConfig:6,ledgerUpgradeMaxSorobanTxSetSize:7}),e.struct("ConfigUpgradeSetKey",[["contractId",e.lookup("ContractId")],["contentHash",e.lookup("Hash")]]),e.union("LedgerUpgrade",{switchOn:e.lookup("LedgerUpgradeType"),switchName:"type",switches:[["ledgerUpgradeVersion","newLedgerVersion"],["ledgerUpgradeBaseFee","newBaseFee"],["ledgerUpgradeMaxTxSetSize","newMaxTxSetSize"],["ledgerUpgradeBaseReserve","newBaseReserve"],["ledgerUpgradeFlags","newFlags"],["ledgerUpgradeConfig","newConfig"],["ledgerUpgradeMaxSorobanTxSetSize","newMaxSorobanTxSetSize"]],arms:{newLedgerVersion:e.lookup("Uint32"),newBaseFee:e.lookup("Uint32"),newMaxTxSetSize:e.lookup("Uint32"),newBaseReserve:e.lookup("Uint32"),newFlags:e.lookup("Uint32"),newConfig:e.lookup("ConfigUpgradeSetKey"),newMaxSorobanTxSetSize:e.lookup("Uint32")}}),e.struct("ConfigUpgradeSet",[["updatedEntry",e.varArray(e.lookup("ConfigSettingEntry"),2147483647)]]),e.enum("TxSetComponentType",{txsetCompTxsMaybeDiscountedFee:0}),e.typedef("DependentTxCluster",e.varArray(e.lookup("TransactionEnvelope"),2147483647)),e.typedef("ParallelTxExecutionStage",e.varArray(e.lookup("DependentTxCluster"),2147483647)),e.struct("ParallelTxsComponent",[["baseFee",e.option(e.lookup("Int64"))],["executionStages",e.varArray(e.lookup("ParallelTxExecutionStage"),2147483647)]]),e.struct("TxSetComponentTxsMaybeDiscountedFee",[["baseFee",e.option(e.lookup("Int64"))],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.union("TxSetComponent",{switchOn:e.lookup("TxSetComponentType"),switchName:"type",switches:[["txsetCompTxsMaybeDiscountedFee","txsMaybeDiscountedFee"]],arms:{txsMaybeDiscountedFee:e.lookup("TxSetComponentTxsMaybeDiscountedFee")}}),e.union("TransactionPhase",{switchOn:e.int(),switchName:"v",switches:[[0,"v0Components"],[1,"parallelTxsComponent"]],arms:{v0Components:e.varArray(e.lookup("TxSetComponent"),2147483647),parallelTxsComponent:e.lookup("ParallelTxsComponent")}}),e.struct("TransactionSet",[["previousLedgerHash",e.lookup("Hash")],["txes",e.varArray(e.lookup("TransactionEnvelope"),2147483647)]]),e.struct("TransactionSetV1",[["previousLedgerHash",e.lookup("Hash")],["phases",e.varArray(e.lookup("TransactionPhase"),2147483647)]]),e.union("GeneralizedTransactionSet",{switchOn:e.int(),switchName:"v",switches:[[1,"v1TxSet"]],arms:{v1TxSet:e.lookup("TransactionSetV1")}}),e.struct("TransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("TransactionResult")]]),e.struct("TransactionResultSet",[["results",e.varArray(e.lookup("TransactionResultPair"),2147483647)]]),e.union("TransactionHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"generalizedTxSet"]],arms:{generalizedTxSet:e.lookup("GeneralizedTransactionSet")}}),e.struct("TransactionHistoryEntry",[["ledgerSeq",e.lookup("Uint32")],["txSet",e.lookup("TransactionSet")],["ext",e.lookup("TransactionHistoryEntryExt")]]),e.union("TransactionHistoryResultEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionHistoryResultEntry",[["ledgerSeq",e.lookup("Uint32")],["txResultSet",e.lookup("TransactionResultSet")],["ext",e.lookup("TransactionHistoryResultEntryExt")]]),e.union("LedgerHeaderHistoryEntryExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("LedgerHeaderHistoryEntry",[["hash",e.lookup("Hash")],["header",e.lookup("LedgerHeader")],["ext",e.lookup("LedgerHeaderHistoryEntryExt")]]),e.struct("LedgerScpMessages",[["ledgerSeq",e.lookup("Uint32")],["messages",e.varArray(e.lookup("ScpEnvelope"),2147483647)]]),e.struct("ScpHistoryEntryV0",[["quorumSets",e.varArray(e.lookup("ScpQuorumSet"),2147483647)],["ledgerMessages",e.lookup("LedgerScpMessages")]]),e.union("ScpHistoryEntry",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ScpHistoryEntryV0")}}),e.enum("LedgerEntryChangeType",{ledgerEntryCreated:0,ledgerEntryUpdated:1,ledgerEntryRemoved:2,ledgerEntryState:3,ledgerEntryRestored:4}),e.union("LedgerEntryChange",{switchOn:e.lookup("LedgerEntryChangeType"),switchName:"type",switches:[["ledgerEntryCreated","created"],["ledgerEntryUpdated","updated"],["ledgerEntryRemoved","removed"],["ledgerEntryState","state"],["ledgerEntryRestored","restored"]],arms:{created:e.lookup("LedgerEntry"),updated:e.lookup("LedgerEntry"),removed:e.lookup("LedgerKey"),state:e.lookup("LedgerEntry"),restored:e.lookup("LedgerEntry")}}),e.typedef("LedgerEntryChanges",e.varArray(e.lookup("LedgerEntryChange"),2147483647)),e.struct("OperationMeta",[["changes",e.lookup("LedgerEntryChanges")]]),e.struct("TransactionMetaV1",[["txChanges",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)]]),e.struct("TransactionMetaV2",[["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")]]),e.enum("ContractEventType",{system:0,contract:1,diagnostic:2}),e.struct("ContractEventV0",[["topics",e.varArray(e.lookup("ScVal"),2147483647)],["data",e.lookup("ScVal")]]),e.union("ContractEventBody",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("ContractEventV0")}}),e.struct("ContractEvent",[["ext",e.lookup("ExtensionPoint")],["contractId",e.option(e.lookup("ContractId"))],["type",e.lookup("ContractEventType")],["body",e.lookup("ContractEventBody")]]),e.struct("DiagnosticEvent",[["inSuccessfulContractCall",e.bool()],["event",e.lookup("ContractEvent")]]),e.struct("SorobanTransactionMetaExtV1",[["ext",e.lookup("ExtensionPoint")],["totalNonRefundableResourceFeeCharged",e.lookup("Int64")],["totalRefundableResourceFeeCharged",e.lookup("Int64")],["rentFeeCharged",e.lookup("Int64")]]),e.union("SorobanTransactionMetaExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("SorobanTransactionMetaExtV1")}}),e.struct("SorobanTransactionMeta",[["ext",e.lookup("SorobanTransactionMetaExt")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)],["returnValue",e.lookup("ScVal")],["diagnosticEvents",e.varArray(e.lookup("DiagnosticEvent"),2147483647)]]),e.struct("TransactionMetaV3",[["ext",e.lookup("ExtensionPoint")],["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMeta"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")],["sorobanMeta",e.option(e.lookup("SorobanTransactionMeta"))]]),e.struct("OperationMetaV2",[["ext",e.lookup("ExtensionPoint")],["changes",e.lookup("LedgerEntryChanges")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)]]),e.struct("SorobanTransactionMetaV2",[["ext",e.lookup("SorobanTransactionMetaExt")],["returnValue",e.option(e.lookup("ScVal"))]]),e.enum("TransactionEventStage",{transactionEventStageBeforeAllTxes:0,transactionEventStageAfterTx:1,transactionEventStageAfterAllTxes:2}),e.struct("TransactionEvent",[["stage",e.lookup("TransactionEventStage")],["event",e.lookup("ContractEvent")]]),e.struct("TransactionMetaV4",[["ext",e.lookup("ExtensionPoint")],["txChangesBefore",e.lookup("LedgerEntryChanges")],["operations",e.varArray(e.lookup("OperationMetaV2"),2147483647)],["txChangesAfter",e.lookup("LedgerEntryChanges")],["sorobanMeta",e.option(e.lookup("SorobanTransactionMetaV2"))],["events",e.varArray(e.lookup("TransactionEvent"),2147483647)],["diagnosticEvents",e.varArray(e.lookup("DiagnosticEvent"),2147483647)]]),e.struct("InvokeHostFunctionSuccessPreImage",[["returnValue",e.lookup("ScVal")],["events",e.varArray(e.lookup("ContractEvent"),2147483647)]]),e.union("TransactionMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"operations"],[1,"v1"],[2,"v2"],[3,"v3"],[4,"v4"]],arms:{operations:e.varArray(e.lookup("OperationMeta"),2147483647),v1:e.lookup("TransactionMetaV1"),v2:e.lookup("TransactionMetaV2"),v3:e.lookup("TransactionMetaV3"),v4:e.lookup("TransactionMetaV4")}}),e.struct("TransactionResultMeta",[["result",e.lookup("TransactionResultPair")],["feeProcessing",e.lookup("LedgerEntryChanges")],["txApplyProcessing",e.lookup("TransactionMeta")]]),e.struct("TransactionResultMetaV1",[["ext",e.lookup("ExtensionPoint")],["result",e.lookup("TransactionResultPair")],["feeProcessing",e.lookup("LedgerEntryChanges")],["txApplyProcessing",e.lookup("TransactionMeta")],["postTxApplyFeeProcessing",e.lookup("LedgerEntryChanges")]]),e.struct("UpgradeEntryMeta",[["upgrade",e.lookup("LedgerUpgrade")],["changes",e.lookup("LedgerEntryChanges")]]),e.struct("LedgerCloseMetaV0",[["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("TransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)]]),e.struct("LedgerCloseMetaExtV1",[["ext",e.lookup("ExtensionPoint")],["sorobanFeeWrite1Kb",e.lookup("Int64")]]),e.union("LedgerCloseMetaExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"v1"]],arms:{v1:e.lookup("LedgerCloseMetaExtV1")}}),e.struct("LedgerCloseMetaV1",[["ext",e.lookup("LedgerCloseMetaExt")],["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("GeneralizedTransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)],["totalByteSizeOfLiveSorobanState",e.lookup("Uint64")],["evictedKeys",e.varArray(e.lookup("LedgerKey"),2147483647)],["unused",e.varArray(e.lookup("LedgerEntry"),2147483647)]]),e.struct("LedgerCloseMetaV2",[["ext",e.lookup("LedgerCloseMetaExt")],["ledgerHeader",e.lookup("LedgerHeaderHistoryEntry")],["txSet",e.lookup("GeneralizedTransactionSet")],["txProcessing",e.varArray(e.lookup("TransactionResultMetaV1"),2147483647)],["upgradesProcessing",e.varArray(e.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",e.varArray(e.lookup("ScpHistoryEntry"),2147483647)],["totalByteSizeOfLiveSorobanState",e.lookup("Uint64")],["evictedKeys",e.varArray(e.lookup("LedgerKey"),2147483647)]]),e.union("LedgerCloseMeta",{switchOn:e.int(),switchName:"v",switches:[[0,"v0"],[1,"v1"],[2,"v2"]],arms:{v0:e.lookup("LedgerCloseMetaV0"),v1:e.lookup("LedgerCloseMetaV1"),v2:e.lookup("LedgerCloseMetaV2")}}),e.enum("ErrorCode",{errMisc:0,errData:1,errConf:2,errAuth:3,errLoad:4}),e.struct("Error",[["code",e.lookup("ErrorCode")],["msg",e.string(100)]]),e.struct("SendMore",[["numMessages",e.lookup("Uint32")]]),e.struct("SendMoreExtended",[["numMessages",e.lookup("Uint32")],["numBytes",e.lookup("Uint32")]]),e.struct("AuthCert",[["pubkey",e.lookup("Curve25519Public")],["expiration",e.lookup("Uint64")],["sig",e.lookup("Signature")]]),e.struct("Hello",[["ledgerVersion",e.lookup("Uint32")],["overlayVersion",e.lookup("Uint32")],["overlayMinVersion",e.lookup("Uint32")],["networkId",e.lookup("Hash")],["versionStr",e.string(100)],["listeningPort",e.int()],["peerId",e.lookup("NodeId")],["cert",e.lookup("AuthCert")],["nonce",e.lookup("Uint256")]]),e.const("AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED",200),e.struct("Auth",[["flags",e.int()]]),e.enum("IpAddrType",{iPv4:0,iPv6:1}),e.union("PeerAddressIp",{switchOn:e.lookup("IpAddrType"),switchName:"type",switches:[["iPv4","ipv4"],["iPv6","ipv6"]],arms:{ipv4:e.opaque(4),ipv6:e.opaque(16)}}),e.struct("PeerAddress",[["ip",e.lookup("PeerAddressIp")],["port",e.lookup("Uint32")],["numFailures",e.lookup("Uint32")]]),e.enum("MessageType",{errorMsg:0,auth:2,dontHave:3,peers:5,getTxSet:6,txSet:7,generalizedTxSet:17,transaction:8,getScpQuorumset:9,scpQuorumset:10,scpMessage:11,getScpState:12,hello:13,sendMore:16,sendMoreExtended:20,floodAdvert:18,floodDemand:19,timeSlicedSurveyRequest:21,timeSlicedSurveyResponse:22,timeSlicedSurveyStartCollecting:23,timeSlicedSurveyStopCollecting:24}),e.struct("DontHave",[["type",e.lookup("MessageType")],["reqHash",e.lookup("Uint256")]]),e.enum("SurveyMessageCommandType",{timeSlicedSurveyTopology:1}),e.enum("SurveyMessageResponseType",{surveyTopologyResponseV2:2}),e.struct("TimeSlicedSurveyStartCollectingMessage",[["surveyorId",e.lookup("NodeId")],["nonce",e.lookup("Uint32")],["ledgerNum",e.lookup("Uint32")]]),e.struct("SignedTimeSlicedSurveyStartCollectingMessage",[["signature",e.lookup("Signature")],["startCollecting",e.lookup("TimeSlicedSurveyStartCollectingMessage")]]),e.struct("TimeSlicedSurveyStopCollectingMessage",[["surveyorId",e.lookup("NodeId")],["nonce",e.lookup("Uint32")],["ledgerNum",e.lookup("Uint32")]]),e.struct("SignedTimeSlicedSurveyStopCollectingMessage",[["signature",e.lookup("Signature")],["stopCollecting",e.lookup("TimeSlicedSurveyStopCollectingMessage")]]),e.struct("SurveyRequestMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["encryptionKey",e.lookup("Curve25519Public")],["commandType",e.lookup("SurveyMessageCommandType")]]),e.struct("TimeSlicedSurveyRequestMessage",[["request",e.lookup("SurveyRequestMessage")],["nonce",e.lookup("Uint32")],["inboundPeersIndex",e.lookup("Uint32")],["outboundPeersIndex",e.lookup("Uint32")]]),e.struct("SignedTimeSlicedSurveyRequestMessage",[["requestSignature",e.lookup("Signature")],["request",e.lookup("TimeSlicedSurveyRequestMessage")]]),e.typedef("EncryptedBody",e.varOpaque(64e3)),e.struct("SurveyResponseMessage",[["surveyorPeerId",e.lookup("NodeId")],["surveyedPeerId",e.lookup("NodeId")],["ledgerNum",e.lookup("Uint32")],["commandType",e.lookup("SurveyMessageCommandType")],["encryptedBody",e.lookup("EncryptedBody")]]),e.struct("TimeSlicedSurveyResponseMessage",[["response",e.lookup("SurveyResponseMessage")],["nonce",e.lookup("Uint32")]]),e.struct("SignedTimeSlicedSurveyResponseMessage",[["responseSignature",e.lookup("Signature")],["response",e.lookup("TimeSlicedSurveyResponseMessage")]]),e.struct("PeerStats",[["id",e.lookup("NodeId")],["versionStr",e.string(100)],["messagesRead",e.lookup("Uint64")],["messagesWritten",e.lookup("Uint64")],["bytesRead",e.lookup("Uint64")],["bytesWritten",e.lookup("Uint64")],["secondsConnected",e.lookup("Uint64")],["uniqueFloodBytesRecv",e.lookup("Uint64")],["duplicateFloodBytesRecv",e.lookup("Uint64")],["uniqueFetchBytesRecv",e.lookup("Uint64")],["duplicateFetchBytesRecv",e.lookup("Uint64")],["uniqueFloodMessageRecv",e.lookup("Uint64")],["duplicateFloodMessageRecv",e.lookup("Uint64")],["uniqueFetchMessageRecv",e.lookup("Uint64")],["duplicateFetchMessageRecv",e.lookup("Uint64")]]),e.struct("TimeSlicedNodeData",[["addedAuthenticatedPeers",e.lookup("Uint32")],["droppedAuthenticatedPeers",e.lookup("Uint32")],["totalInboundPeerCount",e.lookup("Uint32")],["totalOutboundPeerCount",e.lookup("Uint32")],["p75ScpFirstToSelfLatencyMs",e.lookup("Uint32")],["p75ScpSelfToOtherLatencyMs",e.lookup("Uint32")],["lostSyncCount",e.lookup("Uint32")],["isValidator",e.bool()],["maxInboundPeerCount",e.lookup("Uint32")],["maxOutboundPeerCount",e.lookup("Uint32")]]),e.struct("TimeSlicedPeerData",[["peerStats",e.lookup("PeerStats")],["averageLatencyMs",e.lookup("Uint32")]]),e.typedef("TimeSlicedPeerDataList",e.varArray(e.lookup("TimeSlicedPeerData"),25)),e.struct("TopologyResponseBodyV2",[["inboundPeers",e.lookup("TimeSlicedPeerDataList")],["outboundPeers",e.lookup("TimeSlicedPeerDataList")],["nodeData",e.lookup("TimeSlicedNodeData")]]),e.union("SurveyResponseBody",{switchOn:e.lookup("SurveyMessageResponseType"),switchName:"type",switches:[["surveyTopologyResponseV2","topologyResponseBodyV2"]],arms:{topologyResponseBodyV2:e.lookup("TopologyResponseBodyV2")}}),e.const("TX_ADVERT_VECTOR_MAX_SIZE",1e3),e.typedef("TxAdvertVector",e.varArray(e.lookup("Hash"),e.lookup("TX_ADVERT_VECTOR_MAX_SIZE"))),e.struct("FloodAdvert",[["txHashes",e.lookup("TxAdvertVector")]]),e.const("TX_DEMAND_VECTOR_MAX_SIZE",1e3),e.typedef("TxDemandVector",e.varArray(e.lookup("Hash"),e.lookup("TX_DEMAND_VECTOR_MAX_SIZE"))),e.struct("FloodDemand",[["txHashes",e.lookup("TxDemandVector")]]),e.union("StellarMessage",{switchOn:e.lookup("MessageType"),switchName:"type",switches:[["errorMsg","error"],["hello","hello"],["auth","auth"],["dontHave","dontHave"],["peers","peers"],["getTxSet","txSetHash"],["txSet","txSet"],["generalizedTxSet","generalizedTxSet"],["transaction","transaction"],["timeSlicedSurveyRequest","signedTimeSlicedSurveyRequestMessage"],["timeSlicedSurveyResponse","signedTimeSlicedSurveyResponseMessage"],["timeSlicedSurveyStartCollecting","signedTimeSlicedSurveyStartCollectingMessage"],["timeSlicedSurveyStopCollecting","signedTimeSlicedSurveyStopCollectingMessage"],["getScpQuorumset","qSetHash"],["scpQuorumset","qSet"],["scpMessage","envelope"],["getScpState","getScpLedgerSeq"],["sendMore","sendMoreMessage"],["sendMoreExtended","sendMoreExtendedMessage"],["floodAdvert","floodAdvert"],["floodDemand","floodDemand"]],arms:{error:e.lookup("Error"),hello:e.lookup("Hello"),auth:e.lookup("Auth"),dontHave:e.lookup("DontHave"),peers:e.varArray(e.lookup("PeerAddress"),100),txSetHash:e.lookup("Uint256"),txSet:e.lookup("TransactionSet"),generalizedTxSet:e.lookup("GeneralizedTransactionSet"),transaction:e.lookup("TransactionEnvelope"),signedTimeSlicedSurveyRequestMessage:e.lookup("SignedTimeSlicedSurveyRequestMessage"),signedTimeSlicedSurveyResponseMessage:e.lookup("SignedTimeSlicedSurveyResponseMessage"),signedTimeSlicedSurveyStartCollectingMessage:e.lookup("SignedTimeSlicedSurveyStartCollectingMessage"),signedTimeSlicedSurveyStopCollectingMessage:e.lookup("SignedTimeSlicedSurveyStopCollectingMessage"),qSetHash:e.lookup("Uint256"),qSet:e.lookup("ScpQuorumSet"),envelope:e.lookup("ScpEnvelope"),getScpLedgerSeq:e.lookup("Uint32"),sendMoreMessage:e.lookup("SendMore"),sendMoreExtendedMessage:e.lookup("SendMoreExtended"),floodAdvert:e.lookup("FloodAdvert"),floodDemand:e.lookup("FloodDemand")}}),e.struct("AuthenticatedMessageV0",[["sequence",e.lookup("Uint64")],["message",e.lookup("StellarMessage")],["mac",e.lookup("HmacSha256Mac")]]),e.union("AuthenticatedMessage",{switchOn:e.lookup("Uint32"),switchName:"v",switches:[[0,"v0"]],arms:{v0:e.lookup("AuthenticatedMessageV0")}}),e.const("MAX_OPS_PER_TX",100),e.union("LiquidityPoolParameters",{switchOn:e.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:e.lookup("LiquidityPoolConstantProductParameters")}}),e.struct("MuxedAccountMed25519",[["id",e.lookup("Uint64")],["ed25519",e.lookup("Uint256")]]),e.union("MuxedAccount",{switchOn:e.lookup("CryptoKeyType"),switchName:"type",switches:[["keyTypeEd25519","ed25519"],["keyTypeMuxedEd25519","med25519"]],arms:{ed25519:e.lookup("Uint256"),med25519:e.lookup("MuxedAccountMed25519")}}),e.struct("DecoratedSignature",[["hint",e.lookup("SignatureHint")],["signature",e.lookup("Signature")]]),e.enum("OperationType",{createAccount:0,payment:1,pathPaymentStrictReceive:2,manageSellOffer:3,createPassiveSellOffer:4,setOptions:5,changeTrust:6,allowTrust:7,accountMerge:8,inflation:9,manageData:10,bumpSequence:11,manageBuyOffer:12,pathPaymentStrictSend:13,createClaimableBalance:14,claimClaimableBalance:15,beginSponsoringFutureReserves:16,endSponsoringFutureReserves:17,revokeSponsorship:18,clawback:19,clawbackClaimableBalance:20,setTrustLineFlags:21,liquidityPoolDeposit:22,liquidityPoolWithdraw:23,invokeHostFunction:24,extendFootprintTtl:25,restoreFootprint:26}),e.struct("CreateAccountOp",[["destination",e.lookup("AccountId")],["startingBalance",e.lookup("Int64")]]),e.struct("PaymentOp",[["destination",e.lookup("MuxedAccount")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveOp",[["sendAsset",e.lookup("Asset")],["sendMax",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destAmount",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("PathPaymentStrictSendOp",[["sendAsset",e.lookup("Asset")],["sendAmount",e.lookup("Int64")],["destination",e.lookup("MuxedAccount")],["destAsset",e.lookup("Asset")],["destMin",e.lookup("Int64")],["path",e.varArray(e.lookup("Asset"),5)]]),e.struct("ManageSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("ManageBuyOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["buyAmount",e.lookup("Int64")],["price",e.lookup("Price")],["offerId",e.lookup("Int64")]]),e.struct("CreatePassiveSellOfferOp",[["selling",e.lookup("Asset")],["buying",e.lookup("Asset")],["amount",e.lookup("Int64")],["price",e.lookup("Price")]]),e.struct("SetOptionsOp",[["inflationDest",e.option(e.lookup("AccountId"))],["clearFlags",e.option(e.lookup("Uint32"))],["setFlags",e.option(e.lookup("Uint32"))],["masterWeight",e.option(e.lookup("Uint32"))],["lowThreshold",e.option(e.lookup("Uint32"))],["medThreshold",e.option(e.lookup("Uint32"))],["highThreshold",e.option(e.lookup("Uint32"))],["homeDomain",e.option(e.lookup("String32"))],["signer",e.option(e.lookup("Signer"))]]),e.union("ChangeTrustAsset",{switchOn:e.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",e.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPool"]],arms:{alphaNum4:e.lookup("AlphaNum4"),alphaNum12:e.lookup("AlphaNum12"),liquidityPool:e.lookup("LiquidityPoolParameters")}}),e.struct("ChangeTrustOp",[["line",e.lookup("ChangeTrustAsset")],["limit",e.lookup("Int64")]]),e.struct("AllowTrustOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("AssetCode")],["authorize",e.lookup("Uint32")]]),e.struct("ManageDataOp",[["dataName",e.lookup("String64")],["dataValue",e.option(e.lookup("DataValue"))]]),e.struct("BumpSequenceOp",[["bumpTo",e.lookup("SequenceNumber")]]),e.struct("CreateClaimableBalanceOp",[["asset",e.lookup("Asset")],["amount",e.lookup("Int64")],["claimants",e.varArray(e.lookup("Claimant"),10)]]),e.struct("ClaimClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("BeginSponsoringFutureReservesOp",[["sponsoredId",e.lookup("AccountId")]]),e.enum("RevokeSponsorshipType",{revokeSponsorshipLedgerEntry:0,revokeSponsorshipSigner:1}),e.struct("RevokeSponsorshipOpSigner",[["accountId",e.lookup("AccountId")],["signerKey",e.lookup("SignerKey")]]),e.union("RevokeSponsorshipOp",{switchOn:e.lookup("RevokeSponsorshipType"),switchName:"type",switches:[["revokeSponsorshipLedgerEntry","ledgerKey"],["revokeSponsorshipSigner","signer"]],arms:{ledgerKey:e.lookup("LedgerKey"),signer:e.lookup("RevokeSponsorshipOpSigner")}}),e.struct("ClawbackOp",[["asset",e.lookup("Asset")],["from",e.lookup("MuxedAccount")],["amount",e.lookup("Int64")]]),e.struct("ClawbackClaimableBalanceOp",[["balanceId",e.lookup("ClaimableBalanceId")]]),e.struct("SetTrustLineFlagsOp",[["trustor",e.lookup("AccountId")],["asset",e.lookup("Asset")],["clearFlags",e.lookup("Uint32")],["setFlags",e.lookup("Uint32")]]),e.const("LIQUIDITY_POOL_FEE_V18",30),e.struct("LiquidityPoolDepositOp",[["liquidityPoolId",e.lookup("PoolId")],["maxAmountA",e.lookup("Int64")],["maxAmountB",e.lookup("Int64")],["minPrice",e.lookup("Price")],["maxPrice",e.lookup("Price")]]),e.struct("LiquidityPoolWithdrawOp",[["liquidityPoolId",e.lookup("PoolId")],["amount",e.lookup("Int64")],["minAmountA",e.lookup("Int64")],["minAmountB",e.lookup("Int64")]]),e.enum("HostFunctionType",{hostFunctionTypeInvokeContract:0,hostFunctionTypeCreateContract:1,hostFunctionTypeUploadContractWasm:2,hostFunctionTypeCreateContractV2:3}),e.enum("ContractIdPreimageType",{contractIdPreimageFromAddress:0,contractIdPreimageFromAsset:1}),e.struct("ContractIdPreimageFromAddress",[["address",e.lookup("ScAddress")],["salt",e.lookup("Uint256")]]),e.union("ContractIdPreimage",{switchOn:e.lookup("ContractIdPreimageType"),switchName:"type",switches:[["contractIdPreimageFromAddress","fromAddress"],["contractIdPreimageFromAsset","fromAsset"]],arms:{fromAddress:e.lookup("ContractIdPreimageFromAddress"),fromAsset:e.lookup("Asset")}}),e.struct("CreateContractArgs",[["contractIdPreimage",e.lookup("ContractIdPreimage")],["executable",e.lookup("ContractExecutable")]]),e.struct("CreateContractArgsV2",[["contractIdPreimage",e.lookup("ContractIdPreimage")],["executable",e.lookup("ContractExecutable")],["constructorArgs",e.varArray(e.lookup("ScVal"),2147483647)]]),e.struct("InvokeContractArgs",[["contractAddress",e.lookup("ScAddress")],["functionName",e.lookup("ScSymbol")],["args",e.varArray(e.lookup("ScVal"),2147483647)]]),e.union("HostFunction",{switchOn:e.lookup("HostFunctionType"),switchName:"type",switches:[["hostFunctionTypeInvokeContract","invokeContract"],["hostFunctionTypeCreateContract","createContract"],["hostFunctionTypeUploadContractWasm","wasm"],["hostFunctionTypeCreateContractV2","createContractV2"]],arms:{invokeContract:e.lookup("InvokeContractArgs"),createContract:e.lookup("CreateContractArgs"),wasm:e.varOpaque(),createContractV2:e.lookup("CreateContractArgsV2")}}),e.enum("SorobanAuthorizedFunctionType",{sorobanAuthorizedFunctionTypeContractFn:0,sorobanAuthorizedFunctionTypeCreateContractHostFn:1,sorobanAuthorizedFunctionTypeCreateContractV2HostFn:2}),e.union("SorobanAuthorizedFunction",{switchOn:e.lookup("SorobanAuthorizedFunctionType"),switchName:"type",switches:[["sorobanAuthorizedFunctionTypeContractFn","contractFn"],["sorobanAuthorizedFunctionTypeCreateContractHostFn","createContractHostFn"],["sorobanAuthorizedFunctionTypeCreateContractV2HostFn","createContractV2HostFn"]],arms:{contractFn:e.lookup("InvokeContractArgs"),createContractHostFn:e.lookup("CreateContractArgs"),createContractV2HostFn:e.lookup("CreateContractArgsV2")}}),e.struct("SorobanAuthorizedInvocation",[["function",e.lookup("SorobanAuthorizedFunction")],["subInvocations",e.varArray(e.lookup("SorobanAuthorizedInvocation"),2147483647)]]),e.struct("SorobanAddressCredentials",[["address",e.lookup("ScAddress")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["signature",e.lookup("ScVal")]]),e.enum("SorobanCredentialsType",{sorobanCredentialsSourceAccount:0,sorobanCredentialsAddress:1}),e.union("SorobanCredentials",{switchOn:e.lookup("SorobanCredentialsType"),switchName:"type",switches:[["sorobanCredentialsSourceAccount",e.void()],["sorobanCredentialsAddress","address"]],arms:{address:e.lookup("SorobanAddressCredentials")}}),e.struct("SorobanAuthorizationEntry",[["credentials",e.lookup("SorobanCredentials")],["rootInvocation",e.lookup("SorobanAuthorizedInvocation")]]),e.typedef("SorobanAuthorizationEntries",e.varArray(e.lookup("SorobanAuthorizationEntry"),2147483647)),e.struct("InvokeHostFunctionOp",[["hostFunction",e.lookup("HostFunction")],["auth",e.varArray(e.lookup("SorobanAuthorizationEntry"),2147483647)]]),e.struct("ExtendFootprintTtlOp",[["ext",e.lookup("ExtensionPoint")],["extendTo",e.lookup("Uint32")]]),e.struct("RestoreFootprintOp",[["ext",e.lookup("ExtensionPoint")]]),e.union("OperationBody",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountOp"],["payment","paymentOp"],["pathPaymentStrictReceive","pathPaymentStrictReceiveOp"],["manageSellOffer","manageSellOfferOp"],["createPassiveSellOffer","createPassiveSellOfferOp"],["setOptions","setOptionsOp"],["changeTrust","changeTrustOp"],["allowTrust","allowTrustOp"],["accountMerge","destination"],["inflation",e.void()],["manageData","manageDataOp"],["bumpSequence","bumpSequenceOp"],["manageBuyOffer","manageBuyOfferOp"],["pathPaymentStrictSend","pathPaymentStrictSendOp"],["createClaimableBalance","createClaimableBalanceOp"],["claimClaimableBalance","claimClaimableBalanceOp"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesOp"],["endSponsoringFutureReserves",e.void()],["revokeSponsorship","revokeSponsorshipOp"],["clawback","clawbackOp"],["clawbackClaimableBalance","clawbackClaimableBalanceOp"],["setTrustLineFlags","setTrustLineFlagsOp"],["liquidityPoolDeposit","liquidityPoolDepositOp"],["liquidityPoolWithdraw","liquidityPoolWithdrawOp"],["invokeHostFunction","invokeHostFunctionOp"],["extendFootprintTtl","extendFootprintTtlOp"],["restoreFootprint","restoreFootprintOp"]],arms:{createAccountOp:e.lookup("CreateAccountOp"),paymentOp:e.lookup("PaymentOp"),pathPaymentStrictReceiveOp:e.lookup("PathPaymentStrictReceiveOp"),manageSellOfferOp:e.lookup("ManageSellOfferOp"),createPassiveSellOfferOp:e.lookup("CreatePassiveSellOfferOp"),setOptionsOp:e.lookup("SetOptionsOp"),changeTrustOp:e.lookup("ChangeTrustOp"),allowTrustOp:e.lookup("AllowTrustOp"),destination:e.lookup("MuxedAccount"),manageDataOp:e.lookup("ManageDataOp"),bumpSequenceOp:e.lookup("BumpSequenceOp"),manageBuyOfferOp:e.lookup("ManageBuyOfferOp"),pathPaymentStrictSendOp:e.lookup("PathPaymentStrictSendOp"),createClaimableBalanceOp:e.lookup("CreateClaimableBalanceOp"),claimClaimableBalanceOp:e.lookup("ClaimClaimableBalanceOp"),beginSponsoringFutureReservesOp:e.lookup("BeginSponsoringFutureReservesOp"),revokeSponsorshipOp:e.lookup("RevokeSponsorshipOp"),clawbackOp:e.lookup("ClawbackOp"),clawbackClaimableBalanceOp:e.lookup("ClawbackClaimableBalanceOp"),setTrustLineFlagsOp:e.lookup("SetTrustLineFlagsOp"),liquidityPoolDepositOp:e.lookup("LiquidityPoolDepositOp"),liquidityPoolWithdrawOp:e.lookup("LiquidityPoolWithdrawOp"),invokeHostFunctionOp:e.lookup("InvokeHostFunctionOp"),extendFootprintTtlOp:e.lookup("ExtendFootprintTtlOp"),restoreFootprintOp:e.lookup("RestoreFootprintOp")}}),e.struct("Operation",[["sourceAccount",e.option(e.lookup("MuxedAccount"))],["body",e.lookup("OperationBody")]]),e.struct("HashIdPreimageOperationId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")]]),e.struct("HashIdPreimageRevokeId",[["sourceAccount",e.lookup("AccountId")],["seqNum",e.lookup("SequenceNumber")],["opNum",e.lookup("Uint32")],["liquidityPoolId",e.lookup("PoolId")],["asset",e.lookup("Asset")]]),e.struct("HashIdPreimageContractId",[["networkId",e.lookup("Hash")],["contractIdPreimage",e.lookup("ContractIdPreimage")]]),e.struct("HashIdPreimageSorobanAuthorization",[["networkId",e.lookup("Hash")],["nonce",e.lookup("Int64")],["signatureExpirationLedger",e.lookup("Uint32")],["invocation",e.lookup("SorobanAuthorizedInvocation")]]),e.union("HashIdPreimage",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeOpId","operationId"],["envelopeTypePoolRevokeOpId","revokeId"],["envelopeTypeContractId","contractId"],["envelopeTypeSorobanAuthorization","sorobanAuthorization"]],arms:{operationId:e.lookup("HashIdPreimageOperationId"),revokeId:e.lookup("HashIdPreimageRevokeId"),contractId:e.lookup("HashIdPreimageContractId"),sorobanAuthorization:e.lookup("HashIdPreimageSorobanAuthorization")}}),e.enum("MemoType",{memoNone:0,memoText:1,memoId:2,memoHash:3,memoReturn:4}),e.union("Memo",{switchOn:e.lookup("MemoType"),switchName:"type",switches:[["memoNone",e.void()],["memoText","text"],["memoId","id"],["memoHash","hash"],["memoReturn","retHash"]],arms:{text:e.string(28),id:e.lookup("Uint64"),hash:e.lookup("Hash"),retHash:e.lookup("Hash")}}),e.struct("TimeBounds",[["minTime",e.lookup("TimePoint")],["maxTime",e.lookup("TimePoint")]]),e.struct("LedgerBounds",[["minLedger",e.lookup("Uint32")],["maxLedger",e.lookup("Uint32")]]),e.struct("PreconditionsV2",[["timeBounds",e.option(e.lookup("TimeBounds"))],["ledgerBounds",e.option(e.lookup("LedgerBounds"))],["minSeqNum",e.option(e.lookup("SequenceNumber"))],["minSeqAge",e.lookup("Duration")],["minSeqLedgerGap",e.lookup("Uint32")],["extraSigners",e.varArray(e.lookup("SignerKey"),2)]]),e.enum("PreconditionType",{precondNone:0,precondTime:1,precondV2:2}),e.union("Preconditions",{switchOn:e.lookup("PreconditionType"),switchName:"type",switches:[["precondNone",e.void()],["precondTime","timeBounds"],["precondV2","v2"]],arms:{timeBounds:e.lookup("TimeBounds"),v2:e.lookup("PreconditionsV2")}}),e.struct("LedgerFootprint",[["readOnly",e.varArray(e.lookup("LedgerKey"),2147483647)],["readWrite",e.varArray(e.lookup("LedgerKey"),2147483647)]]),e.struct("SorobanResources",[["footprint",e.lookup("LedgerFootprint")],["instructions",e.lookup("Uint32")],["diskReadBytes",e.lookup("Uint32")],["writeBytes",e.lookup("Uint32")]]),e.struct("SorobanResourcesExtV0",[["archivedSorobanEntries",e.varArray(e.lookup("Uint32"),2147483647)]]),e.union("SorobanTransactionDataExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"resourceExt"]],arms:{resourceExt:e.lookup("SorobanResourcesExtV0")}}),e.struct("SorobanTransactionData",[["ext",e.lookup("SorobanTransactionDataExt")],["resources",e.lookup("SorobanResources")],["resourceFee",e.lookup("Int64")]]),e.union("TransactionV0Ext",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionV0",[["sourceAccountEd25519",e.lookup("Uint256")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["timeBounds",e.option(e.lookup("TimeBounds"))],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionV0Ext")]]),e.struct("TransactionV0Envelope",[["tx",e.lookup("TransactionV0")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()],[1,"sorobanData"]],arms:{sorobanData:e.lookup("SorobanTransactionData")}}),e.struct("Transaction",[["sourceAccount",e.lookup("MuxedAccount")],["fee",e.lookup("Uint32")],["seqNum",e.lookup("SequenceNumber")],["cond",e.lookup("Preconditions")],["memo",e.lookup("Memo")],["operations",e.varArray(e.lookup("Operation"),e.lookup("MAX_OPS_PER_TX"))],["ext",e.lookup("TransactionExt")]]),e.struct("TransactionV1Envelope",[["tx",e.lookup("Transaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("FeeBumpTransactionInnerTx",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","v1"]],arms:{v1:e.lookup("TransactionV1Envelope")}}),e.union("FeeBumpTransactionExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("FeeBumpTransaction",[["feeSource",e.lookup("MuxedAccount")],["fee",e.lookup("Int64")],["innerTx",e.lookup("FeeBumpTransactionInnerTx")],["ext",e.lookup("FeeBumpTransactionExt")]]),e.struct("FeeBumpTransactionEnvelope",[["tx",e.lookup("FeeBumpTransaction")],["signatures",e.varArray(e.lookup("DecoratedSignature"),20)]]),e.union("TransactionEnvelope",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTxV0","v0"],["envelopeTypeTx","v1"],["envelopeTypeTxFeeBump","feeBump"]],arms:{v0:e.lookup("TransactionV0Envelope"),v1:e.lookup("TransactionV1Envelope"),feeBump:e.lookup("FeeBumpTransactionEnvelope")}}),e.union("TransactionSignaturePayloadTaggedTransaction",{switchOn:e.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","tx"],["envelopeTypeTxFeeBump","feeBump"]],arms:{tx:e.lookup("Transaction"),feeBump:e.lookup("FeeBumpTransaction")}}),e.struct("TransactionSignaturePayload",[["networkId",e.lookup("Hash")],["taggedTransaction",e.lookup("TransactionSignaturePayloadTaggedTransaction")]]),e.enum("ClaimAtomType",{claimAtomTypeV0:0,claimAtomTypeOrderBook:1,claimAtomTypeLiquidityPool:2}),e.struct("ClaimOfferAtomV0",[["sellerEd25519",e.lookup("Uint256")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimOfferAtom",[["sellerId",e.lookup("AccountId")],["offerId",e.lookup("Int64")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.struct("ClaimLiquidityAtom",[["liquidityPoolId",e.lookup("PoolId")],["assetSold",e.lookup("Asset")],["amountSold",e.lookup("Int64")],["assetBought",e.lookup("Asset")],["amountBought",e.lookup("Int64")]]),e.union("ClaimAtom",{switchOn:e.lookup("ClaimAtomType"),switchName:"type",switches:[["claimAtomTypeV0","v0"],["claimAtomTypeOrderBook","orderBook"],["claimAtomTypeLiquidityPool","liquidityPool"]],arms:{v0:e.lookup("ClaimOfferAtomV0"),orderBook:e.lookup("ClaimOfferAtom"),liquidityPool:e.lookup("ClaimLiquidityAtom")}}),e.enum("CreateAccountResultCode",{createAccountSuccess:0,createAccountMalformed:-1,createAccountUnderfunded:-2,createAccountLowReserve:-3,createAccountAlreadyExist:-4}),e.union("CreateAccountResult",{switchOn:e.lookup("CreateAccountResultCode"),switchName:"code",switches:[["createAccountSuccess",e.void()],["createAccountMalformed",e.void()],["createAccountUnderfunded",e.void()],["createAccountLowReserve",e.void()],["createAccountAlreadyExist",e.void()]],arms:{}}),e.enum("PaymentResultCode",{paymentSuccess:0,paymentMalformed:-1,paymentUnderfunded:-2,paymentSrcNoTrust:-3,paymentSrcNotAuthorized:-4,paymentNoDestination:-5,paymentNoTrust:-6,paymentNotAuthorized:-7,paymentLineFull:-8,paymentNoIssuer:-9}),e.union("PaymentResult",{switchOn:e.lookup("PaymentResultCode"),switchName:"code",switches:[["paymentSuccess",e.void()],["paymentMalformed",e.void()],["paymentUnderfunded",e.void()],["paymentSrcNoTrust",e.void()],["paymentSrcNotAuthorized",e.void()],["paymentNoDestination",e.void()],["paymentNoTrust",e.void()],["paymentNotAuthorized",e.void()],["paymentLineFull",e.void()],["paymentNoIssuer",e.void()]],arms:{}}),e.enum("PathPaymentStrictReceiveResultCode",{pathPaymentStrictReceiveSuccess:0,pathPaymentStrictReceiveMalformed:-1,pathPaymentStrictReceiveUnderfunded:-2,pathPaymentStrictReceiveSrcNoTrust:-3,pathPaymentStrictReceiveSrcNotAuthorized:-4,pathPaymentStrictReceiveNoDestination:-5,pathPaymentStrictReceiveNoTrust:-6,pathPaymentStrictReceiveNotAuthorized:-7,pathPaymentStrictReceiveLineFull:-8,pathPaymentStrictReceiveNoIssuer:-9,pathPaymentStrictReceiveTooFewOffers:-10,pathPaymentStrictReceiveOfferCrossSelf:-11,pathPaymentStrictReceiveOverSendmax:-12}),e.struct("SimplePaymentResult",[["destination",e.lookup("AccountId")],["asset",e.lookup("Asset")],["amount",e.lookup("Int64")]]),e.struct("PathPaymentStrictReceiveResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictReceiveResult",{switchOn:e.lookup("PathPaymentStrictReceiveResultCode"),switchName:"code",switches:[["pathPaymentStrictReceiveSuccess","success"],["pathPaymentStrictReceiveMalformed",e.void()],["pathPaymentStrictReceiveUnderfunded",e.void()],["pathPaymentStrictReceiveSrcNoTrust",e.void()],["pathPaymentStrictReceiveSrcNotAuthorized",e.void()],["pathPaymentStrictReceiveNoDestination",e.void()],["pathPaymentStrictReceiveNoTrust",e.void()],["pathPaymentStrictReceiveNotAuthorized",e.void()],["pathPaymentStrictReceiveLineFull",e.void()],["pathPaymentStrictReceiveNoIssuer","noIssuer"],["pathPaymentStrictReceiveTooFewOffers",e.void()],["pathPaymentStrictReceiveOfferCrossSelf",e.void()],["pathPaymentStrictReceiveOverSendmax",e.void()]],arms:{success:e.lookup("PathPaymentStrictReceiveResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("PathPaymentStrictSendResultCode",{pathPaymentStrictSendSuccess:0,pathPaymentStrictSendMalformed:-1,pathPaymentStrictSendUnderfunded:-2,pathPaymentStrictSendSrcNoTrust:-3,pathPaymentStrictSendSrcNotAuthorized:-4,pathPaymentStrictSendNoDestination:-5,pathPaymentStrictSendNoTrust:-6,pathPaymentStrictSendNotAuthorized:-7,pathPaymentStrictSendLineFull:-8,pathPaymentStrictSendNoIssuer:-9,pathPaymentStrictSendTooFewOffers:-10,pathPaymentStrictSendOfferCrossSelf:-11,pathPaymentStrictSendUnderDestmin:-12}),e.struct("PathPaymentStrictSendResultSuccess",[["offers",e.varArray(e.lookup("ClaimAtom"),2147483647)],["last",e.lookup("SimplePaymentResult")]]),e.union("PathPaymentStrictSendResult",{switchOn:e.lookup("PathPaymentStrictSendResultCode"),switchName:"code",switches:[["pathPaymentStrictSendSuccess","success"],["pathPaymentStrictSendMalformed",e.void()],["pathPaymentStrictSendUnderfunded",e.void()],["pathPaymentStrictSendSrcNoTrust",e.void()],["pathPaymentStrictSendSrcNotAuthorized",e.void()],["pathPaymentStrictSendNoDestination",e.void()],["pathPaymentStrictSendNoTrust",e.void()],["pathPaymentStrictSendNotAuthorized",e.void()],["pathPaymentStrictSendLineFull",e.void()],["pathPaymentStrictSendNoIssuer","noIssuer"],["pathPaymentStrictSendTooFewOffers",e.void()],["pathPaymentStrictSendOfferCrossSelf",e.void()],["pathPaymentStrictSendUnderDestmin",e.void()]],arms:{success:e.lookup("PathPaymentStrictSendResultSuccess"),noIssuer:e.lookup("Asset")}}),e.enum("ManageSellOfferResultCode",{manageSellOfferSuccess:0,manageSellOfferMalformed:-1,manageSellOfferSellNoTrust:-2,manageSellOfferBuyNoTrust:-3,manageSellOfferSellNotAuthorized:-4,manageSellOfferBuyNotAuthorized:-5,manageSellOfferLineFull:-6,manageSellOfferUnderfunded:-7,manageSellOfferCrossSelf:-8,manageSellOfferSellNoIssuer:-9,manageSellOfferBuyNoIssuer:-10,manageSellOfferNotFound:-11,manageSellOfferLowReserve:-12}),e.enum("ManageOfferEffect",{manageOfferCreated:0,manageOfferUpdated:1,manageOfferDeleted:2}),e.union("ManageOfferSuccessResultOffer",{switchOn:e.lookup("ManageOfferEffect"),switchName:"effect",switches:[["manageOfferCreated","offer"],["manageOfferUpdated","offer"],["manageOfferDeleted",e.void()]],arms:{offer:e.lookup("OfferEntry")}}),e.struct("ManageOfferSuccessResult",[["offersClaimed",e.varArray(e.lookup("ClaimAtom"),2147483647)],["offer",e.lookup("ManageOfferSuccessResultOffer")]]),e.union("ManageSellOfferResult",{switchOn:e.lookup("ManageSellOfferResultCode"),switchName:"code",switches:[["manageSellOfferSuccess","success"],["manageSellOfferMalformed",e.void()],["manageSellOfferSellNoTrust",e.void()],["manageSellOfferBuyNoTrust",e.void()],["manageSellOfferSellNotAuthorized",e.void()],["manageSellOfferBuyNotAuthorized",e.void()],["manageSellOfferLineFull",e.void()],["manageSellOfferUnderfunded",e.void()],["manageSellOfferCrossSelf",e.void()],["manageSellOfferSellNoIssuer",e.void()],["manageSellOfferBuyNoIssuer",e.void()],["manageSellOfferNotFound",e.void()],["manageSellOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("ManageBuyOfferResultCode",{manageBuyOfferSuccess:0,manageBuyOfferMalformed:-1,manageBuyOfferSellNoTrust:-2,manageBuyOfferBuyNoTrust:-3,manageBuyOfferSellNotAuthorized:-4,manageBuyOfferBuyNotAuthorized:-5,manageBuyOfferLineFull:-6,manageBuyOfferUnderfunded:-7,manageBuyOfferCrossSelf:-8,manageBuyOfferSellNoIssuer:-9,manageBuyOfferBuyNoIssuer:-10,manageBuyOfferNotFound:-11,manageBuyOfferLowReserve:-12}),e.union("ManageBuyOfferResult",{switchOn:e.lookup("ManageBuyOfferResultCode"),switchName:"code",switches:[["manageBuyOfferSuccess","success"],["manageBuyOfferMalformed",e.void()],["manageBuyOfferSellNoTrust",e.void()],["manageBuyOfferBuyNoTrust",e.void()],["manageBuyOfferSellNotAuthorized",e.void()],["manageBuyOfferBuyNotAuthorized",e.void()],["manageBuyOfferLineFull",e.void()],["manageBuyOfferUnderfunded",e.void()],["manageBuyOfferCrossSelf",e.void()],["manageBuyOfferSellNoIssuer",e.void()],["manageBuyOfferBuyNoIssuer",e.void()],["manageBuyOfferNotFound",e.void()],["manageBuyOfferLowReserve",e.void()]],arms:{success:e.lookup("ManageOfferSuccessResult")}}),e.enum("SetOptionsResultCode",{setOptionsSuccess:0,setOptionsLowReserve:-1,setOptionsTooManySigners:-2,setOptionsBadFlags:-3,setOptionsInvalidInflation:-4,setOptionsCantChange:-5,setOptionsUnknownFlag:-6,setOptionsThresholdOutOfRange:-7,setOptionsBadSigner:-8,setOptionsInvalidHomeDomain:-9,setOptionsAuthRevocableRequired:-10}),e.union("SetOptionsResult",{switchOn:e.lookup("SetOptionsResultCode"),switchName:"code",switches:[["setOptionsSuccess",e.void()],["setOptionsLowReserve",e.void()],["setOptionsTooManySigners",e.void()],["setOptionsBadFlags",e.void()],["setOptionsInvalidInflation",e.void()],["setOptionsCantChange",e.void()],["setOptionsUnknownFlag",e.void()],["setOptionsThresholdOutOfRange",e.void()],["setOptionsBadSigner",e.void()],["setOptionsInvalidHomeDomain",e.void()],["setOptionsAuthRevocableRequired",e.void()]],arms:{}}),e.enum("ChangeTrustResultCode",{changeTrustSuccess:0,changeTrustMalformed:-1,changeTrustNoIssuer:-2,changeTrustInvalidLimit:-3,changeTrustLowReserve:-4,changeTrustSelfNotAllowed:-5,changeTrustTrustLineMissing:-6,changeTrustCannotDelete:-7,changeTrustNotAuthMaintainLiabilities:-8}),e.union("ChangeTrustResult",{switchOn:e.lookup("ChangeTrustResultCode"),switchName:"code",switches:[["changeTrustSuccess",e.void()],["changeTrustMalformed",e.void()],["changeTrustNoIssuer",e.void()],["changeTrustInvalidLimit",e.void()],["changeTrustLowReserve",e.void()],["changeTrustSelfNotAllowed",e.void()],["changeTrustTrustLineMissing",e.void()],["changeTrustCannotDelete",e.void()],["changeTrustNotAuthMaintainLiabilities",e.void()]],arms:{}}),e.enum("AllowTrustResultCode",{allowTrustSuccess:0,allowTrustMalformed:-1,allowTrustNoTrustLine:-2,allowTrustTrustNotRequired:-3,allowTrustCantRevoke:-4,allowTrustSelfNotAllowed:-5,allowTrustLowReserve:-6}),e.union("AllowTrustResult",{switchOn:e.lookup("AllowTrustResultCode"),switchName:"code",switches:[["allowTrustSuccess",e.void()],["allowTrustMalformed",e.void()],["allowTrustNoTrustLine",e.void()],["allowTrustTrustNotRequired",e.void()],["allowTrustCantRevoke",e.void()],["allowTrustSelfNotAllowed",e.void()],["allowTrustLowReserve",e.void()]],arms:{}}),e.enum("AccountMergeResultCode",{accountMergeSuccess:0,accountMergeMalformed:-1,accountMergeNoAccount:-2,accountMergeImmutableSet:-3,accountMergeHasSubEntries:-4,accountMergeSeqnumTooFar:-5,accountMergeDestFull:-6,accountMergeIsSponsor:-7}),e.union("AccountMergeResult",{switchOn:e.lookup("AccountMergeResultCode"),switchName:"code",switches:[["accountMergeSuccess","sourceAccountBalance"],["accountMergeMalformed",e.void()],["accountMergeNoAccount",e.void()],["accountMergeImmutableSet",e.void()],["accountMergeHasSubEntries",e.void()],["accountMergeSeqnumTooFar",e.void()],["accountMergeDestFull",e.void()],["accountMergeIsSponsor",e.void()]],arms:{sourceAccountBalance:e.lookup("Int64")}}),e.enum("InflationResultCode",{inflationSuccess:0,inflationNotTime:-1}),e.struct("InflationPayout",[["destination",e.lookup("AccountId")],["amount",e.lookup("Int64")]]),e.union("InflationResult",{switchOn:e.lookup("InflationResultCode"),switchName:"code",switches:[["inflationSuccess","payouts"],["inflationNotTime",e.void()]],arms:{payouts:e.varArray(e.lookup("InflationPayout"),2147483647)}}),e.enum("ManageDataResultCode",{manageDataSuccess:0,manageDataNotSupportedYet:-1,manageDataNameNotFound:-2,manageDataLowReserve:-3,manageDataInvalidName:-4}),e.union("ManageDataResult",{switchOn:e.lookup("ManageDataResultCode"),switchName:"code",switches:[["manageDataSuccess",e.void()],["manageDataNotSupportedYet",e.void()],["manageDataNameNotFound",e.void()],["manageDataLowReserve",e.void()],["manageDataInvalidName",e.void()]],arms:{}}),e.enum("BumpSequenceResultCode",{bumpSequenceSuccess:0,bumpSequenceBadSeq:-1}),e.union("BumpSequenceResult",{switchOn:e.lookup("BumpSequenceResultCode"),switchName:"code",switches:[["bumpSequenceSuccess",e.void()],["bumpSequenceBadSeq",e.void()]],arms:{}}),e.enum("CreateClaimableBalanceResultCode",{createClaimableBalanceSuccess:0,createClaimableBalanceMalformed:-1,createClaimableBalanceLowReserve:-2,createClaimableBalanceNoTrust:-3,createClaimableBalanceNotAuthorized:-4,createClaimableBalanceUnderfunded:-5}),e.union("CreateClaimableBalanceResult",{switchOn:e.lookup("CreateClaimableBalanceResultCode"),switchName:"code",switches:[["createClaimableBalanceSuccess","balanceId"],["createClaimableBalanceMalformed",e.void()],["createClaimableBalanceLowReserve",e.void()],["createClaimableBalanceNoTrust",e.void()],["createClaimableBalanceNotAuthorized",e.void()],["createClaimableBalanceUnderfunded",e.void()]],arms:{balanceId:e.lookup("ClaimableBalanceId")}}),e.enum("ClaimClaimableBalanceResultCode",{claimClaimableBalanceSuccess:0,claimClaimableBalanceDoesNotExist:-1,claimClaimableBalanceCannotClaim:-2,claimClaimableBalanceLineFull:-3,claimClaimableBalanceNoTrust:-4,claimClaimableBalanceNotAuthorized:-5}),e.union("ClaimClaimableBalanceResult",{switchOn:e.lookup("ClaimClaimableBalanceResultCode"),switchName:"code",switches:[["claimClaimableBalanceSuccess",e.void()],["claimClaimableBalanceDoesNotExist",e.void()],["claimClaimableBalanceCannotClaim",e.void()],["claimClaimableBalanceLineFull",e.void()],["claimClaimableBalanceNoTrust",e.void()],["claimClaimableBalanceNotAuthorized",e.void()]],arms:{}}),e.enum("BeginSponsoringFutureReservesResultCode",{beginSponsoringFutureReservesSuccess:0,beginSponsoringFutureReservesMalformed:-1,beginSponsoringFutureReservesAlreadySponsored:-2,beginSponsoringFutureReservesRecursive:-3}),e.union("BeginSponsoringFutureReservesResult",{switchOn:e.lookup("BeginSponsoringFutureReservesResultCode"),switchName:"code",switches:[["beginSponsoringFutureReservesSuccess",e.void()],["beginSponsoringFutureReservesMalformed",e.void()],["beginSponsoringFutureReservesAlreadySponsored",e.void()],["beginSponsoringFutureReservesRecursive",e.void()]],arms:{}}),e.enum("EndSponsoringFutureReservesResultCode",{endSponsoringFutureReservesSuccess:0,endSponsoringFutureReservesNotSponsored:-1}),e.union("EndSponsoringFutureReservesResult",{switchOn:e.lookup("EndSponsoringFutureReservesResultCode"),switchName:"code",switches:[["endSponsoringFutureReservesSuccess",e.void()],["endSponsoringFutureReservesNotSponsored",e.void()]],arms:{}}),e.enum("RevokeSponsorshipResultCode",{revokeSponsorshipSuccess:0,revokeSponsorshipDoesNotExist:-1,revokeSponsorshipNotSponsor:-2,revokeSponsorshipLowReserve:-3,revokeSponsorshipOnlyTransferable:-4,revokeSponsorshipMalformed:-5}),e.union("RevokeSponsorshipResult",{switchOn:e.lookup("RevokeSponsorshipResultCode"),switchName:"code",switches:[["revokeSponsorshipSuccess",e.void()],["revokeSponsorshipDoesNotExist",e.void()],["revokeSponsorshipNotSponsor",e.void()],["revokeSponsorshipLowReserve",e.void()],["revokeSponsorshipOnlyTransferable",e.void()],["revokeSponsorshipMalformed",e.void()]],arms:{}}),e.enum("ClawbackResultCode",{clawbackSuccess:0,clawbackMalformed:-1,clawbackNotClawbackEnabled:-2,clawbackNoTrust:-3,clawbackUnderfunded:-4}),e.union("ClawbackResult",{switchOn:e.lookup("ClawbackResultCode"),switchName:"code",switches:[["clawbackSuccess",e.void()],["clawbackMalformed",e.void()],["clawbackNotClawbackEnabled",e.void()],["clawbackNoTrust",e.void()],["clawbackUnderfunded",e.void()]],arms:{}}),e.enum("ClawbackClaimableBalanceResultCode",{clawbackClaimableBalanceSuccess:0,clawbackClaimableBalanceDoesNotExist:-1,clawbackClaimableBalanceNotIssuer:-2,clawbackClaimableBalanceNotClawbackEnabled:-3}),e.union("ClawbackClaimableBalanceResult",{switchOn:e.lookup("ClawbackClaimableBalanceResultCode"),switchName:"code",switches:[["clawbackClaimableBalanceSuccess",e.void()],["clawbackClaimableBalanceDoesNotExist",e.void()],["clawbackClaimableBalanceNotIssuer",e.void()],["clawbackClaimableBalanceNotClawbackEnabled",e.void()]],arms:{}}),e.enum("SetTrustLineFlagsResultCode",{setTrustLineFlagsSuccess:0,setTrustLineFlagsMalformed:-1,setTrustLineFlagsNoTrustLine:-2,setTrustLineFlagsCantRevoke:-3,setTrustLineFlagsInvalidState:-4,setTrustLineFlagsLowReserve:-5}),e.union("SetTrustLineFlagsResult",{switchOn:e.lookup("SetTrustLineFlagsResultCode"),switchName:"code",switches:[["setTrustLineFlagsSuccess",e.void()],["setTrustLineFlagsMalformed",e.void()],["setTrustLineFlagsNoTrustLine",e.void()],["setTrustLineFlagsCantRevoke",e.void()],["setTrustLineFlagsInvalidState",e.void()],["setTrustLineFlagsLowReserve",e.void()]],arms:{}}),e.enum("LiquidityPoolDepositResultCode",{liquidityPoolDepositSuccess:0,liquidityPoolDepositMalformed:-1,liquidityPoolDepositNoTrust:-2,liquidityPoolDepositNotAuthorized:-3,liquidityPoolDepositUnderfunded:-4,liquidityPoolDepositLineFull:-5,liquidityPoolDepositBadPrice:-6,liquidityPoolDepositPoolFull:-7}),e.union("LiquidityPoolDepositResult",{switchOn:e.lookup("LiquidityPoolDepositResultCode"),switchName:"code",switches:[["liquidityPoolDepositSuccess",e.void()],["liquidityPoolDepositMalformed",e.void()],["liquidityPoolDepositNoTrust",e.void()],["liquidityPoolDepositNotAuthorized",e.void()],["liquidityPoolDepositUnderfunded",e.void()],["liquidityPoolDepositLineFull",e.void()],["liquidityPoolDepositBadPrice",e.void()],["liquidityPoolDepositPoolFull",e.void()]],arms:{}}),e.enum("LiquidityPoolWithdrawResultCode",{liquidityPoolWithdrawSuccess:0,liquidityPoolWithdrawMalformed:-1,liquidityPoolWithdrawNoTrust:-2,liquidityPoolWithdrawUnderfunded:-3,liquidityPoolWithdrawLineFull:-4,liquidityPoolWithdrawUnderMinimum:-5}),e.union("LiquidityPoolWithdrawResult",{switchOn:e.lookup("LiquidityPoolWithdrawResultCode"),switchName:"code",switches:[["liquidityPoolWithdrawSuccess",e.void()],["liquidityPoolWithdrawMalformed",e.void()],["liquidityPoolWithdrawNoTrust",e.void()],["liquidityPoolWithdrawUnderfunded",e.void()],["liquidityPoolWithdrawLineFull",e.void()],["liquidityPoolWithdrawUnderMinimum",e.void()]],arms:{}}),e.enum("InvokeHostFunctionResultCode",{invokeHostFunctionSuccess:0,invokeHostFunctionMalformed:-1,invokeHostFunctionTrapped:-2,invokeHostFunctionResourceLimitExceeded:-3,invokeHostFunctionEntryArchived:-4,invokeHostFunctionInsufficientRefundableFee:-5}),e.union("InvokeHostFunctionResult",{switchOn:e.lookup("InvokeHostFunctionResultCode"),switchName:"code",switches:[["invokeHostFunctionSuccess","success"],["invokeHostFunctionMalformed",e.void()],["invokeHostFunctionTrapped",e.void()],["invokeHostFunctionResourceLimitExceeded",e.void()],["invokeHostFunctionEntryArchived",e.void()],["invokeHostFunctionInsufficientRefundableFee",e.void()]],arms:{success:e.lookup("Hash")}}),e.enum("ExtendFootprintTtlResultCode",{extendFootprintTtlSuccess:0,extendFootprintTtlMalformed:-1,extendFootprintTtlResourceLimitExceeded:-2,extendFootprintTtlInsufficientRefundableFee:-3}),e.union("ExtendFootprintTtlResult",{switchOn:e.lookup("ExtendFootprintTtlResultCode"),switchName:"code",switches:[["extendFootprintTtlSuccess",e.void()],["extendFootprintTtlMalformed",e.void()],["extendFootprintTtlResourceLimitExceeded",e.void()],["extendFootprintTtlInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("RestoreFootprintResultCode",{restoreFootprintSuccess:0,restoreFootprintMalformed:-1,restoreFootprintResourceLimitExceeded:-2,restoreFootprintInsufficientRefundableFee:-3}),e.union("RestoreFootprintResult",{switchOn:e.lookup("RestoreFootprintResultCode"),switchName:"code",switches:[["restoreFootprintSuccess",e.void()],["restoreFootprintMalformed",e.void()],["restoreFootprintResourceLimitExceeded",e.void()],["restoreFootprintInsufficientRefundableFee",e.void()]],arms:{}}),e.enum("OperationResultCode",{opInner:0,opBadAuth:-1,opNoAccount:-2,opNotSupported:-3,opTooManySubentries:-4,opExceededWorkLimit:-5,opTooManySponsoring:-6}),e.union("OperationResultTr",{switchOn:e.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountResult"],["payment","paymentResult"],["pathPaymentStrictReceive","pathPaymentStrictReceiveResult"],["manageSellOffer","manageSellOfferResult"],["createPassiveSellOffer","createPassiveSellOfferResult"],["setOptions","setOptionsResult"],["changeTrust","changeTrustResult"],["allowTrust","allowTrustResult"],["accountMerge","accountMergeResult"],["inflation","inflationResult"],["manageData","manageDataResult"],["bumpSequence","bumpSeqResult"],["manageBuyOffer","manageBuyOfferResult"],["pathPaymentStrictSend","pathPaymentStrictSendResult"],["createClaimableBalance","createClaimableBalanceResult"],["claimClaimableBalance","claimClaimableBalanceResult"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesResult"],["endSponsoringFutureReserves","endSponsoringFutureReservesResult"],["revokeSponsorship","revokeSponsorshipResult"],["clawback","clawbackResult"],["clawbackClaimableBalance","clawbackClaimableBalanceResult"],["setTrustLineFlags","setTrustLineFlagsResult"],["liquidityPoolDeposit","liquidityPoolDepositResult"],["liquidityPoolWithdraw","liquidityPoolWithdrawResult"],["invokeHostFunction","invokeHostFunctionResult"],["extendFootprintTtl","extendFootprintTtlResult"],["restoreFootprint","restoreFootprintResult"]],arms:{createAccountResult:e.lookup("CreateAccountResult"),paymentResult:e.lookup("PaymentResult"),pathPaymentStrictReceiveResult:e.lookup("PathPaymentStrictReceiveResult"),manageSellOfferResult:e.lookup("ManageSellOfferResult"),createPassiveSellOfferResult:e.lookup("ManageSellOfferResult"),setOptionsResult:e.lookup("SetOptionsResult"),changeTrustResult:e.lookup("ChangeTrustResult"),allowTrustResult:e.lookup("AllowTrustResult"),accountMergeResult:e.lookup("AccountMergeResult"),inflationResult:e.lookup("InflationResult"),manageDataResult:e.lookup("ManageDataResult"),bumpSeqResult:e.lookup("BumpSequenceResult"),manageBuyOfferResult:e.lookup("ManageBuyOfferResult"),pathPaymentStrictSendResult:e.lookup("PathPaymentStrictSendResult"),createClaimableBalanceResult:e.lookup("CreateClaimableBalanceResult"),claimClaimableBalanceResult:e.lookup("ClaimClaimableBalanceResult"),beginSponsoringFutureReservesResult:e.lookup("BeginSponsoringFutureReservesResult"),endSponsoringFutureReservesResult:e.lookup("EndSponsoringFutureReservesResult"),revokeSponsorshipResult:e.lookup("RevokeSponsorshipResult"),clawbackResult:e.lookup("ClawbackResult"),clawbackClaimableBalanceResult:e.lookup("ClawbackClaimableBalanceResult"),setTrustLineFlagsResult:e.lookup("SetTrustLineFlagsResult"),liquidityPoolDepositResult:e.lookup("LiquidityPoolDepositResult"),liquidityPoolWithdrawResult:e.lookup("LiquidityPoolWithdrawResult"),invokeHostFunctionResult:e.lookup("InvokeHostFunctionResult"),extendFootprintTtlResult:e.lookup("ExtendFootprintTtlResult"),restoreFootprintResult:e.lookup("RestoreFootprintResult")}}),e.union("OperationResult",{switchOn:e.lookup("OperationResultCode"),switchName:"code",switches:[["opInner","tr"],["opBadAuth",e.void()],["opNoAccount",e.void()],["opNotSupported",e.void()],["opTooManySubentries",e.void()],["opExceededWorkLimit",e.void()],["opTooManySponsoring",e.void()]],arms:{tr:e.lookup("OperationResultTr")}}),e.enum("TransactionResultCode",{txFeeBumpInnerSuccess:1,txSuccess:0,txFailed:-1,txTooEarly:-2,txTooLate:-3,txMissingOperation:-4,txBadSeq:-5,txBadAuth:-6,txInsufficientBalance:-7,txNoAccount:-8,txInsufficientFee:-9,txBadAuthExtra:-10,txInternalError:-11,txNotSupported:-12,txFeeBumpInnerFailed:-13,txBadSponsorship:-14,txBadMinSeqAgeOrGap:-15,txMalformed:-16,txSorobanInvalid:-17}),e.union("InnerTransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("InnerTransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("InnerTransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("InnerTransactionResultResult")],["ext",e.lookup("InnerTransactionResultExt")]]),e.struct("InnerTransactionResultPair",[["transactionHash",e.lookup("Hash")],["result",e.lookup("InnerTransactionResult")]]),e.union("TransactionResultResult",{switchOn:e.lookup("TransactionResultCode"),switchName:"code",switches:[["txFeeBumpInnerSuccess","innerResultPair"],["txFeeBumpInnerFailed","innerResultPair"],["txSuccess","results"],["txFailed","results"],["txTooEarly",e.void()],["txTooLate",e.void()],["txMissingOperation",e.void()],["txBadSeq",e.void()],["txBadAuth",e.void()],["txInsufficientBalance",e.void()],["txNoAccount",e.void()],["txInsufficientFee",e.void()],["txBadAuthExtra",e.void()],["txInternalError",e.void()],["txNotSupported",e.void()],["txBadSponsorship",e.void()],["txBadMinSeqAgeOrGap",e.void()],["txMalformed",e.void()],["txSorobanInvalid",e.void()]],arms:{innerResultPair:e.lookup("InnerTransactionResultPair"),results:e.varArray(e.lookup("OperationResult"),2147483647)}}),e.union("TransactionResultExt",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.struct("TransactionResult",[["feeCharged",e.lookup("Int64")],["result",e.lookup("TransactionResultResult")],["ext",e.lookup("TransactionResultExt")]]),e.typedef("Hash",e.opaque(32)),e.typedef("Uint256",e.opaque(32)),e.typedef("Uint32",e.uint()),e.typedef("Int32",e.int()),e.typedef("Uint64",e.uhyper()),e.typedef("Int64",e.hyper()),e.typedef("TimePoint",e.lookup("Uint64")),e.typedef("Duration",e.lookup("Uint64")),e.union("ExtensionPoint",{switchOn:e.int(),switchName:"v",switches:[[0,e.void()]],arms:{}}),e.enum("CryptoKeyType",{keyTypeEd25519:0,keyTypePreAuthTx:1,keyTypeHashX:2,keyTypeEd25519SignedPayload:3,keyTypeMuxedEd25519:256}),e.enum("PublicKeyType",{publicKeyTypeEd25519:0}),e.enum("SignerKeyType",{signerKeyTypeEd25519:0,signerKeyTypePreAuthTx:1,signerKeyTypeHashX:2,signerKeyTypeEd25519SignedPayload:3}),e.union("PublicKey",{switchOn:e.lookup("PublicKeyType"),switchName:"type",switches:[["publicKeyTypeEd25519","ed25519"]],arms:{ed25519:e.lookup("Uint256")}}),e.struct("SignerKeyEd25519SignedPayload",[["ed25519",e.lookup("Uint256")],["payload",e.varOpaque(64)]]),e.union("SignerKey",{switchOn:e.lookup("SignerKeyType"),switchName:"type",switches:[["signerKeyTypeEd25519","ed25519"],["signerKeyTypePreAuthTx","preAuthTx"],["signerKeyTypeHashX","hashX"],["signerKeyTypeEd25519SignedPayload","ed25519SignedPayload"]],arms:{ed25519:e.lookup("Uint256"),preAuthTx:e.lookup("Uint256"),hashX:e.lookup("Uint256"),ed25519SignedPayload:e.lookup("SignerKeyEd25519SignedPayload")}}),e.typedef("Signature",e.varOpaque(64)),e.typedef("SignatureHint",e.opaque(4)),e.typedef("NodeId",e.lookup("PublicKey")),e.typedef("AccountId",e.lookup("PublicKey")),e.typedef("ContractId",e.lookup("Hash")),e.struct("Curve25519Secret",[["key",e.opaque(32)]]),e.struct("Curve25519Public",[["key",e.opaque(32)]]),e.struct("HmacSha256Key",[["key",e.opaque(32)]]),e.struct("HmacSha256Mac",[["mac",e.opaque(32)]]),e.struct("ShortHashSeed",[["seed",e.opaque(16)]]),e.enum("BinaryFuseFilterType",{binaryFuseFilter8Bit:0,binaryFuseFilter16Bit:1,binaryFuseFilter32Bit:2}),e.struct("SerializedBinaryFuseFilter",[["type",e.lookup("BinaryFuseFilterType")],["inputHashSeed",e.lookup("ShortHashSeed")],["filterSeed",e.lookup("ShortHashSeed")],["segmentLength",e.lookup("Uint32")],["segementLengthMask",e.lookup("Uint32")],["segmentCount",e.lookup("Uint32")],["segmentCountLength",e.lookup("Uint32")],["fingerprintLength",e.lookup("Uint32")],["fingerprints",e.varOpaque()]]),e.typedef("PoolId",e.lookup("Hash")),e.enum("ClaimableBalanceIdType",{claimableBalanceIdTypeV0:0}),e.union("ClaimableBalanceId",{switchOn:e.lookup("ClaimableBalanceIdType"),switchName:"type",switches:[["claimableBalanceIdTypeV0","v0"]],arms:{v0:e.lookup("Hash")}}),e.enum("ScValType",{scvBool:0,scvVoid:1,scvError:2,scvU32:3,scvI32:4,scvU64:5,scvI64:6,scvTimepoint:7,scvDuration:8,scvU128:9,scvI128:10,scvU256:11,scvI256:12,scvBytes:13,scvString:14,scvSymbol:15,scvVec:16,scvMap:17,scvAddress:18,scvContractInstance:19,scvLedgerKeyContractInstance:20,scvLedgerKeyNonce:21}),e.enum("ScErrorType",{sceContract:0,sceWasmVm:1,sceContext:2,sceStorage:3,sceObject:4,sceCrypto:5,sceEvents:6,sceBudget:7,sceValue:8,sceAuth:9}),e.enum("ScErrorCode",{scecArithDomain:0,scecIndexBounds:1,scecInvalidInput:2,scecMissingValue:3,scecExistingValue:4,scecExceededLimit:5,scecInvalidAction:6,scecInternalError:7,scecUnexpectedType:8,scecUnexpectedSize:9}),e.union("ScError",{switchOn:e.lookup("ScErrorType"),switchName:"type",switches:[["sceContract","contractCode"],["sceWasmVm","code"],["sceContext","code"],["sceStorage","code"],["sceObject","code"],["sceCrypto","code"],["sceEvents","code"],["sceBudget","code"],["sceValue","code"],["sceAuth","code"]],arms:{contractCode:e.lookup("Uint32"),code:e.lookup("ScErrorCode")}}),e.struct("UInt128Parts",[["hi",e.lookup("Uint64")],["lo",e.lookup("Uint64")]]),e.struct("Int128Parts",[["hi",e.lookup("Int64")],["lo",e.lookup("Uint64")]]),e.struct("UInt256Parts",[["hiHi",e.lookup("Uint64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.struct("Int256Parts",[["hiHi",e.lookup("Int64")],["hiLo",e.lookup("Uint64")],["loHi",e.lookup("Uint64")],["loLo",e.lookup("Uint64")]]),e.enum("ContractExecutableType",{contractExecutableWasm:0,contractExecutableStellarAsset:1}),e.union("ContractExecutable",{switchOn:e.lookup("ContractExecutableType"),switchName:"type",switches:[["contractExecutableWasm","wasmHash"],["contractExecutableStellarAsset",e.void()]],arms:{wasmHash:e.lookup("Hash")}}),e.enum("ScAddressType",{scAddressTypeAccount:0,scAddressTypeContract:1,scAddressTypeMuxedAccount:2,scAddressTypeClaimableBalance:3,scAddressTypeLiquidityPool:4}),e.struct("MuxedEd25519Account",[["id",e.lookup("Uint64")],["ed25519",e.lookup("Uint256")]]),e.union("ScAddress",{switchOn:e.lookup("ScAddressType"),switchName:"type",switches:[["scAddressTypeAccount","accountId"],["scAddressTypeContract","contractId"],["scAddressTypeMuxedAccount","muxedAccount"],["scAddressTypeClaimableBalance","claimableBalanceId"],["scAddressTypeLiquidityPool","liquidityPoolId"]],arms:{accountId:e.lookup("AccountId"),contractId:e.lookup("ContractId"),muxedAccount:e.lookup("MuxedEd25519Account"),claimableBalanceId:e.lookup("ClaimableBalanceId"),liquidityPoolId:e.lookup("PoolId")}}),e.const("SCSYMBOL_LIMIT",32),e.typedef("ScVec",e.varArray(e.lookup("ScVal"),2147483647)),e.typedef("ScMap",e.varArray(e.lookup("ScMapEntry"),2147483647)),e.typedef("ScBytes",e.varOpaque()),e.typedef("ScString",e.string()),e.typedef("ScSymbol",e.string(32)),e.struct("ScNonceKey",[["nonce",e.lookup("Int64")]]),e.struct("ScContractInstance",[["executable",e.lookup("ContractExecutable")],["storage",e.option(e.lookup("ScMap"))]]),e.union("ScVal",{switchOn:e.lookup("ScValType"),switchName:"type",switches:[["scvBool","b"],["scvVoid",e.void()],["scvError","error"],["scvU32","u32"],["scvI32","i32"],["scvU64","u64"],["scvI64","i64"],["scvTimepoint","timepoint"],["scvDuration","duration"],["scvU128","u128"],["scvI128","i128"],["scvU256","u256"],["scvI256","i256"],["scvBytes","bytes"],["scvString","str"],["scvSymbol","sym"],["scvVec","vec"],["scvMap","map"],["scvAddress","address"],["scvContractInstance","instance"],["scvLedgerKeyContractInstance",e.void()],["scvLedgerKeyNonce","nonceKey"]],arms:{b:e.bool(),error:e.lookup("ScError"),u32:e.lookup("Uint32"),i32:e.lookup("Int32"),u64:e.lookup("Uint64"),i64:e.lookup("Int64"),timepoint:e.lookup("TimePoint"),duration:e.lookup("Duration"),u128:e.lookup("UInt128Parts"),i128:e.lookup("Int128Parts"),u256:e.lookup("UInt256Parts"),i256:e.lookup("Int256Parts"),bytes:e.lookup("ScBytes"),str:e.lookup("ScString"),sym:e.lookup("ScSymbol"),vec:e.option(e.lookup("ScVec")),map:e.option(e.lookup("ScMap")),address:e.lookup("ScAddress"),instance:e.lookup("ScContractInstance"),nonceKey:e.lookup("ScNonceKey")}}),e.struct("ScMapEntry",[["key",e.lookup("ScVal")],["val",e.lookup("ScVal")]]),e.enum("ScEnvMetaKind",{scEnvMetaKindInterfaceVersion:0}),e.struct("ScEnvMetaEntryInterfaceVersion",[["protocol",e.lookup("Uint32")],["preRelease",e.lookup("Uint32")]]),e.union("ScEnvMetaEntry",{switchOn:e.lookup("ScEnvMetaKind"),switchName:"kind",switches:[["scEnvMetaKindInterfaceVersion","interfaceVersion"]],arms:{interfaceVersion:e.lookup("ScEnvMetaEntryInterfaceVersion")}}),e.struct("ScMetaV0",[["key",e.string()],["val",e.string()]]),e.enum("ScMetaKind",{scMetaV0:0}),e.union("ScMetaEntry",{switchOn:e.lookup("ScMetaKind"),switchName:"kind",switches:[["scMetaV0","v0"]],arms:{v0:e.lookup("ScMetaV0")}}),e.const("SC_SPEC_DOC_LIMIT",1024),e.enum("ScSpecType",{scSpecTypeVal:0,scSpecTypeBool:1,scSpecTypeVoid:2,scSpecTypeError:3,scSpecTypeU32:4,scSpecTypeI32:5,scSpecTypeU64:6,scSpecTypeI64:7,scSpecTypeTimepoint:8,scSpecTypeDuration:9,scSpecTypeU128:10,scSpecTypeI128:11,scSpecTypeU256:12,scSpecTypeI256:13,scSpecTypeBytes:14,scSpecTypeString:16,scSpecTypeSymbol:17,scSpecTypeAddress:19,scSpecTypeMuxedAddress:20,scSpecTypeOption:1e3,scSpecTypeResult:1001,scSpecTypeVec:1002,scSpecTypeMap:1004,scSpecTypeTuple:1005,scSpecTypeBytesN:1006,scSpecTypeUdt:2e3}),e.struct("ScSpecTypeOption",[["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeResult",[["okType",e.lookup("ScSpecTypeDef")],["errorType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeVec",[["elementType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeMap",[["keyType",e.lookup("ScSpecTypeDef")],["valueType",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecTypeTuple",[["valueTypes",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.struct("ScSpecTypeBytesN",[["n",e.lookup("Uint32")]]),e.struct("ScSpecTypeUdt",[["name",e.string(60)]]),e.union("ScSpecTypeDef",{switchOn:e.lookup("ScSpecType"),switchName:"type",switches:[["scSpecTypeVal",e.void()],["scSpecTypeBool",e.void()],["scSpecTypeVoid",e.void()],["scSpecTypeError",e.void()],["scSpecTypeU32",e.void()],["scSpecTypeI32",e.void()],["scSpecTypeU64",e.void()],["scSpecTypeI64",e.void()],["scSpecTypeTimepoint",e.void()],["scSpecTypeDuration",e.void()],["scSpecTypeU128",e.void()],["scSpecTypeI128",e.void()],["scSpecTypeU256",e.void()],["scSpecTypeI256",e.void()],["scSpecTypeBytes",e.void()],["scSpecTypeString",e.void()],["scSpecTypeSymbol",e.void()],["scSpecTypeAddress",e.void()],["scSpecTypeMuxedAddress",e.void()],["scSpecTypeOption","option"],["scSpecTypeResult","result"],["scSpecTypeVec","vec"],["scSpecTypeMap","map"],["scSpecTypeTuple","tuple"],["scSpecTypeBytesN","bytesN"],["scSpecTypeUdt","udt"]],arms:{option:e.lookup("ScSpecTypeOption"),result:e.lookup("ScSpecTypeResult"),vec:e.lookup("ScSpecTypeVec"),map:e.lookup("ScSpecTypeMap"),tuple:e.lookup("ScSpecTypeTuple"),bytesN:e.lookup("ScSpecTypeBytesN"),udt:e.lookup("ScSpecTypeUdt")}}),e.struct("ScSpecUdtStructFieldV0",[["doc",e.string(t)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecUdtStructV0",[["doc",e.string(t)],["lib",e.string(80)],["name",e.string(60)],["fields",e.varArray(e.lookup("ScSpecUdtStructFieldV0"),40)]]),e.struct("ScSpecUdtUnionCaseVoidV0",[["doc",e.string(t)],["name",e.string(60)]]),e.struct("ScSpecUdtUnionCaseTupleV0",[["doc",e.string(t)],["name",e.string(60)],["type",e.varArray(e.lookup("ScSpecTypeDef"),12)]]),e.enum("ScSpecUdtUnionCaseV0Kind",{scSpecUdtUnionCaseVoidV0:0,scSpecUdtUnionCaseTupleV0:1}),e.union("ScSpecUdtUnionCaseV0",{switchOn:e.lookup("ScSpecUdtUnionCaseV0Kind"),switchName:"kind",switches:[["scSpecUdtUnionCaseVoidV0","voidCase"],["scSpecUdtUnionCaseTupleV0","tupleCase"]],arms:{voidCase:e.lookup("ScSpecUdtUnionCaseVoidV0"),tupleCase:e.lookup("ScSpecUdtUnionCaseTupleV0")}}),e.struct("ScSpecUdtUnionV0",[["doc",e.string(t)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtUnionCaseV0"),50)]]),e.struct("ScSpecUdtEnumCaseV0",[["doc",e.string(t)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtEnumV0",[["doc",e.string(t)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtEnumCaseV0"),50)]]),e.struct("ScSpecUdtErrorEnumCaseV0",[["doc",e.string(t)],["name",e.string(60)],["value",e.lookup("Uint32")]]),e.struct("ScSpecUdtErrorEnumV0",[["doc",e.string(t)],["lib",e.string(80)],["name",e.string(60)],["cases",e.varArray(e.lookup("ScSpecUdtErrorEnumCaseV0"),50)]]),e.struct("ScSpecFunctionInputV0",[["doc",e.string(t)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")]]),e.struct("ScSpecFunctionV0",[["doc",e.string(t)],["name",e.lookup("ScSymbol")],["inputs",e.varArray(e.lookup("ScSpecFunctionInputV0"),10)],["outputs",e.varArray(e.lookup("ScSpecTypeDef"),1)]]),e.enum("ScSpecEventParamLocationV0",{scSpecEventParamLocationData:0,scSpecEventParamLocationTopicList:1}),e.struct("ScSpecEventParamV0",[["doc",e.string(t)],["name",e.string(30)],["type",e.lookup("ScSpecTypeDef")],["location",e.lookup("ScSpecEventParamLocationV0")]]),e.enum("ScSpecEventDataFormat",{scSpecEventDataFormatSingleValue:0,scSpecEventDataFormatVec:1,scSpecEventDataFormatMap:2}),e.struct("ScSpecEventV0",[["doc",e.string(t)],["lib",e.string(80)],["name",e.lookup("ScSymbol")],["prefixTopics",e.varArray(e.lookup("ScSymbol"),2)],["params",e.varArray(e.lookup("ScSpecEventParamV0"),50)],["dataFormat",e.lookup("ScSpecEventDataFormat")]]),e.enum("ScSpecEntryKind",{scSpecEntryFunctionV0:0,scSpecEntryUdtStructV0:1,scSpecEntryUdtUnionV0:2,scSpecEntryUdtEnumV0:3,scSpecEntryUdtErrorEnumV0:4,scSpecEntryEventV0:5}),e.union("ScSpecEntry",{switchOn:e.lookup("ScSpecEntryKind"),switchName:"kind",switches:[["scSpecEntryFunctionV0","functionV0"],["scSpecEntryUdtStructV0","udtStructV0"],["scSpecEntryUdtUnionV0","udtUnionV0"],["scSpecEntryUdtEnumV0","udtEnumV0"],["scSpecEntryUdtErrorEnumV0","udtErrorEnumV0"],["scSpecEntryEventV0","eventV0"]],arms:{functionV0:e.lookup("ScSpecFunctionV0"),udtStructV0:e.lookup("ScSpecUdtStructV0"),udtUnionV0:e.lookup("ScSpecUdtUnionV0"),udtEnumV0:e.lookup("ScSpecUdtEnumV0"),udtErrorEnumV0:e.lookup("ScSpecUdtErrorEnumV0"),eventV0:e.lookup("ScSpecEventV0")}}),e.struct("ConfigSettingContractExecutionLanesV0",[["ledgerMaxTxCount",e.lookup("Uint32")]]),e.struct("ConfigSettingContractComputeV0",[["ledgerMaxInstructions",e.lookup("Int64")],["txMaxInstructions",e.lookup("Int64")],["feeRatePerInstructionsIncrement",e.lookup("Int64")],["txMemoryLimit",e.lookup("Uint32")]]),e.struct("ConfigSettingContractParallelComputeV0",[["ledgerMaxDependentTxClusters",e.lookup("Uint32")]]),e.struct("ConfigSettingContractLedgerCostV0",[["ledgerMaxDiskReadEntries",e.lookup("Uint32")],["ledgerMaxDiskReadBytes",e.lookup("Uint32")],["ledgerMaxWriteLedgerEntries",e.lookup("Uint32")],["ledgerMaxWriteBytes",e.lookup("Uint32")],["txMaxDiskReadEntries",e.lookup("Uint32")],["txMaxDiskReadBytes",e.lookup("Uint32")],["txMaxWriteLedgerEntries",e.lookup("Uint32")],["txMaxWriteBytes",e.lookup("Uint32")],["feeDiskReadLedgerEntry",e.lookup("Int64")],["feeWriteLedgerEntry",e.lookup("Int64")],["feeDiskRead1Kb",e.lookup("Int64")],["sorobanStateTargetSizeBytes",e.lookup("Int64")],["rentFee1KbSorobanStateSizeLow",e.lookup("Int64")],["rentFee1KbSorobanStateSizeHigh",e.lookup("Int64")],["sorobanStateRentFeeGrowthFactor",e.lookup("Uint32")]]),e.struct("ConfigSettingContractLedgerCostExtV0",[["txMaxFootprintEntries",e.lookup("Uint32")],["feeWrite1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractHistoricalDataV0",[["feeHistorical1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractEventsV0",[["txMaxContractEventsSizeBytes",e.lookup("Uint32")],["feeContractEvents1Kb",e.lookup("Int64")]]),e.struct("ConfigSettingContractBandwidthV0",[["ledgerMaxTxsSizeBytes",e.lookup("Uint32")],["txMaxSizeBytes",e.lookup("Uint32")],["feeTxSize1Kb",e.lookup("Int64")]]),e.enum("ContractCostType",{wasmInsnExec:0,memAlloc:1,memCpy:2,memCmp:3,dispatchHostFunction:4,visitObject:5,valSer:6,valDeser:7,computeSha256Hash:8,computeEd25519PubKey:9,verifyEd25519Sig:10,vmInstantiation:11,vmCachedInstantiation:12,invokeVmFunction:13,computeKeccak256Hash:14,decodeEcdsaCurve256Sig:15,recoverEcdsaSecp256k1Key:16,int256AddSub:17,int256Mul:18,int256Div:19,int256Pow:20,int256Shift:21,chaCha20DrawBytes:22,parseWasmInstructions:23,parseWasmFunctions:24,parseWasmGlobals:25,parseWasmTableEntries:26,parseWasmTypes:27,parseWasmDataSegments:28,parseWasmElemSegments:29,parseWasmImports:30,parseWasmExports:31,parseWasmDataSegmentBytes:32,instantiateWasmInstructions:33,instantiateWasmFunctions:34,instantiateWasmGlobals:35,instantiateWasmTableEntries:36,instantiateWasmTypes:37,instantiateWasmDataSegments:38,instantiateWasmElemSegments:39,instantiateWasmImports:40,instantiateWasmExports:41,instantiateWasmDataSegmentBytes:42,sec1DecodePointUncompressed:43,verifyEcdsaSecp256r1Sig:44,bls12381EncodeFp:45,bls12381DecodeFp:46,bls12381G1CheckPointOnCurve:47,bls12381G1CheckPointInSubgroup:48,bls12381G2CheckPointOnCurve:49,bls12381G2CheckPointInSubgroup:50,bls12381G1ProjectiveToAffine:51,bls12381G2ProjectiveToAffine:52,bls12381G1Add:53,bls12381G1Mul:54,bls12381G1Msm:55,bls12381MapFpToG1:56,bls12381HashToG1:57,bls12381G2Add:58,bls12381G2Mul:59,bls12381G2Msm:60,bls12381MapFp2ToG2:61,bls12381HashToG2:62,bls12381Pairing:63,bls12381FrFromU256:64,bls12381FrToU256:65,bls12381FrAddSub:66,bls12381FrMul:67,bls12381FrPow:68,bls12381FrInv:69}),e.struct("ContractCostParamEntry",[["ext",e.lookup("ExtensionPoint")],["constTerm",e.lookup("Int64")],["linearTerm",e.lookup("Int64")]]),e.struct("StateArchivalSettings",[["maxEntryTtl",e.lookup("Uint32")],["minTemporaryTtl",e.lookup("Uint32")],["minPersistentTtl",e.lookup("Uint32")],["persistentRentRateDenominator",e.lookup("Int64")],["tempRentRateDenominator",e.lookup("Int64")],["maxEntriesToArchive",e.lookup("Uint32")],["liveSorobanStateSizeWindowSampleSize",e.lookup("Uint32")],["liveSorobanStateSizeWindowSamplePeriod",e.lookup("Uint32")],["evictionScanSize",e.lookup("Uint32")],["startingEvictionScanLevel",e.lookup("Uint32")]]),e.struct("EvictionIterator",[["bucketListLevel",e.lookup("Uint32")],["isCurrBucket",e.bool()],["bucketFileOffset",e.lookup("Uint64")]]),e.struct("ConfigSettingScpTiming",[["ledgerTargetCloseTimeMilliseconds",e.lookup("Uint32")],["nominationTimeoutInitialMilliseconds",e.lookup("Uint32")],["nominationTimeoutIncrementMilliseconds",e.lookup("Uint32")],["ballotTimeoutInitialMilliseconds",e.lookup("Uint32")],["ballotTimeoutIncrementMilliseconds",e.lookup("Uint32")]]),e.const("CONTRACT_COST_COUNT_LIMIT",1024),e.typedef("ContractCostParams",e.varArray(e.lookup("ContractCostParamEntry"),e.lookup("CONTRACT_COST_COUNT_LIMIT"))),e.enum("ConfigSettingId",{configSettingContractMaxSizeBytes:0,configSettingContractComputeV0:1,configSettingContractLedgerCostV0:2,configSettingContractHistoricalDataV0:3,configSettingContractEventsV0:4,configSettingContractBandwidthV0:5,configSettingContractCostParamsCpuInstructions:6,configSettingContractCostParamsMemoryBytes:7,configSettingContractDataKeySizeBytes:8,configSettingContractDataEntrySizeBytes:9,configSettingStateArchival:10,configSettingContractExecutionLanes:11,configSettingLiveSorobanStateSizeWindow:12,configSettingEvictionIterator:13,configSettingContractParallelComputeV0:14,configSettingContractLedgerCostExtV0:15,configSettingScpTiming:16}),e.union("ConfigSettingEntry",{switchOn:e.lookup("ConfigSettingId"),switchName:"configSettingId",switches:[["configSettingContractMaxSizeBytes","contractMaxSizeBytes"],["configSettingContractComputeV0","contractCompute"],["configSettingContractLedgerCostV0","contractLedgerCost"],["configSettingContractHistoricalDataV0","contractHistoricalData"],["configSettingContractEventsV0","contractEvents"],["configSettingContractBandwidthV0","contractBandwidth"],["configSettingContractCostParamsCpuInstructions","contractCostParamsCpuInsns"],["configSettingContractCostParamsMemoryBytes","contractCostParamsMemBytes"],["configSettingContractDataKeySizeBytes","contractDataKeySizeBytes"],["configSettingContractDataEntrySizeBytes","contractDataEntrySizeBytes"],["configSettingStateArchival","stateArchivalSettings"],["configSettingContractExecutionLanes","contractExecutionLanes"],["configSettingLiveSorobanStateSizeWindow","liveSorobanStateSizeWindow"],["configSettingEvictionIterator","evictionIterator"],["configSettingContractParallelComputeV0","contractParallelCompute"],["configSettingContractLedgerCostExtV0","contractLedgerCostExt"],["configSettingScpTiming","contractScpTiming"]],arms:{contractMaxSizeBytes:e.lookup("Uint32"),contractCompute:e.lookup("ConfigSettingContractComputeV0"),contractLedgerCost:e.lookup("ConfigSettingContractLedgerCostV0"),contractHistoricalData:e.lookup("ConfigSettingContractHistoricalDataV0"),contractEvents:e.lookup("ConfigSettingContractEventsV0"),contractBandwidth:e.lookup("ConfigSettingContractBandwidthV0"),contractCostParamsCpuInsns:e.lookup("ContractCostParams"),contractCostParamsMemBytes:e.lookup("ContractCostParams"),contractDataKeySizeBytes:e.lookup("Uint32"),contractDataEntrySizeBytes:e.lookup("Uint32"),stateArchivalSettings:e.lookup("StateArchivalSettings"),contractExecutionLanes:e.lookup("ConfigSettingContractExecutionLanesV0"),liveSorobanStateSizeWindow:e.varArray(e.lookup("Uint64"),2147483647),evictionIterator:e.lookup("EvictionIterator"),contractParallelCompute:e.lookup("ConfigSettingContractParallelComputeV0"),contractLedgerCostExt:e.lookup("ConfigSettingContractLedgerCostExtV0"),contractScpTiming:e.lookup("ConfigSettingScpTiming")}}),e.struct("LedgerCloseMetaBatch",[["startSequence",e.lookup("Uint32")],["endSequence",e.lookup("Uint32")],["ledgerCloseMeta",e.varArray(e.lookup("LedgerCloseMeta"),2147483647)]])});const i=o,a={XdrWriter:r.XdrWriter,XdrReader:r.XdrReader};var s=n(2802);function c(e){var t=new s.sha256;return t.update(e,"utf8"),t.digest()}const u="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function l(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function f(e,...t){if(!l(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 p(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 d(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function h(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}const y="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function g(e){if(f(e),y)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}function b(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function v(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(y)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 t=0,o=0;t<n;t++,o+=2){const n=b(e.charCodeAt(o)),i=b(e.charCodeAt(o+1));if(void 0===n||void 0===i){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}r[t]=16*n+i}return r}function w(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function S(e){return"string"==typeof e&&(e=w(e)),f(e),e}function x(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];f(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const o=e[t];n.set(o,r),r+=o.length}return n}class k{}function E(e=32){if(u&&"function"==typeof u.getRandomValues)return u.getRandomValues(new Uint8Array(e));if(u&&"function"==typeof u.randomBytes)return Uint8Array.from(u.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}class T extends k{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=h(this.buffer)}update(e){p(this),f(e=S(e));const{view:t,buffer:n,blockLen:r}=this,o=e.length;for(let i=0;i<o;){const a=Math.min(r-this.pos,o-i);if(a===r){const t=h(e);for(;r<=o-i;i+=r)this.process(t,i);continue}n.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){p(this),function(e,t){f(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:r,isLE:o}=this;let{pos:i}=this;t[i++]=128,d(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(n,0),i=0);for(let e=i;e<r;e++)t[e]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),a=Number(n>>o&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,a,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),o),this.process(n,0);const a=h(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=s/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)a.setUint32(4*e,u[e],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:o,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=o,e.length=r,e.pos=a,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const A=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),C=BigInt(2**32-1),_=BigInt(32);function O(e,t=!1){return t?{h:Number(e&C),l:Number(e>>_&C)}:{h:0|Number(e>>_&C),l:0|Number(e&C)}}const P=(e,t,n)=>e>>>n,R=(e,t,n)=>e<<32-n|t>>>n,j=(e,t,n)=>e>>>n|t<<32-n,I=(e,t,n)=>e<<32-n|t>>>n,N=(e,t,n)=>e<<64-n|t>>>n-32,L=(e,t,n)=>e>>>n-32|t<<64-n;function B(e,t,n,r){const o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}}const D=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),U=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,M=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),F=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,V=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),q=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0,z=function(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){const{h:n,l:a}=O(e[i],t);[r[i],o[i]]=[n,a]}return[r,o]}(["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))),H=z[0],W=z[1],K=new Uint32Array(80),$=new Uint32Array(80);class X extends T{constructor(e=64){super(128,e,16,!1),this.Ah=0|A[0],this.Al=0|A[1],this.Bh=0|A[2],this.Bl=0|A[3],this.Ch=0|A[4],this.Cl=0|A[5],this.Dh=0|A[6],this.Dl=0|A[7],this.Eh=0|A[8],this.El=0|A[9],this.Fh=0|A[10],this.Fl=0|A[11],this.Gh=0|A[12],this.Gl=0|A[13],this.Hh=0|A[14],this.Hl=0|A[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:o,Cl:i,Dh:a,Dl:s,Eh:c,El:u,Fh:l,Fl:f,Gh:p,Gl:d,Hh:h,Hl:y}=this;return[e,t,n,r,o,i,a,s,c,u,l,f,p,d,h,y]}set(e,t,n,r,o,i,a,s,c,u,l,f,p,d,h,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|o,this.Cl=0|i,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|f,this.Gh=0|p,this.Gl=0|d,this.Hh=0|h,this.Hl=0|y}process(e,t){for(let n=0;n<16;n++,t+=4)K[n]=e.getUint32(t),$[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|K[e-15],n=0|$[e-15],r=j(t,n,1)^j(t,n,8)^P(t,0,7),o=I(t,n,1)^I(t,n,8)^R(t,n,7),i=0|K[e-2],a=0|$[e-2],s=j(i,a,19)^N(i,a,61)^P(i,0,6),c=I(i,a,19)^L(i,a,61)^R(i,a,6),u=M(o,c,$[e-7],$[e-16]),l=F(u,r,s,K[e-7],K[e-16]);K[e]=0|l,$[e]=0|u}let{Ah:n,Al:r,Bh:o,Bl:i,Ch:a,Cl:s,Dh:c,Dl:u,Eh:l,El:f,Fh:p,Fl:d,Gh:h,Gl:y,Hh:m,Hl:g}=this;for(let e=0;e<80;e++){const t=j(l,f,14)^j(l,f,18)^N(l,f,41),b=I(l,f,14)^I(l,f,18)^L(l,f,41),v=l&p^~l&h,w=V(g,b,f&d^~f&y,W[e],$[e]),S=q(w,m,t,v,H[e],K[e]),x=0|w,k=j(n,r,28)^N(n,r,34)^N(n,r,39),E=I(n,r,28)^L(n,r,34)^L(n,r,39),T=n&o^n&a^o&a,A=r&i^r&s^i&s;m=0|h,g=0|y,h=0|p,y=0|d,p=0|l,d=0|f,({h:l,l:f}=B(0|c,0|u,0|S,0|x)),c=0|a,u=0|s,a=0|o,s=0|i,o=0|n,i=0|r;const C=D(x,E,A);n=U(C,S,k,T),r=0|C}({h:n,l:r}=B(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:i}=B(0|this.Bh,0|this.Bl,0|o,0|i)),({h:a,l:s}=B(0|this.Ch,0|this.Cl,0|a,0|s)),({h:c,l:u}=B(0|this.Dh,0|this.Dl,0|c,0|u)),({h:l,l:f}=B(0|this.Eh,0|this.El,0|l,0|f)),({h:p,l:d}=B(0|this.Fh,0|this.Fl,0|p,0|d)),({h:h,l:y}=B(0|this.Gh,0|this.Gl,0|h,0|y)),({h:m,l:g}=B(0|this.Hh,0|this.Hl,0|m,0|g)),this.set(n,r,o,i,a,s,c,u,l,f,p,d,h,y,m,g)}roundClean(){d(K,$)}destroy(){d(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const G=function(e){const t=t=>e().update(S(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new X),Q=BigInt(0),Z=BigInt(1);function Y(e,t=""){if("boolean"!=typeof e)throw new Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e}function J(e,t,n=""){const r=l(e),o=e?.length,i=void 0!==t;if(!r||i&&o!==t)throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(i?` of length ${t}`:"")+", got "+(r?`length=${o}`:"type="+typeof e));return e}function ee(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?Q:BigInt("0x"+e)}function te(e){return f(e),ee(g(Uint8Array.from(e).reverse()))}function ne(e,t){return v(e.toString(16).padStart(2*t,"0"))}function re(e,t,n){let r;if("string"==typeof t)try{r=v(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!l(t))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(t)}const o=r.length;if("number"==typeof n&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return r}function oe(e){return Uint8Array.from(e)}const ie=e=>"bigint"==typeof e&&Q<=e;function ae(e,t,n,r){if(!function(e,t,n){return ie(e)&&ie(t)&&ie(n)&&t<=e&&e<n}(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}const se=e=>(Z<<BigInt(e))-Z;function ce(e,t,n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(t,n,r){const o=e[t];if(r&&void 0===o)return;const i=typeof o;if(i!==n||null===o)throw new Error(`param "${t}" is invalid: expected ${n}, got ${i}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))}const ue=()=>{throw new Error("not implemented")};function le(e){const t=new WeakMap;return(n,...r)=>{const o=t.get(n);if(void 0!==o)return o;const i=e(n,...r);return t.set(n,i),i}}const fe=BigInt(0),pe=BigInt(1),de=BigInt(2),he=BigInt(3),ye=BigInt(4),me=BigInt(5),ge=BigInt(7),be=BigInt(8),ve=BigInt(9),we=BigInt(16);function Se(e,t){const n=e%t;return n>=fe?n:t+n}function xe(e,t,n){let r=e;for(;t-- >fe;)r*=r,r%=n;return r}function ke(e,t){if(e===fe)throw new Error("invert: expected non-zero number");if(t<=fe)throw new Error("invert: expected positive modulus, got "+t);let n=Se(e,t),r=t,o=fe,i=pe;for(;n!==fe;){const e=r%n,t=o-i*(r/n);r=n,n=e,o=i,i=t}if(r!==pe)throw new Error("invert: does not exist");return Se(o,t)}function Ee(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function Te(e,t){const n=(e.ORDER+pe)/ye,r=e.pow(t,n);return Ee(e,r,t),r}function Ae(e,t){const n=(e.ORDER-me)/be,r=e.mul(t,de),o=e.pow(r,n),i=e.mul(t,o),a=e.mul(e.mul(i,de),o),s=e.mul(i,e.sub(a,e.ONE));return Ee(e,s,t),s}function Ce(e){if(e<he)throw new Error("sqrt is not defined for small field");let t=e-pe,n=0;for(;t%de===fe;)t/=de,n++;let r=de;const o=je(e);for(;1===Re(o,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return Te;let i=o.pow(r,t);const a=(t+pe)/de;return function(e,r){if(e.is0(r))return r;if(1!==Re(e,r))throw new Error("Cannot find square root");let o=n,s=e.mul(e.ONE,i),c=e.pow(r,t),u=e.pow(r,a);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===o)throw new Error("Cannot find square root");const r=pe<<BigInt(o-t-1),i=e.pow(s,r);o=t,s=e.sqr(i),c=e.mul(c,s),u=e.mul(u,i)}return u}}const _e=(e,t)=>(Se(e,t)&pe)===pe,Oe=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Pe(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((t,n,o)=>e.is0(n)?t:(r[o]=t,e.mul(t,n)),e.ONE),i=e.inv(o);return t.reduceRight((t,n,o)=>e.is0(n)?t:(r[o]=e.mul(t,r[o]),e.mul(t,n)),i),r}function Re(e,t){const n=(e.ORDER-pe)/de,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!a)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function je(e,t,n=!1,r={}){if(e<=fe)throw new Error("invalid field: expected ORDER > 0, got "+e);let o,i,a,s=!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&&(o=e.BITS),e.sqrt&&(i=e.sqrt),"boolean"==typeof e.isLE&&(n=e.isLE),"boolean"==typeof e.modFromBytes&&(s=e.modFromBytes),a=e.allowedLengths}else"number"==typeof t&&(o=t),r.sqrt&&(i=r.sqrt);const{nBitLength:c,nByteLength:u}=function(e,t){void 0!==t&&function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}(e,o);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:se(c),ZERO:fe,ONE:pe,allowedLengths:a,create:t=>Se(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return fe<=t&&t<e},is0:e=>e===fe,isValidNot0:e=>!f.is0(e)&&f.isValid(e),isOdd:e=>(e&pe)===pe,neg:t=>Se(-t,e),eql:(e,t)=>e===t,sqr:t=>Se(t*t,e),add:(t,n)=>Se(t+n,e),sub:(t,n)=>Se(t-n,e),mul:(t,n)=>Se(t*n,e),pow:(e,t)=>function(e,t,n){if(n<fe)throw new Error("invalid exponent, negatives unsupported");if(n===fe)return e.ONE;if(n===pe)return t;let r=e.ONE,o=t;for(;n>fe;)n&pe&&(r=e.mul(r,o)),o=e.sqr(o),n>>=pe;return r}(f,e,t),div:(t,n)=>Se(t*ke(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>ke(t,e),sqrt:i||(t=>(l||(l=function(e){return e%ye===he?Te:e%be===me?Ae:e%we===ve?function(e){const t=je(e),n=Ce(e),r=n(t,t.neg(t.ONE)),o=n(t,r),i=n(t,t.neg(r)),a=(e+ge)/we;return(e,t)=>{let n=e.pow(t,a),s=e.mul(n,r);const c=e.mul(n,o),u=e.mul(n,i),l=e.eql(e.sqr(s),t),f=e.eql(e.sqr(c),t);n=e.cmov(n,s,l),s=e.cmov(u,c,f);const p=e.eql(e.sqr(s),t),d=e.cmov(n,s,p);return Ee(e,d,t),d}}(e):Ce(e)}(e)),l(f,t))),toBytes:e=>n?ne(e,u).reverse():ne(e,u),fromBytes:(t,r=!0)=>{if(a){if(!a.includes(t.length)||t.length>u)throw new Error("Field.fromBytes: expected "+a+" 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 o=n?te(t):function(e){return ee(g(e))}(t);if(s&&(o=Se(o,e)),!r&&!f.isValid(o))throw new Error("invalid field element: outside of range 0..ORDER");return o},invertBatch:e=>Pe(f,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(f)}const Ie=BigInt(0),Ne=BigInt(1);function Le(e,t){const n=t.negate();return e?n:t}function Be(e,t){const n=Pe(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function De(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ue(e,t){De(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:se(e),maxNumber:n,shiftBy:BigInt(e)}}function Me(e,t,n){const{windowSize:r,mask:o,maxNumber:i,shiftBy:a}=n;let s=Number(e&o),c=e>>a;s>r&&(s-=i,c+=Ne);const u=t*r;return{nextN:c,offset:u+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:u}}const Fe=new WeakMap,Ve=new WeakMap;function qe(e){return Ve.get(e)||1}function ze(e){if(e!==Ie)throw new Error("invalid wNAF")}class He{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,n=this.ZERO){let r=e;for(;t>Ie;)t&Ne&&(n=n.add(r)),r=r.double(),t>>=Ne;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=Ue(t,this.bits),o=[];let i=e,a=i;for(let e=0;e<n;e++){a=i,o.push(a);for(let e=1;e<r;e++)a=a.add(i),o.push(a);i=a.double()}return o}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,o=this.BASE;const i=Ue(e,this.bits);for(let e=0;e<i.windows;e++){const{nextN:a,offset:s,isZero:c,isNeg:u,isNegF:l,offsetF:f}=Me(n,e,i);n=a,c?o=o.add(Le(l,t[f])):r=r.add(Le(u,t[s]))}return ze(n),{p:r,f:o}}wNAFUnsafe(e,t,n,r=this.ZERO){const o=Ue(e,this.bits);for(let e=0;e<o.windows&&n!==Ie;e++){const{nextN:i,offset:a,isZero:s,isNeg:c}=Me(n,e,o);if(n=i,!s){const e=t[a];r=r.add(c?e.negate():e)}}return ze(n),r}getPrecomputes(e,t,n){let r=Fe.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),Fe.set(t,r))),r}cached(e,t,n){const r=qe(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const o=qe(e);return 1===o?this._unsafeLadder(e,t,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,n),t,r)}createCache(e,t){De(t,this.bits),Ve.set(e,t),Fe.delete(e)}hasCache(e){return 1!==qe(e)}}function We(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 o=n.length,i=r.length;if(o!==i)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,s=function(e){let t;for(t=0;e>Q;e>>=Z,t+=1);return t}(BigInt(o));let c=1;s>12?c=s-3:s>4?c=s-2:s>0&&(c=2);const u=se(c),l=new Array(Number(u)+1).fill(a);let f=a;for(let e=Math.floor((t.BITS-1)/c)*c;e>=0;e-=c){l.fill(a);for(let t=0;t<i;t++){const o=r[t],i=Number(o>>BigInt(e)&u);l[i]=l[i].add(n[t])}let t=a;for(let e=l.length-1,n=a;e>0;e--)n=n.add(l[e]),t=t.add(n);if(f=f.add(t),0!==e)for(let e=0;e<c;e++)f=f.double()}return f}function Ke(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return function(e){ce(e,Oe.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"}))}(t),t}return je(e,{isLE:n})}const $e=BigInt(0),Xe=BigInt(1),Ge=BigInt(2),Qe=BigInt(8);class Ze{constructor(e){this.ep=e}static fromBytes(e){ue()}static fromHex(e){ue()}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(e){return this.ep.toAffine(e)}toHex(){return g(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(e){return this.assertSame(e),this.init(this.ep.add(e.ep))}subtract(e){return this.assertSame(e),this.init(this.ep.subtract(e.ep))}multiply(e){return this.init(this.ep.multiply(e))}multiplyUnsafe(e){return this.init(this.ep.multiplyUnsafe(e))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(e,t){return this.init(this.ep.precompute(e,t))}toRawBytes(){return this.toBytes()}}w("HashToScalar-");const Ye=BigInt(0),Je=BigInt(1),et=BigInt(2),tt=(BigInt(3),BigInt(5)),nt=BigInt(8),rt=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),ot={p:rt,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:nt,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")},it=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function at(e,t){const n=rt,r=Se(t*t*t,n),o=Se(r*r*t,n);let i=Se(e*r*function(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),o=BigInt(80),i=rt,a=e*e%i*e%i,s=xe(a,et,i)*a%i,c=xe(s,Je,i)*e%i,u=xe(c,tt,i)*c%i,l=xe(u,t,i)*u%i,f=xe(l,n,i)*l%i,p=xe(f,r,i)*f%i,d=xe(p,o,i)*p%i,h=xe(d,o,i)*p%i,y=xe(h,t,i)*u%i;return{pow_p_5_8:xe(y,et,i)*e%i,b2:a}}(e*o).pow_p_5_8,n);const a=Se(t*i*i,n),s=i,c=Se(i*it,n),u=a===e,l=a===Se(-e,n),f=a===Se(-e*it,n);return u&&(i=s),(l||f)&&(i=c),_e(i,n)&&(i=Se(-i,n)),{isValid:u||l,value:i}}const st=je(ot.p,{isLE:!0}),ct=je(ot.n,{isLE:!0}),ut=function(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:o}=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:je(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);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,function(e,t,n={}){if("function"!=typeof t)throw new Error('"hash" function param is required');ce(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:o,Fp:i,Fn:a}=e,s=n.randomBytes||E,c=n.adjustScalarBytes||(e=>e),u=n.domain||((e,t,n)=>{if(Y(n,"phflag"),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function f(e){return a.create(te(e))}function p(e){const{head:n,prefix:r,scalar:i}=function(e){const n=g.secretKey;e=re("private key",e,n);const r=re("hashed private key",t(e),2*n),o=c(r.slice(0,n));return{head:o,prefix:r.slice(n,2*n),scalar:f(o)}}(e),a=o.multiply(i),s=a.toBytes();return{head:n,prefix:r,scalar:i,point:a,pointBytes:s}}function d(e){return p(e).pointBytes}function h(e=Uint8Array.of(),...n){const o=x(...n);return f(t(u(o,re("context",e),!!r)))}const y={zip215:!0},m=i.BYTES,g={secretKey:m,publicKey:m,signature:2*m,seed:m};function b(e=s(g.seed)){return J(e,g.seed,"seed")}const v={getExtendedPublicKey:p,randomSecretKey:b,isValidSecretKey:function(e){return l(e)&&e.length===a.BYTES},isValidPublicKey:function(t,n){try{return!!e.fromBytes(t,n)}catch(e){return!1}},toMontgomery(t){const{y:n}=e.fromBytes(t),r=g.publicKey,o=32===r;if(!o&&57!==r)throw new Error("only defined for 25519 and 448");const a=o?i.div(Xe+n,Xe-n):i.div(n-Xe,n+Xe);return i.toBytes(a)},toMontgomeryPriv(e){const n=g.secretKey;J(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=v.randomSecretKey(e);return{secretKey:t,publicKey:d(t)}},getPublicKey:d,sign:function(e,t,n={}){e=re("message",e),r&&(e=r(e));const{prefix:i,scalar:s,pointBytes:c}=p(t),u=h(n.context,i,e),l=o.multiply(u).toBytes(),f=h(n.context,l,c,e),d=a.create(u+f*s);if(!a.isValid(d))throw new Error("sign failed: invalid s");return J(x(l,a.toBytes(d)),g.signature,"result")},verify:function(t,n,i,a=y){const{context:s,zip215:c}=a,u=g.signature;t=re("signature",t,u),n=re("message",n),i=re("publicKey",i,g.publicKey),void 0!==c&&Y(c,"zip215"),r&&(n=r(n));const l=u/2,f=t.subarray(0,l),p=te(t.subarray(l,u));let d,m,b;try{d=e.fromBytes(i,c),m=e.fromBytes(f,c),b=o.multiplyUnsafe(p)}catch(e){return!1}if(!c&&d.isSmallOrder())return!1;const v=h(s,m.toBytes(),d.toBytes(),n);return m.add(d.multiplyUnsafe(v)).subtract(b).clearCofactor().is0()},utils:v,Point:e,lengths:g})}(function(e,t={}){const n=function(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 e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>Ie))throw new Error(`CURVE.${e} must be positive bigint`)}const o=Ke(t.p,n.Fp,r),i=Ke(t.n,n.Fn,r),a=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of a)if(!o.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:o,Fn:i}}("edwards",e,t,t.FpFnLE),{Fp:r,Fn:o}=n;let i=n.CURVE;const{h:a}=i;ce(t,{},{uvRatio:"function"});const s=Ge<<BigInt(8*o.BYTES)-Xe,c=e=>r.create(e),u=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,t))}}catch(e){return{isValid:!1,value:$e}}});if(!function(e,t,n,r){const o=e.sqr(n),i=e.sqr(r),a=e.add(e.mul(t.a,o),i),s=e.add(e.ONE,e.mul(t.d,e.mul(o,i)));return e.eql(a,s)}(r,i,i.Gx,i.Gy))throw new Error("bad curve params: generator point");function l(e,t,n=!1){return ae("coordinate "+e,t,n?Xe:$e,s),t}function f(e){if(!(e instanceof h))throw new Error("ExtendedPoint expected")}const p=le((e,t)=>{const{X:n,Y:o,Z:i}=e,a=e.is0();null==t&&(t=a?Qe:r.inv(i));const s=c(n*t),u=c(o*t),l=r.mul(i,t);if(a)return{x:$e,y:Xe};if(l!==Xe)throw new Error("invZ was invalid");return{x:s,y:u}}),d=le(e=>{const{a:t,d:n}=i;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:o,Z:a,T:s}=e,u=c(r*r),l=c(o*o),f=c(a*a),p=c(f*f),d=c(u*t);if(c(f*c(d+l))!==c(p+c(n*c(u*l))))throw new Error("bad point: equation left != right (1)");if(c(r*o)!==c(a*s))throw new Error("bad point: equation left != right (2)");return!0});class h{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 i}static fromAffine(e){if(e instanceof h)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return l("x",t),l("y",n),new h(t,n,Xe,c(t*n))}static fromBytes(e,t=!1){const n=r.BYTES,{a:o,d:a}=i;e=oe(J(e,n,"point")),Y(t,"zip215");const l=oe(e),f=e[n-1];l[n-1]=-129&f;const p=te(l),d=t?s:r.ORDER;ae("point.y",p,$e,d);const y=c(p*p),m=c(y-Xe),g=c(a*y-o);let{isValid:b,value:v}=u(m,g);if(!b)throw new Error("bad point: invalid y coordinate");const w=(v&Xe)===Xe,S=!!(128&f);if(!t&&v===$e&&S)throw new Error("bad point: x=0 and x_0=1");return S!==w&&(v=c(-v)),h.fromAffine({x:v,y:p})}static fromHex(e,t=!1){return h.fromBytes(re("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return y.createCache(this,e),t||this.multiply(Ge),this}assertValidity(){d(this)}equals(e){f(e);const{X:t,Y:n,Z:r}=this,{X:o,Y:i,Z:a}=e,s=c(t*a),u=c(o*r),l=c(n*a),p=c(i*r);return s===u&&l===p}is0(){return this.equals(h.ZERO)}negate(){return new h(c(-this.X),this.Y,this.Z,c(-this.T))}double(){const{a:e}=i,{X:t,Y:n,Z:r}=this,o=c(t*t),a=c(n*n),s=c(Ge*c(r*r)),u=c(e*o),l=t+n,f=c(c(l*l)-o-a),p=u+a,d=p-s,y=u-a,m=c(f*d),g=c(p*y),b=c(f*y),v=c(d*p);return new h(m,g,v,b)}add(e){f(e);const{a:t,d:n}=i,{X:r,Y:o,Z:a,T:s}=this,{X:u,Y:l,Z:p,T:d}=e,y=c(r*u),m=c(o*l),g=c(s*n*d),b=c(a*p),v=c((r+o)*(u+l)-y-m),w=b-g,S=b+g,x=c(m-t*y),k=c(v*w),E=c(S*x),T=c(v*x),A=c(w*S);return new h(k,E,A,T)}subtract(e){return this.add(e.negate())}multiply(e){if(!o.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:t,f:n}=y.cached(this,e,e=>Be(h,e));return Be(h,[t,n])[0]}multiplyUnsafe(e,t=h.ZERO){if(!o.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===$e?h.ZERO:this.is0()||e===Xe?this:y.unsafe(this,e,e=>Be(h,e),t)}isSmallOrder(){return this.multiplyUnsafe(a).is0()}isTorsionFree(){return y.unsafe(this,i.n).is0()}toAffine(e){return p(this,e)}clearCofactor(){return a===Xe?this:this.multiplyUnsafe(a)}toBytes(){const{x:e,y:t}=this.toAffine(),n=r.toBytes(t);return n[n.length-1]|=e&Xe?128:0,n}toHex(){return g(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 Be(h,e)}static msm(e,t){return We(h,o,e,t)}_setWindowSize(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}h.BASE=new h(i.Gx,i.Gy,Xe,c(i.Gx*i.Gy)),h.ZERO=new h($e,Xe,Xe,$e),h.Fp=r,h.Fn=o;const y=new He(h,o.BITS);return h.BASE.precompute(8),h}(t,n),r,o))}({...ot,Fp:st,hash:G,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:at}),lt=it,ft=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),pt=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),dt=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),ht=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),yt=e=>at(Je,e),mt=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),gt=e=>ut.Point.Fp.create(te(e)&mt);function bt(e){const{d:t}=ot,n=rt,r=e=>st.create(e),o=r(lt*e*e),i=r((o+Je)*dt);let a=BigInt(-1);const s=r((a-t*o)*r(o+t));let{isValid:c,value:u}=at(i,s),l=r(u*e);_e(l,n)||(l=r(-l)),c||(u=l),c||(a=o);const f=r(a*(o-Je)*ht-s),p=u*u,d=r((u+u)*s),h=r(f*ft),y=r(Je-p),m=r(Je+p);return new ut.Point(r(d*m),r(y*h),r(h*m),r(d*y))}class vt extends Ze{constructor(e){super(e)}static fromAffine(e){return new vt(ut.Point.fromAffine(e))}assertSame(e){if(!(e instanceof vt))throw new Error("RistrettoPoint expected")}init(e){return new vt(e)}static hashToCurve(e){return function(e){f(e,64);const t=bt(gt(e.subarray(0,32))),n=bt(gt(e.subarray(32,64)));return new vt(t.add(n))}(re("ristrettoHash",e,64))}static fromBytes(e){f(e,32);const{a:t,d:n}=ot,r=rt,o=e=>st.create(e),i=gt(e);if(!function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(st.toBytes(i),e)||_e(i,r))throw new Error("invalid ristretto255 encoding 1");const a=o(i*i),s=o(Je+t*a),c=o(Je-t*a),u=o(s*s),l=o(c*c),p=o(t*n*u-l),{isValid:d,value:h}=yt(o(p*l)),y=o(h*c),m=o(h*y*p);let g=o((i+i)*y);_e(g,r)&&(g=o(-g));const b=o(s*m),v=o(g*b);if(!d||_e(v,r)||b===Ye)throw new Error("invalid ristretto255 encoding 2");return new vt(new ut.Point(g,b,Je,v))}static fromHex(e){return vt.fromBytes(re("ristrettoHex",e,32))}static msm(e,t){return We(vt,ut.Point.Fn,e,t)}toBytes(){let{X:e,Y:t,Z:n,T:r}=this.ep;const o=rt,i=e=>st.create(e),a=i(i(n+t)*i(n-t)),s=i(e*t),c=i(s*s),{value:u}=yt(i(a*c)),l=i(u*a),f=i(u*s),p=i(l*f*r);let d;if(_e(r*p,o)){let n=i(t*lt),r=i(e*lt);e=n,t=r,d=i(l*pt)}else d=f;_e(e*p,o)&&(t=i(-t));let h=i((n-t)*d);return _e(h,o)&&(h=i(-h)),st.toBytes(h)}equals(e){this.assertSame(e);const{X:t,Y:n}=this.ep,{X:r,Y:o}=e.ep,i=e=>st.create(e),a=i(t*o)===i(n*r),s=i(n*o)===i(t*r);return a||s}is0(){return this.equals(vt.ZERO)}}vt.BASE=new vt(ut.Point.BASE),vt.ZERO=new vt(ut.Point.ZERO),vt.Fp=st,vt.Fn=ct;var wt=n(8287).Buffer;function St(e,t){return wt.from(ut.sign(wt.from(e),t))}function xt(e,t,n){return ut.verify(wt.from(t),wt.from(e),wt.from(n),{zip215:!1})}var kt=function(e,t){for(var n="number"==typeof e,r=String(e);r.endsWith(t);)r=r.slice(0,-1);return n?Number(r):r},Et=n(5360),Tt=n(8287).Buffer;function At(e){return At="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},At(e)}function Ct(e){var t=function(e){if("object"!=At(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==At(t)?t:t+""}var _t,Ot,Pt,Rt={ed25519PublicKey:48,ed25519SecretSeed:144,med25519PublicKey:96,preAuthTx:152,sha256Hash:184,signedPayload:120,contract:16,liquidityPool:88,claimableBalance:8},jt={G:"ed25519PublicKey",S:"ed25519SecretSeed",M:"med25519PublicKey",T:"preAuthTx",X:"sha256Hash",P:"signedPayload",C:"contract",L:"liquidityPool",B:"claimableBalance"},It=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"encodeEd25519PublicKey",value:function(e){return Bt("ed25519PublicKey",e)}},{key:"decodeEd25519PublicKey",value:function(e){return Lt("ed25519PublicKey",e)}},{key:"isValidEd25519PublicKey",value:function(e){return Nt("ed25519PublicKey",e)}},{key:"encodeEd25519SecretSeed",value:function(e){return Bt("ed25519SecretSeed",e)}},{key:"decodeEd25519SecretSeed",value:function(e){return Lt("ed25519SecretSeed",e)}},{key:"isValidEd25519SecretSeed",value:function(e){return Nt("ed25519SecretSeed",e)}},{key:"encodeMed25519PublicKey",value:function(e){return Bt("med25519PublicKey",e)}},{key:"decodeMed25519PublicKey",value:function(e){return Lt("med25519PublicKey",e)}},{key:"isValidMed25519PublicKey",value:function(e){return Nt("med25519PublicKey",e)}},{key:"encodePreAuthTx",value:function(e){return Bt("preAuthTx",e)}},{key:"decodePreAuthTx",value:function(e){return Lt("preAuthTx",e)}},{key:"encodeSha256Hash",value:function(e){return Bt("sha256Hash",e)}},{key:"decodeSha256Hash",value:function(e){return Lt("sha256Hash",e)}},{key:"encodeSignedPayload",value:function(e){return Bt("signedPayload",e)}},{key:"decodeSignedPayload",value:function(e){return Lt("signedPayload",e)}},{key:"isValidSignedPayload",value:function(e){return Nt("signedPayload",e)}},{key:"encodeContract",value:function(e){return Bt("contract",e)}},{key:"decodeContract",value:function(e){return Lt("contract",e)}},{key:"isValidContract",value:function(e){return Nt("contract",e)}},{key:"encodeClaimableBalance",value:function(e){return Bt("claimableBalance",e)}},{key:"decodeClaimableBalance",value:function(e){return Lt("claimableBalance",e)}},{key:"isValidClaimableBalance",value:function(e){return Nt("claimableBalance",e)}},{key:"encodeLiquidityPool",value:function(e){return Bt("liquidityPool",e)}},{key:"decodeLiquidityPool",value:function(e){return Lt("liquidityPool",e)}},{key:"isValidLiquidityPool",value:function(e){return Nt("liquidityPool",e)}},{key:"getVersionByteForPrefix",value:function(e){return jt[e[0]]}}],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,Ct(r.key),r)}}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Nt(e,t){if("string"!=typeof t)return!1;switch(e){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":case"liquidityPool":if(56!==t.length)return!1;break;case"claimableBalance":if(58!==t.length)return!1;break;case"med25519PublicKey":if(69!==t.length)return!1;break;case"signedPayload":if(t.length<56||t.length>165)return!1;break;default:return!1}var n="";try{n=Lt(e,t)}catch(e){return!1}switch(e){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":case"contract":case"liquidityPool":return 32===n.length;case"claimableBalance":return 33===n.length;case"med25519PublicKey":return 40===n.length;case"signedPayload":return n.length>=40&&n.length<=100;default:return!1}}function Lt(e,t){if("string"!=typeof t)throw new TypeError("encoded argument must be of type String");var n=Et.decode(t),r=n[0],o=n.slice(0,-2),i=o.slice(1),a=n.slice(-2);if(t!==Et.encode(n))throw new Error("invalid encoded string");var s=Rt[e];if(void 0===s)throw new Error("".concat(e," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(Rt).join(", ")));if(r!==s)throw new Error("invalid version byte. expected ".concat(s,", got ").concat(r));if(!function(e,t){if(e.length!==t.length)return!1;if(0===e.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0}(Dt(o),a))throw new Error("invalid checksum");return Tt.from(i)}function Bt(e,t){if(null==t)throw new Error("cannot encode null data");var n=Rt[e];if(void 0===n)throw new Error("".concat(e," is not a valid version byte name. ")+"Expected one of ".concat(Object.keys(Rt).join(", ")));t=Tt.from(t);var r=Tt.from([n]),o=Tt.concat([r,t]),i=Tt.from(Dt(o)),a=Tt.concat([o,i]);return Et.encode(a)}function Dt(e){for(var t=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920],n=0,r=0;r<e.length;r+=1)n=n<<8^t[n>>8^e[r]],n&=65535;var o=new Uint8Array(2);return o[0]=255&n,o[1]=n>>8&255,o}_t=It,Pt=jt,(Ot=Ct(Ot="types"))in _t?Object.defineProperty(_t,Ot,{value:Pt,enumerable:!0,configurable:!0,writable:!0}):_t[Ot]=Pt;var Ut=n(8287).Buffer;function Mt(e){return Mt="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},Mt(e)}function Ft(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,Vt(r.key),r)}}function Vt(e){var t=function(e){if("object"!=Mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mt(t)?t:t+""}var qt=function(e,t,n){return t&&Ft(e.prototype,t),n&&Ft(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"ed25519"!==t.type)throw new Error("Invalid keys type");if(this.type=t.type,t.secretKey){if(t.secretKey=Ut.from(t.secretKey),32!==t.secretKey.length)throw new Error("secretKey length is invalid");if(this._secretSeed=t.secretKey,this._publicKey=(n=t.secretKey,wt.from(ut.getPublicKey(n))),this._secretKey=t.secretKey,t.publicKey&&!this._publicKey.equals(Ut.from(t.publicKey)))throw new Error("secretKey does not match publicKey")}else if(this._publicKey=Ut.from(t.publicKey),32!==this._publicKey.length)throw new Error("publicKey length is invalid");var n},[{key:"xdrAccountId",value:function(){return new i.AccountId.publicKeyTypeEd25519(this._publicKey)}},{key:"xdrPublicKey",value:function(){return new i.PublicKey.publicKeyTypeEd25519(this._publicKey)}},{key:"xdrMuxedAccount",value:function(e){if(void 0!==e){if("string"!=typeof e)throw new TypeError("expected string for ID, got ".concat(Mt(e)));return i.MuxedAccount.keyTypeMuxedEd25519(new i.MuxedAccountMed25519({id:i.Uint64.fromString(e),ed25519:this._publicKey}))}return new i.MuxedAccount.keyTypeEd25519(this._publicKey)}},{key:"rawPublicKey",value:function(){return this._publicKey}},{key:"signatureHint",value:function(){var e=this.xdrAccountId().toXDR();return e.slice(e.length-4)}},{key:"publicKey",value:function(){return It.encodeEd25519PublicKey(this._publicKey)}},{key:"secret",value:function(){if(!this._secretSeed)throw new Error("no secret key available");if("ed25519"===this.type)return It.encodeEd25519SecretSeed(this._secretSeed);throw new Error("Invalid Keypair type")}},{key:"rawSecretKey",value:function(){return this._secretSeed}},{key:"canSign",value:function(){return!!this._secretKey}},{key:"sign",value:function(e){if(!this.canSign())throw new Error("cannot sign: no secret key available");return St(e,this._secretKey)}},{key:"verify",value:function(e,t){return xt(e,t,this._publicKey)}},{key:"signDecorated",value:function(e){var t=this.sign(e),n=this.signatureHint();return new i.DecoratedSignature({hint:n,signature:t})}},{key:"signPayloadDecorated",value:function(e){var t=this.sign(e),n=this.signatureHint(),r=Ut.from(e.slice(-4));return r.length<4&&(r=Ut.concat([r,Ut.alloc(4-e.length,0)])),new i.DecoratedSignature({hint:r.map(function(e,t){return e^n[t]}),signature:t})}}],[{key:"fromSecret",value:function(e){var t=It.decodeEd25519SecretSeed(e);return this.fromRawEd25519Seed(t)}},{key:"fromRawEd25519Seed",value:function(e){return new this({type:"ed25519",secretKey:e})}},{key:"master",value:function(e){if(!e)throw new Error("No network selected. Please pass a network argument, e.g. `Keypair.master(Networks.PUBLIC)`.");return this.fromRawEd25519Seed(c(e))}},{key:"fromPublicKey",value:function(e){if(32!==(e=It.decodeEd25519PublicKey(e)).length)throw new Error("Invalid Stellar public key");return new this({type:"ed25519",publicKey:e})}},{key:"random",value:function(){var e=ut.utils.randomPrivateKey();return this.fromRawEd25519Seed(e)}}]),zt=n(8287).Buffer;function Ht(e){return Ht="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},Ht(e)}function Wt(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,Kt(r.key),r)}}function Kt(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}var $t=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!/^[a-zA-Z0-9]{1,12}$/.test(t))throw new Error("Asset code is invalid (maximum alphanumeric, 12 characters at max)");if("xlm"!==String(t).toLowerCase()&&!n)throw new Error("Issuer cannot be null");if(n&&!It.isValidEd25519PublicKey(n))throw new Error("Issuer is invalid");"xlm"===String(t).toLowerCase()?this.code="XLM":this.code=t,this.issuer=n}return function(e,t,n){return t&&Wt(e.prototype,t),n&&Wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"toXDRObject",value:function(){return this._toXDRObject(i.Asset)}},{key:"toChangeTrustXDRObject",value:function(){return this._toXDRObject(i.ChangeTrustAsset)}},{key:"toTrustLineXDRObject",value:function(){return this._toXDRObject(i.TrustLineAsset)}},{key:"contractId",value:function(e){var t=c(zt.from(e)),n=i.HashIdPreimage.envelopeTypeContractId(new i.HashIdPreimageContractId({networkId:t,contractIdPreimage:i.ContractIdPreimage.contractIdPreimageFromAsset(this.toXDRObject())}));return It.encodeContract(c(n.toXDR()))}},{key:"_toXDRObject",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.Asset;if(this.isNative())return n.assetTypeNative();this.code.length<=4?(e=i.AlphaNum4,t="assetTypeCreditAlphanum4"):(e=i.AlphaNum12,t="assetTypeCreditAlphanum12");var r=this.code.length<=4?4:12;return new n(t,new e({assetCode:this.code.padEnd(r,"\0"),issuer:qt.fromPublicKey(this.issuer).xdrAccountId()}))}},{key:"getCode",value:function(){if(void 0!==this.code)return String(this.code)}},{key:"getIssuer",value:function(){if(void 0!==this.issuer)return String(this.issuer)}},{key:"getAssetType",value:function(){switch(this.getRawAssetType().value){case i.AssetType.assetTypeNative().value:return"native";case i.AssetType.assetTypeCreditAlphanum4().value:return"credit_alphanum4";case i.AssetType.assetTypeCreditAlphanum12().value:return"credit_alphanum12";default:return"unknown"}}},{key:"getRawAssetType",value:function(){return this.isNative()?i.AssetType.assetTypeNative():this.code.length<=4?i.AssetType.assetTypeCreditAlphanum4():i.AssetType.assetTypeCreditAlphanum12()}},{key:"isNative",value:function(){return!this.issuer}},{key:"equals",value:function(e){return this.code===e.getCode()&&this.issuer===e.getIssuer()}},{key:"toString",value:function(){return this.isNative()?"native":"".concat(this.getCode(),":").concat(this.getIssuer())}}],[{key:"native",value:function(){return new e("XLM")}},{key:"fromOperation",value:function(e){var t,n;switch(e.switch()){case i.AssetType.assetTypeNative():return this.native();case i.AssetType.assetTypeCreditAlphanum4():t=e.alphaNum4();case i.AssetType.assetTypeCreditAlphanum12():return t=t||e.alphaNum12(),n=It.encodeEd25519PublicKey(t.issuer().ed25519()),new this(kt(t.assetCode(),"\0"),n);default:throw new Error("Invalid asset type: ".concat(e.switch().name))}}},{key:"compare",value:function(t,n){if(!(t&&t instanceof e))throw new Error("assetA is invalid");if(!(n&&n instanceof e))throw new Error("assetB is invalid");if(t.equals(n))return 0;var r=t.getRawAssetType().value,o=n.getRawAssetType().value;if(r!==o)return r<o?-1:1;var i=Xt(t.getCode(),n.getCode());return 0!==i?i:Xt(t.getIssuer(),n.getIssuer())}}])}();function Xt(e,t){return zt.compare(zt.from(e,"ascii"),zt.from(t,"ascii"))}var Gt=n(8287).Buffer,Qt=30;function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("constant_product"!==e)throw new Error("liquidityPoolType is invalid");var n=t.assetA,r=t.assetB,o=t.fee;if(!(n&&n instanceof $t))throw new Error("assetA is invalid");if(!(r&&r instanceof $t))throw new Error("assetB is invalid");if(!o||o!==Qt)throw new Error("fee is invalid");if(-1!==$t.compare(n,r))throw new Error("Assets are not in lexicographic order");var a=i.LiquidityPoolType.liquidityPoolConstantProduct().toXDR(),s=new i.LiquidityPoolConstantProductParameters({assetA:n.toXDRObject(),assetB:r.toXDRObject(),fee:o}).toXDR();return c(Gt.concat([a,s]))}var Yt=n(8287).Buffer;function Jt(e){return Jt="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},Jt(e)}function en(e){var t=function(e){if("object"!=Jt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jt(t)?t:t+""}var tn=function(e,t){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,en(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r,o){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"!=typeof o)throw new Error("Invalid passphrase provided to Transaction: expected a string but got a ".concat(Jt(o)));this._networkPassphrase=o,this._tx=t,this._signatures=n,this._fee=r},[{key:"signatures",get:function(){return this._signatures},set:function(e){throw new Error("Transaction is immutable")}},{key:"tx",get:function(){return this._tx},set:function(e){throw new Error("Transaction is immutable")}},{key:"fee",get:function(){return this._fee},set:function(e){throw new Error("Transaction is immutable")}},{key:"networkPassphrase",get:function(){return this._networkPassphrase},set:function(e){this._networkPassphrase=e}},{key:"sign",value:function(){for(var e=this,t=this.hash(),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach(function(n){var r=n.signDecorated(t);e.signatures.push(r)})}},{key:"getKeypairSignature",value:function(e){return e.sign(this.hash()).toString("base64")}},{key:"addSignature",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!r||"string"!=typeof r)throw new Error("Invalid signature");if(!n||"string"!=typeof n)throw new Error("Invalid publicKey");var o=Yt.from(r,"base64");try{t=(e=qt.fromPublicKey(n)).signatureHint()}catch(e){throw new Error("Invalid publicKey")}if(!e.verify(this.hash(),o))throw new Error("Invalid signature");this.signatures.push(new i.DecoratedSignature({hint:t,signature:o}))}},{key:"addDecoratedSignature",value:function(e){this.signatures.push(e)}},{key:"signHashX",value:function(e){if("string"==typeof e&&(e=Yt.from(e,"hex")),e.length>64)throw new Error("preimage cannnot be longer than 64 bytes");var t=e,n=c(e),r=n.slice(n.length-4);this.signatures.push(new i.DecoratedSignature({hint:r,signature:t}))}},{key:"hash",value:function(){return c(this.signatureBase())}},{key:"signatureBase",value:function(){throw new Error("Implement in subclass")}},{key:"toEnvelope",value:function(){throw new Error("Implement in subclass")}},{key:"toXDR",value:function(){return this.toEnvelope().toXDR().toString("base64")}}]),nn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,rn=Math.ceil,on=Math.floor,an="[BigNumber Error] ",sn=an+"Number primitive has more than 15 significant digits: ",cn=1e14,un=14,ln=9007199254740991,fn=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],pn=1e7,dn=1e9;function hn(e){var t=0|e;return e>0||e===t?t:t-1}function yn(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=un-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function mn(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return c>u^n?1:-1;for(s=(c=o.length)<(u=i.length)?c:u,a=0;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return c==u?0:c>u^n?1:-1}function gn(e,t,n,r){if(e<t||e>n||e!==on(e))throw Error(an+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function bn(e){var t=e.c.length-1;return hn(e.e/un)==t&&e.c[t]%2!=0}function vn(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function wn(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Sn=function e(t){var n,r,o,i,a,s,c,u,l,f,p=A.prototype={constructor:A,toString:null,valueOf:null},d=new A(1),h=20,y=4,m=-7,g=21,b=-1e7,v=1e7,w=!1,S=1,x=0,k={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},E="0123456789abcdefghijklmnopqrstuvwxyz",T=!0;function A(e,t){var n,i,a,s,c,u,l,f,p=this;if(!(p instanceof A))return new A(e,t);if(null==t){if(e&&!0===e._isBigNumber)return p.s=e.s,void(!e.c||e.e>v?p.c=p.e=null:e.e<b?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice()));if((u="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,c=e;c>=10;c/=10,s++);return void(s>v?p.c=p.e=null:(p.e=s,p.c=[e]))}f=String(e)}else{if(!nn.test(f=String(e)))return o(p,f,u);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(s=f.indexOf("."))>-1&&(f=f.replace(".","")),(c=f.search(/e/i))>0?(s<0&&(s=c),s+=+f.slice(c+1),f=f.substring(0,c)):s<0&&(s=f.length)}else{if(gn(t,2,E.length,"Base"),10==t&&T)return P(p=new A(e),h+p.e+1,y);if(f=String(e),u="number"==typeof e){if(0*e!=0)return o(p,f,u,t);if(p.s=1/e<0?(f=f.slice(1),-1):1,A.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(sn+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=E.slice(0,t),s=c=0,l=f.length;c<l;c++)if(n.indexOf(i=f.charAt(c))<0){if("."==i){if(c>s){s=l;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,c=-1,s=0;continue}return o(p,String(e),u,t)}u=!1,(s=(f=r(f,t,10,p.s)).indexOf("."))>-1?f=f.replace(".",""):s=f.length}for(c=0;48===f.charCodeAt(c);c++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(c,++l)){if(l-=c,u&&A.DEBUG&&l>15&&(e>ln||e!==on(e)))throw Error(sn+p.s*e);if((s=s-c-1)>v)p.c=p.e=null;else if(s<b)p.c=[p.e=0];else{if(p.e=s,p.c=[],c=(s+1)%un,s<0&&(c+=un),c<l){for(c&&p.c.push(+f.slice(0,c)),l-=un;c<l;)p.c.push(+f.slice(c,c+=un));c=un-(f=f.slice(c)).length}else c-=l;for(;c--;f+="0");p.c.push(+f)}}else p.c=[p.e=0]}function C(e,t,n,r){var o,i,a,s,c;if(null==n?n=y:gn(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)c=yn(e.c),c=1==r||2==r&&(a<=m||a>=g)?vn(c,a):wn(c,a,"0");else if(i=(e=P(new A(e),t,n)).e,s=(c=yn(e.c)).length,1==r||2==r&&(t<=i||i<=m)){for(;s<t;c+="0",s++);c=vn(c,i)}else if(t-=a+(2===r&&i>a),c=wn(c,i,"0"),i+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&o?"-"+c:c}function _(e,t){for(var n,r,o=1,i=new A(e[0]);o<e.length;o++)(!(r=new A(e[o])).s||(n=mn(i,r))===t||0===n&&i.s===t)&&(i=r);return i}function O(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*un-1)>v?e.c=e.e=null:n<b?e.c=[e.e=0]:(e.e=n,e.c=t),e}function P(e,t,n,r){var o,i,a,s,c,u,l,f=e.c,p=fn;if(f){e:{for(o=1,s=f[0];s>=10;s/=10,o++);if((i=t-o)<0)i+=un,a=t,c=f[u=0],l=on(c/p[o-a-1]%10);else if((u=rn((i+1)/un))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));c=l=0,o=1,a=(i%=un)-un+1}else{for(c=s=f[u],o=1;s>=10;s/=10,o++);l=(a=(i%=un)-un+o)<0?0:on(c/p[o-a-1]%10)}if(r=r||t<0||null!=f[u+1]||(a<0?c:c%p[o-a-1]),r=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(i>0?a>0?c/p[o-a]: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]=p[(un-t%un)%un],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=u,s=1,u--):(f.length=u+1,s=p[un-i],f[u]=a>0?on(c/p[o-a]%p[a])*s:0),r)for(;;){if(0==u){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==cn&&(f[0]=1));break}if(f[u]+=s,f[u]!=cn)break;f[u--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>v?e.c=e.e=null:e.e<b&&(e.c=[e.e=0])}return e}function R(e){var t,n=e.e;return null===n?e.toString():(t=yn(e.c),t=n<=m||n>=g?vn(t,n):wn(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(an+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(gn(n=e[t],0,dn,t),h=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(gn(n=e[t],0,8,t),y=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(gn(n[0],-dn,0,t),gn(n[1],0,dn,t),m=n[0],g=n[1]):(gn(n,-dn,dn,t),m=-(g=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)gn(n[0],-dn,-1,t),gn(n[1],1,dn,t),b=n[0],v=n[1];else{if(gn(n,-dn,dn,t),!n)throw Error(an+t+" cannot be zero: "+n);b=-(v=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(an+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw w=!n,Error(an+"crypto unavailable");w=n}else w=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(gn(n=e[t],0,9,t),S=n),e.hasOwnProperty(t="POW_PRECISION")&&(gn(n=e[t],0,dn,t),x=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(an+t+" not an object: "+n);k=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(an+t+" invalid: "+n);T="0123456789"==n.slice(0,10),E=n}}return{DECIMAL_PLACES:h,ROUNDING_MODE:y,EXPONENTIAL_AT:[m,g],RANGE:[b,v],CRYPTO:w,MODULO_MODE:S,POW_PRECISION:x,FORMAT:k,ALPHABET:E}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,n,r=e.c,o=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&o>=-dn&&o<=dn&&o===on(o)){if(0===r[0]){if(0===o&&1===r.length)return!0;break e}if((t=(o+1)%un)<1&&(t+=un),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=cn||n!==on(n))break e;if(0!==n)return!0}}}else if(null===r&&null===o&&(null===i||1===i||-1===i))return!0;throw Error(an+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return _(arguments,-1)},A.minimum=A.min=function(){return _(arguments,1)},A.random=(i=9007199254740992,a=Math.random()*i&2097151?function(){return on(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,o,i,s=0,c=[],u=new A(d);if(null==e?e=h:gn(e,0,dn),o=rn(e/un),w)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(i=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(i%1e14),s+=2);s=o/2}else{if(!crypto.randomBytes)throw w=!1,Error(an+"crypto unavailable");for(t=crypto.randomBytes(o*=7);s<o;)(i=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(c.push(i%1e14),s+=7);s=o/7}if(!w)for(;s<o;)(i=a())<9e15&&(c[s++]=i%1e14);for(o=c[--s],e%=un,o&&e&&(i=fn[un-e],c[s]=on(o/i)*i);0===c[s];c.pop(),s--);if(s<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=un);for(s=1,i=c[0];i>=10;i/=10,s++);s<un&&(r-=un-s)}return u.e=r,u.c=c,u}),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 o,i,a=[0],s=0,c=e.length;s<c;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(r,o,i,a,s){var c,u,l,f,p,d,m,g,b=r.indexOf("."),v=h,w=y;for(b>=0&&(f=x,x=0,r=r.replace(".",""),d=(g=new A(o)).pow(r.length-b),x=f,g.c=t(wn(yn(d.c),d.e,"0"),10,i,e),g.e=g.c.length),l=f=(m=t(r,o,i,s?(c=E,e):(c=e,E))).length;0==m[--f];m.pop());if(!m[0])return c.charAt(0);if(b<0?--l:(d.c=m,d.e=l,d.s=a,m=(d=n(d,g,v,w,i)).c,p=d.r,l=d.e),b=m[u=l+v+1],f=i/2,p=p||u<0||null!=m[u+1],p=w<4?(null!=b||p)&&(0==w||w==(d.s<0?3:2)):b>f||b==f&&(4==w||p||6==w&&1&m[u-1]||w==(d.s<0?8:7)),u<1||!m[0])r=p?wn(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(m.length=u,p)for(--i;++m[--u]>i;)m[u]=0,u||(++l,m=[1].concat(m));for(f=m.length;!m[--f];);for(b=0,r="";b<=f;r+=c.charAt(m[b++]));r=wn(r,l,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,o,i,a,s=0,c=e.length,u=t%pn,l=t/pn|0;for(e=e.slice();c--;)s=((o=u*(i=e[c]%pn)+(r=l*i+(a=e[c]/pn|0)*u)%pn*pn+s)/n|0)+(r/pn|0)+l*a,e[c]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,o,i,a,s){var c,u,l,f,p,d,h,y,m,g,b,v,w,S,x,k,E,T=r.s==o.s?1:-1,C=r.c,_=o.c;if(!(C&&C[0]&&_&&_[0]))return new A(r.s&&o.s&&(C?!_||C[0]!=_[0]:_)?C&&0==C[0]||!_?0*T:T/0:NaN);for(m=(y=new A(T)).c=[],T=i+(u=r.e-o.e)+1,s||(s=cn,u=hn(r.e/un)-hn(o.e/un),T=T/un|0),l=0;_[l]==(C[l]||0);l++);if(_[l]>(C[l]||0)&&u--,T<0)m.push(1),f=!0;else{for(S=C.length,k=_.length,l=0,T+=2,(p=on(s/(_[0]+1)))>1&&(_=e(_,p,s),C=e(C,p,s),k=_.length,S=C.length),w=k,b=(g=C.slice(0,k)).length;b<k;g[b++]=0);E=_.slice(),E=[0].concat(E),x=_[0],_[1]>=s/2&&x++;do{if(p=0,(c=t(_,g,k,b))<0){if(v=g[0],k!=b&&(v=v*s+(g[1]||0)),(p=on(v/x))>1)for(p>=s&&(p=s-1),h=(d=e(_,p,s)).length,b=g.length;1==t(d,g,h,b);)p--,n(d,k<h?E:_,h,s),h=d.length,c=1;else 0==p&&(c=p=1),h=(d=_.slice()).length;if(h<b&&(d=[0].concat(d)),n(g,d,b,s),b=g.length,-1==c)for(;t(_,g,k,b)<1;)p++,n(g,k<b?E:_,b,s),b=g.length}else 0===c&&(p++,g=[0]);m[l++]=p,g[0]?g[b++]=C[w]||0:(g=[C[w]],b=1)}while((w++<S||null!=g[0])&&T--);f=null!=g[0],m[0]||m.splice(0,1)}if(s==cn){for(l=1,T=m[0];T>=10;T/=10,l++);P(y,i+(y.e=l+u*un-1)+1,a,f)}else y.e=u,y.r=+f;return y}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,u=/^\.([^.]+)$/,l=/^-?(Infinity|NaN)$/,f=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,n,r){var o,i=n?t:t.replace(f,"");if(l.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(s,function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t}),r&&(o=r,i=i.replace(c,"$1").replace(u,"0.$1")),t!=i))return new A(i,o);if(A.DEBUG)throw Error(an+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},p.absoluteValue=p.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},p.comparedTo=function(e,t){return mn(this,new A(e,t))},p.decimalPlaces=p.dp=function(e,t){var n,r,o,i=this;if(null!=e)return gn(e,0,dn),null==t?t=y:gn(t,0,8),P(new A(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((o=n.length-1)-hn(this.e/un))*un,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},p.dividedBy=p.div=function(e,t){return n(this,new A(e,t),h,y)},p.dividedToIntegerBy=p.idiv=function(e,t){return n(this,new A(e,t),0,1)},p.exponentiatedBy=p.pow=function(e,t){var n,r,o,i,a,s,c,u,l=this;if((e=new A(e)).c&&!e.isInteger())throw Error(an+"Exponent not an integer: "+R(e));if(null!=t&&(t=new A(t)),a=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return u=new A(Math.pow(+R(l),a?e.s*(2-bn(e)):+R(e))),t?u.mod(t):u;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(r=!s&&l.isInteger()&&t.isInteger())&&(l=l.mod(t))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||a&&l.c[1]>=24e7:l.c[0]<8e13||a&&l.c[0]<=9999975e7)))return i=l.s<0&&bn(e)?-0:0,l.e>-1&&(i=1/i),new A(s?1/i:i);x&&(i=rn(x/un+2))}for(a?(n=new A(.5),s&&(e.s=1),c=bn(e)):c=(o=Math.abs(+R(e)))%2,u=new A(d);;){if(c){if(!(u=u.times(l)).c)break;i?u.c.length>i&&(u.c.length=i):r&&(u=u.mod(t))}if(o){if(0===(o=on(o/2)))break;c=o%2}else if(P(e=e.times(n),e.e+1,1),e.e>14)c=bn(e);else{if(0===(o=+R(e)))break;c=o%2}l=l.times(l),i?l.c&&l.c.length>i&&(l.c.length=i):r&&(l=l.mod(t))}return r?u:(s&&(u=d.div(u)),t?u.mod(t):i?P(u,x,y,void 0):u)},p.integerValue=function(e){var t=new A(this);return null==e?e=y:gn(e,0,8),P(t,t.e+1,e)},p.isEqualTo=p.eq=function(e,t){return 0===mn(this,new A(e,t))},p.isFinite=function(){return!!this.c},p.isGreaterThan=p.gt=function(e,t){return mn(this,new A(e,t))>0},p.isGreaterThanOrEqualTo=p.gte=function(e,t){return 1===(t=mn(this,new A(e,t)))||0===t},p.isInteger=function(){return!!this.c&&hn(this.e/un)>this.c.length-2},p.isLessThan=p.lt=function(e,t){return mn(this,new A(e,t))<0},p.isLessThanOrEqualTo=p.lte=function(e,t){return-1===(t=mn(this,new A(e,t)))||0===t},p.isNaN=function(){return!this.s},p.isNegative=function(){return this.s<0},p.isPositive=function(){return this.s>0},p.isZero=function(){return!!this.c&&0==this.c[0]},p.minus=function(e,t){var n,r,o,i,a=this,s=a.s;if(t=(e=new A(e,t)).s,!s||!t)return new A(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/un,u=e.e/un,l=a.c,f=e.c;if(!c||!u){if(!l||!f)return l?(e.s=-t,e):new A(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new A(l[0]?a:3==y?-0:0)}if(c=hn(c),u=hn(u),l=l.slice(),s=c-u){for((i=s<0)?(s=-s,o=l):(u=c,o=f),o.reverse(),t=s;t--;o.push(0));o.reverse()}else for(r=(i=(s=l.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(l[t]!=f[t]){i=l[t]<f[t];break}if(i&&(o=l,l=f,f=o,e.s=-e.s),(t=(r=f.length)-(n=l.length))>0)for(;t--;l[n++]=0);for(t=cn-1;r>s;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=cn}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--u);return l[0]?O(e,l,u):(e.s=3==y?-1:1,e.c=[e.e=0],e)},p.modulo=p.mod=function(e,t){var r,o,i=this;return e=new A(e,t),!i.c||!e.s||e.c&&!e.c[0]?new A(NaN):!e.c||i.c&&!i.c[0]?new A(i):(9==S?(o=e.s,e.s=1,r=n(i,e,0,3),e.s=o,r.s*=o):r=n(i,e,0,S),(e=i.minus(r.times(e))).c[0]||1!=S||(e.s=i.s),e)},p.multipliedBy=p.times=function(e,t){var n,r,o,i,a,s,c,u,l,f,p,d,h,y,m,g=this,b=g.c,v=(e=new A(e,t)).c;if(!(b&&v&&b[0]&&v[0]))return!g.s||!e.s||b&&!b[0]&&!v||v&&!v[0]&&!b?e.c=e.e=e.s=null:(e.s*=g.s,b&&v?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=hn(g.e/un)+hn(e.e/un),e.s*=g.s,(c=b.length)<(f=v.length)&&(h=b,b=v,v=h,o=c,c=f,f=o),o=c+f,h=[];o--;h.push(0));for(y=cn,m=pn,o=f;--o>=0;){for(n=0,p=v[o]%m,d=v[o]/m|0,i=o+(a=c);i>o;)n=((u=p*(u=b[--a]%m)+(s=d*u+(l=b[a]/m|0)*p)%m*m+h[i]+n)/y|0)+(s/m|0)+d*l,h[i--]=u%y;h[i]=n}return n?++r:h.splice(0,1),O(e,h,r)},p.negated=function(){var e=new A(this);return e.s=-e.s||null,e},p.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new A(e,t)).s,!o||!t)return new A(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/un,a=e.e/un,s=r.c,c=e.c;if(!i||!a){if(!s||!c)return new A(o/0);if(!s[0]||!c[0])return c[0]?e:new A(s[0]?r:0*o)}if(i=hn(i),a=hn(a),s=s.slice(),o=i-a){for(o>0?(a=i,n=c):(o=-o,n=s),n.reverse();o--;n.push(0));n.reverse()}for((o=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=o),o=0;t;)o=(s[--t]=s[t]+c[t]+o)/cn|0,s[t]=cn===s[t]?0:s[t]%cn;return o&&(s=[o].concat(s),++a),O(e,s,a)},p.precision=p.sd=function(e,t){var n,r,o,i=this;if(null!=e&&e!==!!e)return gn(e,1,dn),null==t?t=y:gn(t,0,8),P(new A(i),e,t);if(!(n=i.c))return null;if(r=(o=n.length-1)*un+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},p.shiftedBy=function(e){return gn(e,-9007199254740991,ln),this.times("1e"+e)},p.squareRoot=p.sqrt=function(){var e,t,r,o,i,a=this,s=a.c,c=a.s,u=a.e,l=h+4,f=new A("0.5");if(1!==c||!s||!s[0])return new A(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+R(a)))||c==1/0?(((t=yn(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=hn((u+1)/2)-(u<0||u%2),r=new A(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new A(c+""),r.c[0])for((c=(u=r.e)+l)<3&&(c=0);;)if(i=r,r=f.times(i.plus(n(a,i,l,1))),yn(i.c).slice(0,c)===(t=yn(r.c)).slice(0,c)){if(r.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(P(r,r.e+h+2,1),e=!r.times(r).eq(a));break}if(!o&&(P(i,i.e+h+2,0),i.times(i).eq(a))){r=i;break}l+=4,c+=4,o=1}return P(r,r.e+h+1,y,e)},p.toExponential=function(e,t){return null!=e&&(gn(e,0,dn),e++),C(this,e,t,1)},p.toFixed=function(e,t){return null!=e&&(gn(e,0,dn),e=e+this.e+1),C(this,e,t)},p.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=k;else if("object"!=typeof n)throw Error(an+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var i,a=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",l=a[0],f=a[1],p=o.s<0,d=p?l.slice(1):l,h=d.length;if(c&&(i=s,s=c,c=i,h-=i),s>0&&h>0){for(i=h%s||s,l=d.substr(0,i);i<h;i+=s)l+=u+d.substr(i,s);c>0&&(l+=u+d.slice(i)),p&&(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||"")},p.toFraction=function(e){var t,r,o,i,a,s,c,u,l,f,p,h,m=this,g=m.c;if(null!=e&&(!(c=new A(e)).isInteger()&&(c.c||1!==c.s)||c.lt(d)))throw Error(an+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+R(c));if(!g)return new A(m);for(t=new A(d),l=r=new A(d),o=u=new A(d),h=yn(g),a=t.e=h.length-m.e-1,t.c[0]=fn[(s=a%un)<0?un+s:s],e=!e||c.comparedTo(t)>0?a>0?t:l:c,s=v,v=1/0,c=new A(h),u.c[0]=0;f=n(c,t,0,1),1!=(i=r.plus(f.times(o))).comparedTo(e);)r=o,o=i,l=u.plus(f.times(i=l)),u=i,t=c.minus(f.times(i=t)),c=i;return i=n(e.minus(r),o,0,1),u=u.plus(i.times(l)),r=r.plus(i.times(o)),u.s=l.s=m.s,p=n(l,o,a*=2,y).minus(m).abs().comparedTo(n(u,r,a,y).minus(m).abs())<1?[l,o]:[u,r],v=s,p},p.toNumber=function(){return+R(this)},p.toPrecision=function(e,t){return null!=e&&gn(e,1,dn),C(this,e,t,2)},p.toString=function(e){var t,n=this,o=n.s,i=n.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(null==e?t=i<=m||i>=g?vn(yn(n.c),i):wn(yn(n.c),i,"0"):10===e&&T?t=wn(yn((n=P(new A(n),h+i+1,y)).c),n.e,"0"):(gn(e,2,E.length,"Base"),t=r(wn(yn(n.c),i,"0"),10,e,o,!0)),o<0&&n.c[0]&&(t="-"+t)),t},p.valueOf=p.toJSON=function(){return R(this)},p._isBigNumber=!0,p[Symbol.toStringTag]="BigNumber",p[Symbol.for("nodejs.util.inspect.custom")]=p.valueOf,null!=t&&A.set(t),A}(),xn=Sn.clone();xn.DEBUG=!0;const kn=xn;function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Tn=2147483647;function An(e){return An="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},An(e)}function Cn(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 _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach(function(t){On(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function On(e,t,n){return(t=Rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(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,Rn(r.key),r)}}function Rn(e){var t=function(e){if("object"!=An(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=An(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}var jn=function(e,t,n){return t&&Pn(e.prototype,t),n&&Pn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!(t&&t instanceof $t))throw new Error("assetA is invalid");if(!(n&&n instanceof $t))throw new Error("assetB is invalid");if(-1!==$t.compare(t,n))throw new Error("Assets are not in lexicographic order");if(!r||r!==Qt)throw new Error("fee is invalid");this.assetA=t,this.assetB=n,this.fee=r},[{key:"toXDRObject",value:function(){var e=new i.LiquidityPoolConstantProductParameters({assetA:this.assetA.toXDRObject(),assetB:this.assetB.toXDRObject(),fee:this.fee}),t=new i.LiquidityPoolParameters("liquidityPoolConstantProduct",e);return new i.ChangeTrustAsset("assetTypePoolShare",t)}},{key:"getLiquidityPoolParameters",value:function(){return _n(_n({},this),{},{assetA:this.assetA,assetB:this.assetB,fee:this.fee})}},{key:"getAssetType",value:function(){return"liquidity_pool_shares"}},{key:"equals",value:function(e){return this.assetA.equals(e.assetA)&&this.assetB.equals(e.assetB)&&this.fee===e.fee}},{key:"toString",value:function(){var e=Zt("constant_product",this.getLiquidityPoolParameters()).toString("hex");return"liquidity_pool:".concat(e)}}],[{key:"fromOperation",value:function(e){var t=e.switch();if(t===i.AssetType.assetTypePoolShare()){var n=e.liquidityPool().constantProduct();return new this($t.fromOperation(n.assetA()),$t.fromOperation(n.assetB()),n.fee())}throw new Error("Invalid asset type: ".concat(t.name))}}]);function In(e){return In="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},In(e)}function Nn(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,Ln(r.key),r)}}function Ln(e){var t=function(e){if("object"!=In(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==In(t)?t:t+""}var Bn=function(e,t,n){return t&&Nn(e.prototype,t),n&&Nn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&!It.isValidEd25519PublicKey(t))throw new Error("Destination is invalid");if(this._destination=t,n){if(!(n instanceof i.ClaimPredicate))throw new Error("Predicate should be an xdr.ClaimPredicate");this._predicate=n}else this._predicate=i.ClaimPredicate.claimPredicateUnconditional()},[{key:"toXDRObject",value:function(){var e=new i.ClaimantV0({destination:qt.fromPublicKey(this._destination).xdrAccountId(),predicate:this._predicate});return i.Claimant.claimantTypeV0(e)}},{key:"destination",get:function(){return this._destination},set:function(e){throw new Error("Claimant is immutable")}},{key:"predicate",get:function(){return this._predicate},set:function(e){throw new Error("Claimant is immutable")}}],[{key:"predicateUnconditional",value:function(){return i.ClaimPredicate.claimPredicateUnconditional()}},{key:"predicateAnd",value:function(e,t){if(!(e instanceof i.ClaimPredicate))throw new Error("left Predicate should be an xdr.ClaimPredicate");if(!(t instanceof i.ClaimPredicate))throw new Error("right Predicate should be an xdr.ClaimPredicate");return i.ClaimPredicate.claimPredicateAnd([e,t])}},{key:"predicateOr",value:function(e,t){if(!(e instanceof i.ClaimPredicate))throw new Error("left Predicate should be an xdr.ClaimPredicate");if(!(t instanceof i.ClaimPredicate))throw new Error("right Predicate should be an xdr.ClaimPredicate");return i.ClaimPredicate.claimPredicateOr([e,t])}},{key:"predicateNot",value:function(e){if(!(e instanceof i.ClaimPredicate))throw new Error("right Predicate should be an xdr.ClaimPredicate");return i.ClaimPredicate.claimPredicateNot(e)}},{key:"predicateBeforeAbsoluteTime",value:function(e){return i.ClaimPredicate.claimPredicateBeforeAbsoluteTime(i.Int64.fromString(e))}},{key:"predicateBeforeRelativeTime",value:function(e){return i.ClaimPredicate.claimPredicateBeforeRelativeTime(i.Int64.fromString(e))}},{key:"fromXDR",value:function(e){var t;if(e.switch()===i.ClaimantType.claimantTypeV0())return t=e.v0(),new this(It.encodeEd25519PublicKey(t.destination().ed25519()),t.predicate());throw new Error("Invalid claimant type: ".concat(e.switch().name))}}]);function Dn(e){return Dn="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},Dn(e)}function Un(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,Mn(r.key),r)}}function Mn(e){var t=function(e){if("object"!=Dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dn(t)?t:t+""}var Fn=function(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("liquidityPoolId cannot be empty");if(!/^[a-f0-9]{64}$/.test(t))throw new Error("Liquidity pool ID is not a valid hash");this.liquidityPoolId=t},[{key:"toXDRObject",value:function(){var e=i.PoolId.fromXDR(this.liquidityPoolId,"hex");return new i.TrustLineAsset("assetTypePoolShare",e)}},{key:"getLiquidityPoolId",value:function(){return String(this.liquidityPoolId)}},{key:"getAssetType",value:function(){return"liquidity_pool_shares"}},{key:"equals",value:function(e){return this.liquidityPoolId===e.getLiquidityPoolId()}},{key:"toString",value:function(){return"liquidity_pool:".concat(this.liquidityPoolId)}}],[{key:"fromOperation",value:function(e){var t=e.switch();if(t===i.AssetType.assetTypePoolShare())return new this(e.liquidityPoolId().toString("hex"));throw new Error("Invalid asset type: ".concat(t.name))}}]),Vn=n(8287).Buffer;function qn(e){return It.isValidMed25519PublicKey(e)?function(e){var t=It.decodeMed25519PublicKey(e);return i.MuxedAccount.keyTypeMuxedEd25519(new i.MuxedAccountMed25519({id:i.Uint64.fromXDR(t.subarray(-8)),ed25519:t.subarray(0,-8)}))}(e):i.MuxedAccount.keyTypeEd25519(It.decodeEd25519PublicKey(e))}function zn(e){return e.switch().value===i.CryptoKeyType.keyTypeMuxedEd25519().value?function(e){if(e.switch()===i.CryptoKeyType.keyTypeEd25519())return zn(e);var t=e.med25519();return It.encodeMed25519PublicKey(Vn.concat([t.ed25519(),t.id().toXDR("raw")]))}(e):It.encodeEd25519PublicKey(e.ed25519())}function Hn(e,t){if(!It.isValidEd25519PublicKey(e))throw new Error("address should be a Stellar account ID (G...)");if("string"!=typeof t)throw new Error("id should be a string representing a number (uint64)");return i.MuxedAccount.keyTypeMuxedEd25519(new i.MuxedAccountMed25519({id:i.Uint64.fromString(t),ed25519:It.decodeEd25519PublicKey(e)}))}function Wn(e){if(It.isValidEd25519PublicKey(e))return e;if(!It.isValidMed25519PublicKey(e))throw new TypeError("expected muxed account (M...), got ".concat(e));var t=qn(e);return It.encodeEd25519PublicKey(t.med25519().ed25519())}function Kn(e){if("string"!=typeof e||72!==e.length)throw new Error("must provide a valid claimable balance id")}var $n=n(8287).Buffer,Xn=n(8287).Buffer;function Gn(e,t){if(e>=0&&e<=255)return!0;throw new Error("".concat(t," value must be between 0 and 255"))}var Qn=n(8287).Buffer;function Zn(e){return Zn="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},Zn(e)}var Yn=n(8287).Buffer;function Jn(e){return Jn="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},Jn(e)}function er(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,tr(r.key),r)}}function tr(e){var t=function(e){if("object"!=Jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jn(t)?t:t+""}var nr=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),It.isValidEd25519PublicKey(t))this._type="account",this._key=It.decodeEd25519PublicKey(t);else if(It.isValidContract(t))this._type="contract",this._key=It.decodeContract(t);else if(It.isValidMed25519PublicKey(t))this._type="muxedAccount",this._key=It.decodeMed25519PublicKey(t);else if(It.isValidClaimableBalance(t))this._type="claimableBalance",this._key=It.decodeClaimableBalance(t);else{if(!It.isValidLiquidityPool(t))throw new Error("Unsupported address type: ".concat(t));this._type="liquidityPool",this._key=It.decodeLiquidityPool(t)}}return function(e,t,n){return t&&er(e.prototype,t),n&&er(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"toString",value:function(){switch(this._type){case"account":return It.encodeEd25519PublicKey(this._key);case"contract":return It.encodeContract(this._key);case"claimableBalance":return It.encodeClaimableBalance(this._key);case"liquidityPool":return It.encodeLiquidityPool(this._key);case"muxedAccount":return It.encodeMed25519PublicKey(this._key);default:throw new Error("Unsupported address type")}}},{key:"toScVal",value:function(){return i.ScVal.scvAddress(this.toScAddress())}},{key:"toScAddress",value:function(){switch(this._type){case"account":return i.ScAddress.scAddressTypeAccount(i.PublicKey.publicKeyTypeEd25519(this._key));case"contract":return i.ScAddress.scAddressTypeContract(this._key);case"liquidityPool":return i.ScAddress.scAddressTypeLiquidityPool(this._key);case"claimableBalance":return i.ScAddress.scAddressTypeClaimableBalance(new i.ClaimableBalanceId("claimableBalanceIdTypeV".concat(this._key.at(0)),this._key.subarray(1)));case"muxedAccount":return i.ScAddress.scAddressTypeMuxedAccount(new i.MuxedEd25519Account({ed25519:this._key.subarray(0,32),id:i.Uint64.fromXDR(this._key.subarray(32,40),"raw")}));default:throw new Error("Unsupported address type: ".concat(this._type))}}},{key:"toBuffer",value:function(){return this._key}}],[{key:"fromString",value:function(t){return new e(t)}},{key:"account",value:function(t){return new e(It.encodeEd25519PublicKey(t))}},{key:"contract",value:function(t){return new e(It.encodeContract(t))}},{key:"claimableBalance",value:function(t){return new e(It.encodeClaimableBalance(t))}},{key:"liquidityPool",value:function(t){return new e(It.encodeLiquidityPool(t))}},{key:"muxedAccount",value:function(t){return new e(It.encodeMed25519PublicKey(t))}},{key:"fromScVal",value:function(t){return e.fromScAddress(t.address())}},{key:"fromScAddress",value:function(t){switch(t.switch().value){case i.ScAddressType.scAddressTypeAccount().value:return e.account(t.accountId().ed25519());case i.ScAddressType.scAddressTypeContract().value:return e.contract(t.contractId());case i.ScAddressType.scAddressTypeMuxedAccount().value:var n=Yn.concat([t.muxedAccount().ed25519(),t.muxedAccount().id().toXDR("raw")]);return e.muxedAccount(n);case i.ScAddressType.scAddressTypeClaimableBalance().value:return e.claimableBalance(t.claimableBalanceId());case i.ScAddressType.scAddressTypeLiquidityPool().value:return e.liquidityPool(t.liquidityPoolId());default:throw new Error("Unsupported address type: ".concat(t.switch().name))}}}])}(),rr=n(8287).Buffer;function or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ir(e){return ir="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},ir(e)}function ar(e){var t=function(e){if("object"!=ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ir(t)?t:t+""}var sr=1e7,cr=1,ur=2,lr=4,fr=8,pr=function(e,t,n){return n&&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,ar(r.key),r)}}(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"setSourceAccount",value:function(e,t){if(t.source)try{e.sourceAccount=qn(t.source)}catch(e){throw new Error("Source address is invalid")}}},{key:"fromXDRObject",value:function(e){var t={};e.sourceAccount()&&(t.source=zn(e.sourceAccount()));var n=e.body().value(),r=e.body().switch().name;switch(r){case"createAccount":t.type="createAccount",t.destination=dr(n.destination()),t.startingBalance=this._fromXDRAmount(n.startingBalance());break;case"payment":t.type="payment",t.destination=zn(n.destination()),t.asset=$t.fromOperation(n.asset()),t.amount=this._fromXDRAmount(n.amount());break;case"pathPaymentStrictReceive":t.type="pathPaymentStrictReceive",t.sendAsset=$t.fromOperation(n.sendAsset()),t.sendMax=this._fromXDRAmount(n.sendMax()),t.destination=zn(n.destination()),t.destAsset=$t.fromOperation(n.destAsset()),t.destAmount=this._fromXDRAmount(n.destAmount()),t.path=[];var o=n.path();Object.keys(o).forEach(function(e){t.path.push($t.fromOperation(o[e]))});break;case"pathPaymentStrictSend":t.type="pathPaymentStrictSend",t.sendAsset=$t.fromOperation(n.sendAsset()),t.sendAmount=this._fromXDRAmount(n.sendAmount()),t.destination=zn(n.destination()),t.destAsset=$t.fromOperation(n.destAsset()),t.destMin=this._fromXDRAmount(n.destMin()),t.path=[];var a=n.path();Object.keys(a).forEach(function(e){t.path.push($t.fromOperation(a[e]))});break;case"changeTrust":t.type="changeTrust",n.line().switch()===i.AssetType.assetTypePoolShare()?t.line=jn.fromOperation(n.line()):t.line=$t.fromOperation(n.line()),t.limit=this._fromXDRAmount(n.limit());break;case"allowTrust":t.type="allowTrust",t.trustor=dr(n.trustor()),t.assetCode=n.asset().value().toString(),t.assetCode=kt(t.assetCode,"\0"),t.authorize=n.authorize();break;case"setOptions":if(t.type="setOptions",n.inflationDest()&&(t.inflationDest=dr(n.inflationDest())),t.clearFlags=n.clearFlags(),t.setFlags=n.setFlags(),t.masterWeight=n.masterWeight(),t.lowThreshold=n.lowThreshold(),t.medThreshold=n.medThreshold(),t.highThreshold=n.highThreshold(),t.homeDomain=void 0!==n.homeDomain()?n.homeDomain().toString("ascii"):void 0,n.signer()){var s={},c=n.signer().key().arm();if("ed25519"===c)s.ed25519PublicKey=dr(n.signer().key());else if("preAuthTx"===c)s.preAuthTx=n.signer().key().preAuthTx();else if("hashX"===c)s.sha256Hash=n.signer().key().hashX();else if("ed25519SignedPayload"===c){var u=n.signer().key().ed25519SignedPayload();s.ed25519SignedPayload=It.encodeSignedPayload(u.toXDR())}s.weight=n.signer().weight(),t.signer=s}break;case"manageOffer":case"manageSellOffer":t.type="manageSellOffer",t.selling=$t.fromOperation(n.selling()),t.buying=$t.fromOperation(n.buying()),t.amount=this._fromXDRAmount(n.amount()),t.price=this._fromXDRPrice(n.price()),t.offerId=n.offerId().toString();break;case"manageBuyOffer":t.type="manageBuyOffer",t.selling=$t.fromOperation(n.selling()),t.buying=$t.fromOperation(n.buying()),t.buyAmount=this._fromXDRAmount(n.buyAmount()),t.price=this._fromXDRPrice(n.price()),t.offerId=n.offerId().toString();break;case"createPassiveOffer":case"createPassiveSellOffer":t.type="createPassiveSellOffer",t.selling=$t.fromOperation(n.selling()),t.buying=$t.fromOperation(n.buying()),t.amount=this._fromXDRAmount(n.amount()),t.price=this._fromXDRPrice(n.price());break;case"accountMerge":t.type="accountMerge",t.destination=zn(n);break;case"manageData":t.type="manageData",t.name=n.dataName().toString("ascii"),t.value=n.dataValue();break;case"inflation":t.type="inflation";break;case"bumpSequence":t.type="bumpSequence",t.bumpTo=n.bumpTo().toString();break;case"createClaimableBalance":t.type="createClaimableBalance",t.asset=$t.fromOperation(n.asset()),t.amount=this._fromXDRAmount(n.amount()),t.claimants=[],n.claimants().forEach(function(e){t.claimants.push(Bn.fromXDR(e))});break;case"claimClaimableBalance":t.type="claimClaimableBalance",t.balanceId=n.toXDR("hex");break;case"beginSponsoringFutureReserves":t.type="beginSponsoringFutureReserves",t.sponsoredId=dr(n.sponsoredId());break;case"endSponsoringFutureReserves":t.type="endSponsoringFutureReserves";break;case"revokeSponsorship":!function(e,t){switch(e.switch().name){case"revokeSponsorshipLedgerEntry":var n=e.ledgerKey();switch(n.switch().name){case i.LedgerEntryType.account().name:t.type="revokeAccountSponsorship",t.account=dr(n.account().accountId());break;case i.LedgerEntryType.trustline().name:t.type="revokeTrustlineSponsorship",t.account=dr(n.trustLine().accountId());var r=n.trustLine().asset();r.switch()===i.AssetType.assetTypePoolShare()?t.asset=Fn.fromOperation(r):t.asset=$t.fromOperation(r);break;case i.LedgerEntryType.offer().name:t.type="revokeOfferSponsorship",t.seller=dr(n.offer().sellerId()),t.offerId=n.offer().offerId().toString();break;case i.LedgerEntryType.data().name:t.type="revokeDataSponsorship",t.account=dr(n.data().accountId()),t.name=n.data().dataName().toString("ascii");break;case i.LedgerEntryType.claimableBalance().name:t.type="revokeClaimableBalanceSponsorship",t.balanceId=n.claimableBalance().balanceId().toXDR("hex");break;case i.LedgerEntryType.liquidityPool().name:t.type="revokeLiquidityPoolSponsorship",t.liquidityPoolId=n.liquidityPool().liquidityPoolId().toString("hex");break;default:throw new Error("Unknown ledgerKey: ".concat(e.switch().name))}break;case"revokeSponsorshipSigner":t.type="revokeSignerSponsorship",t.account=dr(e.signer().accountId()),t.signer=function(e){var t={};switch(e.switch().name){case i.SignerKeyType.signerKeyTypeEd25519().name:t.ed25519PublicKey=It.encodeEd25519PublicKey(e.ed25519());break;case i.SignerKeyType.signerKeyTypePreAuthTx().name:t.preAuthTx=e.preAuthTx().toString("hex");break;case i.SignerKeyType.signerKeyTypeHashX().name:t.sha256Hash=e.hashX().toString("hex");break;default:throw new Error("Unknown signerKey: ".concat(e.switch().name))}return t}(e.signer().signerKey());break;default:throw new Error("Unknown revokeSponsorship: ".concat(e.switch().name))}}(n,t);break;case"clawback":t.type="clawback",t.amount=this._fromXDRAmount(n.amount()),t.from=zn(n.from()),t.asset=$t.fromOperation(n.asset());break;case"clawbackClaimableBalance":t.type="clawbackClaimableBalance",t.balanceId=n.toXDR("hex");break;case"setTrustLineFlags":t.type="setTrustLineFlags",t.asset=$t.fromOperation(n.asset()),t.trustor=dr(n.trustor());var l=n.clearFlags(),f=n.setFlags(),p={authorized:i.TrustLineFlags.authorizedFlag(),authorizedToMaintainLiabilities:i.TrustLineFlags.authorizedToMaintainLiabilitiesFlag(),clawbackEnabled:i.TrustLineFlags.trustlineClawbackEnabledFlag()};t.flags={},Object.keys(p).forEach(function(e){var n;t.flags[e]=(n=p[e].value,!!(f&n)||!(l&n)&&void 0)});break;case"liquidityPoolDeposit":t.type="liquidityPoolDeposit",t.liquidityPoolId=n.liquidityPoolId().toString("hex"),t.maxAmountA=this._fromXDRAmount(n.maxAmountA()),t.maxAmountB=this._fromXDRAmount(n.maxAmountB()),t.minPrice=this._fromXDRPrice(n.minPrice()),t.maxPrice=this._fromXDRPrice(n.maxPrice());break;case"liquidityPoolWithdraw":t.type="liquidityPoolWithdraw",t.liquidityPoolId=n.liquidityPoolId().toString("hex"),t.amount=this._fromXDRAmount(n.amount()),t.minAmountA=this._fromXDRAmount(n.minAmountA()),t.minAmountB=this._fromXDRAmount(n.minAmountB());break;case"invokeHostFunction":var d;t.type="invokeHostFunction",t.func=n.hostFunction(),t.auth=null!==(d=n.auth())&&void 0!==d?d:[];break;case"extendFootprintTtl":t.type="extendFootprintTtl",t.extendTo=n.extendTo();break;case"restoreFootprint":t.type="restoreFootprint";break;default:throw new Error("Unknown operation: ".concat(r))}return t}},{key:"isValidAmount",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)return!1;try{t=new kn(e)}catch(e){return!1}return!(!n&&t.isZero()||t.isNegative()||t.times(sr).gt(new kn("9223372036854775807").toString())||t.decimalPlaces()>7||t.isNaN()||!t.isFinite())}},{key:"constructAmountRequirementsError",value:function(e){return"".concat(e," argument must be of type String, represent a positive number and have at most 7 digits after the decimal")}},{key:"_checkUnsignedIntValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(void 0!==t)switch("string"==typeof t&&(t=parseFloat(t)),!0){case"number"!=typeof t||!Number.isFinite(t)||t%1!=0:throw new Error("".concat(e," value is invalid"));case t<0:throw new Error("".concat(e," value must be unsigned"));case!n||n&&n(t,e):return t;default:throw new Error("".concat(e," value is invalid"))}}},{key:"_toXDRAmount",value:function(e){var t=new kn(e).times(sr);return r.Hyper.fromString(t.toString())}},{key:"_fromXDRAmount",value:function(e){return new kn(e).div(sr).toFixed(7)}},{key:"_fromXDRPrice",value:function(e){return new kn(e.n()).div(new kn(e.d())).toString()}},{key:"_toXDRPrice",value:function(e){var t;if(e.n&&e.d)t=new i.Price(e);else{var n=function(e){for(var t,n,r=new kn(e),o=[[new kn(0),new kn(1)],[new kn(1),new kn(0)]],i=2;!r.gt(Tn);){t=r.integerValue(kn.ROUND_FLOOR),n=r.minus(t);var a=t.times(o[i-1][0]).plus(o[i-2][0]),s=t.times(o[i-1][1]).plus(o[i-2][1]);if(a.gt(Tn)||s.gt(Tn))break;if(o.push([a,s]),n.eq(0))break;r=new kn(1).div(n),i+=1}var c=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return En(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?En(e,2):void 0}}(e)||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.")}()}(o[o.length-1]),u=c[0],l=c[1];if(u.isZero()||l.isZero())throw new Error("Couldn't find approximation");return[u.toNumber(),l.toNumber()]}(e);t=new i.Price({n:parseInt(n[0],10),d:parseInt(n[1],10)})}if(t.n()<0||t.d()<0)throw new Error("price must be positive");return t}}]);function dr(e){return It.encodeEd25519PublicKey(e.ed25519())}pr.accountMerge=function(e){var t={};try{t.body=i.OperationBody.accountMerge(qn(e.destination))}catch(e){throw new Error("destination is invalid")}return this.setSourceAccount(t,e),new i.Operation(t)},pr.allowTrust=function(e){if(!It.isValidEd25519PublicKey(e.trustor))throw new Error("trustor is invalid");var t={};if(t.trustor=qt.fromPublicKey(e.trustor).xdrAccountId(),e.assetCode.length<=4){var n=e.assetCode.padEnd(4,"\0");t.asset=i.AssetCode.assetTypeCreditAlphanum4(n)}else{if(!(e.assetCode.length<=12))throw new Error("Asset code must be 12 characters at max.");var r=e.assetCode.padEnd(12,"\0");t.asset=i.AssetCode.assetTypeCreditAlphanum12(r)}"boolean"==typeof e.authorize?e.authorize?t.authorize=i.TrustLineFlags.authorizedFlag().value:t.authorize=0:t.authorize=e.authorize;var o=new i.AllowTrustOp(t),a={};return a.body=i.OperationBody.allowTrust(o),this.setSourceAccount(a,e),new i.Operation(a)},pr.bumpSequence=function(e){var t={};if("string"!=typeof e.bumpTo)throw new Error("bumpTo must be a string");try{new kn(e.bumpTo)}catch(e){throw new Error("bumpTo must be a stringified number")}t.bumpTo=r.Hyper.fromString(e.bumpTo);var n=new i.BumpSequenceOp(t),o={};return o.body=i.OperationBody.bumpSequence(n),this.setSourceAccount(o,e),new i.Operation(o)},pr.changeTrust=function(e){var t={};if(e.asset instanceof $t)t.line=e.asset.toChangeTrustXDRObject();else{if(!(e.asset instanceof jn))throw new TypeError("asset must be Asset or LiquidityPoolAsset");t.line=e.asset.toXDRObject()}if(void 0!==e.limit&&!this.isValidAmount(e.limit,!0))throw new TypeError(this.constructAmountRequirementsError("limit"));e.limit?t.limit=this._toXDRAmount(e.limit):t.limit=r.Hyper.fromString(new kn("9223372036854775807").toString()),e.source&&(t.source=e.source.masterKeypair);var n=new i.ChangeTrustOp(t),o={};return o.body=i.OperationBody.changeTrust(n),this.setSourceAccount(o,e),new i.Operation(o)},pr.createAccount=function(e){if(!It.isValidEd25519PublicKey(e.destination))throw new Error("destination is invalid");if(!this.isValidAmount(e.startingBalance,!0))throw new TypeError(this.constructAmountRequirementsError("startingBalance"));var t={};t.destination=qt.fromPublicKey(e.destination).xdrAccountId(),t.startingBalance=this._toXDRAmount(e.startingBalance);var n=new i.CreateAccountOp(t),r={};return r.body=i.OperationBody.createAccount(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.createClaimableBalance=function(e){if(!(e.asset instanceof $t))throw new Error("must provide an asset for create claimable balance operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(!Array.isArray(e.claimants)||0===e.claimants.length)throw new Error("must provide at least one claimant");var t={};t.asset=e.asset.toXDRObject(),t.amount=this._toXDRAmount(e.amount),t.claimants=Object.values(e.claimants).map(function(e){return e.toXDRObject()});var n=new i.CreateClaimableBalanceOp(t),r={};return r.body=i.OperationBody.createClaimableBalance(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.claimClaimableBalance=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Kn(e.balanceId);var t={};t.balanceId=i.ClaimableBalanceId.fromXDR(e.balanceId,"hex");var n=new i.ClaimClaimableBalanceOp(t),r={};return r.body=i.OperationBody.claimClaimableBalance(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.clawbackClaimableBalance=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Kn(e.balanceId);var t={balanceId:i.ClaimableBalanceId.fromXDR(e.balanceId,"hex")},n={body:i.OperationBody.clawbackClaimableBalance(new i.ClawbackClaimableBalanceOp(t))};return this.setSourceAccount(n,e),new i.Operation(n)},pr.createPassiveSellOffer=function(e){var t={};if(t.selling=e.selling.toXDRObject(),t.buying=e.buying.toXDRObject(),!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(t.amount=this._toXDRAmount(e.amount),void 0===e.price)throw new TypeError("price argument is required");t.price=this._toXDRPrice(e.price);var n=new i.CreatePassiveSellOfferOp(t),r={};return r.body=i.OperationBody.createPassiveSellOffer(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.inflation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return t.body=i.OperationBody.inflation(),this.setSourceAccount(t,e),new i.Operation(t)},pr.manageData=function(e){var t={};if(!("string"==typeof e.name&&e.name.length<=64))throw new Error("name must be a string, up to 64 characters");if(t.dataName=e.name,"string"!=typeof e.value&&!$n.isBuffer(e.value)&&null!==e.value)throw new Error("value must be a string, Buffer or null");if("string"==typeof e.value?t.dataValue=$n.from(e.value):t.dataValue=e.value,null!==t.dataValue&&t.dataValue.length>64)throw new Error("value cannot be longer that 64 bytes");var n=new i.ManageDataOp(t),r={};return r.body=i.OperationBody.manageData(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.manageSellOffer=function(e){var t={};if(t.selling=e.selling.toXDRObject(),t.buying=e.buying.toXDRObject(),!this.isValidAmount(e.amount,!0))throw new TypeError(this.constructAmountRequirementsError("amount"));if(t.amount=this._toXDRAmount(e.amount),void 0===e.price)throw new TypeError("price argument is required");t.price=this._toXDRPrice(e.price),void 0!==e.offerId?e.offerId=e.offerId.toString():e.offerId="0",t.offerId=r.Hyper.fromString(e.offerId);var n=new i.ManageSellOfferOp(t),o={};return o.body=i.OperationBody.manageSellOffer(n),this.setSourceAccount(o,e),new i.Operation(o)},pr.manageBuyOffer=function(e){var t={};if(t.selling=e.selling.toXDRObject(),t.buying=e.buying.toXDRObject(),!this.isValidAmount(e.buyAmount,!0))throw new TypeError(this.constructAmountRequirementsError("buyAmount"));if(t.buyAmount=this._toXDRAmount(e.buyAmount),void 0===e.price)throw new TypeError("price argument is required");t.price=this._toXDRPrice(e.price),void 0!==e.offerId?e.offerId=e.offerId.toString():e.offerId="0",t.offerId=r.Hyper.fromString(e.offerId);var n=new i.ManageBuyOfferOp(t),o={};return o.body=i.OperationBody.manageBuyOffer(n),this.setSourceAccount(o,e),new i.Operation(o)},pr.pathPaymentStrictReceive=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendMax):throw new TypeError(this.constructAmountRequirementsError("sendMax"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destAmount):throw new TypeError(this.constructAmountRequirementsError("destAmount"))}var t={};t.sendAsset=e.sendAsset.toXDRObject(),t.sendMax=this._toXDRAmount(e.sendMax);try{t.destination=qn(e.destination)}catch(e){throw new Error("destination is invalid")}t.destAsset=e.destAsset.toXDRObject(),t.destAmount=this._toXDRAmount(e.destAmount);var n=e.path?e.path:[];t.path=n.map(function(e){return e.toXDRObject()});var r=new i.PathPaymentStrictReceiveOp(t),o={};return o.body=i.OperationBody.pathPaymentStrictReceive(r),this.setSourceAccount(o,e),new i.Operation(o)},pr.pathPaymentStrictSend=function(e){switch(!0){case!e.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(e.sendAmount):throw new TypeError(this.constructAmountRequirementsError("sendAmount"));case!e.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(e.destMin):throw new TypeError(this.constructAmountRequirementsError("destMin"))}var t={};t.sendAsset=e.sendAsset.toXDRObject(),t.sendAmount=this._toXDRAmount(e.sendAmount);try{t.destination=qn(e.destination)}catch(e){throw new Error("destination is invalid")}t.destAsset=e.destAsset.toXDRObject(),t.destMin=this._toXDRAmount(e.destMin);var n=e.path?e.path:[];t.path=n.map(function(e){return e.toXDRObject()});var r=new i.PathPaymentStrictSendOp(t),o={};return o.body=i.OperationBody.pathPaymentStrictSend(r),this.setSourceAccount(o,e),new i.Operation(o)},pr.payment=function(e){if(!e.asset)throw new Error("Must provide an asset for a payment operation");if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));var t={};try{t.destination=qn(e.destination)}catch(e){throw new Error("destination is invalid")}t.asset=e.asset.toXDRObject(),t.amount=this._toXDRAmount(e.amount);var n=new i.PaymentOp(t),r={};return r.body=i.OperationBody.payment(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.setOptions=function(e){var t={};if(e.inflationDest){if(!It.isValidEd25519PublicKey(e.inflationDest))throw new Error("inflationDest is invalid");t.inflationDest=qt.fromPublicKey(e.inflationDest).xdrAccountId()}if(t.clearFlags=this._checkUnsignedIntValue("clearFlags",e.clearFlags),t.setFlags=this._checkUnsignedIntValue("setFlags",e.setFlags),t.masterWeight=this._checkUnsignedIntValue("masterWeight",e.masterWeight,Gn),t.lowThreshold=this._checkUnsignedIntValue("lowThreshold",e.lowThreshold,Gn),t.medThreshold=this._checkUnsignedIntValue("medThreshold",e.medThreshold,Gn),t.highThreshold=this._checkUnsignedIntValue("highThreshold",e.highThreshold,Gn),void 0!==e.homeDomain&&"string"!=typeof e.homeDomain)throw new TypeError("homeDomain argument must be of type String");if(t.homeDomain=e.homeDomain,e.signer){var n,r=this._checkUnsignedIntValue("signer.weight",e.signer.weight,Gn),o=0;if(e.signer.ed25519PublicKey){if(!It.isValidEd25519PublicKey(e.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var a=It.decodeEd25519PublicKey(e.signer.ed25519PublicKey);n=new i.SignerKey.signerKeyTypeEd25519(a),o+=1}if(e.signer.preAuthTx){if("string"==typeof e.signer.preAuthTx&&(e.signer.preAuthTx=Xn.from(e.signer.preAuthTx,"hex")),!Xn.isBuffer(e.signer.preAuthTx)||32!==e.signer.preAuthTx.length)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");n=new i.SignerKey.signerKeyTypePreAuthTx(e.signer.preAuthTx),o+=1}if(e.signer.sha256Hash){if("string"==typeof e.signer.sha256Hash&&(e.signer.sha256Hash=Xn.from(e.signer.sha256Hash,"hex")),!Xn.isBuffer(e.signer.sha256Hash)||32!==e.signer.sha256Hash.length)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");n=new i.SignerKey.signerKeyTypeHashX(e.signer.sha256Hash),o+=1}if(e.signer.ed25519SignedPayload){if(!It.isValidSignedPayload(e.signer.ed25519SignedPayload))throw new Error("signer.ed25519SignedPayload is invalid.");var s=It.decodeSignedPayload(e.signer.ed25519SignedPayload),c=i.SignerKeyEd25519SignedPayload.fromXDR(s);n=i.SignerKey.signerKeyTypeEd25519SignedPayload(c),o+=1}if(1!==o)throw new Error("Signer object must contain exactly one of signer.ed25519PublicKey, signer.sha256Hash, signer.preAuthTx.");t.signer=new i.Signer({key:n,weight:r})}var u=new i.SetOptionsOp(t),l={};return l.body=i.OperationBody.setOptions(u),this.setSourceAccount(l,e),new i.Operation(l)},pr.beginSponsoringFutureReserves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(e.sponsoredId))throw new Error("sponsoredId is invalid");var t=new i.BeginSponsoringFutureReservesOp({sponsoredId:qt.fromPublicKey(e.sponsoredId).xdrAccountId()}),n={};return n.body=i.OperationBody.beginSponsoringFutureReserves(t),this.setSourceAccount(n,e),new i.Operation(n)},pr.endSponsoringFutureReserves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return t.body=i.OperationBody.endSponsoringFutureReserves(),this.setSourceAccount(t,e),new i.Operation(t)},pr.revokeAccountSponsorship=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(e.account))throw new Error("account is invalid");var t=i.LedgerKey.account(new i.LedgerKeyAccount({accountId:qt.fromPublicKey(e.account).xdrAccountId()})),n=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(t),r={};return r.body=i.OperationBody.revokeSponsorship(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.revokeTrustlineSponsorship=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(t.account))throw new Error("account is invalid");if(t.asset instanceof $t)e=t.asset.toTrustLineXDRObject();else{if(!(t.asset instanceof Fn))throw new TypeError("asset must be an Asset or LiquidityPoolId");e=t.asset.toXDRObject()}var n=i.LedgerKey.trustline(new i.LedgerKeyTrustLine({accountId:qt.fromPublicKey(t.account).xdrAccountId(),asset:e})),r=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(n),o={};return o.body=i.OperationBody.revokeSponsorship(r),this.setSourceAccount(o,t),new i.Operation(o)},pr.revokeOfferSponsorship=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(e.seller))throw new Error("seller is invalid");if("string"!=typeof e.offerId)throw new Error("offerId is invalid");var t=i.LedgerKey.offer(new i.LedgerKeyOffer({sellerId:qt.fromPublicKey(e.seller).xdrAccountId(),offerId:i.Int64.fromString(e.offerId)})),n=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(t),r={};return r.body=i.OperationBody.revokeSponsorship(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.revokeDataSponsorship=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(e.account))throw new Error("account is invalid");if("string"!=typeof e.name||e.name.length>64)throw new Error("name must be a string, up to 64 characters");var t=i.LedgerKey.data(new i.LedgerKeyData({accountId:qt.fromPublicKey(e.account).xdrAccountId(),dataName:e.name})),n=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(t),r={};return r.body=i.OperationBody.revokeSponsorship(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.revokeClaimableBalanceSponsorship=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"!=typeof e.balanceId)throw new Error("balanceId is invalid");var t=i.LedgerKey.claimableBalance(new i.LedgerKeyClaimableBalance({balanceId:i.ClaimableBalanceId.fromXDR(e.balanceId,"hex")})),n=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(t),r={};return r.body=i.OperationBody.revokeSponsorship(n),this.setSourceAccount(r,e),new i.Operation(r)},pr.revokeLiquidityPoolSponsorship=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"!=typeof e.liquidityPoolId)throw new Error("liquidityPoolId is invalid");var t=i.LedgerKey.liquidityPool(new i.LedgerKeyLiquidityPool({liquidityPoolId:i.PoolId.fromXDR(e.liquidityPoolId,"hex")})),n=i.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(t),r={body:i.OperationBody.revokeSponsorship(n)};return this.setSourceAccount(r,e),new i.Operation(r)},pr.revokeSignerSponsorship=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It.isValidEd25519PublicKey(t.account))throw new Error("account is invalid");if(t.signer.ed25519PublicKey){if(!It.isValidEd25519PublicKey(t.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var n=It.decodeEd25519PublicKey(t.signer.ed25519PublicKey);e=new i.SignerKey.signerKeyTypeEd25519(n)}else if(t.signer.preAuthTx){var r;if(r="string"==typeof t.signer.preAuthTx?Qn.from(t.signer.preAuthTx,"hex"):t.signer.preAuthTx,!Qn.isBuffer(r)||32!==r.length)throw new Error("signer.preAuthTx must be 32 bytes Buffer.");e=new i.SignerKey.signerKeyTypePreAuthTx(r)}else{if(!t.signer.sha256Hash)throw new Error("signer is invalid");var o;if(o="string"==typeof t.signer.sha256Hash?Qn.from(t.signer.sha256Hash,"hex"):t.signer.sha256Hash,!Qn.isBuffer(o)||32!==o.length)throw new Error("signer.sha256Hash must be 32 bytes Buffer.");e=new i.SignerKey.signerKeyTypeHashX(o)}var a=new i.RevokeSponsorshipOpSigner({accountId:qt.fromPublicKey(t.account).xdrAccountId(),signerKey:e}),s=i.RevokeSponsorshipOp.revokeSponsorshipSigner(a),c={};return c.body=i.OperationBody.revokeSponsorship(s),this.setSourceAccount(c,t),new i.Operation(c)},pr.clawback=function(e){var t={};if(!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));t.amount=this._toXDRAmount(e.amount),t.asset=e.asset.toXDRObject();try{t.from=qn(e.from)}catch(e){throw new Error("from address is invalid")}var n={body:i.OperationBody.clawback(new i.ClawbackOp(t))};return this.setSourceAccount(n,e),new i.Operation(n)},pr.setTrustLineFlags=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};if("object"!==Zn(e.flags)||0===Object.keys(e.flags).length)throw new Error("opts.flags must be a map of boolean flags to modify");var n={authorized:i.TrustLineFlags.authorizedFlag(),authorizedToMaintainLiabilities:i.TrustLineFlags.authorizedToMaintainLiabilitiesFlag(),clawbackEnabled:i.TrustLineFlags.trustlineClawbackEnabledFlag()},r=0,o=0;Object.keys(e.flags).forEach(function(t){if(!Object.prototype.hasOwnProperty.call(n,t))throw new Error("unsupported flag name specified: ".concat(t));var i=e.flags[t],a=n[t].value;!0===i?o|=a:!1===i&&(r|=a)}),t.trustor=qt.fromPublicKey(e.trustor).xdrAccountId(),t.asset=e.asset.toXDRObject(),t.clearFlags=r,t.setFlags=o;var a={body:i.OperationBody.setTrustLineFlags(new i.SetTrustLineFlagsOp(t))};return this.setSourceAccount(a,e),new i.Operation(a)},pr.liquidityPoolDeposit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.liquidityPoolId,n=e.maxAmountA,r=e.maxAmountB,o=e.minPrice,a=e.maxPrice,s={};if(!t)throw new TypeError("liquidityPoolId argument is required");if(s.liquidityPoolId=i.PoolId.fromXDR(t,"hex"),!this.isValidAmount(n,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountA"));if(s.maxAmountA=this._toXDRAmount(n),!this.isValidAmount(r,!0))throw new TypeError(this.constructAmountRequirementsError("maxAmountB"));if(s.maxAmountB=this._toXDRAmount(r),void 0===o)throw new TypeError("minPrice argument is required");if(s.minPrice=this._toXDRPrice(o),void 0===a)throw new TypeError("maxPrice argument is required");s.maxPrice=this._toXDRPrice(a);var c=new i.LiquidityPoolDepositOp(s),u={body:i.OperationBody.liquidityPoolDeposit(c)};return this.setSourceAccount(u,e),new i.Operation(u)},pr.liquidityPoolWithdraw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};if(!e.liquidityPoolId)throw new TypeError("liquidityPoolId argument is required");if(t.liquidityPoolId=i.PoolId.fromXDR(e.liquidityPoolId,"hex"),!this.isValidAmount(e.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));if(t.amount=this._toXDRAmount(e.amount),!this.isValidAmount(e.minAmountA,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountA"));if(t.minAmountA=this._toXDRAmount(e.minAmountA),!this.isValidAmount(e.minAmountB,!0))throw new TypeError(this.constructAmountRequirementsError("minAmountB"));t.minAmountB=this._toXDRAmount(e.minAmountB);var n=new i.LiquidityPoolWithdrawOp(t),r={body:i.OperationBody.liquidityPoolWithdraw(n)};return this.setSourceAccount(r,e),new i.Operation(r)},pr.invokeHostFunction=function(e){if(!e.func)throw new TypeError("host function invocation ('func') required (got ".concat(JSON.stringify(e),")"));e.func.switch().value===i.HostFunctionType.hostFunctionTypeInvokeContract().value&&e.func.invokeContract().args().forEach(function(e){var t;try{t=nr.fromScVal(e)}catch(e){return}switch(t._type){case"claimableBalance":case"liquidityPool":throw new TypeError("claimable balances and liquidity pools cannot be arguments to invokeHostFunction")}});var t=new i.InvokeHostFunctionOp({hostFunction:e.func,auth:e.auth||[]}),n={body:i.OperationBody.invokeHostFunction(t)};return this.setSourceAccount(n,e),new i.Operation(n)},pr.extendFootprintTtl=function(e){var t;if((null!==(t=e.extendTo)&&void 0!==t?t:-1)<=0)throw new RangeError("extendTo has to be positive");var n=new i.ExtendFootprintTtlOp({ext:new i.ExtensionPoint(0),extendTo:e.extendTo}),r={body:i.OperationBody.extendFootprintTtl(n)};return this.setSourceAccount(r,e),new i.Operation(r)},pr.restoreFootprint=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new i.RestoreFootprintOp({ext:new i.ExtensionPoint(0)}),n={body:i.OperationBody.restoreFootprint(t)};return this.setSourceAccount(n,null!=e?e:{}),new i.Operation(n)},pr.createStellarAssetContract=function(e){var t=e.asset;if("string"==typeof t){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return or(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?or(e,2):void 0}}(e)||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.")}()}(t.split(":")),r=n[0],o=n[1];t=new $t(r,o)}if(!(t instanceof $t))throw new TypeError("expected Asset in 'opts.asset', got ".concat(t));return this.invokeHostFunction({source:e.source,auth:e.auth,func:i.HostFunction.hostFunctionTypeCreateContract(new i.CreateContractArgs({executable:i.ContractExecutable.contractExecutableStellarAsset(),contractIdPreimage:i.ContractIdPreimage.contractIdPreimageFromAsset(t.toXDRObject())}))})},pr.invokeContractFunction=function(e){var t=new nr(e.contract);if("contract"!==t._type)throw new TypeError("expected contract strkey instance, got ".concat(t));return this.invokeHostFunction({source:e.source,auth:e.auth,func:i.HostFunction.hostFunctionTypeInvokeContract(new i.InvokeContractArgs({contractAddress:t.toScAddress(),functionName:e.function,args:e.args}))})},pr.createCustomContract=function(e){var t,n=rr.from(e.salt||qt.random().xdrPublicKey().value());if(!e.wasmHash||32!==e.wasmHash.length)throw new TypeError("expected hash(contract WASM) in 'opts.wasmHash', got ".concat(e.wasmHash));if(32!==n.length)throw new TypeError("expected 32-byte salt in 'opts.salt', got ".concat(e.wasmHash));return this.invokeHostFunction({source:e.source,auth:e.auth,func:i.HostFunction.hostFunctionTypeCreateContractV2(new i.CreateContractArgsV2({executable:i.ContractExecutable.contractExecutableWasm(rr.from(e.wasmHash)),contractIdPreimage:i.ContractIdPreimage.contractIdPreimageFromAddress(new i.ContractIdPreimageFromAddress({address:e.address.toScAddress(),salt:n})),constructorArgs:null!==(t=e.constructorArgs)&&void 0!==t?t:[]}))})},pr.uploadContractWasm=function(e){return this.invokeHostFunction({source:e.source,auth:e.auth,func:i.HostFunction.hostFunctionTypeUploadContractWasm(rr.from(e.wasm))})};var hr=n(8287).Buffer;function yr(e){return yr="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},yr(e)}function mr(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,gr(r.key),r)}}function gr(e){var t=function(e){if("object"!=yr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yr(t)?t:t+""}var br="none",vr="id",wr="text",Sr="hash",xr="return",kr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;switch(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._type=t,this._value=n,this._type){case br:break;case vr:e._validateIdValue(n);break;case wr:e._validateTextValue(n);break;case Sr:case xr:e._validateHashValue(n),"string"==typeof n&&(this._value=hr.from(n,"hex"));break;default:throw new Error("Invalid memo type")}}return function(e,t,n){return t&&mr(e.prototype,t),n&&mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"type",get:function(){return this._type},set:function(e){throw new Error("Memo is immutable")}},{key:"value",get:function(){switch(this._type){case br:return null;case vr:case wr:return this._value;case Sr:case xr:return hr.from(this._value);default:throw new Error("Invalid memo type")}},set:function(e){throw new Error("Memo is immutable")}},{key:"toXDRObject",value:function(){switch(this._type){case br:return i.Memo.memoNone();case vr:return i.Memo.memoId(r.UnsignedHyper.fromString(this._value));case wr:return i.Memo.memoText(this._value);case Sr:return i.Memo.memoHash(this._value);case xr:return i.Memo.memoReturn(this._value);default:return null}}}],[{key:"_validateIdValue",value:function(e){var t,n=new Error("Expects a int64 as a string. Got ".concat(e));if("string"!=typeof e)throw n;try{t=new kn(e)}catch(e){throw n}if(!t.isFinite())throw n;if(t.isNaN())throw n}},{key:"_validateTextValue",value:function(e){if(!i.Memo.armTypeForArm("text").isValid(e))throw new Error("Expects string, array or buffer, max 28 bytes")}},{key:"_validateHashValue",value:function(e){var t,n=new Error("Expects a 32 byte hash value or hex encoded string. Got ".concat(e));if(null==e)throw n;if("string"==typeof e){if(!/^[0-9A-Fa-f]{64}$/g.test(e))throw n;t=hr.from(e,"hex")}else{if(!hr.isBuffer(e))throw n;t=hr.from(e)}if(!t.length||32!==t.length)throw n}},{key:"none",value:function(){return new e(br)}},{key:"text",value:function(t){return new e(wr,t)}},{key:"id",value:function(t){return new e(vr,t)}},{key:"hash",value:function(t){return new e(Sr,t)}},{key:"return",value:function(t){return new e(xr,t)}},{key:"fromXDRObject",value:function(t){switch(t.arm()){case"id":return e.id(t.value().toString());case"text":return e.text(t.value());case"hash":return e.hash(t.value());case"retHash":return e.return(t.value())}if(void 0===t.value())return e.none();throw new Error("Unknown type")}}])}(),Er=n(8287).Buffer;function Tr(e){return Tr="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},Tr(e)}function Ar(e){var t=function(e){if("object"!=Tr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tr(t)?t:t+""}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cr=function(){return!!e})()}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(e)}function Or(e,t){return Or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Or(e,t)}var Pr=function(e){function t(e,n){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"string"==typeof e){var o=Er.from(e,"base64");e=i.TransactionEnvelope.fromXDR(o)}var a=e.switch();if(a!==i.EnvelopeType.envelopeTypeTxV0()&&a!==i.EnvelopeType.envelopeTypeTx())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(a.name,"."));var s=e.value(),c=s.tx(),u=c.fee().toString();(r=function(e,t,n){return t=_r(t),function(e,t){if(t&&("object"==Tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cr()?Reflect.construct(t,n||[],_r(e).constructor):t.apply(e,n))}(this,t,[c,(s.signatures()||[]).slice(),u,n]))._envelopeType=a,r._memo=c.memo(),r._sequence=c.seqNum().toString(),r._envelopeType===i.EnvelopeType.envelopeTypeTxV0()?r._source=It.encodeEd25519PublicKey(r.tx.sourceAccountEd25519()):r._source=zn(r.tx.sourceAccount());var l=null,f=null;switch(r._envelopeType){case i.EnvelopeType.envelopeTypeTxV0():f=c.timeBounds();break;case i.EnvelopeType.envelopeTypeTx():switch(c.cond().switch()){case i.PreconditionType.precondTime():f=c.cond().timeBounds();break;case i.PreconditionType.precondV2():f=(l=c.cond().v2()).timeBounds()}}if(f&&(r._timeBounds={minTime:f.minTime().toString(),maxTime:f.maxTime().toString()}),l){var p=l.ledgerBounds();p&&(r._ledgerBounds={minLedger:p.minLedger(),maxLedger:p.maxLedger()});var d=l.minSeqNum();d&&(r._minAccountSequence=d.toString()),r._minAccountSequenceAge=l.minSeqAge(),r._minAccountSequenceLedgerGap=l.minSeqLedgerGap(),r._extraSigners=l.extraSigners()}var h=c.operations()||[];return r._operations=h.map(function(e){return pr.fromXDRObject(e)}),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Or(e,t)}(t,e),function(e,t){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,Ar(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"timeBounds",get:function(){return this._timeBounds},set:function(e){throw new Error("Transaction is immutable")}},{key:"ledgerBounds",get:function(){return this._ledgerBounds},set:function(e){throw new Error("Transaction is immutable")}},{key:"minAccountSequence",get:function(){return this._minAccountSequence},set:function(e){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceAge",get:function(){return this._minAccountSequenceAge},set:function(e){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceLedgerGap",get:function(){return this._minAccountSequenceLedgerGap},set:function(e){throw new Error("Transaction is immutable")}},{key:"extraSigners",get:function(){return this._extraSigners},set:function(e){throw new Error("Transaction is immutable")}},{key:"sequence",get:function(){return this._sequence},set:function(e){throw new Error("Transaction is immutable")}},{key:"source",get:function(){return this._source},set:function(e){throw new Error("Transaction is immutable")}},{key:"operations",get:function(){return this._operations},set:function(e){throw new Error("Transaction is immutable")}},{key:"memo",get:function(){return kr.fromXDRObject(this._memo)},set:function(e){throw new Error("Transaction is immutable")}},{key:"signatureBase",value:function(){var e=this.tx;this._envelopeType===i.EnvelopeType.envelopeTypeTxV0()&&(e=i.Transaction.fromXDR(Er.concat([i.PublicKeyType.publicKeyTypeEd25519().toXDR(),e.toXDR()])));var t=new i.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTx(e);return new i.TransactionSignaturePayload({networkId:i.Hash.fromXDR(c(this.networkPassphrase)),taggedTransaction:t}).toXDR()}},{key:"toEnvelope",value:function(){var e,t=this.tx.toXDR(),n=this.signatures.slice();switch(this._envelopeType){case i.EnvelopeType.envelopeTypeTxV0():e=new i.TransactionEnvelope.envelopeTypeTxV0(new i.TransactionV0Envelope({tx:i.TransactionV0.fromXDR(t),signatures:n}));break;case i.EnvelopeType.envelopeTypeTx():e=new i.TransactionEnvelope.envelopeTypeTx(new i.TransactionV1Envelope({tx:i.Transaction.fromXDR(t),signatures:n}));break;default:throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxV0 or envelopeTypeTx but received an ".concat(this._envelopeType.name,"."))}return e}},{key:"getClaimableBalanceId",value:function(e){if(!Number.isInteger(e)||e<0||e>=this.operations.length)throw new RangeError("invalid operation index");var t=this.operations[e];try{t=pr.createClaimableBalance(t)}catch(e){throw new TypeError("expected createClaimableBalance, got ".concat(t.type,": ").concat(e))}var n=It.decodeEd25519PublicKey(Wn(this.source)),r=c(i.HashIdPreimage.envelopeTypeOpId(new i.HashIdPreimageOperationId({sourceAccount:i.AccountId.publicKeyTypeEd25519(n),seqNum:i.SequenceNumber.fromString(this.sequence),opNum:e})).toXDR("raw"));return i.ClaimableBalanceId.claimableBalanceIdTypeV0(r).toXDR("hex")}}])}(tn),Rr=n(8287).Buffer;function jr(e){return jr="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},jr(e)}function Ir(e){var t=function(e){if("object"!=jr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jr(t)?t:t+""}function Nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nr=function(){return!!e})()}function Lr(e){return Lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lr(e)}function Br(e,t){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Br(e,t)}var Dr=function(e){function t(e,n){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"string"==typeof e){var o=Rr.from(e,"base64");e=i.TransactionEnvelope.fromXDR(o)}var a=e.switch();if(a!==i.EnvelopeType.envelopeTypeTxFeeBump())throw new Error("Invalid TransactionEnvelope: expected an envelopeTypeTxFeeBump but received an ".concat(a.name,"."));var s=e.value(),c=s.tx(),u=c.fee().toString();r=function(e,t,n){return t=Lr(t),function(e,t){if(t&&("object"==jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nr()?Reflect.construct(t,n||[],Lr(e).constructor):t.apply(e,n))}(this,t,[c,(s.signatures()||[]).slice(),u,n]);var l=i.TransactionEnvelope.envelopeTypeTx(c.innerTx().v1());return r._feeSource=zn(r.tx.feeSource()),r._innerTransaction=new Pr(l,n),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Br(e,t)}(t,e),function(e,t){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,Ir(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"innerTransaction",get:function(){return this._innerTransaction}},{key:"operations",get:function(){return this._innerTransaction.operations}},{key:"feeSource",get:function(){return this._feeSource}},{key:"signatureBase",value:function(){var e=new i.TransactionSignaturePayloadTaggedTransaction.envelopeTypeTxFeeBump(this.tx);return new i.TransactionSignaturePayload({networkId:i.Hash.fromXDR(c(this.networkPassphrase)),taggedTransaction:e}).toXDR()}},{key:"toEnvelope",value:function(){var e=new i.FeeBumpTransactionEnvelope({tx:i.FeeBumpTransaction.fromXDR(this.tx.toXDR()),signatures:this.signatures.slice()});return new i.TransactionEnvelope.envelopeTypeTxFeeBump(e)}}])}(tn);function Ur(e){return Ur="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},Ur(e)}function Mr(e){var t=function(e){if("object"!=Ur(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ur(t)?t:t+""}var Fr=function(e,t){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,Mr(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),It.isValidMed25519PublicKey(t))throw new Error("accountId is an M-address; use MuxedAccount instead");if(!It.isValidEd25519PublicKey(t))throw new Error("accountId is invalid");if("string"!=typeof n)throw new Error("sequence must be of type string");this._accountId=t,this.sequence=new kn(n)},[{key:"accountId",value:function(){return this._accountId}},{key:"sequenceNumber",value:function(){return this.sequence.toString()}},{key:"incrementSequenceNumber",value:function(){this.sequence=this.sequence.plus(1)}}]);function Vr(e){return Vr="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},Vr(e)}function qr(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,zr(r.key),r)}}function zr(e){var t=function(e){if("object"!=Vr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vr(t)?t:t+""}var Hr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t.accountId();if(!It.isValidEd25519PublicKey(r))throw new Error("accountId is invalid");this.account=t,this._muxedXdr=Hn(r,n),this._mAddress=zn(this._muxedXdr),this._id=n}return function(e,t,n){return t&&qr(e.prototype,t),n&&qr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"baseAccount",value:function(){return this.account}},{key:"accountId",value:function(){return this._mAddress}},{key:"id",value:function(){return this._id}},{key:"setId",value:function(e){if("string"!=typeof e)throw new Error("id should be a string representing a number (uint64)");return this._muxedXdr.med25519().id(i.Uint64.fromString(e)),this._mAddress=zn(this._muxedXdr),this._id=e,this}},{key:"sequenceNumber",value:function(){return this.account.sequenceNumber()}},{key:"incrementSequenceNumber",value:function(){return this.account.incrementSequenceNumber()}},{key:"toXDRObject",value:function(){return this._muxedXdr}},{key:"equals",value:function(e){return this.accountId()===e.accountId()}}],[{key:"fromAddress",value:function(t,n){var r=qn(t),o=Wn(t),i=r.med25519().id().toString();return new e(new Fr(o,n),i)}}])}();function Wr(e){return Wr="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},Wr(e)}function Kr(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(r.key),r)}}function $r(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}var Xr=function(e,t,n){return t&&Kr(e.prototype,t),n&&Kr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_data",void 0),n=t?"string"==typeof t||ArrayBuffer.isView(t)?e.fromXDR(t):e.fromXDR(t.toXDR()):new i.SorobanTransactionData({resources:new i.SorobanResources({footprint:new i.LedgerFootprint({readOnly:[],readWrite:[]}),instructions:0,diskReadBytes:0,writeBytes:0}),ext:new i.SorobanTransactionDataExt(0),resourceFee:new i.Int64(0)}),this._data=n},[{key:"setResourceFee",value:function(e){return this._data.resourceFee(new i.Int64(e)),this}},{key:"setResources",value:function(e,t,n){return this._data.resources().instructions(e),this._data.resources().diskReadBytes(t),this._data.resources().writeBytes(n),this}},{key:"appendFootprint",value:function(e,t){return this.setFootprint(this.getReadOnly().concat(e),this.getReadWrite().concat(t))}},{key:"setFootprint",value:function(e,t){return null!==e&&this.setReadOnly(e),null!==t&&this.setReadWrite(t),this}},{key:"setReadOnly",value:function(e){return this._data.resources().footprint().readOnly(null!=e?e:[]),this}},{key:"setReadWrite",value:function(e){return this._data.resources().footprint().readWrite(null!=e?e:[]),this}},{key:"build",value:function(){return i.SorobanTransactionData.fromXDR(this._data.toXDR())}},{key:"getReadOnly",value:function(){return this.getFootprint().readOnly()}},{key:"getReadWrite",value:function(){return this.getFootprint().readWrite()}},{key:"getFootprint",value:function(){return this._data.resources().footprint()}}],[{key:"fromXDR",value:function(e){return i.SorobanTransactionData.fromXDR(e,"string"==typeof e?"base64":"raw")}}]);function Gr(e){return Gr="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},Gr(e)}function Qr(e){var t=function(e){if("object"!=Gr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gr(t)?t:t+""}var Zr=function(e,t,n){return n&&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,Qr(r.key),r)}}(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"decodeAddress",value:function(e){var t={ed25519PublicKey:i.SignerKey.signerKeyTypeEd25519,preAuthTx:i.SignerKey.signerKeyTypePreAuthTx,sha256Hash:i.SignerKey.signerKeyTypeHashX,signedPayload:i.SignerKey.signerKeyTypeEd25519SignedPayload},n=It.getVersionByteForPrefix(e),r=t[n];if(!r)throw new Error("invalid signer key type (".concat(n,")"));var o=Lt(n,e);return r("signedPayload"===n?new i.SignerKeyEd25519SignedPayload({ed25519:o.slice(0,32),payload:o.slice(36)}):o)}},{key:"encodeSignerKey",value:function(e){var t,n;switch(e.switch()){case i.SignerKeyType.signerKeyTypeEd25519():t="ed25519PublicKey",n=e.value();break;case i.SignerKeyType.signerKeyTypePreAuthTx():t="preAuthTx",n=e.value();break;case i.SignerKeyType.signerKeyTypeHashX():t="sha256Hash",n=e.value();break;case i.SignerKeyType.signerKeyTypeEd25519SignedPayload():t="signedPayload",n=e.ed25519SignedPayload().toXDR("raw");break;default:throw new Error("invalid SignerKey (type: ".concat(e.switch(),")"))}return Bt(t,n)}}]);function Yr(e){return Yr="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},Yr(e)}function Jr(e){return function(e){if(Array.isArray(e))return eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function to(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 no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(t){ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ro(e,t,n){return(t=io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(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,io(r.key),r)}}function io(e){var t=function(e){if("object"!=Yr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yr(t)?t:t+""}var ao="100",so=0,co=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new Error("must specify source account for the transaction");if(void 0===n.fee)throw new Error("must specify fee for the transaction (in stroops)");this.source=t,this.operations=[],this.baseFee=n.fee,this.timebounds=n.timebounds?no({},n.timebounds):null,this.ledgerbounds=n.ledgerbounds?no({},n.ledgerbounds):null,this.minAccountSequence=n.minAccountSequence||null,this.minAccountSequenceAge=n.minAccountSequenceAge||null,this.minAccountSequenceLedgerGap=n.minAccountSequenceLedgerGap||null,this.extraSigners=n.extraSigners?Jr(n.extraSigners):null,this.memo=n.memo||kr.none(),this.networkPassphrase=n.networkPassphrase||null,this.sorobanData=n.sorobanData?new Xr(n.sorobanData).build():null}return function(e,t,n){return t&&oo(e.prototype,t),n&&oo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"addOperation",value:function(e){return this.operations.push(e),this}},{key:"addOperationAt",value:function(e,t){return this.operations.splice(t,0,e),this}},{key:"clearOperations",value:function(){return this.operations=[],this}},{key:"clearOperationAt",value:function(e){return this.operations.splice(e,1),this}},{key:"addMemo",value:function(e){return this.memo=e,this}},{key:"setTimeout",value:function(e){if(null!==this.timebounds&&this.timebounds.maxTime>0)throw new Error("TimeBounds.max_time has been already set - setting timeout would overwrite it.");if(e<0)throw new Error("timeout cannot be negative");if(e>0){var t=Math.floor(Date.now()/1e3)+e;null===this.timebounds?this.timebounds={minTime:0,maxTime:t}:this.timebounds={minTime:this.timebounds.minTime,maxTime:t}}else this.timebounds={minTime:0,maxTime:0};return this}},{key:"setTimebounds",value:function(e,t){if("number"==typeof e&&(e=new Date(1e3*e)),"number"==typeof t&&(t=new Date(1e3*t)),null!==this.timebounds)throw new Error("TimeBounds has been already set - setting timebounds would overwrite it.");var n=Math.floor(e.valueOf()/1e3),r=Math.floor(t.valueOf()/1e3);if(n<0)throw new Error("min_time cannot be negative");if(r<0)throw new Error("max_time cannot be negative");if(r>0&&n>r)throw new Error("min_time cannot be greater than max_time");return this.timebounds={minTime:n,maxTime:r},this}},{key:"setLedgerbounds",value:function(e,t){if(null!==this.ledgerbounds)throw new Error("LedgerBounds has been already set - setting ledgerbounds would overwrite it.");if(e<0)throw new Error("min_ledger cannot be negative");if(t<0)throw new Error("max_ledger cannot be negative");if(t>0&&e>t)throw new Error("min_ledger cannot be greater than max_ledger");return this.ledgerbounds={minLedger:e,maxLedger:t},this}},{key:"setMinAccountSequence",value:function(e){if(null!==this.minAccountSequence)throw new Error("min_account_sequence has been already set - setting min_account_sequence would overwrite it.");return this.minAccountSequence=e,this}},{key:"setMinAccountSequenceAge",value:function(e){if("number"!=typeof e)throw new Error("min_account_sequence_age must be a number");if(null!==this.minAccountSequenceAge)throw new Error("min_account_sequence_age has been already set - setting min_account_sequence_age would overwrite it.");if(e<0)throw new Error("min_account_sequence_age cannot be negative");return this.minAccountSequenceAge=e,this}},{key:"setMinAccountSequenceLedgerGap",value:function(e){if(null!==this.minAccountSequenceLedgerGap)throw new Error("min_account_sequence_ledger_gap has been already set - setting min_account_sequence_ledger_gap would overwrite it.");if(e<0)throw new Error("min_account_sequence_ledger_gap cannot be negative");return this.minAccountSequenceLedgerGap=e,this}},{key:"setExtraSigners",value:function(e){if(!Array.isArray(e))throw new Error("extra_signers must be an array of strings.");if(null!==this.extraSigners)throw new Error("extra_signers has been already set - setting extra_signers would overwrite it.");if(e.length>2)throw new Error("extra_signers cannot be longer than 2 elements.");return this.extraSigners=Jr(e),this}},{key:"setNetworkPassphrase",value:function(e){return this.networkPassphrase=e,this}},{key:"setSorobanData",value:function(e){return this.sorobanData=new Xr(e).build(),this}},{key:"build",value:function(){var e=new kn(this.source.sequenceNumber()).plus(1),t={fee:new kn(this.baseFee).times(this.operations.length).toNumber(),seqNum:i.SequenceNumber.fromString(e.toString()),memo:this.memo?this.memo.toXDRObject():null};if(null===this.timebounds||void 0===this.timebounds.minTime||void 0===this.timebounds.maxTime)throw new Error("TimeBounds has to be set or you must call setTimeout(TimeoutInfinite).");uo(this.timebounds.minTime)&&(this.timebounds.minTime=this.timebounds.minTime.getTime()/1e3),uo(this.timebounds.maxTime)&&(this.timebounds.maxTime=this.timebounds.maxTime.getTime()/1e3),this.timebounds.minTime=r.UnsignedHyper.fromString(this.timebounds.minTime.toString()),this.timebounds.maxTime=r.UnsignedHyper.fromString(this.timebounds.maxTime.toString());var n=new i.TimeBounds(this.timebounds);if(this.hasV2Preconditions()){var o=null;null!==this.ledgerbounds&&(o=new i.LedgerBounds(this.ledgerbounds));var a=this.minAccountSequence||"0";a=i.SequenceNumber.fromString(a);var s=r.UnsignedHyper.fromString(null!==this.minAccountSequenceAge?this.minAccountSequenceAge.toString():"0"),c=this.minAccountSequenceLedgerGap||0,u=null!==this.extraSigners?this.extraSigners.map(Zr.decodeAddress):[];t.cond=i.Preconditions.precondV2(new i.PreconditionsV2({timeBounds:n,ledgerBounds:o,minSeqNum:a,minSeqAge:s,minSeqLedgerGap:c,extraSigners:u}))}else t.cond=i.Preconditions.precondTime(n);t.sourceAccount=qn(this.source.accountId()),this.sorobanData?t.ext=new i.TransactionExt(1,this.sorobanData):t.ext=new i.TransactionExt(0,i.Void);var l=new i.Transaction(t);l.operations(this.operations);var f=new i.TransactionEnvelope.envelopeTypeTx(new i.TransactionV1Envelope({tx:l})),p=new Pr(f,this.networkPassphrase);return this.source.incrementSequenceNumber(),p}},{key:"hasV2Preconditions",value:function(){return null!==this.ledgerbounds||null!==this.minAccountSequence||null!==this.minAccountSequenceAge||null!==this.minAccountSequenceLedgerGap||null!==this.extraSigners&&this.extraSigners.length>0}}],[{key:"cloneFrom",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t instanceof Pr))throw new TypeError("expected a 'Transaction', got: ".concat(t));var r,o=(BigInt(t.sequence)-1n).toString();if(It.isValidMed25519PublicKey(t.source))r=Hr.fromAddress(t.source,o);else{if(!It.isValidEd25519PublicKey(t.source))throw new TypeError("unsupported tx source account: ".concat(t.source));r=new Fr(t.source,o)}var i=new e(r,no({fee:(parseInt(t.fee,10)/t.operations.length||ao).toString(),memo:t.memo,networkPassphrase:t.networkPassphrase,timebounds:t.timeBounds,ledgerbounds:t.ledgerBounds,minAccountSequence:t.minAccountSequence,minAccountSequenceAge:t.minAccountSequenceAge,minAccountSequenceLedgerGap:t.minAccountSequenceLedgerGap,extraSigners:t.extraSigners},n));return t._tx.operations().forEach(function(e){return i.addOperation(e)}),i}},{key:"buildFeeBumpTransaction",value:function(e,t,n,r){var o=n.operations.length,a=new kn(n.fee).div(o),s=new kn(t);if(s.lt(a))throw new Error("Invalid baseFee, it should be at least ".concat(a," stroops."));var c=new kn(ao);if(s.lt(c))throw new Error("Invalid baseFee, it should be at least ".concat(c," stroops."));var u,l=n.toEnvelope();if(l.switch()===i.EnvelopeType.envelopeTypeTxV0()){var f=l.v0().tx(),p=new i.Transaction({sourceAccount:new i.MuxedAccount.keyTypeEd25519(f.sourceAccountEd25519()),fee:f.fee(),seqNum:f.seqNum(),cond:i.Preconditions.precondTime(f.timeBounds()),memo:f.memo(),operations:f.operations(),ext:new i.TransactionExt(0)});l=new i.TransactionEnvelope.envelopeTypeTx(new i.TransactionV1Envelope({tx:p,signatures:l.v0().signatures()}))}u="string"==typeof e?qn(e):e.xdrMuxedAccount();var d=new i.FeeBumpTransaction({feeSource:u,fee:i.Int64.fromString(s.times(o+1).toString()),innerTx:i.FeeBumpTransactionInnerTx.envelopeTypeTx(l.v1()),ext:new i.FeeBumpTransactionExt(0)}),h=new i.FeeBumpTransactionEnvelope({tx:d,signatures:[]}),y=new i.TransactionEnvelope.envelopeTypeTxFeeBump(h);return new Dr(y,r)}},{key:"fromXDR",value:function(e,t){return"string"==typeof e&&(e=i.TransactionEnvelope.fromXDR(e,"base64")),e.switch()===i.EnvelopeType.envelopeTypeTxFeeBump()?new Dr(e,t):new Pr(e,t)}}])}();function uo(e){return e instanceof Date&&!isNaN(e)}var lo={PUBLIC:"Public Global Stellar Network ; September 2015",TESTNET:"Test SDF Network ; September 2015",FUTURENET:"Test SDF Future Network ; October 2022",SANDBOX:"Local Sandbox Stellar Network ; September 2022",STANDALONE:"Standalone Network ; February 2017"};function fo(e){return fo="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},fo(e)}function po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ho(e){var t=function(e){if("object"!=fo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fo(t)?t:t+""}var yo=function(e,t,n){return n&&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,ho(r.key),r)}}(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},0,[{key:"formatTokenAmount",value:function(e,t){if(e.includes("."))throw new TypeError("No decimals are allowed");var n=e;return t>0&&(n=t>n.length?["0",n.toString().padStart(t,"0")].join("."):[n.slice(0,-t),n.slice(-t)].join(".")),n.replace(/(\.\d*?)0+$/,"$1")}},{key:"parseTokenAmount",value:function(e,t){var n,r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return po(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?po(e,t):void 0}}(e)||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.")}()}(e.split(".").slice()),o=r[0],i=r[1];if(r.slice(2).length)throw new Error("Invalid decimal value: ".concat(e));return BigInt(o+(null!==(n=null==i?void 0:i.padEnd(t,"0"))&&void 0!==n?n:"0".repeat(t))).toString()}}]);function mo(e){return mo="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},mo(e)}function go(e){var t=function(e){if("object"!=mo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mo(t)?t:t+""}var bo=function(e,t){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,go(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this._id=It.decodeContract(t)}catch(e){throw new Error("Invalid contract ID: ".concat(t))}},[{key:"contractId",value:function(){return It.encodeContract(this._id)}},{key:"toString",value:function(){return this.contractId()}},{key:"address",value:function(){return nr.contract(this._id)}},{key:"call",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return pr.invokeContractFunction({contract:this.address().toString(),function:e,args:n})}},{key:"getFootprint",value:function(){return i.LedgerKey.contractData(new i.LedgerKeyContractData({contract:this.address().toScAddress(),key:i.ScVal.scvLedgerKeyContractInstance(),durability:i.ContractDataDurability.persistent()}))}}]);function vo(e){return vo="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},vo(e)}function wo(e){var t=function(e){if("object"!=vo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vo(t)?t:t+""}function So(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(So=function(){return!!e})()}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xo(e)}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ko(e,t)}var Eo=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){return t=xo(t),function(e,t){if(t&&("object"==vo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,So()?Reflect.construct(t,n||[],xo(e).constructor):t.apply(e,n))}(this,t,[n])}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}(t,e),function(e,t){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,wo(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"unsigned",get:function(){return!0}},{key:"size",get:function(){return 128}}])}(r.LargeInt);function To(e){return To="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},To(e)}function Ao(e){var t=function(e){if("object"!=To(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=To(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==To(t)?t:t+""}function Co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Co=function(){return!!e})()}function _o(e){return _o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_o(e)}function Oo(e,t){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oo(e,t)}Eo.defineIntBoundaries();var Po=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){return t=_o(t),function(e,t){if(t&&("object"==To(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Co()?Reflect.construct(t,n||[],_o(e).constructor):t.apply(e,n))}(this,t,[n])}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oo(e,t)}(t,e),function(e,t){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,Ao(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"unsigned",get:function(){return!0}},{key:"size",get:function(){return 256}}])}(r.LargeInt);function Ro(e){return Ro="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},Ro(e)}function jo(e){var t=function(e){if("object"!=Ro(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ro(t)?t:t+""}function Io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Io=function(){return!!e})()}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},No(e)}function Lo(e,t){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lo(e,t)}Po.defineIntBoundaries();var Bo=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){return t=No(t),function(e,t){if(t&&("object"==Ro(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Io()?Reflect.construct(t,n||[],No(e).constructor):t.apply(e,n))}(this,t,[n])}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lo(e,t)}(t,e),function(e,t){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,jo(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"unsigned",get:function(){return!1}},{key:"size",get:function(){return 128}}])}(r.LargeInt);function Do(e){return Do="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},Do(e)}function Uo(e){var t=function(e){if("object"!=Do(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Do(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Do(t)?t:t+""}function Mo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mo=function(){return!!e})()}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vo(e,t)}Bo.defineIntBoundaries();var qo=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){return t=Fo(t),function(e,t){if(t&&("object"==Do(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Mo()?Reflect.construct(t,n||[],Fo(e).constructor):t.apply(e,n))}(this,t,[n])}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vo(e,t)}(t,e),function(e,t){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,Uo(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"unsigned",get:function(){return!1}},{key:"size",get:function(){return 256}}])}(r.LargeInt);function zo(e){return zo="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},zo(e)}function Ho(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,Ko(r.key),r)}}function Wo(e,t,n){return(t=Ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e){var t=function(e){if("object"!=zo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zo(t)?t:t+""}qo.defineIntBoundaries();var $o=function(e,t,n){return t&&Ho(e.prototype,t),n&&Ho(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n){switch(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Wo(this,"int",void 0),Wo(this,"type",void 0),n instanceof Array||(n=[n]),n=n.map(function(e){return"bigint"==typeof e?e:"function"==typeof e.toBigInt?e.toBigInt():BigInt(e)}),t){case"i64":this.int=new r.Hyper(n);break;case"i128":this.int=new Bo(n);break;case"i256":this.int=new qo(n);break;case"u64":this.int=new r.UnsignedHyper(n);break;case"u128":this.int=new Eo(n);break;case"u256":this.int=new Po(n);break;default:throw TypeError("invalid type: ".concat(t))}this.type=t},[{key:"toNumber",value:function(){var e=this.int.toBigInt();if(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)throw RangeError("value ".concat(e," not in range for Number ")+"[".concat(Number.MAX_SAFE_INTEGER,", ").concat(Number.MIN_SAFE_INTEGER,"]"));return Number(e)}},{key:"toBigInt",value:function(){return this.int.toBigInt()}},{key:"toI64",value:function(){this._sizeCheck(64);var e=this.toBigInt();if(BigInt.asIntN(64,e)!==e)throw RangeError("value too large for i64: ".concat(e));return i.ScVal.scvI64(new i.Int64(e))}},{key:"toU64",value:function(){return this._sizeCheck(64),i.ScVal.scvU64(new i.Uint64(BigInt.asUintN(64,this.toBigInt())))}},{key:"toI128",value:function(){this._sizeCheck(128);var e=this.int.toBigInt(),t=BigInt.asIntN(64,e>>64n),n=BigInt.asUintN(64,e);return i.ScVal.scvI128(new i.Int128Parts({hi:new i.Int64(t),lo:new i.Uint64(n)}))}},{key:"toU128",value:function(){this._sizeCheck(128);var e=this.int.toBigInt();return i.ScVal.scvU128(new i.UInt128Parts({hi:new i.Uint64(BigInt.asUintN(64,e>>64n)),lo:new i.Uint64(BigInt.asUintN(64,e))}))}},{key:"toI256",value:function(){var e=this.int.toBigInt(),t=BigInt.asIntN(64,e>>192n),n=BigInt.asUintN(64,e>>128n),r=BigInt.asUintN(64,e>>64n),o=BigInt.asUintN(64,e);return i.ScVal.scvI256(new i.Int256Parts({hiHi:new i.Int64(t),hiLo:new i.Uint64(n),loHi:new i.Uint64(r),loLo:new i.Uint64(o)}))}},{key:"toU256",value:function(){var e=this.int.toBigInt(),t=BigInt.asUintN(64,e>>192n),n=BigInt.asUintN(64,e>>128n),r=BigInt.asUintN(64,e>>64n),o=BigInt.asUintN(64,e);return i.ScVal.scvU256(new i.UInt256Parts({hiHi:new i.Uint64(t),hiLo:new i.Uint64(n),loHi:new i.Uint64(r),loLo:new i.Uint64(o)}))}},{key:"toScVal",value:function(){switch(this.type){case"i64":return this.toI64();case"i128":return this.toI128();case"i256":return this.toI256();case"u64":return this.toU64();case"u128":return this.toU128();case"u256":return this.toU256();default:throw TypeError("invalid type: ".concat(this.type))}}},{key:"valueOf",value:function(){return this.int.valueOf()}},{key:"toString",value:function(){return this.int.toString()}},{key:"toJSON",value:function(){return{value:this.toBigInt().toString(),type:this.type}}},{key:"_sizeCheck",value:function(e){if(this.int.size>e)throw RangeError("value too large for ".concat(e," bits (").concat(this.type,")"))}}],[{key:"isType",value:function(e){switch(e){case"i64":case"i128":case"i256":case"u64":case"u128":case"u256":return!0;default:return!1}}},{key:"getType",value:function(e){return e.slice(3).toLowerCase()}}]);function Xo(e){return Xo="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},Xo(e)}function Go(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Go=function(){return!!e})()}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qo(e)}function Zo(e,t){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zo(e,t)}var Yo=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=e<0,i=null!==(r=null==n?void 0:n.type)&&void 0!==r?r:"";if(i.startsWith("u")&&o)throw TypeError("specified type ".concat(n.type," yet negative (").concat(e,")"));if(""===i){i=o?"i":"u";var a=function(e){var t,n=e.toString(2).length;return null!==(t=[64,128,256].find(function(e){return n<=e}))&&void 0!==t?t:n}(e);switch(a){case 64:case 128:case 256:i+=a.toString();break;default:throw RangeError("expected 64/128/256 bits for input (".concat(e,"), got ").concat(a))}}return function(e,t,n){return t=Qo(t),function(e,t){if(t&&("object"==Xo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Go()?Reflect.construct(t,n||[],Qo(e).constructor):t.apply(e,n))}(this,t,[i,e])}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zo(e,t)}(t,e),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}($o);function Jo(e){var t=$o.getType(e.switch().name);switch(e.switch().name){case"scvU32":case"scvI32":return BigInt(e.value());case"scvU64":case"scvI64":return new $o(t,e.value()).toBigInt();case"scvU128":case"scvI128":return new $o(t,[e.value().lo(),e.value().hi()]).toBigInt();case"scvU256":case"scvI256":return new $o(t,[e.value().loLo(),e.value().loHi(),e.value().hiLo(),e.value().hiHi()]).toBigInt();default:throw TypeError("expected integer type, got ".concat(e.switch()))}}var ei=n(8287).Buffer;function ti(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ni(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}(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 ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ri(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 oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=ii(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ii(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e){return ii="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},ii(e)}function ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(ii(e)){case"object":var n,r,o;if(null===e)return i.ScVal.scvVoid();if(e instanceof i.ScVal)return e;if(e instanceof nr)return e.toScVal();if(e instanceof qt)return ai(e.publicKey(),{type:"address"});if(e instanceof bo)return e.address().toScVal();if(e instanceof Uint8Array||ei.isBuffer(e)){var a,s=Uint8Array.from(e);switch(null!==(a=null==t?void 0:t.type)&&void 0!==a?a:"bytes"){case"bytes":return i.ScVal.scvBytes(s);case"symbol":return i.ScVal.scvSymbol(s);case"string":return i.ScVal.scvString(s);default:throw new TypeError("invalid type (".concat(t.type,") specified for bytes-like value"))}}if(Array.isArray(e))return i.ScVal.scvVec(e.map(function(e,n){return Array.isArray(t.type)?ai(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach(function(t){oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t.type.length>n&&{type:t.type[n]})):ai(e,t)}));if("Object"!==(null!==(n=null===(r=e.constructor)||void 0===r?void 0:r.name)&&void 0!==n?n:""))throw new TypeError("cannot interpret ".concat(null===(o=e.constructor)||void 0===o?void 0:o.name," value as ScVal (").concat(JSON.stringify(e),")"));return i.ScVal.scvMap(Object.entries(e).sort(function(e,t){var n=ti(e,1)[0],r=ti(t,1)[0];return n.localeCompare(r)}).map(function(e){var n,r,o=ti(e,2),a=o[0],s=o[1],c=ti(null!==(n=(null!==(r=null==t?void 0:t.type)&&void 0!==r?r:{})[a])&&void 0!==n?n:[null,null],2),u=c[0],l=c[1],f=u?{type:u}:{},p=l?{type:l}:{};return new i.ScMapEntry({key:ai(a,f),val:ai(s,p)})}));case"number":case"bigint":switch(null==t?void 0:t.type){case"u32":return i.ScVal.scvU32(e);case"i32":return i.ScVal.scvI32(e)}return new Yo(e,{type:null==t?void 0:t.type}).toScVal();case"string":var c,u=null!==(c=null==t?void 0:t.type)&&void 0!==c?c:"string";switch(u){case"string":return i.ScVal.scvString(e);case"symbol":return i.ScVal.scvSymbol(e);case"address":return new nr(e).toScVal();case"u32":return i.ScVal.scvU32(parseInt(e,10));case"i32":return i.ScVal.scvI32(parseInt(e,10));default:if($o.isType(u))return new $o(u,e).toScVal();throw new TypeError("invalid type (".concat(t.type,") specified for string value"))}case"boolean":return i.ScVal.scvBool(e);case"undefined":return i.ScVal.scvVoid();case"function":return ai(e());default:throw new TypeError("failed to convert typeof ".concat(ii(e)," (").concat(e,")"))}}function si(e){var t,n;switch(e.switch().value){case i.ScValType.scvVoid().value:return null;case i.ScValType.scvU64().value:case i.ScValType.scvI64().value:return e.value().toBigInt();case i.ScValType.scvU128().value:case i.ScValType.scvI128().value:case i.ScValType.scvU256().value:case i.ScValType.scvI256().value:return Jo(e);case i.ScValType.scvVec().value:return(null!==(t=e.vec())&&void 0!==t?t:[]).map(si);case i.ScValType.scvAddress().value:return nr.fromScVal(e).toString();case i.ScValType.scvMap().value:return Object.fromEntries((null!==(n=e.map())&&void 0!==n?n:[]).map(function(e){return[si(e.key()),si(e.val())]}));case i.ScValType.scvBool().value:case i.ScValType.scvU32().value:case i.ScValType.scvI32().value:case i.ScValType.scvBytes().value:return e.value();case i.ScValType.scvSymbol().value:case i.ScValType.scvString().value:var r=e.value();if(ei.isBuffer(r)||ArrayBuffer.isView(r))try{return(new TextDecoder).decode(r)}catch(e){return new Uint8Array(r.buffer)}return r;case i.ScValType.scvTimepoint().value:case i.ScValType.scvDuration().value:return new i.Uint64(e.value()).toBigInt();case i.ScValType.scvError().value:if(e.error().switch().value===i.ScErrorType.sceContract().value)return{type:"contract",code:e.error().contractCode()};var o=e.error();return{type:"system",code:o.code().value,value:o.code().name};default:return e.value()}}function ci(e){return ci="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},ci(e)}function ui(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 li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fi(e,t,n){return(t=function(e){var t=function(e){if("object"!=ci(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ci(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pi(e){return e.map(function(e){return e.inSuccessfulContractCall?di(e.event()):di(e)})}function di(e){return li(li({},"function"==typeof e.contractId&&null!=e.contractId()&&{contractId:It.encodeContract(e.contractId())}),{},{type:e.type().name,topics:e.body().value().topics().map(function(e){return si(e)}),data:si(e.body().value().data())})}i.scvSortedMap=function(e){var t=Array.from(e).sort(function(e,t){var n=si(e.key()),r=si(t.key());switch(ii(n)){case"number":case"bigint":return n<r?-1:1;default:return n.toString().localeCompare(r.toString())}});return i.ScVal.scvMap(t)};var hi=n(8287).Buffer;function yi(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return mi(u,"_invoke",function(n,r,o){var i,s,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,s=0,c=e,p.n=n,a}};function d(n,r){for(s=n,c=r,t=0;!f&&u&&!o&&t<l.length;t++){var o,i=l[t],d=p.p,h=i[2];n>3?(o=h===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=n<2&&d<i[1])?(s=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),s=l,c=h;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(u=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:n.call(r,p))!==a)break}catch(t){i=e,s=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),u}var a={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(mi(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,mi(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,mi(f,"constructor",u),mi(u,"constructor",c),c.displayName="GeneratorFunction",mi(u,o,"GeneratorFunction"),mi(f),mi(f,o,"Generator"),mi(f,r,function(){return this}),mi(f,"toString",function(){return"[object Generator]"}),(yi=function(){return{w:i,m:p}})()}function mi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}mi=function(e,t,n,r){function i(t,n){mi(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},mi(e,t,n,r)}function gi(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function bi(e,t,n){return vi.apply(this,arguments)}function vi(){var e;return e=yi().m(function e(t,n,r){var o,a,s,u,l,f,p,d,h,y,m=arguments;return yi().w(function(e){for(;;)switch(e.n){case 0:if(o=m.length>3&&void 0!==m[3]?m[3]:lo.FUTURENET,t.credentials().switch().value===i.SorobanCredentialsType.sorobanCredentialsAddress().value){e.n=1;break}return e.a(2,t);case 1:if(a=i.SorobanAuthorizationEntry.fromXDR(t.toXDR()),(s=a.credentials().address()).signatureExpirationLedger(r),u=c(hi.from(o)),l=i.HashIdPreimage.envelopeTypeSorobanAuthorization(new i.HashIdPreimageSorobanAuthorization({networkId:u,nonce:s.nonce(),invocation:a.rootInvocation(),signatureExpirationLedger:s.signatureExpirationLedger()})),f=c(l.toXDR()),"function"!=typeof n){e.n=3;break}return e.n=2,n(l);case 2:null!=(h=e.v)&&h.signature?(p=hi.from(h.signature),d=h.publicKey):(p=hi.from(h),d=nr.fromScAddress(s.address()).toString()),e.n=4;break;case 3:p=hi.from(n.sign(f)),d=n.publicKey();case 4:if(qt.fromPublicKey(d).verify(f,p)){e.n=5;break}throw new Error("signature doesn't match payload");case 5:return y=ai({public_key:It.decodeEd25519PublicKey(d),signature:p},{type:{public_key:["symbol",null],signature:["symbol",null]}}),s.signature(i.ScVal.scvVec([y])),e.a(2,a)}},e)}),vi=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){gi(i,r,o,a,s,"next",e)}function s(e){gi(i,r,o,a,s,"throw",e)}a(void 0)})},vi.apply(this,arguments)}function wi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:lo.FUTURENET,a=qt.random().rawPublicKey(),s=new i.Int64(a.subarray(0,8).reduce(function(e,t){return e<<8|t},0)),c=r||e.publicKey();if(!c)throw new Error("authorizeInvocation requires publicKey parameter");return bi(new i.SorobanAuthorizationEntry({rootInvocation:n,credentials:i.SorobanCredentials.sorobanCredentialsAddress(new i.SorobanAddressCredentials({address:new nr(c).toScAddress(),nonce:s,signatureExpirationLedger:0,signature:i.ScVal.scvVec([])}))}),e,t,o)}function Si(e){return Si="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},Si(e)}function xi(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 ki(e,t,n){return(t=function(e){var t=function(e){if("object"!=Si(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Si(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e){var t=e.function(),n={},r=t.value();switch(t.switch().value){case 0:n.type="execute",n.args={source:nr.fromScAddress(r.contractAddress()).toString(),function:r.functionName(),args:r.args().map(function(e){return si(e)})};break;case 1:case 2:var o=2===t.switch().value;n.type="create",n.args={};var i=[r.executable(),r.contractIdPreimage()],a=i[0],s=i[1];if(!!a.switch().value!=!!s.switch().value)throw new Error("creation function appears invalid: ".concat(JSON.stringify(r)," (should be wasm+address or token+asset)"));switch(a.switch().value){case 0:var c=s.fromAddress();n.args.type="wasm",n.args.wasm=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach(function(t){ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({salt:c.salt().toString("hex"),hash:a.wasmHash().toString("hex"),address:nr.fromScAddress(c.address()).toString()},o&&{constructorArgs:r.constructorArgs().map(function(e){return si(e)})});break;case 1:n.args.type="sac",n.args.asset=$t.fromOperation(s.fromAsset()).toString();break;default:throw new Error("unknown creation type: ".concat(JSON.stringify(a)))}break;default:throw new Error("unknown invocation type (".concat(t.switch(),"): ").concat(JSON.stringify(t)))}return n.invocations=e.subInvocations().map(function(e){return Ei(e)}),n}function Ti(e,t){Ai(e,1,t)}function Ai(e,t,n,r){!1!==n(e,t,r)&&e.subInvocations().forEach(function(r){return Ai(r,t+1,n,e)})}const Ci=(e=n.hmd(e)).exports},453:(e,t,n)=>{var r,o=n(9612),i=n(9383),a=n(1237),s=n(9290),c=n(9538),u=n(8068),l=n(9675),f=n(5345),p=n(1514),d=n(8968),h=n(6188),y=n(8002),m=n(5880),g=n(414),b=n(3093),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=n(5795),x=n(655),k=function(){throw new l},E=S?function(){try{return k}catch(e){try{return S(arguments,"callee").get}catch(e){return k}}}():k,T=n(4039)(),A=n(3628),C=n(1064),_=n(8648),O=n(1002),P=n(76),R={},j="undefined"!=typeof Uint8Array&&A?A(Uint8Array):r,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":E,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(A)try{null.error}catch(e){var N=A(A(e));I["%Error.prototype%"]=N}var L=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(n=A(o.prototype))}return I[t]=n,n},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(6743),U=n(9957),M=D.call(P,Array.prototype.concat),F=D.call(O,Array.prototype.splice),V=D.call(P,String.prototype.replace),q=D.call(P,String.prototype.slice),z=D.call(P,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(e,t){var n,r=e;if(U(B,r)&&(r="%"+(n=B[r])[0]+"%"),U(I,r)){var o=I[r];if(o===R&&(o=L(r)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return V(e,H,function(e,t,n,o){r[r.length]=n?V(o,W,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=K("%"+r+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(r=c[0],F(n,M([0,1],c)));for(var f=1,p=!0;f<n.length;f+=1){var d=n[f],h=q(d,0,1),y=q(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&p||(s=!0),U(I,i="%"+(r+="."+d)+"%"))a=I[i];else if(null!=a){if(!(d in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=n.length){var m=S(a,d);a=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else p=U(a,d),a=a[d];p&&!s&&(I[i]=a)}}return a}},487:(e,t,n)=>{var r=n(6897),o=n(655),i=n(3126),a=n(2205);e.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},537:(e,t,n)=>{var r=n(5606),o=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])b(s)||!k(s)?i+=" "+s:i+=" "+l(s);return i},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?o.trace(n):o.error(n),i=!0}return e.apply(this,arguments)}};var s={},c=/^$/;if(r.env.NODE_DEBUG){var u=r.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+u+"$","i")}function l(e,n){var r={seen:[],stylize:p};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),d(r,e,r.depth)}function f(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function p(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return w(o)||(o=d(e,o,r)),o}var i=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(A(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return h(n)}var u,l="",f=!1,p=["{","}"];return m(n)&&(f=!0,p=["[","]"]),A(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(l=" "+RegExp.prototype.toString.call(n)),E(n)&&(l=" "+Date.prototype.toUTCString.call(n)),T(n)&&(l=" "+h(n)),0!==a.length||f&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=f?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)P(t,String(a))?i.push(y(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(y(e,t,n,r,o,!0))}),i}(e,n,r,s,a):a.map(function(t){return y(e,n,r,s,t,f)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,p)):p[0]+l+p[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),P(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=b(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),S(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function S(e){return void 0===e}function x(e){return k(e)&&"[object RegExp]"===C(e)}function k(e){return"object"==typeof e&&null!==e}function E(e){return k(e)&&"[object Date]"===C(e)}function T(e){return k(e)&&("[object Error]"===C(e)||e instanceof Error)}function A(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(c.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=m,t.isBoolean=g,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=w,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=x,t.types.isRegExp=x,t.isObject=k,t.isDate=E,t.types.isDate=E,t.isError=T,t.types.isNativeError=T,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(n=[_((e=new Date).getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,r){e?n(e):t(r)});try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=R,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then(function(e){r.nextTick(a.bind(null,null,e))},function(e){r.nextTick(j.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},592:(e,t,n)=>{var r=n(655),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},655:e=>{var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1002:e=>{e.exports=Function.prototype.apply},1064:(e,t,n)=>{var r=n(9612);e.exports=r.getPrototypeOf||null},1093:e=>{var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},1189:(e,t,n)=>{var r=Array.prototype.slice,o=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1237:e=>{e.exports=EvalError},1333:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1514:e=>{e.exports=Math.abs},2205:(e,t,n)=>{var r=n(6743),o=n(1002),i=n(3144);e.exports=function(){return i(r,o,arguments)}},2299:(e,t,n)=>{function r(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){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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 o(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}function i(e){return i="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},i(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},c=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},u=Object.is?Object.is:n(7653),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(4133);function p(e){return e.call.bind(e)}var d=p(Object.prototype.hasOwnProperty),h=p(Object.prototype.propertyIsEnumerable),y=p(Object.prototype.toString),m=n(537).types,g=m.isAnyArrayBuffer,b=m.isArrayBufferView,v=m.isDate,w=m.isMap,S=m.isRegExp,x=m.isSet,k=m.isNativeError,E=m.isBoxedPrimitive,T=m.isNumberObject,A=m.isStringObject,C=m.isBooleanObject,_=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,R=m.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function I(e){return Object.keys(e).filter(j).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function N(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function L(e,t,n,r){if(e===t)return 0!==e||!n||u(e,t);if(n){if("object"!==i(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,s,c,l,p=y(e);if(p!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=I(e),h=I(t);return d.length===h.length&&D(e,t,n,r,1,d)}if("[object Object]"===p&&(!w(e)&&w(t)||!x(e)&&x(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||(c=e,l=t,!(a?c.source===l.source&&c.flags===l.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(l))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(n||!P(e)&&!R(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=I(e),j=I(t);return m.length===j.length&&D(e,t,n,r,0,m)}if(x(e))return!(!x(t)||e.size!==t.size)&&D(e,t,n,r,2);if(w(e))return!(!w(t)||e.size!==t.size)&&D(e,t,n,r,3);if(g(e)){if(s=t,(o=e).byteLength!==s.byteLength||0!==N(new Uint8Array(o),new Uint8Array(s)))return!1}else if(E(e)&&!function(e,t){return T(e)?T(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):C(e)?C(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):_(e)?_(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):O(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return D(e,t,n,r,0)}function B(e,t){return t.filter(function(t){return h(e,t)})}function D(e,t,n,o,a,u){if(5===arguments.length){u=Object.keys(e);var f=Object.keys(t);if(u.length!==f.length)return!1}for(var p=0;p<u.length;p++)if(!d(t,u[p]))return!1;if(n&&5===arguments.length){var y=l(e);if(0!==y.length){var m=0;for(p=0;p<y.length;p++){var g=y[p];if(h(e,g)){if(!h(t,g))return!1;u.push(g),m++}else if(h(t,g))return!1}var b=l(t);if(y.length!==b.length&&B(t,b).length!==m)return!1}else{var v=l(t);if(0!==v.length&&0!==B(t,v).length)return!1}}if(0===u.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(e);if(void 0!==w){var S=o.val2.get(t);if(void 0!==S)return w===S}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var x=function(e,t,n,o,a,u){var l=0;if(2===u){if(!function(e,t,n,r){for(var o=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!t.has(u)){if(n)return!1;if(!F(e,t,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=s(t),f=0;f<l.length;f++){var p=l[f];if("object"===i(p)&&null!==p){if(!U(o,p,n,r))return!1}else if(!n&&!e.has(p)&&!U(o,p,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(3===u){if(!function(e,t,n,o){for(var a=null,s=c(e),u=0;u<s.length;u++){var l=r(s[u],2),f=l[0],p=l[1];if("object"===i(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var d=t.get(f);if(void 0===d&&!t.has(f)||!L(p,d,n,o)){if(n)return!1;if(!V(e,t,f,p,o))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var h=c(t),y=0;y<h.length;y++){var m=r(h[y],2),g=m[0],b=m[1];if("object"===i(g)&&null!==g){if(!q(a,e,g,b,n,o))return!1}else if(!(n||e.has(g)&&L(e.get(g),b,!1,o)||q(a,e,g,b,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===u)for(;l<e.length;l++){if(!d(e,l)){if(d(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var p=f[l];if(!d(t,p)||!L(e[p],t[p],n,a))return!1}return f.length===Object.keys(t).length}if(!d(t,l)||!L(e[l],t[l],n,a))return!1}for(l=0;l<o.length;l++){var h=o[l];if(!L(e[h],t[h],n,a))return!1}return!0}(e,t,n,u,o,a);return o.val1.delete(e),o.val2.delete(t),x}function U(e,t,n,r){for(var o=s(e),i=0;i<o.length;i++){var a=o[i];if(L(t,a,n,r))return e.delete(a),!0}return!1}function M(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(f(e))return!1}return!0}function F(e,t,n){var r=M(n);return null!=r?r:t.has(r)&&!e.has(r)}function V(e,t,n,r,o){var i=M(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!L(r,a,!1,o))&&!e.has(i)&&L(r,a,!1,o)}function q(e,t,n,r,o,i){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(L(n,u,o,i)&&L(r,t.get(u),o,i))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return L(e,t,!1)},isDeepStrictEqual:function(e,t){return L(e,t,!0)}}},2464:(e,t,n)=>{var r=n(8452),o=n(6642);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},2682:(e,t,n)=>{var r=n(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=n),s=e,"[object Array]"===o.call(s)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},2802:(e,t,n)=>{e.exports=function(t){var n=t.toLowerCase(),r=e.exports[n];if(!r)throw new Error(n+" is not supported (we accept pull requests)");return new r},e.exports.sha=n(7816),e.exports.sha1=n(3737),e.exports.sha224=n(6710),e.exports.sha256=n(4107),e.exports.sha384=n(2827),e.exports.sha512=n(2890)},2827:(e,t,n)=>{var r=n(6698),o=n(2890),i=n(392),a=n(2861).Buffer,s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}r(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},2861:(e,t,n)=>{var r=n(8287),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2890:(e,t,n)=>{var r=n(6698),o=n(392),i=n(2861).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function p(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}r(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,S=0|this._bl,x=0|this._cl,k=0|this._dl,E=0|this._el,T=0|this._fl,A=0|this._gl,C=0|this._hl,_=0;_<32;_+=2)t[_]=e.readInt32BE(4*_),t[_+1]=e.readInt32BE(4*_+4);for(;_<160;_+=2){var O=t[_-30],P=t[_-30+1],R=d(O,P),j=h(P,O),I=y(O=t[_-4],P=t[_-4+1]),N=m(P,O),L=t[_-14],B=t[_-14+1],D=t[_-32],U=t[_-32+1],M=j+B|0,F=R+L+g(M,j)|0;F=(F=F+I+g(M=M+N|0,N)|0)+D+g(M=M+U|0,U)|0,t[_]=F,t[_+1]=M}for(var V=0;V<160;V+=2){F=t[V],M=t[V+1];var q=l(n,r,o),z=l(w,S,x),H=f(n,w),W=f(w,n),K=p(s,E),$=p(E,s),X=a[V],G=a[V+1],Q=u(s,c,b),Z=u(E,T,A),Y=C+$|0,J=v+K+g(Y,C)|0;J=(J=(J=J+Q+g(Y=Y+Z|0,Z)|0)+X+g(Y=Y+G|0,G)|0)+F+g(Y=Y+M|0,M)|0;var ee=W+z|0,te=H+q+g(ee,W)|0;v=b,C=A,b=c,A=T,c=s,T=E,s=i+J+g(E=k+Y|0,k)|0,i=o,k=x,o=r,x=S,r=n,S=w,n=J+te+g(w=Y+ee|0,Y)|0}this._al=this._al+w|0,this._bl=this._bl+S|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+E|0,this._fl=this._fl+T|0,this._gl=this._gl+A|0,this._hl=this._hl+C|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,S)|0,this._ch=this._ch+o+g(this._cl,x)|0,this._dh=this._dh+i+g(this._dl,k)|0,this._eh=this._eh+s+g(this._el,E)|0,this._fh=this._fh+c+g(this._fl,T)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+v+g(this._hl,C)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},3003:e=>{e.exports=function(e){return e!=e}},3093:(e,t,n)=>{var r=n(4459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},3126:(e,t,n)=>{var r=n(6743),o=n(9675),i=n(76),a=n(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},3144:(e,t,n)=>{var r=n(6743),o=n(1002),i=n(76),a=n(7119);e.exports=a||r.call(i,o)},3628:(e,t,n)=>{var r=n(8648),o=n(1064),i=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},3737:(e,t,n)=>{var r=n(6698),o=n(392),i=n(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=u(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var h=~~(d/20),y=l(n)+p(h,r,o,i)+s+t[d]+a[h]|0;s=i,i=o,o=f(r),r=n,n=y}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},3740:function(e,t,n){var r,o=n(6763);r=()=>(()=>{var e={616:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(287);r.hp.alloc(1).subarray(0,1)instanceof r.hp||(r.hp.prototype.subarray=function(e,t){const n=Uint8Array.prototype.subarray.call(this,e,t);return Object.setPrototypeOf(n,r.hp.prototype),n});const o=r.hp},281:(e,t,n)=>{const r=n(164);e.exports=r},164:(e,t,n)=>{n.r(t),n.d(t,{Array:()=>F,Bool:()=>I,Double:()=>R,Enum:()=>H,Float:()=>P,Hyper:()=>A,Int:()=>x,LargeInt:()=>T,Opaque:()=>D,Option:()=>q,Quadruple:()=>j,Reference:()=>W,String:()=>L,Struct:()=>K,Union:()=>X,UnsignedHyper:()=>O,UnsignedInt:()=>_,VarArray:()=>V,VarOpaque:()=>M,Void:()=>z,XdrReader:()=>c,XdrWriter:()=>f,config:()=>re});class r extends TypeError{constructor(e){super(`XDR Write Error: ${e}`)}}class o extends TypeError{constructor(e){super(`XDR Read Error: ${e}`)}}class i extends TypeError{constructor(e){super(`XDR Type Definition Error: ${e}`)}}class a extends i{constructor(){super("method not implemented, it should be overloaded in the descendant class.")}}var s=n(616).A;class c{constructor(e){if(!s.isBuffer(e)){if(!(e instanceof Array||Array.isArray(e)||ArrayBuffer.isView(e)))throw new o(`source invalid: ${e}`);e=s.from(e)}this._buffer=e,this._length=e.length,this._index=0}_buffer;_length;_index;get eof(){return this._index===this._length}advance(e){const t=this._index;if(this._index+=e,this._length<this._index)throw new o("attempt to read outside the boundary of the buffer");const n=4-(e%4||4);if(n>0){for(let e=0;e<n;e++)if(0!==this._buffer[this._index+e])throw new o("invalid padding");this._index+=n}return t}rewind(){this._index=0}read(e){const t=this.advance(e);return this._buffer.subarray(t,t+e)}readInt32BE(){return this._buffer.readInt32BE(this.advance(4))}readUInt32BE(){return this._buffer.readUInt32BE(this.advance(4))}readBigInt64BE(){return this._buffer.readBigInt64BE(this.advance(8))}readBigUInt64BE(){return this._buffer.readBigUInt64BE(this.advance(8))}readFloatBE(){return this._buffer.readFloatBE(this.advance(4))}readDoubleBE(){return this._buffer.readDoubleBE(this.advance(8))}ensureInputConsumed(){if(this._index!==this._length)throw new o("invalid XDR contract typecast - source buffer not entirely consumed")}}var u=n(616).A;const l=8192;class f{constructor(e){"number"==typeof e?e=u.allocUnsafe(e):e instanceof u||(e=u.allocUnsafe(l)),this._buffer=e,this._length=e.length}_buffer;_length;_index=0;alloc(e){const t=this._index;return this._index+=e,this._length<this._index&&this.resize(this._index),t}resize(e){const t=Math.ceil(e/l)*l,n=u.allocUnsafe(t);this._buffer.copy(n,0,0,this._length),this._buffer=n,this._length=t}finalize(){return this._buffer.subarray(0,this._index)}toArray(){return[...this.finalize()]}write(e,t){if("string"==typeof e){const n=this.alloc(t);this._buffer.write(e,n,"utf8")}else{e instanceof u||(e=u.from(e));const n=this.alloc(t);e.copy(this._buffer,n,0,t)}const n=4-(t%4||4);if(n>0){const e=this.alloc(n);this._buffer.fill(0,e,this._index)}}writeInt32BE(e){const t=this.alloc(4);this._buffer.writeInt32BE(e,t)}writeUInt32BE(e){const t=this.alloc(4);this._buffer.writeUInt32BE(e,t)}writeBigInt64BE(e){const t=this.alloc(8);this._buffer.writeBigInt64BE(e,t)}writeBigUInt64BE(e){const t=this.alloc(8);this._buffer.writeBigUInt64BE(e,t)}writeFloatBE(e){const t=this.alloc(4);this._buffer.writeFloatBE(e,t)}writeDoubleBE(e){const t=this.alloc(8);this._buffer.writeDoubleBE(e,t)}static bufferChunkSize=l}var p=n(616).A;class d{toXDR(e="raw"){if(!this.write)return this.constructor.toXDR(this,e);const t=new f;return this.write(this,t),g(t.finalize(),e)}fromXDR(e,t="raw"){if(!this.read)return this.constructor.fromXDR(e,t);const n=new c(b(e,t)),r=this.read(n);return n.ensureInputConsumed(),r}validateXDR(e,t="raw"){try{return this.fromXDR(e,t),!0}catch(e){return!1}}static toXDR(e,t="raw"){const n=new f;return this.write(e,n),g(n.finalize(),t)}static fromXDR(e,t="raw"){const n=new c(b(e,t)),r=this.read(n);return n.ensureInputConsumed(),r}static validateXDR(e,t="raw"){try{return this.fromXDR(e,t),!0}catch(e){return!1}}}class h extends d{static read(e){throw new a}static write(e,t){throw new a}static isValid(e){return!1}}class y extends d{isValid(e){return!1}}class m extends TypeError{constructor(e){super(`Invalid format ${e}, must be one of "raw", "hex", "base64"`)}}function g(e,t){switch(t){case"raw":return e;case"hex":return e.toString("hex");case"base64":return e.toString("base64");default:throw new m(t)}}function b(e,t){switch(t){case"raw":return e;case"hex":return p.from(e,"hex");case"base64":return p.from(e,"base64");default:throw new m(t)}}function v(e,t){return null!=e&&(e instanceof t||w(e,t)&&"function"==typeof e.constructor.read&&"function"==typeof e.constructor.write&&w(e,"XdrType"))}function w(e,t){do{if(e.constructor.name===t)return!0}while(e=Object.getPrototypeOf(e));return!1}const S=2147483647;class x extends h{static read(e){return e.readInt32BE()}static write(e,t){if("number"!=typeof e)throw new r("not a number");if((0|e)!==e)throw new r("invalid i32 value");t.writeInt32BE(e)}static isValid(e){return"number"==typeof e&&(0|e)===e&&e>=-2147483648&&e<=S}}function k(e,t,n){if("bigint"!=typeof e)throw new TypeError("Expected bigint 'value', got "+typeof e);const r=t/n;if(1===r)return[e];if(n<32||n>128||2!==r&&4!==r&&8!==r)throw new TypeError(`invalid bigint (${e}) and slice size (${t} -> ${n}) combination`);const o=BigInt(n),i=new Array(r);for(let t=0;t<r;t++)i[t]=BigInt.asIntN(n,e),e>>=o;return i}function E(e,t){if(t)return[0n,(1n<<BigInt(e))-1n];const n=1n<<BigInt(e-1);return[0n-n,n-1n]}x.MAX_VALUE=S,x.MIN_VALUE=2147483648;class T extends h{constructor(e){super(),this._value=function(e,t,n){e instanceof Array?e.length&&e[0]instanceof Array&&(e=e[0]):e=[e];const r=t/e.length;switch(r){case 32:case 64:case 128:case 256:break;default:throw new RangeError(`expected slices to fit in 32/64/128/256 bits, got ${e}`)}try{for(let t=0;t<e.length;t++)"bigint"!=typeof e[t]&&(e[t]=BigInt(e[t].valueOf()))}catch(t){throw new TypeError(`expected bigint-like values, got: ${e} (${t})`)}if(n&&1===e.length&&e[0]<0n)throw new RangeError(`expected a positive value, got: ${e}`);let o=BigInt.asUintN(r,e[0]);for(let t=1;t<e.length;t++)o|=BigInt.asUintN(r,e[t])<<BigInt(t*r);n||(o=BigInt.asIntN(t,o));const[i,a]=E(t,n);if(o>=i&&o<=a)return o;throw new TypeError(`bigint values [${e}] for ${function(e,t){return`${t?"u":"i"}${e}`}(t,n)} out of range [${i}, ${a}]: ${o}`)}(e,this.size,this.unsigned)}get unsigned(){throw new a}get size(){throw new a}slice(e){return k(this._value,this.size,e)}toString(){return this._value.toString()}toJSON(){return{_value:this._value.toString()}}toBigInt(){return BigInt(this._value)}static read(e){const{size:t}=this.prototype;return 64===t?new this(e.readBigUInt64BE()):new this(...Array.from({length:t/64},()=>e.readBigUInt64BE()).reverse())}static write(e,t){if(e instanceof this)e=e._value;else if("bigint"!=typeof e||e>this.MAX_VALUE||e<this.MIN_VALUE)throw new r(`${e} is not a ${this.name}`);const{unsigned:n,size:o}=this.prototype;if(64===o)n?t.writeBigUInt64BE(e):t.writeBigInt64BE(e);else for(const r of k(e,o,64).reverse())n?t.writeBigUInt64BE(r):t.writeBigInt64BE(r)}static isValid(e){return"bigint"==typeof e||e instanceof this}static fromString(e){return new this(e)}static MAX_VALUE=0n;static MIN_VALUE=0n;static defineIntBoundaries(){const[e,t]=E(this.prototype.size,this.prototype.unsigned);this.MIN_VALUE=e,this.MAX_VALUE=t}}class A extends T{constructor(...e){super(e)}get low(){return 0|Number(0xffffffffn&this._value)}get high(){return 0|Number(this._value>>32n)}get size(){return 64}get unsigned(){return!1}static fromBits(e,t){return new this(e,t)}}A.defineIntBoundaries();const C=4294967295;class _ extends h{static read(e){return e.readUInt32BE()}static write(e,t){if("number"!=typeof e||!(e>=0&&e<=C)||e%1!=0)throw new r("invalid u32 value");t.writeUInt32BE(e)}static isValid(e){return"number"==typeof e&&e%1==0&&e>=0&&e<=C}}_.MAX_VALUE=C,_.MIN_VALUE=0;class O extends T{constructor(...e){super(e)}get low(){return 0|Number(0xffffffffn&this._value)}get high(){return 0|Number(this._value>>32n)}get size(){return 64}get unsigned(){return!0}static fromBits(e,t){return new this(e,t)}}O.defineIntBoundaries();class P extends h{static read(e){return e.readFloatBE()}static write(e,t){if("number"!=typeof e)throw new r("not a number");t.writeFloatBE(e)}static isValid(e){return"number"==typeof e}}class R extends h{static read(e){return e.readDoubleBE()}static write(e,t){if("number"!=typeof e)throw new r("not a number");t.writeDoubleBE(e)}static isValid(e){return"number"==typeof e}}class j extends h{static read(){throw new i("quadruple not supported")}static write(){throw new i("quadruple not supported")}static isValid(){return!1}}class I extends h{static read(e){const t=x.read(e);switch(t){case 0:return!1;case 1:return!0;default:throw new o(`got ${t} when trying to read a bool`)}}static write(e,t){const n=e?1:0;x.write(n,t)}static isValid(e){return"boolean"==typeof e}}var N=n(616).A;class L extends y{constructor(e=_.MAX_VALUE){super(),this._maxLength=e}read(e){const t=_.read(e);if(t>this._maxLength)throw new o(`saw ${t} length String, max allowed is ${this._maxLength}`);return e.read(t)}readString(e){return this.read(e).toString("utf8")}write(e,t){const n="string"==typeof e?N.byteLength(e,"utf8"):e.length;if(n>this._maxLength)throw new r(`got ${e.length} bytes, max allowed is ${this._maxLength}`);_.write(n,t),t.write(e,n)}isValid(e){return"string"==typeof e?N.byteLength(e,"utf8")<=this._maxLength:!!(e instanceof Array||N.isBuffer(e))&&e.length<=this._maxLength}}var B=n(616).A;class D extends y{constructor(e){super(),this._length=e}read(e){return e.read(this._length)}write(e,t){const{length:n}=e;if(n!==this._length)throw new r(`got ${e.length} bytes, expected ${this._length}`);t.write(e,n)}isValid(e){return B.isBuffer(e)&&e.length===this._length}}var U=n(616).A;class M extends y{constructor(e=_.MAX_VALUE){super(),this._maxLength=e}read(e){const t=_.read(e);if(t>this._maxLength)throw new o(`saw ${t} length VarOpaque, max allowed is ${this._maxLength}`);return e.read(t)}write(e,t){const{length:n}=e;if(e.length>this._maxLength)throw new r(`got ${e.length} bytes, max allowed is ${this._maxLength}`);_.write(n,t),t.write(e,n)}isValid(e){return U.isBuffer(e)&&e.length<=this._maxLength}}class F extends y{constructor(e,t){super(),this._childType=e,this._length=t}read(e){const t=new n.g.Array(this._length);for(let n=0;n<this._length;n++)t[n]=this._childType.read(e);return t}write(e,t){if(!n.g.Array.isArray(e))throw new r("value is not array");if(e.length!==this._length)throw new r(`got array of size ${e.length}, expected ${this._length}`);for(const n of e)this._childType.write(n,t)}isValid(e){if(!(e instanceof n.g.Array)||e.length!==this._length)return!1;for(const t of e)if(!this._childType.isValid(t))return!1;return!0}}class V extends y{constructor(e,t=_.MAX_VALUE){super(),this._childType=e,this._maxLength=t}read(e){const t=_.read(e);if(t>this._maxLength)throw new o(`saw ${t} length VarArray, max allowed is ${this._maxLength}`);const n=new Array(t);for(let r=0;r<t;r++)n[r]=this._childType.read(e);return n}write(e,t){if(!(e instanceof Array))throw new r("value is not array");if(e.length>this._maxLength)throw new r(`got array of size ${e.length}, max allowed is ${this._maxLength}`);_.write(e.length,t);for(const n of e)this._childType.write(n,t)}isValid(e){if(!(e instanceof Array)||e.length>this._maxLength)return!1;for(const t of e)if(!this._childType.isValid(t))return!1;return!0}}class q extends h{constructor(e){super(),this._childType=e}read(e){if(I.read(e))return this._childType.read(e)}write(e,t){const n=null!=e;I.write(n,t),n&&this._childType.write(e,t)}isValid(e){return null==e||this._childType.isValid(e)}}class z extends h{static read(){}static write(e){if(void 0!==e)throw new r("trying to write value to a void slot")}static isValid(e){return void 0===e}}class H extends h{constructor(e,t){super(),this.name=e,this.value=t}static read(e){const t=x.read(e),n=this._byValue[t];if(void 0===n)throw new o(`unknown ${this.enumName} member for value ${t}`);return n}static write(e,t){if(!this.isValid(e))throw new r(`${e} has enum name ${e?.enumName}, not ${this.enumName}: ${JSON.stringify(e)}`);x.write(e.value,t)}static isValid(e){return e?.constructor?.enumName===this.enumName||v(e,this)}static members(){return this._members}static values(){return Object.values(this._members)}static fromName(e){const t=this._members[e];if(!t)throw new TypeError(`${e} is not a member of ${this.enumName}`);return t}static fromValue(e){const t=this._byValue[e];if(void 0===t)throw new TypeError(`${e} is not a value of any member of ${this.enumName}`);return t}static create(e,t,n){const r=class extends H{};r.enumName=t,e.results[t]=r,r._members={},r._byValue={};for(const[e,t]of Object.entries(n)){const n=new r(e,t);r._members[e]=n,r._byValue[t]=n,r[e]=()=>n}return r}}class W extends h{resolve(){throw new i('"resolve" method should be implemented in the descendant class')}}class K extends y{constructor(e){super(),this._attributes=e||{}}static read(e){const t={};for(const[n,r]of this._fields)t[n]=r.read(e);return new this(t)}static write(e,t){if(!this.isValid(e))throw new r(`${e} has struct name ${e?.constructor?.structName}, not ${this.structName}: ${JSON.stringify(e)}`);for(const[n,r]of this._fields){const o=e._attributes[n];r.write(o,t)}}static isValid(e){return e?.constructor?.structName===this.structName||v(e,this)}static create(e,t,n){const r=class extends K{};r.structName=t,e.results[t]=r;const o=new Array(n.length);for(let t=0;t<n.length;t++){const i=n[t],a=i[0];let s=i[1];s instanceof W&&(s=s.resolve(e)),o[t]=[a,s],r.prototype[a]=$(a)}return r._fields=o,r}}function $(e){return function(t){return void 0!==t&&(this._attributes[e]=t),this._attributes[e]}}class X extends y{constructor(e,t){super(),this.set(e,t)}set(e,t){"string"==typeof e&&(e=this.constructor._switchOn.fromName(e)),this._switch=e;const n=this.constructor.armForSwitch(this._switch);this._arm=n,this._armType=n===z?z:this.constructor._arms[n],this._value=t}get(e=this._arm){if(this._arm!==z&&this._arm!==e)throw new TypeError(`${e} not set`);return this._value}switch(){return this._switch}arm(){return this._arm}armType(){return this._armType}value(){return this._value}static armForSwitch(e){const t=this._switches.get(e);if(void 0!==t)return t;if(this._defaultArm)return this._defaultArm;throw new TypeError(`Bad union switch: ${e}`)}static armTypeForArm(e){return e===z?z:this._arms[e]}static read(e){const t=this._switchOn.read(e),n=this.armForSwitch(t),r=n===z?z:this._arms[n];let o;return o=void 0!==r?r.read(e):n.read(e),new this(t,o)}static write(e,t){if(!this.isValid(e))throw new r(`${e} has union name ${e?.unionName}, not ${this.unionName}: ${JSON.stringify(e)}`);this._switchOn.write(e.switch(),t),e.armType().write(e.value(),t)}static isValid(e){return e?.constructor?.unionName===this.unionName||v(e,this)}static create(e,t,n){const r=class extends X{};r.unionName=t,e.results[t]=r,n.switchOn instanceof W?r._switchOn=n.switchOn.resolve(e):r._switchOn=n.switchOn,r._switches=new Map,r._arms={};let o=n.defaultArm;o instanceof W&&(o=o.resolve(e)),r._defaultArm=o;for(const[e,t]of n.switches){const n="string"==typeof e?r._switchOn.fromName(e):e;r._switches.set(n,t)}if(void 0!==r._switchOn.values)for(const e of r._switchOn.values())r[e.name]=function(t){return new r(e,t)},r.prototype[e.name]=function(t){return this.set(e,t)};if(n.arms)for(const[t,o]of Object.entries(n.arms))r._arms[t]=o instanceof W?o.resolve(e):o,o!==z&&(r.prototype[t]=function(){return this.get(t)});return r}}class G extends W{constructor(e){super(),this.name=e}resolve(e){return e.definitions[this.name].resolve(e)}}class Q extends W{constructor(e,t,n=!1){super(),this.childReference=e,this.length=t,this.variable=n}resolve(e){let t=this.childReference,n=this.length;return t instanceof W&&(t=t.resolve(e)),n instanceof W&&(n=n.resolve(e)),this.variable?new V(t,n):new F(t,n)}}class Z extends W{constructor(e){super(),this.childReference=e,this.name=e.name}resolve(e){let t=this.childReference;return t instanceof W&&(t=t.resolve(e)),new q(t)}}class Y extends W{constructor(e,t){super(),this.sizedType=e,this.length=t}resolve(e){let t=this.length;return t instanceof W&&(t=t.resolve(e)),new this.sizedType(t)}}class J{constructor(e,t,n){this.constructor=e,this.name=t,this.config=n}resolve(e){return this.name in e.results?e.results[this.name]:this.constructor(e,this.name,this.config)}}function ee(e,t,n){return n instanceof W&&(n=n.resolve(e)),e.results[t]=n,n}function te(e,t,n){return e.results[t]=n,n}class ne{constructor(e){this._destination=e,this._definitions={}}enum(e,t){const n=new J(H.create,e,t);this.define(e,n)}struct(e,t){const n=new J(K.create,e,t);this.define(e,n)}union(e,t){const n=new J(X.create,e,t);this.define(e,n)}typedef(e,t){const n=new J(ee,e,t);this.define(e,n)}const(e,t){const n=new J(te,e,t);this.define(e,n)}void(){return z}bool(){return I}int(){return x}hyper(){return A}uint(){return _}uhyper(){return O}float(){return P}double(){return R}quadruple(){return j}string(e){return new Y(L,e)}opaque(e){return new Y(D,e)}varOpaque(e){return new Y(M,e)}array(e,t){return new Q(e,t)}varArray(e,t){return new Q(e,t,!0)}option(e){return new Z(e)}define(e,t){if(void 0!==this._destination[e])throw new i(`${e} is already defined`);this._definitions[e]=t}lookup(e){return new G(e)}resolve(){for(const e of Object.values(this._definitions))e.resolve({definitions:this._definitions,results:this._destination})}}function re(e,t={}){if(e){const n=new ne(t);e(n),n.resolve()}return t}},526:(e,t)=>{t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],c=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,u=r-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(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 c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287:(e,t,n)=>{const r=n(526),i=n(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const s=2147483647;function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 p(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=c(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(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(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(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 u.from(r,t,n);const o=function(e){if(u.isBuffer(e)){const t=0|y(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?c(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 f(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 p(e){return f(e),c(e<0?0:0|y(e))}function d(e){const t=e.length<0?0:0|y(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(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,u.prototype),r}function y(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(o)return r?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function g(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 R(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,o){let i,a=1,s=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function S(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Z(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return G($(t,e.length-n),e,n,r)}function k(e,t,n,r){return G(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 E(e,t,n,r){return G(X(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}u.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}}(),u.TYPED_ARRAY_SUPPORT||void 0===o||"function"!=typeof o.error||o.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.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 o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))o+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.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)b(this,t,t+1);return this},u.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)b(this,t,t+3),b(this,t+1,t+2);return this},u.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)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,o){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==l[e]){i=c[e],a=l[e];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Y[e[r]];return o}function j(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function I(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,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function B(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.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,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),u.prototype.readBigUInt64BE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(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)}),u.prototype.readBigInt64BE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(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)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUint8=u.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},u.prototype.writeUint16LE=u.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},u.prototype.writeUint16BE=u.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},u.prototype.writeUint32LE=u.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},u.prototype.writeUint32BE=u.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},u.prototype.writeBigUInt64LE=J(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=J(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.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 o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},u.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 o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},u.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},u.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},u.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},u.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},u.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},u.prototype.writeBigInt64LE=J(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=J(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.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 o=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),o},u.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&&!u.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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=u.isBuffer(e)?e:u.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const F={};function V(e,t,n){F[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 z(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,i)}function H(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=q(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},251:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=u}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*y}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(281)})(),e.exports=r()},3918:(e,t,n)=>{var r=n(5606);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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,c(r.key),r)}}function c(e){var t=function(e){if("object"!==m(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}function u(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"==typeof Map?new Map:void 0;return f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,y(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)},f(e)}function p(e,t,n){return p=d()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&h(o,n.prototype),o},p.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e){return m="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},m(e)}var g=n(537).inspect,b=n(9597).codes.ERR_INVALID_ARG_TYPE;function v(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var w="",S="",x="",k="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function T(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function A(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(e,t,n){var o="",i="",a=0,s="",c=!1,u=A(e),l=u.split("\n"),f=A(t).split("\n"),p=0,d="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var h=l[0].length+f[0].length;if(h<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(E[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&h<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}for(var y=l[l.length-1],g=f[f.length-1];y===g&&(p++<2?s="\n ".concat(y).concat(s):o=y,l.pop(),f.pop(),0!==l.length&&0!==f.length);)y=l[l.length-1],g=f[f.length-1];var b=Math.max(l.length,f.length);if(0===b){var T=u.split("\n");if(T.length>30)for(T[26]="".concat(w,"...").concat(k);T.length>27;)T.pop();return"".concat(E.notIdentical,"\n\n").concat(T.join("\n"),"\n")}p>3&&(s="\n".concat(w,"...").concat(k).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var C=0,_=E[n]+"\n".concat(S,"+ actual").concat(k," ").concat(x,"- expected").concat(k),O=" ".concat(w,"...").concat(k," Lines skipped");for(p=0;p<b;p++){var P=p-a;if(l.length<p+1)P>1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(k),c=!0):P>3&&(i+="\n ".concat(f[p-2]),C++),i+="\n ".concat(f[p-1]),C++),a=p,o+="\n".concat(x,"-").concat(k," ").concat(f[p]),C++;else if(f.length<p+1)P>1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(k),c=!0):P>3&&(i+="\n ".concat(l[p-2]),C++),i+="\n ".concat(l[p-1]),C++),a=p,i+="\n".concat(S,"+").concat(k," ").concat(l[p]),C++;else{var R=f[p],j=l[p],I=j!==R&&(!v(j,",")||j.slice(0,-1)!==R);I&&v(R,",")&&R.slice(0,-1)===j&&(I=!1,j+=","),I?(P>1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(k),c=!0):P>3&&(i+="\n ".concat(l[p-2]),C++),i+="\n ".concat(l[p-1]),C++),a=p,i+="\n".concat(S,"+").concat(k," ").concat(j),o+="\n".concat(x,"-").concat(k," ").concat(R),C+=2):(i+=o,o="",1!==P&&0!==p||(i+="\n ".concat(j),C++))}if(C>20&&p<b-2)return"".concat(_).concat(O,"\n").concat(i,"\n").concat(w,"...").concat(k).concat(o,"\n")+"".concat(w,"...").concat(k)}return"".concat(_).concat(c?O:"","\n").concat(i).concat(o).concat(s).concat(d)}var _=function(e,t){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(p,e);var n,o,a,c,f=(n=p,o=d(),function(){var e,t=y(n);if(o){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function p(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),"object"!==m(e)||null===e)throw new b("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,s=e.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=f.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(w="",S="",k="",x=""):(w="",S="",k="",x="")),"object"===m(a)&&null!==a&&"object"===m(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=T(a),s=T(s)),"deepStrictEqual"===o||"strictEqual"===o)t=f.call(this,C(a,s,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=E[o],h=A(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(d=E.notStrictEqualObject),h.length>30)for(h[26]="".concat(w,"...").concat(k);h.length>27;)h.pop();t=1===h.length?f.call(this,"".concat(d," ").concat(h[0])):f.call(this,"".concat(d,"\n\n").concat(h.join("\n"),"\n"))}else{var y=A(a),g="",v=E[o];"notDeepEqual"===o||"notEqual"===o?(y="".concat(E[o],"\n\n").concat(y)).length>1024&&(y="".concat(y.slice(0,1021),"...")):(g="".concat(A(s)),y.length>512&&(y="".concat(y.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?y="".concat(v,"\n\n").concat(y,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),t=f.call(this,"".concat(y).concat(g))}return Error.stackTraceLimit=c,t.generatedMessage=!n,Object.defineProperty(l(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(t),i),t.stack,t.name="AssertionError",u(t)}return a=p,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&s(a.prototype,c),Object.defineProperty(a,"prototype",{writable:!1}),p}(f(Error),g.custom);e.exports=_},4035:(e,t,n)=>{var r,o=n(6556),i=n(9092)(),a=n(9957),s=n(5795);if(i){var c=o("RegExp.prototype.exec"),u={},l=function(){throw u},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!t||!a(t,"value"))return!1;try{c(e,f)}catch(e){return e===u}}}else{var p=o("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===p(e)}}e.exports=r},4039:(e,t,n)=>{var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},4107:(e,t,n)=>{var r=n(6698),o=n(392),i=n(2861).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function p(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function h(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}r(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,c=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=h(t[g-2])+t[g-7]+d(t[g-15])+t[g-16]|0;for(var b=0;b<64;++b){var v=m+p(s)+u(s,c,y)+a[b]+t[b]|0,w=f(n)+l(n,r,o)|0;m=y,y=c,c=s,s=i+v|0,i=o,o=r,r=n,n=v+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},4133:(e,t,n)=>{var r=n(487),o=n(8452),i=n(3003),a=n(6642),s=n(2464),c=r(a(),Number);o(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},4148:(e,t,n)=>{var r=n(5606),o=n(6763);function i(e){return i="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},i(e)}var a,s,c=n(9597).codes,u=c.ERR_AMBIGUOUS_ARGUMENT,l=c.ERR_INVALID_ARG_TYPE,f=c.ERR_INVALID_ARG_VALUE,p=c.ERR_INVALID_RETURN_VALUE,d=c.ERR_MISSING_ARGS,h=n(3918),y=n(537).inspect,m=n(537).types,g=m.isPromise,b=m.isRegExp,v=n(9133)(),w=n(9394)(),S=n(8075)("RegExp.prototype.test");function x(){var e=n(2299);a=e.isDeepEqual,s=e.isDeepStrictEqual}var k=!1,E=e.exports=_,T={};function A(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function C(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];C.apply(void 0,[_,t.length].concat(t))}E.fail=function e(t,n,i,a,s){var c,u=arguments.length;if(0===u?c="Failed":1===u?(i=t,t=void 0):(!1===k&&(k=!0,(r.emitWarning?r.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(a="!=")),i instanceof Error)throw i;var l={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:s||e};void 0!==i&&(l.message=i);var f=new h(l);throw c&&(f.message=c,f.generatedMessage=!0),f},E.AssertionError=h,E.ok=_,E.equal=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t!=n&&A({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},E.notEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t==n&&A({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===a&&x(),a(t,n)||A({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===a&&x(),a(t,n)&&A({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===a&&x(),s(t,n)||A({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===a&&x(),s(t,n)&&A({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},E.strictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");w(t,n)||A({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");w(t,n)&&A({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var O=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&b(t[e])&&S(t[e],r[e])?o[e]=r[e]:o[e]=t[e])})});function P(e,t,n,r){if("function"!=typeof t){if(b(t))return S(t,e);if(2===arguments.length)throw new l("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new h({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var c=Object.keys(t);if(t instanceof Error)c.push("name","message");else if(0===c.length)throw new f("error",t,"may not be an empty object");return void 0===a&&x(),c.forEach(function(o){"string"==typeof e[o]&&b(t[o])&&S(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new O(e,o),c=new O(t,o,e),u=new h({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}A({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,n,c,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function R(e){if("function"!=typeof e)throw new l("fn","Function",e);try{e()}catch(e){return e}return T}function j(e){return g(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function I(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!j(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!j(e))throw new l("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return T}).catch(function(e){return e})})}function N(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new l("error",["Object","Error","Function","RegExp"],n);if(t===T){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";A({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!P(t,n,r,e))throw t}function L(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||P(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";A({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function B(e,t,n,r,o){if(!b(t))throw new l("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||S(t,e)!==a){if(n instanceof Error)throw n;var s=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(y(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var c=new h({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw c.generatedMessage=s,c}}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];C.apply(void 0,[D,t.length].concat(t))}E.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];N.apply(void 0,[e,R(t)].concat(r))},E.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return I(t).then(function(t){return N.apply(void 0,[e,t].concat(r))})},E.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];L.apply(void 0,[e,R(t)].concat(r))},E.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return I(t).then(function(t){return L.apply(void 0,[e,t].concat(r))})},E.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=y(t);var r=new h({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=r.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},E.match=function e(t,n,r){B(t,n,r,e,"match")},E.doesNotMatch=function e(t,n,r){B(t,n,r,e,"doesNotMatch")},E.strict=v(D,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},4372:(e,t,n)=>{var r=n(9675),o=n(6556)("TypedArray.prototype.buffer",!0),i=n(5680);e.exports=o||function(e){if(!i(e))throw new r("Not a Typed Array");return e.buffer}},4459:e=>{e.exports=Number.isNaN||function(e){return e!=e}},4634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},5345:e=>{e.exports=URIError},5360:(e,t)=>{var n=function(e,t){return t||(t={}),e.split("").forEach(function(e,n){e in t||(t[e]=n)}),t},r={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};r.charmap=n(r.alphabet,r.charmap);var o={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};o.charmap=n(o.alphabet,o.charmap);var i={alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",charmap:{}};function a(e){if(this.buf=[],this.shift=8,this.carry=0,e){switch(e.type){case"rfc4648":this.charmap=t.rfc4648.charmap;break;case"crockford":this.charmap=t.crockford.charmap;break;case"base32hex":this.charmap=t.base32hex.charmap;break;default:throw new Error("invalid type")}e.charmap&&(this.charmap=e.charmap)}}function s(e){if(this.buf="",this.shift=3,this.carry=0,e){switch(e.type){case"rfc4648":this.alphabet=t.rfc4648.alphabet;break;case"crockford":this.alphabet=t.crockford.alphabet;break;case"base32hex":this.alphabet=t.base32hex.alphabet;break;default:throw new Error("invalid type")}e.alphabet?this.alphabet=e.alphabet:e.lc&&(this.alphabet=this.alphabet.toLowerCase())}}i.charmap=n(i.alphabet,i.charmap),a.prototype.charmap=r.charmap,a.prototype.write=function(e){var t=this.charmap,n=this.buf,r=this.shift,o=this.carry;return e.toUpperCase().split("").forEach(function(e){if("="!=e){var i=255&t[e];(r-=5)>0?o|=i<<r:r<0?(n.push(o|i>>-r),o=i<<(r+=8)&255):(n.push(o|i),r=8,o=0)}}),this.shift=r,this.carry=o,this},a.prototype.finalize=function(e){return e&&this.write(e),8!==this.shift&&0!==this.carry&&(this.buf.push(this.carry),this.shift=8,this.carry=0),this.buf},s.prototype.alphabet=r.alphabet,s.prototype.write=function(e){var t,n,r,o=this.shift,i=this.carry;for(r=0;r<e.length;r++)t=i|(n=e[r])>>o,this.buf+=this.alphabet[31&t],o>5&&(t=n>>(o-=5),this.buf+=this.alphabet[31&t]),i=n<<(o=5-o),o=8-o;return this.shift=o,this.carry=i,this},s.prototype.finalize=function(e){return e&&this.write(e),3!==this.shift&&(this.buf+=this.alphabet[31&this.carry],this.shift=3,this.carry=0),this.buf},t.encode=function(e,t){return new s(t).finalize(e)},t.decode=function(e,t){return new a(t).finalize(e)},t.Decoder=a,t.Encoder=s,t.charmap=n,t.crockford=o,t.rfc4648=r,t.base32hex=i},5377:(e,t,n)=>{var r=n(2861).Buffer,o=n(4634),i=n(4372),a=ArrayBuffer.isView||function(e){try{return i(e),!0}catch(e){return!1}},s="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,u=c&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(e instanceof r)return e;if("string"==typeof e)return r.from(e,t);if(c&&a(e)){if(0===e.byteLength)return r.alloc(0);if(u){var n=r.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var i=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),l=r.from(i);if(l.length===e.byteLength)return l}if(s&&e instanceof Uint8Array)return r.from(e);var f=o(e);if(f)for(var p=0;p<e.length;p+=1){var d=e[p];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(f||r.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return r.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||u||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5680:(e,t,n)=>{var r=n(5767);e.exports=function(e){return!!r(e)}},5767:(e,t,n)=>{var r=n(2682),o=n(9209),i=n(487),a=n(6556),s=n(5795),c=n(3628),u=a("Object.prototype.toString"),l=n(9092)(),f="undefined"==typeof globalThis?n.g:globalThis,p=o(),d=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},y={__proto__:null};r(p,l&&s&&c?function(e){var t=new f[e];if(Symbol.toStringTag in t&&c){var n=c(t),r=s(n,Symbol.toStringTag);if(!r&&n){var o=c(n);r=s(o,Symbol.toStringTag)}y["$"+e]=i(r.get)}}:function(e){var t=new f[e],n=t.slice||t.set;n&&(y["$"+e]=i(n))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=d(u(e),8,-1);return h(p,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(y,function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}}),t}(e)}return s?function(e){var t=!1;return r(y,function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}}),t}(e):null}},5795:(e,t,n)=>{var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},5880:e=>{e.exports=Math.pow},6188:e=>{e.exports=Math.max},6549:e=>{e.exports=Object.getOwnPropertyDescriptor},6556:(e,t,n)=>{var r=n(453),o=n(3126),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},6576:(e,t,n)=>{var r=n(9394),o=n(8452);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},6578:e=>{e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6642:(e,t,n)=>{var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},6710:(e,t,n)=>{var r=n(6698),o=n(4107),i=n(392),a=n(2861).Buffer,s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}r(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},6743:(e,t,n)=>{var r=n(9353);e.exports=Function.prototype.bind||r},6763:(e,t,n)=>{var r=n(537),o=n(4148);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,c={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){c[e]=i()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],l=0;l<u.length;l++){var f=u[l],p=f[0],d=f[1];a[d]||(a[d]=p)}e.exports=a},6897:(e,t,n)=>{var r=n(453),o=n(41),i=n(592)(),a=n(5795),s=n(9675),c=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},7119:e=>{e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(e,t,n)=>{var r,o=n(3126),i=n(5795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},7244:(e,t,n)=>{var r=n(9092)(),o=n(6556)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},7526:(e,t)=>{t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],c=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(u(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(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 c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(c(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7653:(e,t,n)=>{var r=n(8452),o=n(487),i=n(9211),a=n(9394),s=n(6576),c=o(a(),Object);r(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},7816:(e,t,n)=>{var r=n(6698),o=n(392),i=n(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var p=0;p<80;++p){var d=~~(p/20),h=u(n)+f(d,r,o,i)+s+t[p]+a[d]|0;s=i,i=o,o=l(r),r=n,n=h}this._a=n+this._a|0,this._b=r+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},8002:e=>{e.exports=Math.min},8068:e=>{e.exports=SyntaxError},8075:(e,t,n)=>{var r=n(453),o=n(487),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},8184:(e,t,n)=>{var r,o=n(6556),i=n(9721)(/^\s*(?:function)?\*/),a=n(9092)(),s=n(3628),c=o("Object.prototype.toString"),u=o("Function.prototype.toString");e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!a)return"[object GeneratorFunction]"===c(e);if(!s)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&s(t)}return s(e)===r}},8287:(e,t,n)=>{var r=n(6763);const o=n(7526),i=n(251),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 p(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=c(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(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(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(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 u.from(r,t,n);const o=function(e){if(u.isBuffer(e)){const t=0|y(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?c(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 f(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 p(e){return f(e),c(e<0?0:0|y(e))}function d(e){const t=e.length<0?0:0|y(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(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,u.prototype),r}function y(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(o)return r?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function g(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 R(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,o){let i,a=1,s=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function S(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Z(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return G($(t,e.length-n),e,n,r)}function k(e,t,n,r){return G(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 E(e,t,n,r){return G(X(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}t.kMaxLength=s,u.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}}(),u.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.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 o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))o+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.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)b(this,t,t+1);return this},u.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)b(this,t,t+3),b(this,t+1,t+2);return this},u.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)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,o){if(Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==l[e]){i=c[e],a=l[e];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.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 o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const _=4096;function O(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function P(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Y[e[r]];return o}function j(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function I(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,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function B(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.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,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),u.prototype.readBigUInt64BE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(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)}),u.prototype.readBigInt64BE=J(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||W(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)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||N(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUint8=u.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},u.prototype.writeUint16LE=u.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},u.prototype.writeUint16BE=u.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},u.prototype.writeUint32LE=u.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},u.prototype.writeUint32BE=u.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},u.prototype.writeBigUInt64LE=J(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=J(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.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 o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},u.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 o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},u.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},u.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},u.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},u.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},u.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},u.prototype.writeBigInt64LE=J(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=J(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.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 o=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),o},u.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&&!u.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 o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=u.isBuffer(e)?e:u.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const F={};function V(e,t,n){F[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 z(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||W(t,e.length-(n+1))}(r,o,i)}function H(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),V("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=q(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.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;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},8403:(e,t,n)=>{var r=n(1189),o=n(1333)(),i=n(6556),a=n(9612),s=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),u=o?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var l=a(arguments[i]),f=r(l),p=o&&(a.getOwnPropertySymbols||u);if(p)for(var d=p(l),h=0;h<d.length;++h){var y=d[h];c(l,y)&&s(f,y)}for(var m=0;m<f.length;++m){var g=f[m];if(c(l,g)){var b=l[g];n[g]=b}}}return n}},8452:(e,t,n)=>{var r=n(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=n(41),c=n(592)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?s(e,t,n,!0):s(e,t,n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)u(e,i[s],t[i[s]],n[i[s]])};l.supportsDescriptors=!!c,e.exports=l},8648:e=>{e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8875:(e,t,n)=>{var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var y=0;y<e.length;++y)p.push(String(y));if(r&&e.length>0)for(var m=0;m<e.length;++m)p.push(String(m));else for(var g in e)h&&"prototype"===g||!o.call(e,g)||p.push(String(g));if(c)for(var b=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}}(e),v=0;v<l.length;++v)b&&"constructor"===l[v]||!o.call(e,l[v])||p.push(l[v]);return p}}e.exports=r},8968:e=>{e.exports=Math.floor},9032:(e,t,n)=>{var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(c)var h=s(BigInt.prototype.valueOf);if(u)var y=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function S(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function E(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var T="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function C(e){return void 0!==T&&(void 0===A.working&&(A.working=A(new T)),A.working?A(e):e instanceof T)}function _(e){return m(e,f)}function O(e){return m(e,p)}function P(e){return m(e,d)}function R(e){return c&&m(e,h)}function j(e){return u&&m(e,y)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=_,t.isStringObject=O,t.isBooleanObject=P,t.isBigIntObject=R,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return _(e)||O(e)||P(e)||R(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9092:(e,t,n)=>{var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9133:(e,t,n)=>{var r=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},9209:(e,t,n)=>{var r=n(6578),o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},9211:e=>{var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},9290:e=>{e.exports=RangeError},9353:e=>{var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9383:e=>{e.exports=Error},9394:(e,t,n)=>{var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},9538:e=>{e.exports=ReferenceError},9597:(e,t,n)=>{function r(e){return r="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},r(e)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,o=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var s,c,u={};function l(e,t,n){n||(n=Error);var r=function(n){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(s,n);var r,a=i(s);function s(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i=a.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(n);u[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(e,t,o){var i,a;if(void 0===s&&(s=n(4148)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&"not "===t.substr(0,4)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length)," argument"===e.substring(n-9,n)}(e))a="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+1>e.length)&&-1!==e.indexOf(".",n)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(f(t,"type"))}return a+". Received type ".concat(r(o))},TypeError),l("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=n(537));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)},TypeError),l("ERR_INVALID_RETURN_VALUE",function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(4148)),s(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),e.exports.codes=u},9600:e=>{var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o(function(){throw 42},null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612:e=>{e.exports=Object},9675:e=>{e.exports=TypeError},9721:(e,t,n)=>{var r=n(6556),o=n(4035),i=r("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!o(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},9957:(e,t,n)=>{var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(r,o)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(448)})(),e.exports=t()},8968:e=>{e.exports=Math.floor},9032:(e,t,n)=>{var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(c)var h=s(BigInt.prototype.valueOf);if(u)var y=s(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===l(e)}function b(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function S(e){return"[object ArrayBuffer]"===l(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function E(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var T="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function C(e){return void 0!==T&&(void 0===A.working&&(A.working=A(new T)),A.working?A(e):e instanceof T)}function _(e){return m(e,f)}function O(e){return m(e,p)}function P(e){return m(e,d)}function R(e){return c&&m(e,h)}function j(e){return u&&m(e,y)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=_,t.isStringObject=O,t.isBooleanObject=P,t.isBigIntObject=R,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return _(e)||O(e)||P(e)||R(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},9092:(e,t,n)=>{var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9127:function(e,t,n){var r,o,i,a;a=function(e,t){var n=t&&t.URITemplate,r=Object.prototype.hasOwnProperty;function o(e){return o._cache[e]?o._cache[e]:this instanceof o?(this.expression=e,o._cache[e]=this,this):new o(e)}function i(e){this.data=e,this.cache={}}var a=o.prototype,s={"":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encode"},"+":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},"#":{prefix:"#",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},".":{prefix:".",separator:".",named:!1,empty_name_separator:!1,encode:"encode"},"/":{prefix:"/",separator:"/",named:!1,empty_name_separator:!1,encode:"encode"},";":{prefix:";",separator:";",named:!0,empty_name_separator:!1,encode:"encode"},"?":{prefix:"?",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"},"&":{prefix:"&",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"}};return o._cache={},o.EXPRESSION_PATTERN=/\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g,o.VARIABLE_PATTERN=/^([^*:.](?:\.?[^*:.])*)((\*)|:(\d+))?$/,o.VARIABLE_NAME_PATTERN=/[^a-zA-Z0-9%_.]/,o.LITERAL_PATTERN=/[<>{}"`^| \\]/,o.expand=function(e,t,n){var r,i,a,c=s[e.operator],u=c.named?"Named":"Unnamed",l=e.variables,f=[];for(a=0;i=l[a];a++){if(0===(r=t.get(i.name)).type&&n&&n.strict)throw new Error('Missing expansion value for variable "'+i.name+'"');if(r.val.length){if(r.type>1&&i.maxlength)throw new Error('Invalid expression: Prefix modifier not applicable to variable "'+i.name+'"');f.push(o["expand"+u](r,c,i.explode,i.explode&&c.separator||",",i.maxlength,i.name))}else r.type&&f.push("")}return f.length?c.prefix+f.join(c.separator):""},o.expandNamed=function(t,n,r,o,i,a){var s,c,u,l="",f=n.encode,p=n.empty_name_separator,d=!t[f].length,h=2===t.type?"":e[f](a);for(c=0,u=t.val.length;c<u;c++)i?(s=e[f](t.val[c][1].substring(0,i)),2===t.type&&(h=e[f](t.val[c][0].substring(0,i)))):d?(s=e[f](t.val[c][1]),2===t.type?(h=e[f](t.val[c][0]),t[f].push([h,s])):t[f].push([void 0,s])):(s=t[f][c][1],2===t.type&&(h=t[f][c][0])),l&&(l+=o),r?l+=h+(p||s?"=":"")+s:(c||(l+=e[f](a)+(p||s?"=":"")),2===t.type&&(l+=h+","),l+=s);return l},o.expandUnnamed=function(t,n,r,o,i){var a,s,c,u="",l=n.encode,f=n.empty_name_separator,p=!t[l].length;for(s=0,c=t.val.length;s<c;s++)i?a=e[l](t.val[s][1].substring(0,i)):p?(a=e[l](t.val[s][1]),t[l].push([2===t.type?e[l](t.val[s][0]):void 0,a])):a=t[l][s][1],u&&(u+=o),2===t.type&&(u+=i?e[l](t.val[s][0].substring(0,i)):t[l][s][0],u+=r?f||a?"=":"":","),u+=a;return u},o.noConflict=function(){return t.URITemplate===o&&(t.URITemplate=n),o},a.expand=function(e,t){var n="";this.parts&&this.parts.length||this.parse(),e instanceof i||(e=new i(e));for(var r=0,a=this.parts.length;r<a;r++)n+="string"==typeof this.parts[r]?this.parts[r]:o.expand(this.parts[r],e,t);return n},a.parse=function(){var e,t,n,r=this.expression,i=o.EXPRESSION_PATTERN,a=o.VARIABLE_PATTERN,c=o.VARIABLE_NAME_PATTERN,u=o.LITERAL_PATTERN,l=[],f=0,p=function(e){if(e.match(u))throw new Error('Invalid Literal "'+e+'"');return e};for(i.lastIndex=0;;){if(null===(t=i.exec(r))){l.push(p(r.substring(f)));break}if(l.push(p(r.substring(f,t.index))),f=t.index+t[0].length,!s[t[1]])throw new Error('Unknown Operator "'+t[1]+'" in "'+t[0]+'"');if(!t[3])throw new Error('Unclosed Expression "'+t[0]+'"');for(var d=0,h=(e=t[2].split(",")).length;d<h;d++){if(null===(n=e[d].match(a)))throw new Error('Invalid Variable "'+e[d]+'" in "'+t[0]+'"');if(n[1].match(c))throw new Error('Invalid Variable Name "'+n[1]+'" in "'+t[0]+'"');e[d]={name:n[1],explode:!!n[3],maxlength:n[4]&&parseInt(n[4],10)}}if(!e.length)throw new Error('Expression Missing Variable(s) "'+t[0]+'"');l.push({expression:t[0],operator:t[1],variables:e})}return l.length||l.push(p(r)),this.parts=l,this},i.prototype.get=function(e){var t,n,o,i=this.data,a={type:0,val:[],encode:[],encodeReserved:[]};if(void 0!==this.cache[e])return this.cache[e];if(this.cache[e]=a,null==(o="[object Function]"===String(Object.prototype.toString.call(i))?i(e):"[object Function]"===String(Object.prototype.toString.call(i[e]))?i[e](e):i[e]))return a;if("[object Array]"===String(Object.prototype.toString.call(o))){for(t=0,n=o.length;t<n;t++)void 0!==o[t]&&null!==o[t]&&a.val.push([void 0,String(o[t])]);a.val.length&&(a.type=3)}else if("[object Object]"===String(Object.prototype.toString.call(o))){for(t in o)r.call(o,t)&&void 0!==o[t]&&null!==o[t]&&a.val.push([t,String(o[t])]);a.val.length&&(a.type=2)}else a.type=1,a.val.push([void 0,String(o)]);return a},e.expand=function(t,n){var r=new o(t).expand(n);return new e(r)},o},e.exports?e.exports=a(n(4193)):(o=[n(4193)],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},9209:(e,t,n)=>{var r=n(6578),o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},9290:e=>{e.exports=RangeError},9340:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,a=2147483647,s=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function h(e){throw new RangeError(f[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(l,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function b(e){return y(e,function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+d(e)}).join("")}function v(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=s)e=p(e/35);return p(r+36*e/(e+38))}function x(e){var t,n,r,o,i,c,u,l,f,d,y=[],m=e.length,g=0,w=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=g,c=1,u=s;o>=m&&h("invalid-input"),((l=v(e.charCodeAt(o++)))>=s||l>p((a-g)/c))&&h("overflow"),g+=l*c,!(l<(f=u<=x?1:u>=x+26?26:u-x));u+=s)c>p(a/(d=s-f))&&h("overflow"),c*=d;x=S(g-i,t=y.length+1,0==i),p(g/t)>a-w&&h("overflow"),w+=p(g/t),g%=t,y.splice(g++,0,w)}return b(y)}function k(e){var t,n,r,o,i,c,u,l,f,y,m,b,v,x,k,E=[];for(b=(e=g(e)).length,t=128,n=0,i=72,c=0;c<b;++c)(m=e[c])<128&&E.push(d(m));for(r=o=E.length,o&&E.push("-");r<b;){for(u=a,c=0;c<b;++c)(m=e[c])>=t&&m<u&&(u=m);for(u-t>p((a-n)/(v=r+1))&&h("overflow"),n+=(u-t)*v,t=u,c=0;c<b;++c)if((m=e[c])<t&&++n>a&&h("overflow"),m==t){for(l=n,f=s;!(l<(y=f<=i?1:f>=i+26?26:f-i));f+=s)k=l-y,x=s-y,E.push(d(w(y+k%x,0))),l=p(k/x);E.push(d(w(l,0))),i=S(n,v,r==o),n=0,++r}++n,++t}return E.join("")}i={version:"1.3.2",ucs2:{decode:g,encode:b},decode:x,encode:k,toASCII:function(e){return m(e,function(e){return u.test(e)?"xn--"+k(e):e})},toUnicode:function(e){return m(e,function(e){return c.test(e)?x(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},9353:e=>{var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9383:e=>{e.exports=Error},9538:e=>{e.exports=ReferenceError},9600:e=>{var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o(function(){throw 42},null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},9612:e=>{e.exports=Object},9675:e=>{e.exports=TypeError},9721:(e,t,n)=>{var r=n(6556),o=n(4035),i=r("RegExp.prototype.exec"),a=n(9675);e.exports=function(e){if(!o(e))throw new a("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},9838:()=>{},9957:(e,t,n)=>{var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(6743);e.exports=i.call(r,o)},9983:(e,t,n)=>{function r(e){return r="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},r(e)}function o(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,i(r.key),r)}}function i(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{vt:()=>u,ok:()=>c}),a=function e(t){var n,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.promise=new Promise(function(e){n=e}),t(function(e){r.reason=e,n()})},(s=[{key:"throwIfRequested",value:function(){if(this.reason)throw new Error(this.reason)}}])&&o(a.prototype,s),Object.defineProperty(a,"prototype",{writable:!1});var a,s,c,u,l=n(6121);c=l.axiosClient,u=l.create}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r(1924)})(),C.exports=_()),C.exports);const P=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,o,i);return i},R=e=>e;var j,I,N;!function(e){e.Rabet="Rabet",e.Albedo="Albedo",e.Freighter="Freighter",e.Xbull="xBull",e.Lobstr="LOBSTR",e.Hana="Hana"}(j||(j={})),function(e){e.PUBLIC="Public Global Stellar Network ; September 2015",e.TESTNET="Test SDF Network ; September 2015",e.FUTURENET="Test SDF Future Network ; October 2022",e.SANDBOX="Local Sandbox Stellar Network ; September 2022",e.STANDALONE="Standalone Network ; February 2017"}(I||(I={})),function(e){e.ONBOARDING="ONBOARDING",e.WRONG_NETWORK="WRONG_NETWORK",e.WAITING="WAITING",e.SUCCESSFUL="SUCCESSFUL",e.PROFILE="PROFILE",e.SEND_TRANSACTION="SEND_TRANSACTION",e.SEND="SEND",e.ACTIVITY="ACTIVITY",e.OTP="OTP",e.RECEIVE="RECEIVE",e.BALANCES="BALANCES",e.SWAP="SWAP",e.BALANCE_DETAILS="BALANCE_DETAILS",e.ABOUT="ABOUT",e.ADD_TOKEN="ADD_TOKEN",e.SIGN_MESSAGE="SIGN_MESSAGE"}(N||(N={}));const L={logo:"",font:"Manrope",textColor:"#000000",accentColor:"#0c1083",background:"#ffffff",fieldBackground:"#ffffff",borderRadius:"0px",borderColor:"#cdceee",borderWidth:"1px",outlineWidth:"1px"},B=(D=e=>({config:{appId:"",lang:"en",appName:"",networks:[],defaultNetwork:"",showWalletUIs:!0,explorer:"stellarchain",appearance:L},stellar:void 0,sendTransaction:void 0,wallets:[],waitingStatus:"login",showAllWallets:!1,modal:{isOpen:!1,route:N.ONBOARDING,dynamicTitle:"",alert:{type:"none",message:""}},authState:{isReady:!1,isAuthenticated:!1},balances:{error:null,loading:!1,balances:[]},transactions:{error:null,loading:!1,transactions:[]},setConfig:t=>e(e=>({...e,config:t})),setWallets:t=>e(e=>({...e,wallets:t})),setIsReady:t=>e(e=>({...e,authState:{...e.authState,isReady:t}})),setShowAllWallets:t=>e(e=>({...e,showAllWallets:t})),setRoute:t=>e(e=>({...e,modal:{...e.modal,route:t}})),setSendTransaction:t=>e(e=>({...e,sendTransaction:t,modal:{...e.modal,isOpen:!0,route:N.SEND_TRANSACTION}})),setStellar:t=>e(e=>({...e,stellar:t})),approveSendTransaction:()=>e(e=>({...e,modal:{...e.modal,isOpen:!0,route:N.WAITING},waitingStatus:"sendTransaction"})),sendTransactionSuccessful:t=>e(e=>({...e,sendTransaction:t,modal:{...e.modal,isOpen:!0,route:N.SUCCESSFUL}})),openModal:t=>e(e=>({...e,modal:{route:t,isOpen:!0,dynamicTitle:"",alert:{type:"none",message:""}}})),setDynamicTitle:t=>e(e=>({...e,modal:{...e.modal,dynamicTitle:t}})),setAlert:(t,n)=>e(e=>({...e,modal:{...e.modal,alert:{type:t,message:n}}})),closeModal:()=>e(e=>({...e,modal:{...e.modal,isOpen:!1}})),connectWallet:t=>e(e=>({...e,waitingStatus:"login",user:{address:"",walletPassphrase:"",authMethod:"wallet",authValue:t},modal:{...e.modal,isOpen:!0,route:N.WAITING}})),connectWalletSuccessful:(t,n)=>e(e=>({...e,authState:{...e.authState,isAuthenticated:!0},user:{...e.user,address:t,walletPassphrase:n,authValue:e.user?.authValue||"",authMethod:e.user?.authMethod||""}})),connectEmail:t=>e(e=>({...e,waitingStatus:"login",user:{address:"",authValue:t,authMethod:"email",walletPassphrase:""},modal:{...e.modal,isOpen:!0,route:N.OTP}})),logoutAction:()=>e(e=>({...e,user:void 0,waitingStatus:"login",authState:{...e.authState,isAuthenticated:!1},modal:{...e.modal,isOpen:!1}})),setBalances:t=>e(e=>({...e,balances:t})),setTransactions:t=>e(e=>({...e,transactions:t}))}),D?P(D):P);var D;const{getState:U,setState:M,subscribe:F,getInitialState:V}=B,q=e=>function(e,t=R){const n=f.useSyncExternalStore(e.subscribe,f.useCallback(()=>t(e.getState()),[e,t]),f.useCallback(()=>t(e.getInitialState()),[e,t]));return f.useDebugValue(n),n}(B,e),z={name:j.Hana,website:"https://www.hanawallet.io/",isAvailable:()=>"undefined"!=typeof window&&!!window.hanaWallet?.stellar,connect:async()=>{try{if(!await window.hanaWallet.stellar.getPublicKey())throw new Error("Hana Wallet is not installed or connected.");return{publicKey:await window.hanaWallet.stellar.getPublicKey()}}catch(e){throw new Error("Failed to connect to Hana wallet.")}},signTransaction:async(e,t={})=>{try{const n=window?.hanaWallet?.stellar?.signTransaction;if("function"!=typeof n)throw new Error("Hana Wallet does not support signing transactions.");return await n({xdr:e,address:t.address,networkPassphrase:t.networkPassphrase})}catch(e){throw new Error("Failed to sign the transaction with Hana wallet.")}},getNetwork:async()=>{try{if(!window.hanaWallet?.stellar)throw new Error("Hana Wallet is not installed.");const e=await window.hanaWallet.stellar.getNetworkDetails();return{network:e.network,passphrase:e.networkPassphrase}}catch{throw new Error("Error getting network from Rabet:")}}},H={name:j.Rabet,website:"https://rabet.io",isAvailable:()=>new Promise(e=>{setTimeout(()=>e("undefined"!=typeof window&&!!window.rabet),250)}),connect:async()=>{try{if(!window.rabet)throw new Error("Rabet Wallet is not installed.");return{publicKey:(await window.rabet.connect()).publicKey}}catch(e){throw new Error("Failed to connect to Rabet.")}},signTransaction:async(e,t={})=>{try{if(!window.rabet)throw new Error("Rabet Wallet is not installed.");return(await window.rabet.sign(e,t.networkPassphrase===I.PUBLIC?"mainnet":"testnet")).xdr}catch(e){throw new Error("Failed to sign the transaction with Rabet.")}},disconnect:async()=>{try{if(!window.rabet)throw new Error("Rabet Wallet is not installed.");window.rabet.disconnect()}catch(e){throw new Error("Failed to disconnect from Rabet.")}},getNetwork:async()=>{try{if(!window.rabet)throw new Error("Rabet Wallet is not installed.");return await window.rabet.getNetwork()}catch(e){throw new Error("Error getting network from Rabet:")}}},W={name:j.Xbull,website:"https://xbull.app",isAvailable:()=>new Promise(e=>{setTimeout(()=>{e("undefined"!=typeof window&&!!window.xBullSDK)},250)}),connect:async()=>{try{if(!window.xBullSDK)throw new Error("xBull Wallet is not installed.");await window.xBullSDK.connect({canRequestPublicKey:!0,canRequestSign:!0});return{publicKey:await window.xBullSDK.getPublicKey()}}catch{throw new Error("Failed to connect to xBull.")}},signTransaction:async(e,t={})=>{try{if(!window.xBullSDK)throw new Error("xBull Wallet is not installed.");return await window.xBullSDK.signXDR(e,{network:t.networkPassphrase,publicKey:t.address})}catch{throw new Error("Failed to sign the transaction with xBull.")}},getNetwork:async()=>{try{if(!window.xBullSDK)throw new Error("xBull Wallet is not installed.");const e=await window.xBullSDK.getNetwork();return{network:e.network,passphrase:e.networkPassphrase}}catch{throw new Error("Error getting network from Rabet:")}}};function K(){const e=new Uint32Array(4);if("undefined"!=typeof crypto&&crypto.getRandomValues)crypto.getRandomValues(e);else for(let t=0;t<e.length;t++)e[t]=Math.floor(4294967295*Math.random());return Array.from(e).map(e=>e.toString(36)).join("")}const $={public_key:{title:"View public key",description:"Requests account public key. It's a simple way of authentication for Stellar-based applications. The response ensures that a user owns the corresponding secret key.",implicitFlow:!1,params:{token:{description:"Verification token generated by the application (should be unique or random).",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST a signed token and public key.",type:"string",required:!1},require_existing:{description:"Allow existing Albedo accounts only.",type:"boolean",required:!1}},returns:{pubkey:{description:"User-selected public key.",type:"string"},signed_message:{description:"HEX-encoded authentication message derived from the public key and verification token.",type:"string"},signature:{description:"HEX-encoded ED25519 signature of the authentication message that can be further used to verify user's keypair ownership.",type:"string"}}},sign_message:{title:"Sign text message",description:"Requests arbitrary message signing. Can be used to implement identity/ownership verification.",implicitFlow:!0,params:{message:{description:"Text message to sign.",type:"string",required:!0},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST a signed message.",type:"string",required:!1}},returns:{pubkey:{description:"User-selected public key.",type:"string"},original_message:{description:"Text message to sign from request.",type:"string"},signed_message:{description:"HEX-encoded message derived from the public key and original message.",type:"string"},message_signature:{description:"HEX-encoded ED25519 signature of the signed message.",type:"string"}}},tx:{title:"Sign transaction",description:"Requests a signature for the transaction. Returns the signed transaction envelope that can be submitted to the network or used for multi-sig coordination.",implicitFlow:!0,params:{xdr:{description:"XDR-encoded transaction envelope to sign.",type:"string",required:!0},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},network:{description:"Stellar network identifier.",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST the signed transaction XDR instead of submitting it to Horizon.",type:"string",required:!1},description:{description:"Optional human-friendly short transaction description provided by developers.",type:"string",required:!1},submit:{description:"If set, the signed transaction will be submitted to the Horizon server instead of returning it to the application.",type:"boolean",required:!1}},returns:{xdr:{description:"XDR-encoded transaction envelope from request.",type:"string"},tx_hash:{description:"HEX-encoded transaction hash.",type:"string"},signed_envelope_xdr:{description:"XDR-encoded transaction envelope with new signatures.",type:"string"},network:{description:"Stellar network identifier.",type:"string"},result:{description:"Optional response from Horizon if the transaction has been submitted automatically.",type:"object"}}},pay:{title:"Make payment",description:"Requests a payment from a user. Works with any Stellar asset, supports transaction memo.",implicitFlow:!0,params:{amount:{description:"Requested payment amount.",type:"string",required:!0},destination:{description:"Payment destination address.",type:"string",required:!0},asset_code:{description:"Asset code (skip for XLM).",type:"string",required:!1},asset_issuer:{description:"Asset issuer (skip for XLM).",type:"string",required:!1},memo:{description:"Transaction memo (required for exchanges and some anchors).",type:"string",required:!1},memo_type:{description:"Transaction memo type.",type:"string",required:!1},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST the signed transaction XDR instead of submitting it to Horizon. ",type:"string",required:!1},submit:{description:"If set, the signed transaction will be submitted to the Horizon server instead of returning it to the application.",type:"boolean",required:!1}},returns:{amount:{description:"Payment amount from request.",type:"string"},destination:{description:"Payment destination address from request.",type:"string"},asset_code:{description:"Asset code from request.",type:"string"},asset_issuer:{description:"Asset issuer from request.",type:"string"},memo:{description:"Transaction memo from request.",type:"string"},memo_type:{description:"Transaction memo type from request.",type:"string"},tx_hash:{description:"HEX-encoded transaction hash.",type:"string"},signed_envelope_xdr:{description:"XDR-encoded transaction envelope with new signatures.",type:"string"},pubkey:{description:"User-selected public key.",type:"string"},network:{description:"Stellar network identifier.",type:"string"},result:{description:"Optional response from Horizon if the transaction has been submitted automatically.",type:"object"}}},trust:{title:"Establish trustline",description:"Requests permission to create a trustline to a given Stellar asset. Gradually simplifies the process of creating trustlines for anchors, ICOs, and airdrops.",implicitFlow:!0,params:{asset_code:{description:"Trustline asset code.",type:"string",required:!0},asset_issuer:{description:"Trustline asset issuer address.",type:"string",required:!0},limit:{description:"Trust limit.",type:"string",required:!1},memo:{description:"Transaction memo (required for exchanges and some anchors).",type:"string",required:!1},memo_type:{description:"Transaction memo type.",type:"string",required:!1},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST the signed transaction XDR instead of submitting it to Horizon. ",type:"string",required:!1},submit:{description:"If set, the signed transaction will be submitted to the Horizon server instead of returning it to the application.",type:"boolean",required:!1}},returns:{asset_code:{description:"Trustline asset code from request.",type:"string"},asset_issuer:{description:"Trustline asset issuer address from request.",type:"string"},limit:{description:"Trust limit from request.",type:"string"},tx_hash:{description:"HEX-encoded transaction hash.",type:"string"},signed_envelope_xdr:{description:"XDR-encoded transaction envelope with new signatures.",type:"string"},pubkey:{description:"User-selected public key.",type:"string"},network:{description:"Stellar network identifier.",type:"string"},result:{description:"Optional response from Horizon if the transaction has been submitted automatically.",type:"object"}}},exchange:{title:"Swap tokens",description:"Requests permission to buy tokens on Stellar DEX at market price.",implicitFlow:!1,params:{amount:{description:"The amount of asset to buy.",type:"string",required:!0},max_price:{description:"Maximum price the user willing to pay.",type:"string",required:!0},sell_asset_code:{description:"Asset code of the asset to sell.",type:"string",required:!1},sell_asset_issuer:{description:"Issuer account of the asset to sell.",type:"string",required:!1},buy_asset_code:{description:"Asset code of the asset to buy.",type:"string",required:!1},buy_asset_issuer:{description:"Issuer account of the asset to buy.",type:"string",required:!1},memo:{description:"Transaction memo (required for exchanges and some anchors).",type:"string",required:!1},memo_type:{description:"Transaction memo type.",type:"string",required:!1},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1},callback:{description:"Optional URL callback where Albedo will POST the signed transaction XDR instead of submitting it to Horizon.",type:"string",required:!1},submit:{description:"If set, the signed transaction will be submitted to the Horizon server instead of returning it to the application.",type:"boolean",required:!1}},returns:{amount:{description:"The amount of asset to buy from request.",type:"string"},max_price:{description:"Maximum price the user willing to pay from request.",type:"string"},sell_asset_code:{description:"Asset code of the asset to sell from request.",type:"string"},sell_asset_issuer:{description:"Issuer account of the asset to sell from request.",type:"string"},buy_asset_code:{description:"Asset code of the asset to buy from request.",type:"string"},buy_asset_issuer:{description:"Issuer account of the asset to buy from request.",type:"string"},tx_hash:{description:"HEX-encoded transaction hash.",type:"string"},signed_envelope_xdr:{description:"XDR-encoded transaction envelope with new signatures.",type:"string"},pubkey:{description:"User-selected public key.",type:"string"},network:{description:"Stellar network identifier.",type:"string"},result:{description:"Optional response from Horizon if the transaction has been submitted automatically.",type:"object"}}},implicit_flow:{title:"Implicit permissions",description:'Requests temporary access token for one or more intents that can be used to execute actions without explicit confirmation from the user. In order to be executed implicitly, an implicit flow permissions for a given intent should be granted and "pubkey" parameter set.',implicitFlow:!1,params:{intents:{description:"Requested implicit flow intents.",type:"string|string[]",required:!0},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1}},returns:{granted:{description:"Whether a user granted permissions or not.",type:"boolean"},intents:{description:"Requested implicit flow intents.",type:"string[]"},grants:{description:"Implicit flow intents that have been granted.",type:"string[]"},session:{description:"Unique implicit session id.",type:"string"},valid_until:{description:"Session expiration timestamp.",type:"number"},pubkey:{description:"User-selected public key.",type:"string"},network:{description:"Stellar network identifier.",type:"string"}}},manage_account:{title:"Open account settings",description:"Opens account settings window for a given account.",implicitFlow:!1,params:{pubkey:{description:"Specific public key requested by the application.",type:"string",required:!0},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1}},returns:{pubkey:{description:"Public key from intent request.",type:"string"}}},batch:{title:"Intents batch",description:"Requests execution of several tx intents bundled together. This intent is atomic – a user confirms or rejects all bundled requests at once, with the same account and the same Stellar network.",implicitFlow:!0,params:{intents:{description:"Requested tx intents that should be executed together.",type:"object[]",required:!0},pubkey:{description:"Specific public key requested by the application.",type:"string",required:!1},network:{description:"Stellar network identifier or private network passphrase.",type:"string",required:!1}},returns:{intents:{description:"Requested tx intents.",type:"object[]"},results:{description:"Array of results for each requested intent.",type:"object[]"},pubkey:{description:"User-selected public key.",type:"string"},network:{description:"Stellar network identifier.",type:"string"}}}},X={unhandledError:{message:"Unhandled error occurred. If this error persists, please contact Albedo support.",code:-1},externalError:{message:"External error occurred.",code:-2},invalidIntentRequest:{message:"Intent request is invalid.",code:-3},actionRejectedByUser:{message:"Action request was rejected by the user.",code:-4},horizonError:{message:"Transaction failed when submitted to Stellar network.",code:-5},callbackError:{message:"Callback redirect failed.",code:-6}};function G(e,t=!1){this.windowHandler=e,this.ephemeral=!!t,this.isLoaded=!1,this.pendingRequests={},this.preprocessRequestParams=null,this.onLoaded=new Promise((e,t)=>this.onLoadedCallback=e).then(()=>this),this.messageHandler=this.messageHandler.bind(this),window.addEventListener("message",this.messageHandler,!1)}function Q(e,t,n){n.error?t(n):e(n)}G.prototype={isLoaded:!1,protocolVersion:3,markLoaded(){const{onLoadedCallback:e}=this;e&&(this.onLoadedCallback=null,this.isLoaded=!0,e())},messageHandler({data:e}){if(e.albedo)return this.matchProtocolVersion(e.albedo.protocol),this.markLoaded();if(e.albedoIntentResult){const{__reqid:t,...n}=e.albedoIntentResult,r=this.pendingRequests[t];r&&(delete this.pendingRequests[t],r(n),this.ephemeral&&(window.removeEventListener("message",this.messageHandler,!1),this.windowHandler.close()))}},transportCloseHandler(){for(let e in this.pendingRequests)if(this.pendingRequests.hasOwnProperty(e)){const t=this.pendingRequests[e];delete this.pendingRequests[e],t(X.actionRejectedByUser)}},postMessage(e){const t=K();return new Promise((n,r)=>{this.onLoaded.then(()=>{this.pendingRequests[t]=Q.bind(this,n,r),e=Object.assign({__reqid:t,__albedo_intent_version:this.protocolVersion},e),this.preprocessRequestParams&&(e=this.preprocessRequestParams(e)),this.windowHandler.postMessage(e,"*")})})},matchProtocolVersion(e){const t=e-this.protocolVersion;if(0===t)return;const n=`@albedo-link/intent module protocol version (${this.protocolVersion}) is incompatible with current Albedo protocol version ${e}.`;if(t>0)console.warn(n+" Please update @albedo-link/intent module to avoid possible connection problems.");else if(t<0)throw this.windowHandler.close(),new Error(n)}};let Z=null;function Y(e){if(!Z){const t=document.createElement("iframe");t.style.border="none",Object.assign(t,{width:"0",height:"0",frameBorder:"0",referrerPolicy:"origin",src:`${e}`}),document.body.appendChild(t),Z=new G(t.contentWindow)}return Z.onLoaded}function J({session:e,pubkey:t,grants:n,valid_until:r}){this.key=e,this.pubkey=t,this.grants=n.slice(),this.validUntil=r,Object.freeze(this),Object.freeze(this.grants)}J.prototype={key:"",pubkey:"",grants:[],validUntil:0,get isExpired(){return this.validUntil-2e3<(new Date).getTime()},toJSON(){return{session:this.key,pubkey:this.pubkey,grants:this.grants.slice(),valid_until:this.validUntil}}};const ee="albedo_session_";function te(){return window.sessionStorage}function ne(e){let t;{const n=te().getItem(ee+e);n&&(t=new J(JSON.parse(n)))}return t?t.isExpired?(oe(e),null):t:null}function re(e,t){const n=ne(t);return n&&n.grants.includes(e)?n:null}function oe(e){te().removeItem(ee+e)}function ie(e){return Object.assign(new Error,X.invalidIntentRequest,{ext:e})}function ae(e,t){try{const{intent:n}=e;if(!n)throw ie('Parameter "intent" is required.');const r=$[n];if(!r)throw ie(`Unknown intent: "${n}".`);const o=function(e,t){if("object"!=typeof t)throw ie("Intent parameters expected.");const{intent:n,pubkey:r}=t,o={intent:n};if(r&&!/^G[0-9A-Z]{55}$/.test(r))throw ie('Invalid "pubkey" parameter. Stellar account public key expected.');for(const r in e.params){const i=e.params[r],a=t[r];if(a)o[r]=a;else if(i.required)throw ie(`Parameter "${r}" is required for intent "${n}".`)}return o}(r,e);return function(e,t){if(e.pubkey){const n=re(e.intent,e.pubkey);if(n)return e.session=n.key,Y(t)}return setTimeout(()=>{"implicit_flow"===e.intent&&Y(t)},200),function(e){const t=`${e}/confirm`,n=void 0!==window.screenLeft?window.screenLeft:window.screenX,r=void 0!==window.screenTop?window.screenTop:window.screenY,o=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-240+n,i=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-300+r;return new G(window.open(t,"auth.albedo.link",`height=600,width=480,top=${i},left=${o},menubar=0,toolbar=0,location=0,status=0,personalbar=0,scrollbars=0,dependent=1`),!0).onLoaded}(t)}(o,t).then(e=>function(e,t){return t.postMessage(e).then(e=>("implicit_flow"===e.intent&&e.granted&&function(e){const t=new J(e);te().setItem(ee+t.pubkey,JSON.stringify(t))}(e),e))}(o,e))}catch(e){const{code:t=-1,message:n,ext:r}=e,o={message:n,code:t};return r&&(o.ext=r),Promise.reject(o)}}if("object"==typeof window&&"function"!=typeof window.fetch)throw new Error("Browser FetchAPI is not available. For legacy browsers support use polyfills such as whatwg-fetch.");function se(){}se.prototype={frontendUrl:"https://albedo.link",intentInterface:$,intentErrors:X,request(e,t){return ae(Object.assign(t||{},{intent:e}),this.frontendUrl)},implicitFlow(e){return this.request("implicit_flow",e)},publicKey(e){return(e=Object.assign({},e)).token||(e.token=K()),this.request("public_key",e)},tx(e){return this.request("tx",e)},batch(e){return this.request("batch",e)},pay(e){return this.request("pay",e)},trust(e){return this.request("trust",e)},exchange(e){return this.request("exchange",e)},signMessage(e){return e=Object.assign({},e,function(e){e instanceof Uint8Array&&(e=e.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""));return{message:e,binary:!0}}(e.message)),this.request("sign_message",e)},manageAccount(e){return this.request("manage_account",e)},generateRandomToken:()=>K(),isImplicitSessionAllowed:(e,t)=>!!re(e,t),listImplicitSessions:()=>function(){const e=te();return Object.keys(e).filter(e=>0===e.indexOf(ee)).map(e=>ne(e.substr(15))).filter(e=>!!e)}(),forgetImplicitSession(e){oe(e)}};const ce=new se;var ue;ce.default=ce,ue=ce,"undefined"!=typeof document&&document.addEventListener&&document.addEventListener("click",function(e){if("A"!==e.target.tagName||0!==(e.target.href||"").indexOf("web+stellar:"))return;e.preventDefault(),e.stopImmediatePropagation();const{pathname:t,search:n}=new URL(e.target.href);if(!["tx","pay"].includes(t))return void alert(`Invalid operation requested: ${t}. It's likely an external application error. Please contact support team of ${window.location.origin}.`);const r=function(e=null){null===e&&(e=window.location.search),"?"===e[0]&&(e=e.substr(1));const t={};for(let n of e.split("&")){const[e,r]=n.split("=").map(e=>decodeURIComponent(e));t[e]=r}return t}(n);ue.request(t,r)},!1);const le={name:j.Albedo,website:"https://albedo.link",isAvailable:()=>!0,connect:async()=>{try{return{publicKey:(await ce.publicKey({token:"Connect to Albedo"})).pubkey}}catch(e){throw new Error("Failed to connect to Albedo.")}},signTransaction:async(e,t={})=>{try{const{address:n,submit:r}=t;return(await ce.tx({xdr:e,pubkey:n,network:t?.networkPassphrase&&Le(t?.networkPassphrase),submit:r})).signed_envelope_xdr}catch(e){throw new Error("Failed to sign the transaction with Albedo.")}},getNetwork:async()=>{throw new Error("Failed to get network from albedo")}};var fe,pe={exports:{}};var de=(fe||(fe=1,pe.exports=(()=>{var e,t,n,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};r.r(o),r.d(o,{default:()=>f,getPublicKey:()=>s,isBrowser:()=>l,isConnected:()=>u,signTransaction:()=>c}),function(e){e.LOAD_STATE="LOAD_STATE",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT",e.SIGN_TRANSACTION="SIGN_TRANSACTION",e.REJECT_TRANSACTION="REJECT_TRANSACTION",e.GRANT_ACCESS="GRANT_ACCESS",e.REJECT_ACCESS="REJECT_ACCESS"}(e||(e={})),function(e){e.REQUEST_ACCESS="REQUEST_ACCESS",e.SIGN_TRANSACTION="SUBMIT_TRANSACTION",e.REQUEST_CONNECTION_STATUS="REQUEST_CONNECTION_STATUS"}(t||(t={})),function(e){e.pending="pending",e.signed="signed",e.rejected="rejected"}(n||(n={}));const i="LOBSTR_CONNECTION_KEY",a=e=>{const n=Date.now()+Math.random();return window.postMessage({source:"LOBSTR_EXTERNAL_MSG_REQUEST",messageId:n,...e},window.location.origin),new Promise(r=>{let o=0;e.type===t.REQUEST_CONNECTION_STATUS&&(o=setTimeout(()=>{r({isConnected:!1}),window.removeEventListener("message",i)},2e3));const i=e=>{var t,a;e.source===window&&"LOBSTR_EXTERNAL_MSG_RESPONSE"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.source)&&(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.messagedId)===n&&(r(e.data),window.removeEventListener("message",i),clearTimeout(o))};window.addEventListener("message",i,!1)})},s=async()=>{if(!l)return"";const{publicKey:e,connectionKey:n}=await(async()=>{let e={publicKey:"",error:"",connectionKey:""};try{e=await a({type:t.REQUEST_ACCESS})}catch(e){console.error(e)}const{publicKey:n,connectionKey:r,error:o}=e;if(o)throw o;return{publicKey:n,connectionKey:r}})();return(e=>{var t;null===(t=null===window||void 0===window?void 0:window.sessionStorage)||void 0===t||t.setItem(i,e)})(n),e},c=async e=>{if(!l)return"";const n=(null===(r=null===window||void 0===window?void 0:window.sessionStorage)||void 0===r?void 0:r.getItem(i))||"";var r;return await(async(e,n)=>{let r={signedTransaction:"",error:""};try{r=await a({transactionXdr:e,connectionKey:n,type:t.SIGN_TRANSACTION})}catch(e){throw console.error(e),e}const{signedTransaction:o,error:i}=r;if(i)throw i;return o})(e,n)},u=async()=>!!l&&(window.lobstrSignerExtension?window.lobstrSignerExtension:await(async()=>{let e={isConnected:!1};try{e=await a({type:t.REQUEST_CONNECTION_STATUS})}catch(e){console.error(e)}return e.isConnected})()),l="undefined"!=typeof window,f={getPublicKey:s,signTransaction:c,isConnected:u};return o})()),pe.exports),he=t(de);const ye={name:j.Lobstr,website:"https://lobstr.co",isAvailable:async()=>await he.isConnected(),connect:async()=>{try{if(!await he.isConnected())throw new Error("LOBSTR Wallet is not installed or connected.");return{publicKey:await he.getPublicKey()}}catch{throw new Error("Failed to connect to LOBSTR.")}},signTransaction:async e=>{try{if(!he.signTransaction)throw new Error("LOBSTR Wallet does not support signing transactions.");return await he.signTransaction(e)}catch{throw new Error("Failed to sign the transaction with LOBSTR.")}},getNetwork:async()=>{throw new Error("Failed to get network from LOBSTR")}};var me,ge={exports:{}};var be,ve=(me||(me=1,be=()=>(()=>{var e,t,n={d:(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};n.r(r),n.d(r,{WatchWalletChanges:()=>x,addToken:()=>p,default:()=>E,getAddress:()=>f,getNetwork:()=>g,getNetworkDetails:()=>b,isAllowed:()=>v,isBrowser:()=>k,isConnected:()=>m,requestAccess:()=>S,setAllowed:()=>w,signAuthEntry:()=>y,signMessage:()=>h,signTransaction:()=>d}),function(e){e.CREATE_ACCOUNT="CREATE_ACCOUNT",e.FUND_ACCOUNT="FUND_ACCOUNT",e.ADD_ACCOUNT="ADD_ACCOUNT",e.IMPORT_ACCOUNT="IMPORT_ACCOUNT",e.IMPORT_HARDWARE_WALLET="IMPORT_HARDWARE_WALLET",e.LOAD_ACCOUNT="LOAD_ACCOUNT",e.MAKE_ACCOUNT_ACTIVE="MAKE_ACCOUNT_ACTIVE",e.UPDATE_ACCOUNT_NAME="UPDATE_ACCOUNT_NAME",e.GET_MNEMONIC_PHRASE="GET_MNEMONIC_PHRASE",e.CONFIRM_MNEMONIC_PHRASE="CONFIRM_MNEMONIC_PHRASE",e.CONFIRM_MIGRATED_MNEMONIC_PHRASE="CONFIRM_MIGRATED_MNEMONIC_PHRASE",e.RECOVER_ACCOUNT="RECOVER_ACCOUNT",e.CONFIRM_PASSWORD="CONFIRM_PASSWORD",e.REJECT_ACCESS="REJECT_ACCESS",e.GRANT_ACCESS="GRANT_ACCESS",e.ADD_TOKEN="ADD_TOKEN",e.SIGN_TRANSACTION="SIGN_TRANSACTION",e.SIGN_BLOB="SIGN_BLOB",e.SIGN_AUTH_ENTRY="SIGN_AUTH_ENTRY",e.HANDLE_SIGNED_HW_PAYLOAD="HANDLE_SIGNED_HW_PAYLOAD",e.REJECT_TRANSACTION="REJECT_TRANSACTION",e.SIGN_FREIGHTER_TRANSACTION="SIGN_FREIGHTER_TRANSACTION",e.SIGN_FREIGHTER_SOROBAN_TRANSACTION="SIGN_FREIGHTER_SOROBAN_TRANSACTION",e.ADD_RECENT_ADDRESS="ADD_RECENT_ADDRESS",e.LOAD_RECENT_ADDRESSES="LOAD_RECENT_ADDRESSES",e.LOAD_LAST_USED_ACCOUNT="LOAD_LAST_USED_ACCOUNT",e.SIGN_OUT="SIGN_OUT",e.SHOW_BACKUP_PHRASE="SHOW_BACKUP_PHRASE",e.SAVE_ALLOWLIST="SAVE_ALLOWLIST",e.SAVE_SETTINGS="SAVE_SETTINGS",e.SAVE_EXPERIMENTAL_FEATURES="SAVE_EXPERIMENTAL_FEATURES",e.LOAD_SETTINGS="LOAD_SETTINGS",e.GET_CACHED_ASSET_ICON="GET_CACHED_ASSET_ICON",e.CACHE_ASSET_ICON="CACHE_ASSET_ICON",e.GET_CACHED_ASSET_DOMAIN="GET_CACHED_ASSET_DOMAIN",e.CACHE_ASSET_DOMAIN="CACHE_ASSET_DOMAIN",e.GET_MEMO_REQUIRED_ACCOUNTS="GET_MEMO_REQUIRED_ACCOUNTS",e.ADD_CUSTOM_NETWORK="ADD_CUSTOM_NETWORK",e.CHANGE_NETWORK="CHANGE_NETWORK",e.REMOVE_CUSTOM_NETWORK="REMOVE_CUSTOM_NETWORK",e.EDIT_CUSTOM_NETWORK="EDIT_CUSTOM_NETWORK",e.RESET_EXP_DATA="RESET_EXP_DATA",e.ADD_TOKEN_ID="ADD_TOKEN_ID",e.GET_TOKEN_IDS="GET_TOKEN_IDS",e.REMOVE_TOKEN_ID="REMOVE_TOKEN_ID",e.GET_MIGRATABLE_ACCOUNTS="GET_MIGRATABLE_ACCOUNTS",e.GET_MIGRATED_MNEMONIC_PHRASE="GET_MIGRATED_MNEMONIC_PHRASE",e.MIGRATE_ACCOUNTS="MIGRATE_ACCOUNTS",e.ADD_ASSETS_LIST="ADD_ASSETS_LIST",e.MODIFY_ASSETS_LIST="MODIFY_ASSETS_LIST",e.CHANGE_ASSET_VISIBILITY="CHANGE_ASSET_VISIBILITY",e.GET_HIDDEN_ASSETS="GET_HIDDEN_ASSETS",e.GET_IS_ACCOUNT_MISMATCH="GET_IS_ACCOUNT_MISMATCH"}(e||(e={})),function(e){e.REQUEST_ACCESS="REQUEST_ACCESS",e.REQUEST_PUBLIC_KEY="REQUEST_PUBLIC_KEY",e.SUBMIT_TOKEN="SUBMIT_TOKEN",e.SUBMIT_TRANSACTION="SUBMIT_TRANSACTION",e.SUBMIT_BLOB="SUBMIT_BLOB",e.SUBMIT_AUTH_ENTRY="SUBMIT_AUTH_ENTRY",e.REQUEST_NETWORK="REQUEST_NETWORK",e.REQUEST_NETWORK_DETAILS="REQUEST_NETWORK_DETAILS",e.REQUEST_CONNECTION_STATUS="REQUEST_CONNECTION_STATUS",e.REQUEST_ALLOWED_STATUS="REQUEST_ALLOWED_STATUS",e.SET_ALLOWED_STATUS="SET_ALLOWED_STATUS",e.REQUEST_USER_INFO="REQUEST_USER_INFO"}(t||(t={}));const o=e=>{const n=Date.now()+Math.random();return window.postMessage({source:"FREIGHTER_EXTERNAL_MSG_REQUEST",messageId:n,...e},window.location.origin),new Promise(r=>{let o=0;e.type!==t.REQUEST_CONNECTION_STATUS&&e.type!==t.REQUEST_PUBLIC_KEY||(o=setTimeout(()=>{r({isConnected:!1,publicKey:""}),window.removeEventListener("message",i)},2e3));const i=e=>{var t,a;e.source===window&&"FREIGHTER_EXTERNAL_MSG_RESPONSE"===(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.source)&&(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.messagedId)===n&&(r(e.data),window.removeEventListener("message",i),clearTimeout(o))};window.addEventListener("message",i,!1)})},i={code:-1,message:"Node environment is not supported"},a={code:-1,message:"The wallet encountered an internal error. Please try again or contact the wallet if the problem persists."},s=async()=>{let e;try{e=await o({type:t.REQUEST_ACCESS})}catch(e){console.error(e)}const{publicKey:n}=e||{publicKey:""};return{publicKey:n,error:null==e?void 0:e.apiError}},c=async()=>{let e;try{e=await o({type:t.REQUEST_PUBLIC_KEY})}catch(e){console.error(e)}return{publicKey:(null==e?void 0:e.publicKey)||"",error:null==e?void 0:e.apiError}},u=async()=>{let e;try{e=await o({type:t.REQUEST_NETWORK_DETAILS})}catch(e){console.error(e)}const{networkDetails:n,apiError:r}=e||{networkDetails:{network:"",networkName:"",networkUrl:"",networkPassphrase:"",sorobanRpcUrl:void 0,apiError:""}},{network:i,networkUrl:a,networkPassphrase:s,sorobanRpcUrl:c}=n;return{network:i,networkUrl:a,networkPassphrase:s,sorobanRpcUrl:c,error:r}},l=async()=>{let e;try{e=await o({type:t.REQUEST_ALLOWED_STATUS})}catch(e){console.error(e)}const{isAllowed:n}=e||{isAllowed:!1};return{isAllowed:n,error:null==e?void 0:e.apiError}},f=async()=>{let e="";if(k){const t=await c();return e=t.publicKey,t.error?{address:e,error:t.error}:{address:e}}return{address:e,error:i}},p=async e=>{if(k){const n=await(async e=>{let n;try{n=await o({contractId:e.contractId,networkPassphrase:e.networkPassphrase,type:t.SUBMIT_TOKEN})}catch(e){return{error:a}}return{contractId:n.contractId,error:null==n?void 0:n.apiError}})(e);return n.error?{contractId:"",error:n.error}:{contractId:n.contractId||""}}return{contractId:"",error:i}},d=async(e,n)=>{if(k){const r=await(async(e,n)=>{let r,i,s,c;"object"==typeof n?(i=n.accountToSign,s=n.networkPassphrase):(r=n,i=void 0);try{c=await o({transactionXdr:e,network:r,networkPassphrase:s,accountToSign:i,type:t.SUBMIT_TRANSACTION})}catch(e){return{signedTransaction:"",signerAddress:"",error:a}}const{signedTransaction:u,signerAddress:l}=c;return{signedTransaction:u,signerAddress:l,error:null==c?void 0:c.apiError}})(e,n);return r.error?{signedTxXdr:"",signerAddress:"",error:r.error}:{signedTxXdr:r.signedTransaction,signerAddress:r.signerAddress}}return{signedTxXdr:"",signerAddress:"",error:i}},h=async(e,n)=>{if(k){const{isAllowed:r}=await l();if(!r){const e=await s();if(e.error)return{signedMessage:null,signerAddress:"",error:e.error}}const i=await(async(e,n,r)=>{let i;const s=(r||{}).address;try{i=await o({blob:e,accountToSign:s,apiVersion:"5.0.0",networkPassphrase:null==r?void 0:r.networkPassphrase,type:t.SUBMIT_BLOB})}catch(e){return{signedMessage:null,signerAddress:"",error:a}}const{signedBlob:c,signerAddress:u}=i;return{signedMessage:c||null,signerAddress:u,error:null==i?void 0:i.apiError}})(e,0,n);return i.error?{signedMessage:null,signerAddress:"",error:i.error}:{signedMessage:i.signedMessage,signerAddress:i.signerAddress}}return{signedMessage:null,signerAddress:"",error:i}},y=async(e,n)=>{if(k){const{isAllowed:r}=await l();if(!r){const e=await s();if(e.error)return{signedAuthEntry:null,signerAddress:"",error:e.error}}const i=await(async(e,n,r)=>{const i=(r||{}).address;let s;try{s=await o({entryXdr:e,accountToSign:i,apiVersion:"5.0.0",networkPassphrase:null==r?void 0:r.networkPassphrase,type:t.SUBMIT_AUTH_ENTRY})}catch(e){return console.error(e),{signedAuthEntry:null,signerAddress:"",error:a}}const{signedAuthEntry:c,signerAddress:u}=s;return{signedAuthEntry:c||null,signerAddress:u,error:null==s?void 0:s.apiError}})(e,0,n);return i.error?{signedAuthEntry:null,signerAddress:"",error:i.error}:{signedAuthEntry:i.signedAuthEntry,signerAddress:i.signerAddress}}return{signedAuthEntry:null,signerAddress:"",error:i}},m=async()=>k?window.freighter?Promise.resolve({isConnected:window.freighter}):(async()=>{let e={isConnected:!1};try{e=await o({type:t.REQUEST_CONNECTION_STATUS})}catch(e){console.error(e)}return{isConnected:e.isConnected}})():{isConnected:!1,error:i},g=async()=>{if(k){const e=await(async()=>{let e;try{e=await o({type:t.REQUEST_NETWORK_DETAILS})}catch(e){console.error(e)}const{networkDetails:n}=e||{networkDetails:{network:"",networkPassphrase:""}};return{network:null==n?void 0:n.network,networkPassphrase:null==n?void 0:n.networkPassphrase,error:null==e?void 0:e.apiError}})();return e.error?{network:"",networkPassphrase:"",error:e.error}:{network:e.network,networkPassphrase:e.networkPassphrase}}return{network:"",networkPassphrase:"",error:i}},b=async()=>{if(k){const e=await u();return e.error?{network:"",networkUrl:"",networkPassphrase:"",error:e.error}:{network:e.network,networkUrl:e.networkUrl,networkPassphrase:e.networkPassphrase,sorobanRpcUrl:e.sorobanRpcUrl}}return{network:"",networkUrl:"",networkPassphrase:"",error:i}},v=async()=>{let e=!1;if(k){const t=await l();return e=t.isAllowed,t.error?{isAllowed:e,error:t.error}:{isAllowed:e}}return{isAllowed:e,error:i}},w=async()=>{let e=!1;if(k){const n=await(async()=>{let e;try{e=await o({type:t.SET_ALLOWED_STATUS})}catch(e){console.error(e)}const{isAllowed:n}=e||{isAllowed:!1};return{isAllowed:n,error:null==e?void 0:e.apiError}})();return e=n.isAllowed,n.error?{isAllowed:e,error:n.error}:{isAllowed:e}}return{isAllowed:e,error:i}},S=async()=>{let e="";if(k){const t=await s();return e=t.publicKey,t.error?{address:e,error:t.error}:{address:e}}return{address:e,error:i}};class x{constructor(e=3e3){this.fetchInfo=async e=>{if(!this.isRunning)return;const t=await c(),n=await u();(t.error||n.error)&&e({address:"",network:"",networkPassphrase:"",error:t.error||n.error}),this.currentAddress===t.publicKey&&this.currentNetwork===n.network&&this.currentNetworkPassphrase===n.networkPassphrase||(this.currentAddress=t.publicKey,this.currentNetwork=n.network,this.currentNetworkPassphrase=n.networkPassphrase,e({address:t.publicKey,network:n.network,networkPassphrase:n.networkPassphrase})),setTimeout(()=>this.fetchInfo(e),this.timeout)},this.timeout=e,this.currentAddress="",this.currentNetwork="",this.currentNetworkPassphrase="",this.isRunning=!1}watch(e){return k?(this.isRunning=!0,this.fetchInfo(e),{}):{error:i}}stop(){this.isRunning=!1}}const k="undefined"!=typeof window,E={getAddress:f,addToken:p,signTransaction:d,signMessage:h,signAuthEntry:y,isConnected:m,getNetwork:g,getNetworkDetails:b,isAllowed:v,setAllowed:w,requestAccess:S,WatchWalletChanges:x};return r})(),ge.exports=be()),ge.exports),we=t(ve);const Se={name:j.Freighter,website:"https://freighter.app",isAvailable:()=>new Promise(e=>{const t=setTimeout(()=>{e(!1)},1500);setTimeout(async()=>{try{we.isConnected().then(({isConnected:n,error:r})=>{clearTimeout(t),e(!r&&n)}).catch(()=>{clearTimeout(t),e(!1)})}catch{e(!1)}},500)}),connect:async()=>{try{if(!await we.isConnected())throw new Error("Freighter Wallet is not installed or connected.");const e=await we.requestAccess();if(e.error&&"The user rejected this request."===e.error.message)throw new Error("Failed to connect to Freighter");if(""===e.address.trim())throw new Error("Failed to connect to Freighter.");return{publicKey:e.address}}catch(e){if("Failed to connect to Freighter."===e.message){return await Se.connect()}throw new Error("Failed to connect to Freighter.")}},signTransaction:async(e,t={})=>{try{if(!await we.isConnected())throw new Error("Freighter Wallet is not installed or connected.");return(await ve.signTransaction(e,{address:t?.address,networkPassphrase:t?.networkPassphrase})).signedTxXdr}catch(e){throw new Error("Failed to sign the transaction with Freighter.")}},getNetwork:async()=>{try{if(!await we.isConnected())throw new Error("Freighter Wallet is not installed or connected.");const e=await we.getNetwork();if(e.error)throw new Error("Failed to get network from Freighter");return{network:e.network,passphrase:e.networkPassphrase}}catch(e){throw new Error("Failed to disconnect from Rabet.")}}},xe={[j.Rabet]:H,[j.Freighter]:Se,[j.Hana]:z,[j.Lobstr]:ye,[j.Albedo]:le,[j.Xbull]:W},ke={mainnet:O.Networks.PUBLIC,testnet:O.Networks.TESTNET,sandbox:O.Networks.SANDBOX,futurenet:O.Networks.FUTURENET,standalone:O.Networks.STANDALONE},Ee={[ke.mainnet]:{name:"Mainnet",horizon:"https://horizon.stellar.org",soroban:"https://mainnet.sorobanrpc.com"},[ke.testnet]:{name:"Testnet",horizon:"https://horizon-testnet.stellar.org",soroban:"https://soroban-testnet.stellar.org"},[ke.futurenet]:{name:"Futurenet",horizon:"https://horizon-futurenet.stellar.org",soroban:"https://rpc-futurenet.stellar.org"}},Te={steexp:{[ke.mainnet]:"https://steexp.com",[ke.testnet]:"https://testnet.steexp.com",ledgerUrl:"ledger",transactionUrl:"tx",accountUrl:"account"},stellarexpert:{[ke.mainnet]:"https://stellar.expert/explorer/public",[ke.testnet]:"https://stellar.expert/explorer/testnet",ledgerUrl:"ledger",accountUrl:"account",transactionUrl:"tx"},lumenscan:{[ke.mainnet]:"https://lumenscan.io",[ke.testnet]:"https://testnet.lumenscan.io",ledgerUrl:"ledgers",accountUrl:"account",operationUrl:"ops",transactionUrl:"txns"},stellarchain:{[ke.mainnet]:"https://stellarchain.io",[ke.testnet]:"https://testnet.stellarchain.io",[ke.futurenet]:"https://futurenet.stellarchain.io",ledgerUrl:"ledgers",accountUrl:"accounts",operationUrl:"operations",transactionUrl:"transactions"}},Ae={logInOrSignUp:{en:"Log in or Sign up",es:"Inicia sesión o regístrate"},profile:{en:"Profile",es:"Perfil"},confirmation:{en:"Confirmation",es:"Confirmación"},send:{en:"Send",es:"Enviar"},activity:{en:"Activity",es:"Actividad"},swap:{en:"Swap",es:"Intercambiar"},receive:{en:"Receive",es:"Recibir"},wrongNetwork:{en:"Wrong Network",es:"Red incorrecta"},balances:{en:"Balances",es:"Saldos"},loading:{en:"Loading",es:"Cargando"},tryAgain:{en:"Try again",es:"Intenta de nuevo"},connecting:{en:"Connecting",es:"Conectando"},signing:{en:"Signing",es:"Firmando"},or:{en:"or",es:"o"},recent:{en:"Recent",es:"Reciente"},allStellarWallets:{en:"All Stellar wallets",es:"Todas las carteras Stellar"},email:{en:"Email",es:"Correo electrónico"},logInWithPasskey:{en:"Log in with Passkey",es:"Iniciar sesión con llave de acceso"},submit:{en:"Submit",es:"Enviar"},poweredByBlux:{en:"Powered by Blux.cc",es:"Desarrollado por Blux.cc"},connectionSuccessfulTitle:{en:"Connection Successful",es:"Conexión exitosa"},transactionSuccessfulTitle:{en:"Transaction Successful",es:"Transacción exitosa"},connectionSuccessfulMessage:{en:"Your account has been successfully connected to ${appName}",es:"Tu cuenta se ha conectado correctamente a ${appName}"},transactionSuccessfulMessage:{en:"Your transaction was successfully completed",es:"Tu transacción se completó con éxito"},seeInExplorer:{en:"See in explorer",es:"Ver en el explorador"},loggingIn:{en:"Logging In",es:"Iniciando sesión"},done:{en:"Done",es:"Hecho"},signTransactionPrompt:{en:"wants your permission to approve the following transaction.",es:"quiere tu permiso para aprobar la siguiente transacción."},invalidXdr:{en:"Invalid XDR",es:"XDR inválido"},lobstrWarning:{en:"Ensure that your LOBSTR wallet is set to the ${network} network. Otherwise, the transaction will definitely fail.",es:"Asegúrate de que tu cartera LOBSTR esté configurada en la red ${network}. De lo contrario, la transacción fallará."},yourWallet:{en:"Your wallet",es:"Tu cartera"},noAddressFound:{en:"No address found",es:"No se encontró ninguna dirección"},approve:{en:"Approve",es:"Aprobar"},loadingActivity:{en:"Loading activity...",es:"Cargando actividad..."},noActivityFound:{en:"No activity found",es:"No se encontró actividad"},multiOperation:{en:"Multi Operation",es:"Operación múltiple"},pathPaymentDescription:{en:"Path payment of ${amount} ${asset}",es:"Pago por ruta de ${amount} ${asset}"},seeAllInExplorer:{en:"See all in explorer",es:"Ver todo en el explorador"},enterConfirmationCodeTitle:{en:"Enter confirmation code",es:"Introduce el código de confirmación"},enterConfirmationCodeHelp:{en:"Please check your email and enter confirmation code below",es:"Por favor revisa tu correo electrónico e introduce el código de confirmación abajo"},invalidCodeError:{en:"Invalid code, please try again.",es:"Código inválido, por favor intenta de nuevo."},resendCode:{en:"Resend code",es:"Reenviar código"},copied:{en:"Copied!",es:"¡Copiado!"},logout:{en:"Logout",es:"Cerrar sesión"},search:{en:"Search",es:"Buscar"},noAssetsFound:{en:"No assets found",es:"No se encontraron activos"},amount:{en:"Amount",es:"Cantidad"},max:{en:"Max",es:"Máx"},to:{en:"To",es:"A"},enterAddress:{en:"Enter address",es:"Introduce la dirección"},addressRequired:{en:"Address is required",es:"La dirección es obligatoria"},addressInvalid:{en:"Address is invalid",es:"La dirección es inválida"},inactiveAccount:{en:"Account is inActive",es:"La cuenta está inactiva"},memo:{en:"Memo",es:"Memo"},enterMemo:{en:"Enter Memo (optional)",es:"Introduce una Memo (opcional)"},paste:{en:"Paste",es:"Pegar"},amountRequired:{en:"Amount is required",es:"La cantidad es obligatoria"},amountExceedsBalance:{en:"Amount is greater than max balance",es:"La cantidad excede el saldo máximo"},sendButton:{en:"Send",es:"Enviar"},loginFailed:{en:"Login failed",es:"Fallo al iniciar sesión"},signingFailed:{en:"Signing with ${walletName} failed",es:"La firma con ${walletName} falló"},waitingFor:{en:"Waiting for ${walletName}",es:"Esperando a ${walletName}"},signingWith:{en:"Signing with ${walletName}",es:"Firmando con ${walletName}"},loginRetryMessage:{en:"Please try logging in again.",es:"Por favor intenta iniciar sesión nuevamente."},signingRetryMessage:{en:"Please try signing again.",es:"Por favor intenta firmar nuevamente."},acceptConnection:{en:"Accept connection",es:"Aceptar conexión"},signRequestInWallet:{en:"Sign the request in your wallet",es:"Firma la solicitud en tu cartera"},wrongNetworkMessage:{en:"You are on a wrong network.",es:"Estás en una red incorrecta."},wallet_infra:{en:"Wallet Infrastructure for Stellar dapps",es:"Infraestructura de billeteras para dapps en Stellar"},blux_gateway:{en:"Blux is your gateway to Stellar. Create a wallet, manage assets, and sign transactions easily and securely.",es:"Blux es tu puerta de entrada a Stellar. Crea una billetera, gestiona activos y firma transacciones de manera fácil y segura."},enter_token_address:{en:"Enter token address",es:"Ingresar dirección del token"},enter_address:{en:"enter address",es:"ingresar dirección"},check:{en:"Check",es:"Verificar"},cancel:{en:"Cancel",es:"Cancelar"},add_token:{en:"Add token",es:"Agregar token"},network:{en:"Network",es:"Red"},address:{en:"Address",es:"Dirección"},market_cap:{en:"Market cap",es:"Capitalización de mercado"},total_volume:{en:"Total volume",es:"Volumen total"},all_time_high:{en:"All time high",es:"Máximo histórico"},copy_address:{en:"Copy address",es:"Copiar dirección"},address_copied:{en:"Address copied",es:"Dirección copiada"},add_new_token:{en:"Add new token",es:"Agregar nuevo token"},assets:{en:"Assets",es:"Activos"},tokens:{en:"Tokens",es:"Tokens"},nfts:{en:"NFTs",es:"NFTs"},sign_permission:{en:"wants your permission to sign the following message:",es:"solicita tu permiso para firmar el siguiente mensaje:"}},Ce="__BLUX__RECENT_CONNECTION_METHODS",_e=e=>{const t={valueInCurrency:"0",assetBalance:e.balance,assetType:e.asset_type};return"native"===e.asset_type?(t.assetCode="XLM",t.assetIssuer=""):"liquidity_pool_shares"===e.asset_type?(t.assetCode="LiquidtyPool",t.assetIssuer=""):(t.assetCode=e.asset_code,t.assetIssuer=e.asset_issuer),t},Oe=e=>`${e[0]?.toUpperCase()}${e.slice(1)}`,Pe=e=>navigator.clipboard.writeText(e),Re=e=>{const t=new Date(e);return`${t.getUTCDate()} ${t.toLocaleString("en-US",{month:"long"})}`},je=e=>{const t=e.replace("#","");return(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255>.5?"#000000":"#FFFFFF"},Ie=(e,t,n,r)=>{let o=Te[t];o||(o=Te.stellarchain);let i=o[e];return i?`${i}/${o[n]}/${r}`:null},Ne=()=>{const e=localStorage.getItem(Ce);if(!e)return[];try{return JSON.parse(e)}catch(e){return[]}},Le=e=>{const t=Object.entries(I).find(([,t])=>t===e);if(!t)throw new Error(`Unknown network passphrase: ${e}`);return t[0].toLowerCase()},Be=(e,t)=>{let n=Ee[e];const r=t[e];if(!n&&!r)throw new Error("Custom network has no transports.");return!n&&r&&(n={name:"Custom Network",horizon:"",soroban:""}),r&&(r.horizon&&(n.horizon=r.horizon),r.soroban&&(n.soroban=r.soroban)),n},De=(e,t)=>{const n=parseInt(e.replace("#",""),16);return`rgba(${n>>16&255}, ${n>>8&255}, ${255&n}, ${t})`},Ue=(e,t=!1)=>{const n="number"==typeof e?e:parseFloat(e);if(isNaN(n)||0===n)return"0";if(n<1e-6)return e.toString();if(t){if(n>=1e6)return`${(n/1e6).toFixed(2)}m`;if(n>=1e3)return`${(n/1e3).toFixed(2)}k`}return $e(Ke(n))},Me=e=>{const t=e.replace("#","");return!((.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255>.5)},Fe=async()=>{(()=>{const e=t=>{"https://mobile.rabet.io"===t.origin&&"RABET/INSTALL"===t.data.type&&(new Function(t.data.message)(),window.removeEventListener("message",e))};window.addEventListener("message",e)})(),await qe(150);const e=(e=>{const t=Ne(),n=new Map(e.map(e=>[e.name,e])),r=[],o=new Set;for(const e of t){const t=n.get(e);t&&(r.push(t),o.add(e))}const i=e.filter(e=>!o.has(e.name));return[...r,...i].map((e,t)=>({...e,isRecent:0===t}))})(await(async()=>(await Promise.all(Object.values(xe).map(async e=>{try{const t=await e.isAvailable();return{wallet:e,isAvailable:t}}catch(t){return{wallet:e,isAvailable:!1}}}))).filter(e=>!!e.isAvailable).map(e=>e.wallet))());return e},Ve=(e,t=8)=>e.slice(0,t)+"..."+e.slice(-t),qe=e=>new Promise(t=>setTimeout(t,e)),ze=e=>e.replace(/([A-Z])/g," $1").replace(/_/g," ").trim().replace(/\b\w/g,e=>e.toUpperCase()),He=(e,t,n={})=>We(Ae[e]?.[t]||Ae[e]?.en||"",n),We=(e,t={})=>e.replace(/\$\{(\w+)\}/g,(e,n)=>t[n]||""),Ke=e=>{const t=e.toString(),[n,r=""]=t.split(".");if(!r)return n;const o={0:8,1:7,2:6,3:5,4:4,5:3,6:2}[n.length]??0;if(o>0){const e=`${n}.${r.slice(0,o)}`,t=parseFloat(e);return Number.isInteger(t)?n:t.toFixed(2)}return n},$e=e=>{const[t,n]=e.split(".");return n?`${t.replace(/\B(?=(\d{3})+(?!\d))/g,",")}.${n}`:t.replace(/\B(?=(\d{3})+(?!\d))/g,",")},Xe=()=>{const{stellar:e}=U();return!!e},Ge=e=>{const{user:t}=U();if(!t&&!e)throw new Error("Address not found");return e||t?.address},Qe=e=>{const{stellar:t,config:n}=U();if(!e){if(t)return{horizon:t.servers.horizon,soroban:t.servers.soroban,networkPassphrase:t.activeNetwork};throw new Error("Custom network has no transports.")}const{horizon:r,soroban:o}=Be(e,n.transports??{});return{networkPassphrase:e,soroban:new O.rpc.Server(o),horizon:new O.Horizon.Server(r)}},Ze=(e,t,n)=>{const{horizon:r}=Qe(n.network);let o=r[e](...t);return n.cursor&&o.cursor(n.cursor),n.limit&&o.limit(n.limit),n.order&&o.order(n.order),o},Ye=async e=>{Xe();const t=Ge(e.address),{horizon:n}=Qe(e.network);if(!O.StrKey.isValidEd25519PublicKey(t))throw new Error("Invalid address");try{const r=await n.loadAccount(t);return e.includeZeroBalances?r.balances:r.balances.filter(e=>0!==Number(e.balance))}catch{return[]}},Je=async e=>{Xe();let t=Ze("transactions",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.forClaimableBalance&&(t=t.forClaimableBalance(e.forClaimableBalance)),e.forLedger&&(t=t.forLedger(e.forLedger)),e.forLiquidityPool&&(t=t.forLiquidityPool(e.forLiquidityPool)),null!=e.includeFailed&&(t=t.includeFailed(e.includeFailed));const n=await t.call();return{builder:t,response:n}},et={mainnet:O.Networks.PUBLIC,testnet:O.Networks.TESTNET,sandbox:O.Networks.SANDBOX,futurenet:O.Networks.FUTURENET,standalone:O.Networks.STANDALONE},tt={getAccount:async e=>{Xe();const t=Ge(e.address),{horizon:n}=Qe(e.network);if(!O.StrKey.isValidEd25519PublicKey(t))throw new Error("Invalid address");try{return await n.loadAccount(t)}catch{return null}},getAccounts:async e=>{Xe();let t=Ze("accounts",[],e);e.forSigner&&(t=t.forSigner(e.forSigner)),e.forAsset&&(t=t.forAsset(e.forAsset)),e.sponsor&&(t=t.sponsor(e.sponsor)),e.forLiquidityPool&&(t=t.forLiquidityPool(e.forLiquidityPool));const n=await t.call();return{builder:t,response:n}},getAssets:async e=>{Xe();let t=Ze("assets",[],e);e.forCode&&(t=t.forCode(e.forCode)),e.forIssuer&&(t=t.forIssuer(e.forIssuer));const n=await t.call();return{builder:t,response:n}},getBalances:Ye,getClaimableBalances:async e=>{Xe();let t=Ze("claimableBalances",[],e);e.asset&&(t=t.asset(e.asset)),e.claimant&&(t=t.claimant(e.claimant)),e.sponsor&&(t=t.sponsor(e.sponsor));const n=await t.call();return{builder:t,response:n}},getEffects:async e=>{Xe();let t=Ze("effects",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.forLedger&&(t=t.forLedger(e.forLedger)),e.forTransaction&&(t=t.forTransaction(e.forTransaction)),e.forOperation&&(t=t.forOperation(e.forOperation)),e.forLiquidityPool&&(t=t.forLiquidityPool(e.forLiquidityPool));const n=await t.call();return{builder:t,response:n}},getLedgers:async e=>{Xe();let t=Ze("ledgers",[],e);e.ledger&&(t=t.ledger(e.ledger));const n=await t.call();return{builder:t,response:n}},getLiquidityPools:async e=>{Xe();let t=Ze("liquidityPools",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.forAssets&&(t=t.forAssets(...e.forAssets));const n=await t.call();return{builder:t,response:n}},getNetwork:()=>{const e=U();if(0===e.config.networks.length)throw new Error("getNetwork must be called after createConfig");return e.stellar?.activeNetwork||""},getOffers:async e=>{Xe();let t=Ze("offers",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.buying&&(t=t.buying(e.buying)),e.selling&&(t=t.selling(e.selling)),e.sponsor&&(t=t.sponsor(e.sponsor)),e.seller&&(t=t.seller(e.seller));const n=await t.call();return{builder:t,response:n}},getOperations:async e=>{Xe();let t=Ze("operations",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.forClaimableBalance&&(t=t.forClaimableBalance(e.forClaimableBalance)),e.forLedger&&(t=t.forLedger(e.forLedger)),e.forTransaction&&(t=t.forTransaction(e.forTransaction)),e.forLiquidityPool&&(t=t.forLiquidityPool(e.forLiquidityPool)),null!=e.includeFailed&&(t=t.includeFailed(e.includeFailed));const n=await t.call();return{builder:t,response:n}},getOrderbook:async(e,t)=>{Xe();let n=Ze("orderbook",e,t);const r=await n.call();return{builder:n,response:r}},getPayments:async e=>{Xe();let t=Ze("payments",[],e);e.forAccount&&(t=t.forAccount(e.forAccount)),e.forLedger&&(t=t.forLedger(e.forLedger)),e.forTransaction&&(t=t.forTransaction(e.forTransaction)),null!=e.includeFailed&&(t=t.includeFailed(e.includeFailed));const n=await t.call();return{builder:t,response:n}},getStrictReceivePaths:async(e,t)=>{Xe();let n=Ze("strictReceivePaths",e,t);const r=await n.call();return{builder:n,response:r}},getStrictSendPaths:async(e,t)=>{Xe();let n=Ze("strictSendPaths",e,t);const r=await n.call();return{builder:n,response:r}},getTradeAggregation:async(e,t)=>{Xe();let n=Ze("tradeAggregation",e,t);const r=await n.call();return{builder:n,response:r}},getTrades:async e=>{Xe();let t=Ze("trades",[],e);e.forAssetPair&&(t=t.forAssetPair(e.forAssetPair[0],e.forAssetPair[1])),e.forOffer&&(t=t.forOffer(e.forOffer)),e.forType&&(t=t.forType(e.forType)),e.forAccount&&(t=t.forAccount(e.forAccount)),e.forLiquidityPool&&(t=t.forLiquidityPool(e.forLiquidityPool));const n=await t.call();return{builder:t,response:n}},getTransactions:Je,networks:et,switchNetwork:e=>{const t=U();if(0===t.config.networks.length)throw new Error("switchNetwork must be called after createConfig");if(!t.config.networks.includes(e))throw new Error("New network must be defined in config.networks");if(!t.stellar)throw new Error("Could not find the current activeNetwork");t.setStellar({activeNetwork:e,servers:t.stellar?.servers})}},nt=(e,t)=>{try{const n=new O.Transaction(e,t),r=n.operations[0];let o=null;return"payment"===r.type&&(o=r.destination),{action:r.type,operations:n.operations.length,sender:n.source,receiver:o,estimatedFee:Number(n.fee)/1e7}}catch(e){return null}};const rt=async(e,t,n,r,o)=>{const i=await(async(e,t,n,r)=>{if(!e?.signTransaction)throw new Error("Wallet does not support transaction signing.");return await e.signTransaction(t,{networkPassphrase:r,address:n})})(e,t,n,r.network),a=await async function(e,t,n){const{horizon:r}=Be(t.network,n);if(!r)throw new Error("Horizon RPC was not found.");const o=new O.Horizon.Server(r),i=new O.Transaction(e,t.network);return await o.submitTransaction(i)}(i,r,o||{});return a},ot=(e,t)=>new Promise((n,r)=>{const{authState:o,wallets:i,config:a,user:s,stellar:c,setSendTransaction:u}=U();if(!o.isAuthenticated||!c||!s)return void r(new Error("User is not authenticated."));let l=c.activeNetwork;if(t&&t.network&&(l=t.network),!nt(e,l))return void r("Invalid XDR");const f={xdr:e,options:t,rejecter:r,resolver:n,result:void 0},p=i.find(e=>e.name===s.authValue);if(!p)throw new Error("Could not find the connected wallet.");a.showWalletUIs?u(f):rt(p,e,s.address,t,a.transports||{}).then(e=>{n(e)}).catch(e=>{r(e)})});var it,at,st={core:tt,blux:{login:async()=>{const{authState:e,openModal:t}=U(),{isReady:n,isAuthenticated:r}=e;if(!n)throw new Error("Cannot connect when isReady is false.");if(r)throw new Error("Already connected.");t(N.ONBOARDING)},logout:()=>{const{logoutAction:e}=U();e()},profile:()=>{const{openModal:e,authState:t}=U(),{isAuthenticated:n}=t;if(!n)throw new Error("User is not authenticated.");e(N.PROFILE)},sendTransaction:ot,get isReady(){const{authState:e}=U();return e.isReady},get isAuthenticated(){const{authState:e}=U();return e.isAuthenticated},get user(){const{user:e}=U();return e}}},ct={exports:{}},ut={};function lt(){return it||(it=1,function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===E?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case d:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case w:return"SuspenseList";case k:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case p:return"Portal";case g:return(t.displayName||"Context")+".Provider";case m:return(t._context.displayName||"Context")+".Consumer";case b:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case S:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case x:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}function t(e){return""+e}function n(e){try{t(e);var n=!1}catch(e){n=!0}if(n){var r=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function r(t){if(t===d)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===x)return"<...>";try{var n=e(t);return n?"<"+n+">":"<...>"}catch(e){return"<...>"}}function o(){return Error("react-stack-top-frame")}function i(){var t=e(this.type);return O[t]||(O[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function a(t,r,o,a,s,l,p,d){var h,y=r.children;if(void 0!==y)if(a)if(C(y)){for(a=0;a<y.length;a++)c(y[a]);Object.freeze&&Object.freeze(y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(y);if(A.call(r,"key")){y=e(t);var m=Object.keys(r).filter(function(e){return"key"!==e});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",j[y+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,y,m,y),j[y+a]=!0)}if(y=null,void 0!==o&&(n(o),y=""+o),function(e){if(A.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),y=""+r.key),"key"in r)for(var g in o={},r)"key"!==g&&(o[g]=r[g]);else o=r;return y&&function(e,t){function n(){u||(u=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,n,r,o,a,s,c){return n=a.ref,e={$$typeof:f,type:e,key:t,props:a,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:i}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:c}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,y,l,0,null===(h=T.A)?null:h.getOwner(),o,p,d)}function c(e){"object"==typeof e&&null!==e&&e.$$typeof===f&&e._store&&(e._store.validated=1)}var u,l=s(),f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),T=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,C=Array.isArray,_=console.createTask?console.createTask:function(){return null},O={},P=(l={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(l,o)(),R=_(r(o)),j={};ut.Fragment=d,ut.jsx=function(e,t,n,o,i){var s=1e4>T.recentlyCreatedOwnerStacks++;return a(e,t,n,!1,0,i,s?Error("react-stack-top-frame"):P,s?_(r(e)):R)},ut.jsxs=function(e,t,n,o,i){var s=1e4>T.recentlyCreatedOwnerStacks++;return a(e,t,n,!0,0,i,s?Error("react-stack-top-frame"):P,s?_(r(e)):R)}}()),ut}var ft=(at||(at=1,ct.exports=lt()),ct.exports);const pt=({isClosing:e,onClose:t,isSticky:n=!1})=>ft.jsx("div",{className:"bluxcc:fixed bluxcc:inset-0 bluxcc:z-40 bluxcc:bg-black/10 bluxcc:!backdrop-blur-[1px] "+(e&&!n?"bluxcc:animate-fadeOut":"bluxcc:animate-fadeIn"),onClick:t}),dt=({isOpen:e,onClose:t=()=>{},children:n,isSticky:r=!1,appearance:o})=>{const i=l.useRef(null),a=((e=760)=>{const[t,n]=l.useState(!1);return l.useEffect(()=>{const t=()=>n(window.innerWidth<e);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t})(),{isOpening:s,isClosing:c,handleClose:u}=(e=>{const[t,n]=l.useState({isOpening:!0,isClosing:!1,hasTransition:!1});return l.useEffect(()=>{if(e&&t.isOpening){const e=setTimeout(()=>{n(e=>({...e,isOpening:!1}))},300);return()=>clearTimeout(e)}},[e,t.isOpening]),{...t,setHasTransition:e=>n(t=>({...t,hasTransition:e})),handleClose:e=>{n(e=>({...e,isClosing:!0})),setTimeout(()=>{n(e=>({...e,isClosing:!1})),e()},300)}}})(e),{height:f,ready:p}=((e,t=[])=>{const[n,r]=l.useState("auto"),[o,i]=l.useState(!1);return l.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{r(t.offsetHeight)};n(),i(!0);const o=new ResizeObserver(n);return o.observe(t),()=>o.disconnect()},t),{height:n,ready:o}})(i,[e,n]);return e?ft.jsxs(ft.Fragment,{children:[ft.jsx(pt,{isClosing:c,isSticky:r,onClose:()=>u(t)}),ft.jsx("div",{className:`bluxcc:absolute bluxcc:inset-0 bluxcc:z-9999 bluxcc:flex bluxcc:items-center bluxcc:justify-center ${c&&!r&&"bluxcc:animate-fadeOut"}`,onClick:e=>e.target===e.currentTarget&&u(t),children:ft.jsx("div",{className:"bluxcc:box-border bluxcc:!shadow-[0px_4px_80px_0px_#00000008] "+(a?"bluxcc:fixed bluxcc:bottom-0 bluxcc:left-0 bluxcc:max-h-[90vh] bluxcc:w-full bluxcc:!rounded-b-none":"bluxcc:relative bluxcc:!w-[360px]"),style:{height:"number"==typeof f?`${a?f+20:f}px`:f,transition:p?"height 250ms ease-in-out, border-radius 250ms, opacity 250ms ease-out, outline 250ms ease-out, color 250ms ease-out"+(a?", transform 250ms ease-out":""):"border-radius 250ms, opacity 250ms ease-out"+(a?", transform 250ms ease-out":""),transform:a&&(s||c)?"translateY(100%)":"translateY(0%)",backgroundColor:o.background,opacity:c&&!r?"0":"1",color:o.textColor,fontFamily:o.font,letterSpacing:"-0.04px",outlineStyle:"solid",outlineColor:o.borderColor,outlineWidth:o.borderWidth,borderRadius:o.borderRadius,overflow:"hidden"},children:ft.jsx("div",{ref:i,className:"bluxcc:px-6 bluxcc:pb-4",style:{opacity:p?1:0,transition:"opacity 250ms ease-in-out"},children:n})})})]}):null},ht=({fill:e="#1C1B1F"})=>ft.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3292_590",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:ft.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3292_590)",children:ft.jsx("path",{d:"M9.1662 14.166H10.8329V9.16601H9.1662V14.166ZM9.99953 7.49935C10.2356 7.49935 10.4336 7.41949 10.5933 7.25976C10.753 7.10004 10.8329 6.90213 10.8329 6.66601C10.8329 6.4299 10.753 6.23199 10.5933 6.07226C10.4336 5.91254 10.2356 5.83268 9.99953 5.83268C9.76342 5.83268 9.5655 5.91254 9.40578 6.07226C9.24606 6.23199 9.1662 6.4299 9.1662 6.66601C9.1662 6.90213 9.24606 7.10004 9.40578 7.25976C9.5655 7.41949 9.76342 7.49935 9.99953 7.49935ZM9.99953 18.3327C8.84675 18.3327 7.76342 18.1139 6.74953 17.6764C5.73564 17.2389 4.8537 16.6452 4.1037 15.8952C3.3537 15.1452 2.75995 14.2632 2.32245 13.2493C1.88495 12.2355 1.6662 11.1521 1.6662 9.99935C1.6662 8.84657 1.88495 7.76324 2.32245 6.74935C2.75995 5.73546 3.3537 4.85352 4.1037 4.10352C4.8537 3.35352 5.73564 2.75977 6.74953 2.32227C7.76342 1.88477 8.84675 1.66602 9.99953 1.66602C11.1523 1.66602 12.2356 1.88477 13.2495 2.32227C14.2634 2.75977 15.1454 3.35352 15.8954 4.10352C16.6454 4.85352 17.2391 5.73546 17.6766 6.74935C18.1141 7.76324 18.3329 8.84657 18.3329 9.99935C18.3329 11.1521 18.1141 12.2355 17.6766 13.2493C17.2391 14.2632 16.6454 15.1452 15.8954 15.8952C15.1454 16.6452 14.2634 17.2389 13.2495 17.6764C12.2356 18.1139 11.1523 18.3327 9.99953 18.3327ZM9.99953 16.666C11.8606 16.666 13.437 16.0202 14.7287 14.7285C16.0204 13.4368 16.6662 11.8605 16.6662 9.99935C16.6662 8.13824 16.0204 6.56185 14.7287 5.27018C13.437 3.97852 11.8606 3.33268 9.99953 3.33268C8.13842 3.33268 6.56203 3.97852 5.27036 5.27018C3.9787 6.56185 3.33287 8.13824 3.33287 9.99935C3.33287 11.8605 3.9787 13.4368 5.27036 14.7285C6.56203 16.0202 8.13842 16.666 9.99953 16.666Z",fill:e})})]}),yt=({fill:e="#5F6367"})=>ft.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_117_204",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:ft.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_117_204)",children:ft.jsx("path",{d:"M6.67929 18.0448L5.49658 16.862L12.3587 9.99996L5.49658 3.13788L6.67929 1.95517L14.7241 9.99996L6.67929 18.0448Z",fill:e})})]}),mt=({fill:e="#5F6367"})=>ft.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_170_30135",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"25",children:ft.jsx("rect",{y:"0.5",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_170_30135)",children:ft.jsx("path",{d:"M16 22.5L6 12.5L16 2.5L17.775 4.275L9.55 12.5L17.775 20.725L16 22.5Z",fill:e})})]}),gt=({fill:e="#5F6367"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2032_3674",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2032_3674)",children:ft.jsx("path",{d:"M5.26689 20L3.99994 18.7331L10.733 12L3.99994 5.26696L5.26689 4L11.9999 10.733L18.733 4L19.9999 5.26696L13.2669 12L19.9999 18.7331L18.733 20L11.9999 13.267L5.26689 20Z",fill:e})})]}),bt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"bluxcc:animate-spin",children:[ft.jsx("mask",{id:"mask0_2054_770",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"25",height:"24",children:ft.jsx("rect",{x:"0.5",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2054_770)",children:ft.jsx("path",{d:"M12.497 21.5C11.1965 21.5 9.96875 21.2508 8.81375 20.7525C7.65892 20.2542 6.65042 19.5739 5.78825 18.7118C4.92608 17.8496 4.24583 16.8411 3.7475 15.6863C3.24917 14.5313 3 13.3035 3 12.003C3 10.6867 3.24967 9.45358 3.749 8.30375C4.24833 7.15375 4.92817 6.14867 5.7885 5.2885C6.64867 4.42817 7.65733 3.74833 8.8145 3.249C9.97167 2.74967 11.2002 2.5 12.5 2.5V4C10.2833 4 8.39583 4.77917 6.8375 6.3375C5.27917 7.89583 4.5 9.78333 4.5 12C4.5 14.2167 5.27917 16.1042 6.8375 17.6625C8.39583 19.2208 10.2833 20 12.5 20C14.7167 20 16.6042 19.2208 18.1625 17.6625C19.7208 16.1042 20.5 14.2167 20.5 12H22C22 13.2998 21.7503 14.5283 21.251 15.6855C20.7517 16.8427 20.0718 17.8513 19.2115 18.7115C18.3513 19.5718 17.3462 20.2517 16.1962 20.751C15.0464 21.2503 13.8133 21.5 12.497 21.5Z",fill:e})})]}),vt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_1027_16479",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_1027_16479)",children:ft.jsx("path",{d:"M19.5421 20.577L13.2613 14.296C12.7613 14.7088 12.1863 15.0319 11.5363 15.2653C10.8863 15.4986 10.2139 15.6153 9.51906 15.6153C7.80989 15.6153 6.36339 15.0235 5.17956 13.84C3.99573 12.6565 3.40381 11.2103 3.40381 9.50152C3.40381 7.79285 3.99556 6.34618 5.17906 5.16152C6.36256 3.97702 7.80873 3.38477 9.51756 3.38477C11.2262 3.38477 12.6729 3.97668 13.8576 5.16051C15.0421 6.34435 15.6343 7.79085 15.6343 9.50002C15.6343 10.2142 15.5145 10.8963 15.2748 11.5463C15.035 12.1963 14.7151 12.7616 14.3151 13.2423L20.5958 19.523L19.5421 20.577ZM9.51906 14.1155C10.8076 14.1155 11.8989 13.6683 12.7931 12.774C13.6874 11.8798 14.1346 10.7885 14.1346 9.50002C14.1346 8.21152 13.6874 7.12018 12.7931 6.22601C11.8989 5.33168 10.8076 4.88452 9.51906 4.88452C8.23056 4.88452 7.13923 5.33168 6.24506 6.22601C5.35073 7.12018 4.90356 8.21152 4.90356 9.50002C4.90356 10.7885 5.35073 11.8798 6.24506 12.774C7.13923 13.6683 8.23056 14.1155 9.51906 14.1155Z",fill:e})})]}),wt=({fill:e="#FFD60A"})=>ft.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ft.jsx("path",{d:"M13.6344 23.0894L24.8394 11.8844L23.0832 10.1282L13.6344 19.5769L8.88442 14.8269L7.12817 16.5832L13.6344 23.0894ZM16.0028 31.8332C13.8128 31.8332 11.7543 31.4176 9.82734 30.5865C7.90039 29.7554 6.22428 28.6275 4.799 27.2028C3.37373 25.778 2.24525 24.1026 1.41359 22.1765C0.582198 20.2504 0.166504 18.1925 0.166504 16.0028C0.166504 13.8128 0.582059 11.7543 1.41317 9.82734C2.24428 7.90039 3.3722 6.22428 4.79692 4.799C6.22164 3.37373 7.89706 2.24525 9.82317 1.41359C11.7493 0.582198 13.8072 0.166504 15.9969 0.166504C18.1869 0.166504 20.2454 0.582059 22.1723 1.41317C24.0993 2.24428 25.7754 3.3722 27.2007 4.79692C28.6259 6.22164 29.7544 7.89706 30.5861 9.82317C31.4175 11.7493 31.8332 13.8072 31.8332 15.9969C31.8332 18.1869 31.4176 20.2454 30.5865 22.1723C29.7554 24.0993 28.6275 25.7754 27.2028 27.2007C25.778 28.6259 24.1026 29.7544 22.1765 30.5861C20.2504 31.4175 18.1925 31.8332 16.0028 31.8332Z",fill:e})}),St=({fill:e="#666666"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2054_469",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2054_469)",children:ft.jsx("path",{d:"M20.3713 12.75H8.577V11.25H20.3713L18.552 9.43075L19.6057 8.34625L23.2595 12L19.6057 15.6538L18.552 14.5693L20.3713 12.75ZM15.202 8.86525V5H5V19H15.202V15.1348H16.702V20.5H3.5V3.5H16.702V8.86525H15.202Z",fill:e})})]}),xt=({fill:e="#4D4D4D"})=>ft.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3052_13468",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:ft.jsx("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3052_13468)",children:ft.jsx("path",{d:"M4.83333 11.666V1.66602H12.8333V11.666H4.83333ZM5.83333 10.666H11.8333V2.66602H5.83333V10.666ZM2.5 13.9993V4.20452H3.5V12.9993H10.2948V13.9993H2.5Z",fill:e})})]}),kt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3063_3055",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"25",height:"24",children:ft.jsx("rect",{x:"0.5",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3063_3055)",children:ft.jsx("path",{d:"M7.75 17.5V2.5H19.75V17.5H7.75ZM9.25 16H18.25V4H9.25V16ZM4.25 21V6.30775H5.75V19.5H15.9423V21H4.25Z",fill:e})})]}),Et=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2054_838",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2054_838)",children:ft.jsx("path",{d:"M12 21.5C9.54899 21.5 7.42215 20.6913 5.61949 19.074C3.81682 17.4567 2.79365 15.432 2.54999 13H4.07499C4.31865 15.0167 5.19557 16.6875 6.70574 18.0125C8.21607 19.3375 9.98082 20 12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C10.4962 4 9.11249 4.38625 7.84899 5.15875C6.58549 5.93108 5.61149 6.99033 4.92699 8.3365H7.88449V9.8365H2.75774C3.26024 7.68267 4.37207 5.9215 6.09324 4.553C7.8144 3.18433 9.78332 2.5 12 2.5C13.3142 2.5 14.5492 2.74933 15.705 3.248C16.8608 3.74667 17.8662 4.42342 18.7212 5.27825C19.5762 6.13308 20.2531 7.13833 20.7517 8.294C21.2506 9.44967 21.5 10.6844 21.5 11.9983C21.5 13.3123 21.2506 14.5473 20.7517 15.7035C20.2531 16.8597 19.5762 17.8653 18.7212 18.7205C17.8662 19.5757 16.8608 20.2528 15.705 20.7518C14.5492 21.2506 13.3142 21.5 12 21.5ZM14.723 15.777L11.25 12.3025V7.3655H12.75V11.6962L15.7672 14.723L14.723 15.777Z",fill:e})})]}),Tt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2054_817",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2054_817)",children:ft.jsx("path",{d:"M3.5 19.25V4.75L20.7115 12L3.5 19.25ZM5 17L16.85 12L5 7V10.6923L10.423 12L5 13.3077V17Z",fill:e})})]}),At=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2204_971",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:ft.jsx("rect",{width:"16",height:"16",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2204_971)",children:ft.jsx("path",{d:"M5.06372 11.8333L7.99955 8.89746L10.9354 11.8333H5.06372Z",fill:e})})]}),Ct=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_1816_18902",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_1816_18902)",children:ft.jsx("path",{d:"M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z",fill:e})})]}),_t=()=>ft.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"19.5",fill:"transparent",stroke:"#00BD81"}),ft.jsx("mask",{id:"mask0_2212_3318",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"24",height:"24",children:ft.jsx("rect",{x:"8",y:"8",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2212_3318)",children:ft.jsx("path",{d:"M19.25 23.6923H20.7595V19.1365L22.6095 20.9865L23.6538 19.9423L20.0095 16.298L16.3558 19.9423L17.4 20.9865L19.25 19.1365V23.6923ZM20.0017 29.5C18.6877 29.5 17.4527 29.2507 16.2965 28.752C15.1403 28.2533 14.1347 27.5766 13.2795 26.7218C12.4243 25.8669 11.7472 24.8617 11.2482 23.706C10.7494 22.5503 10.5 21.3156 10.5 20.0017C10.5 18.6877 10.7493 17.4527 11.248 16.2965C11.7467 15.1403 12.4234 14.1347 13.2783 13.2795C14.1331 12.4243 15.1383 11.7472 16.294 11.2482C17.4497 10.7494 18.6844 10.5 19.9983 10.5C21.3123 10.5 22.5473 10.7493 23.7035 11.248C24.8597 11.7467 25.8653 12.4234 26.7205 13.2783C27.5757 14.1331 28.2528 15.1383 28.7518 16.294C29.2506 17.4497 29.5 18.6844 29.5 19.9983C29.5 21.3123 29.2507 22.5473 28.752 23.7035C28.2533 24.8597 27.5766 25.8653 26.7218 26.7205C25.8669 27.5757 24.8617 28.2528 23.706 28.7518C22.5503 29.2506 21.3156 29.5 20.0017 29.5ZM20 28C22.2333 28 24.125 27.225 25.675 25.675C27.225 24.125 28 22.2333 28 20C28 17.7667 27.225 15.875 25.675 14.325C24.125 12.775 22.2333 12 20 12C17.7667 12 15.875 12.775 14.325 14.325C12.775 15.875 12 17.7667 12 20C12 22.2333 12.775 24.125 14.325 25.675C15.875 27.225 17.7667 28 20 28Z",fill:"#00BD81"})})]}),Ot=()=>ft.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"19.5",fill:"transparent",stroke:"#00BD81"}),ft.jsx("mask",{id:"mask0_2494_9033",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"24",height:"24",children:ft.jsx("rect",{x:"8",y:"8",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsxs("g",{mask:"url(#mask0_2494_9033)",children:[ft.jsx("path",{d:"M12.577 25.9728C12.0142 25.255 11.5587 24.4749 11.2105 23.6326C10.8625 22.7902 10.6321 21.9126 10.5193 20.9998H12.05C12.15 21.7165 12.3334 22.404 12.6 23.0623C12.8667 23.7206 13.2167 24.3331 13.65 24.8998L12.577 25.9728ZM10.5193 18.9998C10.6398 18.087 10.8722 17.2094 11.2165 16.3671C11.5607 15.5247 12.0206 14.7511 12.5963 14.0461L13.65 15.0998C13.2167 15.6665 12.8667 16.279 12.6 16.9373C12.3334 17.5956 12.15 18.2831 12.05 18.9998H10.5193ZM18.95 29.4498C18.0372 29.3433 17.1638 29.1154 16.3298 28.7661C15.4958 28.4167 14.718 27.9626 13.9963 27.4036L15.05 26.2998C15.6334 26.7331 16.25 27.0915 16.9 27.3748C17.55 27.6581 18.2334 27.8498 18.95 27.9498V29.4498ZM15.1 13.6806L13.9963 12.5961C14.7346 12.0306 15.525 11.5764 16.3673 11.2336C17.2096 10.8906 18.0872 10.6626 19 10.5498V12.0498C18.2834 12.1498 17.5959 12.3366 16.9375 12.6103C16.2792 12.8841 15.6667 13.2409 15.1 13.6806ZM20.95 29.4498V27.9498C21.677 27.8498 22.3729 27.6655 23.0375 27.3968C23.7022 27.1283 24.323 26.7691 24.9 26.3191L26.0038 27.4036C25.2655 27.9792 24.471 28.436 23.6203 28.7738C22.7696 29.1116 21.8795 29.337 20.95 29.4498ZM24.95 13.6998C24.3667 13.2665 23.7417 12.9081 23.075 12.6248C22.4084 12.3415 21.7167 12.1498 21 12.0498V10.5498C21.9129 10.6563 22.793 10.8826 23.6403 11.2288C24.4878 11.5748 25.2756 12.0306 26.0038 12.5961L24.95 13.6998ZM27.4038 25.9536L26.35 24.8998C26.7834 24.3331 27.1334 23.7206 27.4 23.0623C27.6667 22.404 27.85 21.7165 27.95 20.9998H29.4808C29.3603 21.9126 29.1279 22.7902 28.7835 23.6326C28.4394 24.4749 27.9795 25.2486 27.4038 25.9536ZM27.95 18.9998C27.85 18.2831 27.6667 17.5956 27.4 16.9373C27.1334 16.279 26.7834 15.6665 26.35 15.0998L27.423 14.0268C27.9859 14.7446 28.4414 15.5247 28.7895 16.3671C29.1375 17.2094 29.368 18.087 29.4808 18.9998H27.95Z",fill:"#00BD81"}),ft.jsx("circle",{cx:"20",cy:"20",r:"3",fill:"#00BD81"})]})]}),Pt=()=>ft.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"19.5",fill:"transparent",stroke:"#00BD81"}),ft.jsx("mask",{id:"mask0_2214_3828",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"24",height:"24",children:ft.jsx("rect",{x:"8",y:"8",width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2214_3828)",children:ft.jsx("path",{d:"M20.0095 23.6923L23.6538 20.048L22.6095 19.004L20.7595 20.854V16.298H19.25V20.854L17.4 19.004L16.3558 20.048L20.0095 23.6923ZM20.0017 29.5C18.6877 29.5 17.4527 29.2507 16.2965 28.752C15.1403 28.2533 14.1347 27.5766 13.2795 26.7218C12.4243 25.8669 11.7472 24.8617 11.2482 23.706C10.7494 22.5503 10.5 21.3156 10.5 20.0017C10.5 18.6877 10.7493 17.4527 11.248 16.2965C11.7467 15.1403 12.4234 14.1347 13.2783 13.2795C14.1331 12.4243 15.1383 11.7472 16.294 11.2482C17.4497 10.7494 18.6844 10.5 19.9983 10.5C21.3123 10.5 22.5473 10.7493 23.7035 11.248C24.8597 11.7467 25.8653 12.4234 26.7205 13.2783C27.5757 14.1331 28.2528 15.1383 28.7518 16.294C29.2506 17.4497 29.5 18.6844 29.5 19.9983C29.5 21.3123 29.2507 22.5473 28.752 23.7035C28.2533 24.8597 27.5766 25.8653 26.7218 26.7205C25.8669 27.5757 24.8617 28.2528 23.706 28.7518C22.5503 29.2506 21.3156 29.5 20.0017 29.5ZM20 28C22.2333 28 24.125 27.225 25.675 25.675C27.225 24.125 28 22.2333 28 20C28 17.7667 27.225 15.875 25.675 14.325C24.125 12.775 22.2333 12 20 12C17.7667 12 15.875 12.775 14.325 14.325C12.775 15.875 12 17.7667 12 20C12 22.2333 12.775 24.125 14.325 25.675C15.875 27.225 17.7667 28 20 28Z",fill:"#00BD81"})})]}),Rt=()=>ft.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2265_983",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2265_983)",children:ft.jsx("path",{d:"M8.00081 14.3337C7.13248 14.3337 6.31304 14.1672 5.54248 13.8343C4.77193 13.5014 4.09993 13.0482 3.52648 12.4747C2.95293 11.9012 2.4997 11.2292 2.16681 10.4587C1.83393 9.6881 1.66748 8.86866 1.66748 8.00033C1.66748 7.1251 1.83393 6.30394 2.16681 5.53683C2.4997 4.76972 2.95293 4.09944 3.52648 3.52599C4.09993 2.95244 4.77193 2.49921 5.54248 2.16633C6.31304 1.83344 7.13248 1.66699 8.00081 1.66699C8.87604 1.66699 9.6972 1.83344 10.4643 2.16633C11.2314 2.49921 11.9017 2.95244 12.4751 3.52599C13.0487 4.09944 13.5019 4.76972 13.8348 5.53683C14.1677 6.30394 14.3341 7.1251 14.3341 8.00033C14.3341 8.86866 14.1677 9.6881 13.8348 10.4587C13.5019 11.2292 13.0487 11.9012 12.4751 12.4747C11.9017 13.0482 11.2314 13.5014 10.4643 13.8343C9.6972 14.1672 8.87604 14.3337 8.00081 14.3337ZM8.00081 13.3195C8.34104 12.8683 8.62737 12.4132 8.85982 11.9542C9.09226 11.4952 9.28159 10.9934 9.42782 10.449H6.57381C6.72859 11.0106 6.92009 11.5208 7.14832 11.9798C7.37643 12.4388 7.66059 12.8854 8.00081 13.3195ZM6.70982 13.1362C6.45426 12.7695 6.22476 12.3527 6.02132 11.8857C5.81787 11.4185 5.65976 10.9397 5.54698 10.449H3.28548C3.63759 11.1413 4.10981 11.723 4.70215 12.194C5.29448 12.6649 5.9637 12.9789 6.70982 13.1362ZM9.29182 13.1362C10.0379 12.9789 10.7071 12.6649 11.2995 12.194C11.8918 11.723 12.364 11.1413 12.7161 10.449H10.4546C10.3204 10.9439 10.1516 11.4249 9.94815 11.892C9.74482 12.3591 9.52604 12.7738 9.29182 13.1362ZM2.86615 9.44899H5.34448C5.30259 9.20122 5.2722 8.95827 5.25331 8.72016C5.23454 8.48216 5.22515 8.24222 5.22515 8.00033C5.22515 7.75844 5.23454 7.51849 5.25331 7.28049C5.2722 7.04238 5.30259 6.79944 5.34448 6.55166H2.86615C2.80204 6.7781 2.75293 7.01355 2.71881 7.25799C2.68459 7.50244 2.66748 7.74988 2.66748 8.00033C2.66748 8.25077 2.68459 8.49822 2.71881 8.74266C2.75293 8.98711 2.80204 9.22255 2.86615 9.44899ZM6.34431 9.44899H9.65732C9.69909 9.20122 9.72943 8.96044 9.74831 8.72666C9.76709 8.49288 9.77648 8.25077 9.77648 8.00033C9.77648 7.74988 9.76709 7.50777 9.74831 7.27399C9.72943 7.04022 9.69909 6.79944 9.65732 6.55166H6.34431C6.30254 6.79944 6.2722 7.04022 6.25331 7.27399C6.23454 7.50777 6.22515 7.74988 6.22515 8.00033C6.22515 8.25077 6.23454 8.49288 6.25331 8.72666C6.2722 8.96044 6.30254 9.20122 6.34431 9.44899ZM10.6571 9.44899H13.1355C13.1996 9.22255 13.2487 8.98711 13.2828 8.74266C13.317 8.49822 13.3341 8.25077 13.3341 8.00033C13.3341 7.74988 13.317 7.50244 13.2828 7.25799C13.2487 7.01355 13.1996 6.7781 13.1355 6.55166H10.6571C10.699 6.79944 10.7294 7.04238 10.7483 7.28049C10.7671 7.51849 10.7765 7.75844 10.7765 8.00033C10.7765 8.24222 10.7671 8.48216 10.7483 8.72016C10.7294 8.95827 10.699 9.20122 10.6571 9.44899ZM10.4546 5.55166H12.7161C12.3598 4.85077 11.8908 4.2691 11.3091 3.80666C10.7275 3.34433 10.055 3.0281 9.29182 2.85799C9.54737 3.24599 9.7747 3.67038 9.97382 4.13116C10.173 4.59183 10.3333 5.06533 10.4546 5.55166ZM6.57381 5.55166H9.42782C9.27304 4.99433 9.07837 4.48083 8.84382 4.01116C8.60915 3.54149 8.32815 3.09816 8.00081 2.68116C7.67348 3.09816 7.39248 3.54149 7.15781 4.01116C6.92326 4.48083 6.72859 4.99433 6.57381 5.55166ZM3.28548 5.55166H5.54698C5.66831 5.06533 5.82859 4.59183 6.02781 4.13116C6.22693 3.67038 6.45426 3.24599 6.70982 2.85799C5.94226 3.0281 5.26876 3.34544 4.68931 3.80999C4.10976 4.27444 3.64181 4.85499 3.28548 5.55166Z",fill:"#666666"})})]}),jt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2324_772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2324_772)",children:ft.jsx("path",{d:"M12 1.59619L21.5 7.25369V20.4999H2.5V7.25369L12 1.59619ZM12 12.6499L19.8 7.99994L12 3.34994L4.2 7.99994L12 12.6499ZM12 14.4037L4 9.62294V18.9999H20V9.62294L12 14.4037Z",fill:e})})]}),It=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2097_3575",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"40",children:ft.jsx("rect",{width:"40",height:"40",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2097_3575)",children:ft.jsx("path",{d:"M20 2.66113L35.8334 12.0903V34.1674H4.16669V12.0903L20 2.66113ZM20 21.0841L33 13.3341L20 5.58405L7.00002 13.3341L20 21.0841ZM20 24.007L6.66669 16.0391V31.6674H33.3334V16.0391L20 24.007Z",fill:e})})]}),Nt=()=>ft.jsxs("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("circle",{cx:"34",cy:"34",r:"34",fill:"#FFDEDE"}),ft.jsx("mask",{id:"mask0_2497_9140",maskUnits:"userSpaceOnUse",x:"14",y:"14",width:"40",height:"40",children:ft.jsx("rect",{x:"14",y:"14",width:"40",height:"40",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2497_9140)",children:ft.jsx("path",{d:"M33.9995 41.1662C34.2356 41.1662 34.4335 41.0863 34.5933 40.9266C34.753 40.7669 34.8328 40.569 34.8328 40.3328C34.8328 40.0967 34.753 39.8988 34.5933 39.7391C34.4335 39.5794 34.2356 39.4995 33.9995 39.4995C33.7634 39.4995 33.5655 39.5794 33.4058 39.7391C33.246 39.8988 33.1662 40.0967 33.1662 40.3328C33.1662 40.569 33.246 40.7669 33.4058 40.9266C33.5655 41.0863 33.7634 41.1662 33.9995 41.1662ZM33.4162 35.9995H34.5828V25.9995H33.4162V35.9995ZM34.0066 48.4995C32.0019 48.4995 30.1167 48.1191 28.3512 47.3583C26.5856 46.5974 25.0499 45.5648 23.7441 44.2603C22.438 42.9559 21.4041 41.4221 20.6424 39.6591C19.8805 37.8958 19.4995 36.0116 19.4995 34.0066C19.4995 32.0019 19.8799 30.1167 20.6408 28.3512C21.4016 26.5856 22.4342 25.0499 23.7387 23.7441C25.0431 22.438 26.5769 21.4041 28.3399 20.6424C30.1033 19.8805 31.9874 19.4995 33.9924 19.4995C35.9972 19.4995 37.8823 19.8799 39.6478 20.6408C41.4134 21.4016 42.9491 22.4342 44.2549 23.7387C45.561 25.0431 46.5949 26.5769 47.3566 28.3399C48.1185 30.1033 48.4995 31.9874 48.4995 33.9924C48.4995 35.9972 48.1191 37.8823 47.3583 39.6478C46.5974 41.4134 45.5648 42.9491 44.2603 44.2549C42.9559 45.561 41.4222 46.5949 39.6591 47.3566C37.8958 48.1185 36.0116 48.4995 34.0066 48.4995Z",fill:"#EC2929"})})]}),Lt=()=>ft.jsxs("svg",{width:"68",height:"68",viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("circle",{cx:"34",cy:"34",r:"34",fill:"#FFDEDE"}),ft.jsx("mask",{id:"mask0_3255_25187",maskUnits:"userSpaceOnUse",x:"14",y:"14",width:"40",height:"40",children:ft.jsx("rect",{x:"14",y:"14",width:"40",height:"40",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3255_25187)",children:ft.jsx("path",{d:"M34.0013 49.8327C31.8305 49.8327 29.7819 49.4166 27.8555 48.5844C25.9291 47.7521 24.2491 46.6191 22.8155 45.1852C21.3816 43.7516 20.2485 42.0716 19.4163 40.1452C18.5841 38.2188 18.168 36.1702 18.168 33.9994C18.168 31.8113 18.5841 29.7584 19.4163 27.8406C20.2485 25.9228 21.3816 24.2471 22.8155 22.8135C24.2491 21.3796 25.9291 20.2466 27.8555 19.4144C29.7819 18.5821 31.8305 18.166 34.0013 18.166C36.1894 18.166 38.2423 18.5821 40.1601 19.4144C42.0778 20.2466 43.7535 21.3796 45.1871 22.8135C46.621 24.2471 47.7541 25.9228 48.5863 27.8406C49.4185 29.7584 49.8346 31.8113 49.8346 33.9994C49.8346 36.1702 49.4185 38.2188 48.5863 40.1452C47.7541 42.0716 46.621 43.7516 45.1871 45.1852C43.7535 46.6191 42.0778 47.7521 40.1601 48.5844C38.2423 49.4166 36.1894 49.8327 34.0013 49.8327ZM34.0013 47.2973C34.8519 46.1692 35.5677 45.0314 36.1488 43.8839C36.7299 42.7364 37.2033 41.4821 37.5688 40.121H30.4338C30.8208 41.5249 31.2995 42.8006 31.8701 43.9481C32.4403 45.0956 33.1508 46.212 34.0013 47.2973ZM30.7738 46.8389C30.1349 45.9223 29.5612 44.8802 29.0526 43.7127C28.5439 42.5449 28.1487 41.3477 27.8667 40.121H22.213C23.0932 41.8519 24.2738 43.306 25.7546 44.4835C27.2355 45.6607 28.9085 46.4459 30.7738 46.8389ZM37.2288 46.8389C39.0941 46.4459 40.7671 45.6607 42.248 44.4835C43.7288 43.306 44.9094 41.8519 45.7896 40.121H40.1359C39.8003 41.3582 39.3783 42.5607 38.8696 43.7285C38.3613 44.8963 37.8144 45.9331 37.2288 46.8389ZM21.1646 37.621H27.3605C27.2557 37.0016 27.1798 36.3942 27.1326 35.7989C27.0856 35.2039 27.0621 34.6041 27.0621 33.9994C27.0621 33.3946 27.0856 32.7948 27.1326 32.1998C27.1798 31.6045 27.2557 30.9971 27.3605 30.3777H21.1646C21.0044 30.9438 20.8816 31.5324 20.7963 32.1435C20.7107 32.7546 20.668 33.3732 20.668 33.9994C20.668 34.6255 20.7107 35.2441 20.7963 35.8552C20.8816 36.4663 21.0044 37.0549 21.1646 37.621ZM29.8601 37.621H38.1426C38.247 37.0016 38.3228 36.3996 38.3701 35.8152C38.417 35.2307 38.4405 34.6255 38.4405 33.9994C38.4405 33.3732 38.417 32.768 38.3701 32.1835C38.3228 31.5991 38.247 30.9971 38.1426 30.3777H29.8601C29.7556 30.9971 29.6798 31.5991 29.6326 32.1835C29.5856 32.768 29.5621 33.3732 29.5621 33.9994C29.5621 34.6255 29.5856 35.2307 29.6326 35.8152C29.6798 36.3996 29.7556 37.0016 29.8601 37.621ZM40.6421 37.621H46.838C46.9983 37.0549 47.121 36.4663 47.2063 35.8552C47.2919 35.2441 47.3346 34.6255 47.3346 33.9994C47.3346 33.3732 47.2919 32.7546 47.2063 32.1435C47.121 31.5324 46.9983 30.9438 46.838 30.3777H40.6421C40.7469 30.9971 40.8228 31.6045 40.8701 32.1998C40.917 32.7948 40.9405 33.3946 40.9405 33.9994C40.9405 34.6041 40.917 35.2039 40.8701 35.7989C40.8228 36.3942 40.7469 37.0016 40.6421 37.621ZM40.1359 27.8777H45.7896C44.8988 26.1255 43.7263 24.6713 42.2721 23.5152C40.818 22.3594 39.1369 21.5688 37.2288 21.1435C37.8677 22.1135 38.436 23.1745 38.9338 24.3264C39.4319 25.4781 39.8326 26.6619 40.1359 27.8777ZM30.4338 27.8777H37.5688C37.1819 26.4844 36.6952 25.2006 36.1088 24.0264C35.5221 22.8523 34.8196 21.7439 34.0013 20.7014C33.183 21.7439 32.4805 22.8523 31.8938 24.0264C31.3074 25.2006 30.8208 26.4844 30.4338 27.8777ZM22.213 27.8777H27.8667C28.1701 26.6619 28.5707 25.4781 29.0688 24.3264C29.5666 23.1745 30.1349 22.1135 30.7738 21.1435C28.8549 21.5688 27.1712 22.3621 25.7226 23.5235C24.2737 24.6846 23.1038 26.136 22.213 27.8777Z",fill:"#EC2929"})})]}),Bt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3052_2991",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3052_2991)",children:ft.jsx("path",{d:"M12.05 19.75C9.88717 19.75 8.0465 18.9974 6.528 17.4923C5.00934 15.9871 4.25 14.1563 4.25 12V11.2192L2.4 13.0693L1.34625 12.0155L5 8.3615L8.65375 12.0155L7.6 13.0693L5.75 11.2192V12C5.75 13.7372 6.3615 15.2132 7.5845 16.428C8.80767 17.6427 10.2962 18.25 12.05 18.25C12.4642 18.25 12.8779 18.2048 13.2913 18.1145C13.7048 18.024 14.1083 17.8884 14.502 17.7078L15.627 18.8328C15.0642 19.1353 14.4831 19.3637 13.8838 19.5182C13.2843 19.6727 12.673 19.75 12.05 19.75ZM19 15.6385L15.3463 11.9845L16.4 10.9307L18.25 12.7808V12C18.25 10.2628 17.6385 8.78683 16.4155 7.572C15.1923 6.35733 13.7038 5.75 11.95 5.75C11.5358 5.75 11.1221 5.79517 10.7088 5.8855C10.2953 5.976 9.89167 6.11158 9.498 6.29225L8.373 5.16725C8.93584 4.86475 9.51692 4.63625 10.1163 4.48175C10.7158 4.32725 11.327 4.25 11.95 4.25C14.1128 4.25 15.9535 5.00258 17.472 6.50775C18.9907 8.01292 19.75 9.84367 19.75 12V12.7808L21.6 10.9307L22.6538 11.9845L19 15.6385Z",fill:e})})]}),Dt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3052_13246",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3052_13246)",children:ft.jsx("path",{d:"M3.5 11V3.5H11V11H3.5ZM5 9.5H9.5V5H5V9.5ZM3.5 20.5V13H11V20.5H3.5ZM5 19H9.5V14.5H5V19ZM13 11V3.5H20.5V11H13ZM14.5 9.5H19V5H14.5V9.5ZM18.625 20.5V18.625H20.5V20.5H18.625ZM13 14.875V13H14.875V14.875H13ZM14.875 16.75V14.875H16.75V16.75H14.875ZM13 18.625V16.75H14.875V18.625H13ZM14.875 20.5V18.625H16.75V20.5H14.875ZM16.75 18.625V16.75H18.625V18.625H16.75ZM16.75 14.875V13H18.625V14.875H16.75ZM18.625 16.75V14.875H20.5V16.75H18.625Z",fill:e})})]}),Ut=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3052_12050",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3052_12050)",children:ft.jsx("path",{d:"M20.5 8.029H19V5H5V19H19V15.971H20.5V20.5H3.5V3.5H20.5V8.029ZM11.5 16.5V7.5H21.5V16.5H11.5ZM16 13.5C16.4167 13.5 16.7708 13.3542 17.0625 13.0625C17.3542 12.7708 17.5 12.4167 17.5 12C17.5 11.5833 17.3542 11.2292 17.0625 10.9375C16.7708 10.6458 16.4167 10.5 16 10.5C15.5833 10.5 15.2292 10.6458 14.9375 10.9375C14.6458 11.2292 14.5 11.5833 14.5 12C14.5 12.4167 14.6458 12.7708 14.9375 13.0625C15.2292 13.3542 15.5833 13.5 16 13.5ZM20 15V9H13V15H20Z",fill:e})})]}),Mt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_1909_18867",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:ft.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_1909_18867)",children:ft.jsx("path",{d:"M12 20.5C9.57317 20.5 7.54975 20.1573 5.92975 19.472C4.30992 18.7868 3.5 17.9308 3.5 16.9038V7C3.5 6.03467 4.3295 5.21 5.9885 4.526C7.6475 3.842 9.65133 3.5 12 3.5C14.3487 3.5 16.3525 3.842 18.0115 4.526C19.6705 5.21 20.5 6.03467 20.5 7V16.9038C20.5 17.9308 19.6901 18.7868 18.0703 19.472C16.4503 20.1573 14.4268 20.5 12 20.5ZM12 8.95775C13.4577 8.95775 14.9253 8.75167 16.403 8.3395C17.8805 7.92733 18.7366 7.48275 18.9712 7.00575C18.7429 6.51608 17.8958 6.05933 16.4298 5.6355C14.9638 5.21183 13.4872 5 12 5C10.5153 5 9.04383 5.20608 7.5855 5.61825C6.12717 6.03042 5.2685 6.48008 5.0095 6.96725C5.26217 7.46725 6.11442 7.924 7.56625 8.3375C9.01825 8.751 10.4962 8.95775 12 8.95775ZM12 13.9615C12.6937 13.9615 13.3687 13.9282 14.025 13.8615C14.6813 13.7948 15.3086 13.6974 15.9068 13.5693C16.5048 13.4411 17.0647 13.2821 17.5865 13.0922C18.1083 12.9026 18.5795 12.6878 19 12.448V8.9C18.5795 9.13967 18.1083 9.35442 17.5865 9.54425C17.0647 9.73392 16.5048 9.89283 15.9068 10.021C15.3086 10.1493 14.6813 10.2468 14.025 10.3135C13.3687 10.3802 12.6937 10.4135 12 10.4135C11.2937 10.4135 10.6055 10.3785 9.9355 10.3085C9.26567 10.2387 8.63333 10.1397 8.0385 10.0115C7.44367 9.88333 6.8895 9.726 6.376 9.5395C5.8625 9.35283 5.40383 9.13967 5 8.9V12.448C5.40383 12.6878 5.8625 12.901 6.376 13.0875C6.8895 13.274 7.44367 13.4313 8.0385 13.5595C8.63333 13.6878 9.26567 13.7869 9.9355 13.8567C10.6055 13.9266 11.2937 13.9615 12 13.9615ZM12 19C12.8115 19 13.6083 18.9465 14.3905 18.8395C15.1725 18.7323 15.884 18.5862 16.525 18.401C17.166 18.2157 17.7067 18.0006 18.147 17.7557C18.5875 17.5109 18.8718 17.2538 19 16.9845V13.948C18.5795 14.1878 18.1083 14.4026 17.5865 14.5922C17.0647 14.7821 16.5048 14.9411 15.9068 15.0693C15.3086 15.1974 14.6813 15.2948 14.025 15.3615C13.3687 15.4282 12.6937 15.4615 12 15.4615C11.2937 15.4615 10.6055 15.4266 9.9355 15.3567C9.26567 15.2869 8.63333 15.1878 8.0385 15.0595C7.44367 14.9313 6.8895 14.774 6.376 14.5875C5.8625 14.401 5.40383 14.1878 5 13.948V17C5.12817 17.2757 5.40992 17.5317 5.84525 17.7682C6.28042 18.0047 6.8185 18.2157 7.4595 18.401C8.10067 18.5862 8.81483 18.7323 9.602 18.8395C10.3892 18.9465 11.1885 19 12 19Z",fill:e})})]}),Ft=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_1793_24266",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:ft.jsx("rect",{x:"0.5",width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_1793_24266)",children:ft.jsx("path",{d:"M10.5019 12.9808C11.4462 12.9808 12.2482 12.6503 12.9079 11.9894C13.5677 11.3284 13.8975 10.5258 13.8975 9.58146C13.8975 8.63715 13.567 7.83514 12.9061 7.17542C12.2451 6.51569 11.4425 6.18583 10.4981 6.18583C9.55384 6.18583 8.75183 6.51632 8.09211 7.17729C7.43238 7.83826 7.10252 8.6409 7.10252 9.58521C7.10252 10.5295 7.43301 11.3315 8.09398 11.9913C8.75495 12.651 9.55759 12.9808 10.5019 12.9808ZM10.5 11.8333C9.87502 11.8333 9.34377 11.6146 8.90627 11.1771C8.46877 10.7396 8.25002 10.2083 8.25002 9.58333C8.25002 8.95833 8.46877 8.42708 8.90627 7.98958C9.34377 7.55208 9.87502 7.33333 10.5 7.33333C11.125 7.33333 11.6563 7.55208 12.0938 7.98958C12.5313 8.42708 12.75 8.95833 12.75 9.58333C12.75 10.2083 12.5313 10.7396 12.0938 11.1771C11.6563 11.6146 11.125 11.8333 10.5 11.8333ZM10.5011 15.4167C8.58481 15.4167 6.83877 14.8881 5.26294 13.8308C3.6871 12.7738 2.52683 11.3579 1.7821 9.58333C2.52683 7.80875 3.68669 6.39292 5.26169 5.33583C6.83683 4.27861 8.58259 3.75 10.499 3.75C12.4152 3.75 14.1613 4.27861 15.7371 5.33583C17.3129 6.39292 18.4732 7.80875 19.2179 9.58333C18.4732 11.3579 17.3134 12.7738 15.7384 13.8308C14.1632 14.8881 12.4175 15.4167 10.5011 15.4167ZM10.5 14.1667C12.0695 14.1667 13.5104 13.7535 14.8229 12.9271C16.1354 12.1007 17.1389 10.9861 17.8334 9.58333C17.1389 8.18056 16.1354 7.06597 14.8229 6.23958C13.5104 5.41319 12.0695 5 10.5 5C8.93058 5 7.48961 5.41319 6.1771 6.23958C4.8646 7.06597 3.86113 8.18056 3.16669 9.58333C3.86113 10.9861 4.8646 12.1007 6.1771 12.9271C7.48961 13.7535 8.93058 14.1667 10.5 14.1667Z",fill:e})})]}),Vt=({fill:e="#0C1083"})=>ft.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3104_19660",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:ft.jsx("rect",{x:"0.5",width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3104_19660)",children:ft.jsx("path",{d:"M13.6442 10.8112L12.7084 9.87534C12.8334 9.1852 12.6365 8.56471 12.1177 8.01388C11.5991 7.46319 10.9627 7.25034 10.2084 7.37534L9.27252 6.43951C9.46058 6.35506 9.65343 6.29173 9.85106 6.24951C10.0487 6.20728 10.265 6.18617 10.5 6.18617C11.4456 6.18617 12.2482 6.51603 12.9079 7.17576C13.5677 7.83548 13.8975 8.63812 13.8975 9.58367C13.8975 9.81867 13.8764 10.0377 13.8342 10.2408C13.792 10.4437 13.7286 10.6338 13.6442 10.8112ZM16.2948 13.4041L15.375 12.542C15.9028 12.1392 16.3716 11.6983 16.7813 11.2191C17.191 10.7399 17.5417 10.1948 17.8334 9.58367C17.1389 8.18089 16.1424 7.06631 14.8438 6.23992C13.5452 5.41353 12.0972 5.00034 10.5 5.00034C10.0972 5.00034 9.70141 5.02812 9.31252 5.08367C8.92363 5.13923 8.54169 5.22256 8.16669 5.33367L7.19565 4.36263C7.72231 4.15319 8.26023 3.99881 8.8094 3.8995C9.35856 3.80006 9.92211 3.75034 10.5 3.75034C12.4529 3.75034 14.2141 4.28881 15.7836 5.36575C17.353 6.4427 18.4978 7.84867 19.2179 9.58367C18.9092 10.3283 18.5104 11.0233 18.0217 11.6687C17.5328 12.3139 16.9572 12.8924 16.2948 13.4041ZM16.9679 18.2247L13.5963 14.8785C13.1689 15.0367 12.6953 15.166 12.1754 15.2664C11.6557 15.3668 11.0972 15.417 10.5 15.417C8.54169 15.417 6.78051 14.8785 5.21648 13.8016C3.65231 12.7246 2.50752 11.3187 1.7821 9.58367C2.08974 8.84756 2.48717 8.16089 2.9744 7.52367C3.46162 6.88631 3.99794 6.33367 4.58335 5.86575L2.27565 3.53242L3.15398 2.6543L17.8461 17.3464L16.9679 18.2247ZM5.46169 6.74388C5.02141 7.0943 4.59322 7.51555 4.1771 8.00763C3.76099 8.49957 3.42419 9.02492 3.16669 9.58367C3.86113 10.9864 4.85766 12.101 6.15627 12.9274C7.45488 13.7538 8.9028 14.167 10.5 14.167C10.8793 14.167 11.257 14.1349 11.6331 14.0708C12.0091 14.0067 12.328 13.9405 12.5898 13.8722L11.5352 12.792C11.3931 12.8496 11.2286 12.8955 11.0417 12.9297C10.8547 12.964 10.6742 12.9812 10.5 12.9812C9.55447 12.9812 8.75183 12.6513 8.09211 11.9916C7.43238 11.3319 7.10252 10.5292 7.10252 9.58367C7.10252 9.41492 7.11968 9.23839 7.15398 9.05409C7.18815 8.86978 7.23405 8.70124 7.29169 8.54846L5.46169 6.74388Z",fill:e})})]}),qt=({fill:e="#ffffff"})=>ft.jsxs("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3181_32834",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"42",height:"42",children:ft.jsx("rect",{x:"0.0644531",y:"0.330566",width:"41.3523",height:"41.3523",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3181_32834)",children:ft.jsx("path",{d:"M12.1242 26.1761C13.5601 26.1761 14.7805 25.6735 15.7856 24.6684C16.7907 23.6633 17.2933 22.4429 17.2933 21.007C17.2933 19.5712 16.7907 18.3507 15.7856 17.3456C14.7805 16.3405 13.5601 15.838 12.1242 15.838C10.6884 15.838 9.4679 16.3405 8.46281 17.3456C7.45772 18.3507 6.95517 19.5712 6.95517 21.007C6.95517 22.4429 7.45772 23.6633 8.46281 24.6684C9.4679 25.6735 10.6884 26.1761 12.1242 26.1761ZM12.1242 31.3451C9.25252 31.3451 6.81159 30.34 4.80141 28.3298C2.79122 26.3197 1.78613 23.8787 1.78613 21.007C1.78613 18.1353 2.79122 15.6944 4.80141 13.6842C6.81159 11.674 9.25252 10.6689 12.1242 10.6689C14.4503 10.6689 16.482 11.3294 18.2194 12.6504C19.9567 13.9714 21.17 15.6083 21.8592 17.561H36.2895L39.6924 20.964L33.6619 27.856L29.3543 24.4531L25.9083 27.8991L22.4623 24.4531H21.8592C21.1413 26.5207 19.8921 28.1862 18.1117 29.4498C16.3312 30.7133 14.3354 31.3451 12.1242 31.3451Z",fill:e})})]}),zt=({fill:e="#ffffff"})=>ft.jsxs("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_396_7450",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"42",height:"42",children:ft.jsx("rect",{x:"0.870605",y:"0.552734",width:"40.7419",height:"40.7419",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_396_7450)",children:ft.jsx("path",{d:"M21.2414 37.8998C18.8931 37.8998 16.6863 37.4542 14.6209 36.563C12.5555 35.6718 10.7589 34.4623 9.23105 32.9344C7.70323 31.4066 6.4937 29.61 5.60247 27.5446C4.71124 25.4792 4.26562 23.2724 4.26562 20.924C4.26562 18.5757 4.71124 16.3689 5.60247 14.3035C6.4937 12.2381 7.70323 10.4415 9.23105 8.91366C10.7589 7.38584 12.5555 6.17632 14.6209 5.28509C16.6863 4.39386 18.8931 3.94824 21.2414 3.94824C23.5897 3.94824 25.7966 4.39386 27.862 5.28509C29.9274 6.17632 31.724 7.38584 33.2518 8.91366C34.7796 10.4415 35.9892 12.2381 36.8804 14.3035C37.7716 16.3689 38.2172 18.5757 38.2172 20.924C38.2172 23.2724 37.7716 25.4792 36.8804 27.5446C35.9892 29.61 34.7796 31.4066 33.2518 32.9344C31.724 34.4623 29.9274 35.6718 27.862 36.563C25.7966 37.4542 23.5897 37.8998 21.2414 37.8998ZM19.5438 34.3774V32.6798C18.5536 32.5383 17.5987 32.2695 16.6792 31.8734C15.7597 31.4773 14.9038 30.9964 14.1116 30.4305L12.9233 31.6612C13.857 32.3969 14.8826 32.9981 16.0001 33.4649C17.1177 33.9318 18.299 34.2359 19.5438 34.3774ZM22.939 34.3774C24.1839 34.2359 25.3651 33.9318 26.4827 33.4649C27.6003 32.9981 28.6259 32.3969 29.5596 31.6612L28.3713 30.4305C27.5791 30.9964 26.7232 31.4773 25.8037 31.8734C24.8842 32.2695 23.9293 32.5383 22.939 32.6798V34.3774ZM21.2414 29.4119C23.5897 29.4119 25.5915 28.5844 27.2466 26.9292C28.9018 25.2741 29.7293 23.2724 29.7293 20.924C29.7293 18.5757 28.9018 16.574 27.2466 14.9189C25.5915 13.2637 23.5897 12.4361 21.2414 12.4361C18.8931 12.4361 16.8914 13.2637 15.2362 14.9189C13.5811 16.574 12.7535 18.5757 12.7535 20.924C12.7535 23.2724 13.5811 25.2741 15.2362 26.9292C16.8914 28.5844 18.8931 29.4119 21.2414 29.4119ZM31.9786 29.2422C32.7142 28.3085 33.3155 27.2829 33.7823 26.1653C34.2491 25.0478 34.5533 23.8665 34.6948 22.6216H32.9972C32.8557 23.6119 32.5869 24.5668 32.1908 25.4863C31.7947 26.4058 31.3137 27.2617 30.7479 28.0539L31.9786 29.2422ZM10.5042 29.2422L11.735 28.0114C11.1691 27.2192 10.6881 26.3704 10.292 25.4651C9.89593 24.5597 9.62715 23.6119 9.48568 22.6216H7.7881C7.92957 23.8665 8.23372 25.0478 8.70055 26.1653C9.16739 27.2829 9.76861 28.3085 10.5042 29.2422ZM21.2414 27.7144L16.1487 20.924L21.2414 14.1337L26.3342 20.924L21.2414 27.7144ZM7.7881 19.2265H9.48568C9.62715 18.2362 9.89593 17.2884 10.292 16.383C10.6881 15.4776 11.1691 14.6289 11.735 13.8366L10.5042 12.6059C9.76861 13.5396 9.16739 14.5652 8.70055 15.6828C8.23372 16.8003 7.92957 17.9816 7.7881 19.2265ZM32.9972 19.2265H34.6948C34.5533 17.9816 34.2421 16.8003 33.7611 15.6828C33.2801 14.5652 32.6718 13.5396 31.9362 12.6059L30.7479 13.7942C31.3137 14.5864 31.7947 15.4423 32.1908 16.3618C32.5869 17.2813 32.8557 18.2362 32.9972 19.2265ZM14.154 11.4176C14.9462 10.8517 15.795 10.3708 16.7004 9.97465C17.6058 9.57855 18.5536 9.30977 19.5438 9.1683V7.47072C18.299 7.61219 17.1177 7.91634 16.0001 8.38317C14.8826 8.85001 13.857 9.45123 12.9233 10.1868L14.154 11.4176ZM28.3713 11.4176L29.5596 10.2293C28.6259 9.49367 27.6003 8.88537 26.4827 8.40439C25.3651 7.92341 24.1839 7.61219 22.939 7.47072V9.1683C23.9293 9.30977 24.8842 9.57855 25.8037 9.97465C26.7232 10.3708 27.5791 10.8517 28.3713 11.4176Z",fill:e})})]}),Ht=({fill:e="#ffffff"})=>ft.jsx("svg",{width:"29",height:"35",viewBox:"0 0 29 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ft.jsx("path",{d:"M14.5964 19.3351C16.2782 19.3351 17.7135 18.7406 18.9024 17.5518C20.0912 16.3629 20.6857 14.9276 20.6857 13.2458C20.6857 11.564 20.0912 10.1286 18.9024 8.93976C17.7135 7.75089 16.2782 7.15646 14.5964 7.15646C12.9146 7.15646 11.4792 7.75089 10.2904 8.93976C9.1015 10.1286 8.50707 11.564 8.50707 13.2458C8.50707 14.9276 9.1015 16.3629 10.2904 17.5518C11.4792 18.7406 12.9146 19.3351 14.5964 19.3351ZM14.5964 34.9932C10.3629 33.9204 6.98475 31.6006 4.46204 28.034C1.93933 24.4675 0.677979 20.4659 0.677979 16.0294V5.41666L14.5964 0.197266L28.5148 5.41666V16.0294C28.5148 20.4659 27.2534 24.4675 24.7307 28.034C22.208 31.6006 18.8299 33.9204 14.5964 34.9932ZM14.5964 31.3397C16.3072 30.7887 17.8222 29.9261 19.1416 28.7517C20.4609 27.5774 21.6136 26.2508 22.5994 24.7719C21.3526 24.134 20.055 23.6483 18.7066 23.3148C17.3583 22.9814 15.9882 22.8147 14.5964 22.8147C13.2045 22.8147 11.8344 22.9814 10.4861 23.3148C9.13775 23.6483 7.84015 24.134 6.59329 24.7719C7.57918 26.2508 8.7318 27.5774 10.0511 28.7517C11.3705 29.9261 12.8856 30.7887 14.5964 31.3397Z",fill:e})}),Wt=({fill:e="#ffffff"})=>ft.jsxs("svg",{width:"40",height:"39",viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_3181_32839",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"40",height:"39",children:ft.jsx("rect",{x:"0.985352",y:"0.263672",width:"38.6622",height:"38.6622",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_3181_32839)",children:ft.jsx("path",{d:"M5.81836 34.0933V5.09668H34.815V8.31853H15.4839V30.8715H34.815V34.0933H5.81836ZM18.7058 27.6496V11.5404H36.4259V27.6496H18.7058ZM26.7604 22.0114C27.4585 22.0114 28.0357 21.7832 28.4921 21.3267C28.9486 20.8703 29.1768 20.2931 29.1768 19.595C29.1768 18.8969 28.9486 18.3197 28.4921 17.8633C28.0357 17.4068 27.4585 17.1786 26.7604 17.1786C26.0623 17.1786 25.4851 17.4068 25.0286 17.8633C24.5722 18.3197 24.344 18.8969 24.344 19.595C24.344 20.2931 24.5722 20.8703 25.0286 21.3267C25.4851 21.7832 26.0623 22.0114 26.7604 22.0114Z",fill:e})})]}),Kt={error:{container:"bluxcc:bg-light-red-50 bluxcc:border bluxcc:border-alert-error",text:"bluxcc:text-alert-error",icon:ft.jsx(()=>ft.jsxs("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2175_4398",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:ft.jsx("rect",{x:"0.5",width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2175_4398)",children:ft.jsx("path",{d:"M9.87486 10.9054H11.1249V6.22605H9.87486V10.9054ZM10.4999 13.085C10.6906 13.085 10.8504 13.0205 10.9794 12.8915C11.1085 12.7624 11.173 12.6026 11.173 12.4119C11.173 12.2212 11.1085 12.0613 10.9794 11.9323C10.8504 11.8033 10.6906 11.7388 10.4999 11.7388C10.3092 11.7388 10.1493 11.8033 10.0203 11.9323C9.89125 12.0613 9.82673 12.2212 9.82673 12.4119C9.82673 12.6026 9.89125 12.7624 10.0203 12.8915C10.1493 13.0205 10.3092 13.085 10.4999 13.085ZM10.4999 18.4071L2.09277 10L10.4999 1.59293L18.9069 10L10.4999 18.4071Z",fill:"#EC2929"})})]}),{})},success:{container:"bluxcc:bg-white bluxcc:border bluxcc:border-alert-success",text:"bluxcc:text-alert-success",icon:ft.jsx(()=>ft.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2175_4610",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:ft.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2175_4610)",children:ft.jsx("path",{d:"M8.81697 13.5448L14.4195 7.9423L13.5413 7.06418L8.81697 11.7886L6.44197 9.41355L5.56384 10.2917L8.81697 13.5448ZM10.0011 17.9167C8.90613 17.9167 7.8769 17.7089 6.91342 17.2933C5.94995 16.8778 5.1119 16.3138 4.39926 15.6015C3.68662 14.8891 3.12238 14.0514 2.70655 13.0883C2.29085 12.1253 2.08301 11.0963 2.08301 10.0015C2.08301 8.90647 2.29079 7.87723 2.70634 6.91376C3.1219 5.95029 3.68586 5.11223 4.39822 4.39959C5.11058 3.68695 5.94829 3.12272 6.91134 2.70689C7.8744 2.29119 8.90335 2.08334 9.99822 2.08334C11.0932 2.08334 12.1225 2.29112 13.0859 2.70668C14.0494 3.12223 14.8875 3.68619 15.6001 4.39855C16.3127 5.11091 16.877 5.94862 17.2928 6.91168C17.7085 7.87473 17.9163 8.90369 17.9163 9.99855C17.9163 11.0936 17.7086 12.1228 17.293 13.0863C16.8775 14.0497 16.3135 14.8878 15.6011 15.6004C14.8888 16.3131 14.0511 16.8773 13.088 17.2931C12.125 17.7088 11.096 17.9167 10.0011 17.9167Z",fill:"#00BD81"})})]}),{})},info:{container:"bluxcc:bg-light-blue-50 bluxcc:border bluxcc:border-alert-info",text:"bluxcc:text-alert-info",icon:ft.jsx(()=>ft.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2175_4860",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:ft.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2175_4860)",children:ft.jsx("path",{d:"M10 13.5833C10.1181 13.5833 10.217 13.5434 10.2969 13.4635C10.3767 13.3837 10.4167 13.2847 10.4167 13.1667C10.4167 13.0486 10.3767 12.9497 10.2969 12.8698C10.217 12.7899 10.1181 12.75 10 12.75C9.88194 12.75 9.78299 12.7899 9.70312 12.8698C9.62326 12.9497 9.58333 13.0486 9.58333 13.1667C9.58333 13.2847 9.62326 13.3837 9.70312 13.4635C9.78299 13.5434 9.88194 13.5833 10 13.5833ZM9.70833 11H10.2917V6H9.70833V11ZM10.0035 17.25C9.00118 17.25 8.05861 17.0598 7.17583 16.6794C6.29306 16.299 5.52521 15.7826 4.87229 15.1304C4.21924 14.4782 3.70229 13.7113 3.32146 12.8298C2.94049 11.9481 2.75 11.006 2.75 10.0035C2.75 9.00118 2.94021 8.05861 3.32063 7.17583C3.70104 6.29306 4.21736 5.52521 4.86958 4.87229C5.52181 4.21924 6.28868 3.70229 7.17021 3.32146C8.05188 2.94049 8.99396 2.75 9.99646 2.75C10.9988 2.75 11.9414 2.94021 12.8242 3.32063C13.7069 3.70104 14.4748 4.21736 15.1277 4.86958C15.7808 5.52181 16.2977 6.28868 16.6785 7.17021C17.0595 8.05187 17.25 8.99396 17.25 9.99646C17.25 10.9988 17.0598 11.9414 16.6794 12.8242C16.299 13.7069 15.7826 14.4748 15.1304 15.1277C14.4782 15.7808 13.7113 16.2977 12.8298 16.6785C11.9481 17.0595 11.006 17.25 10.0035 17.25Z",fill:"#5093FF"})})]}),{})},warn:{container:"bluxcc:bg-white bluxcc:border bluxcc:border-alert-warning",text:"bluxcc:text-alert-warning",icon:ft.jsx(()=>ft.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("mask",{id:"mask0_2175_4934",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:ft.jsx("rect",{width:"20",height:"20",fill:"#D9D9D9"})}),ft.jsx("g",{mask:"url(#mask0_2175_4934)",children:ft.jsx("path",{d:"M9.37486 10.9054H10.6249V6.22605H9.37486V10.9054ZM9.99986 13.085C10.1906 13.085 10.3504 13.0205 10.4794 12.8915C10.6085 12.7624 10.673 12.6026 10.673 12.4119C10.673 12.2212 10.6085 12.0613 10.4794 11.9323C10.3504 11.8033 10.1906 11.7388 9.99986 11.7388C9.80916 11.7388 9.6493 11.8033 9.52028 11.9323C9.39125 12.0613 9.32673 12.2212 9.32673 12.4119C9.32673 12.6026 9.39125 12.7624 9.52028 12.8915C9.6493 13.0205 9.80916 13.085 9.99986 13.085ZM9.99986 18.4071L1.59277 10L9.99986 1.59293L18.4069 10L9.99986 18.4071Z",fill:"#FA8F02"})})]}),{})},none:{container:"",text:"",icon:null}},$t=({type:e,message:t,className:n=""})=>{const{container:r,text:o,icon:i}=Kt[e],a=q(e=>e.config.appearance);return ft.jsxs("div",{style:{borderRadius:a.borderRadius},className:`bluxcc:flex bluxcc:items-center bluxcc:gap-2 bluxcc:px-3 bluxcc:h-10 bluxcc:max-w-[184px] ${r} ${o} ${n}`,children:[i,ft.jsx("span",{className:"bluxcc:text-sm bluxcc:font-medium bluxcc:select-none",children:t})]})},Xt=({icon:e,onInfo:t,onBack:n,title:r,closeButton:o=!1,onClose:i})=>{const a=q(e=>e.config.appearance),{modal:s}=q(e=>e);return ft.jsxs("div",{className:"bluxcc:flex bluxcc:w-full bluxcc:items-center bluxcc:justify-between bluxcc:h-16",children:["info"===e?ft.jsx("div",{onClick:t,className:"bluxcc:flex bluxcc:size-5 bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-center",children:ft.jsx(ht,{fill:De(a.textColor,.7)})}):"back"===e?ft.jsx("div",{onClick:n,className:"bluxcc:flex bluxcc:size-5 bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-center",children:ft.jsx(mt,{fill:De(a.textColor,.7)})}):ft.jsx("div",{className:"bluxcc:size-5"}),ft.jsx("div",{className:"bluxcc:flex bluxcc:justify-center bluxcc:items-center",children:"none"===s.alert.type?ft.jsx("p",{className:"bluxcc:grow bluxcc:text-center bluxcc:text-base bluxcc:font-medium bluxcc:select-none",children:r}):ft.jsx("div",{children:ft.jsx($t,{type:s.alert.type,message:s.alert.message})})}),o?ft.jsx("div",{onClick:i,className:"bluxcc:size-5 bluxcc:cursor-pointer",children:ft.jsx(gt,{fill:De(a.textColor,.7)})}):ft.jsx("div",{className:"bluxcc:size-5"})]})},Gt=()=>(e,t)=>He(e,"en",t||{}),Qt=()=>{const e=q(e=>e.config.appearance);return ft.jsx("div",{className:"bluxcc:flex bluxcc:h-8 bluxcc:w-full bluxcc:items-center bluxcc:justify-center",children:ft.jsx("div",{className:"bluxcc:absolute bluxcc:right-0 bluxcc:left-0",style:{borderTopWidth:e.borderWidth,borderTopColor:e.borderColor}})})},Zt=({variant:e="default",size:t="medium",startIcon:n,endArrow:r,isRecent:o=!1,label:i,onClick:a,onChange:s,onEnter:c,onSubmit:u,inputType:f="text"})=>{const p=q(e=>e),{appearance:d}=p.config,h=Gt(),[y,m]=l.useState(i||""),[g,b]=l.useState(!1),[v,w]=l.useState(!1),S=e=>"email"===f?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e):""!==e.trim();return ft.jsxs("div",{onClick:"input"===e?void 0:a,className:`bluxcc:flex ${"input"===e?"bluxcc:cursor-text":"bluxcc:cursor-pointer"} ${"small"===t?"bluxcc:size-[96px] bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:gap-2 bluxcc:py-4":"bluxcc:!h-14 bluxcc:w-full bluxcc:items-center bluxcc:py-2 bluxcc:pr-3.5 bluxcc:pl-[10px]"}`,style:{borderRadius:d.borderRadius,color:d.textColor,borderColor:v?d.accentColor:d.borderColor,backgroundColor:d.fieldBackground,borderWidth:d.borderWidth},onMouseEnter:t=>{"social"===e||v||(t.currentTarget.style.borderColor=d.accentColor,t.currentTarget.style.transition="border-color 0.35s ease-in-out")},onMouseLeave:t=>{"social"===e||v||(t.currentTarget.style.borderColor=d.borderColor)},children:[ft.jsx("span",{style:{backgroundColor:d.background,borderRadius:d.borderRadius,borderColor:d.borderColor,borderWidth:d.borderWidth},className:"bluxcc:flex bluxcc:size-10 bluxcc:shrink-0 bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden bluxcc:transition-[border-radius] bluxcc:duration-300",children:n}),ft.jsx("div",{className:("small"===t?"bluxcc:mt-0":"bluxcc:ml-4")+" bluxcc:relative bluxcc:flex bluxcc:h-full bluxcc:flex-1 bluxcc:items-center",children:"input"===e?ft.jsxs(ft.Fragment,{children:[ft.jsx("input",{id:"bluxcc-input",type:f,value:y,onChange:e=>{const t=e.target.value;m(t),b(S(t)),s?.(t)},onKeyDown:e=>{"Enter"===e.key&&g&&c?.(y)},placeholder:h("email"),className:"bluxcc:mr-1 bluxcc:h-full bluxcc:w-full bluxcc:bg-transparent bluxcc:outline-hidden bluxcc:focus:outline-hidden",style:{color:d.textColor},onFocus:()=>w(!0),onBlur:()=>{w(!1),S(y)||b(!1)}}),ft.jsx("div",{className:"bluxcc:flex bluxcc:h-10 bluxcc:w-[100px] bluxcc:items-center bluxcc:justify-center bluxcc:bg-transparent",children:ft.jsx("button",{disabled:!g,onClick:()=>u?.(y),className:"bluxcc:absolute bluxcc:right-0 bluxcc:flex bluxcc:h-8 bluxcc:w-[68px]! bluxcc:items-center bluxcc:justify-center bluxcc:border bluxcc:!text-sm bluxcc:font-medium bluxcc:transition-[border-radius,background,border-color] bluxcc:duration-200",style:{background:d.fieldBackground,borderRadius:d.borderRadius,borderColor:g?d.accentColor:d.borderColor,color:g?d.accentColor:"#999999",borderWidth:d.borderWidth},children:h("submit")})})]}):ft.jsx("span",{className:("small"===t?"bluxcc:text-sm bluxcc:leading-[16px]":"bluxcc:text-base")+" bluxcc:font-medium bluxcc:select-none",children:i})}),o&&ft.jsx("div",{className:"bluxcc:px-2 bluxcc:py-1 bluxcc:text-xs bluxcc:font-normal",style:{color:d.accentColor,borderRadius:d.borderRadius,backgroundColor:`${De(d.accentColor,.1)}`},children:h("recent")}),r&&"medium"===t&&ft.jsx("span",{className:"bluxcc:ml-auto bluxcc:flex bluxcc:items-center",children:ft.jsx(yt,{fill:`${De(d.textColor,.7)}`})})]})},Yt=()=>{const e=Gt(),[t,n]=l.useState(!0),r=q(e=>e),{setRoute:o,logoutAction:i,setAlert:a}=r,s=r.config.appearance,c=r.user?.address,u=0!==r.balances.balances.length?r.balances.balances.find(e=>"native"===e.asset_type).balance:"0";return ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col bluxcc:items-center bluxcc:justify-center",children:[ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:mb-6 bluxcc:flex bluxcc:flex-col bluxcc:items-center bluxcc:justify-center",children:[ft.jsxs("div",{className:"bluxcc:text-center bluxcc:text-2xl bluxcc:h-8 bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:gap-2",style:{color:s.accentColor},children:[ft.jsx("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:justify-center",children:ft.jsx("p",{className:"bluxcc:select-none",style:{verticalAlign:"middle",paddingTop:t?"0px":"8px"},children:u?t?`${Ue(u)} XLM`:"******":e("loading")})}),ft.jsx("div",{className:"bluxcc:transition-all",children:t?ft.jsx("div",{onClick:()=>n(!1),className:"bluxcc:cursor-pointer",children:ft.jsx(Ft,{fill:s.accentColor})}):ft.jsx("div",{onClick:()=>n(!0),className:"bluxcc:cursor-pointer",children:ft.jsx(Vt,{fill:s.accentColor})})})]}),ft.jsx("p",{className:"bluxcc:!mt-4 bluxcc:leading-[16px] bluxcc:inline-flex bluxcc:cursor-pointer bluxcc:text-sm bluxcc:select-none",onClick:()=>{Pe(c).then(()=>{Pe(c),a("info","Address Copied"),setTimeout(()=>{a("none","")},1e3)}).catch(()=>{})},style:{color:De(s.textColor,.7)},children:ft.jsxs("span",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-1",children:[c?Ve(c,5):"",ft.jsx(xt,{fill:De(s.textColor,.7)})]})})]}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:space-x-3",children:[ft.jsx(Zt,{size:"small",label:e("send"),startIcon:ft.jsx(Tt,{fill:s.textColor}),onClick:()=>{o(N.SEND)}}),ft.jsx(Zt,{size:"small",label:e("receive"),startIcon:ft.jsx(Dt,{fill:s.textColor}),onClick:()=>{o(N.RECEIVE)}})]}),ft.jsxs("div",{className:"bluxcc:mt-[16px] bluxcc:w-full bluxcc:space-y-2",children:[ft.jsx(Zt,{endArrow:!0,label:e("balances"),startIcon:ft.jsx(Ut,{fill:s.textColor}),onClick:()=>{o(N.BALANCES)}}),ft.jsx(Zt,{endArrow:!0,label:e("activity"),startIcon:ft.jsx(Et,{fill:s.textColor}),onClick:()=>{o(N.ACTIVITY)}})]}),ft.jsx(Qt,{}),ft.jsxs("div",{style:{color:s.textColor},onClick:()=>{i()},className:"bluxcc:flex bluxcc:h-12 bluxcc:w-full bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-center bluxcc:gap-2",children:[ft.jsx(St,{fill:s.textColor}),e("logout")]})]})},Jt={small:"bluxcc:h-8 bluxcc:!text-sm bluxcc:gap-1",medium:"bluxcc:h-10 bluxcc:!text-sm bluxcc:gap-2",large:"bluxcc:h-[52px] bluxcc:!text-base bluxcc:gap-2"},en=({size:e="large",variant:t="outline",state:n="enabled",children:r,startIcon:o,endIcon:i,onClick:a,style:s,className:c})=>{const u=q(e=>e.config.appearance),l={borderRadius:u.borderRadius,cursor:"disabled"===n?"not-allowed":"pointer",opacity:"disabled"===n?.5:1,pointerEvents:"disabled"===n?"none":void 0,...s};return"outline"===t?Object.assign(l,{border:`1px solid ${u.borderColor}`,color:u.accentColor,backgroundColor:u.background,borderWidth:u.borderWidth}):"fill"===t?Object.assign(l,{backgroundColor:u.accentColor,fontWeight:"500",color:je(u.accentColor)}):"text"===t?Object.assign(l,{color:u.accentColor,backgroundColor:"transparent"}):"tonal"===t&&Object.assign(l,{color:u.accentColor,backgroundColor:De(u.accentColor,.1)}),"selected"===n&&(l.boxShadow=`0 0 0 2px ${u.accentColor}`),ft.jsxs("button",{onClick:a,disabled:"disabled"===n,className:`bluxcc:flex bluxcc:justify-center bluxcc:items-center bluxcc:px-[10px] bluxcc:transition-all bluxcc:duration-300 bluxcc:w-full ${Jt[e]} ${c??""} bluxcc:transition-all bluxcc:duration-300`,style:l,children:[o&&ft.jsx("span",{children:o}),ft.jsx("span",{children:r}),i&&ft.jsx("span",{children:i})]})},tn=()=>ft.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("g",{clipPath:"url(#clip0_238_2232)",children:ft.jsx("path",{d:"M41.06 12.5H38.94L17.5 63.18L17.565 63.205H23.285L27.5775 53.065C36.4925 56.07 46.155 56.02 55.04 52.9225L59.39 63.205H62.435L62.5 63.18L41.06 12.5ZM41.1025 53.3675C36.76 53.3675 32.445 52.665 28.3275 51.2925L41.3375 20.5325L54.2925 51.1525C50.05 52.6175 45.5925 53.3675 41.1025 53.3675Z",fill:"#0691B7"})}),ft.jsx("defs",{children:ft.jsx("clipPath",{id:"clip0_238_2232",children:ft.jsx("rect",{width:"45",height:"52.5",fill:"white",transform:"translate(17.5 12.5)"})})})]}),nn=({fill:e="#221542"})=>ft.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("path",{d:"M24 32.6489C24 32.4316 24.177 32.2562 24.3941 32.2493C30.8491 32.0454 36.0454 26.8491 36.2494 20.3941C36.2562 20.177 36.4317 20 36.6489 20H55.6067C55.8239 20 56 20.176 56 20.3932V43.0339C56 43.2512 55.8239 43.4272 55.6067 43.4272H44.7877C44.5705 43.4272 44.3944 43.2511 44.3944 43.0339V33.7948C44.3944 33.3973 43.8568 33.2414 43.6304 33.5683C39.3932 39.6869 32.369 43.7288 24.3941 43.8579C24.1769 43.8615 24 43.6851 24 43.4679V32.6489Z",fill:e}),ft.jsx("path",{d:"M56 48.7019C56 48.4846 55.8239 48.3086 55.6067 48.3086H24.3933C24.1761 48.3086 24 48.4846 24 48.7019V59.5209C24 59.7381 24.1761 59.9141 24.3933 59.9141H55.6067C55.8239 59.9141 56 59.7381 56 59.5209V48.7019Z",fill:e})]}),rn=()=>ft.jsxs("svg",{width:"80",height:"82",viewBox:"0 0 80 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("path",{d:"M35.3956 22.5711C35.3861 22.3324 35.6417 22.1832 35.8491 22.3053C36.0382 22.4165 36.2205 22.5257 36.4099 22.6313C37.4552 23.198 38.4402 23.8684 39.3497 24.6324C40.7641 25.8554 41.9528 27.3151 42.8621 28.9455C43.8192 30.6016 44.5515 32.3765 45.0399 34.224C45.3754 35.475 45.5109 36.7708 45.4414 38.0637C45.4231 38.2364 45.4614 38.4102 45.5506 38.5595C45.6395 38.7088 45.7746 38.8255 45.9357 38.8923C46.0974 38.9554 46.275 38.9655 46.4431 38.9209C46.6109 38.8763 46.76 38.7794 46.8686 38.6444C47.9575 37.49 49.2774 34.882 49.72 33.9747C49.8026 33.8053 50.0113 33.7465 50.1619 33.8612C50.8686 34.4006 52.7431 36.0635 54.3348 39.5289C54.8774 40.6445 55.2013 41.8521 55.4406 43.0659C55.6754 44.1598 55.7118 45.2684 55.6845 46.3866C55.5946 50.0708 54.0887 53.6243 51.5016 56.404C49.2163 58.8592 46.2232 60.5283 42.9103 61.1014C40.0638 61.638 37.1237 61.3821 34.4141 60.3617C33.5021 59.9866 32.622 59.5388 31.7826 59.0225C30.5229 58.3338 29.4357 57.3655 28.4361 56.3377C26.8193 54.5515 25.6161 52.5121 24.9068 50.178C24.5955 49.0177 24.4013 47.8294 24.3271 46.6307C24.2318 44.6775 24.4841 42.6145 25.143 40.8279C26.148 38.1032 27.8486 35.4733 30.1752 33.7232C32.312 32.1263 34.0955 30.2591 34.9939 27.7544C35.3492 26.6941 35.5128 25.5795 35.477 24.4623C35.477 23.8311 35.4204 23.2014 35.3956 22.5711Z",fill:"#1D1F20"}),ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5092 22.014C34.4771 21.2324 35.3603 20.746 36.0555 21.1393C36.0946 21.1614 36.1328 21.183 36.1703 21.2043C36.3258 21.2925 36.47 21.3743 36.6196 21.4546C37.7453 22.0415 38.8061 22.7356 39.7859 23.5265L39.7898 23.5297L39.7936 23.5329C41.3229 24.8038 42.6081 26.3202 43.5916 28.0139C44.6147 29.7161 45.3976 31.5403 45.92 33.439C46.2872 34.7551 46.4354 36.1183 46.3591 37.4784L46.3582 37.4956L46.3563 37.5128C46.3533 37.5404 46.3597 37.5682 46.3745 37.5919C46.3878 37.6134 46.4071 37.63 46.4292 37.6404C46.4532 37.6479 46.4787 37.6486 46.503 37.6424C46.5296 37.6356 46.554 37.6206 46.5722 37.599L46.5896 37.5781L46.6089 37.5585C47.1119 37.0459 47.7023 36.169 48.2413 35.2651C48.7715 34.3758 49.2213 33.5139 49.4475 33.0683C49.7105 32.5499 50.4333 32.3104 50.9821 32.7128C51.7957 33.3096 53.8186 35.0512 55.5239 38.6163C56.1217 39.8002 56.4715 41.0643 56.7246 42.2971C56.9837 43.4612 57.0205 44.6257 56.9918 45.7613C56.8942 49.6099 55.258 53.3101 52.4616 56.1977C49.9898 58.7499 46.7462 60.4917 43.1488 61.0911C40.0664 61.6486 36.8829 61.3818 33.9491 60.3197L33.9391 60.3162L33.9292 60.3122C32.9525 59.9264 32.0099 59.4658 31.1106 58.9353C29.7188 58.2008 28.5375 57.1829 27.4844 56.1423L27.4756 56.1335L27.467 56.1244C25.7243 54.2739 24.4206 52.1531 23.6522 49.7227L23.6488 49.712L23.6458 49.7015C23.3106 48.5005 23.1015 47.2705 23.0215 46.03L23.0212 46.0255L23.021 46.0211C22.9183 43.999 23.1884 41.8485 23.9103 39.9671C24.9876 37.1598 26.8221 34.4156 29.3717 32.5723L29.3726 32.5716L29.3735 32.571C31.5326 31.0201 33.2623 29.2581 34.1303 26.9378C34.4711 25.9579 34.628 24.9279 34.5935 23.8956L34.5932 23.8848V23.8741C34.5932 23.4867 34.5711 23.1205 34.5477 22.7336C34.5338 22.5039 34.5195 22.267 34.5092 22.014ZM35.9708 22.6629C35.9941 23.0563 36.0174 23.4692 36.0178 23.8633C36.0562 25.054 35.8741 26.2417 35.48 27.3719L35.4777 27.3786L35.4752 27.3852C34.4776 30.0585 32.5064 32.0197 30.2323 33.6533C27.9527 35.3018 26.2572 37.804 25.2485 40.4326C24.6032 42.1142 24.3492 44.0779 24.4438 45.9513C24.5179 47.0971 24.7108 48.233 25.0197 49.3423C25.7228 51.5602 26.9127 53.5016 28.5193 55.21C29.5346 56.2124 30.6026 57.1191 31.8152 57.7561L31.8312 57.7647L31.8467 57.7738C32.6822 58.2677 33.5579 58.6964 34.4653 59.0555C37.1519 60.026 40.0661 60.2688 42.8877 59.7576L42.8929 59.7567L42.8983 59.7558C46.1757 59.2108 49.1436 57.6227 51.4143 55.2782C53.9889 52.6198 55.4787 49.2303 55.5675 45.7286C55.5953 44.6352 55.5567 43.5894 55.3298 42.5735L55.3287 42.5679L55.3275 42.5624C55.0844 41.3775 54.7625 40.2368 54.237 39.1983L54.2336 39.1917L54.2304 39.1849C52.883 36.3656 51.3452 34.8042 50.5043 34.0966C50.2497 34.5829 49.8889 35.2495 49.4801 35.9349C48.9416 36.8378 48.2887 37.8277 47.6667 38.4674C47.4611 38.703 47.1839 38.8729 46.8721 38.9525C46.5502 39.0347 46.2094 39.0161 45.8996 38.8997L45.8928 38.8972L45.8861 38.8945C45.5767 38.7713 45.3182 38.5562 45.1479 38.282C44.9813 38.0136 44.9077 37.7022 44.9373 37.3919C45.0038 36.1777 44.8706 34.9609 44.5427 33.7862L44.5426 33.785L44.5422 33.7839C44.0511 31.9985 43.3146 30.2834 42.3526 28.6833L42.3498 28.6789L42.3472 28.6743C41.4443 27.1183 40.2643 25.7253 38.8606 24.558C37.9655 23.8358 36.9975 23.201 35.9708 22.6629Z",fill:"#FABA0D"}),ft.jsx("path",{d:"M38.1531 41.1875C38.3545 41.2919 38.5256 41.3944 38.7087 41.4911C39.2749 41.7821 39.8084 42.1261 40.3012 42.5182C41.0673 43.146 41.7112 43.895 42.2037 44.7317C42.722 45.5816 43.1188 46.4927 43.3834 47.4408C43.565 48.0827 43.6384 48.7478 43.6008 49.4113C43.591 49.4999 43.6117 49.5891 43.6599 49.6658C43.7082 49.7424 43.7813 49.8023 43.8685 49.8366C43.9562 49.8691 44.0524 49.8743 44.1434 49.8513C44.2342 49.8283 44.3151 49.7786 44.3738 49.7094C45.0942 48.9858 45.5615 48.0501 45.9462 47.158C47.0249 47.9768 47.8597 48.9885 48.418 50.1634C48.7119 50.7359 48.8874 51.3555 49.017 51.9786C49.1442 52.5398 49.1639 53.1089 49.1491 53.6828C49.1004 55.5736 48.2847 57.3973 46.8835 58.8238C45.6456 60.0838 44.0243 60.9405 42.2297 61.2347C40.688 61.51 39.0953 61.3786 37.6277 60.8549C37.1336 60.6625 36.6569 60.4327 36.2023 60.1678C35.52 59.8142 34.931 59.3173 34.3896 58.7899C33.5138 57.873 32.8621 56.8264 32.4779 55.6287C32.3093 55.0331 32.2041 54.4232 32.1639 53.8081C32.1122 52.8056 32.249 51.7468 32.6059 50.8299C33.1502 49.4316 34.0714 48.082 35.3316 47.1838C36.4891 46.3642 37.4551 45.4059 37.9417 44.1204C38.1342 43.5763 38.2229 43.0044 38.2034 42.431C38.2034 42.0159 38.1531 41.6021 38.1531 41.1875Z",fill:"#FABA0D"})]}),on=({fill:e="#B8BAC4"})=>ft.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsxs("g",{clipPath:"url(#clip0_54_32)",children:[ft.jsx("path",{d:"M39.898 61.6041C38.776 62.2821 37.324 62.3741 36.07 61.6801L32.782 59.8601C29.404 57.9961 28.194 53.7401 30.088 50.3761L33.282 44.6981L38.256 59.5521C38.556 60.4561 39.156 61.1621 39.896 61.6061L39.898 61.6041ZM50.746 32.0461L46.51 44.6961L39.898 32.9501L49.154 16.4981C49.614 15.6801 50.854 15.9381 50.95 16.8681L51.664 23.5781C51.972 26.4341 51.656 29.3221 50.744 32.0461H50.746Z",fill:e}),ft.jsx("path",{d:"M46.5099 44.6961L41.5399 59.5501C41.2379 60.4501 40.6399 61.1541 39.8999 61.6021C39.1579 61.1581 38.5539 60.4521 38.2579 59.5501L33.2839 44.6961L39.8979 32.9501L46.5099 44.6961Z",fill:"black"}),ft.jsx("path",{d:"M39.8979 32.9499L33.2799 44.6959L29.0459 32.0459C28.1339 29.3199 27.8179 26.4339 28.1259 23.5779L28.8399 16.8679C28.9399 15.9359 30.1759 15.6779 30.6339 16.4979L39.8979 32.9499ZM47.0099 59.8599L43.7239 61.6799C42.4639 62.3739 41.0179 62.2799 39.8979 61.6019C40.6399 61.1539 41.2379 60.4499 41.5379 59.5499L46.5079 44.6959L49.7019 50.3739C51.5959 53.7379 50.3859 57.9939 47.0099 59.8599Z",fill:e})]}),ft.jsx("defs",{children:ft.jsx("clipPath",{id:"clip0_54_32",children:ft.jsx("rect",{width:"24",height:"48",fill:"white",transform:"translate(28.0001 16)"})})})]}),an=({fill:e="#310CCC"})=>ft.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.1224 25.6667C34.9877 21.2577 30.9854 18 26.2222 18C20.5766 18 16 22.5766 16 28.2222C16 33.8678 20.5766 38.4444 26.2222 38.4444C30.9854 38.4444 34.9877 35.1868 36.1224 30.7778H44.963V39.2963H50.0741V30.7778H53.4814V39.2963H58.5926V30.7778H62V25.6667H36.1224ZM31.3333 28.2222C31.3333 31.045 29.045 33.3333 26.2222 33.3333C23.3995 33.3333 21.1111 31.045 21.1111 28.2222C21.1111 25.3995 23.3995 23.1111 26.2222 23.1111C29.045 23.1111 31.3333 25.3995 31.3333 28.2222Z",fill:e}),ft.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.8776 56.3333C43.0123 60.7423 47.0146 64 51.7778 64C57.4234 64 62 59.4233 62 53.7777C62 48.1321 57.4234 43.5555 51.7778 43.5555C47.0146 43.5555 43.0123 46.8132 41.8776 51.2222H33.037V42.7036H27.9259V51.2222H24.5186V42.7036H19.4075V51.2222H16V56.3333H41.8776ZM46.6667 53.7777C46.6667 50.955 48.955 48.6666 51.7778 48.6666C54.6005 48.6666 56.8889 50.955 56.8889 53.7777C56.8889 56.6005 54.6005 58.8888 51.7778 58.8888C48.955 58.8888 46.6667 56.6005 46.6667 53.7777Z",fill:e})]}),sn=({fill:e="#C19CFC"})=>ft.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("rect",{width:"80",height:"80",fill:"#14142B"}),ft.jsx("path",{d:"M31.4709 25.298C32.4989 23.5176 33.6931 22.7759 34.9056 22.7037C37.3649 22.5412 42.8633 26.5906 41.1236 28.9951L44.3825 34.6802C46.4644 36.425 48.5728 37.7992 50.7331 38.7119C50.3293 40.4023 51.2694 41.0081 52.2177 41.6045C50.9529 39.3902 53.4296 38.1604 54.7645 40.3573C56.1435 42.2914 56.5128 44.2986 55.6869 45.862C54.4658 48.2032 51.1897 49.9382 49.7051 52.1168C52.7276 49.3783 56.7936 49.6856 58.4012 46.5034C59.4023 44.5328 56.8993 38.6941 55.7311 36.7234C53.9213 33.6954 51.6641 34.5719 51.4091 35.5484C49.0112 34.2374 46.8769 32.1586 44.6984 30.4227C45.7173 29.5283 46.2973 28.2356 45.1824 27.5394C42.8983 26.0936 40.2459 21.7728 36.8026 20.9318C36.4598 20.847 36.1106 20.8011 35.7638 20.8011C33.9691 20.8011 32.2139 22.0183 31.4709 25.298Z",fill:"#4E4B66"}),ft.jsx("path",{d:"M37.3473 76.875C40.0511 76.875 42.6867 76.5119 45.1848 75.8381C29.8061 79.9719 20.4061 62.3648 32.0948 49.9836C27.7906 48.8179 25.0244 44.4789 25.2962 39.2993C2.07278 56.3288 13.0876 76.875 37.3473 76.875ZM45.1893 75.8369C45.2134 75.83 45.2371 75.8244 45.2613 75.8175C45.2376 75.8238 45.213 75.8306 45.1893 75.8369Z",fill:e}),ft.jsx("path",{d:"M40.2192 20.5976C41.2212 21.2484 42.1605 22.1161 43.0301 22.9927C51.1726 21.2124 46.0253 13.3299 50.2589 10.2479C44.9099 12.1098 48.2739 20.8412 40.2192 20.5976Z",fill:e}),ft.jsx("path",{d:"M26.8951 26.9884L31.4711 25.2979C30.3556 16.0778 43.0391 12.3357 38.7527 3.125C38.5683 13.5557 25.8671 13.791 26.8951 26.9884Z",fill:e}),ft.jsx("path",{d:"M38.4804 47.0009C40.7549 45.9524 43.0213 44.5328 45.2963 45.2018C42.8014 43.5662 39.7365 44.3524 36.6443 44.5693C32.4899 44.8584 28.2741 44.4967 25.2961 39.2994C26.5614 45.8709 32.4198 49.7938 38.4804 47.0009Z",fill:e}),ft.jsx("path",{d:"M36.8114 13.5378C34.22 17.0091 30.8738 20.3717 31.4711 25.2978C32.358 21.3837 34.6862 20.4074 36.8028 20.9316C40.246 21.7726 42.8984 26.0934 45.1825 27.5392C46.2975 28.2354 45.7175 29.5281 44.6985 30.4225C46.877 32.1584 49.0113 34.2372 51.4092 35.5482C51.6642 34.5717 53.9215 33.6952 55.7311 36.7232C56.8994 38.6939 59.4025 44.5326 58.4013 46.5032C56.7937 49.6854 52.7277 49.3781 49.7051 52.1166C47.8608 48.7001 44.1722 47.8319 40.439 47.2809C41.9587 46.1148 43.5043 45.0662 45.2963 45.2017C43.0213 44.5326 40.755 45.9522 38.4804 47.0008C32.4198 49.7937 26.5614 45.8707 25.2962 39.2992C25.0244 44.4787 27.7906 48.8178 32.0948 49.9834C20.3866 62.3852 29.8376 80.03 45.2613 75.8175C58.4191 72.2194 68.125 59.8815 68.125 45.2017C68.125 32.1856 60.4915 21.0042 49.5827 16.1321C50.0835 19.0154 50.7158 21.7993 45.6651 25.6141C44.0753 24.2399 42.3011 21.9446 40.2191 20.5976C44.9184 20.7423 45.7265 17.8314 46.6576 15.0113C43.6573 14.0307 40.5251 13.5327 37.3768 13.5327C37.1884 13.5327 36.9999 13.5346 36.8114 13.5378ZM36.592 29.1214C37.1715 29.2386 37.7602 29.7267 38.296 30.2782C39.1656 31.1731 39.9915 31.3272 41.045 30.3869L44.3826 34.68L41.1237 28.9949C41.08 29.4471 40.7199 29.5552 40.281 29.5281C39.5171 29.4799 38.5533 28.9317 37.5421 28.9312C37.2284 28.9312 36.9102 28.9841 36.592 29.1214ZM52.2178 41.6043C52.7536 40.6734 53.4821 40.0676 54.7646 40.3571C54.272 39.5461 53.6237 39.2022 53.0655 39.2022C52.1108 39.2022 51.4197 40.2072 52.2178 41.6043Z",fill:e}),ft.jsx("path",{d:"M34.4399 16.6296C32.5865 19.1329 31.0581 21.8274 31.4711 25.2982C32.358 21.3841 34.6862 20.4077 36.8028 20.932C40.246 21.773 42.8984 26.0937 45.1825 27.5396C46.2975 28.2358 45.7175 29.5285 44.6985 30.4229C46.877 32.1588 49.0113 34.2376 51.4093 35.5486C51.6642 34.5722 53.9215 33.6956 55.7311 36.7236C56.8994 38.6942 59.4025 44.533 58.4013 46.5036C56.7938 49.6858 52.7277 49.3785 49.7051 52.117C47.8608 48.7006 44.1722 47.8324 40.439 47.2814C41.9587 46.1152 43.5043 45.0666 45.2963 45.2021C43.0213 44.533 40.755 45.9526 38.4805 47.0012C32.4198 49.7941 26.5614 45.8711 25.2962 39.2996C25.0244 44.4791 27.7906 48.8181 32.0948 49.9838C24.4708 58.056 25.8148 68.3512 31.9363 73.395C49.0996 76.8656 65.2613 63.3887 65.2613 45.2021C65.2613 33.9757 59.0073 24.2586 49.8813 19.5311C49.7143 21.3481 48.7482 23.2915 45.6651 25.6144C44.0753 24.2402 42.3011 21.945 40.2191 20.5979C43.3373 20.6884 44.7513 19.4412 45.6123 17.7592C42.9339 16.9055 40.134 16.4768 37.3318 16.4768C36.3666 16.4768 35.401 16.5274 34.4399 16.6296Z",fill:"#14142B"}),ft.jsx("path",{d:"M32.0948 49.9834C20.3866 62.3853 29.8376 80.03 45.2613 75.8175C27.6154 76.6125 29.3631 55.9857 40.5533 50.1193C44.5761 50.6797 48.7213 51.3942 50.7158 55.0814C53.7284 52.3523 57.7949 52.6503 59.4111 49.4681C60.0612 48.1941 59.2358 45.2926 58.2606 42.8694C58.6471 44.3616 58.796 45.7353 58.4013 46.5033C56.7937 49.6854 52.7277 49.3781 49.7051 52.1166C47.8608 48.7001 44.1722 47.8319 40.439 47.2809C41.9587 46.1148 43.5043 45.0663 45.2963 45.2017C43.0213 44.5326 40.755 45.9523 38.4804 47.0008C32.4198 49.7937 26.5614 45.8708 25.2962 39.2992C25.0244 44.4788 27.7906 48.8178 32.0948 49.9834Z",fill:"#262338"}),ft.jsx("path",{d:"M29.1416 26.4583L33.7175 25.6012C32.6021 16.3811 43.9749 14.1667 39.6486 5.625C39.6486 14.1667 27.6402 14.0533 29.1416 26.4583Z",fill:"#14142B"})]}),cn=({fill:e="black"})=>ft.jsx("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ft.jsx("path",{d:"M22.7898 38.3729C29.1931 21.8198 42.7306 18 42.7306 18C42.7306 18 38.3401 22.7294 35.2299 28.5503C32.12 34.3711 30.4735 44.9214 32.3029 47.832C41.267 46.0129 48.5848 35.8263 49.3165 26.9131C52.8484 29.4202 57.9147 33.2796 58.8296 44.7394C58.8296 44.7394 59.308 49.8328 56.2685 54.7441C53.2287 59.6554 46.7554 61.1106 46.7554 61.1106C46.7554 61.1106 40.3524 63.1116 33.4007 61.1106C26.7728 59.2032 17.2916 52.5875 22.7898 38.3729Z",fill:e})}),un=({fill:e="black"})=>ft.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsxs("g",{clipPath:"url(#clip0_44_35)",children:[ft.jsx("path",{d:"M27.8949 12.4346L25.2459 13.7842L12.4541 20.2997C12.4109 19.9698 12.3891 19.6374 12.389 19.3047C12.3907 17.9771 12.7393 16.673 13.4001 15.5216C14.0609 14.3702 15.0111 13.4113 16.1565 12.7401C17.3019 12.0689 18.6028 11.7086 19.9303 11.6948C21.2578 11.6811 22.5659 12.0144 23.725 12.6617L25.2412 11.8891L25.4674 11.7737C24.0784 10.7656 22.4378 10.1611 20.7267 10.0271C19.0157 9.8931 17.3009 10.2348 15.7719 11.0144C14.2429 11.794 12.9593 12.9812 12.0628 14.4448C11.1663 15.9083 10.692 17.5912 10.6922 19.3075C10.6922 19.5445 10.7012 19.7806 10.7192 20.0158C10.7444 20.3489 10.6705 20.6819 10.5069 20.9731C10.3432 21.2642 10.0971 21.5005 9.79954 21.6521L9 22.0598V23.9614L11.354 22.7616L12.1163 22.3726L12.8674 21.99L26.3526 15.119L27.8679 14.3473L31 12.751V10.8504L27.8949 12.4346Z",fill:e}),ft.jsx("path",{d:"M31 14.6539L13.6334 23.4963L12.1181 24.2698L9 25.8586V27.7584L12.0967 26.1807L14.7457 24.8311L27.5505 18.3063C27.5938 18.6384 27.6156 18.9729 27.6157 19.3078C27.6148 20.6369 27.2664 21.9427 26.6049 23.0955C25.9435 24.2484 24.992 25.2081 23.8449 25.8796C22.6978 26.551 21.3951 26.9107 20.066 26.9231C18.737 26.9354 17.4278 26.5999 16.2685 25.9499L16.1754 25.9992L14.5316 26.8369C15.9203 27.8451 17.5606 28.4497 19.2714 28.584C20.9822 28.7184 22.6968 28.3771 24.2258 27.5981C25.7548 26.819 27.0386 25.6324 27.9355 24.1693C28.8323 22.7063 29.3073 21.0238 29.3078 19.3078C29.3078 19.0686 29.2985 18.8294 29.2808 18.5929C29.2557 18.26 29.3295 17.9271 29.4929 17.636C29.6564 17.3448 29.9022 17.1085 30.1995 16.9566L31 16.5489V14.6539Z",fill:e})]}),ft.jsx("defs",{children:ft.jsx("clipPath",{id:"clip0_44_35",children:ft.jsx("rect",{width:"22",height:"18.6157",fill:"white",transform:"translate(9 10)"})})})]}),ln=({fill:e="black"})=>ft.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ft.jsx("path",{d:"M12.7847 3.8762L11.1792 4.69416L3.42667 8.64294C3.40045 8.443 3.38726 8.24156 3.38718 8.03991C3.38824 7.23531 3.59948 6.44495 3.99999 5.74711C4.40049 5.04928 4.97635 4.46818 5.67054 4.06138C6.36472 3.65458 7.15314 3.4362 7.9577 3.42786C8.76225 3.41952 9.55503 3.62152 10.2575 4.01385L11.1764 3.54563L11.3135 3.47568C10.4717 2.86469 9.47736 2.49834 8.44036 2.41713C7.40337 2.33591 6.36411 2.543 5.43745 3.01549C4.51079 3.48799 3.73281 4.20749 3.1895 5.09449C2.64619 5.98149 2.3587 7.00143 2.35881 8.0416C2.35881 8.18526 2.36426 8.32836 2.37517 8.47089C2.39044 8.67273 2.34567 8.87458 2.2465 9.05105C2.14733 9.22751 1.99818 9.3707 1.81782 9.4626L1.33325 9.70968V10.8622L2.75989 10.135L3.2219 9.89922L3.67713 9.66737L11.85 5.5031L12.7684 5.03545L14.6666 4.068V2.91608L12.7847 3.8762ZM14.6666 5.22104L4.1414 10.5801L3.22302 11.0489L1.33325 12.0118V13.1632L3.21005 12.207L4.81551 11.389L12.576 7.43462C12.6022 7.63588 12.6154 7.83863 12.6155 8.0416C12.615 8.84713 12.4038 9.63852 12.0029 10.3372C11.602 11.0359 11.0253 11.6176 10.3302 12.0245C9.63497 12.4314 8.84544 12.6494 8.03995 12.6569C7.23446 12.6644 6.44101 12.4611 5.7384 12.0671L5.68199 12.097L4.68577 12.6047C5.52738 13.2157 6.52152 13.5822 7.55835 13.6636C8.59519 13.745 9.63434 13.5382 10.561 13.066C11.4877 12.5938 12.2658 11.8747 12.8093 10.988C13.3528 10.1013 13.6407 9.08162 13.641 8.0416C13.641 7.89662 13.6354 7.75165 13.6247 7.60836C13.6094 7.40659 13.6541 7.20481 13.7532 7.02837C13.8523 6.85193 14.0012 6.70869 14.1814 6.61665L14.6666 6.36957V5.22104Z",fill:e})}),fn=(e,t)=>{switch(e){case"Rabet":return ft.jsx(on,{fill:t?"#ffffff":"#B8BAC4"});case"Freighter":return ft.jsx(an,{fill:t?"#7863FF":"#310CCC"});case"Albedo":return ft.jsx(tn,{});case"LOBSTR":return ft.jsx(cn,{fill:t?"#ffffff":"#1a8da0"});case"xBull":return ft.jsx(sn,{fill:t?"#FFFFFF":"#C19CFC"});case"Hana":return ft.jsx(nn,{fill:t?"#E6E0F7":"#221542"});case"Hot":return ft.jsx(rn,{});default:return null}},pn=()=>{const e=Gt(),t=l.useRef(!1),[n,r]=l.useState(!1),[o,i]=l.useState(null),a=q(e=>e),{user:s,wallets:c,connectWalletSuccessful:u,setRoute:f}=a,p=a.waitingStatus,d=a.config.appearance;l.useEffect(()=>{if(!s||!s.authValue)return;const e=c.find(e=>e.name===s.authValue);e&&i(e)},[c,s]),l.useEffect(()=>{!t.current&&o&&(t.current=!0,h(o))},[o]);const h=async e=>{if("sendTransaction"===p)try{const{sendTransaction:t,user:n,sendTransactionSuccessful:r}=a;if(!t)return;if(!n)return;r({result:await rt(e,t.xdr,n.address,t.options,a.config.transports||{}),xdr:t.xdr,options:t.options,rejecter:t.rejecter,resolver:t.resolver})}catch(e){throw r(!0),e}else try{const{publicKey:t}=await e.connect();if(t&&""!==t.trim()){const n=await(async e=>{try{const{passphrase:t}=await e.getNetwork();return t}catch(e){return""}})(e);u(t,n),(e=>{const t=Ne(),n=[e,...t.filter(t=>t!==e)];localStorage.setItem(Ce,JSON.stringify(n))})(e.name),setTimeout(()=>{f(N.SUCCESSFUL)},1e3)}}catch(e){throw r(!0),e}};return s?ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:select-none",children:[n?ft.jsx("div",{className:"bluxcc:mb-6 bluxcc:flex bluxcc:items-center bluxcc:justify-center",children:ft.jsx(Nt,{})}):ft.jsx("div",{className:"bluxcc:mb-6 bluxcc:flex bluxcc:size-20 bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden bluxcc:rounded-full bluxcc:border",style:{borderColor:d.borderColor,borderWidth:d.borderWidth},children:fn(s.authValue??"",Me(d.background))}),ft.jsxs("div",{className:"bluxcc:flex-col bluxcc:space-y-2 bluxcc:text-center bluxcc:font-medium",children:[ft.jsx("p",{className:"bluxcc:text-xl",children:n?"login"===p?e("loginFailed"):e("signingFailed",{walletName:s.authValue??"wallet"}):e("login"===p?"waitingFor":"signingWith",{walletName:s.authValue??"wallet"})}),ft.jsx("p",{className:"bluxcc:text-sm",children:e(n?"login"===p?"loginRetryMessage":"signingRetryMessage":"login"===p?"acceptConnection":"signRequestInWallet")})]}),ft.jsx(Qt,{}),n?ft.jsx(en,{onClick:()=>{r(!1),o&&h(o)},state:"enabled",variant:"outline",children:e("tryAgain")}):ft.jsx(en,{state:"enabled",variant:"outline",className:"bluxcc:cursor-default!",startIcon:ft.jsx(bt,{fill:d.accentColor}),children:e("login"===p?"connecting":"signing")})]}):"ERROR"},dn=({handleOpenAssets:e})=>{const t=q(e=>e.config.appearance);return ft.jsxs("div",{onClick:e,className:"bluxcc:flex bluxcc:cursor-pointer bluxcc:items-center bluxcc:gap-1 bluxcc:p-1",style:{borderColor:t.borderColor,borderWidth:t.borderWidth,borderRadius:t.borderRadius,backgroundColor:t.fieldBackground},children:[ft.jsx("div",{style:{backgroundColor:t.background,borderRadius:t.borderRadius,borderColor:t.borderColor,borderWidth:t.borderWidth},className:"bluxcc:flex bluxcc:size-10 bluxcc:shrink-0 bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden bluxcc:transition-[border-radius] bluxcc:duration-300",children:ft.jsx(un,{fill:je(t.fieldBackground)})}),ft.jsx("span",{children:"XLM"}),ft.jsx(Ct,{fill:t.accentColor})]})},hn=({assets:e,setSelectedAsset:t,setShowSelectAssetPage:n})=>{const r=Gt(),o=q(e=>e.config.appearance),[i,a]=l.useState(!1),[s,c]=l.useState(""),[u,f]=l.useState(null),p=()=>i?o.accentColor:o.borderColor;return ft.jsxs("div",{className:"bluxcc:h-[348px]",children:[ft.jsx("div",{children:ft.jsxs("div",{onFocus:()=>a(!0),onBlur:()=>a(!1),onMouseEnter:e=>{i||(e.currentTarget.style.borderColor=o.accentColor,e.currentTarget.style.transition="border-color 0.35s ease-in-out")},onMouseLeave:e=>{i||(e.currentTarget.style.borderColor=o.borderColor)},className:"bluxcc:flex bluxcc:h-14 bluxcc:items-center bluxcc:gap-2 bluxcc:p-4",style:{background:o.fieldBackground,borderWidth:o.borderWidth,"--tw-ring-color":p(),borderRadius:o.borderRadius,borderColor:p(),color:o.textColor},children:[ft.jsx(vt,{fill:o.textColor}),ft.jsx("input",{autoFocus:!0,type:"text",placeholder:r("search"),value:s,onChange:e=>c(e.target.value),className:"bluxcc:bg-transparent bluxcc:outline-hidden",style:{color:o.textColor}})]})}),ft.jsxs("div",{className:"bluxcc:absolute bluxcc:right-0 bluxcc:left-0 bluxcc:mt-4 bluxcc:gap-2 bluxcc:overflow-y-auto",children:[e.map((r,i)=>ft.jsxs("div",{onClick:()=>{(e=>{t(e),n(!1)})(r)},onMouseEnter:()=>f(i),onMouseLeave:()=>f(null),className:"bluxcc:flex bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-between bluxcc:px-4 bluxcc:py-3",style:{background:u===i?o.fieldBackground:"transparent",color:o.textColor,borderBottomStyle:"dashed",borderBottomWidth:i<e.length-1?o.borderWidth:"0px",borderBottomColor:o.borderColor,transition:"all 0.2s ease-in-out"},children:[ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-[10px]",children:[ft.jsx("span",{className:"bluxcc:font-medium",children:r.logo}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col",children:[ft.jsx("span",{className:"bluxcc:text-xs bluxcc:font-medium",children:r.assetCode}),ft.jsx("span",{className:"bluxcc:text-xs",children:r.assetCode})]})]}),ft.jsx("span",{className:"bluxcc:font-medium",children:Ue(r.assetBalance)})]},r.assetType+r.assetIssuer)),0===e.length&&ft.jsx("div",{style:{color:o.textColor},className:"bluxcc:mt-2 bluxcc:text-center",children:r("noAssetsFound")})]})]})},yn=[{assetCode:"XLM",assetIssuer:"Stellar Foundation",assetType:"native",valueInCurrency:"10",assetBalance:"1000.1234",logo:ft.jsx(un,{})},{assetCode:"USDC",assetIssuer:"Centre Consortium",assetType:"credit_alphanum4",assetBalance:"500.5",valueInCurrency:"10",logo:ft.jsx(un,{})}],mn=()=>{const[e,t]=l.useState(!1),[n,r]=l.useState(yn[0]),o=q(e=>e.config.appearance),i=Gt(),a=()=>{t(!0)};return e?ft.jsx(hn,{assets:yn,setSelectedAsset:r,setShowSelectAssetPage:t}):ft.jsxs("div",{className:"bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:text-center",children:[ft.jsxs("div",{className:"bluxcc:relative bluxcc:mb-4 bluxcc:w-full bluxcc:p-4",style:{backgroundColor:o.fieldBackground,borderColor:o.borderColor,borderRadius:o.borderRadius,borderWidth:o.borderWidth},children:[ft.jsxs("div",{className:"bluxcc:flex bluxcc:justify-between bluxcc:text-sm",children:[ft.jsx("span",{style:{color:De(o.textColor,.7)},children:"From"}),ft.jsxs("span",{className:"bluxcc:cursor-pointer",children:["345.00"," ",ft.jsxs("span",{style:{color:o.accentColor},className:"bluxcc:mr-2 bluxcc:inline-flex bluxcc:cursor-pointer",children:[i("max")," ",ft.jsx(At,{fill:o.accentColor})]})]})]}),ft.jsxs("div",{className:"bluxcc:mt-2 bluxcc:flex bluxcc:items-center bluxcc:justify-between",children:[ft.jsx("input",{id:"bluxcc-input",type:"number",defaultValue:233,className:"bluxcc:w-full bluxcc:bg-transparent bluxcc:text-xl bluxcc:font-medium bluxcc:outline-none",style:{color:o.textColor}}),ft.jsx(dn,{handleOpenAssets:a})]}),ft.jsx("div",{className:"bluxcc:mt-1 bluxcc:text-left bluxcc:text-xs",style:{color:De(o.textColor,.7)},children:"≈ $23.74 USD"}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:h-8 bluxcc:w-full bluxcc:items-center bluxcc:justify-center",children:[ft.jsx("div",{className:"bluxcc:absolute bluxcc:right-0 bluxcc:left-0",style:{borderTopWidth:o.borderWidth,borderTopStyle:"solid",borderTopColor:o.borderColor}}),ft.jsx("div",{className:"bluxcc:z-20 bluxcc:p-2",style:{backgroundColor:o.fieldBackground,borderColor:o.borderColor,borderRadius:o.borderRadius,borderWidth:o.borderWidth},children:ft.jsx(Bt,{fill:o.accentColor})})]}),ft.jsx("div",{className:"bluxcc:flex bluxcc:justify-between bluxcc:text-sm",children:ft.jsx("span",{style:{color:De(o.textColor,.7)},children:"To"})}),ft.jsxs("div",{className:"bluxcc:mt-2 bluxcc:flex bluxcc:items-center bluxcc:justify-between",children:[ft.jsx("input",{id:"bluxcc-input",type:"number",defaultValue:233,className:"bluxcc:w-full bluxcc:bg-transparent bluxcc:text-xl bluxcc:font-medium bluxcc:outline-none",style:{color:o.textColor}}),ft.jsx(dn,{handleOpenAssets:a})]})]}),ft.jsxs("div",{className:"bluxcc:mb-2 bluxcc:flex bluxcc:w-full bluxcc:items-center bluxcc:justify-between bluxcc:px-4 bluxcc:py-2 bluxcc:text-sm",style:{backgroundColor:o.fieldBackground,borderRadius:o.borderRadius,borderColor:o.borderColor,borderWidth:o.borderWidth},children:[ft.jsx("span",{children:"Price Impact"}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-1 bluxcc:px-2.5 bluxcc:py-2",style:{backgroundColor:o.fieldBackground,borderRadius:o.borderRadius,borderColor:o.borderColor,borderWidth:o.borderWidth},children:[ft.jsx("span",{style:{color:o.accentColor},children:"%0.2"}),ft.jsx("span",{className:"bluxcc:h-2 bluxcc:w-2",style:{backgroundColor:"#32D74B"}})]})]}),ft.jsxs("div",{className:"bluxcc:ml-4 bluxcc:text-left bluxcc:text-xs",style:{color:De(o.textColor,.7)},children:["The estimated effect of your swap on the market price."," ",ft.jsx("span",{className:"bluxcc:cursor-pointer bluxcc:rounded-full",style:{color:o.accentColor},children:"learn more"})]}),ft.jsx(Qt,{}),ft.jsx(en,{size:"large",state:"enabled",variant:"outline",children:"Swap"})]})},gn=({button:e,onButtonClick:t,appearance:n})=>ft.jsx("button",{onClick:t,style:{borderRadius:n.borderRadius,color:n.textColor,borderColor:n.borderColor,backgroundColor:n.background,borderWidth:n.borderWidth},className:"bluxcc:border bluxcc:!px-3 bluxcc:!py-1 bluxcc:!text-sm bluxcc:font-medium bluxcc:transition-all bluxcc:duration-300",children:e}),bn=({label:e,autoFocus:t,type:n="text",placeholder:r="Input",error:o,iconRight:i,iconLeft:a,button:s,onButtonClick:c,customLabel:u,value:f,className:p,onChange:d})=>{const h=q(e=>e.config.appearance),[y,m]=l.useState(!1),g=()=>o?"#ec2929":y?h.accentColor:h.borderColor;return ft.jsxs("div",{className:"bluxcc:flex bluxcc:w-full bluxcc:flex-col",children:[e&&ft.jsxs("label",{style:{color:o?"#ec2929":h.textColor},className:"bluxcc:mb-1 bluxcc:ml-2 bluxcc:flex bluxcc:justify-between bluxcc:text-xs",children:[ft.jsx("span",{children:e}),ft.jsx("span",{children:u})]}),ft.jsxs("div",{className:`bluxcc:flex bluxcc:h-14 bluxcc:w-full bluxcc:items-center bluxcc:border bluxcc:px-4 bluxcc:py-2 bluxcc:transition-all bluxcc:duration-300 ${p}`,onFocus:()=>m(!0),onBlur:()=>m(!1),onMouseEnter:e=>{y||o||(e.currentTarget.style.borderColor=h.accentColor,e.currentTarget.style.transition="border-color 0.35s ease-in-out")},onMouseLeave:e=>{y||(e.currentTarget.style.borderColor=o?"#ec2929":h.borderColor)},style:{"--tw-ring-color":g(),borderRadius:h.borderRadius,borderColor:g(),backgroundColor:h.fieldBackground,borderWidth:h.borderWidth},children:[a&&ft.jsx("div",{className:"bluxcc:mr-2",children:a}),ft.jsx("input",{id:"bluxcc-input",autoComplete:"off",min:"number"===n?1:void 0,type:n,autoFocus:t,value:f,placeholder:r,className:"bluxcc:!mr-2 bluxcc:bg-transparent bluxcc:outline-hidden bluxcc:text-base bluxcc:font-medium",style:{color:h.textColor,width:s?"90%":"100%"},onChange:d}),s&&ft.jsx(gn,{button:s,onButtonClick:c,appearance:h}),i&&ft.jsx("div",{className:"bluxcc:ml-2",children:i})]}),o&&ft.jsx("p",{className:"bluxcc:mt-1 bluxcc:ml-2 bluxcc:text-xs bluxcc:text-alert-error",children:o})]})},vn=()=>{const e=Gt(),t=q(e=>e),[n,r]=l.useState({}),[o,i]=l.useState(!1),[a,s]=l.useState({memo:"",amount:"",address:""}),{appearance:c}=t.config,{balances:u}=t.balances,f=(e=>0!==e.length?e:[{assetBalance:"0",assetCode:"XLM",assetType:"native",assetIssuer:""}])(u.filter(e=>"liquidity_pool_shares"!==e.asset_type).filter(e=>"0.0000000"!==e.balance).map(e=>"native"===e.asset_type?{assetIssuer:"",assetCode:"XLM",assetBalance:e.balance,assetType:e.asset_type}:{assetBalance:e.balance,assetCode:e.asset_code,assetType:e.asset_type,assetIssuer:e.asset_issuer})),[p,d]=l.useState(f[0]),h=e=>t=>{s(n=>({...n,[e]:t.target.value})),r(t=>({...t,[e]:""}))};return o?ft.jsx(hn,{assets:f,setSelectedAsset:d,setShowSelectAssetPage:i}):ft.jsx(ft.Fragment,{children:ft.jsxs("div",{children:[ft.jsx("div",{className:"bluxcc:relative bluxcc:mb-4",children:ft.jsx(bn,{autoFocus:!0,type:"number",label:e("amount"),placeholder:"0.00",value:a.amount,onChange:h("amount"),error:n.amount,customLabel:ft.jsxs("span",{onClick:()=>{if(!p)return;const e=Number(p.assetBalance).toString();s(t=>({...t,amount:e}))},style:{color:c.accentColor},className:"bluxcc:mr-2 bluxcc:inline-flex bluxcc:cursor-pointer",children:[e("max")," ",ft.jsx(At,{fill:c.accentColor})]}),onButtonClick:()=>{i(!0)},button:ft.jsxs("span",{className:"bluxcc:flex bluxcc:justify-between bluxcc:!gap-1",children:[ft.jsx("span",{className:"bluxcc:flex bluxcc:items-center",children:ft.jsx(ln,{fill:je(c.background)})}),p?p.assetCode:"XLM"]})})}),ft.jsx("div",{className:"bluxcc:mb-4",children:ft.jsx(bn,{label:e("to"),placeholder:e("enterAddress"),value:a.address,onChange:h("address"),error:n.address,button:e("paste"),onButtonClick:async()=>{const e=await navigator.clipboard.readText();s(t=>({...t,address:e}))}})}),ft.jsx("div",{children:ft.jsx(bn,{label:e("memo"),placeholder:e("enterMemo"),value:a.memo,onChange:h("memo")})}),ft.jsx("div",{className:"bluxcc:flex bluxcc:h-8 bluxcc:w-full bluxcc:items-center bluxcc:justify-center",children:ft.jsx("div",{className:"bluxcc:absolute bluxcc:right-0 bluxcc:left-0",style:{borderTopColor:c.borderColor}})}),ft.jsx(en,{size:"large",variant:"outline",state:"enabled",onClick:async()=>{const n={};if(a.amount?Number(a.amount)>Number(p.assetBalance||"0")&&(n.amount=e("amountExceedsBalance")):n.amount=e("amountRequired"),a.address?O.StrKey.isValidEd25519PublicKey(a.address)||(n.address=e("addressInvalid")):n.address=e("addressRequired"),r(n),0===Object.keys(n).length)try{const e=await(async(e,t,n,r,o,i,a)=>{let s=null,c=null;try{c=await i.loadAccount(n)}catch{}try{s=await i.loadAccount(o)}catch{}if(!s)throw new Error("Inactive account cannot send a transaction.");if(!c&&"native"!==r.assetType)throw new Error("Cannot send non-native asset to an inactive account.");let u=new O.TransactionBuilder(s,{fee:"50000",networkPassphrase:a});if(c){let e=O.Asset.native();"native"!==r.assetType&&(e=new O.Asset(r.assetCode,r.assetIssuer)),u=u.addOperation(O.Operation.payment({amount:t,destination:n,asset:e}))}else u=u.addOperation(O.Operation.createAccount({startingBalance:t,destination:n}));return e&&(u=u.addMemo(O.Memo.text(e))),u.setTimeout(180).build().toXDR()})(a.memo,a.amount,a.address,p,t.user?.address,t.stellar?.servers.horizon,t.stellar?.activeNetwork||"");t.closeModal(),setTimeout(()=>{ot(e,{network:t.stellar?.activeNetwork||""})},250)}catch(e){n.address=e.message,r(n)}},children:e("sendButton")})]})})},wn=()=>{const e=Gt(),{loading:t}=q(e=>e.balances);return t?ft.jsx("p",{children:e("loading")}):ft.jsx(vn,{})},Sn=({otp:e,setOtp:t,error:n})=>{const r=e.length,o=l.useRef([]),i=q(e=>e.config.appearance);l.useEffect(()=>{n&&setTimeout(()=>o.current[0]?.focus(),1001)},[n]);const a=e=>{e.preventDefault();const n=e.clipboardData.getData("text").replace(/\D/g,"").slice(0,r);if(!n)return;const i=[...n.split(""),...Array(r-n.length).fill("")];t(i),setTimeout(()=>o.current[r-1]?.focus(),0)},s=e=>({borderRadius:i.borderRadius,color:i.accentColor,background:i.fieldBackground,"--tw-ring-color":n?"#FF6666":i.accentColor,borderColor:n?"#FF6666":e?i.accentColor:i.borderColor,borderWidth:i.borderWidth});return ft.jsx("div",{className:"bluxcc:flex bluxcc:gap-1",children:e.map((n,i)=>ft.jsx("input",{autoFocus:0===i,ref:e=>{o.current[i]=e},type:"text",inputMode:"numeric",maxLength:1,value:n,onChange:n=>((n,i)=>{const a=i.target.value.replace(/\D/g,"");if(!a)return;const s=[...e];s[n]=a[0],t(s),n<r-1&&a&&o.current[n+1]?.focus()})(i,n),onPaste:a,onKeyDown:n=>((n,r)=>{if("Backspace"===r.key){const r=[...e];r[n]?(r[n]="",t(r)):n>0&&(o.current[n-1]?.focus(),r[n-1]="",t(r))}})(i,n),className:"bluxcc:h-14 bluxcc:w-12 bluxcc:border bluxcc:text-center bluxcc:text-lg bluxcc:outline-hidden bluxcc:focus:ring-1",style:s(n)},i))})},xn=()=>{const e=Gt(),t=q(e=>e.config.appearance),n=q(e=>e.user),r=n?.authValue,[o,i]=l.useState(Array(6).fill("")),[a,s]=l.useState(!1);return l.useEffect(()=>{const e=o.join("");6===e.length&&(async e=>{s(!1),await new Promise(t=>{setTimeout(()=>{t("123456"===e)},200)})||(s(!0),setTimeout(()=>i(Array(6).fill("")),1e3))})(e)},[o,r]),ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:select-none",children:[ft.jsx("div",{style:{borderColor:t.borderColor,borderWidth:t.borderWidth},className:"bluxcc:mb-6 bluxcc:flex bluxcc:h-20 bluxcc:w-20 bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden bluxcc:rounded-full bluxcc:border-2",children:ft.jsx(It,{fill:t.textColor})}),ft.jsxs("div",{className:"bluxcc:flex-col bluxcc:space-y-1 bluxcc:text-center",children:[ft.jsx("p",{className:"bluxcc:text-xl bluxcc:font-medium",children:e("enterConfirmationCodeTitle")}),a?ft.jsx("p",{className:"bluxcc:flex bluxcc:h-10 bluxcc:items-center bluxcc:justify-center bluxcc:text-sm bluxcc:text-alert-error",children:e("invalidCodeError")}):ft.jsx("p",{className:"bluxcc:h-10 bluxcc:text-sm",children:e("enterConfirmationCodeHelp")})]}),ft.jsx("div",{className:"bluxcc:mt-6 bluxcc:text-center",children:ft.jsx(Sn,{otp:o,setOtp:i,error:a})}),ft.jsx(Qt,{}),ft.jsx(en,{size:"medium",state:"enabled",variant:"text",onClick:()=>{},style:{color:t.accentColor},children:e("resendCode")})]})},kn=()=>{const e=Gt(),t=q(e=>e),{config:n,closeModal:r,waitingStatus:o}=t,{appearance:i}=n,{sendTransaction:a}=t,s=a?.result?.hash,c=s?Ie(a?.options?.network||"",n.explorer,"transactionUrl",s):null;l.useEffect(()=>{"login"===o&&setTimeout(()=>{r()},1e3)},[]);return ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:select-none",children:[ft.jsx("div",{style:{background:De(i.accentColor,.1)},className:"bluxcc:mb-6 bluxcc:flex bluxcc:size-[68px] bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden bluxcc:rounded-full",children:ft.jsx(wt,{fill:i.accentColor})}),ft.jsxs("div",{className:"bluxcc:w-full bluxcc:flex-col bluxcc:space-y-2 bluxcc:text-center bluxcc:font-medium",children:[ft.jsx("p",{className:"bluxcc:text-xl",children:e("login"===o?"connectionSuccessfulTitle":"transactionSuccessfulTitle")}),ft.jsx("p",{className:"bluxcc:text-center bluxcc:text-sm bluxcc:leading-5",children:"login"===o?e("connectionSuccessfulMessage",{appName:Oe(n.appName)}):e("transactionSuccessfulMessage")})]}),"sendTransaction"===o&&s&&"string"==typeof c&&ft.jsx(en,{state:"enabled",variant:"outline",size:"small",className:"mt-4",onClick:()=>{c&&window.open(c,"_blank","noopener,noreferrer")},children:e("seeInExplorer")}),ft.jsx(Qt,{}),"login"===o?ft.jsx(en,{state:"enabled",variant:"outline",className:"bluxcc:cursor-default!",children:e("loggingIn")}):ft.jsx(en,{state:"enabled",variant:"fill",size:"large",onClick:()=>{if(r(),"sendTransaction"===o){if(!a)return;const{resolver:e,result:t}=a;e&&t&&e(t)}},children:e("done")})]})},En=()=>{const e=Gt(),[t,n]=l.useState(""),r=q(e=>e),{setShowAllWallets:o}=r,i=q(e=>e.config),a=q(e=>e.wallets),s=q(e=>e.connectWallet),c=q(e=>e.connectEmail),{appearance:u}=i,p=i.loginMethods||[],d=p.includes("passkey"),h=l.useMemo(()=>[...[...p].filter(e=>"passkey"!==e),...d?["passkey"]:[]],[p,d]),y=l.useMemo(()=>a.length>3?a.slice(2):[],[a]),m=l.useMemo(()=>a.length<=3?a:r.showAllWallets?a.slice(2,a.length):a.slice(0,2),[a,r.showAllWallets]),g=()=>{c(t)},b=()=>ft.jsxs("div",{className:"bluxcc:my-1 bluxcc:flex bluxcc:h-8 bluxcc:w-full bluxcc:items-center bluxcc:justify-center",children:[ft.jsx("div",{className:"bluxcc:absolute bluxcc:right-0 bluxcc:left-0 bluxcc:z-10",style:{borderTopWidth:u.borderWidth,borderTopStyle:"dashed",borderTopColor:u.borderColor}}),ft.jsx("span",{className:"bluxcc:z-20 bluxcc:w-auto bluxcc:px-2 bluxcc:text-sm bluxcc:font-medium bluxcc:select-none",style:{backgroundColor:u.background,color:u.borderColor},children:e("or")})]});return ft.jsxs("div",{className:"bluxcc:w-full",children:[u.logo&&ft.jsx("div",{className:"bluxcc:my-6 bluxcc:flex bluxcc:max-h-[80px] bluxcc:w-full bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden",children:ft.jsx("img",{src:u.logo,alt:i.appName,width:152,height:60,className:"bluxcc:max-h-[80px] bluxcc:max-w-[180px] bluxcc:select-none",loading:"eager",decoding:"async",draggable:"false",style:{contentVisibility:"auto"}})}),ft.jsx("div",{className:"bluxcc:space-y-2",children:h.map((t,i)=>{const a=h[i+1],c=h[i-1],l=h.includes("wallet"),p=l&&!r.showAllWallets&&"wallet"===t&&"email"===a||l&&"email"===t&&"wallet"!==c;return"wallet"===t?ft.jsxs(f.Fragment,{children:[m.map(e=>ft.jsx(Zt,{...e,label:e.name,startIcon:fn(e.name,Me(u.background)),onClick:()=>{s(e.name)}},e.name)),y.length>0&&!r.showAllWallets&&ft.jsx(Zt,{endArrow:!0,label:e("allStellarWallets"),startIcon:ft.jsx(un,{fill:je(u.fieldBackground)}),onClick:()=>{o(!0)}}),p&&b()]},"wallet"):r.showAllWallets||"email"!==t?r.showAllWallets||"passkey"!==t?null:ft.jsx("div",{className:"bluxcc:mt-6! bluxcc:flex bluxcc:h-4 bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-center bluxcc:text-sm bluxcc:leading-[28px] bluxcc:font-medium",style:{color:u.accentColor},children:e("logInWithPasskey")},"passkey"):ft.jsx(f.Fragment,{children:ft.jsxs(ft.Fragment,{children:[ft.jsx(Zt,{inputType:"email",variant:"input",startIcon:ft.jsx(jt,{fill:u.textColor}),onChange:e=>n(e),onEnter:g,onSubmit:g}),p&&b()]})},"email")})}),ft.jsx("footer",{className:"bluxcc:w-full bluxcc:cursor-pointer bluxcc:pt-[17px] bluxcc:text-center bluxcc:text-xs bluxcc:font-medium",children:ft.jsx("a",{"aria-label":"blux website",href:"https://blux.cc",target:"_blank",rel:"noreferrer",className:"bluxcc:no-underline",style:{color:u.textColor},children:e("poweredByBlux")})})]})};var Tn,An,Cn=Object.defineProperty,_n=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Rn=(e,t,n)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t)=>{for(var n in t||(t={}))On.call(t,n)&&Rn(e,n,t[n]);if(_n)for(var n of _n(t))Pn.call(t,n)&&Rn(e,n,t[n]);return e},In=(e,t)=>{var n={};for(var r in e)On.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_n)for(var r of _n(e))t.indexOf(r)<0&&Pn.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,i=1,s=40,c=-1,u=!0){if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let l,f;for(l=i;;l++){const n=8*t.getNumDataCodewords(l,r),o=a.getTotalBits(e,l);if(o<=n){f=o;break}if(l>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(r=e);let p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}o(p.length==f);const d=8*t.getNumDataCodewords(l,r);o(p.length<=d),n(0,Math.min(4,d-p.length),p),n(0,(8-p.length%8)%8,p),o(p.length%8==0);for(let e=236;p.length<d;e^=253)n(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach((e,t)=>h[t>>>3]|=e<<7-(7&t)),new t(l,r,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const i=21522^(t<<10|n);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=i-s%i,u=Math.floor(s/i);let l=[];const f=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let o=e.slice(r,r+u-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,f);n<c&&o.push(0),l.push(o.concat(i))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!=u-a||n>=c)&&p.push(t[e])});return o(p.length==s),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const a=t-i,s=!(t+1&2)?this.size-1-o:o;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const o of e){const e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const i=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(i,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=i;e.QrSegment=i})(Tn||(Tn={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((An=Tn||(Tn={})).QrCode||(An.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(Tn||(Tn={}));var Nn=Tn,Ln={L:Nn.QrCode.Ecc.LOW,M:Nn.QrCode.Ecc.MEDIUM,Q:Nn.QrCode.Ecc.QUARTILE,H:Nn.QrCode.Ecc.HIGH},Bn=128,Dn="L",Un="#FFFFFF",Mn="#000000",Fn=!1,Vn=1;
2
+ /**
3
+ * @license qrcode.react
4
+ * Copyright (c) Paul O'Shannessy
5
+ * SPDX-License-Identifier: ISC
6
+ */function qn(e,t=0){const n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}})}),n.join("")}function zn(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function Hn({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:a,boostLevel:s}){let c=f.useMemo(()=>{const r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...Nn.QrSegment.makeSegments(t)),e),[]);return Nn.QrCode.encodeSegments(r,Ln[t],n,void 0,void 0,s)},[e,t,n,s]);const{cells:u,margin:l,numCells:p,calculatedImageSettings:d}=f.useMemo(()=>{let e=c.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(r,o),n=e.length+2*t,s=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,i=Math.floor(.1*t),a=o/t,s=(r.width||i)*a,c=(r.height||i)*a,u=null==r.x?e.length/2-s/2:r.x*a,l=null==r.y?e.length/2-c/2:r.y*a,f=null==r.opacity?1:r.opacity;let p=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(l);p={x:e,y:t,w:Math.ceil(s+u-e),h:Math.ceil(c+l-t)}}return{x:u,y:l,h:c,w:s,excavation:p,opacity:f,crossOrigin:r.crossOrigin}}(e,a,t,i);return{cells:e,margin:t,numCells:n,calculatedImageSettings:s}},[c,a,i,r,o]);return{qrcode:c,margin:l,cells:u,numCells:p,calculatedImageSettings:d}}var Wn=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),Kn=f.forwardRef(function(e,t){const n=e,{value:r,size:o=Bn,level:i=Dn,bgColor:a=Un,fgColor:s=Mn,includeMargin:c=Fn,minVersion:u=Vn,boostLevel:l,marginSize:p,imageSettings:d}=n,h=In(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:y}=h,m=In(h,["style"]),g=null==d?void 0:d.src,b=f.useRef(null),v=f.useRef(null),w=f.useCallback(e=>{b.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[S,x]=f.useState(!1),{margin:k,cells:E,numCells:T,calculatedImageSettings:A}=Hn({value:r,level:i,minVersion:u,boostLevel:l,includeMargin:c,marginSize:p,imageSettings:d,size:o});f.useEffect(()=>{if(null!=b.current){const e=b.current,t=e.getContext("2d");if(!t)return;let n=E;const r=v.current,i=null!=A&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;i&&null!=A.excavation&&(n=zn(E,A.excavation));const c=window.devicePixelRatio||1;e.height=e.width=o*c;const u=o/T*c;t.scale(u,u),t.fillStyle=a,t.fillRect(0,0,T,T),t.fillStyle=s,Wn?t.fill(new Path2D(qn(n,k))):E.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+k,n+k,1,1)})}),A&&(t.globalAlpha=A.opacity),i&&t.drawImage(r,A.x+k,A.y+k,A.w,A.h)}}),f.useEffect(()=>{x(!1)},[g]);const C=jn({height:o,width:o},y);let _=null;return null!=g&&(_=f.createElement("img",{src:g,key:g,style:{display:"none"},onLoad:()=>{x(!0)},ref:v,crossOrigin:null==A?void 0:A.crossOrigin})),f.createElement(f.Fragment,null,f.createElement("canvas",jn({style:C,height:o,width:o,ref:w,role:"img"},m)),_)});Kn.displayName="QRCodeCanvas",f.forwardRef(function(e,t){const n=e,{value:r,size:o=Bn,level:i=Dn,bgColor:a=Un,fgColor:s=Mn,includeMargin:c=Fn,minVersion:u=Vn,boostLevel:l,title:p,marginSize:d,imageSettings:h}=n,y=In(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:m,cells:g,numCells:b,calculatedImageSettings:v}=Hn({value:r,level:i,minVersion:u,boostLevel:l,includeMargin:c,marginSize:d,imageSettings:h,size:o});let w=g,S=null;null!=h&&null!=v&&(null!=v.excavation&&(w=zn(g,v.excavation)),S=f.createElement("image",{href:h.src,height:v.h,width:v.w,x:v.x+m,y:v.y+m,preserveAspectRatio:"none",opacity:v.opacity,crossOrigin:v.crossOrigin}));const x=qn(w,m);return f.createElement("svg",jn({height:o,width:o,viewBox:`0 0 ${b} ${b}`,ref:t,role:"img"},y),!!p&&f.createElement("title",null,p),f.createElement("path",{fill:a,d:`M0,0 h${b}v${b}H0z`,shapeRendering:"crispEdges"}),f.createElement("path",{fill:s,d:x,shapeRendering:"crispEdges"}),S)}).displayName="QRCodeSVG";const $n=({value:e,title:t="",size:n=184,bgColor:r="#ffffff",fgColor:o="#00020f",level:i="Q",...a})=>ft.jsx("div",{children:ft.jsx(Kn,{className:"bluxcc:z-10",value:e,title:t,size:n,bgColor:r,fgColor:o,level:i,marginSize:1,imageSettings:{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw8NDQ8NDQ0PDQ0PDw4NDw0NDQ8PDQ0NFREWFhURExUYHSggGBolGxUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDQ0OFQ4PFSsdExkrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrK//AABEIAKwBJgMBIgACEQEDEQH/xAAXAAEBAQEAAAAAAAAAAAAAAAAAAQIH/8QAIRABAQABBAAHAAAAAAAAAAAAAAERAiFhgSIxQVFxsfD/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A7iAAACW8d+ygAAACSAoAAAAAAAAAAAAAAADOrVZZJptluLczwzFub9dtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmd/LtQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABLwoAAAAAQAAAAAAAAAAAAAAAAAABL+5UAAAAAAAAAAAEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAJYCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAARQAAAAAAAAAAAAEwoAAAACSqAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAS59NvmZ2yoAAAAAAAAAAAAACAomFAAAAAAAABKoAAAAA//2Q==",x:void 0,y:void 0,height:52,width:52,opacity:1,excavate:!0},...a})}),Xn=({fill:e="black",background:t="transparent"})=>ft.jsxs("svg",{width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ft.jsx("rect",{width:"52",height:"52",fill:t}),ft.jsx("path",{d:"M39.4391 8H8V12.4539H39.4391V8Z",fill:e}),ft.jsx("path",{d:"M12.4906 22.1818V8H8V22.1818V23.7749V28.2655V39.495V43.9856V44H12.4906V43.9856H39.3882V39.495H12.4906V28.2655H39.3882V23.7749H12.4906V22.1818Z",fill:e}),ft.jsx("path",{d:"M43.8933 12.4541H39.4395V23.7198H43.8933V12.4541Z",fill:e}),ft.jsx("path",{d:"M43.8933 28.1729H39.4395V39.4385H43.8933V28.1729Z",fill:e})]}),Gn=()=>{const e=Gt(),t=q(e=>e),{setAlert:n}=q(e=>e),r=t.config.appearance,o=t.user?.address;return ft.jsxs("div",{className:"bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:text-center",children:[ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:flex bluxcc:size-[208px] bluxcc:items-center bluxcc:justify-center",style:{position:"relative",borderRadius:r.borderRadius,color:r.textColor,borderColor:r.borderColor,backgroundColor:r.fieldBackground,borderWidth:r.borderWidth},children:[ft.jsx($n,{size:184,value:o,bgColor:r.fieldBackground,fgColor:r.accentColor,level:"Q"}),ft.jsx("div",{className:"bluxcc:z-20",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:r.background},children:ft.jsx(Xn,{fill:r.accentColor,background:r.fieldBackground})})]}),ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:space-y-2 bluxcc:font-medium",children:[ft.jsx("p",{className:"bluxcc:text-lg",children:"Your Address"}),ft.jsx("div",{className:"bluxcc:w-full bluxcc:px-2.5 bluxcc:py-3 bluxcc:h-14",style:{borderRadius:r.borderRadius,color:r.textColor,borderColor:r.borderColor,backgroundColor:r.fieldBackground,borderWidth:r.borderWidth},children:ft.jsx("p",{className:"bluxcc:w-[292px] bluxcc:text-sm bluxcc:!leading-[16px] bluxcc:break-all",style:{color:De(r.textColor,.7)},children:o})})]}),ft.jsx(Qt,{}),ft.jsx(en,{size:"large",state:"enabled",variant:"tonal",style:{color:r.accentColor},onClick:()=>{Pe(o),n("info",e("address_copied")),setTimeout(()=>{n("none","")},1e3)},endIcon:ft.jsx(kt,{fill:r.accentColor}),children:e("copy_address")})]})},Qn=()=>{const e=Gt();return ft.jsxs("div",{className:"bluxcc:mt-4 bluxcc:flex bluxcc:w-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:select-none",children:[ft.jsx("div",{className:"bluxcc:mb-6 bluxcc:flex bluxcc:size-[68px] bluxcc:items-center bluxcc:justify-center bluxcc:overflow-hidden",children:ft.jsx(Lt,{})}),ft.jsxs("div",{className:"bluxcc:w-full bluxcc:flex-col bluxcc:space-y-2 bluxcc:text-center bluxcc:font-medium",children:[ft.jsx("p",{className:"bluxcc:text-2xl",children:e("wrongNetwork")}),ft.jsx("p",{className:"bluxcc:text-center bluxcc:text-sm bluxcc:leading-5 bluxcc:tracking-[-2%]",children:e("wrongNetworkMessage")})]})]})},Zn=({tabs:e})=>{const t=q(e=>e.config.appearance),[n,r]=l.useState(0);return ft.jsxs(ft.Fragment,{children:[ft.jsx("div",{className:"bluxcc:flex bluxcc:gap-3 bluxcc:py-3",children:e.map((e,o)=>{const i=n===o;return ft.jsxs("div",{onClick:()=>r(o),role:"tab","aria-label":e.label,"aria-selected":n===o,tabIndex:n===o?0:-1,className:"bluxcc:flex bluxcc:gap-2 bluxcc:h-20 bluxcc:w-[96px] bluxcc:cursor-pointer bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:px-7 bluxcc:py-4 bluxcc:text-sm bluxcc:font-medium bluxcc:transition-all bluxcc:duration-300",style:{background:i?De(t.accentColor,.1):t.background,color:i?t.accentColor:t.textColor,borderRadius:t.borderRadius},children:[ft.jsx("span",{children:i?e.activeIcon:e.inActiveIcon}),ft.jsx("span",{children:e.label})]},o)})}),ft.jsx("div",{className:"bluxcc:overflow-y-auto",role:"tabpanel","aria-labelledby":`tab-${n}`,children:e[n]?.content})]})},Yn=({assets:e})=>{const[t,n]=l.useState(null),r=q(e=>e.config.appearance),o=Gt();return ft.jsxs("div",{className:"bluxcc:w-full",children:[e.map((o,i)=>ft.jsxs("div",{onMouseEnter:()=>n(i),onMouseLeave:()=>n(null),className:"bluxcc:flex bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-between bluxcc:py-2 bluxcc:w-full",style:{background:t===i?r.fieldBackground:"transparent",color:r.textColor,borderBottomStyle:"dashed",borderBottomWidth:i<e.length-1?r.borderWidth:"0px",borderBottomColor:r.borderColor,transition:"all 0.2s ease-in-out"},children:[ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-[10px]",children:[ft.jsx("span",{className:"bluxcc:font-medium bluxcc:size-10 bluxcc:flex bluxcc:items-center bluxcc:justify-center",style:{borderStyle:"solid",borderWidth:r.borderWidth,borderColor:r.borderColor,borderRadius:r.borderRadius},children:o.logo}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col",children:[ft.jsx("span",{className:"bluxcc:text-sm bluxcc:font-medium",children:o.assetCode}),ft.jsx("span",{className:"bluxcc:font-semibold bluxcc:text-xs",style:{color:De(r.textColor,.7)},children:o.assetCode})]})]}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col bluxcc:text-right",children:[ft.jsx("span",{className:"bluxcc:font-medium",children:Ue(o.assetBalance)}),ft.jsxs("span",{className:"bluxcc:font-semibold bluxcc:text-xs",style:{color:De(r.textColor,.7)},children:[Ue(o.valueInCurrency||"0"),"$"]})]})]},o.assetType+o.assetIssuer)),0===e.length&&ft.jsx("div",{style:{color:r.textColor},className:"bluxcc:mt-2 bluxcc:text-center",children:o("noAssetsFound")})]})},Jn=()=>{const e=Gt(),t=q(e=>e.config.appearance),{loading:n,error:r,balances:o}=q(e=>e.balances),i=o.map(e=>({..._e(e),logo:ft.jsx(un,{})})),a=[{label:e("assets"),activeIcon:ft.jsx(Mt,{fill:t.accentColor}),inActiveIcon:ft.jsx(Mt,{fill:t.textColor}),content:ft.jsx(Yn,{assets:i})}];return n?"Loading":r?"Error, try again.":ft.jsx(Zn,{tabs:a})};var er=f.memo(({tx:e})=>{const t=q(e=>e),n=t.config.appearance,r=Ie(t.stellar?.activeNetwork||"something",t.config.explorer,"transactionUrl",e.hash);return ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:justify-between",children:[ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:justify-start bluxcc:gap-3",children:[ft.jsx("div",{className:"bluxcc:flex bluxcc:size-10 bluxcc:items-center bluxcc:justify-center bluxcc:rounded-full",style:{backgroundColor:n.background},children:(e=>{switch(e){case"Receive":return ft.jsx(Pt,{});case"Send":return ft.jsx(_t,{});default:return ft.jsx(Ot,{})}})(e.title)}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col bluxcc:justify-start",children:[ft.jsx("p",{className:"bluxcc:text-start bluxcc:text-xs bluxcc:font-medium",style:{color:n.textColor},children:e.title}),ft.jsx("p",{className:"bluxcc:text-sm bluxcc:font-medium",children:e.description})]})]}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-2 bluxcc:text-xs",style:{color:De(n.textColor,.6)},children:[Re(e.date),ft.jsx("div",{className:"bluxcc:flex bluxcc:size-8 bluxcc:cursor-pointer bluxcc:items-center bluxcc:justify-center bluxcc:rounded-full",title:"View transaction details",onClick:()=>{r&&window.open(r,"_blank","noopener,noreferrer")},style:{background:n.fieldBackground},children:ft.jsx("span",{className:"bluxcc:flex bluxcc:items-center bluxcc:justify-center",children:ft.jsx(Rt,{})})})]})]})});const tr=e=>"native"===e.asset_type?"XLM":e.asset_code||"Pool",nr=()=>{const e=Gt(),t=q(e=>e),{loading:n,transactions:r}=q(e=>e.transactions),[o,i]=l.useState([]),a=t.config.appearance,s=t.user?.address,c=Ie(t.stellar?.activeNetwork,t.config.explorer,"accountUrl",s);l.useEffect(()=>{if(!r)return;const t=[];for(const n of r){const r=n.operations[0],o={hash:n.hash,description:"",date:n.created_at,title:ze(r.type)};if(n.operations.length>1)o.title=e("multiOperation");else if("payment"===r.type){let t=e("send");r.to.toLowerCase()===s.toLowerCase()&&(t=e("receive")),o.title=t,o.description=`${Ue(r.amount)} ${tr(r)}`}else r.type!==O.Horizon.HorizonApi.OperationResponseType.pathPaymentStrictSend&&r.type!==O.Horizon.HorizonApi.OperationResponseType.pathPayment||(console.log(r),o.title=e("swap"),o.description=`Received ${r.amount} ${tr(r)}`);t.push(o)}i(t)},[r]);const u=!n&&0===o.length;return ft.jsxs("div",{className:"bluxcc:flex bluxcc:h-[355px] bluxcc:flex-col",children:[n?ft.jsx("div",{style:{color:De(a.textColor,.7)},className:"bluxcc:flex bluxcc:h-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:text-center",children:e("loadingActivity")}):u?ft.jsx("div",{style:{color:De(a.textColor,.7)},className:"bluxcc:flex bluxcc:h-full bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:text-center",children:e("noActivityFound")}):o.map((e,t)=>ft.jsx("div",{style:{borderBottomStyle:"dashed",borderBottomWidth:t<o.length-1?a.borderWidth:"0px",borderBottomColor:a.borderColor},className:"bluxcc:p-2",children:ft.jsx(er,{tx:e})},t)),o.length>0&&c&&ft.jsx("div",{className:"bluxcc:absolute bluxcc:bottom-4 bluxcc:left-1/2 bluxcc:!mt-4 bluxcc:w-[calc(100%-3rem)] bluxcc:-translate-x-1/2 bluxcc:transform",children:ft.jsx(en,{state:"enabled",variant:"outline",size:"medium",onClick:()=>{c&&window.open(c,"_blank","noopener,noreferrer")},children:e("seeAllInExplorer")})})]})},rr=({operationsCount:e,sender:t,receiver:n,network:r,estimatedFee:o,action:i})=>{const a=q(e=>e.config.appearance),s=q(e=>e),{setAlert:c}=s,u=[{label:"Action",value:Oe(i)},{label:"Operations",value:e.toString()},{label:"Sender",value:Ve(t,5),isHighlighted:!0,isCopyable:!0,copyValue:t},{label:"Network",value:Ee[r].name},{label:"Estimated Fee",value:`${o} XLM`}];return n&&u.splice(3,0,{label:"To",value:Ve(n,5),isHighlighted:!0,isCopyable:!0,copyValue:n}),ft.jsx("div",{className:"bluxcc:w-full bluxcc:text-sm bluxcc:text-gray-800",children:u.map(({label:e,value:t,isHighlighted:n,isCopyable:r,copyValue:o},i)=>ft.jsxs("div",{className:"bluxcc:flex bluxcc:justify-between bluxcc:px-4 bluxcc:py-2",style:i===u.length-1?{}:{borderBottomColor:a.borderColor,borderBottomStyle:"dashed",borderBottomWidth:a.borderWidth},children:[ft.jsx("span",{style:{color:a.textColor},children:e}),ft.jsx("span",{className:""+(r?"bluxcc:cursor-pointer":""),style:{color:n?a.accentColor:a.textColor},onClick:()=>r&&o&&(Pe(o),c("info","Address Copied"),void setTimeout(()=>{c("none","")},1e3)),children:t})]},i))})},or=()=>{const e=Gt(),t=q(e=>e),n=t.config.appearance,{user:r,stellar:o,sendTransaction:i}=t;if(!i||!r||!o)return ft.jsx("div",{children:ft.jsx("p",{children:e("invalidXdr")})});const{xdr:a,options:s}=i,c=nt(a,s.network);if(!c)return ft.jsx("div",{children:ft.jsx("p",{children:e("invalidXdr")})});const u=r.authValue===j.Lobstr,l=(e=>{const t=Object.entries(ke).find(t=>t[1]===e);let n="";return n=t?t[0].toUpperCase():"MAINNET",n})(o.activeNetwork);return ft.jsxs("div",{className:"bluxcc:w-full",children:[ft.jsxs("p",{className:"bluxcc:mx-3 bluxcc:my-4 bluxcc:text-center bluxcc:text-sm bluxcc:font-medium bluxcc:select-none",children:[ft.jsxs("span",{className:"bluxcc:font-semibold bluxcc:capitalize",children:[t.config.appName," "]}),e("signTransactionPrompt")]}),ft.jsx(rr,{operationsCount:c.operations,sender:c.sender,receiver:c.receiver,network:s.network,estimatedFee:c.estimatedFee.toString(),action:c.action}),u&&ft.jsx("p",{className:"bluxcc:!my-2 bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:text-center bluxcc:!text-xs bluxcc:text-alert-error",children:e("lobstrWarning",{network:l})}),ft.jsxs("div",{className:"bluxcc:inline-flex bluxcc:h-14 bluxcc:w-full bluxcc:items-center bluxcc:justify-between bluxcc:border bluxcc:px-4",style:{marginTop:u?"0px":"16px",borderRadius:n.borderRadius,borderColor:n.borderColor},children:[ft.jsxs("div",{className:"bluxcc:inline-flex bluxcc:items-center bluxcc:gap-1 bluxcc:font-medium bluxcc:whitespace-nowrap",children:[ft.jsx("p",{className:"bluxcc:text-sm bluxcc:font-medium bluxcc:whitespace-nowrap",children:e("yourWallet")}),ft.jsx("p",{className:"bluxcc:mt-0.5 bluxcc:text-xs",style:{color:`${De(n.textColor,.8)}`},children:r.address?Ve(t.user?.address,5):e("noAddressFound")})]}),ft.jsx("div",{className:"bluxcc:overflow-hidden bluxcc:px-[10px] bluxcc:py-2",style:{borderRadius:n.borderRadius,backgroundColor:n.fieldBackground,color:n.textColor},children:ft.jsxs("p",{className:"bluxcc:max-w-[90px] bluxcc:text-xs bluxcc:font-normal",children:[Ue("0")," XLM"]})})]}),ft.jsx(Qt,{}),ft.jsx(en,{size:"large",state:"enabled",variant:"fill",onClick:async()=>{},children:e("approve")})]})},ir=()=>{const e=Gt(),t=q(e=>e.config.appearance);let n={logo:ft.jsx(un,{}),assetBalance:.43332,valueInCurrency:203};const r=[{label:e("network"),value:"Stellar",link:!0},{label:e("address"),value:"GFGE...MKLW",copyable:!0},{label:e("market_cap"),value:"2.45M"},{label:e("total_volume"),value:323},{label:e("all_time_high"),value:323}];return ft.jsxs("div",{children:[ft.jsxs("div",{className:"bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:gap-2 bluxcc:my-4",children:[ft.jsx("div",{className:"bluxcc:size-14 bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:rounded-full bluxcc:border",style:{borderColor:t.borderColor,borderWidth:t.borderWidth},children:n.logo}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col",children:[ft.jsxs("span",{className:"bluxcc:text-2xl bluxcc:font-medium",style:{color:t.accentColor},children:["$",Ue(n.valueInCurrency)]}),ft.jsxs("span",{className:"bluxcc:text-sm bluxcc:font-medium",style:{color:De(t.textColor,.7)},children:[Ue(n.assetBalance)," XLM"]})]})]}),ft.jsx("div",{className:"bluxcc:space-y-1",children:r.map((e,n)=>ft.jsxs("div",{className:"bluxcc:flex bluxcc:font-medium bluxcc:items-center bluxcc:justify-between bluxcc:text-xs bluxcc:h-8 bluxcc:px-4",style:{borderBottom:n<r.length-1?`${t.borderWidth} dashed ${t.borderColor}`:"none"},children:[ft.jsx("span",{children:e.label}),ft.jsxs("span",{className:"bluxcc:flex bluxcc:items-center bluxcc:gap-1 bluxcc:text-xs",style:{color:e.copyable||e.link?t.accentColor:De(t.textColor,.7)},children:[e.link?ft.jsx("a",{href:"#",target:"_blank",rel:"noreferrer",style:{color:t.accentColor},className:"bluxcc:no-underline",children:e.value}):e.value,e.copyable&&ft.jsx(xt,{fill:t.accentColor})]})]},n))})]})},ar={purple:{id:"purple_gradient",colors:[[.992,.878,1],[.992,.878,1],[.592,.451,1],[.792,.663,1]]}},sr=({theme:e="purple",className:t="",children:n,animationSpeed:r=1,onClick:o,style:i,size:a="100%"})=>{const s=l.useRef(null),c=l.useRef(null);return l.useEffect(()=>{const t=s.current;if(!t)return;const n=t.getContext("webgl");if(!n)return;const o=t.getBoundingClientRect();t.width=o.width,t.height=o.height;const i=(e,t)=>{const r=n.createShader(t);return n.shaderSource(r,e),n.compileShader(r),n.getShaderParameter(r,n.COMPILE_STATUS)||console.error(n.getShaderInfoLog(r)),r},a=n.createProgram(),u=i("\n attribute vec2 aPos;\n varying vec2 vUv;\n void main() {\n vUv = (aPos + 1.0) * 0.5;\n gl_Position = vec4(aPos, 0.0, 1.0);\n }\n ",n.VERTEX_SHADER),l=i("\n precision mediump float;\n uniform float uTime;\n uniform vec2 uResolution;\n uniform vec3 uColor1;\n uniform vec3 uColor2;\n uniform vec3 uColor3;\n uniform vec3 uColor4;\n varying vec2 vUv;\n\n float noise(vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233))) * 43758.5453123);\n }\n float smoothNoise(vec2 st) {\n vec2 i=floor(st),f=fract(st);\n float a=noise(i);\n float b=noise(i+vec2(1.,0.));\n float c=noise(i+vec2(0.,1.));\n float d=noise(i+vec2(1.,1.));\n vec2 u=f*f*(3.-2.*f);\n return mix(a,b,u.x)+(c-a)*u.y*(1.-u.x)+(d-b)*u.x*u.y;\n }\n float fbm(vec2 st){\n float v=0.,a=0.7;\n for(int i=0;i<2;i++){\n v+=a*smoothNoise(st);\n st*=1.8;a*=0.4;\n }\n return v;\n }\n\n void main(){\n vec2 st=vUv;\n float time=uTime*0.12;\n vec2 center=vec2(0.5);\n vec2 fromCenter=st-center;\n float rot=time*0.3;\n float c=cos(rot),s=sin(rot);\n vec2 rotated=vec2(\n fromCenter.x*c-fromCenter.y*s,\n fromCenter.x*s+fromCenter.y*c\n )+center;\n\n vec2 pos=st;\n pos+=vec2(\n fbm(rotated*1.2+time*0.4)*0.08,\n fbm(rotated*1.2+time*0.5+50.0)*0.08\n );\n\n float mixX=clamp(pos.x+fbm(rotated*1.0+time*0.6)*0.25,0.,1.);\n float mixY=clamp(pos.y+fbm(rotated*1.0+time*0.7)*0.25,0.,1.);\n\n vec3 topColors=mix(uColor1,uColor2,smoothstep(0.1,0.9,mixX));\n vec3 bottomColors=mix(uColor3,uColor4,smoothstep(0.1,0.9,mixX));\n vec3 finalColor=mix(topColors,bottomColors,smoothstep(0.1,0.9,mixY));\n\n gl_FragColor=vec4(finalColor,1.0);\n }\n ",n.FRAGMENT_SHADER);n.attachShader(a,u),n.attachShader(a,l),n.linkProgram(a),n.useProgram(a);const f=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,f),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),n.STATIC_DRAW);const p=n.getAttribLocation(a,"aPos");n.enableVertexAttribArray(p),n.vertexAttribPointer(p,2,n.FLOAT,!1,0,0);const d=n.getUniformLocation(a,"uTime"),h=n.getUniformLocation(a,"uResolution"),y=n.getUniformLocation(a,"uColor1"),m=n.getUniformLocation(a,"uColor2"),g=n.getUniformLocation(a,"uColor3"),b=n.getUniformLocation(a,"uColor4"),v=ar[e].colors;n.uniform2f(h,o.width,o.height),n.uniform3fv(y,v[0]),n.uniform3fv(m,v[1]),n.uniform3fv(g,v[2]),n.uniform3fv(b,v[3]);let w=0;const S=()=>{c.current=requestAnimationFrame(S),w+=.015*r,n.uniform1f(d,w),n.viewport(0,0,t.width,t.height),n.drawArrays(n.TRIANGLE_STRIP,0,4)};return S(),()=>{c.current&&cancelAnimationFrame(c.current),n.deleteProgram(a),n.deleteBuffer(f)}},[e,r]),ft.jsxs("div",{onClick:o,className:`relative overflow-hidden ${t}`,style:i,"data-gradient-id":ar[e]?.id||"unknown_gradient",children:[ft.jsx("canvas",{ref:s,className:"absolute inset-0 z-0",style:{width:a,height:a}}),n&&ft.jsx("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:n})]})},cr=()=>{const e=Gt(),t=q(e=>e.config.appearance),n=[Ht,qt,Wt,zt];return ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col bluxcc:select-none bluxcc:items-center bluxcc:justify-center bluxcc:text-center bluxcc:font-medium bluxcc:mt-4 bluxcc:mb-8",style:{color:t.textColor},children:[ft.jsx(sr,{theme:"purple",animationSpeed:3,style:{borderRadius:t.borderRadius},className:"bluxcc:size-[264px] bluxcc:mx-6 bluxcc:overflow-hidden bluxcc:flex bluxcc:items-center",children:ft.jsx("div",{className:"bluxcc:marquee_track bluxcc:gap-2.5 bluxcc:z-40",children:[...n,...n].map((e,n)=>ft.jsx("div",{style:{borderRadius:"0px"!==t.borderRadius?"16px":"0px"},className:"bluxcc:size-[82px] bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:bg-primary-500",children:ft.jsx(e,{fill:"#ffffff"})},n))})}),ft.jsx("p",{className:"bluxcc:text-2xl bluxcc:mt-[26px] bluxcc:mb-2",children:e("wallet_infra")}),ft.jsx("p",{className:"bluxcc:text-sm text-center",children:e("blux_gateway")})]})},ur=()=>{const e=Gt(),[t,n]=l.useState({address:""}),[r,o]=l.useState({});let i={logo:ft.jsx(un,{}),name:"xlm",valueInCurrency:203};const a=q(e=>e.config.appearance);return ft.jsxs("div",{children:[ft.jsx(bn,{autoFocus:!0,type:"text",label:e("enter_token_address"),placeholder:e("enter_address"),value:t.address,onChange:(s="address",e=>{n(t=>({...t,[s]:e.target.value})),o(e=>({...e,[s]:""}))}),onButtonClick:()=>{},button:ft.jsx("span",{style:{color:a.accentColor},className:"bluxcc:flex bluxcc:justify-between",children:e("check")})}),ft.jsx("div",{className:"bluxcc:h-[224px] bluxcc:my-4",style:{borderRadius:a.borderRadius,border:`${a.borderWidth} solid ${a.borderColor}`},children:ft.jsxs("div",{className:"bluxcc:flex bluxcc:flex-col bluxcc:items-center bluxcc:justify-center bluxcc:gap-2",children:[ft.jsx("div",{className:"bluxcc:size-14 bluxcc:flex bluxcc:items-center bluxcc:justify-center bluxcc:rounded-full bluxcc:border",style:{borderColor:a.borderColor,borderWidth:a.borderWidth},children:i.logo}),i.name,ft.jsx("div",{className:"bluxcc:flex bluxcc:flex-col",children:ft.jsxs("span",{className:"bluxcc:text-2xl bluxcc:font-medium",style:{color:a.accentColor},children:["$",Ue(i.valueInCurrency)]})})]})}),ft.jsx(Qt,{}),ft.jsxs("div",{className:"bluxcc:flex bluxcc:gap-4",children:[ft.jsx(en,{state:"enabled",variant:"outline",className:"bluxcc:cursor-default!",children:e("cancel")}),ft.jsx(en,{state:"enabled",variant:"fill",size:"large",children:e("add_token")})]})]});var s},lr=()=>{const e=Gt(),t=q(e=>e),n=t.config.appearance;return ft.jsxs("div",{children:[ft.jsxs("div",{className:"bluxcc:p-4 bluxcc:text-center bluxcc:text-sm bluxcc:font-medium bluxcc:select-none",children:[ft.jsxs("span",{className:"bluxcc:font-semibold bluxcc:capitalize",children:[t.config.appName," "]}),e("sign_permission")]}),ft.jsx("div",{className:"bluxcc:h-[96px] bluxcc:p-4 bluxcc:font-mono bluxcc:text-xs bluxcc:overflow-auto",style:{border:`${n.borderWidth} solid ${n.borderColor}`,borderRadius:n.borderRadius},children:"Join the early access program, Authorize connection to the Blux dashboard."}),ft.jsxs("div",{className:"bluxcc:inline-flex bluxcc:mt-4 bluxcc:h-14 bluxcc:w-full bluxcc:items-center bluxcc:justify-between bluxcc:border bluxcc:px-4",style:{borderRadius:n.borderRadius,borderColor:n.borderColor},children:[ft.jsx("div",{className:"bluxcc:inline-flex bluxcc:items-center bluxcc:gap-1 bluxcc:font-medium bluxcc:whitespace-nowrap",children:ft.jsx("p",{className:"bluxcc:text-sm bluxcc:font-medium bluxcc:whitespace-nowrap",children:e("yourWallet")})}),ft.jsx("div",{className:"bluxcc:overflow-hidden bluxcc:px-[10px] bluxcc:py-2",style:{borderRadius:n.borderRadius,backgroundColor:n.fieldBackground,color:n.textColor},children:ft.jsx("p",{className:"bluxcc:mt-0.5 bluxcc:text-xs",style:{color:`${De(n.textColor,.8)}`},children:t.user?.address?Ve(t.user?.address,5):e("noAddressFound")})})]}),ft.jsx(Qt,{}),ft.jsx(en,{size:"large",state:"enabled",variant:"fill",onClick:()=>{console.log("sign message req")},children:e("approve")})]})},fr=()=>{const e=q(e=>e),t=(()=>{const e=q(e=>e),[t,n]=l.useState({error:null,loading:!0,balances:[]}),r=e.user?.address;return l.useEffect(()=>{n({error:null,loading:!0,balances:[]}),Ye({address:r}).then(e=>{n({error:null,loading:!1,balances:e})}).catch(e=>{n({error:e,loading:!1,balances:[]})})},[r,e.stellar?.activeNetwork]),t})(),n=(()=>{const e=q(e=>e),[t,n]=l.useState({error:null,loading:!0,transactions:[]}),r=e.user?.address;return l.useEffect(()=>{n({error:null,loading:!0,transactions:[]}),Je({limit:5,forAccount:r}).then(e=>{const t=e.response,r=[];for(const e of t.records)r.push(e.operations());Promise.all(r).then(e=>{const r=t.records.map((t,n)=>({...t,operations:e[n].records}));n({error:null,loading:!1,transactions:r})})}).catch(e=>{n({error:e,loading:!1,transactions:[]})})},[r,e.stellar?.activeNetwork]),t})(),r=()=>{e.setBalances(t),e.setTransactions(n)};l.useEffect(()=>{r();const e=setInterval(()=>{r()},1e4);return()=>{clearInterval(e)}},[t,n])},pr=()=>{fr();const e=q(e=>e),{modal:t,closeModal:n,setShowAllWallets:r}=e,{route:o}=t,i=(a="en",{[N.ONBOARDING]:{title:He("logInOrSignUp",a),Component:ft.jsx(En,{})},[N.PROFILE]:{title:He("profile",a),Component:ft.jsx(Yt,{})},[N.WAITING]:{title:"",Component:ft.jsx(pn,{})},[N.SUCCESSFUL]:{title:"",Component:ft.jsx(kn,{})},[N.SEND_TRANSACTION]:{title:He("confirmation",a),Component:ft.jsx(or,{})},[N.SEND]:{title:He("send",a),Component:ft.jsx(wn,{})},[N.ACTIVITY]:{title:He("activity",a),Component:ft.jsx(nr,{})},[N.RECEIVE]:{title:He("receive",a),Component:ft.jsx(Gn,{})},[N.SWAP]:{title:He("swap",a),Component:ft.jsx(mn,{})},[N.BALANCES]:{title:He("balances",a),Component:ft.jsx(Jn,{})},[N.BALANCE_DETAILS]:{title:"",Component:ft.jsx(ir,{})},[N.OTP]:{title:"",Component:ft.jsx(xn,{})},[N.WRONG_NETWORK]:{isSticky:!0,title:"",Component:ft.jsx(Qn,{})},[N.ABOUT]:{title:"What is Blux",Component:ft.jsx(cr,{})},[N.ADD_TOKEN]:{title:"Add Token",Component:ft.jsx(ur,{})},[N.SIGN_MESSAGE]:{title:"Sign Message",Component:ft.jsx(lr,{})}})[o];var a;let s;o===N.WAITING&&"sendTransaction"!==e.waitingStatus||o===N.ONBOARDING&&e.showAllWallets||o===N.ACTIVITY||o===N.SEND||o===N.OTP||o===N.BALANCES||o===N.RECEIVE||o===N.SWAP||o===N.BALANCE_DETAILS||o===N.ABOUT||o===N.ADD_TOKEN?s="back":o===N.ONBOARDING&&(s="info");const c=()=>{n(),r(!1)};l.useEffect(()=>{const{horizon:t,soroban:n}=Be(e.stellar?.activeNetwork||"",e.config.transports??{});e.setStellar({activeNetwork:e.stellar?.activeNetwork||"",servers:{horizon:new O.Horizon.Server(t),soroban:new O.rpc.Server(n)}})},[e.config.transports,e.config.networks,e.stellar?.activeNetwork]);const u=o===N.WRONG_NETWORK||o===N.WAITING||o===N.SUCCESSFUL;return ft.jsxs(dt,{isOpen:t.isOpen,isSticky:i.isSticky,onClose:c,appearance:L,children:[ft.jsx(Xt,{onBack:()=>{o===N.WAITING||o===N.OTP&&!e.authState.isAuthenticated||o===N.ABOUT?e.setRoute(N.ONBOARDING):e.showAllWallets?r(!1):o===N.SEND||o===N.ACTIVITY||o===N.BALANCES||o===N.RECEIVE||o===N.SWAP?e.setRoute(N.PROFILE):o!==N.BALANCE_DETAILS&&o!==N.ADD_TOKEN||e.setRoute(N.BALANCES)},onInfo:()=>{e.setRoute(N.ABOUT)},onClose:i.isSticky?()=>{}:c,title:""!==e.modal.dynamicTitle?e.modal.dynamicTitle:i.title,icon:s,closeButton:!u}),i.Component]})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--bluxcc-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bluxcc-color-gray-800:#333;--bluxcc-color-black:#000;--bluxcc-color-white:#fff;--bluxcc-spacing:0.25rem;--bluxcc-text-xs:0.75rem;--bluxcc-text-xs--line-height:1.33333;--bluxcc-text-sm:0.875rem;--bluxcc-text-sm--line-height:1.42857;--bluxcc-text-base:1rem;--bluxcc-text-base--line-height:1.5;--bluxcc-text-lg:1.125rem;--bluxcc-text-lg--line-height:1.55556;--bluxcc-text-xl:1.25rem;--bluxcc-text-xl--line-height:1.4;--bluxcc-text-2xl:1.5rem;--bluxcc-text-2xl--line-height:1.33333;--bluxcc-font-weight-normal:400;--bluxcc-font-weight-medium:500;--bluxcc-font-weight-semibold:600;--bluxcc-animate-spin:spin 1s linear infinite;--bluxcc-default-transition-duration:150ms;--bluxcc-default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--bluxcc-color-primary-500:#0c1083;--bluxcc-color-light-red-50:#ffe5e5;--bluxcc-color-light-blue-50:#e5fbff;--bluxcc-color-alert-info:#5093ff;--bluxcc-color-alert-error:#ec2929;--bluxcc-color-alert-success:#00bd81;--bluxcc-color-alert-warning:#fa8f02}}@layer utilities{.bluxcc\\:absolute{position:absolute!important}.bluxcc\\:fixed{position:fixed!important}.bluxcc\\:relative{position:relative!important}.bluxcc\\:inset-0{inset:calc(var(--bluxcc-spacing)*0)!important}.bluxcc\\:right-0{right:calc(var(--bluxcc-spacing)*0)!important}.bluxcc\\:bottom-0{bottom:calc(var(--bluxcc-spacing)*0)!important}.bluxcc\\:bottom-3{bottom:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:bottom-4{bottom:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:left-0{left:calc(var(--bluxcc-spacing)*0)!important}.bluxcc\\:left-1\\/2{left:50%!important}.bluxcc\\:z-10{z-index:10!important}.bluxcc\\:z-20{z-index:20!important}.bluxcc\\:z-40{z-index:40!important}.bluxcc\\:z-9999{z-index:9999!important}.bluxcc\\:mx-3{margin-inline:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:mx-6{margin-inline:calc(var(--bluxcc-spacing)*6)!important}.bluxcc\\:\\!my-2{margin-block:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:my-1{margin-block:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:my-4{margin-block:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:my-6{margin-block:calc(var(--bluxcc-spacing)*6)!important}.bluxcc\\:\\!mt-4{margin-top:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:mt-0{margin-top:calc(var(--bluxcc-spacing)*0)!important}.bluxcc\\:mt-0\\.5{margin-top:calc(var(--bluxcc-spacing)*.5)!important}.bluxcc\\:mt-1{margin-top:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:mt-2{margin-top:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:mt-4{margin-top:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:mt-6,.bluxcc\\:mt-6\\!{margin-top:calc(var(--bluxcc-spacing)*6)!important}.bluxcc\\:mt-\\[16px\\]{margin-top:16px!important}.bluxcc\\:mt-\\[26px\\]{margin-top:26px!important}.bluxcc\\:\\!mr-2{margin-right:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:mr-1{margin-right:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:mr-2{margin-right:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:mb-1{margin-bottom:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:mb-2{margin-bottom:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:mb-4{margin-bottom:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:mb-6{margin-bottom:calc(var(--bluxcc-spacing)*6)!important}.bluxcc\\:mb-8{margin-bottom:calc(var(--bluxcc-spacing)*8)!important}.bluxcc\\:ml-2{margin-left:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:ml-4{margin-left:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:ml-auto{margin-left:auto!important}.bluxcc\\:box-border{box-sizing:border-box!important}.bluxcc\\:flex{display:flex!important}.bluxcc\\:inline-flex{display:inline-flex!important}.bluxcc\\:size-5{height:calc(var(--bluxcc-spacing)*5)!important;width:calc(var(--bluxcc-spacing)*5)!important}.bluxcc\\:size-8{height:calc(var(--bluxcc-spacing)*8)!important;width:calc(var(--bluxcc-spacing)*8)!important}.bluxcc\\:size-10{height:calc(var(--bluxcc-spacing)*10)!important;width:calc(var(--bluxcc-spacing)*10)!important}.bluxcc\\:size-14{height:calc(var(--bluxcc-spacing)*14)!important;width:calc(var(--bluxcc-spacing)*14)!important}.bluxcc\\:size-20{height:calc(var(--bluxcc-spacing)*20)!important;width:calc(var(--bluxcc-spacing)*20)!important}.bluxcc\\:size-\\[64px\\]{height:64px!important;width:64px!important}.bluxcc\\:size-\\[68px\\]{height:68px!important;width:68px!important}.bluxcc\\:size-\\[82px\\]{height:82px!important;width:82px!important}.bluxcc\\:size-\\[96px\\]{height:96px!important;width:96px!important}.bluxcc\\:size-\\[208px\\]{height:208px!important;width:208px!important}.bluxcc\\:size-\\[264px\\]{height:264px!important;width:264px!important}.bluxcc\\:\\!h-14{height:calc(var(--bluxcc-spacing)*14)!important}.bluxcc\\:h-2{height:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:h-4{height:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:h-8{height:calc(var(--bluxcc-spacing)*8)!important}.bluxcc\\:h-10{height:calc(var(--bluxcc-spacing)*10)!important}.bluxcc\\:h-12{height:calc(var(--bluxcc-spacing)*12)!important}.bluxcc\\:h-14{height:calc(var(--bluxcc-spacing)*14)!important}.bluxcc\\:h-16{height:calc(var(--bluxcc-spacing)*16)!important}.bluxcc\\:h-20{height:calc(var(--bluxcc-spacing)*20)!important}.bluxcc\\:h-\\[52px\\]{height:52px!important}.bluxcc\\:h-\\[96px\\]{height:96px!important}.bluxcc\\:h-\\[224px\\]{height:224px!important}.bluxcc\\:h-\\[348px\\]{height:348px!important}.bluxcc\\:h-\\[355px\\]{height:355px!important}.bluxcc\\:h-full{height:100%!important}.bluxcc\\:max-h-\\[80px\\]{max-height:80px!important}.bluxcc\\:max-h-\\[90vh\\]{max-height:90vh!important}.bluxcc\\:\\!w-\\[360px\\]{width:360px!important}.bluxcc\\:w-2{width:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:w-12{width:calc(var(--bluxcc-spacing)*12)!important}.bluxcc\\:w-20{width:calc(var(--bluxcc-spacing)*20)!important}.bluxcc\\:w-\\[68px\\]\\!{width:68px!important}.bluxcc\\:w-\\[96px\\]{width:96px!important}.bluxcc\\:w-\\[100px\\]{width:100px!important}.bluxcc\\:w-\\[292px\\]{width:292px!important}.bluxcc\\:w-\\[calc\\(100\\%-3rem\\)\\]{width:calc(100% - 3rem)!important}.bluxcc\\:w-auto{width:auto!important}.bluxcc\\:w-full{width:100%!important}.bluxcc\\:max-w-\\[90px\\]{max-width:90px!important}.bluxcc\\:max-w-\\[180px\\]{max-width:180px!important}.bluxcc\\:max-w-\\[184px\\]{max-width:184px!important}.bluxcc\\:flex-1{flex:1!important}.bluxcc\\:shrink-0{flex-shrink:0!important}.bluxcc\\:grow{flex-grow:1!important}.bluxcc\\:-translate-x-1\\/2{--tw-translate-x:-50%!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}.bluxcc\\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.bluxcc\\:animate-spin{animation:var(--bluxcc-animate-spin)!important}.bluxcc\\:cursor-default\\!{cursor:default!important}.bluxcc\\:cursor-pointer{cursor:pointer!important}.bluxcc\\:cursor-text{cursor:text!important}.bluxcc\\:flex-col{flex-direction:column!important}.bluxcc\\:items-center{align-items:center!important}.bluxcc\\:justify-between{justify-content:space-between!important}.bluxcc\\:justify-center{justify-content:center!important}.bluxcc\\:justify-start{justify-content:flex-start!important}.bluxcc\\:\\!gap-1,.bluxcc\\:gap-1{gap:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:gap-2{gap:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:gap-2\\.5{gap:calc(var(--bluxcc-spacing)*2.5)!important}.bluxcc\\:gap-3{gap:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:gap-4{gap:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:gap-\\[10px\\]{gap:10px!important}.bluxcc\\:space-y-1{:where(&>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-end:calc(var(--bluxcc-spacing)*1*(1 - var(--tw-space-y-reverse)))!important;margin-block-start:calc(var(--bluxcc-spacing)*1*var(--tw-space-y-reverse))!important}}.bluxcc\\:space-y-2{:where(&>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-end:calc(var(--bluxcc-spacing)*2*(1 - var(--tw-space-y-reverse)))!important;margin-block-start:calc(var(--bluxcc-spacing)*2*var(--tw-space-y-reverse))!important}}.bluxcc\\:space-x-3{:where(&>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-end:calc(var(--bluxcc-spacing)*3*(1 - var(--tw-space-x-reverse)))!important;margin-inline-start:calc(var(--bluxcc-spacing)*3*var(--tw-space-x-reverse))!important}}.bluxcc\\:overflow-auto{overflow:auto!important}.bluxcc\\:overflow-hidden{overflow:hidden!important}.bluxcc\\:overflow-y-auto{overflow-y:auto!important}.bluxcc\\:rounded-full{border-radius:calc(infinity * 1px)!important}.bluxcc\\:\\!rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.bluxcc\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.bluxcc\\:border-2{border-style:var(--tw-border-style)!important;border-width:2px!important}.bluxcc\\:border-alert-error{border-color:var(--bluxcc-color-alert-error)!important}.bluxcc\\:border-alert-info{border-color:var(--bluxcc-color-alert-info)!important}.bluxcc\\:border-alert-success{border-color:var(--bluxcc-color-alert-success)!important}.bluxcc\\:border-alert-warning{border-color:var(--bluxcc-color-alert-warning)!important}.bluxcc\\:bg-black\\/10{background-color:var(--bluxcc-color-black)!important;@supports (color:color-mix(in lab,red,red)){background-color:color-mix(in oklab,var(--bluxcc-color-black) 10%,transparent)!important}}.bluxcc\\:bg-light-blue-50{background-color:var(--bluxcc-color-light-blue-50)!important}.bluxcc\\:bg-light-red-50{background-color:var(--bluxcc-color-light-red-50)!important}.bluxcc\\:bg-primary-500{background-color:var(--bluxcc-color-primary-500)!important}.bluxcc\\:bg-transparent{background-color:transparent!important}.bluxcc\\:bg-white{background-color:var(--bluxcc-color-white)!important}.bluxcc\\:p-1{padding:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:p-2{padding:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:p-4{padding:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:\\!px-3{padding-inline:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:px-2{padding-inline:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:px-2\\.5{padding-inline:calc(var(--bluxcc-spacing)*2.5)!important}.bluxcc\\:px-3{padding-inline:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:px-4{padding-inline:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:px-6{padding-inline:calc(var(--bluxcc-spacing)*6)!important}.bluxcc\\:px-7{padding-inline:calc(var(--bluxcc-spacing)*7)!important}.bluxcc\\:px-\\[10px\\]{padding-inline:10px!important}.bluxcc\\:\\!py-1,.bluxcc\\:py-1{padding-block:calc(var(--bluxcc-spacing)*1)!important}.bluxcc\\:py-2{padding-block:calc(var(--bluxcc-spacing)*2)!important}.bluxcc\\:py-3{padding-block:calc(var(--bluxcc-spacing)*3)!important}.bluxcc\\:py-4{padding-block:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:pt-\\[17px\\]{padding-top:17px!important}.bluxcc\\:pr-3\\.5{padding-right:calc(var(--bluxcc-spacing)*3.5)!important}.bluxcc\\:pb-4{padding-bottom:calc(var(--bluxcc-spacing)*4)!important}.bluxcc\\:pl-\\[10px\\]{padding-left:10px!important}.bluxcc\\:text-center{text-align:center!important}.bluxcc\\:text-left{text-align:left!important}.bluxcc\\:text-right{text-align:right!important}.bluxcc\\:text-start{text-align:start!important}.bluxcc\\:font-mono{font-family:var(--bluxcc-font-mono)!important}.bluxcc\\:\\!text-base{font-size:var(--bluxcc-text-base)!important;line-height:var(--tw-leading,var(--bluxcc-text-base--line-height))!important}.bluxcc\\:\\!text-sm{font-size:var(--bluxcc-text-sm)!important;line-height:var(--tw-leading,var(--bluxcc-text-sm--line-height))!important}.bluxcc\\:\\!text-xs{font-size:var(--bluxcc-text-xs)!important;line-height:var(--tw-leading,var(--bluxcc-text-xs--line-height))!important}.bluxcc\\:text-2xl{font-size:var(--bluxcc-text-2xl)!important;line-height:var(--tw-leading,var(--bluxcc-text-2xl--line-height))!important}.bluxcc\\:text-base{font-size:var(--bluxcc-text-base)!important;line-height:var(--tw-leading,var(--bluxcc-text-base--line-height))!important}.bluxcc\\:text-lg{font-size:var(--bluxcc-text-lg)!important;line-height:var(--tw-leading,var(--bluxcc-text-lg--line-height))!important}.bluxcc\\:text-sm{font-size:var(--bluxcc-text-sm)!important;line-height:var(--tw-leading,var(--bluxcc-text-sm--line-height))!important}.bluxcc\\:text-xl{font-size:var(--bluxcc-text-xl)!important;line-height:var(--tw-leading,var(--bluxcc-text-xl--line-height))!important}.bluxcc\\:text-xs{font-size:var(--bluxcc-text-xs)!important;line-height:var(--tw-leading,var(--bluxcc-text-xs--line-height))!important}.bluxcc\\:\\!leading-\\[16px\\]{--tw-leading:16px!important;line-height:16px!important}.bluxcc\\:leading-5{--tw-leading:calc(var(--bluxcc-spacing)*5)!important;line-height:calc(var(--bluxcc-spacing)*5)!important}.bluxcc\\:leading-\\[16px\\]{--tw-leading:16px!important;line-height:16px!important}.bluxcc\\:leading-\\[28px\\]{--tw-leading:28px!important;line-height:28px!important}.bluxcc\\:font-medium{--tw-font-weight:var(--bluxcc-font-weight-medium)!important;font-weight:var(--bluxcc-font-weight-medium)!important}.bluxcc\\:font-normal{--tw-font-weight:var(--bluxcc-font-weight-normal)!important;font-weight:var(--bluxcc-font-weight-normal)!important}.bluxcc\\:font-semibold{--tw-font-weight:var(--bluxcc-font-weight-semibold)!important;font-weight:var(--bluxcc-font-weight-semibold)!important}.bluxcc\\:tracking-\\[-2\\%\\]{--tw-tracking:-2%!important;letter-spacing:-2%!important}.bluxcc\\:break-all{word-break:break-all!important}.bluxcc\\:whitespace-nowrap{white-space:nowrap!important}.bluxcc\\:text-alert-error{color:var(--bluxcc-color-alert-error)!important}.bluxcc\\:text-alert-info{color:var(--bluxcc-color-alert-info)!important}.bluxcc\\:text-alert-success{color:var(--bluxcc-color-alert-success)!important}.bluxcc\\:text-alert-warning{color:var(--bluxcc-color-alert-warning)!important}.bluxcc\\:text-gray-800{color:var(--bluxcc-color-gray-800)!important}.bluxcc\\:capitalize{text-transform:capitalize!important}.bluxcc\\:no-underline{text-decoration-line:none!important}.bluxcc\\:\\!shadow-\\[0px_4px_80px_0px_\\#00000008\\]{--tw-shadow:0px 4px 80px 0px var(--tw-shadow-color,#00000008)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.bluxcc\\:outline-hidden{--tw-outline-style:none!important;outline-style:none!important;@media (forced-colors:active){outline:2px solid transparent!important;outline-offset:2px!important}}.bluxcc\\:\\!backdrop-blur-\\[1px\\]{--tw-backdrop-blur:blur(1px)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)!important;backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)!important}.bluxcc\\:transition-\\[border-radius\\,background\\,border-color\\]{transition-duration:var(--tw-duration,var(--bluxcc-default-transition-duration))!important;transition-property:border-radius,background,border-color!important;transition-timing-function:var(--tw-ease,var(--bluxcc-default-transition-timing-function))!important}.bluxcc\\:transition-\\[border-radius\\]{transition-duration:var(--tw-duration,var(--bluxcc-default-transition-duration))!important;transition-property:border-radius!important;transition-timing-function:var(--tw-ease,var(--bluxcc-default-transition-timing-function))!important}.bluxcc\\:transition-all{transition-duration:var(--tw-duration,var(--bluxcc-default-transition-duration))!important;transition-property:all!important;transition-timing-function:var(--tw-ease,var(--bluxcc-default-transition-timing-function))!important}.bluxcc\\:duration-200{--tw-duration:200ms!important;transition-duration:.2s!important}.bluxcc\\:duration-300{--tw-duration:300ms!important;transition-duration:.3s!important}.bluxcc\\:outline-none{--tw-outline-style:none!important;outline-style:none!important}.bluxcc\\:select-none{-webkit-user-select:none!important;user-select:none!important}.bluxcc\\:focus\\:ring-1{&:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}}.bluxcc\\:focus\\:outline-hidden{&:focus{--tw-outline-style:none!important;outline-style:none!important;@media (forced-colors:active){outline:2px solid transparent!important;outline-offset:2px!important}}}}[class*=" bluxcc"]::backdrop,[class*=" bluxcc"]::file-selector-button,[class*=" bluxcc"]:after,[class*=" bluxcc"]:before,[class^=bluxcc],[class^=bluxcc]::backdrop,[class^=bluxcc]::file-selector-button,[class^=bluxcc]:after,[class^=bluxcc]:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}[class*=" bluxcc"] h1,[class*=" bluxcc"] h2,[class*=" bluxcc"] h3,[class*=" bluxcc"] h4,[class*=" bluxcc"] h5,[class*=" bluxcc"] h6,[class^=bluxcc] h1,[class^=bluxcc] h2,[class^=bluxcc] h3,[class^=bluxcc] h4,[class^=bluxcc] h5,[class^=bluxcc] h6{font-size:inherit;font-weight:inherit}[class*=" bluxcc"] menu,[class*=" bluxcc"] ol,[class*=" bluxcc"] ul,[class^=bluxcc] menu,[class^=bluxcc] ol,[class^=bluxcc] ul{list-style:none}[class*=" bluxcc"] audio,[class*=" bluxcc"] canvas,[class*=" bluxcc"] embed,[class*=" bluxcc"] iframe,[class*=" bluxcc"] img,[class*=" bluxcc"] object,[class*=" bluxcc"] svg,[class*=" bluxcc"] video,[class^=bluxcc] audio,[class^=bluxcc] canvas,[class^=bluxcc] embed,[class^=bluxcc] iframe,[class^=bluxcc] img,[class^=bluxcc] object,[class^=bluxcc] svg,[class^=bluxcc] video{display:block;vertical-align:middle}[class*=" bluxcc"] img,[class*=" bluxcc"] video,[class^=bluxcc] img,[class^=bluxcc] video{height:auto;max-width:100%}#bluxcc-input[type=number]::-webkit-inner-spin-button,#bluxcc-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0}#bluxcc-input[type=number]{-moz-appearance:textfield!important}#bluxcc-input:-webkit-autofill,#bluxcc-input:-webkit-autofill:active,#bluxcc-input:-webkit-autofill:focus,#bluxcc-input:-webkit-autofill:hover{-webkit-text-fill-color:inherit!important;-webkit-box-shadow:inset 0 0 0 1000px transparent!important;box-shadow:inset 0 0 0 1000px transparent!important;color:inherit!important;transition:background-color 5000s ease-in-out 0s!important}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.bluxcc\\:animate-fadeIn{animation:fadeIn .5s ease-in-out}.bluxcc\\:animate-fadeOut{animation:fadeOut .5s ease-in-out}@keyframes marquee{0%{transform:translateX(-35%)}to{transform:translateX(-100%)}}.bluxcc\\:marquee_outer{overflow:hidden;position:relative;width:100%}.bluxcc\\:marquee_track{animation:marquee 30s linear infinite;display:flex;width:fit-content;will-change:transform}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}');let dr=null,hr=!1,yr=null;const mr={createConfig:function(e){if(hr)throw new Error("Config has already been set");hr=!0,yr=document.createElement("div"),document.body.appendChild(yr),dr=A.createRoot(yr),dr.render(l.createElement(pr));const t={...e,appearance:{...L,...e?.appearance},lang:e.lang||"en",defaultNetwork:"",showWalletUIs:!!e.showWalletUIs,explorer:e.explorer||"stellarchain",loginMethods:e.loginMethods||["wallet"]};((e,t,n)=>{if(0===e.length)throw new Error("No network is set in config.networks.");const r=t??e[0];if(!e.includes(r))throw new Error("config.defaultNetwork is not listed in config.networks.");for(const t of e)if(!(Ee[t]||n&&n[t]))throw new Error(`Must set transports for custom network ${t}`)})(e.networks,e.defaultNetwork,e.transports),t.defaultNetwork=e.defaultNetwork??e.networks[0];const{horizon:n,soroban:r}=Be(t.defaultNetwork,e.transports??{}),{setConfig:o,setWallets:i,setIsReady:a,setStellar:s}=U();s({activeNetwork:t.defaultNetwork,servers:{horizon:new O.Horizon.Server(n),soroban:new O.rpc.Server(r)}}),o(t),new Promise(e=>{"complete"===document.readyState?Fe().then(t=>{e(t)}):window.addEventListener("load",()=>{Fe().then(t=>{e(t)})})}).then(e=>{i(e),a(!0)})},core:st.core,blux:st.blux};return mr}();