diff --git a/.gitignore b/.gitignore index a547bf3..234f2f1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,6 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist -dist-ssr *.local # Editor directories and files diff --git a/dist/assets/index-357662d1.js b/dist/assets/index-357662d1.js new file mode 100644 index 0000000..86e8d0c --- /dev/null +++ b/dist/assets/index-357662d1.js @@ -0,0 +1,186 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var SE={exports:{}},cc={},EE={exports:{}},Rt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qs=Symbol.for("react.element"),Hk=Symbol.for("react.portal"),Kk=Symbol.for("react.fragment"),Xk=Symbol.for("react.strict_mode"),Qk=Symbol.for("react.profiler"),Wk=Symbol.for("react.provider"),Gk=Symbol.for("react.context"),Yk=Symbol.for("react.forward_ref"),Zk=Symbol.for("react.suspense"),Jk=Symbol.for("react.memo"),eA=Symbol.for("react.lazy"),vy=Symbol.iterator;function tA(e){return e===null||typeof e!="object"?null:(e=vy&&e[vy]||e["@@iterator"],typeof e=="function"?e:null)}var kE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AE=Object.assign,TE={};function Fa(e,t,n){this.props=e,this.context=t,this.refs=TE,this.updater=n||kE}Fa.prototype.isReactComponent={};Fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function PE(){}PE.prototype=Fa.prototype;function Fm(e,t,n){this.props=e,this.context=t,this.refs=TE,this.updater=n||kE}var Dm=Fm.prototype=new PE;Dm.constructor=Fm;AE(Dm,Fa.prototype);Dm.isPureReactComponent=!0;var my=Array.isArray,CE=Object.prototype.hasOwnProperty,Um={current:null},OE={key:!0,ref:!0,__self:!0,__source:!0};function RE(e,t,n){var i,r={},a=null,o=null;if(t!=null)for(i in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)CE.call(t,i)&&!OE.hasOwnProperty(i)&&(r[i]=t[i]);var u=arguments.length-2;if(u===1)r.children=n;else if(1>>1,se=W[G];if(0>>1;Gr(Pe,ae))xer(Ye,Pe)?(W[G]=Ye,W[xe]=ae,G=xe):(W[G]=Pe,W[Be]=ae,G=Be);else if(xer(Ye,ae))W[G]=Ye,W[xe]=ae,G=xe;else break e}}return re}function r(W,re){var ae=W.sortIndex-re.sortIndex;return ae!==0?ae:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var l=[],s=[],y=1,c=null,h=3,S=!1,f=!1,d=!1,v=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(W){for(var re=n(s);re!==null;){if(re.callback===null)i(s);else if(re.startTime<=W)i(s),re.sortIndex=re.expirationTime,t(l,re);else break;re=n(s)}}function b(W){if(d=!1,g(W),!f)if(n(l)!==null)f=!0,Z(R);else{var re=n(s);re!==null&&ne(b,re.startTime-W)}}function R(W,re){f=!1,d&&(d=!1,p(q),q=-1),S=!0;var ae=h;try{for(g(re),c=n(l);c!==null&&(!(c.expirationTime>re)||W&&!J());){var G=c.callback;if(typeof G=="function"){c.callback=null,h=c.priorityLevel;var se=G(c.expirationTime<=re);re=e.unstable_now(),typeof se=="function"?c.callback=se:c===n(l)&&i(l),g(re)}else i(l);c=n(l)}if(c!==null)var Ee=!0;else{var Be=n(s);Be!==null&&ne(b,Be.startTime-re),Ee=!1}return Ee}finally{c=null,h=ae,S=!1}}var B=!1,L=null,q=-1,F=5,U=-1;function J(){return!(e.unstable_now()-UW||125G?(W.sortIndex=ae,t(s,W),n(l)===null&&W===n(s)&&(d?(p(q),q=-1):d=!0,ne(b,ae-G))):(W.sortIndex=se,t(l,W),f||S||(f=!0,Z(R))),W},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(W){var re=h;return function(){var ae=h;h=re;try{return W.apply(this,arguments)}finally{h=ae}}}})(ME);BE.exports=ME;var hA=BE.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var LE=Yt,an=hA;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rv=Object.prototype.hasOwnProperty,pA=/^[: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]*$/,yy={},wy={};function vA(e){return Rv.call(wy,e)?!0:Rv.call(yy,e)?!1:pA.test(e)?wy[e]=!0:(yy[e]=!0,!1)}function mA(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gA(e,t,n,i){if(t===null||typeof t>"u"||mA(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vr(e,t,n,i,r,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kr[e]=new Vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kr[t]=new Vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kr[e]=new Vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kr[e]=new Vr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kr[e]=new Vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kr[e]=new Vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kr[e]=new Vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kr[e]=new Vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kr[e]=new Vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var zm=/[\-:]([a-z])/g;function Vm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zm,Vm);kr[t]=new Vr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zm,Vm);kr[t]=new Vr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zm,Vm);kr[t]=new Vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kr[e]=new Vr(e,1,!1,e.toLowerCase(),null,!1,!1)});kr.xlinkHref=new Vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kr[e]=new Vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function $m(e,t,n,i){var r=kr.hasOwnProperty(t)?kr[t]:null;(r!==null?r.type!==0:i||!(2u||r[o]!==a[u]){var l=` +`+r[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=u);break}}}finally{af=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hs(e):""}function yA(e){switch(e.tag){case 5:return hs(e.type);case 16:return hs("Lazy");case 13:return hs("Suspense");case 19:return hs("SuspenseList");case 0:case 2:case 15:return e=of(e.type,!1),e;case 11:return e=of(e.type.render,!1),e;case 1:return e=of(e.type,!0),e;default:return""}}function Mv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pa:return"Fragment";case ha:return"Portal";case Iv:return"Profiler";case Hm:return"StrictMode";case qv:return"Suspense";case Bv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DE:return(e.displayName||"Context")+".Consumer";case FE:return(e._context.displayName||"Context")+".Provider";case Km:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xm:return t=e.displayName||null,t!==null?t:Mv(e.type)||"Memo";case ci:t=e._payload,e=e._init;try{return Mv(e(t))}catch{}}return null}function wA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mv(t);case 8:return t===Hm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _A(e){var t=jE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){e._valueTracker||(e._valueTracker=_A(e))}function zE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=jE(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lv(e,t){var n=t.checked;return nr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xy(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ki(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VE(e,t){t=t.checked,t!=null&&$m(e,"checked",t,!1)}function Nv(e,t){VE(e,t);var n=ki(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fv(e,t.type,ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function by(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Fv(e,t,n){(t!=="number"||Fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function ka(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Ou.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xA=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){xA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function XE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function QE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=XE(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var bA=nr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jv(e,t){if(t){if(bA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function zv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}var Vv=null;function Qm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $v=null,Aa=null,Ta=null;function ky(e){if(e=Ys(e)){if(typeof $v!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=vc(t),$v(e.stateNode,e.type,t))}}function WE(e){Aa?Ta?Ta.push(e):Ta=[e]:Aa=e}function GE(){if(Aa){var e=Aa,t=Ta;if(Ta=Aa=null,ky(e),t)for(e=0;e>>=0,e===0?32:31-(qA(e)/BA|0)|0}var Ru=64,Iu=4194304;function vs(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~r;u!==0?i=vs(u):(a&=o,a!==0&&(i=vs(a)))}else o=n&~r,o!==0?i=vs(o):a!==0&&(i=vs(a));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function Ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-An(t),e[t]=n}function FA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=Ss),By=String.fromCharCode(32),My=!1;function m3(e,t){switch(e){case"keyup":return d4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function p4(e,t){switch(e){case"compositionend":return g3(t);case"keypress":return t.which!==32?null:(My=!0,By);case"textInput":return e=t.data,e===By&&My?null:e;default:return null}}function v4(e,t){if(va)return e==="compositionend"||!rg&&m3(e,t)?(e=p3(),Cl=Jm=vi=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dy(n)}}function x3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?x3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b3(){for(var e=window,t=Fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fl(e.document)}return t}function ng(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function E4(e){var t=b3(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&x3(n.ownerDocument.documentElement,n)){if(i!==null&&ng(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=i.end===void 0?a:Math.min(i.end,r),!e.extend&&a>i&&(r=i,i=a,a=r),r=Uy(n,a);var o=Uy(n,i);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ma=null,Gv=null,ks=null,Yv=!1;function jy(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yv||ma==null||ma!==Fl(i)||(i=ma,"selectionStart"in i&&ng(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ks&&Ns(ks,i)||(ks=i,i=Hl(Gv,"onSelect"),0wa||(e.current=nm[wa],nm[wa]=null,wa--)}function Ht(e,t){wa++,nm[wa]=e.current,e.current=t}var Ai={},Rr=Ci(Ai),Qr=Ci(!1),Xi=Ai;function Ia(e,t){var n=e.type.contextTypes;if(!n)return Ai;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in n)r[a]=t[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Wr(e){return e=e.childContextTypes,e!=null}function Xl(){Wt(Qr),Wt(Rr)}function Qy(e,t,n){if(Rr.current!==Ai)throw Error(Le(168));Ht(Rr,t),Ht(Qr,n)}function R3(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(Le(108,wA(e)||"Unknown",r));return nr({},n,i)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Xi=Rr.current,Ht(Rr,e),Ht(Qr,Qr.current),!0}function Wy(e,t,n){var i=e.stateNode;if(!i)throw Error(Le(169));n?(e=R3(e,t,Xi),i.__reactInternalMemoizedMergedChildContext=e,Wt(Qr),Wt(Rr),Ht(Rr,e)):Wt(Qr),Ht(Qr,n)}var Hn=null,mc=!1,_f=!1;function I3(e){Hn===null?Hn=[e]:Hn.push(e)}function L4(e){mc=!0,I3(e)}function Oi(){if(!_f&&Hn!==null){_f=!0;var e=0,t=zt;try{var n=Hn;for(zt=1;e>=o,r-=o,Kn=1<<32-An(t)+r|n<q?(F=L,L=null):F=L.sibling;var U=h(p,L,g[q],b);if(U===null){L===null&&(L=F);break}e&&L&&U.alternate===null&&t(p,L),m=a(U,m,q),B===null?R=U:B.sibling=U,B=U,L=F}if(q===g.length)return n(p,L),Zt&&Ui(p,q),R;if(L===null){for(;qq?(F=L,L=null):F=L.sibling;var J=h(p,L,U.value,b);if(J===null){L===null&&(L=F);break}e&&L&&J.alternate===null&&t(p,L),m=a(J,m,q),B===null?R=J:B.sibling=J,B=J,L=F}if(U.done)return n(p,L),Zt&&Ui(p,q),R;if(L===null){for(;!U.done;q++,U=g.next())U=c(p,U.value,b),U!==null&&(m=a(U,m,q),B===null?R=U:B.sibling=U,B=U);return Zt&&Ui(p,q),R}for(L=i(p,L);!U.done;q++,U=g.next())U=S(L,p,q,U.value,b),U!==null&&(e&&U.alternate!==null&&L.delete(U.key===null?q:U.key),m=a(U,m,q),B===null?R=U:B.sibling=U,B=U);return e&&L.forEach(function(ce){return t(p,ce)}),Zt&&Ui(p,q),R}function v(p,m,g,b){if(typeof g=="object"&&g!==null&&g.type===pa&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pu:e:{for(var R=g.key,B=m;B!==null;){if(B.key===R){if(R=g.type,R===pa){if(B.tag===7){n(p,B.sibling),m=r(B,g.props.children),m.return=p,p=m;break e}}else if(B.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===ci&&r1(R)===B.type){n(p,B.sibling),m=r(B,g.props),m.ref=fo(p,B,g),m.return=p,p=m;break e}n(p,B);break}else t(p,B);B=B.sibling}g.type===pa?(m=Ki(g.props.children,p.mode,b,g.key),m.return=p,p=m):(b=Nl(g.type,g.key,g.props,null,p.mode,b),b.ref=fo(p,m,g),b.return=p,p=b)}return o(p);case ha:e:{for(B=g.key;m!==null;){if(m.key===B)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(p,m.sibling),m=r(m,g.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Pf(g,p.mode,b),m.return=p,p=m}return o(p);case ci:return B=g._init,v(p,m,B(g._payload),b)}if(ps(g))return f(p,m,g,b);if(oo(g))return d(p,m,g,b);Du(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(p,m.sibling),m=r(m,g),m.return=p,p=m):(n(p,m),m=Tf(g,p.mode,b),m.return=p,p=m),o(p)):n(p,m)}return v}var Ba=U3(!0),j3=U3(!1),Zs={},Un=Ci(Zs),js=Ci(Zs),zs=Ci(Zs);function $i(e){if(e===Zs)throw Error(Le(174));return e}function dg(e,t){switch(Ht(zs,t),Ht(js,e),Ht(Un,Zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uv(t,e)}Wt(Un),Ht(Un,t)}function Ma(){Wt(Un),Wt(js),Wt(zs)}function z3(e){$i(zs.current);var t=$i(Un.current),n=Uv(t,e.type);t!==n&&(Ht(js,e),Ht(Un,n))}function hg(e){js.current===e&&(Wt(Un),Wt(js))}var tr=Ci(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xf=[];function pg(){for(var e=0;en?n:4,e(!0);var i=bf.transition;bf.transition={};try{e(!1),t()}finally{zt=n,bf.transition=i}}function i6(){return pn().memoizedState}function U4(e,t,n){var i=Si(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},a6(e))o6(t,n);else if(n=L3(e,t,n,i),n!==null){var r=jr();Tn(n,e,i,r),s6(n,t,i)}}function j4(e,t,n){var i=Si(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(a6(e))o6(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,u=a(o,n);if(r.hasEagerState=!0,r.eagerState=u,Pn(u,o)){var l=t.interleaved;l===null?(r.next=r,cg(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=L3(e,t,r,i),n!==null&&(r=jr(),Tn(n,e,i,r),s6(n,t,i))}}function a6(e){var t=e.alternate;return e===rr||t!==null&&t===rr}function o6(e,t){As=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s6(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gm(e,n)}}var rc={readContext:hn,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},z4={readContext:hn,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:i1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ql(4194308,4,J3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){return ql(4,2,e,t)},useMemo:function(e,t){var n=Nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Nn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=U4.bind(null,rr,e),[i.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:n1,useDebugValue:wg,useDeferredValue:function(e){return Nn().memoizedState=e},useTransition:function(){var e=n1(!1),t=e[0];return e=D4.bind(null,e[1]),Nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=rr,r=Nn();if(Zt){if(n===void 0)throw Error(Le(407));n=n()}else{if(n=t(),yr===null)throw Error(Le(349));Wi&30||H3(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,i1(X3.bind(null,i,a,e),[e]),i.flags|=2048,Hs(9,K3.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Nn(),t=yr.identifierPrefix;if(Zt){var n=Xn,i=Kn;n=(i&~(1<<32-An(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(n,{is:i.is}):(e=o.createElement(n),n==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,n),e[Fn]=t,e[Us]=i,m6(e,t,!1,!1),t.stateNode=e;e:{switch(o=zv(n,i),n){case"dialog":Qt("cancel",e),Qt("close",e),r=i;break;case"iframe":case"object":case"embed":Qt("load",e),r=i;break;case"video":case"audio":for(r=0;rNa&&(t.flags|=128,i=!0,ho(a,!1),t.lanes=4194304)}else{if(!i)if(e=ec(o),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ho(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Zt)return Cr(t),null}else 2*or()-a.renderingStartTime>Na&&n!==1073741824&&(t.flags|=128,i=!0,ho(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=or(),t.sibling=null,n=tr.current,Ht(tr,i?n&1|2:n&1),t):(Cr(t),null);case 22:case 23:return kg(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?tn&1073741824&&(Cr(t),t.subtreeFlags&6&&(t.flags|=8192)):Cr(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function G4(e,t){switch(ag(t),t.tag){case 1:return Wr(t.type)&&Xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ma(),Wt(Qr),Wt(Rr),pg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hg(t),null;case 13:if(Wt(tr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wt(tr),null;case 4:return Ma(),null;case 10:return lg(t.type._context),null;case 22:case 23:return kg(),null;case 24:return null;default:return null}}var ju=!1,Or=!1,Y4=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Sa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ir(e,t,i)}else n.current=null}function vm(e,t,n){try{n()}catch(i){ir(e,t,i)}}var h1=!1;function Z4(e,t){if(Zv=Vl,e=b3(),ng(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,u=-1,l=-1,s=0,y=0,c=e,h=null;t:for(;;){for(var S;c!==n||r!==0&&c.nodeType!==3||(u=o+r),c!==a||i!==0&&c.nodeType!==3||(l=o+i),c.nodeType===3&&(o+=c.nodeValue.length),(S=c.firstChild)!==null;)h=c,c=S;for(;;){if(c===e)break t;if(h===n&&++s===r&&(u=o),h===a&&++y===i&&(l=o),(S=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=S}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jv={focusedElem:e,selectionRange:n},Vl=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var d=f.memoizedProps,v=f.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?d:bn(t.type,d),v);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(b){ir(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return f=h1,h1=!1,f}function Ts(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&vm(t,n,a)}r=r.next}while(r!==i)}}function wc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function mm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function w6(e){var t=e.alternate;t!==null&&(e.alternate=null,w6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fn],delete t[Us],delete t[rm],delete t[B4],delete t[M4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _6(e){return e.tag===5||e.tag===3||e.tag===4}function p1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gm(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kl));else if(i!==4&&(e=e.child,e!==null))for(gm(e,t,n),e=e.sibling;e!==null;)gm(e,t,n),e=e.sibling}function ym(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(ym(e,t,n),e=e.sibling;e!==null;)ym(e,t,n),e=e.sibling}var br=null,Sn=!1;function li(e,t,n){for(n=n.child;n!==null;)x6(e,t,n),n=n.sibling}function x6(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(fc,n)}catch{}switch(n.tag){case 5:Or||Sa(n,t);case 6:var i=br,r=Sn;br=null,li(e,t,n),br=i,Sn=r,br!==null&&(Sn?(e=br,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):br.removeChild(n.stateNode));break;case 18:br!==null&&(Sn?(e=br,n=n.stateNode,e.nodeType===8?wf(e.parentNode,n):e.nodeType===1&&wf(e,n),Ms(e)):wf(br,n.stateNode));break;case 4:i=br,r=Sn,br=n.stateNode.containerInfo,Sn=!0,li(e,t,n),br=i,Sn=r;break;case 0:case 11:case 14:case 15:if(!Or&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&vm(n,t,o),r=r.next}while(r!==i)}li(e,t,n);break;case 1:if(!Or&&(Sa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(u){ir(n,t,u)}li(e,t,n);break;case 21:li(e,t,n);break;case 22:n.mode&1?(Or=(i=Or)||n.memoizedState!==null,li(e,t,n),Or=i):li(e,t,n);break;default:li(e,t,n)}}function v1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y4),t.forEach(function(i){var r=sT.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function xn(e,t){var n=t.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~a}if(i=r,i=or()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*eT(i/1960))-i,10e?16:e,mi===null)var i=!1;else{if(e=mi,mi=null,ac=0,Lt&6)throw Error(Le(331));var r=Lt;for(Lt|=4,Ge=e.current;Ge!==null;){var a=Ge,o=a.child;if(Ge.flags&16){var u=a.deletions;if(u!==null){for(var l=0;lor()-Sg?Hi(e,0):bg|=n),Gr(e,t)}function C6(e,t){t===0&&(e.mode&1?(t=Iu,Iu<<=1,!(Iu&130023424)&&(Iu=4194304)):t=1);var n=jr();e=Yn(e,t),e!==null&&(Ws(e,t,n),Gr(e,n))}function oT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),C6(e,n)}function sT(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(Le(314))}i!==null&&i.delete(t),C6(e,n)}var O6;O6=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qr.current)Xr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xr=!1,Q4(e,t,n);Xr=!!(e.flags&131072)}else Xr=!1,Zt&&t.flags&1048576&&q3(t,Gl,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Bl(e,t),e=t.pendingProps;var r=Ia(t,Rr.current);Ca(t,n),r=mg(null,t,i,e,r,n);var a=gg();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wr(i)?(a=!0,Ql(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,fg(t),r.updater=gc,t.stateNode=r,r._reactInternals=t,um(t,i,e,n),t=fm(null,t,i,!0,a,n)):(t.tag=0,Zt&&a&&ig(t),Ur(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=lT(i),e=bn(i,e),r){case 0:t=cm(null,t,i,e,n);break e;case 1:t=c1(null,t,i,e,n);break e;case 11:t=u1(null,t,i,e,n);break e;case 14:t=l1(null,t,i,bn(i.type,e),n);break e}throw Error(Le(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:bn(i,r),cm(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:bn(i,r),c1(e,t,i,r,n);case 3:e:{if(h6(t),e===null)throw Error(Le(387));i=t.pendingProps,a=t.memoizedState,r=a.element,N3(e,t),Jl(t,i,null,n);var o=t.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=La(Error(Le(423)),t),t=f1(e,t,i,n,r);break e}else if(i!==r){r=La(Error(Le(424)),t),t=f1(e,t,i,n,r);break e}else for(rn=_i(t.stateNode.containerInfo.firstChild),nn=t,Zt=!0,En=null,n=j3(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qa(),i===r){t=Zn(e,t,n);break e}Ur(e,t,i,n)}t=t.child}return t;case 5:return z3(t),e===null&&am(t),i=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,o=r.children,em(i,r)?o=null:a!==null&&em(i,a)&&(t.flags|=32),d6(e,t),Ur(e,t,o,n),t.child;case 6:return e===null&&am(t),null;case 13:return p6(e,t,n);case 4:return dg(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ba(t,null,i,n):Ur(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:bn(i,r),u1(e,t,i,r,n);case 7:return Ur(e,t,t.pendingProps,n),t.child;case 8:return Ur(e,t,t.pendingProps.children,n),t.child;case 12:return Ur(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,o=r.value,Ht(Yl,i._currentValue),i._currentValue=o,a!==null)if(Pn(a.value,o)){if(a.children===r.children&&!Qr.current){t=Zn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){o=a.child;for(var l=u.firstContext;l!==null;){if(l.context===i){if(a.tag===1){l=Qn(-1,n&-n),l.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var y=s.pending;y===null?l.next=l:(l.next=y.next,y.next=l),s.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),om(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Le(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),om(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ur(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Ca(t,n),r=hn(r),i=i(r),t.flags|=1,Ur(e,t,i,n),t.child;case 14:return i=t.type,r=bn(i,t.pendingProps),r=bn(i.type,r),l1(e,t,i,r,n);case 15:return c6(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:bn(i,r),Bl(e,t),t.tag=1,Wr(i)?(e=!0,Ql(t)):e=!1,Ca(t,n),D3(t,i,r),um(t,i,r,n),fm(null,t,i,!0,e,n);case 19:return v6(e,t,n);case 22:return f6(e,t,n)}throw Error(Le(156,t.tag))};function R6(e,t){return n3(e,t)}function uT(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,n,i){return new uT(e,t,n,i)}function Tg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lT(e){if(typeof e=="function")return Tg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Km)return 11;if(e===Xm)return 14}return 2}function Ei(e,t){var n=e.alternate;return n===null?(n=fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,i,r,a){var o=2;if(i=e,typeof e=="function")Tg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case pa:return Ki(n.children,r,a,t);case Hm:o=8,r|=8;break;case Iv:return e=fn(12,n,t,r|2),e.elementType=Iv,e.lanes=a,e;case qv:return e=fn(13,n,t,r),e.elementType=qv,e.lanes=a,e;case Bv:return e=fn(19,n,t,r),e.elementType=Bv,e.lanes=a,e;case UE:return xc(n,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FE:o=10;break e;case DE:o=9;break e;case Km:o=11;break e;case Xm:o=14;break e;case ci:o=16,i=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=fn(o,n,t,r),t.elementType=e,t.type=i,t.lanes=a,t}function Ki(e,t,n,i){return e=fn(7,e,i,t),e.lanes=n,e}function xc(e,t,n,i){return e=fn(22,e,i,t),e.elementType=UE,e.lanes=n,e.stateNode={isHidden:!1},e}function Tf(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function Pf(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cT(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uf(0),this.expirationTimes=uf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uf(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Pg(e,t,n,i,r,a,o,u,l){return e=new cT(e,t,n,u,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fg(a),e}function fT(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M6)}catch(e){console.error(e)}}M6(),qE.exports=on;var mT=qE.exports,S1=mT;Ov.createRoot=S1.createRoot,Ov.hydrateRoot=S1.hydrateRoot;var L6={exports:{}};const gT={},yT=Object.freeze(Object.defineProperty({__proto__:null,default:gT},Symbol.toStringTag,{value:"Module"})),pi=Nm(yT);(function(e){var t={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(f){this.toString=function(){return"CORRUPT: "+this.message},this.message=f},invalid:function(f){this.toString=function(){return"INVALID: "+this.message},this.message=f},bug:function(f){this.toString=function(){return"BUG: "+this.message},this.message=f},notReady:function(f){this.toString=function(){return"NOT READY: "+this.message},this.message=f}}};t.cipher.aes=function(f){this.s[0][0][0]||this.O();var d,v,p,m,g=this.s[0][4],b=this.s[1];d=f.length;var R=1;if(d!==4&&d!==6&&d!==8)throw new t.exception.invalid("invalid aes key size");for(this.b=[p=f.slice(0),m=[]],f=d;f<4*d+28;f++)v=p[f-1],(f%d===0||d===8&&f%d===4)&&(v=g[v>>>24]<<24^g[v>>16&255]<<16^g[v>>8&255]<<8^g[v&255],f%d===0&&(v=v<<8^v>>>24^R<<24,R=R<<1^283*(R>>7))),p[f]=p[f-d]^v;for(d=0;f;d++,f--)v=p[d&3?f:f-4],m[d]=4>=f||4>d?v:b[0][g[v>>>24]]^b[1][g[v>>16&255]]^b[2][g[v>>8&255]]^b[3][g[v&255]]},t.cipher.aes.prototype={encrypt:function(f){return n(this,f,0)},decrypt:function(f){return n(this,f,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var f=this.s[0],d=this.s[1],v=f[4],p=d[4],m,g,b,R=[],B=[],L,q,F,U;for(m=0;256>m;m++)B[(R[m]=m<<1^283*(m>>7))^m]=m;for(g=b=0;!v[g];g^=L||1,b=B[b]||1)for(F=b^b<<1^b<<2^b<<3^b<<4,F=F>>8^F&255^99,v[g]=F,p[F]=g,q=R[m=R[L=R[g]]],U=16843009*q^65537*m^257*L^16843008*g,q=257*R[F]^16843008*F,m=0;4>m;m++)f[m][g]=q=q<<24^q>>>8,d[m][F]=U=U<<24^U>>>8;for(m=0;5>m;m++)f[m]=f[m].slice(0),d[m]=d[m].slice(0)}};function n(f,d,v){if(d.length!==4)throw new t.exception.invalid("invalid aes block size");var p=f.b[v],m=d[0]^p[0],g=d[v?3:1]^p[1],b=d[2]^p[2];d=d[v?1:3]^p[3];var R,B,L,q=p.length/4-2,F,U=4,J=[0,0,0,0];R=f.s[v],f=R[0];var ce=R[1],E=R[2],O=R[3],H=R[4];for(F=0;F>>24]^ce[g>>16&255]^E[b>>8&255]^O[d&255]^p[U],B=f[g>>>24]^ce[b>>16&255]^E[d>>8&255]^O[m&255]^p[U+1],L=f[b>>>24]^ce[d>>16&255]^E[m>>8&255]^O[g&255]^p[U+2],d=f[d>>>24]^ce[m>>16&255]^E[g>>8&255]^O[b&255]^p[U+3],U+=4,m=R,g=B,b=L;for(F=0;4>F;F++)J[v?3&-F:F]=H[m>>>24]<<24^H[g>>16&255]<<16^H[b>>8&255]<<8^H[d&255]^p[U++],R=m,m=g,g=b,b=d,d=R;return J}t.bitArray={bitSlice:function(f,d,v){return f=t.bitArray.$(f.slice(d/32),32-(d&31)).slice(1),v===void 0?f:t.bitArray.clamp(f,v-d)},extract:function(f,d,v){var p=Math.floor(-d-v&31);return((d+v-1^d)&-32?f[d/32|0]<<32-p^f[d/32+1|0]>>>p:f[d/32|0]>>>p)&(1<>d-1,1)),f},partial:function(f,d,v){return f===32?d:(v?d|0:d<<32-f)+1099511627776*f},getPartial:function(f){return Math.round(f/1099511627776)||32},equal:function(f,d){if(t.bitArray.bitLength(f)!==t.bitArray.bitLength(d))return!1;var v=0,p;for(p=0;p>>d),v=f[m]<<32-d;return m=f.length?f[f.length-1]:0,f=t.bitArray.getPartial(m),p.push(t.bitArray.partial(d+f&31,32>>24|v>>>8&65280|(v&65280)<<8|v<<24;return f}},t.codec.utf8String={fromBits:function(f){var d="",v=t.bitArray.bitLength(f),p,m;for(p=0;p>>8>>>8>>>8),m<<=8;return decodeURIComponent(escape(d))},toBits:function(f){f=unescape(encodeURIComponent(f));var d=[],v,p=0;for(v=0;v>>b)>>>m),bq){if(!d)try{return t.codec.base32hex.toBits(f)}catch{}throw new t.exception.invalid("this isn't "+F+"!")}R>m?(R-=m,g.push(L^q>>>R),L=q<>>m)>>>26),6>m?(b=f[v]<<6-m,m+=26,v++):(b<<=6,m-=6);for(;p.length&3&&!d;)p+="=";return p},toBits:function(f,d){f=f.replace(/\s|=/g,"");var v=[],p,m=0,g=t.codec.base64.B,b=0,R;for(d&&(g=g.substr(0,62)+"-_"),p=0;pR)throw new t.exception.invalid("this isn't base64!");26>>m),b=R<<32-m):(m+=6,b^=R<<32-m)}return m&56&&v.push(t.bitArray.partial(m&56,b,1)),v}},t.codec.base64url={fromBits:function(f){return t.codec.base64.fromBits(f,1,1)},toBits:function(f){return t.codec.base64.toBits(f,1)}},t.hash.sha256=function(f){this.b[0]||this.O(),f?(this.F=f.F.slice(0),this.A=f.A.slice(0),this.l=f.l):this.reset()},t.hash.sha256.hash=function(f){return new t.hash.sha256().update(f).finalize()},t.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(f){typeof f=="string"&&(f=t.codec.utf8String.toBits(f));var d,v=this.A=t.bitArray.concat(this.A,f);if(d=this.l,f=this.l=d+t.bitArray.bitLength(f),9007199254740991d;v++){for(m=!0,p=2;p*p<=v;p++)if(v%p===0){m=!1;break}m&&(8>d&&(this.Y[d]=f(Math.pow(v,.5))),this.b[d]=f(Math.pow(v,1/3)),d++)}}};function i(f,d){var v,p,m,g=f.F,b=f.b,R=g[0],B=g[1],L=g[2],q=g[3],F=g[4],U=g[5],J=g[6],ce=g[7];for(v=0;64>v;v++)16>v?p=d[v]:(p=d[v+1&15],m=d[v+14&15],p=d[v&15]=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+d[v&15]+d[v+9&15]|0),p=p+ce+(F>>>6^F>>>11^F>>>25^F<<26^F<<21^F<<7)+(J^F&(U^J))+b[v],ce=J,J=U,U=F,F=q+p|0,q=L,L=B,B=R,R=p+(B&L^q&(B^L))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g[0]=g[0]+R|0,g[1]=g[1]+B|0,g[2]=g[2]+L|0,g[3]=g[3]+q|0,g[4]=g[4]+F|0,g[5]=g[5]+U|0,g[6]=g[6]+J|0,g[7]=g[7]+ce|0}t.mode.ccm={name:"ccm",G:[],listenProgress:function(f){t.mode.ccm.G.push(f)},unListenProgress:function(f){f=t.mode.ccm.G.indexOf(f),-1B)throw new t.exception.invalid("ccm: iv must be at least 7 bytes");for(g=2;4>g&&L>>>8*g;g++);return g<15-B&&(g=15-B),v=R.clamp(v,8*(15-g)),d=t.mode.ccm.V(f,d,v,p,m,g),b=t.mode.ccm.C(f,b,v,d,m,g),R.concat(b.data,b.tag)},decrypt:function(f,d,v,p,m){m=m||64,p=p||[];var g=t.bitArray,b=g.bitLength(v)/8,L=g.bitLength(d),R=g.clamp(d,L-m),B=g.bitSlice(d,L-m),L=(L-m)/8;if(7>b)throw new t.exception.invalid("ccm: iv must be at least 7 bytes");for(d=2;4>d&&L>>>8*d;d++);if(d<15-b&&(d=15-b),v=g.clamp(v,8*(15-d)),R=t.mode.ccm.C(f,R,v,B,m,d),f=t.mode.ccm.V(f,R.data,v,p,m,d),!g.equal(R.tag,f))throw new t.exception.corrupt("ccm: tag doesn't match");return R.data},na:function(f,d,v,p,m,g){var b=[],R=t.bitArray,B=R.i;if(p=[R.partial(8,(d.length?64:0)|p-2<<2|g-1)],p=R.concat(p,v),p[3]|=m,p=f.encrypt(p),d.length)for(v=R.bitLength(d)/8,65279>=v?b=[R.partial(16,v)]:4294967295>=v&&(b=R.concat([R.partial(16,65534)],[v])),b=R.concat(b,d),d=0;dm||16q&&(t.mode.ccm.fa(b/B),q+=F),v[3]++,m=f.encrypt(v),d[b]^=m[0],d[b+1]^=m[1],d[b+2]^=m[2],d[b+3]^=m[3];return{tag:p,data:R.clamp(d,L)}}},t.mode.ocb2={name:"ocb2",encrypt:function(f,d,v,p,m,g){if(t.bitArray.bitLength(v)!==128)throw new t.exception.invalid("ocb iv must be 128 bits");var b,R=t.mode.ocb2.S,B=t.bitArray,L=B.i,q=[0,0,0,0];v=R(f.encrypt(v));var F,U=[];for(p=p||[],m=m||64,b=0;b+4m.bitLength(v)&&(R=g(R,p(R)),v=m.concat(v,[-2147483648,0,0,0])),b=g(b,v),f.encrypt(g(p(g(R,p(R))),b))},S:function(f){return[f[0]<<1^f[1]>>>31,f[1]<<1^f[2]>>>31,f[2]<<1^f[3]>>>31,f[3]<<1^135*(f[0]>>>31)]}},t.mode.gcm={name:"gcm",encrypt:function(f,d,v,p,m){var g=d.slice(0);return d=t.bitArray,p=p||[],f=t.mode.gcm.C(!0,f,g,p,v,m||128),d.concat(f.data,f.tag)},decrypt:function(f,d,v,p,m){var g=d.slice(0),b=t.bitArray,R=b.bitLength(g);if(m=m||128,p=p||[],m<=R?(d=b.bitSlice(g,R-m),g=b.bitSlice(g,0,R-m)):(d=g,g=[]),f=t.mode.gcm.C(!1,f,g,p,v,m),!b.equal(f.tag,d))throw new t.exception.corrupt("gcm: tag doesn't match");return f.data},ka:function(f,d){var v,p,m,g,b,R=t.bitArray.i;for(m=[0,0,0,0],g=d.slice(0),v=0;128>v;v++){for((p=(f[Math.floor(v/32)]&1<<31-v%32)!==0)&&(m=R(m,g)),b=(g[3]&1)!==0,p=3;0>>1|(g[p-1]&1)<<31;g[0]>>>=1,b&&(g[0]^=-520093696)}return m},j:function(f,d,v){var p,m=v.length;for(d=d.slice(0),p=0;pm&&(f=d.hash(f)),p=0;pp||0>v)throw new t.exception.invalid("invalid params to pbkdf2");typeof f=="string"&&(f=t.codec.utf8String.toBits(f)),typeof d=="string"&&(d=t.codec.utf8String.toBits(d)),m=m||t.misc.hmac,f=new m(f);var g,b,R,B,L=[],q=t.bitArray;for(B=1;32*L.length<(p||1);B++){for(m=g=f.encrypt(q.concat(d,[B])),b=1;bb;b++)m.push(4294967296*Math.random()|0);for(b=0;b=1<this.o&&(this.o=g),this.P++,this.b=t.hash.sha256.hash(this.b.concat(m)),this.L=new t.cipher.aes(this.b),p=0;4>p&&(this.h[p]=this.h[p]+1|0,!this.h[p]);p++);}for(p=0;p>>1;this.c[b].update([p,this.N++,2,d,g,f.length].concat(f))}break;case"string":d===void 0&&(d=f.length),this.c[b].update([p,this.N++,3,d,g,f.length]),this.c[b].update(f);break;default:B=1}if(B)throw new t.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[b]+=d,this.f+=d,R===this.u&&(this.isReady()!==this.u&&r("seeded",Math.max(this.o,this.f)),r("progress",this.getProgress()))},isReady:function(f){return f=this.T[f!==void 0?f:this.M],this.o&&this.o>=f?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=f?this.J|this.u:this.u},getProgress:function(f){return f=this.T[f||this.M],this.o>=f||this.f>f?1:this.f/f},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:l(this,this.ma),mouseCollector:l(this,this.oa),keyboardCollector:l(this,this.la),accelerometerCollector:l(this,this.ea),touchCollector:l(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new t.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(f,d){this.K[f][this.ga++]=d},removeEventListener:function(f,d){var v,p,m=this.K[f],g=[];for(p in m)m.hasOwnProperty(p)&&m[p]===d&&g.push(p);for(v=0;vd&&(f.h[d]=f.h[d]+1|0,!f.h[d]);d++);return f.L.encrypt(f.h)}function l(f,d){return function(){d.apply(f,arguments)}}t.random=new t.prng(6);e:try{var s,y,c,h;if(h=e.exports){var S;try{S=pi}catch{S=null}h=y=S}if(h&&y.randomBytes)s=y.randomBytes(128),s=new Uint32Array(new Uint8Array(s).buffer),t.random.addEntropy(s,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(c=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(c);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(c);else break e;t.random.addEntropy(c,1024,"crypto['getRandomValues']")}}catch(f){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(f))}t.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(f,d,v,p){v=v||{},p=p||{};var m=t.json,g=m.g({iv:t.random.randomWords(4,0)},m.defaults),b;if(m.g(g,v),v=g.adata,typeof g.salt=="string"&&(g.salt=t.codec.base64.toBits(g.salt)),typeof g.iv=="string"&&(g.iv=t.codec.base64.toBits(g.iv)),!t.mode[g.mode]||!t.cipher[g.cipher]||typeof f=="string"&&100>=g.iter||g.ts!==64&&g.ts!==96&&g.ts!==128||g.ks!==128&&g.ks!==192&&g.ks!==256||2>g.iv.length||4=d.iter||d.ts!==64&&d.ts!==96&&d.ts!==128||d.ks!==128&&d.ks!==192&&d.ks!==256||!d.iv||2>d.iv.length||4=0;u--)(o=e[u])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function ET(e,t){return function(n,i){t(n,i,e)}}function kT(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function AT(e,t,n,i){function r(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(y){try{s(i.next(y))}catch(c){o(c)}}function l(y){try{s(i.throw(y))}catch(c){o(c)}}function s(y){y.done?a(y.value):r(y.value).then(u,l)}s((i=i.apply(e,t||[])).next())})}function TT(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(y){return l([s,y])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(a=s[0]&2?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,r=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N6(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,a=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function OT(){for(var e=[],t=0;t1||u(h,S)})})}function u(h,S){try{l(i[h](S))}catch(f){c(a[0][3],f)}}function l(h){h.value instanceof Xs?Promise.resolve(h.value.v).then(s,y):c(a[0][2],h)}function s(h){u("next",h)}function y(h){u("throw",h)}function c(h,S){h(S),a.shift(),a.length&&u(a[0][0],a[0][1])}}function qT(e){var t,n;return t={},i("next"),i("throw",function(r){throw r}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(r,a){t[r]=e[r]?function(o){return(n=!n)?{value:Xs(e[r](o)),done:r==="return"}:a?a(o):o}:a}}function BT(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Am=="function"?Am(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(a){n[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),r(u,l,o.done,o.value)})}}function r(a,o,u,l){Promise.resolve(l).then(function(s){a({value:s,done:u})},o)}}function MT(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function LT(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function NT(e){return e&&e.__esModule?e:{default:e}}function FT(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function DT(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}const UT=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return km},__asyncDelegator:qT,__asyncGenerator:IT,__asyncValues:BT,__await:Xs,__awaiter:AT,__classPrivateFieldGet:FT,__classPrivateFieldSet:DT,__createBinding:PT,__decorate:ST,__exportStar:CT,__extends:xT,__generator:TT,__importDefault:NT,__importStar:LT,__makeTemplateObject:MT,__metadata:kT,__param:ET,__read:N6,__rest:bT,__spread:OT,__spreadArrays:RT,__values:Am},Symbol.toStringTag,{value:"Module"})),Kt=Nm(UT);function Ig(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var F6={exports:{}};/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.8+1e68dce6 + */(function(e,t){(function(n,i){e.exports=i()})($t,function(){function n(j){var X=typeof j;return j!==null&&(X==="object"||X==="function")}function i(j){return typeof j=="function"}var r=void 0;Array.isArray?r=Array.isArray:r=function(j){return Object.prototype.toString.call(j)==="[object Array]"};var a=r,o=0,u=void 0,l=void 0,s=function(X,le){B[o]=X,B[o+1]=le,o+=2,o===2&&(l?l(L):F())};function y(j){l=j}function c(j){s=j}var h=typeof window<"u"?window:void 0,S=h||{},f=S.MutationObserver||S.WebKitMutationObserver,d=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",v=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function p(){return function(){return process.nextTick(L)}}function m(){return typeof u<"u"?function(){u(L)}:R()}function g(){var j=0,X=new f(L),le=document.createTextNode("");return X.observe(le,{characterData:!0}),function(){le.data=j=++j%2}}function b(){var j=new MessageChannel;return j.port1.onmessage=L,function(){return j.port2.postMessage(0)}}function R(){var j=setTimeout;return function(){return j(L,1)}}var B=new Array(1e3);function L(){for(var j=0;j",eP="Apache-2.0",tP={url:"https://github.com/stellar/js-stellar-sdk/issues"},rP="https://github.com/stellar/js-stellar-sdk",nP={"@kollavarsham/gulp-coveralls":"0.2.8","@stellar/prettier-config":"^1.0.1","@stellar/tsconfig":"^1.0.1","@stellar/tslint-config":"^1.0.3","@types/detect-node":"^2.0.0","@types/lodash":"^4.14.130","axios-mock-adapter":"^1.16.0","babel-cli":"^6.26.0","babel-core":"~6.26.3","babel-eslint":"^10.0.1","babel-istanbul":"^0.12.2","babel-loader":"^7.0.0","babel-plugin-transform-builtin-extend":"^1.1.2","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","body-parser":"^1.12.2",chai:"^2.2.0","chai-as-promised":"^5.2.0","chai-http":"^4.3.0",clear:"^0.1.0",coveralls:"3.0.2",del:"^5.1.0",eslint:"^5.12.1","eslint-config-airbnb-base":"^13.1.0","eslint-config-prettier":"^3.6.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prefer-import":"^0.0.1","eslint-plugin-prettier":"^3.0.1",ghooks:"^0.3.0",gulp:"^4.0.0","gulp-babel":"^6.1.3","gulp-eslint":"^5.0.0","gulp-insert":"^0.5.0","gulp-istanbul":"^1.1.3","gulp-load-plugins":"1.5.0","gulp-mocha":"^7.0.2","gulp-plumber":"^1.0.0","gulp-rename":"~1.2.0","gulp-tslint":"^8.1.4",husky:"^1.3.1",isparta:"^4.1.1",istanbul:"^0.4.5",jsdoc:"3.5.5","json-loader":"^0.5.1",karma:"^6.3.0","karma-chai":"^0.1.0","karma-chai-as-promised":"^0.1.2","karma-chrome-launcher":"^3.1.0","karma-commonjs":"^1.0.0","karma-firefox-launcher":"^2.1.2","karma-mocha":"^2.0.1","karma-phantomjs-launcher":"^1.0.4","karma-sauce-launcher":"2.0.2","karma-sinon":"^1.0.5","karma-sinon-chai":"2.0.2","karma-webpack":"5.0.0","lint-staged":"7.3.0",minami:"^1.1.1",mocha:"^9.1.4",prettier:"^1.17.1",sinon:"^1.14.1","sinon-chai":"^2.7.0","terser-webpack-plugin":"^1.3.0","ts-loader":"^5.0.0",tslint:"^5.16.0",typescript:"^3.4.5",webpack:"^4.33.0","webpack-cli":"^3.3.3","webpack-stream":"^5.2.1"},iP={"@types/eventsource":"^1.1.2","@types/node":">= 8","@types/randombytes":"^2.0.0","@types/urijs":"^1.19.6",axios:"0.25.0","bignumber.js":"^4.0.0","detect-node":"^2.0.4","es6-promise":"^4.2.4",eventsource:"^1.1.1",lodash:"^4.17.21",randombytes:"^2.1.0","stellar-base":"^8.2.2",toml:"^2.3.0",tslib:"^1.10.0",urijs:"^1.19.1","utility-types":"^3.7.0"},qg={name:zT,version:VT,description:$T,main:HT,types:KT,files:XT,scripts:QT,husky:WT,prettier:GT,"lint-staged":{"lib/*.{js,json}":["prettier --write","git add"],"lib/*.js":["eslint --fix --max-warnings 0","git add"],"**/*.ts":["prettier --write","tslint --fix","git add"]},keywords:YT,repository:ZT,author:JT,license:eP,bugs:tP,homepage:rP,devDependencies:nP,dependencies:iP};var Cf={},E1;function aP(){return E1||(E1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Horizon=void 0,function(t){(function(n){n.constantProduct="constant_product"})(t.LiquidityPoolType||(t.LiquidityPoolType={})),function(n){n.createAccount="create_account",n.payment="payment",n.pathPayment="path_payment_strict_receive",n.createPassiveOffer="create_passive_sell_offer",n.manageOffer="manage_sell_offer",n.setOptions="set_options",n.changeTrust="change_trust",n.allowTrust="allow_trust",n.accountMerge="account_merge",n.inflation="inflation",n.manageData="manage_data",n.bumpSequence="bump_sequence",n.manageBuyOffer="manage_buy_offer",n.pathPaymentStrictSend="path_payment_strict_send",n.createClaimableBalance="create_claimable_balance",n.claimClaimableBalance="claim_claimable_balance",n.beginSponsoringFutureReserves="begin_sponsoring_future_reserves",n.endSponsoringFutureReserves="end_sponsoring_future_reserves",n.revokeSponsorship="revoke_sponsorship",n.clawback="clawback",n.clawbackClaimableBalance="clawback_claimable_balance",n.setTrustLineFlags="set_trust_line_flags",n.liquidityPoolDeposit="liquidity_pool_deposit",n.liquidityPoolWithdraw="liquidity_pool_withdraw"}(t.OperationResponseType||(t.OperationResponseType={})),function(n){n[n.createAccount=0]="createAccount",n[n.payment=1]="payment",n[n.pathPayment=2]="pathPayment",n[n.createPassiveOffer=3]="createPassiveOffer",n[n.manageOffer=4]="manageOffer",n[n.setOptions=5]="setOptions",n[n.changeTrust=6]="changeTrust",n[n.allowTrust=7]="allowTrust",n[n.accountMerge=8]="accountMerge",n[n.inflation=9]="inflation",n[n.manageData=10]="manageData",n[n.bumpSequence=11]="bumpSequence",n[n.manageBuyOffer=12]="manageBuyOffer",n[n.pathPaymentStrictSend=13]="pathPaymentStrictSend",n[n.createClaimableBalance=14]="createClaimableBalance",n[n.claimClaimableBalance=15]="claimClaimableBalance",n[n.beginSponsoringFutureReserves=16]="beginSponsoringFutureReserves",n[n.endSponsoringFutureReserves=17]="endSponsoringFutureReserves",n[n.revokeSponsorship=18]="revokeSponsorship",n[n.clawback=19]="clawback",n[n.clawbackClaimableBalance=20]="clawbackClaimableBalance",n[n.setTrustLineFlags=21]="setTrustLineFlags",n[n.liquidityPoolDeposit=22]="liquidityPoolDeposit",n[n.liquidityPoolWithdraw=23]="liquidityPoolWithdraw"}(t.OperationResponseTypeI||(t.OperationResponseTypeI={})),function(n){n.TX_FAILED="tx_failed",n.TX_BAD_SEQ="tx_bad_seq",n.TX_BAD_AUTH="tx_bad_auth",n.TX_BAD_AUTH_EXTRA="tx_bad_auth_extra",n.TX_FEE_BUMP_INNER_SUCCESS="tx_fee_bump_inner_success",n.TX_FEE_BUMP_INNER_FAILED="tx_fee_bump_inner_failed",n.TX_NOT_SUPPORTED="tx_not_supported",n.TX_SUCCESS="tx_success",n.TX_TOO_EARLY="tx_too_early",n.TX_TOO_LATE="tx_too_late",n.TX_MISSING_OPERATION="tx_missing_operation",n.TX_INSUFFICIENT_BALANCE="tx_insufficient_balance",n.TX_NO_SOURCE_ACCOUNT="tx_no_source_account",n.TX_INSUFFICIENT_FEE="tx_insufficient_fee",n.TX_INTERNAL_ERROR="tx_internal_error"}(t.TransactionFailedResultCodes||(t.TransactionFailedResultCodes={}))}(e.Horizon||(e.Horizon={}))}(Cf)),Cf}var Of={},k1;function oP(){return k1||(k1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ServerApi=void 0,function(t){(function(n){n.all="all",n.liquidityPools="liquidity_pool",n.orderbook="orderbook"})(t.TradeType||(t.TradeType={}))}(e.ServerApi||(e.ServerApi={}))}(Of)),Of}var vo={},Rf,A1;function sP(){if(A1)return Rf;A1=1;function e(t){return function(n,i,r){for(var a=-1,o=Object(n),u=r(n),l=u.length;l--;){var s=u[t?l:++a];if(i(o[s],s,o)===!1)break}return n}}return Rf=e,Rf}var If,T1;function Bg(){if(T1)return If;T1=1;var e=sP(),t=e();return If=t,If}var qf,P1;function Ac(){if(P1)return qf;P1=1;function e(t){return t}return qf=e,qf}var Bf,C1;function Mg(){if(C1)return Bf;C1=1;var e=Ac();function t(n){return typeof n=="function"?n:e}return Bf=t,Bf}var Mf,O1;function D6(){if(O1)return Mf;O1=1;function e(t,n){for(var i=-1,r=Array(t);++i-1&&i%1==0&&i-1&&n%1==0&&n<=e}return Qf=t,Qf}var Wf,H1;function dP(){if(H1)return Wf;H1=1;var e=ei(),t=Ng(),n=vn(),i="[object Arguments]",r="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",l="[object Function]",s="[object Map]",y="[object Number]",c="[object Object]",h="[object RegExp]",S="[object Set]",f="[object String]",d="[object WeakMap]",v="[object ArrayBuffer]",p="[object DataView]",m="[object Float32Array]",g="[object Float64Array]",b="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",L="[object Uint8Array]",q="[object Uint8ClampedArray]",F="[object Uint16Array]",U="[object Uint32Array]",J={};J[m]=J[g]=J[b]=J[R]=J[B]=J[L]=J[q]=J[F]=J[U]=!0,J[i]=J[r]=J[v]=J[a]=J[p]=J[o]=J[u]=J[l]=J[s]=J[y]=J[c]=J[h]=J[S]=J[f]=J[d]=!1;function ce(E){return n(E)&&t(E.length)&&!!J[e(E)]}return Wf=ce,Wf}var Gf,K1;function Fg(){if(K1)return Gf;K1=1;function e(t){return function(n){return t(n)}}return Gf=e,Gf}var ys={exports:{}};ys.exports;var X1;function Dg(){return X1||(X1=1,function(e,t){var n=U6(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&n.process,u=function(){try{var l=r&&r.require&&r.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u}(ys,ys.exports)),ys.exports}var Yf,Q1;function Pc(){if(Q1)return Yf;Q1=1;var e=dP(),t=Fg(),n=Dg(),i=n&&n.isTypedArray,r=i?t(i):e;return Yf=r,Yf}var Zf,W1;function j6(){if(W1)return Zf;W1=1;var e=D6(),t=Tc(),n=mr(),i=tu(),r=Lg(),a=Pc(),o=Object.prototype,u=o.hasOwnProperty;function l(s,y){var c=n(s),h=!c&&t(s),S=!c&&!h&&i(s),f=!c&&!h&&!S&&a(s),d=c||h||S||f,v=d?e(s.length,String):[],p=v.length;for(var m in s)(y||u.call(s,m))&&!(d&&(m=="length"||S&&(m=="offset"||m=="parent")||f&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||r(m,p)))&&v.push(m);return v}return Zf=l,Zf}var Jf,G1;function jn(){if(G1)return Jf;G1=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Jf=e,Jf}var ed,Y1;function Cc(){if(Y1)return ed;Y1=1;var e=Object.prototype;function t(n){var i=n&&n.constructor,r=typeof i=="function"&&i.prototype||e;return n===r}return ed=t,ed}var td,Z1;function hP(){if(Z1)return td;Z1=1;function e(t){var n=[];if(t!=null)for(var i in Object(t))n.push(i);return n}return td=e,td}var rd,J1;function pP(){if(J1)return rd;J1=1;var e=jn(),t=Cc(),n=hP(),i=Object.prototype,r=i.hasOwnProperty;function a(o){if(!e(o))return n(o);var u=t(o),l=[];for(var s in o)s=="constructor"&&(u||!r.call(o,s))||l.push(s);return l}return rd=a,rd}var nd,ew;function Oc(){if(ew)return nd;ew=1;var e=ei(),t=jn(),n="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var l=e(u);return l==i||l==r||l==n||l==a}return nd=o,nd}var id,tw;function ea(){if(tw)return id;tw=1;var e=Oc(),t=Ng();function n(i){return i!=null&&t(i.length)&&!e(i)}return id=n,id}var ad,rw;function ta(){if(rw)return ad;rw=1;var e=j6(),t=pP(),n=ea();function i(r){return n(r)?e(r,!0):t(r)}return ad=i,ad}var od,nw;function vP(){if(nw)return od;nw=1;var e=Bg(),t=Mg(),n=ta();function i(r,a){return r==null?r:e(r,t(a),n)}return od=i,od}var $u={exports:{}},Hu={},sd={exports:{}},Ku={exports:{}},iw;function ja(){return iw||(iw=1,typeof Object.create=="function"?Ku.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ku.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),Ku.exports}var Xu={exports:{}},ud={},mo={},aw;function mP(){if(aw)return mo;aw=1,mo.byteLength=u,mo.toByteArray=s,mo.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,a=i.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");var d=S.indexOf("=");d===-1&&(d=f);var v=d===f?0:4-d%4;return[d,v]}function u(S){var f=o(S),d=f[0],v=f[1];return(d+v)*3/4-v}function l(S,f,d){return(f+d)*3/4-d}function s(S){var f,d=o(S),v=d[0],p=d[1],m=new n(l(S,v,p)),g=0,b=p>0?v-4:v,R;for(R=0;R>16&255,m[g++]=f>>8&255,m[g++]=f&255;return p===2&&(f=t[S.charCodeAt(R)]<<2|t[S.charCodeAt(R+1)]>>4,m[g++]=f&255),p===1&&(f=t[S.charCodeAt(R)]<<10|t[S.charCodeAt(R+1)]<<4|t[S.charCodeAt(R+2)]>>2,m[g++]=f>>8&255,m[g++]=f&255),m}function y(S){return e[S>>18&63]+e[S>>12&63]+e[S>>6&63]+e[S&63]}function c(S,f,d){for(var v,p=[],m=f;mb?b:g+m));return v===1?(f=S[d-1],p.push(e[f>>2]+e[f<<4&63]+"==")):v===2&&(f=(S[d-2]<<8)+S[d-1],p.push(e[f>>10]+e[f>>4&63]+e[f<<2&63]+"=")),p.join("")}return mo}var Qu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var ow;function gP(){return ow||(ow=1,Qu.read=function(e,t,n,i,r){var a,o,u=r*8-i-1,l=(1<>1,y=-7,c=n?r-1:0,h=n?-1:1,S=e[t+c];for(c+=h,a=S&(1<<-y)-1,S>>=-y,y+=u;y>0;a=a*256+e[t+c],c+=h,y-=8);for(o=a&(1<<-y)-1,a>>=-y,y+=i;y>0;o=o*256+e[t+c],c+=h,y-=8);if(a===0)a=1-s;else{if(a===l)return o?NaN:(S?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-s}return(S?-1:1)*o*Math.pow(2,a-i)},Qu.write=function(e,t,n,i,r,a){var o,u,l,s=a*8-r-1,y=(1<>1,h=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=i?0:a-1,f=i?1:-1,d=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=y):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=y?(u=0,o=y):o+c>=1?(u=(t*l-1)*Math.pow(2,r),o=o+c):(u=t*Math.pow(2,c-1)*Math.pow(2,r),o=0));r>=8;e[n+S]=u&255,S+=f,u/=256,r-=8);for(o=o<0;e[n+S]=o&255,S+=f,o/=256,s-=8);e[n+S-f]|=d*128}),Qu}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var sw;function z6(){return sw||(sw=1,function(e){var t=mP(),n=gP(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;var r=2147483647;e.kMaxLength=r,u.TYPED_ARRAY_SUPPORT=a(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function a(){try{var C=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(C,w),C.foo()===42}catch{return!1}}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}});function o(C){if(C>r)throw new RangeError('The value "'+C+'" is invalid for option "size"');var w=new Uint8Array(C);return Object.setPrototypeOf(w,u.prototype),w}function u(C,w,P){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(C)}return l(C,w,P)}u.poolSize=8192;function l(C,w,P){if(typeof C=="string")return h(C,w);if(ArrayBuffer.isView(C))return f(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Xe(C,ArrayBuffer)||C&&Xe(C.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xe(C,SharedArrayBuffer)||C&&Xe(C.buffer,SharedArrayBuffer)))return d(C,w,P);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return u.from(M,w,P);var V=v(C);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return u.from(C[Symbol.toPrimitive]("string"),w,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}u.from=function(C,w,P){return l(C,w,P)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function s(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function y(C,w,P){return s(C),C<=0?o(C):w!==void 0?typeof P=="string"?o(C).fill(w,P):o(C).fill(w):o(C)}u.alloc=function(C,w,P){return y(C,w,P)};function c(C){return s(C),o(C<0?0:p(C)|0)}u.allocUnsafe=function(C){return c(C)},u.allocUnsafeSlow=function(C){return c(C)};function h(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!u.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var P=g(C,w)|0,M=o(P),V=M.write(C,w);return V!==P&&(M=M.slice(0,V)),M}function S(C){for(var w=C.length<0?0:p(C.length)|0,P=o(w),M=0;M=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return C|0}function m(C){return+C!=C&&(C=0),u.alloc(+C)}u.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==u.prototype},u.compare=function(w,P){if(Xe(w,Uint8Array)&&(w=u.from(w,w.offset,w.byteLength)),Xe(P,Uint8Array)&&(P=u.from(P,P.offset,P.byteLength)),!u.isBuffer(w)||!u.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===P)return 0;for(var M=w.length,V=P.length,te=0,ee=Math.min(M,V);teV.length?u.from(ee).copy(V,te):Uint8Array.prototype.set.call(V,ee,te);else if(u.isBuffer(ee))ee.copy(V,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ee.length}return V};function g(C,w){if(u.isBuffer(C))return C.length;if(ArrayBuffer.isView(C)||Xe(C,ArrayBuffer))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);var P=C.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&P===0)return 0;for(var V=!1;;)switch(w){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return _e(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return et(C).length;default:if(V)return M?-1:_e(C).length;w=(""+w).toLowerCase(),V=!0}}u.byteLength=g;function b(C,w,P){var M=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,w>>>=0,P<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return re(this,w,P);case"utf8":case"utf-8":return O(this,w,P);case"ascii":return ne(this,w,P);case"latin1":case"binary":return W(this,w,P);case"base64":return E(this,w,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,w,P);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}u.prototype._isBuffer=!0;function R(C,w,P){var M=C[w];C[w]=C[P],C[P]=M}u.prototype.swap16=function(){var w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var P=0;PP&&(w+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(w,P,M,V,te){if(Xe(w,Uint8Array)&&(w=u.from(w,w.offset,w.byteLength)),!u.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(P===void 0&&(P=0),M===void 0&&(M=w?w.length:0),V===void 0&&(V=0),te===void 0&&(te=this.length),P<0||M>w.length||V<0||te>this.length)throw new RangeError("out of range index");if(V>=te&&P>=M)return 0;if(V>=te)return-1;if(P>=M)return 1;if(P>>>=0,M>>>=0,V>>>=0,te>>>=0,this===w)return 0;for(var ee=te-V,j=M-P,X=Math.min(ee,j),le=this.slice(V,te),de=w.slice(P,M),he=0;he2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,it(P)&&(P=V?0:C.length-1),P<0&&(P=C.length+P),P>=C.length){if(V)return-1;P=C.length-1}else if(P<0)if(V)P=0;else return-1;if(typeof w=="string"&&(w=u.from(w,M)),u.isBuffer(w))return w.length===0?-1:L(C,w,P,M,V);if(typeof w=="number")return w=w&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(C,w,P):Uint8Array.prototype.lastIndexOf.call(C,w,P):L(C,[w],P,M,V);throw new TypeError("val must be string, number or Buffer")}function L(C,w,P,M,V){var te=1,ee=C.length,j=w.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||w.length<2)return-1;te=2,ee/=2,j/=2,P/=2}function X(Ve,wt){return te===1?Ve[wt]:Ve.readUInt16BE(wt*te)}var le;if(V){var de=-1;for(le=P;leee&&(P=ee-j),le=P;le>=0;le--){for(var he=!0,Oe=0;OeV&&(M=V)):M=V;var te=w.length;M>te/2&&(M=te/2);for(var ee=0;ee>>0,isFinite(M)?(M=M>>>0,V===void 0&&(V="utf8")):(V=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-P;if((M===void 0||M>te)&&(M=te),w.length>0&&(M<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");for(var ee=!1;;)switch(V){case"hex":return q(this,w,P,M);case"utf8":case"utf-8":return F(this,w,P,M);case"ascii":case"latin1":case"binary":return U(this,w,P,M);case"base64":return J(this,w,P,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,w,P,M);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(C,w,P){return w===0&&P===C.length?t.fromByteArray(C):t.fromByteArray(C.slice(w,P))}function O(C,w,P){P=Math.min(C.length,P);for(var M=[],V=w;V239?4:te>223?3:te>191?2:1;if(V+j<=P){var X,le,de,he;switch(j){case 1:te<128&&(ee=te);break;case 2:X=C[V+1],(X&192)===128&&(he=(te&31)<<6|X&63,he>127&&(ee=he));break;case 3:X=C[V+1],le=C[V+2],(X&192)===128&&(le&192)===128&&(he=(te&15)<<12|(X&63)<<6|le&63,he>2047&&(he<55296||he>57343)&&(ee=he));break;case 4:X=C[V+1],le=C[V+2],de=C[V+3],(X&192)===128&&(le&192)===128&&(de&192)===128&&(he=(te&15)<<18|(X&63)<<12|(le&63)<<6|de&63,he>65535&&he<1114112&&(ee=he))}}ee===null?(ee=65533,j=1):ee>65535&&(ee-=65536,M.push(ee>>>10&1023|55296),ee=56320|ee&1023),M.push(ee),V+=j}return Z(M)}var H=4096;function Z(C){var w=C.length;if(w<=H)return String.fromCharCode.apply(String,C);for(var P="",M=0;MM)&&(P=M);for(var V="",te=w;teM&&(w=M),P<0?(P+=M,P<0&&(P=0)):P>M&&(P=M),PP)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(w,P,M){w=w>>>0,P=P>>>0,M||G(w,P,this.length);for(var V=this[w],te=1,ee=0;++ee>>0,P=P>>>0,M||G(w,P,this.length);for(var V=this[w+--P],te=1;P>0&&(te*=256);)V+=this[w+--P]*te;return V},u.prototype.readUint8=u.prototype.readUInt8=function(w,P){return w=w>>>0,P||G(w,1,this.length),this[w]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(w,P){return w=w>>>0,P||G(w,2,this.length),this[w]|this[w+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(w,P){return w=w>>>0,P||G(w,2,this.length),this[w]<<8|this[w+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(w,P){return w=w>>>0,P||G(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(w,P){return w=w>>>0,P||G(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},u.prototype.readIntLE=function(w,P,M){w=w>>>0,P=P>>>0,M||G(w,P,this.length);for(var V=this[w],te=1,ee=0;++ee=te&&(V-=Math.pow(2,8*P)),V},u.prototype.readIntBE=function(w,P,M){w=w>>>0,P=P>>>0,M||G(w,P,this.length);for(var V=P,te=1,ee=this[w+--V];V>0&&(te*=256);)ee+=this[w+--V]*te;return te*=128,ee>=te&&(ee-=Math.pow(2,8*P)),ee},u.prototype.readInt8=function(w,P){return w=w>>>0,P||G(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},u.prototype.readInt16LE=function(w,P){w=w>>>0,P||G(w,2,this.length);var M=this[w]|this[w+1]<<8;return M&32768?M|4294901760:M},u.prototype.readInt16BE=function(w,P){w=w>>>0,P||G(w,2,this.length);var M=this[w+1]|this[w]<<8;return M&32768?M|4294901760:M},u.prototype.readInt32LE=function(w,P){return w=w>>>0,P||G(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},u.prototype.readInt32BE=function(w,P){return w=w>>>0,P||G(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},u.prototype.readFloatLE=function(w,P){return w=w>>>0,P||G(w,4,this.length),n.read(this,w,!0,23,4)},u.prototype.readFloatBE=function(w,P){return w=w>>>0,P||G(w,4,this.length),n.read(this,w,!1,23,4)},u.prototype.readDoubleLE=function(w,P){return w=w>>>0,P||G(w,8,this.length),n.read(this,w,!0,52,8)},u.prototype.readDoubleBE=function(w,P){return w=w>>>0,P||G(w,8,this.length),n.read(this,w,!1,52,8)};function se(C,w,P,M,V,te){if(!u.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>V||wC.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(w,P,M,V){if(w=+w,P=P>>>0,M=M>>>0,!V){var te=Math.pow(2,8*M)-1;se(this,w,P,M,te,0)}var ee=1,j=0;for(this[P]=w&255;++j>>0,M=M>>>0,!V){var te=Math.pow(2,8*M)-1;se(this,w,P,M,te,0)}var ee=M-1,j=1;for(this[P+ee]=w&255;--ee>=0&&(j*=256);)this[P+ee]=w/j&255;return P+M},u.prototype.writeUint8=u.prototype.writeUInt8=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,1,255,0),this[P]=w&255,P+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,2,65535,0),this[P]=w&255,this[P+1]=w>>>8,P+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,2,65535,0),this[P]=w>>>8,this[P+1]=w&255,P+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,4,4294967295,0),this[P+3]=w>>>24,this[P+2]=w>>>16,this[P+1]=w>>>8,this[P]=w&255,P+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,4,4294967295,0),this[P]=w>>>24,this[P+1]=w>>>16,this[P+2]=w>>>8,this[P+3]=w&255,P+4},u.prototype.writeIntLE=function(w,P,M,V){if(w=+w,P=P>>>0,!V){var te=Math.pow(2,8*M-1);se(this,w,P,M,te-1,-te)}var ee=0,j=1,X=0;for(this[P]=w&255;++ee>0)-X&255;return P+M},u.prototype.writeIntBE=function(w,P,M,V){if(w=+w,P=P>>>0,!V){var te=Math.pow(2,8*M-1);se(this,w,P,M,te-1,-te)}var ee=M-1,j=1,X=0;for(this[P+ee]=w&255;--ee>=0&&(j*=256);)w<0&&X===0&&this[P+ee+1]!==0&&(X=1),this[P+ee]=(w/j>>0)-X&255;return P+M},u.prototype.writeInt8=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,1,127,-128),w<0&&(w=255+w+1),this[P]=w&255,P+1},u.prototype.writeInt16LE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,2,32767,-32768),this[P]=w&255,this[P+1]=w>>>8,P+2},u.prototype.writeInt16BE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,2,32767,-32768),this[P]=w>>>8,this[P+1]=w&255,P+2},u.prototype.writeInt32LE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,4,2147483647,-2147483648),this[P]=w&255,this[P+1]=w>>>8,this[P+2]=w>>>16,this[P+3]=w>>>24,P+4},u.prototype.writeInt32BE=function(w,P,M){return w=+w,P=P>>>0,M||se(this,w,P,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[P]=w>>>24,this[P+1]=w>>>16,this[P+2]=w>>>8,this[P+3]=w&255,P+4};function Ee(C,w,P,M,V,te){if(P+M>C.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function Be(C,w,P,M,V){return w=+w,P=P>>>0,V||Ee(C,w,P,4),n.write(C,w,P,M,23,4),P+4}u.prototype.writeFloatLE=function(w,P,M){return Be(this,w,P,!0,M)},u.prototype.writeFloatBE=function(w,P,M){return Be(this,w,P,!1,M)};function Pe(C,w,P,M,V){return w=+w,P=P>>>0,V||Ee(C,w,P,8),n.write(C,w,P,M,52,8),P+8}u.prototype.writeDoubleLE=function(w,P,M){return Pe(this,w,P,!0,M)},u.prototype.writeDoubleBE=function(w,P,M){return Pe(this,w,P,!1,M)},u.prototype.copy=function(w,P,M,V){if(!u.isBuffer(w))throw new TypeError("argument should be a Buffer");if(M||(M=0),!V&&V!==0&&(V=this.length),P>=w.length&&(P=w.length),P||(P=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),w.length-P>>0,M=M===void 0?this.length:M>>>0,w||(w=0);var ee;if(typeof w=="number")for(ee=P;ee55295&&P<57344){if(!V){if(P>56319){(w-=3)>-1&&te.push(239,191,189);continue}else if(ee+1===M){(w-=3)>-1&&te.push(239,191,189);continue}V=P;continue}if(P<56320){(w-=3)>-1&&te.push(239,191,189),V=P;continue}P=(V-55296<<10|P-56320)+65536}else V&&(w-=3)>-1&&te.push(239,191,189);if(V=null,P<128){if((w-=1)<0)break;te.push(P)}else if(P<2048){if((w-=2)<0)break;te.push(P>>6|192,P&63|128)}else if(P<65536){if((w-=3)<0)break;te.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((w-=4)<0)break;te.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return te}function nt(C){for(var w=[],P=0;P>8,V=P%256,te.push(V),te.push(M);return te}function et(C){return t.toByteArray(Ye(C))}function tt(C,w,P,M){for(var V=0;V=w.length||V>=C.length);++V)w[V+P]=C[V];return V}function Xe(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function it(C){return C!==C}var Me=function(){for(var C="0123456789abcdef",w=new Array(256),P=0;P<16;++P)for(var M=P*16,V=0;V<16;++V)w[M+V]=C[P]+C[V];return w}()}(ud)),ud}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var uw;function Ri(){return uw||(uw=1,function(e,t){var n=z6(),i=n.Buffer;function r(o,u){for(var l in o)u[l]=o[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=a);function a(o,u,l){return i(o,u,l)}a.prototype=Object.create(i.prototype),r(i,a),a.from=function(o,u,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,u,l)},a.alloc=function(o,u,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var s=i(o);return u!==void 0?typeof l=="string"?s.fill(u,l):s.fill(u):s.fill(0),s},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}}(Xu,Xu.exports)),Xu.exports}var ld,lw;function za(){if(lw)return ld;lw=1;var e=Ri().Buffer;function t(n,i){this._block=e.alloc(n),this._finalSize=i,this._blockSize=n,this._len=0}return t.prototype.update=function(n,i){typeof n=="string"&&(i=i||"utf8",n=e.from(n,i));for(var r=this._block,a=this._blockSize,o=n.length,u=this._len,l=0;l=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var a=(r&4294967295)>>>0,o=(r-a)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var u=this._hash();return n?u.toString(n):u},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ld=t,ld}var cd,cw;function yP(){if(cw)return cd;cw=1;var e=ja(),t=za(),n=Ri().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function a(){this.init(),this._w=r,t.call(this,64,56)}e(a,t),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(s){return s<<5|s>>>27}function u(s){return s<<30|s>>>2}function l(s,y,c,h){return s===0?y&c|~y&h:s===2?y&c|y&h|c&h:y^c^h}return a.prototype._update=function(s){for(var y=this._w,c=this._a|0,h=this._b|0,S=this._c|0,f=this._d|0,d=this._e|0,v=0;v<16;++v)y[v]=s.readInt32BE(v*4);for(;v<80;++v)y[v]=y[v-3]^y[v-8]^y[v-14]^y[v-16];for(var p=0;p<80;++p){var m=~~(p/20),g=o(c)+l(m,h,S,f)+d+y[p]+i[m]|0;d=f,f=S,S=u(h),h=c,c=g}this._a=c+this._a|0,this._b=h+this._b|0,this._c=S+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0},a.prototype._hash=function(){var s=n.allocUnsafe(20);return s.writeInt32BE(this._a|0,0),s.writeInt32BE(this._b|0,4),s.writeInt32BE(this._c|0,8),s.writeInt32BE(this._d|0,12),s.writeInt32BE(this._e|0,16),s},cd=a,cd}var fd,fw;function wP(){if(fw)return fd;fw=1;var e=ja(),t=za(),n=Ri().Buffer,i=[1518500249,1859775393,-1894007588,-899497514],r=new Array(80);function a(){this.init(),this._w=r,t.call(this,64,56)}e(a,t),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function o(y){return y<<1|y>>>31}function u(y){return y<<5|y>>>27}function l(y){return y<<30|y>>>2}function s(y,c,h,S){return y===0?c&h|~c&S:y===2?c&h|c&S|h&S:c^h^S}return a.prototype._update=function(y){for(var c=this._w,h=this._a|0,S=this._b|0,f=this._c|0,d=this._d|0,v=this._e|0,p=0;p<16;++p)c[p]=y.readInt32BE(p*4);for(;p<80;++p)c[p]=o(c[p-3]^c[p-8]^c[p-14]^c[p-16]);for(var m=0;m<80;++m){var g=~~(m/20),b=u(h)+s(g,S,f,d)+v+c[m]+i[g]|0;v=d,d=f,f=l(S),S=h,h=b}this._a=h+this._a|0,this._b=S+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=v+this._e|0},a.prototype._hash=function(){var y=n.allocUnsafe(20);return y.writeInt32BE(this._a|0,0),y.writeInt32BE(this._b|0,4),y.writeInt32BE(this._c|0,8),y.writeInt32BE(this._d|0,12),y.writeInt32BE(this._e|0,16),y},fd=a,fd}var dd,dw;function V6(){if(dw)return dd;dw=1;var e=ja(),t=za(),n=Ri().Buffer,i=[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],r=new Array(64);function a(){this.init(),this._w=r,t.call(this,64,56)}e(a,t),a.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};function o(h,S,f){return f^h&(S^f)}function u(h,S,f){return h&S|f&(h|S)}function l(h){return(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10)}function s(h){return(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7)}function y(h){return(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3}function c(h){return(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10}return a.prototype._update=function(h){for(var S=this._w,f=this._a|0,d=this._b|0,v=this._c|0,p=this._d|0,m=this._e|0,g=this._f|0,b=this._g|0,R=this._h|0,B=0;B<16;++B)S[B]=h.readInt32BE(B*4);for(;B<64;++B)S[B]=c(S[B-2])+S[B-7]+y(S[B-15])+S[B-16]|0;for(var L=0;L<64;++L){var q=R+s(m)+o(m,g,b)+i[L]+S[L]|0,F=l(f)+u(f,d,v)|0;R=b,b=g,g=m,m=p+q|0,p=v,v=d,d=f,f=q+F|0}this._a=f+this._a|0,this._b=d+this._b|0,this._c=v+this._c|0,this._d=p+this._d|0,this._e=m+this._e|0,this._f=g+this._f|0,this._g=b+this._g|0,this._h=R+this._h|0},a.prototype._hash=function(){var h=n.allocUnsafe(32);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h.writeInt32BE(this._h,28),h},dd=a,dd}var hd,hw;function _P(){if(hw)return hd;hw=1;var e=ja(),t=V6(),n=za(),i=Ri().Buffer,r=new Array(64);function a(){this.init(),this._w=r,n.call(this,64,56)}return e(a,t),a.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},a.prototype._hash=function(){var o=i.allocUnsafe(28);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o},hd=a,hd}var pd,pw;function $6(){if(pw)return pd;pw=1;var e=ja(),t=za(),n=Ri().Buffer,i=[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],r=new Array(160);function a(){this.init(),this._w=r,t.call(this,128,112)}e(a,t),a.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};function o(d,v,p){return p^d&(v^p)}function u(d,v,p){return d&v|p&(d|v)}function l(d,v){return(d>>>28|v<<4)^(v>>>2|d<<30)^(v>>>7|d<<25)}function s(d,v){return(d>>>14|v<<18)^(d>>>18|v<<14)^(v>>>9|d<<23)}function y(d,v){return(d>>>1|v<<31)^(d>>>8|v<<24)^d>>>7}function c(d,v){return(d>>>1|v<<31)^(d>>>8|v<<24)^(d>>>7|v<<25)}function h(d,v){return(d>>>19|v<<13)^(v>>>29|d<<3)^d>>>6}function S(d,v){return(d>>>19|v<<13)^(v>>>29|d<<3)^(d>>>6|v<<26)}function f(d,v){return d>>>0>>0?1:0}return a.prototype._update=function(d){for(var v=this._w,p=this._ah|0,m=this._bh|0,g=this._ch|0,b=this._dh|0,R=this._eh|0,B=this._fh|0,L=this._gh|0,q=this._hh|0,F=this._al|0,U=this._bl|0,J=this._cl|0,ce=this._dl|0,E=this._el|0,O=this._fl|0,H=this._gl|0,Z=this._hl|0,ne=0;ne<32;ne+=2)v[ne]=d.readInt32BE(ne*4),v[ne+1]=d.readInt32BE(ne*4+4);for(;ne<160;ne+=2){var W=v[ne-30],re=v[ne-15*2+1],ae=y(W,re),G=c(re,W);W=v[ne-2*2],re=v[ne-2*2+1];var se=h(W,re),Ee=S(re,W),Be=v[ne-7*2],Pe=v[ne-7*2+1],xe=v[ne-16*2],Ye=v[ne-16*2+1],_e=G+Pe|0,nt=ae+Be+f(_e,G)|0;_e=_e+Ee|0,nt=nt+se+f(_e,Ee)|0,_e=_e+Ye|0,nt=nt+xe+f(_e,Ye)|0,v[ne]=nt,v[ne+1]=_e}for(var ut=0;ut<160;ut+=2){nt=v[ut],_e=v[ut+1];var et=u(p,m,g),tt=u(F,U,J),Xe=l(p,F),it=l(F,p),Me=s(R,E),C=s(E,R),w=i[ut],P=i[ut+1],M=o(R,B,L),V=o(E,O,H),te=Z+C|0,ee=q+Me+f(te,Z)|0;te=te+V|0,ee=ee+M+f(te,V)|0,te=te+P|0,ee=ee+w+f(te,P)|0,te=te+_e|0,ee=ee+nt+f(te,_e)|0;var j=it+tt|0,X=Xe+et+f(j,it)|0;q=L,Z=H,L=B,H=O,B=R,O=E,E=ce+te|0,R=b+ee+f(E,ce)|0,b=g,ce=J,g=m,J=U,m=p,U=F,F=te+j|0,p=ee+X+f(F,te)|0}this._al=this._al+F|0,this._bl=this._bl+U|0,this._cl=this._cl+J|0,this._dl=this._dl+ce|0,this._el=this._el+E|0,this._fl=this._fl+O|0,this._gl=this._gl+H|0,this._hl=this._hl+Z|0,this._ah=this._ah+p+f(this._al,F)|0,this._bh=this._bh+m+f(this._bl,U)|0,this._ch=this._ch+g+f(this._cl,J)|0,this._dh=this._dh+b+f(this._dl,ce)|0,this._eh=this._eh+R+f(this._el,E)|0,this._fh=this._fh+B+f(this._fl,O)|0,this._gh=this._gh+L+f(this._gl,H)|0,this._hh=this._hh+q+f(this._hl,Z)|0},a.prototype._hash=function(){var d=n.allocUnsafe(64);function v(p,m,g){d.writeInt32BE(p,g),d.writeInt32BE(m,g+4)}return v(this._ah,this._al,0),v(this._bh,this._bl,8),v(this._ch,this._cl,16),v(this._dh,this._dl,24),v(this._eh,this._el,32),v(this._fh,this._fl,40),v(this._gh,this._gl,48),v(this._hh,this._hl,56),d},pd=a,pd}var vd,vw;function xP(){if(vw)return vd;vw=1;var e=ja(),t=$6(),n=za(),i=Ri().Buffer,r=new Array(160);function a(){this.init(),this._w=r,n.call(this,128,112)}return e(a,t),a.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},a.prototype._hash=function(){var o=i.allocUnsafe(48);function u(l,s,y){o.writeInt32BE(l,y),o.writeInt32BE(s,y+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),o},vd=a,vd}var mw;function bP(){if(mw)return sd.exports;mw=1;var e=sd.exports=function(n){n=n.toLowerCase();var i=e[n];if(!i)throw new Error(n+" is not supported (we accept pull requests)");return new i};return e.sha=yP(),e.sha1=wP(),e.sha224=_P(),e.sha256=V6(),e.sha384=xP(),e.sha512=$6(),sd.exports}var gw;function Va(){if(gw)return Hu;gw=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.hash=t;var e=bP();function t(n){var i=new e.sha256;return i.update(n,"utf8"),i.digest()}return Hu}var Li={},md={exports:{}},yw;function H6(){return yw||(yw=1,function(e){(function(t){var n=function(N){var K,$=new Float64Array(16);if(N)for(K=0;K>24&255,N[K+1]=$>>16&255,N[K+2]=$>>8&255,N[K+3]=$&255,N[K+4]=A>>24&255,N[K+5]=A>>16&255,N[K+6]=A>>8&255,N[K+7]=A&255}function d(N,K,$,A,Q){var fe,pe=0;for(fe=0;fe>>8)-1}function v(N,K,$,A){return d(N,K,$,A,16)}function p(N,K,$,A){return d(N,K,$,A,32)}function m(N,K,$,A){for(var Q=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,fe=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,pe=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,Te=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,qe=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,De=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,St=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,Fe=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24,at=K[12]&255|(K[13]&255)<<8|(K[14]&255)<<16|(K[15]&255)<<24,lt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,gt=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,vt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ct=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,ft=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,dt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,$e=Q,Ze=fe,je=pe,Ke=Te,Qe=qe,Ue=He,me=De,ge=St,Ce=Fe,Ae=at,ke=lt,Re=gt,rt=vt,yt=ct,_t=ft,ot=dt,oe,bt=0;bt<20;bt+=2)oe=$e+rt|0,Qe^=oe<<7|oe>>>32-7,oe=Qe+$e|0,Ce^=oe<<9|oe>>>32-9,oe=Ce+Qe|0,rt^=oe<<13|oe>>>32-13,oe=rt+Ce|0,$e^=oe<<18|oe>>>32-18,oe=Ue+Ze|0,Ae^=oe<<7|oe>>>32-7,oe=Ae+Ue|0,yt^=oe<<9|oe>>>32-9,oe=yt+Ae|0,Ze^=oe<<13|oe>>>32-13,oe=Ze+yt|0,Ue^=oe<<18|oe>>>32-18,oe=ke+me|0,_t^=oe<<7|oe>>>32-7,oe=_t+ke|0,je^=oe<<9|oe>>>32-9,oe=je+_t|0,me^=oe<<13|oe>>>32-13,oe=me+je|0,ke^=oe<<18|oe>>>32-18,oe=ot+Re|0,Ke^=oe<<7|oe>>>32-7,oe=Ke+ot|0,ge^=oe<<9|oe>>>32-9,oe=ge+Ke|0,Re^=oe<<13|oe>>>32-13,oe=Re+ge|0,ot^=oe<<18|oe>>>32-18,oe=$e+Ke|0,Ze^=oe<<7|oe>>>32-7,oe=Ze+$e|0,je^=oe<<9|oe>>>32-9,oe=je+Ze|0,Ke^=oe<<13|oe>>>32-13,oe=Ke+je|0,$e^=oe<<18|oe>>>32-18,oe=Ue+Qe|0,me^=oe<<7|oe>>>32-7,oe=me+Ue|0,ge^=oe<<9|oe>>>32-9,oe=ge+me|0,Qe^=oe<<13|oe>>>32-13,oe=Qe+ge|0,Ue^=oe<<18|oe>>>32-18,oe=ke+Ae|0,Re^=oe<<7|oe>>>32-7,oe=Re+ke|0,Ce^=oe<<9|oe>>>32-9,oe=Ce+Re|0,Ae^=oe<<13|oe>>>32-13,oe=Ae+Ce|0,ke^=oe<<18|oe>>>32-18,oe=ot+_t|0,rt^=oe<<7|oe>>>32-7,oe=rt+ot|0,yt^=oe<<9|oe>>>32-9,oe=yt+rt|0,_t^=oe<<13|oe>>>32-13,oe=_t+yt|0,ot^=oe<<18|oe>>>32-18;$e=$e+Q|0,Ze=Ze+fe|0,je=je+pe|0,Ke=Ke+Te|0,Qe=Qe+qe|0,Ue=Ue+He|0,me=me+De|0,ge=ge+St|0,Ce=Ce+Fe|0,Ae=Ae+at|0,ke=ke+lt|0,Re=Re+gt|0,rt=rt+vt|0,yt=yt+ct|0,_t=_t+ft|0,ot=ot+dt|0,N[0]=$e>>>0&255,N[1]=$e>>>8&255,N[2]=$e>>>16&255,N[3]=$e>>>24&255,N[4]=Ze>>>0&255,N[5]=Ze>>>8&255,N[6]=Ze>>>16&255,N[7]=Ze>>>24&255,N[8]=je>>>0&255,N[9]=je>>>8&255,N[10]=je>>>16&255,N[11]=je>>>24&255,N[12]=Ke>>>0&255,N[13]=Ke>>>8&255,N[14]=Ke>>>16&255,N[15]=Ke>>>24&255,N[16]=Qe>>>0&255,N[17]=Qe>>>8&255,N[18]=Qe>>>16&255,N[19]=Qe>>>24&255,N[20]=Ue>>>0&255,N[21]=Ue>>>8&255,N[22]=Ue>>>16&255,N[23]=Ue>>>24&255,N[24]=me>>>0&255,N[25]=me>>>8&255,N[26]=me>>>16&255,N[27]=me>>>24&255,N[28]=ge>>>0&255,N[29]=ge>>>8&255,N[30]=ge>>>16&255,N[31]=ge>>>24&255,N[32]=Ce>>>0&255,N[33]=Ce>>>8&255,N[34]=Ce>>>16&255,N[35]=Ce>>>24&255,N[36]=Ae>>>0&255,N[37]=Ae>>>8&255,N[38]=Ae>>>16&255,N[39]=Ae>>>24&255,N[40]=ke>>>0&255,N[41]=ke>>>8&255,N[42]=ke>>>16&255,N[43]=ke>>>24&255,N[44]=Re>>>0&255,N[45]=Re>>>8&255,N[46]=Re>>>16&255,N[47]=Re>>>24&255,N[48]=rt>>>0&255,N[49]=rt>>>8&255,N[50]=rt>>>16&255,N[51]=rt>>>24&255,N[52]=yt>>>0&255,N[53]=yt>>>8&255,N[54]=yt>>>16&255,N[55]=yt>>>24&255,N[56]=_t>>>0&255,N[57]=_t>>>8&255,N[58]=_t>>>16&255,N[59]=_t>>>24&255,N[60]=ot>>>0&255,N[61]=ot>>>8&255,N[62]=ot>>>16&255,N[63]=ot>>>24&255}function g(N,K,$,A){for(var Q=A[0]&255|(A[1]&255)<<8|(A[2]&255)<<16|(A[3]&255)<<24,fe=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,pe=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,Te=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,qe=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=A[4]&255|(A[5]&255)<<8|(A[6]&255)<<16|(A[7]&255)<<24,De=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,St=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,Fe=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24,at=K[12]&255|(K[13]&255)<<8|(K[14]&255)<<16|(K[15]&255)<<24,lt=A[8]&255|(A[9]&255)<<8|(A[10]&255)<<16|(A[11]&255)<<24,gt=$[16]&255|($[17]&255)<<8|($[18]&255)<<16|($[19]&255)<<24,vt=$[20]&255|($[21]&255)<<8|($[22]&255)<<16|($[23]&255)<<24,ct=$[24]&255|($[25]&255)<<8|($[26]&255)<<16|($[27]&255)<<24,ft=$[28]&255|($[29]&255)<<8|($[30]&255)<<16|($[31]&255)<<24,dt=A[12]&255|(A[13]&255)<<8|(A[14]&255)<<16|(A[15]&255)<<24,$e=Q,Ze=fe,je=pe,Ke=Te,Qe=qe,Ue=He,me=De,ge=St,Ce=Fe,Ae=at,ke=lt,Re=gt,rt=vt,yt=ct,_t=ft,ot=dt,oe,bt=0;bt<20;bt+=2)oe=$e+rt|0,Qe^=oe<<7|oe>>>32-7,oe=Qe+$e|0,Ce^=oe<<9|oe>>>32-9,oe=Ce+Qe|0,rt^=oe<<13|oe>>>32-13,oe=rt+Ce|0,$e^=oe<<18|oe>>>32-18,oe=Ue+Ze|0,Ae^=oe<<7|oe>>>32-7,oe=Ae+Ue|0,yt^=oe<<9|oe>>>32-9,oe=yt+Ae|0,Ze^=oe<<13|oe>>>32-13,oe=Ze+yt|0,Ue^=oe<<18|oe>>>32-18,oe=ke+me|0,_t^=oe<<7|oe>>>32-7,oe=_t+ke|0,je^=oe<<9|oe>>>32-9,oe=je+_t|0,me^=oe<<13|oe>>>32-13,oe=me+je|0,ke^=oe<<18|oe>>>32-18,oe=ot+Re|0,Ke^=oe<<7|oe>>>32-7,oe=Ke+ot|0,ge^=oe<<9|oe>>>32-9,oe=ge+Ke|0,Re^=oe<<13|oe>>>32-13,oe=Re+ge|0,ot^=oe<<18|oe>>>32-18,oe=$e+Ke|0,Ze^=oe<<7|oe>>>32-7,oe=Ze+$e|0,je^=oe<<9|oe>>>32-9,oe=je+Ze|0,Ke^=oe<<13|oe>>>32-13,oe=Ke+je|0,$e^=oe<<18|oe>>>32-18,oe=Ue+Qe|0,me^=oe<<7|oe>>>32-7,oe=me+Ue|0,ge^=oe<<9|oe>>>32-9,oe=ge+me|0,Qe^=oe<<13|oe>>>32-13,oe=Qe+ge|0,Ue^=oe<<18|oe>>>32-18,oe=ke+Ae|0,Re^=oe<<7|oe>>>32-7,oe=Re+ke|0,Ce^=oe<<9|oe>>>32-9,oe=Ce+Re|0,Ae^=oe<<13|oe>>>32-13,oe=Ae+Ce|0,ke^=oe<<18|oe>>>32-18,oe=ot+_t|0,rt^=oe<<7|oe>>>32-7,oe=rt+ot|0,yt^=oe<<9|oe>>>32-9,oe=yt+rt|0,_t^=oe<<13|oe>>>32-13,oe=_t+yt|0,ot^=oe<<18|oe>>>32-18;N[0]=$e>>>0&255,N[1]=$e>>>8&255,N[2]=$e>>>16&255,N[3]=$e>>>24&255,N[4]=Ue>>>0&255,N[5]=Ue>>>8&255,N[6]=Ue>>>16&255,N[7]=Ue>>>24&255,N[8]=ke>>>0&255,N[9]=ke>>>8&255,N[10]=ke>>>16&255,N[11]=ke>>>24&255,N[12]=ot>>>0&255,N[13]=ot>>>8&255,N[14]=ot>>>16&255,N[15]=ot>>>24&255,N[16]=me>>>0&255,N[17]=me>>>8&255,N[18]=me>>>16&255,N[19]=me>>>24&255,N[20]=ge>>>0&255,N[21]=ge>>>8&255,N[22]=ge>>>16&255,N[23]=ge>>>24&255,N[24]=Ce>>>0&255,N[25]=Ce>>>8&255,N[26]=Ce>>>16&255,N[27]=Ce>>>24&255,N[28]=Ae>>>0&255,N[29]=Ae>>>8&255,N[30]=Ae>>>16&255,N[31]=Ae>>>24&255}function b(N,K,$,A){m(N,K,$,A)}function R(N,K,$,A){g(N,K,$,A)}var B=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function L(N,K,$,A,Q,fe,pe){var Te=new Uint8Array(16),qe=new Uint8Array(64),He,De;for(De=0;De<16;De++)Te[De]=0;for(De=0;De<8;De++)Te[De]=fe[De];for(;Q>=64;){for(b(qe,Te,pe,B),De=0;De<64;De++)N[K+De]=$[A+De]^qe[De];for(He=1,De=8;De<16;De++)He=He+(Te[De]&255)|0,Te[De]=He&255,He>>>=8;Q-=64,K+=64,A+=64}if(Q>0)for(b(qe,Te,pe,B),De=0;De=64;){for(b(pe,fe,Q,B),qe=0;qe<64;qe++)N[K+qe]=pe[qe];for(Te=1,qe=8;qe<16;qe++)Te=Te+(fe[qe]&255)|0,fe[qe]=Te&255,Te>>>=8;$-=64,K+=64}if($>0)for(b(pe,fe,Q,B),qe=0;qe<$;qe++)N[K+qe]=pe[qe];return 0}function F(N,K,$,A,Q){var fe=new Uint8Array(32);R(fe,A,Q,B);for(var pe=new Uint8Array(8),Te=0;Te<8;Te++)pe[Te]=A[Te+16];return q(N,K,$,pe,fe)}function U(N,K,$,A,Q,fe,pe){var Te=new Uint8Array(32);R(Te,fe,pe,B);for(var qe=new Uint8Array(8),He=0;He<8;He++)qe[He]=fe[He+16];return L(N,K,$,A,Q,qe,Te)}var J=function(N){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var K,$,A,Q,fe,pe,Te,qe;K=N[0]&255|(N[1]&255)<<8,this.r[0]=K&8191,$=N[2]&255|(N[3]&255)<<8,this.r[1]=(K>>>13|$<<3)&8191,A=N[4]&255|(N[5]&255)<<8,this.r[2]=($>>>10|A<<6)&7939,Q=N[6]&255|(N[7]&255)<<8,this.r[3]=(A>>>7|Q<<9)&8191,fe=N[8]&255|(N[9]&255)<<8,this.r[4]=(Q>>>4|fe<<12)&255,this.r[5]=fe>>>1&8190,pe=N[10]&255|(N[11]&255)<<8,this.r[6]=(fe>>>14|pe<<2)&8191,Te=N[12]&255|(N[13]&255)<<8,this.r[7]=(pe>>>11|Te<<5)&8065,qe=N[14]&255|(N[15]&255)<<8,this.r[8]=(Te>>>8|qe<<8)&8191,this.r[9]=qe>>>5&127,this.pad[0]=N[16]&255|(N[17]&255)<<8,this.pad[1]=N[18]&255|(N[19]&255)<<8,this.pad[2]=N[20]&255|(N[21]&255)<<8,this.pad[3]=N[22]&255|(N[23]&255)<<8,this.pad[4]=N[24]&255|(N[25]&255)<<8,this.pad[5]=N[26]&255|(N[27]&255)<<8,this.pad[6]=N[28]&255|(N[29]&255)<<8,this.pad[7]=N[30]&255|(N[31]&255)<<8};J.prototype.blocks=function(N,K,$){for(var A=this.fin?0:2048,Q,fe,pe,Te,qe,He,De,St,Fe,at,lt,gt,vt,ct,ft,dt,$e,Ze,je,Ke=this.h[0],Qe=this.h[1],Ue=this.h[2],me=this.h[3],ge=this.h[4],Ce=this.h[5],Ae=this.h[6],ke=this.h[7],Re=this.h[8],rt=this.h[9],yt=this.r[0],_t=this.r[1],ot=this.r[2],oe=this.r[3],bt=this.r[4],Et=this.r[5],At=this.r[6],xt=this.r[7],k=this.r[8],Ie=this.r[9];$>=16;)Q=N[K+0]&255|(N[K+1]&255)<<8,Ke+=Q&8191,fe=N[K+2]&255|(N[K+3]&255)<<8,Qe+=(Q>>>13|fe<<3)&8191,pe=N[K+4]&255|(N[K+5]&255)<<8,Ue+=(fe>>>10|pe<<6)&8191,Te=N[K+6]&255|(N[K+7]&255)<<8,me+=(pe>>>7|Te<<9)&8191,qe=N[K+8]&255|(N[K+9]&255)<<8,ge+=(Te>>>4|qe<<12)&8191,Ce+=qe>>>1&8191,He=N[K+10]&255|(N[K+11]&255)<<8,Ae+=(qe>>>14|He<<2)&8191,De=N[K+12]&255|(N[K+13]&255)<<8,ke+=(He>>>11|De<<5)&8191,St=N[K+14]&255|(N[K+15]&255)<<8,Re+=(De>>>8|St<<8)&8191,rt+=St>>>5|A,Fe=0,at=Fe,at+=Ke*yt,at+=Qe*(5*Ie),at+=Ue*(5*k),at+=me*(5*xt),at+=ge*(5*At),Fe=at>>>13,at&=8191,at+=Ce*(5*Et),at+=Ae*(5*bt),at+=ke*(5*oe),at+=Re*(5*ot),at+=rt*(5*_t),Fe+=at>>>13,at&=8191,lt=Fe,lt+=Ke*_t,lt+=Qe*yt,lt+=Ue*(5*Ie),lt+=me*(5*k),lt+=ge*(5*xt),Fe=lt>>>13,lt&=8191,lt+=Ce*(5*At),lt+=Ae*(5*Et),lt+=ke*(5*bt),lt+=Re*(5*oe),lt+=rt*(5*ot),Fe+=lt>>>13,lt&=8191,gt=Fe,gt+=Ke*ot,gt+=Qe*_t,gt+=Ue*yt,gt+=me*(5*Ie),gt+=ge*(5*k),Fe=gt>>>13,gt&=8191,gt+=Ce*(5*xt),gt+=Ae*(5*At),gt+=ke*(5*Et),gt+=Re*(5*bt),gt+=rt*(5*oe),Fe+=gt>>>13,gt&=8191,vt=Fe,vt+=Ke*oe,vt+=Qe*ot,vt+=Ue*_t,vt+=me*yt,vt+=ge*(5*Ie),Fe=vt>>>13,vt&=8191,vt+=Ce*(5*k),vt+=Ae*(5*xt),vt+=ke*(5*At),vt+=Re*(5*Et),vt+=rt*(5*bt),Fe+=vt>>>13,vt&=8191,ct=Fe,ct+=Ke*bt,ct+=Qe*oe,ct+=Ue*ot,ct+=me*_t,ct+=ge*yt,Fe=ct>>>13,ct&=8191,ct+=Ce*(5*Ie),ct+=Ae*(5*k),ct+=ke*(5*xt),ct+=Re*(5*At),ct+=rt*(5*Et),Fe+=ct>>>13,ct&=8191,ft=Fe,ft+=Ke*Et,ft+=Qe*bt,ft+=Ue*oe,ft+=me*ot,ft+=ge*_t,Fe=ft>>>13,ft&=8191,ft+=Ce*yt,ft+=Ae*(5*Ie),ft+=ke*(5*k),ft+=Re*(5*xt),ft+=rt*(5*At),Fe+=ft>>>13,ft&=8191,dt=Fe,dt+=Ke*At,dt+=Qe*Et,dt+=Ue*bt,dt+=me*oe,dt+=ge*ot,Fe=dt>>>13,dt&=8191,dt+=Ce*_t,dt+=Ae*yt,dt+=ke*(5*Ie),dt+=Re*(5*k),dt+=rt*(5*xt),Fe+=dt>>>13,dt&=8191,$e=Fe,$e+=Ke*xt,$e+=Qe*At,$e+=Ue*Et,$e+=me*bt,$e+=ge*oe,Fe=$e>>>13,$e&=8191,$e+=Ce*ot,$e+=Ae*_t,$e+=ke*yt,$e+=Re*(5*Ie),$e+=rt*(5*k),Fe+=$e>>>13,$e&=8191,Ze=Fe,Ze+=Ke*k,Ze+=Qe*xt,Ze+=Ue*At,Ze+=me*Et,Ze+=ge*bt,Fe=Ze>>>13,Ze&=8191,Ze+=Ce*oe,Ze+=Ae*ot,Ze+=ke*_t,Ze+=Re*yt,Ze+=rt*(5*Ie),Fe+=Ze>>>13,Ze&=8191,je=Fe,je+=Ke*Ie,je+=Qe*k,je+=Ue*xt,je+=me*At,je+=ge*Et,Fe=je>>>13,je&=8191,je+=Ce*bt,je+=Ae*oe,je+=ke*ot,je+=Re*_t,je+=rt*yt,Fe+=je>>>13,je&=8191,Fe=(Fe<<2)+Fe|0,Fe=Fe+at|0,at=Fe&8191,Fe=Fe>>>13,lt+=Fe,Ke=at,Qe=lt,Ue=gt,me=vt,ge=ct,Ce=ft,Ae=dt,ke=$e,Re=Ze,rt=je,K+=16,$-=16;this.h[0]=Ke,this.h[1]=Qe,this.h[2]=Ue,this.h[3]=me,this.h[4]=ge,this.h[5]=Ce,this.h[6]=Ae,this.h[7]=ke,this.h[8]=Re,this.h[9]=rt},J.prototype.finish=function(N,K){var $=new Uint16Array(10),A,Q,fe,pe;if(this.leftover){for(pe=this.leftover,this.buffer[pe++]=1;pe<16;pe++)this.buffer[pe]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(A=this.h[1]>>>13,this.h[1]&=8191,pe=2;pe<10;pe++)this.h[pe]+=A,A=this.h[pe]>>>13,this.h[pe]&=8191;for(this.h[0]+=A*5,A=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=A,A=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=A,$[0]=this.h[0]+5,A=$[0]>>>13,$[0]&=8191,pe=1;pe<10;pe++)$[pe]=this.h[pe]+A,A=$[pe]>>>13,$[pe]&=8191;for($[9]-=8192,Q=(A^1)-1,pe=0;pe<10;pe++)$[pe]&=Q;for(Q=~Q,pe=0;pe<10;pe++)this.h[pe]=this.h[pe]&Q|$[pe];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,fe=this.h[0]+this.pad[0],this.h[0]=fe&65535,pe=1;pe<8;pe++)fe=(this.h[pe]+this.pad[pe]|0)+(fe>>>16)|0,this.h[pe]=fe&65535;N[K+0]=this.h[0]>>>0&255,N[K+1]=this.h[0]>>>8&255,N[K+2]=this.h[1]>>>0&255,N[K+3]=this.h[1]>>>8&255,N[K+4]=this.h[2]>>>0&255,N[K+5]=this.h[2]>>>8&255,N[K+6]=this.h[3]>>>0&255,N[K+7]=this.h[3]>>>8&255,N[K+8]=this.h[4]>>>0&255,N[K+9]=this.h[4]>>>8&255,N[K+10]=this.h[5]>>>0&255,N[K+11]=this.h[5]>>>8&255,N[K+12]=this.h[6]>>>0&255,N[K+13]=this.h[6]>>>8&255,N[K+14]=this.h[7]>>>0&255,N[K+15]=this.h[7]>>>8&255},J.prototype.update=function(N,K,$){var A,Q;if(this.leftover){for(Q=16-this.leftover,Q>$&&(Q=$),A=0;A=16&&(Q=$-$%16,this.blocks(N,K,Q),K+=Q,$-=Q),$){for(A=0;A<$;A++)this.buffer[this.leftover+A]=N[K+A];this.leftover+=$}};function ce(N,K,$,A,Q,fe){var pe=new J(fe);return pe.update($,A,Q),pe.finish(N,K),0}function E(N,K,$,A,Q,fe){var pe=new Uint8Array(16);return ce(pe,0,$,A,Q,fe),v(N,K,pe,0)}function O(N,K,$,A,Q){var fe;if($<32)return-1;for(U(N,0,K,0,$,A,Q),ce(N,16,N,32,$-32,N),fe=0;fe<16;fe++)N[fe]=0;return 0}function H(N,K,$,A,Q){var fe,pe=new Uint8Array(32);if($<32||(F(pe,0,32,A,Q),E(K,16,K,32,$-32,pe)!==0))return-1;for(U(N,0,K,0,$,A,Q),fe=0;fe<32;fe++)N[fe]=0;return 0}function Z(N,K){var $;for($=0;$<16;$++)N[$]=K[$]|0}function ne(N){var K,$,A=1;for(K=0;K<16;K++)$=N[K]+A+65535,A=Math.floor($/65536),N[K]=$-A*65536;N[0]+=A-1+37*(A-1)}function W(N,K,$){for(var A,Q=~($-1),fe=0;fe<16;fe++)A=Q&(N[fe]^K[fe]),N[fe]^=A,K[fe]^=A}function re(N,K){var $,A,Q,fe=n(),pe=n();for($=0;$<16;$++)pe[$]=K[$];for(ne(pe),ne(pe),ne(pe),A=0;A<2;A++){for(fe[0]=pe[0]-65517,$=1;$<15;$++)fe[$]=pe[$]-65535-(fe[$-1]>>16&1),fe[$-1]&=65535;fe[15]=pe[15]-32767-(fe[14]>>16&1),Q=fe[15]>>16&1,fe[14]&=65535,W(pe,fe,1-Q)}for($=0;$<16;$++)N[2*$]=pe[$]&255,N[2*$+1]=pe[$]>>8}function ae(N,K){var $=new Uint8Array(32),A=new Uint8Array(32);return re($,N),re(A,K),p($,0,A,0)}function G(N){var K=new Uint8Array(32);return re(K,N),K[0]&1}function se(N,K){var $;for($=0;$<16;$++)N[$]=K[2*$]+(K[2*$+1]<<8);N[15]&=32767}function Ee(N,K,$){for(var A=0;A<16;A++)N[A]=K[A]+$[A]}function Be(N,K,$){for(var A=0;A<16;A++)N[A]=K[A]-$[A]}function Pe(N,K,$){var A,Q,fe=0,pe=0,Te=0,qe=0,He=0,De=0,St=0,Fe=0,at=0,lt=0,gt=0,vt=0,ct=0,ft=0,dt=0,$e=0,Ze=0,je=0,Ke=0,Qe=0,Ue=0,me=0,ge=0,Ce=0,Ae=0,ke=0,Re=0,rt=0,yt=0,_t=0,ot=0,oe=$[0],bt=$[1],Et=$[2],At=$[3],xt=$[4],k=$[5],Ie=$[6],Ut=$[7],It=$[8],jt=$[9],Ft=$[10],we=$[11],Se=$[12],Gt=$[13],Pt=$[14],Ct=$[15];A=K[0],fe+=A*oe,pe+=A*bt,Te+=A*Et,qe+=A*At,He+=A*xt,De+=A*k,St+=A*Ie,Fe+=A*Ut,at+=A*It,lt+=A*jt,gt+=A*Ft,vt+=A*we,ct+=A*Se,ft+=A*Gt,dt+=A*Pt,$e+=A*Ct,A=K[1],pe+=A*oe,Te+=A*bt,qe+=A*Et,He+=A*At,De+=A*xt,St+=A*k,Fe+=A*Ie,at+=A*Ut,lt+=A*It,gt+=A*jt,vt+=A*Ft,ct+=A*we,ft+=A*Se,dt+=A*Gt,$e+=A*Pt,Ze+=A*Ct,A=K[2],Te+=A*oe,qe+=A*bt,He+=A*Et,De+=A*At,St+=A*xt,Fe+=A*k,at+=A*Ie,lt+=A*Ut,gt+=A*It,vt+=A*jt,ct+=A*Ft,ft+=A*we,dt+=A*Se,$e+=A*Gt,Ze+=A*Pt,je+=A*Ct,A=K[3],qe+=A*oe,He+=A*bt,De+=A*Et,St+=A*At,Fe+=A*xt,at+=A*k,lt+=A*Ie,gt+=A*Ut,vt+=A*It,ct+=A*jt,ft+=A*Ft,dt+=A*we,$e+=A*Se,Ze+=A*Gt,je+=A*Pt,Ke+=A*Ct,A=K[4],He+=A*oe,De+=A*bt,St+=A*Et,Fe+=A*At,at+=A*xt,lt+=A*k,gt+=A*Ie,vt+=A*Ut,ct+=A*It,ft+=A*jt,dt+=A*Ft,$e+=A*we,Ze+=A*Se,je+=A*Gt,Ke+=A*Pt,Qe+=A*Ct,A=K[5],De+=A*oe,St+=A*bt,Fe+=A*Et,at+=A*At,lt+=A*xt,gt+=A*k,vt+=A*Ie,ct+=A*Ut,ft+=A*It,dt+=A*jt,$e+=A*Ft,Ze+=A*we,je+=A*Se,Ke+=A*Gt,Qe+=A*Pt,Ue+=A*Ct,A=K[6],St+=A*oe,Fe+=A*bt,at+=A*Et,lt+=A*At,gt+=A*xt,vt+=A*k,ct+=A*Ie,ft+=A*Ut,dt+=A*It,$e+=A*jt,Ze+=A*Ft,je+=A*we,Ke+=A*Se,Qe+=A*Gt,Ue+=A*Pt,me+=A*Ct,A=K[7],Fe+=A*oe,at+=A*bt,lt+=A*Et,gt+=A*At,vt+=A*xt,ct+=A*k,ft+=A*Ie,dt+=A*Ut,$e+=A*It,Ze+=A*jt,je+=A*Ft,Ke+=A*we,Qe+=A*Se,Ue+=A*Gt,me+=A*Pt,ge+=A*Ct,A=K[8],at+=A*oe,lt+=A*bt,gt+=A*Et,vt+=A*At,ct+=A*xt,ft+=A*k,dt+=A*Ie,$e+=A*Ut,Ze+=A*It,je+=A*jt,Ke+=A*Ft,Qe+=A*we,Ue+=A*Se,me+=A*Gt,ge+=A*Pt,Ce+=A*Ct,A=K[9],lt+=A*oe,gt+=A*bt,vt+=A*Et,ct+=A*At,ft+=A*xt,dt+=A*k,$e+=A*Ie,Ze+=A*Ut,je+=A*It,Ke+=A*jt,Qe+=A*Ft,Ue+=A*we,me+=A*Se,ge+=A*Gt,Ce+=A*Pt,Ae+=A*Ct,A=K[10],gt+=A*oe,vt+=A*bt,ct+=A*Et,ft+=A*At,dt+=A*xt,$e+=A*k,Ze+=A*Ie,je+=A*Ut,Ke+=A*It,Qe+=A*jt,Ue+=A*Ft,me+=A*we,ge+=A*Se,Ce+=A*Gt,Ae+=A*Pt,ke+=A*Ct,A=K[11],vt+=A*oe,ct+=A*bt,ft+=A*Et,dt+=A*At,$e+=A*xt,Ze+=A*k,je+=A*Ie,Ke+=A*Ut,Qe+=A*It,Ue+=A*jt,me+=A*Ft,ge+=A*we,Ce+=A*Se,Ae+=A*Gt,ke+=A*Pt,Re+=A*Ct,A=K[12],ct+=A*oe,ft+=A*bt,dt+=A*Et,$e+=A*At,Ze+=A*xt,je+=A*k,Ke+=A*Ie,Qe+=A*Ut,Ue+=A*It,me+=A*jt,ge+=A*Ft,Ce+=A*we,Ae+=A*Se,ke+=A*Gt,Re+=A*Pt,rt+=A*Ct,A=K[13],ft+=A*oe,dt+=A*bt,$e+=A*Et,Ze+=A*At,je+=A*xt,Ke+=A*k,Qe+=A*Ie,Ue+=A*Ut,me+=A*It,ge+=A*jt,Ce+=A*Ft,Ae+=A*we,ke+=A*Se,Re+=A*Gt,rt+=A*Pt,yt+=A*Ct,A=K[14],dt+=A*oe,$e+=A*bt,Ze+=A*Et,je+=A*At,Ke+=A*xt,Qe+=A*k,Ue+=A*Ie,me+=A*Ut,ge+=A*It,Ce+=A*jt,Ae+=A*Ft,ke+=A*we,Re+=A*Se,rt+=A*Gt,yt+=A*Pt,_t+=A*Ct,A=K[15],$e+=A*oe,Ze+=A*bt,je+=A*Et,Ke+=A*At,Qe+=A*xt,Ue+=A*k,me+=A*Ie,ge+=A*Ut,Ce+=A*It,Ae+=A*jt,ke+=A*Ft,Re+=A*we,rt+=A*Se,yt+=A*Gt,_t+=A*Pt,ot+=A*Ct,fe+=38*Ze,pe+=38*je,Te+=38*Ke,qe+=38*Qe,He+=38*Ue,De+=38*me,St+=38*ge,Fe+=38*Ce,at+=38*Ae,lt+=38*ke,gt+=38*Re,vt+=38*rt,ct+=38*yt,ft+=38*_t,dt+=38*ot,Q=1,A=fe+Q+65535,Q=Math.floor(A/65536),fe=A-Q*65536,A=pe+Q+65535,Q=Math.floor(A/65536),pe=A-Q*65536,A=Te+Q+65535,Q=Math.floor(A/65536),Te=A-Q*65536,A=qe+Q+65535,Q=Math.floor(A/65536),qe=A-Q*65536,A=He+Q+65535,Q=Math.floor(A/65536),He=A-Q*65536,A=De+Q+65535,Q=Math.floor(A/65536),De=A-Q*65536,A=St+Q+65535,Q=Math.floor(A/65536),St=A-Q*65536,A=Fe+Q+65535,Q=Math.floor(A/65536),Fe=A-Q*65536,A=at+Q+65535,Q=Math.floor(A/65536),at=A-Q*65536,A=lt+Q+65535,Q=Math.floor(A/65536),lt=A-Q*65536,A=gt+Q+65535,Q=Math.floor(A/65536),gt=A-Q*65536,A=vt+Q+65535,Q=Math.floor(A/65536),vt=A-Q*65536,A=ct+Q+65535,Q=Math.floor(A/65536),ct=A-Q*65536,A=ft+Q+65535,Q=Math.floor(A/65536),ft=A-Q*65536,A=dt+Q+65535,Q=Math.floor(A/65536),dt=A-Q*65536,A=$e+Q+65535,Q=Math.floor(A/65536),$e=A-Q*65536,fe+=Q-1+37*(Q-1),Q=1,A=fe+Q+65535,Q=Math.floor(A/65536),fe=A-Q*65536,A=pe+Q+65535,Q=Math.floor(A/65536),pe=A-Q*65536,A=Te+Q+65535,Q=Math.floor(A/65536),Te=A-Q*65536,A=qe+Q+65535,Q=Math.floor(A/65536),qe=A-Q*65536,A=He+Q+65535,Q=Math.floor(A/65536),He=A-Q*65536,A=De+Q+65535,Q=Math.floor(A/65536),De=A-Q*65536,A=St+Q+65535,Q=Math.floor(A/65536),St=A-Q*65536,A=Fe+Q+65535,Q=Math.floor(A/65536),Fe=A-Q*65536,A=at+Q+65535,Q=Math.floor(A/65536),at=A-Q*65536,A=lt+Q+65535,Q=Math.floor(A/65536),lt=A-Q*65536,A=gt+Q+65535,Q=Math.floor(A/65536),gt=A-Q*65536,A=vt+Q+65535,Q=Math.floor(A/65536),vt=A-Q*65536,A=ct+Q+65535,Q=Math.floor(A/65536),ct=A-Q*65536,A=ft+Q+65535,Q=Math.floor(A/65536),ft=A-Q*65536,A=dt+Q+65535,Q=Math.floor(A/65536),dt=A-Q*65536,A=$e+Q+65535,Q=Math.floor(A/65536),$e=A-Q*65536,fe+=Q-1+37*(Q-1),N[0]=fe,N[1]=pe,N[2]=Te,N[3]=qe,N[4]=He,N[5]=De,N[6]=St,N[7]=Fe,N[8]=at,N[9]=lt,N[10]=gt,N[11]=vt,N[12]=ct,N[13]=ft,N[14]=dt,N[15]=$e}function xe(N,K){Pe(N,K,K)}function Ye(N,K){var $=n(),A;for(A=0;A<16;A++)$[A]=K[A];for(A=253;A>=0;A--)xe($,$),A!==2&&A!==4&&Pe($,$,K);for(A=0;A<16;A++)N[A]=$[A]}function _e(N,K){var $=n(),A;for(A=0;A<16;A++)$[A]=K[A];for(A=250;A>=0;A--)xe($,$),A!==1&&Pe($,$,K);for(A=0;A<16;A++)N[A]=$[A]}function nt(N,K,$){var A=new Uint8Array(32),Q=new Float64Array(80),fe,pe,Te=n(),qe=n(),He=n(),De=n(),St=n(),Fe=n();for(pe=0;pe<31;pe++)A[pe]=K[pe];for(A[31]=K[31]&127|64,A[0]&=248,se(Q,$),pe=0;pe<16;pe++)qe[pe]=Q[pe],De[pe]=Te[pe]=He[pe]=0;for(Te[0]=De[0]=1,pe=254;pe>=0;--pe)fe=A[pe>>>3]>>>(pe&7)&1,W(Te,qe,fe),W(He,De,fe),Ee(St,Te,He),Be(Te,Te,He),Ee(He,qe,De),Be(qe,qe,De),xe(De,St),xe(Fe,Te),Pe(Te,He,Te),Pe(He,qe,St),Ee(St,Te,He),Be(Te,Te,He),xe(qe,Te),Be(He,De,Fe),Pe(Te,He,l),Ee(Te,Te,De),Pe(He,He,Te),Pe(Te,De,Fe),Pe(De,qe,Q),xe(qe,St),W(Te,qe,fe),W(He,De,fe);for(pe=0;pe<16;pe++)Q[pe+16]=Te[pe],Q[pe+32]=He[pe],Q[pe+48]=qe[pe],Q[pe+64]=De[pe];var at=Q.subarray(32),lt=Q.subarray(16);return Ye(at,at),Pe(lt,lt,at),re(N,lt),0}function ut(N,K){return nt(N,K,a)}function et(N,K){return i(K,32),ut(N,K)}function tt(N,K,$){var A=new Uint8Array(32);return nt(A,$,K),R(N,r,A,B)}var Xe=O,it=H;function Me(N,K,$,A,Q,fe){var pe=new Uint8Array(32);return tt(pe,Q,fe),Xe(N,K,$,A,pe)}function C(N,K,$,A,Q,fe){var pe=new Uint8Array(32);return tt(pe,Q,fe),it(N,K,$,A,pe)}var w=[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];function P(N,K,$,A){for(var Q=new Int32Array(16),fe=new Int32Array(16),pe,Te,qe,He,De,St,Fe,at,lt,gt,vt,ct,ft,dt,$e,Ze,je,Ke,Qe,Ue,me,ge,Ce,Ae,ke,Re,rt=N[0],yt=N[1],_t=N[2],ot=N[3],oe=N[4],bt=N[5],Et=N[6],At=N[7],xt=K[0],k=K[1],Ie=K[2],Ut=K[3],It=K[4],jt=K[5],Ft=K[6],we=K[7],Se=0;A>=128;){for(Qe=0;Qe<16;Qe++)Ue=8*Qe+Se,Q[Qe]=$[Ue+0]<<24|$[Ue+1]<<16|$[Ue+2]<<8|$[Ue+3],fe[Qe]=$[Ue+4]<<24|$[Ue+5]<<16|$[Ue+6]<<8|$[Ue+7];for(Qe=0;Qe<80;Qe++)if(pe=rt,Te=yt,qe=_t,He=ot,De=oe,St=bt,Fe=Et,at=At,lt=xt,gt=k,vt=Ie,ct=Ut,ft=It,dt=jt,$e=Ft,Ze=we,me=At,ge=we,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=(oe>>>14|It<<32-14)^(oe>>>18|It<<32-18)^(It>>>41-32|oe<<32-(41-32)),ge=(It>>>14|oe<<32-14)^(It>>>18|oe<<32-18)^(oe>>>41-32|It<<32-(41-32)),Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,me=oe&bt^~oe&Et,ge=It&jt^~It&Ft,Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,me=w[Qe*2],ge=w[Qe*2+1],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,me=Q[Qe%16],ge=fe[Qe%16],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,je=ke&65535|Re<<16,Ke=Ce&65535|Ae<<16,me=je,ge=Ke,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=(rt>>>28|xt<<32-28)^(xt>>>34-32|rt<<32-(34-32))^(xt>>>39-32|rt<<32-(39-32)),ge=(xt>>>28|rt<<32-28)^(rt>>>34-32|xt<<32-(34-32))^(rt>>>39-32|xt<<32-(39-32)),Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,me=rt&yt^rt&_t^yt&_t,ge=xt&k^xt&Ie^k&Ie,Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,at=ke&65535|Re<<16,Ze=Ce&65535|Ae<<16,me=He,ge=ct,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=je,ge=Ke,Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,He=ke&65535|Re<<16,ct=Ce&65535|Ae<<16,yt=pe,_t=Te,ot=qe,oe=He,bt=De,Et=St,At=Fe,rt=at,k=lt,Ie=gt,Ut=vt,It=ct,jt=ft,Ft=dt,we=$e,xt=Ze,Qe%16===15)for(Ue=0;Ue<16;Ue++)me=Q[Ue],ge=fe[Ue],Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=Q[(Ue+9)%16],ge=fe[(Ue+9)%16],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,je=Q[(Ue+1)%16],Ke=fe[(Ue+1)%16],me=(je>>>1|Ke<<32-1)^(je>>>8|Ke<<32-8)^je>>>7,ge=(Ke>>>1|je<<32-1)^(Ke>>>8|je<<32-8)^(Ke>>>7|je<<32-7),Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,je=Q[(Ue+14)%16],Ke=fe[(Ue+14)%16],me=(je>>>19|Ke<<32-19)^(Ke>>>61-32|je<<32-(61-32))^je>>>6,ge=(Ke>>>19|je<<32-19)^(je>>>61-32|Ke<<32-(61-32))^(Ke>>>6|je<<32-6),Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,Q[Ue]=ke&65535|Re<<16,fe[Ue]=Ce&65535|Ae<<16;me=rt,ge=xt,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[0],ge=K[0],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[0]=rt=ke&65535|Re<<16,K[0]=xt=Ce&65535|Ae<<16,me=yt,ge=k,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[1],ge=K[1],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[1]=yt=ke&65535|Re<<16,K[1]=k=Ce&65535|Ae<<16,me=_t,ge=Ie,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[2],ge=K[2],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[2]=_t=ke&65535|Re<<16,K[2]=Ie=Ce&65535|Ae<<16,me=ot,ge=Ut,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[3],ge=K[3],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[3]=ot=ke&65535|Re<<16,K[3]=Ut=Ce&65535|Ae<<16,me=oe,ge=It,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[4],ge=K[4],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[4]=oe=ke&65535|Re<<16,K[4]=It=Ce&65535|Ae<<16,me=bt,ge=jt,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[5],ge=K[5],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[5]=bt=ke&65535|Re<<16,K[5]=jt=Ce&65535|Ae<<16,me=Et,ge=Ft,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[6],ge=K[6],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[6]=Et=ke&65535|Re<<16,K[6]=Ft=Ce&65535|Ae<<16,me=At,ge=we,Ce=ge&65535,Ae=ge>>>16,ke=me&65535,Re=me>>>16,me=N[7],ge=K[7],Ce+=ge&65535,Ae+=ge>>>16,ke+=me&65535,Re+=me>>>16,Ae+=Ce>>>16,ke+=Ae>>>16,Re+=ke>>>16,N[7]=At=ke&65535|Re<<16,K[7]=we=Ce&65535|Ae<<16,Se+=128,A-=128}return A}function M(N,K,$){var A=new Int32Array(8),Q=new Int32Array(8),fe=new Uint8Array(256),pe,Te=$;for(A[0]=1779033703,A[1]=3144134277,A[2]=1013904242,A[3]=2773480762,A[4]=1359893119,A[5]=2600822924,A[6]=528734635,A[7]=1541459225,Q[0]=4089235720,Q[1]=2227873595,Q[2]=4271175723,Q[3]=1595750129,Q[4]=2917565137,Q[5]=725511199,Q[6]=4215389547,Q[7]=327033209,P(A,Q,K,$),$%=128,pe=0;pe<$;pe++)fe[pe]=K[Te-$+pe];for(fe[$]=128,$=256-128*($<112?1:0),fe[$-9]=0,f(fe,$-8,Te/536870912|0,Te<<3),P(A,Q,fe,$),pe=0;pe<8;pe++)f(N,8*pe,A[pe],Q[pe]);return 0}function V(N,K){var $=n(),A=n(),Q=n(),fe=n(),pe=n(),Te=n(),qe=n(),He=n(),De=n();Be($,N[1],N[0]),Be(De,K[1],K[0]),Pe($,$,De),Ee(A,N[0],N[1]),Ee(De,K[0],K[1]),Pe(A,A,De),Pe(Q,N[3],K[3]),Pe(Q,Q,y),Pe(fe,N[2],K[2]),Ee(fe,fe,fe),Be(pe,A,$),Be(Te,fe,Q),Ee(qe,fe,Q),Ee(He,A,$),Pe(N[0],pe,Te),Pe(N[1],He,qe),Pe(N[2],qe,Te),Pe(N[3],pe,He)}function te(N,K,$){var A;for(A=0;A<4;A++)W(N[A],K[A],$)}function ee(N,K){var $=n(),A=n(),Q=n();Ye(Q,K[2]),Pe($,K[0],Q),Pe(A,K[1],Q),re(N,A),N[31]^=G($)<<7}function j(N,K,$){var A,Q;for(Z(N[0],o),Z(N[1],u),Z(N[2],u),Z(N[3],o),Q=255;Q>=0;--Q)A=$[Q/8|0]>>(Q&7)&1,te(N,K,A),V(K,N),V(N,N),te(N,K,A)}function X(N,K){var $=[n(),n(),n(),n()];Z($[0],c),Z($[1],h),Z($[2],u),Pe($[3],c,h),j(N,$,K)}function le(N,K,$){var A=new Uint8Array(64),Q=[n(),n(),n(),n()],fe;for($||i(K,32),M(A,K,32),A[0]&=248,A[31]&=127,A[31]|=64,X(Q,A),ee(N,Q),fe=0;fe<32;fe++)K[fe+32]=N[fe];return 0}var de=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function he(N,K){var $,A,Q,fe;for(A=63;A>=32;--A){for($=0,Q=A-32,fe=A-12;Q>4)*de[Q],$=K[Q]>>8,K[Q]&=255;for(Q=0;Q<32;Q++)K[Q]-=$*de[Q];for(A=0;A<32;A++)K[A+1]+=K[A]>>8,N[A]=K[A]&255}function Oe(N){var K=new Float64Array(64),$;for($=0;$<64;$++)K[$]=N[$];for($=0;$<64;$++)N[$]=0;he(N,K)}function Ve(N,K,$,A){var Q=new Uint8Array(64),fe=new Uint8Array(64),pe=new Uint8Array(64),Te,qe,He=new Float64Array(64),De=[n(),n(),n(),n()];M(Q,A,32),Q[0]&=248,Q[31]&=127,Q[31]|=64;var St=$+64;for(Te=0;Te<$;Te++)N[64+Te]=K[Te];for(Te=0;Te<32;Te++)N[32+Te]=Q[32+Te];for(M(pe,N.subarray(32),$+32),Oe(pe),X(De,pe),ee(N,De),Te=32;Te<64;Te++)N[Te]=A[Te];for(M(fe,N,$+64),Oe(fe),Te=0;Te<64;Te++)He[Te]=0;for(Te=0;Te<32;Te++)He[Te]=pe[Te];for(Te=0;Te<32;Te++)for(qe=0;qe<32;qe++)He[Te+qe]+=fe[Te]*Q[qe];return he(N.subarray(32),He),St}function wt(N,K){var $=n(),A=n(),Q=n(),fe=n(),pe=n(),Te=n(),qe=n();return Z(N[2],u),se(N[1],K),xe(Q,N[1]),Pe(fe,Q,s),Be(Q,Q,N[2]),Ee(fe,N[2],fe),xe(pe,fe),xe(Te,pe),Pe(qe,Te,pe),Pe($,qe,Q),Pe($,$,fe),_e($,$),Pe($,$,Q),Pe($,$,fe),Pe($,$,fe),Pe(N[0],$,fe),xe(A,N[0]),Pe(A,A,fe),ae(A,Q)&&Pe(N[0],N[0],S),xe(A,N[0]),Pe(A,A,fe),ae(A,Q)?-1:(G(N[0])===K[31]>>7&&Be(N[0],o,N[0]),Pe(N[3],N[0],N[1]),0)}function Tt(N,K,$,A){var Q,fe=new Uint8Array(32),pe=new Uint8Array(64),Te=[n(),n(),n(),n()],qe=[n(),n(),n(),n()];if($<64||wt(qe,A))return-1;for(Q=0;Q<$;Q++)N[Q]=K[Q];for(Q=0;Q<32;Q++)N[Q+32]=A[Q];if(M(pe,N,$),Oe(pe),j(Te,qe,pe),X(qe,K.subarray(32)),V(Te,qe),ee(fe,Te),$-=64,p(K,0,fe,0)){for(Q=0;Q<$;Q++)N[Q]=0;return-1}for(Q=0;Q<$;Q++)N[Q]=K[Q+64];return $}var Dt=32,pt=24,mt=32,Vt=16,sr=32,un=32,Jr=32,ur=32,Hr=32,dr=pt,Jt=mt,Nt=Vt,_r=64,Tr=32,mn=64,ri=32,qi=64;t.lowlevel={crypto_core_hsalsa20:R,crypto_stream_xor:U,crypto_stream:F,crypto_stream_salsa20_xor:L,crypto_stream_salsa20:q,crypto_onetimeauth:ce,crypto_onetimeauth_verify:E,crypto_verify_16:v,crypto_verify_32:p,crypto_secretbox:O,crypto_secretbox_open:H,crypto_scalarmult:nt,crypto_scalarmult_base:ut,crypto_box_beforenm:tt,crypto_box_afternm:Xe,crypto_box:Me,crypto_box_open:C,crypto_box_keypair:et,crypto_hash:M,crypto_sign:Ve,crypto_sign_keypair:le,crypto_sign_open:Tt,crypto_secretbox_KEYBYTES:Dt,crypto_secretbox_NONCEBYTES:pt,crypto_secretbox_ZEROBYTES:mt,crypto_secretbox_BOXZEROBYTES:Vt,crypto_scalarmult_BYTES:sr,crypto_scalarmult_SCALARBYTES:un,crypto_box_PUBLICKEYBYTES:Jr,crypto_box_SECRETKEYBYTES:ur,crypto_box_BEFORENMBYTES:Hr,crypto_box_NONCEBYTES:dr,crypto_box_ZEROBYTES:Jt,crypto_box_BOXZEROBYTES:Nt,crypto_sign_BYTES:_r,crypto_sign_PUBLICKEYBYTES:Tr,crypto_sign_SECRETKEYBYTES:mn,crypto_sign_SEEDBYTES:ri,crypto_hash_BYTES:qi,gf:n,D:s,L:de,pack25519:re,unpack25519:se,M:Pe,A:Ee,S:xe,Z:Be,pow2523:_e,add:V,set25519:Z,modL:he,scalarmult:j,scalarbase:X};function ni(N,K){if(N.length!==Dt)throw new Error("bad key size");if(K.length!==pt)throw new Error("bad nonce size")}function Wa(N,K){if(N.length!==Jr)throw new Error("bad public key size");if(K.length!==ur)throw new Error("bad secret key size")}function xr(){for(var N=0;N=0},t.sign.keyPair=function(){var N=new Uint8Array(Tr),K=new Uint8Array(mn);return le(N,K),{publicKey:N,secretKey:K}},t.sign.keyPair.fromSecretKey=function(N){if(xr(N),N.length!==mn)throw new Error("bad secret key size");for(var K=new Uint8Array(Tr),$=0;$"u"?a():o()}function a(){var u=void 0;try{u=pi}catch{return o()}return Object.keys(u).length?(e.generate=function(l){var s=Buffer.alloc(u.crypto_sign_PUBLICKEYBYTES),y=Buffer.alloc(u.crypto_sign_SECRETKEYBYTES);return u.crypto_sign_seed_keypair(s,y,l),s},e.sign=function(l,s){l=Buffer.from(l);var y=Buffer.alloc(u.crypto_sign_BYTES);return u.crypto_sign_detached(y,l,s),y},e.verify=function(l,s,y){l=Buffer.from(l);try{return u.crypto_sign_verify_detached(s,l,y)}catch{return!1}},!0):o()}function o(){var u=H6();return e.generate=function(l){var s=new Uint8Array(l),y=u.sign.keyPair.fromSeed(s);return Buffer.from(y.publicKey)},e.sign=function(l,s){l=Buffer.from(l),l=new Uint8Array(l.toJSON().data),s=new Uint8Array(s.toJSON().data);var y=u.sign.detached(l,s);return Buffer.from(y)},e.verify=function(l,s,y){return l=Buffer.from(l),l=new Uint8Array(l.toJSON().data),s=new Uint8Array(s.toJSON().data),y=new Uint8Array(y.toJSON().data),u.sign.detached.verify(l,s,y)},!1}return Li}var da={},Wu={},Gu={},gd={},yd={},go={},wd,_w;function ru(){if(_w)return wd;_w=1;var e=ei(),t=vn(),n="[object Number]";function i(r){return typeof r=="number"||t(r)&&e(r)==n}return wd=i,wd}var Yu={},_d,xw;function SP(){if(xw)return _d;xw=1;var e=Cn(),t=e["__core-js_shared__"];return _d=t,_d}var xd,bw;function EP(){if(bw)return xd;bw=1;var e=SP(),t=function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function n(i){return!!t&&t in i}return xd=n,xd}var bd,Sw;function X6(){if(Sw)return bd;Sw=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return bd=n,bd}var Sd,Ew;function kP(){if(Ew)return Sd;Ew=1;var e=Oc(),t=EP(),n=jn(),i=X6(),r=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,l=o.toString,s=u.hasOwnProperty,y=RegExp("^"+l.call(s).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(h){if(!n(h)||t(h))return!1;var S=e(h)?y:a;return S.test(i(h))}return Sd=c,Sd}var Ed,kw;function AP(){if(kw)return Ed;kw=1;function e(t,n){return t==null?void 0:t[n]}return Ed=e,Ed}var kd,Aw;function ra(){if(Aw)return kd;Aw=1;var e=kP(),t=AP();function n(i,r){var a=t(i,r);return e(a)?a:void 0}return kd=n,kd}var Ad,Tw;function Q6(){if(Tw)return Ad;Tw=1;var e=ra(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return Ad=t,Ad}var Td,Pw;function Ug(){if(Pw)return Td;Pw=1;var e=Q6();function t(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r}return Td=t,Td}var Pd,Cw;function nu(){if(Cw)return Pd;Cw=1;function e(t,n){return t===n||t!==t&&n!==n}return Pd=e,Pd}var Cd,Ow;function W6(){if(Ow)return Cd;Ow=1;var e=Ug(),t=nu(),n=Object.prototype,i=n.hasOwnProperty;function r(a,o,u){var l=a[o];(!(i.call(a,o)&&t(l,u))||u===void 0&&!(o in a))&&e(a,o,u)}return Cd=r,Cd}var Od,Rw;function $a(){if(Rw)return Od;Rw=1;var e=W6(),t=Ug();function n(i,r,a,o){var u=!a;a||(a={});for(var l=-1,s=r.length;++l0){if(++a>=e)return arguments[0]}else a=0;return r.apply(void 0,arguments)}}return Md=i,Md}var Ld,Nw;function IP(){if(Nw)return Ld;Nw=1;var e=OP(),t=RP(),n=t(e);return Ld=n,Ld}var Nd,Fw;function qP(){if(Fw)return Nd;Fw=1;var e=Ac(),t=PP(),n=IP();function i(r,a){return n(t(r,a,e),r+"")}return Nd=i,Nd}var Fd,Dw;function G6(){if(Dw)return Fd;Dw=1;var e=nu(),t=ea(),n=Lg(),i=jn();function r(a,o,u){if(!i(u))return!1;var l=typeof o;return(l=="number"?t(u)&&n(o,u.length):l=="string"&&o in u)?e(u[o],a):!1}return Fd=r,Fd}var Dd,Uw;function Y6(){if(Uw)return Dd;Uw=1;var e=qP(),t=G6();function n(i){return e(function(r,a){var o=-1,u=a.length,l=u>1?a[u-1]:void 0,s=u>2?a[2]:void 0;for(l=i.length>3&&typeof l=="function"?(u--,l):void 0,s&&t(a[0],a[1],s)&&(l=u<3?void 0:l,u=1),r=Object(r);++o-1}return t0=t,t0}var r0,n_;function HP(){if(n_)return r0;n_=1;var e=Rc();function t(n,i){var r=this.__data__,a=e(r,n);return a<0?(++this.size,r.push([n,i])):r[a][1]=i,this}return r0=t,r0}var n0,i_;function Ic(){if(i_)return n0;i_=1;var e=jP(),t=zP(),n=VP(),i=$P(),r=HP();function a(o){var u=-1,l=o==null?0:o.length;for(this.clear();++uS))return!1;var d=c.get(o),v=c.get(u);if(d&&v)return d==u&&v==o;var p=-1,m=!0,g=l&r?new e:void 0;for(c.set(o,u),c.set(u,o);++p1&&arguments[1]!==void 0?arguments[1]:"raw",S=void 0;switch(h){case"raw":S=c;break;case"hex":S=Buffer.from(c,"hex");break;case"base64":S=Buffer.from(c,"base64");break;default:throw new Error("Invalid format "+h+', must be "raw", "hex", "base64"')}var f=new r.Cursor(S),d=this.read(f);return d},validateXDR:function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"raw";try{return this.fromXDR(c,h),!0}catch{return!1}}},l={toXDR:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"raw",h=this.constructor.toXDR(this);switch(c){case"raw":return h;case"hex":return h.toString("hex");case"base64":return h.toString("base64");default:throw new Error("Invalid format "+c+', must be "raw", "hex", "base64"')}}};function s(y){(0,t.default)(y,u),(0,i.default)(y)&&(0,t.default)(y.prototype,l)}return Yu}var Ax;function Ka(){if(Ax)return go;Ax=1,Object.defineProperty(go,"__esModule",{value:!0}),go.Int=void 0;var e=ru(),t=r(e),n=wr(),i=r(n);function r(o){return o&&o.__esModule?o:{default:o}}var a=go.Int={read:function(u){return u.readInt32BE()},write:function(u,l){if(!(0,t.default)(u))throw new Error("XDR Write Error: not a number");if(Math.floor(u)!==u)throw new Error("XDR Write Error: not an integer");l.writeInt32BE(u)},isValid:function(u){return!(0,t.default)(u)||Math.floor(u)!==u?!1:u>=a.MIN_VALUE&&u<=a.MAX_VALUE}};return a.MAX_VALUE=Math.pow(2,31)-1,a.MIN_VALUE=-Math.pow(2,31),(0,i.default)(a),go}var _o={},bh={exports:{}},Tx;function h5(){return Tx||(Tx=1,function(e){/** + * @license Long.js (c) 2013 Daniel Wirtz + * Released under the Apache License, Version 2.0 + * see: https://github.com/dcodeIO/Long.js for details + */(function(t,n){typeof Ig=="function"&&e&&e.exports?e.exports=n():(t.dcodeIO=t.dcodeIO||{}).Long=n()})($t,function(){function t(y,c,h){this.low=y|0,this.high=c|0,this.unsigned=!!h}t.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=function(c){return(c&&c.__isLong__)===!0};var n={},i={};t.fromInt=function(c,h){var S,f;return h?(c=c>>>0,0<=c&&c<256&&(f=i[c],f)?f:(S=new t(c,(c|0)<0?-1:0,!0),0<=c&&c<256&&(i[c]=S),S)):(c=c|0,-128<=c&&c<128&&(f=n[c],f)?f:(S=new t(c,c<0?-1:0,!1),-128<=c&&c<128&&(n[c]=S),S))},t.fromNumber=function(c,h){return h=!!h,isNaN(c)||!isFinite(c)?t.ZERO:!h&&c<=-l?t.MIN_VALUE:!h&&c+1>=l?t.MAX_VALUE:h&&c>=u?t.MAX_UNSIGNED_VALUE:c<0?t.fromNumber(-c,h).negate():new t(c%o|0,c/o|0,h)},t.fromBits=function(c,h,S){return new t(c,h,S)},t.fromString=function(c,h,S){if(c.length===0)throw Error("number format error: empty string");if(c==="NaN"||c==="Infinity"||c==="+Infinity"||c==="-Infinity")return t.ZERO;if(typeof h=="number"&&(S=h,h=!1),S=S||10,S<2||360)throw Error('number format error: interior "-" character: '+c);if(f===0)return t.fromString(c.substring(1),h,S).negate();for(var d=t.fromNumber(Math.pow(S,8)),v=t.ZERO,p=0;p>>0:this.low},t.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*o+(this.low>>>0):this.high*o+(this.low>>>0)},t.prototype.toString=function(c){if(c=c||10,c<2||36>>0,g=m.toString(c);if(h=p,h.isZero())return g+v;for(;g.length<6;)g="0"+g;v=""+g+v}},t.prototype.getHighBits=function(){return this.high},t.prototype.getHighBitsUnsigned=function(){return this.high>>>0},t.prototype.getLowBits=function(){return this.low},t.prototype.getLowBitsUnsigned=function(){return this.low>>>0},t.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(t.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},t.prototype.isOdd=function(){return(this.low&1)===1},t.prototype.isEven=function(){return(this.low&1)===0},t.prototype.equals=function(c){return t.isLong(c)||(c=t.fromValue(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},t.eq=t.prototype.equals,t.prototype.notEquals=function(c){return!this.equals(c)},t.neq=t.prototype.notEquals,t.prototype.lessThan=function(c){return this.compare(c)<0},t.prototype.lt=t.prototype.lessThan,t.prototype.lessThanOrEqual=function(c){return this.compare(c)<=0},t.prototype.lte=t.prototype.lessThanOrEqual,t.prototype.greaterThan=function(c){return this.compare(c)>0},t.prototype.gt=t.prototype.greaterThan,t.prototype.greaterThanOrEqual=function(c){return this.compare(c)>=0},t.prototype.gte=t.prototype.greaterThanOrEqual,t.prototype.compare=function(c){if(t.isLong(c)||(c=t.fromValue(c)),this.equals(c))return 0;var h=this.isNegative(),S=c.isNegative();return h&&!S?-1:!h&&S?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.subtract(c).isNegative()?-1:1},t.prototype.negate=function(){return!this.unsigned&&this.equals(t.MIN_VALUE)?t.MIN_VALUE:this.not().add(t.ONE)},t.prototype.neg=t.prototype.negate,t.prototype.add=function(c){t.isLong(c)||(c=t.fromValue(c));var h=this.high>>>16,S=this.high&65535,f=this.low>>>16,d=this.low&65535,v=c.high>>>16,p=c.high&65535,m=c.low>>>16,g=c.low&65535,b=0,R=0,B=0,L=0;return L+=d+g,B+=L>>>16,L&=65535,B+=f+m,R+=B>>>16,B&=65535,R+=S+p,b+=R>>>16,R&=65535,b+=h+v,b&=65535,t.fromBits(B<<16|L,b<<16|R,this.unsigned)},t.prototype.subtract=function(c){return t.isLong(c)||(c=t.fromValue(c)),this.add(c.negate())},t.prototype.sub=t.prototype.subtract,t.prototype.multiply=function(c){if(this.isZero()||(t.isLong(c)||(c=t.fromValue(c)),c.isZero()))return t.ZERO;if(this.equals(t.MIN_VALUE))return c.isOdd()?t.MIN_VALUE:t.ZERO;if(c.equals(t.MIN_VALUE))return this.isOdd()?t.MIN_VALUE:t.ZERO;if(this.isNegative())return c.isNegative()?this.negate().multiply(c.negate()):this.negate().multiply(c).negate();if(c.isNegative())return this.multiply(c.negate()).negate();if(this.lessThan(s)&&c.lessThan(s))return t.fromNumber(this.toNumber()*c.toNumber(),this.unsigned);var h=this.high>>>16,S=this.high&65535,f=this.low>>>16,d=this.low&65535,v=c.high>>>16,p=c.high&65535,m=c.low>>>16,g=c.low&65535,b=0,R=0,B=0,L=0;return L+=d*g,B+=L>>>16,L&=65535,B+=f*g,R+=B>>>16,B&=65535,B+=d*m,R+=B>>>16,B&=65535,R+=S*g,b+=R>>>16,R&=65535,R+=f*m,b+=R>>>16,R&=65535,R+=d*p,b+=R>>>16,R&=65535,b+=h*g+S*m+f*p+d*v,b&=65535,t.fromBits(B<<16|L,b<<16|R,this.unsigned)},t.prototype.mul=t.prototype.multiply,t.prototype.divide=function(c){if(t.isLong(c)||(c=t.fromValue(c)),c.isZero())throw new Error("division by zero");if(this.isZero())return this.unsigned?t.UZERO:t.ZERO;var h,S,f;if(this.equals(t.MIN_VALUE)){if(c.equals(t.ONE)||c.equals(t.NEG_ONE))return t.MIN_VALUE;if(c.equals(t.MIN_VALUE))return t.ONE;var d=this.shiftRight(1);return h=d.divide(c).shiftLeft(1),h.equals(t.ZERO)?c.isNegative()?t.ONE:t.NEG_ONE:(S=this.subtract(c.multiply(h)),f=h.add(S.divide(c)),f)}else if(c.equals(t.MIN_VALUE))return this.unsigned?t.UZERO:t.ZERO;if(this.isNegative())return c.isNegative()?this.negate().divide(c.negate()):this.negate().divide(c).negate();if(c.isNegative())return this.divide(c.negate()).negate();for(f=t.ZERO,S=this;S.greaterThanOrEqual(c);){h=Math.max(1,Math.floor(S.toNumber()/c.toNumber()));for(var v=Math.ceil(Math.log(h)/Math.LN2),p=v<=48?1:Math.pow(2,v-48),m=t.fromNumber(h),g=m.multiply(c);g.isNegative()||g.greaterThan(S);)h-=p,m=t.fromNumber(h,this.unsigned),g=m.multiply(c);m.isZero()&&(m=t.ONE),f=f.add(m),S=S.subtract(g)}return f},t.prototype.div=t.prototype.divide,t.prototype.modulo=function(c){return t.isLong(c)||(c=t.fromValue(c)),this.subtract(this.divide(c).multiply(c))},t.prototype.mod=t.prototype.modulo,t.prototype.not=function(){return t.fromBits(~this.low,~this.high,this.unsigned)},t.prototype.and=function(c){return t.isLong(c)||(c=t.fromValue(c)),t.fromBits(this.low&c.low,this.high&c.high,this.unsigned)},t.prototype.or=function(c){return t.isLong(c)||(c=t.fromValue(c)),t.fromBits(this.low|c.low,this.high|c.high,this.unsigned)},t.prototype.xor=function(c){return t.isLong(c)||(c=t.fromValue(c)),t.fromBits(this.low^c.low,this.high^c.high,this.unsigned)},t.prototype.shiftLeft=function(c){return t.isLong(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?t.fromBits(this.low<>>32-c,this.unsigned):t.fromBits(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):t.fromBits(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},t.prototype.shr=t.prototype.shiftRight,t.prototype.shiftRightUnsigned=function(c){if(t.isLong(c)&&(c=c.toInt()),c&=63,c===0)return this;var h=this.high;if(c<32){var S=this.low;return t.fromBits(S>>>c|h<<32-c,h>>>c,this.unsigned)}else return c===32?t.fromBits(h,0,this.unsigned):t.fromBits(h>>>c-32,0,this.unsigned)},t.prototype.shru=t.prototype.shiftRightUnsigned,t.prototype.toSigned=function(){return this.unsigned?new t(this.low,this.high,!1):this},t.prototype.toUnsigned=function(){return this.unsigned?this:new t(this.low,this.high,!0)},t})}(bh)),bh.exports}var Px;function F8(){if(Px)return _o;Px=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.Hyper=void 0;var e=function(){function c(h,S){for(var f=0;f=a.MIN_VALUE&&u<=a.MAX_VALUE}};return a.MAX_VALUE=Math.pow(2,32)-1,a.MIN_VALUE=0,(0,i.default)(a),xo}var bo={},Ox;function D8(){if(Ox)return bo;Ox=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.UnsignedHyper=void 0;var e=function(){function c(h,S){for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:o.UnsignedInt.MAX_VALUE;c(this,S),this._maxLength=f}return e(S,[{key:"read",value:function(d){var v=a.Int.read(d);if(v>this._maxLength)throw new Error("XDR Read Error: Saw "+v+" length String,"+("max allowed is "+this._maxLength));var p=(0,u.calculatePadding)(v),m=d.slice(v);return(0,u.slicePadding)(d,p),m.buffer()}},{key:"readString",value:function(d){return this.read(d).toString("utf8")}},{key:"write",value:function(d,v){if(d.length>this._maxLength)throw new Error("XDR Write Error: Got "+d.length+" bytes,"+("max allows is "+this._maxLength));var p=void 0;(0,n.default)(d)?p=Buffer.from(d,"utf8"):p=Buffer.from(d),a.Int.write(p.length,v),v.writeBufferPadded(p)}},{key:"isValid",value:function(d){var v=void 0;if((0,n.default)(d))v=Buffer.from(d,"utf8");else if((0,r.default)(d)||Buffer.isBuffer(d))v=Buffer.from(d);else return!1;return v.length<=this._maxLength}}]),S}();return(0,s.default)(h.prototype),To}var Po={},Fx;function H8(){if(Fx)return Po;Fx=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.Opaque=void 0;var e=function(){function u(l,s){for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:n.UnsignedInt.MAX_VALUE;u(this,s),this._maxLength=y}return e(s,[{key:"read",value:function(c){var h=t.Int.read(c);if(h>this._maxLength)throw new Error("XDR Read Error: Saw "+h+" length VarOpaque,"+("max allowed is "+this._maxLength));var S=(0,i.calculatePadding)(h),f=c.slice(h);return(0,i.slicePadding)(c,S),f.buffer()}},{key:"write",value:function(c,h){if(c.length>this._maxLength)throw new Error("XDR Write Error: Got "+c.length+" bytes,"+("max allows is "+this._maxLength));t.Int.write(c.length,h),h.writeBufferPadded(c)}},{key:"isValid",value:function(c){return Buffer.isBuffer(c)&&c.length<=this._maxLength}}]),s}();return(0,a.default)(l.prototype),Co}var Oo={},kh,Ux;function v5(){if(Ux)return kh;Ux=1;function e(t,n){for(var i=-1,r=t==null?0:t.length;++ii)return[];var s=r,y=a(u,r);l=t(l),u-=r;for(var c=e(y,l);++s1&&arguments[1]!==void 0?arguments[1]:s.UnsignedInt.MAX_VALUE;f(this,v),this._childType=p,this._maxLength=m}return e(v,[{key:"read",value:function(m){var g=this,b=y.Int.read(m);if(b>this._maxLength)throw new Error("XDR Read Error: Saw "+b+" length VarArray,"+("max allowed is "+this._maxLength));return(0,o.default)(b,function(){return g._childType.read(m)})}},{key:"write",value:function(m,g){var b=this;if(!(0,l.default)(m))throw new Error("XDR Write Error: value is not array");if(m.length>this._maxLength)throw new Error("XDR Write Error: Got array of size "+m.length+","+("max allowed is "+this._maxLength));y.Int.write(m.length,g),(0,r.default)(m,function(R){return b._childType.write(R,g)})}},{key:"isValid",value:function(m){var g=this;return!(0,l.default)(m)||m.length>this._maxLength?!1:(0,n.default)(m,function(b){return g._childType.isValid(b)})}}]),v}();return(0,h.default)(d.prototype),Ro}var Io={},Bh,Yx;function w5(){if(Yx)return Bh;Yx=1;function e(t){return t===null}return Bh=e,Bh}var Mh,Zx;function Ir(){if(Zx)return Mh;Zx=1;function e(t){return t===void 0}return Mh=e,Mh}var Jx;function J8(){if(Jx)return Io;Jx=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Option=void 0;var e=function(){function c(h,S){for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:this._arm;if(this._arm!==l.Void&&this._arm!==g)throw new Error(g+" not set");return this._value}},{key:"switch",value:function(){return this._switch}},{key:"arm",value:function(){return this._arm}},{key:"armType",value:function(){return this._armType}},{key:"value",value:function(){return this._value}}],[{key:"armForSwitch",value:function(g){if(this._switches.has(g))return this._switches.get(g);if(this._defaultArm)return this._defaultArm;throw new Error("Bad union switch: "+g)}},{key:"armTypeForArm",value:function(g){return g===l.Void?l.Void:this._arms[g]}},{key:"read",value:function(g){var b=this._switchOn.read(g),R=this.armForSwitch(b),B=this.armTypeForArm(R),L=void 0;return(0,a.default)(B)?L=R.read(g):L=B.read(g),new this(b,L)}},{key:"write",value:function(g,b){if(!(g instanceof this))throw new Error("XDR Write Error: "+g+" is not a "+this.unionName);this._switchOn.write(g.switch(),b),g.armType().write(g.value(),b)}},{key:"isValid",value:function(g){return g instanceof this}},{key:"create",value:function(g,b,R){var B=function(q){f(F,q);function F(){return d(this,F),S(this,(F.__proto__||Object.getPrototypeOf(F)).apply(this,arguments))}return F}(p);B.unionName=b,g.results[b]=B,R.switchOn instanceof s.Reference?B._switchOn=R.switchOn.resolve(g):B._switchOn=R.switchOn,B._switches=new Map,B._arms={},(0,i.default)(R.arms,function(q,F){q instanceof s.Reference&&(q=q.resolve(g)),B._arms[F]=q});var L=R.defaultArm;return L instanceof s.Reference&&(L=L.resolve(g)),B._defaultArm=L,(0,i.default)(R.switches,function(q){var F=e(q,2),U=F[0],J=F[1];(0,u.default)(U)&&(U=B._switchOn.fromName(U)),B._switches.set(U,J)}),(0,a.default)(B._switchOn.values)||(0,i.default)(B._switchOn.values(),function(q){B[q.name]=function(F){return new B(q,F)},B.prototype[q.name]=function(U){return this.set(q,U)}}),(0,i.default)(B._arms,function(q,F){q!==l.Void&&(B.prototype[F]=function(){return this.get(F)})}),B}}]),p}();return(0,c.default)(v),Lo}var cb;function b5(){return cb||(cb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ka();Object.keys(t).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return t[g]}})});var n=F8();Object.keys(n).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return n[g]}})});var i=Dc();Object.keys(i).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return i[g]}})});var r=D8();Object.keys(r).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return r[g]}})});var a=U8();Object.keys(a).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return a[g]}})});var o=j8();Object.keys(o).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return o[g]}})});var u=z8();Object.keys(u).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return u[g]}})});var l=p5();Object.keys(l).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return l[g]}})});var s=$8();Object.keys(s).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return s[g]}})});var y=H8();Object.keys(y).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return y[g]}})});var c=K8();Object.keys(c).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return c[g]}})});var h=Y8();Object.keys(h).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return h[g]}})});var S=Z8();Object.keys(S).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return S[g]}})});var f=J8();Object.keys(f).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return f[g]}})});var d=_5();Object.keys(d).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return d[g]}})});var v=rC();Object.keys(v).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return v[g]}})});var p=aC();Object.keys(p).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return p[g]}})});var m=oC();Object.keys(m).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(e,g,{enumerable:!0,get:function(){return m[g]}})})}(yd)),yd}var jh={},fb;function sC(){return fb||(fb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function L(q,F){for(var U=0;U1&&arguments[1]!==void 0?arguments[1]:{};if(L){var F=new B(q);L(F),F.resolve()}return q}var d=function(L){S(q,L);function q(F){c(this,q);var U=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this));return U.name=F,U}return t(q,[{key:"resolve",value:function(U){var J=U.definitions[this.name];return J.resolve(U)}}]),q}(n.Reference),v=function(L){S(q,L);function q(F,U){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;c(this,q);var ce=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this));return ce.childReference=F,ce.length=U,ce.variable=J,ce}return t(q,[{key:"resolve",value:function(U){var J=this.childReference,ce=this.length;return J instanceof n.Reference&&(J=J.resolve(U)),ce instanceof n.Reference&&(ce=ce.resolve(U)),this.variable?new l.VarArray(J,ce):new l.Array(J,ce)}}]),q}(n.Reference),p=function(L){S(q,L);function q(F){c(this,q);var U=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this));return U.childReference=F,U.name=F.name,U}return t(q,[{key:"resolve",value:function(U){var J=this.childReference;return J instanceof n.Reference&&(J=J.resolve(U)),new l.Option(J)}}]),q}(n.Reference),m=function(L){S(q,L);function q(F,U){c(this,q);var J=h(this,(q.__proto__||Object.getPrototypeOf(q)).call(this));return J.sizedType=F,J.length=U,J}return t(q,[{key:"resolve",value:function(U){var J=this.length;return J instanceof n.Reference&&(J=J.resolve(U)),new this.sizedType(J)}}]),q}(n.Reference),g=function(){function L(q,F,U){c(this,L),this.constructor=q,this.name=F,this.config=U}return t(L,[{key:"resolve",value:function(F){return this.name in F.results?F.results[this.name]:this.constructor(F,this.name,this.config)}}]),L}();function b(L,q,F){return F instanceof n.Reference&&(F=F.resolve(L)),L.results[q]=F,F}function R(L,q,F){return L.results[q]=F,F}var B=function(){function L(q){c(this,L),this._destination=q,this._definitions={}}return t(L,[{key:"enum",value:function(F,U){var J=new g(l.Enum.create,F,U);this.define(F,J)}},{key:"struct",value:function(F,U){var J=new g(l.Struct.create,F,U);this.define(F,J)}},{key:"union",value:function(F,U){var J=new g(l.Union.create,F,U);this.define(F,J)}},{key:"typedef",value:function(F,U){var J=new g(b,F,U);this.define(F,J)}},{key:"const",value:function(F,U){var J=new g(R,F,U);this.define(F,J)}},{key:"void",value:function(){return l.Void}},{key:"bool",value:function(){return l.Bool}},{key:"int",value:function(){return l.Int}},{key:"hyper",value:function(){return l.Hyper}},{key:"uint",value:function(){return l.UnsignedInt}},{key:"uhyper",value:function(){return l.UnsignedHyper}},{key:"float",value:function(){return l.Float}},{key:"double",value:function(){return l.Double}},{key:"quadruple",value:function(){return l.Quadruple}},{key:"string",value:function(F){return new m(l.String,F)}},{key:"opaque",value:function(F){return new m(l.Opaque,F)}},{key:"varOpaque",value:function(F){return new m(l.VarOpaque,F)}},{key:"array",value:function(F,U){return new v(F,U)}},{key:"varArray",value:function(F,U){return new v(F,U,!0)}},{key:"option",value:function(F){return new p(F)}},{key:"define",value:function(F,U){if((0,r.default)(this._destination[F]))this._definitions[F]=U;else throw new Error("XDRTypes Error:"+F+" is already defined")}},{key:"lookup",value:function(F){return new d(F)}},{key:"resolve",value:function(){var F=this;(0,o.default)(this._definitions,function(U){U.resolve({definitions:F._definitions,results:F._destination})})}}]),L}()}(jh)),jh}var db;function ti(){return db||(db=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=b5();Object.keys(t).forEach(function(i){i==="default"||i==="__esModule"||Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[i]}})});var n=sC();Object.keys(n).forEach(function(i){i==="default"||i==="__esModule"||Object.defineProperty(e,i,{enumerable:!0,get:function(){return n[i]}})})}(gd)),gd}var hb;function uC(){if(hb)return Gu;hb=1,Object.defineProperty(Gu,"__esModule",{value:!0});var e=ti(),t=n(e);function n(r){if(r&&r.__esModule)return r;var a={};if(r!=null)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(a[o]=r[o]);return a.default=r,a}var i=t.config(function(r){r.typedef("Value",r.varOpaque()),r.struct("ScpBallot",[["counter",r.lookup("Uint32")],["value",r.lookup("Value")]]),r.enum("ScpStatementType",{scpStPrepare:0,scpStConfirm:1,scpStExternalize:2,scpStNominate:3}),r.struct("ScpNomination",[["quorumSetHash",r.lookup("Hash")],["votes",r.varArray(r.lookup("Value"),2147483647)],["accepted",r.varArray(r.lookup("Value"),2147483647)]]),r.struct("ScpStatementPrepare",[["quorumSetHash",r.lookup("Hash")],["ballot",r.lookup("ScpBallot")],["prepared",r.option(r.lookup("ScpBallot"))],["preparedPrime",r.option(r.lookup("ScpBallot"))],["nC",r.lookup("Uint32")],["nH",r.lookup("Uint32")]]),r.struct("ScpStatementConfirm",[["ballot",r.lookup("ScpBallot")],["nPrepared",r.lookup("Uint32")],["nCommit",r.lookup("Uint32")],["nH",r.lookup("Uint32")],["quorumSetHash",r.lookup("Hash")]]),r.struct("ScpStatementExternalize",[["commit",r.lookup("ScpBallot")],["nH",r.lookup("Uint32")],["commitQuorumSetHash",r.lookup("Hash")]]),r.union("ScpStatementPledges",{switchOn:r.lookup("ScpStatementType"),switchName:"type",switches:[["scpStPrepare","prepare"],["scpStConfirm","confirm"],["scpStExternalize","externalize"],["scpStNominate","nominate"]],arms:{prepare:r.lookup("ScpStatementPrepare"),confirm:r.lookup("ScpStatementConfirm"),externalize:r.lookup("ScpStatementExternalize"),nominate:r.lookup("ScpNomination")}}),r.struct("ScpStatement",[["nodeId",r.lookup("NodeId")],["slotIndex",r.lookup("Uint64")],["pledges",r.lookup("ScpStatementPledges")]]),r.struct("ScpEnvelope",[["statement",r.lookup("ScpStatement")],["signature",r.lookup("Signature")]]),r.struct("ScpQuorumSet",[["threshold",r.lookup("Uint32")],["validators",r.varArray(r.lookup("NodeId"),2147483647)],["innerSets",r.varArray(r.lookup("ScpQuorumSet"),2147483647)]]),r.typedef("AccountId",r.lookup("PublicKey")),r.typedef("Thresholds",r.opaque(4)),r.typedef("String32",r.string(32)),r.typedef("String64",r.string(64)),r.typedef("SequenceNumber",r.lookup("Int64")),r.typedef("TimePoint",r.lookup("Uint64")),r.typedef("Duration",r.lookup("Uint64")),r.typedef("DataValue",r.varOpaque(64)),r.typedef("PoolId",r.lookup("Hash")),r.typedef("AssetCode4",r.opaque(4)),r.typedef("AssetCode12",r.opaque(12)),r.enum("AssetType",{assetTypeNative:0,assetTypeCreditAlphanum4:1,assetTypeCreditAlphanum12:2,assetTypePoolShare:3}),r.union("AssetCode",{switchOn:r.lookup("AssetType"),switchName:"type",switches:[["assetTypeCreditAlphanum4","assetCode4"],["assetTypeCreditAlphanum12","assetCode12"]],arms:{assetCode4:r.lookup("AssetCode4"),assetCode12:r.lookup("AssetCode12")}}),r.struct("AlphaNum4",[["assetCode",r.lookup("AssetCode4")],["issuer",r.lookup("AccountId")]]),r.struct("AlphaNum12",[["assetCode",r.lookup("AssetCode12")],["issuer",r.lookup("AccountId")]]),r.union("Asset",{switchOn:r.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",r.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"]],arms:{alphaNum4:r.lookup("AlphaNum4"),alphaNum12:r.lookup("AlphaNum12")}}),r.struct("Price",[["n",r.lookup("Int32")],["d",r.lookup("Int32")]]),r.struct("Liabilities",[["buying",r.lookup("Int64")],["selling",r.lookup("Int64")]]),r.enum("ThresholdIndices",{thresholdMasterWeight:0,thresholdLow:1,thresholdMed:2,thresholdHigh:3}),r.enum("LedgerEntryType",{account:0,trustline:1,offer:2,data:3,claimableBalance:4,liquidityPool:5}),r.struct("Signer",[["key",r.lookup("SignerKey")],["weight",r.lookup("Uint32")]]),r.enum("AccountFlags",{authRequiredFlag:1,authRevocableFlag:2,authImmutableFlag:4,authClawbackEnabledFlag:8}),r.const("MASK_ACCOUNT_FLAGS",7),r.const("MASK_ACCOUNT_FLAGS_V17",15),r.const("MAX_SIGNERS",20),r.typedef("SponsorshipDescriptor",r.option(r.lookup("AccountId"))),r.struct("AccountEntryExtensionV3",[["ext",r.lookup("ExtensionPoint")],["seqLedger",r.lookup("Uint32")],["seqTime",r.lookup("TimePoint")]]),r.union("AccountEntryExtensionV2Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[3,"v3"]],arms:{v3:r.lookup("AccountEntryExtensionV3")}}),r.struct("AccountEntryExtensionV2",[["numSponsored",r.lookup("Uint32")],["numSponsoring",r.lookup("Uint32")],["signerSponsoringIDs",r.varArray(r.lookup("SponsorshipDescriptor"),r.lookup("MAX_SIGNERS"))],["ext",r.lookup("AccountEntryExtensionV2Ext")]]),r.union("AccountEntryExtensionV1Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[2,"v2"]],arms:{v2:r.lookup("AccountEntryExtensionV2")}}),r.struct("AccountEntryExtensionV1",[["liabilities",r.lookup("Liabilities")],["ext",r.lookup("AccountEntryExtensionV1Ext")]]),r.union("AccountEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"v1"]],arms:{v1:r.lookup("AccountEntryExtensionV1")}}),r.struct("AccountEntry",[["accountId",r.lookup("AccountId")],["balance",r.lookup("Int64")],["seqNum",r.lookup("SequenceNumber")],["numSubEntries",r.lookup("Uint32")],["inflationDest",r.option(r.lookup("AccountId"))],["flags",r.lookup("Uint32")],["homeDomain",r.lookup("String32")],["thresholds",r.lookup("Thresholds")],["signers",r.varArray(r.lookup("Signer"),r.lookup("MAX_SIGNERS"))],["ext",r.lookup("AccountEntryExt")]]),r.enum("TrustLineFlags",{authorizedFlag:1,authorizedToMaintainLiabilitiesFlag:2,trustlineClawbackEnabledFlag:4}),r.const("MASK_TRUSTLINE_FLAGS",1),r.const("MASK_TRUSTLINE_FLAGS_V13",3),r.const("MASK_TRUSTLINE_FLAGS_V17",7),r.enum("LiquidityPoolType",{liquidityPoolConstantProduct:0}),r.union("TrustLineAsset",{switchOn:r.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",r.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPoolId"]],arms:{alphaNum4:r.lookup("AlphaNum4"),alphaNum12:r.lookup("AlphaNum12"),liquidityPoolId:r.lookup("PoolId")}}),r.union("TrustLineEntryExtensionV2Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("TrustLineEntryExtensionV2",[["liquidityPoolUseCount",r.lookup("Int32")],["ext",r.lookup("TrustLineEntryExtensionV2Ext")]]),r.union("TrustLineEntryV1Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[2,"v2"]],arms:{v2:r.lookup("TrustLineEntryExtensionV2")}}),r.struct("TrustLineEntryV1",[["liabilities",r.lookup("Liabilities")],["ext",r.lookup("TrustLineEntryV1Ext")]]),r.union("TrustLineEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"v1"]],arms:{v1:r.lookup("TrustLineEntryV1")}}),r.struct("TrustLineEntry",[["accountId",r.lookup("AccountId")],["asset",r.lookup("TrustLineAsset")],["balance",r.lookup("Int64")],["limit",r.lookup("Int64")],["flags",r.lookup("Uint32")],["ext",r.lookup("TrustLineEntryExt")]]),r.enum("OfferEntryFlags",{passiveFlag:1}),r.const("MASK_OFFERENTRY_FLAGS",1),r.union("OfferEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("OfferEntry",[["sellerId",r.lookup("AccountId")],["offerId",r.lookup("Int64")],["selling",r.lookup("Asset")],["buying",r.lookup("Asset")],["amount",r.lookup("Int64")],["price",r.lookup("Price")],["flags",r.lookup("Uint32")],["ext",r.lookup("OfferEntryExt")]]),r.union("DataEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("DataEntry",[["accountId",r.lookup("AccountId")],["dataName",r.lookup("String64")],["dataValue",r.lookup("DataValue")],["ext",r.lookup("DataEntryExt")]]),r.enum("ClaimPredicateType",{claimPredicateUnconditional:0,claimPredicateAnd:1,claimPredicateOr:2,claimPredicateNot:3,claimPredicateBeforeAbsoluteTime:4,claimPredicateBeforeRelativeTime:5}),r.union("ClaimPredicate",{switchOn:r.lookup("ClaimPredicateType"),switchName:"type",switches:[["claimPredicateUnconditional",r.void()],["claimPredicateAnd","andPredicates"],["claimPredicateOr","orPredicates"],["claimPredicateNot","notPredicate"],["claimPredicateBeforeAbsoluteTime","absBefore"],["claimPredicateBeforeRelativeTime","relBefore"]],arms:{andPredicates:r.varArray(r.lookup("ClaimPredicate"),2),orPredicates:r.varArray(r.lookup("ClaimPredicate"),2),notPredicate:r.option(r.lookup("ClaimPredicate")),absBefore:r.lookup("Int64"),relBefore:r.lookup("Int64")}}),r.enum("ClaimantType",{claimantTypeV0:0}),r.struct("ClaimantV0",[["destination",r.lookup("AccountId")],["predicate",r.lookup("ClaimPredicate")]]),r.union("Claimant",{switchOn:r.lookup("ClaimantType"),switchName:"type",switches:[["claimantTypeV0","v0"]],arms:{v0:r.lookup("ClaimantV0")}}),r.enum("ClaimableBalanceIdType",{claimableBalanceIdTypeV0:0}),r.union("ClaimableBalanceId",{switchOn:r.lookup("ClaimableBalanceIdType"),switchName:"type",switches:[["claimableBalanceIdTypeV0","v0"]],arms:{v0:r.lookup("Hash")}}),r.enum("ClaimableBalanceFlags",{claimableBalanceClawbackEnabledFlag:1}),r.const("MASK_CLAIMABLE_BALANCE_FLAGS",1),r.union("ClaimableBalanceEntryExtensionV1Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("ClaimableBalanceEntryExtensionV1",[["ext",r.lookup("ClaimableBalanceEntryExtensionV1Ext")],["flags",r.lookup("Uint32")]]),r.union("ClaimableBalanceEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"v1"]],arms:{v1:r.lookup("ClaimableBalanceEntryExtensionV1")}}),r.struct("ClaimableBalanceEntry",[["balanceId",r.lookup("ClaimableBalanceId")],["claimants",r.varArray(r.lookup("Claimant"),10)],["asset",r.lookup("Asset")],["amount",r.lookup("Int64")],["ext",r.lookup("ClaimableBalanceEntryExt")]]),r.struct("LiquidityPoolConstantProductParameters",[["assetA",r.lookup("Asset")],["assetB",r.lookup("Asset")],["fee",r.lookup("Int32")]]),r.struct("LiquidityPoolEntryConstantProduct",[["params",r.lookup("LiquidityPoolConstantProductParameters")],["reserveA",r.lookup("Int64")],["reserveB",r.lookup("Int64")],["totalPoolShares",r.lookup("Int64")],["poolSharesTrustLineCount",r.lookup("Int64")]]),r.union("LiquidityPoolEntryBody",{switchOn:r.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:r.lookup("LiquidityPoolEntryConstantProduct")}}),r.struct("LiquidityPoolEntry",[["liquidityPoolId",r.lookup("PoolId")],["body",r.lookup("LiquidityPoolEntryBody")]]),r.union("LedgerEntryExtensionV1Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("LedgerEntryExtensionV1",[["sponsoringId",r.lookup("SponsorshipDescriptor")],["ext",r.lookup("LedgerEntryExtensionV1Ext")]]),r.union("LedgerEntryData",{switchOn:r.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"]],arms:{account:r.lookup("AccountEntry"),trustLine:r.lookup("TrustLineEntry"),offer:r.lookup("OfferEntry"),data:r.lookup("DataEntry"),claimableBalance:r.lookup("ClaimableBalanceEntry"),liquidityPool:r.lookup("LiquidityPoolEntry")}}),r.union("LedgerEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"v1"]],arms:{v1:r.lookup("LedgerEntryExtensionV1")}}),r.struct("LedgerEntry",[["lastModifiedLedgerSeq",r.lookup("Uint32")],["data",r.lookup("LedgerEntryData")],["ext",r.lookup("LedgerEntryExt")]]),r.struct("LedgerKeyAccount",[["accountId",r.lookup("AccountId")]]),r.struct("LedgerKeyTrustLine",[["accountId",r.lookup("AccountId")],["asset",r.lookup("TrustLineAsset")]]),r.struct("LedgerKeyOffer",[["sellerId",r.lookup("AccountId")],["offerId",r.lookup("Int64")]]),r.struct("LedgerKeyData",[["accountId",r.lookup("AccountId")],["dataName",r.lookup("String64")]]),r.struct("LedgerKeyClaimableBalance",[["balanceId",r.lookup("ClaimableBalanceId")]]),r.struct("LedgerKeyLiquidityPool",[["liquidityPoolId",r.lookup("PoolId")]]),r.union("LedgerKey",{switchOn:r.lookup("LedgerEntryType"),switchName:"type",switches:[["account","account"],["trustline","trustLine"],["offer","offer"],["data","data"],["claimableBalance","claimableBalance"],["liquidityPool","liquidityPool"]],arms:{account:r.lookup("LedgerKeyAccount"),trustLine:r.lookup("LedgerKeyTrustLine"),offer:r.lookup("LedgerKeyOffer"),data:r.lookup("LedgerKeyData"),claimableBalance:r.lookup("LedgerKeyClaimableBalance"),liquidityPool:r.lookup("LedgerKeyLiquidityPool")}}),r.enum("EnvelopeType",{envelopeTypeTxV0:0,envelopeTypeScp:1,envelopeTypeTx:2,envelopeTypeAuth:3,envelopeTypeScpvalue:4,envelopeTypeTxFeeBump:5,envelopeTypeOpId:6,envelopeTypePoolRevokeOpId:7}),r.typedef("UpgradeType",r.varOpaque(128)),r.enum("StellarValueType",{stellarValueBasic:0,stellarValueSigned:1}),r.struct("LedgerCloseValueSignature",[["nodeId",r.lookup("NodeId")],["signature",r.lookup("Signature")]]),r.union("StellarValueExt",{switchOn:r.lookup("StellarValueType"),switchName:"v",switches:[["stellarValueBasic",r.void()],["stellarValueSigned","lcValueSignature"]],arms:{lcValueSignature:r.lookup("LedgerCloseValueSignature")}}),r.struct("StellarValue",[["txSetHash",r.lookup("Hash")],["closeTime",r.lookup("TimePoint")],["upgrades",r.varArray(r.lookup("UpgradeType"),6)],["ext",r.lookup("StellarValueExt")]]),r.const("MASK_LEDGER_HEADER_FLAGS",7),r.enum("LedgerHeaderFlags",{disableLiquidityPoolTradingFlag:1,disableLiquidityPoolDepositFlag:2,disableLiquidityPoolWithdrawalFlag:4}),r.union("LedgerHeaderExtensionV1Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("LedgerHeaderExtensionV1",[["flags",r.lookup("Uint32")],["ext",r.lookup("LedgerHeaderExtensionV1Ext")]]),r.union("LedgerHeaderExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"v1"]],arms:{v1:r.lookup("LedgerHeaderExtensionV1")}}),r.struct("LedgerHeader",[["ledgerVersion",r.lookup("Uint32")],["previousLedgerHash",r.lookup("Hash")],["scpValue",r.lookup("StellarValue")],["txSetResultHash",r.lookup("Hash")],["bucketListHash",r.lookup("Hash")],["ledgerSeq",r.lookup("Uint32")],["totalCoins",r.lookup("Int64")],["feePool",r.lookup("Int64")],["inflationSeq",r.lookup("Uint32")],["idPool",r.lookup("Uint64")],["baseFee",r.lookup("Uint32")],["baseReserve",r.lookup("Uint32")],["maxTxSetSize",r.lookup("Uint32")],["skipList",r.array(r.lookup("Hash"),4)],["ext",r.lookup("LedgerHeaderExt")]]),r.enum("LedgerUpgradeType",{ledgerUpgradeVersion:1,ledgerUpgradeBaseFee:2,ledgerUpgradeMaxTxSetSize:3,ledgerUpgradeBaseReserve:4,ledgerUpgradeFlags:5}),r.union("LedgerUpgrade",{switchOn:r.lookup("LedgerUpgradeType"),switchName:"type",switches:[["ledgerUpgradeVersion","newLedgerVersion"],["ledgerUpgradeBaseFee","newBaseFee"],["ledgerUpgradeMaxTxSetSize","newMaxTxSetSize"],["ledgerUpgradeBaseReserve","newBaseReserve"],["ledgerUpgradeFlags","newFlags"]],arms:{newLedgerVersion:r.lookup("Uint32"),newBaseFee:r.lookup("Uint32"),newMaxTxSetSize:r.lookup("Uint32"),newBaseReserve:r.lookup("Uint32"),newFlags:r.lookup("Uint32")}}),r.enum("BucketEntryType",{metaentry:-1,liveentry:0,deadentry:1,initentry:2}),r.union("BucketMetadataExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("BucketMetadata",[["ledgerVersion",r.lookup("Uint32")],["ext",r.lookup("BucketMetadataExt")]]),r.union("BucketEntry",{switchOn:r.lookup("BucketEntryType"),switchName:"type",switches:[["liveentry","liveEntry"],["initentry","liveEntry"],["deadentry","deadEntry"],["metaentry","metaEntry"]],arms:{liveEntry:r.lookup("LedgerEntry"),deadEntry:r.lookup("LedgerKey"),metaEntry:r.lookup("BucketMetadata")}}),r.enum("TxSetComponentType",{txsetCompTxsMaybeDiscountedFee:0}),r.struct("TxSetComponentTxsMaybeDiscountedFee",[["baseFee",r.option(r.lookup("Int64"))],["txes",r.varArray(r.lookup("TransactionEnvelope"),2147483647)]]),r.union("TxSetComponent",{switchOn:r.lookup("TxSetComponentType"),switchName:"type",switches:[["txsetCompTxsMaybeDiscountedFee","txsMaybeDiscountedFee"]],arms:{txsMaybeDiscountedFee:r.lookup("TxSetComponentTxsMaybeDiscountedFee")}}),r.union("TransactionPhase",{switchOn:r.int(),switchName:"v",switches:[[0,"v0Components"]],arms:{v0Components:r.varArray(r.lookup("TxSetComponent"),2147483647)}}),r.struct("TransactionSet",[["previousLedgerHash",r.lookup("Hash")],["txes",r.varArray(r.lookup("TransactionEnvelope"),2147483647)]]),r.struct("TransactionSetV1",[["previousLedgerHash",r.lookup("Hash")],["phases",r.varArray(r.lookup("TransactionPhase"),2147483647)]]),r.union("GeneralizedTransactionSet",{switchOn:r.int(),switchName:"v",switches:[[1,"v1TxSet"]],arms:{v1TxSet:r.lookup("TransactionSetV1")}}),r.struct("TransactionResultPair",[["transactionHash",r.lookup("Hash")],["result",r.lookup("TransactionResult")]]),r.struct("TransactionResultSet",[["results",r.varArray(r.lookup("TransactionResultPair"),2147483647)]]),r.union("TransactionHistoryEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()],[1,"generalizedTxSet"]],arms:{generalizedTxSet:r.lookup("GeneralizedTransactionSet")}}),r.struct("TransactionHistoryEntry",[["ledgerSeq",r.lookup("Uint32")],["txSet",r.lookup("TransactionSet")],["ext",r.lookup("TransactionHistoryEntryExt")]]),r.union("TransactionHistoryResultEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("TransactionHistoryResultEntry",[["ledgerSeq",r.lookup("Uint32")],["txResultSet",r.lookup("TransactionResultSet")],["ext",r.lookup("TransactionHistoryResultEntryExt")]]),r.union("LedgerHeaderHistoryEntryExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("LedgerHeaderHistoryEntry",[["hash",r.lookup("Hash")],["header",r.lookup("LedgerHeader")],["ext",r.lookup("LedgerHeaderHistoryEntryExt")]]),r.struct("LedgerScpMessages",[["ledgerSeq",r.lookup("Uint32")],["messages",r.varArray(r.lookup("ScpEnvelope"),2147483647)]]),r.struct("ScpHistoryEntryV0",[["quorumSets",r.varArray(r.lookup("ScpQuorumSet"),2147483647)],["ledgerMessages",r.lookup("LedgerScpMessages")]]),r.union("ScpHistoryEntry",{switchOn:r.int(),switchName:"v",switches:[[0,"v0"]],arms:{v0:r.lookup("ScpHistoryEntryV0")}}),r.enum("LedgerEntryChangeType",{ledgerEntryCreated:0,ledgerEntryUpdated:1,ledgerEntryRemoved:2,ledgerEntryState:3}),r.union("LedgerEntryChange",{switchOn:r.lookup("LedgerEntryChangeType"),switchName:"type",switches:[["ledgerEntryCreated","created"],["ledgerEntryUpdated","updated"],["ledgerEntryRemoved","removed"],["ledgerEntryState","state"]],arms:{created:r.lookup("LedgerEntry"),updated:r.lookup("LedgerEntry"),removed:r.lookup("LedgerKey"),state:r.lookup("LedgerEntry")}}),r.typedef("LedgerEntryChanges",r.varArray(r.lookup("LedgerEntryChange"),2147483647)),r.struct("OperationMeta",[["changes",r.lookup("LedgerEntryChanges")]]),r.struct("TransactionMetaV1",[["txChanges",r.lookup("LedgerEntryChanges")],["operations",r.varArray(r.lookup("OperationMeta"),2147483647)]]),r.struct("TransactionMetaV2",[["txChangesBefore",r.lookup("LedgerEntryChanges")],["operations",r.varArray(r.lookup("OperationMeta"),2147483647)],["txChangesAfter",r.lookup("LedgerEntryChanges")]]),r.union("TransactionMeta",{switchOn:r.int(),switchName:"v",switches:[[0,"operations"],[1,"v1"],[2,"v2"]],arms:{operations:r.varArray(r.lookup("OperationMeta"),2147483647),v1:r.lookup("TransactionMetaV1"),v2:r.lookup("TransactionMetaV2")}}),r.struct("TransactionResultMeta",[["result",r.lookup("TransactionResultPair")],["feeProcessing",r.lookup("LedgerEntryChanges")],["txApplyProcessing",r.lookup("TransactionMeta")]]),r.struct("UpgradeEntryMeta",[["upgrade",r.lookup("LedgerUpgrade")],["changes",r.lookup("LedgerEntryChanges")]]),r.struct("LedgerCloseMetaV0",[["ledgerHeader",r.lookup("LedgerHeaderHistoryEntry")],["txSet",r.lookup("TransactionSet")],["txProcessing",r.varArray(r.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",r.varArray(r.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",r.varArray(r.lookup("ScpHistoryEntry"),2147483647)]]),r.struct("LedgerCloseMetaV1",[["ledgerHeader",r.lookup("LedgerHeaderHistoryEntry")],["txSet",r.lookup("GeneralizedTransactionSet")],["txProcessing",r.varArray(r.lookup("TransactionResultMeta"),2147483647)],["upgradesProcessing",r.varArray(r.lookup("UpgradeEntryMeta"),2147483647)],["scpInfo",r.varArray(r.lookup("ScpHistoryEntry"),2147483647)]]),r.union("LedgerCloseMeta",{switchOn:r.int(),switchName:"v",switches:[[0,"v0"],[1,"v1"]],arms:{v0:r.lookup("LedgerCloseMetaV0"),v1:r.lookup("LedgerCloseMetaV1")}}),r.enum("ErrorCode",{errMisc:0,errData:1,errConf:2,errAuth:3,errLoad:4}),r.struct("Error",[["code",r.lookup("ErrorCode")],["msg",r.string(100)]]),r.struct("SendMore",[["numMessages",r.lookup("Uint32")]]),r.struct("AuthCert",[["pubkey",r.lookup("Curve25519Public")],["expiration",r.lookup("Uint64")],["sig",r.lookup("Signature")]]),r.struct("Hello",[["ledgerVersion",r.lookup("Uint32")],["overlayVersion",r.lookup("Uint32")],["overlayMinVersion",r.lookup("Uint32")],["networkId",r.lookup("Hash")],["versionStr",r.string(100)],["listeningPort",r.int()],["peerId",r.lookup("NodeId")],["cert",r.lookup("AuthCert")],["nonce",r.lookup("Uint256")]]),r.struct("Auth",[["unused",r.int()]]),r.enum("IpAddrType",{iPv4:0,iPv6:1}),r.union("PeerAddressIp",{switchOn:r.lookup("IpAddrType"),switchName:"type",switches:[["iPv4","ipv4"],["iPv6","ipv6"]],arms:{ipv4:r.opaque(4),ipv6:r.opaque(16)}}),r.struct("PeerAddress",[["ip",r.lookup("PeerAddressIp")],["port",r.lookup("Uint32")],["numFailures",r.lookup("Uint32")]]),r.enum("MessageType",{errorMsg:0,auth:2,dontHave:3,getPeers:4,peers:5,getTxSet:6,txSet:7,generalizedTxSet:17,transaction:8,getScpQuorumset:9,scpQuorumset:10,scpMessage:11,getScpState:12,hello:13,surveyRequest:14,surveyResponse:15,sendMore:16}),r.struct("DontHave",[["type",r.lookup("MessageType")],["reqHash",r.lookup("Uint256")]]),r.enum("SurveyMessageCommandType",{surveyTopology:0}),r.struct("SurveyRequestMessage",[["surveyorPeerId",r.lookup("NodeId")],["surveyedPeerId",r.lookup("NodeId")],["ledgerNum",r.lookup("Uint32")],["encryptionKey",r.lookup("Curve25519Public")],["commandType",r.lookup("SurveyMessageCommandType")]]),r.struct("SignedSurveyRequestMessage",[["requestSignature",r.lookup("Signature")],["request",r.lookup("SurveyRequestMessage")]]),r.typedef("EncryptedBody",r.varOpaque(64e3)),r.struct("SurveyResponseMessage",[["surveyorPeerId",r.lookup("NodeId")],["surveyedPeerId",r.lookup("NodeId")],["ledgerNum",r.lookup("Uint32")],["commandType",r.lookup("SurveyMessageCommandType")],["encryptedBody",r.lookup("EncryptedBody")]]),r.struct("SignedSurveyResponseMessage",[["responseSignature",r.lookup("Signature")],["response",r.lookup("SurveyResponseMessage")]]),r.struct("PeerStats",[["id",r.lookup("NodeId")],["versionStr",r.string(100)],["messagesRead",r.lookup("Uint64")],["messagesWritten",r.lookup("Uint64")],["bytesRead",r.lookup("Uint64")],["bytesWritten",r.lookup("Uint64")],["secondsConnected",r.lookup("Uint64")],["uniqueFloodBytesRecv",r.lookup("Uint64")],["duplicateFloodBytesRecv",r.lookup("Uint64")],["uniqueFetchBytesRecv",r.lookup("Uint64")],["duplicateFetchBytesRecv",r.lookup("Uint64")],["uniqueFloodMessageRecv",r.lookup("Uint64")],["duplicateFloodMessageRecv",r.lookup("Uint64")],["uniqueFetchMessageRecv",r.lookup("Uint64")],["duplicateFetchMessageRecv",r.lookup("Uint64")]]),r.typedef("PeerStatList",r.varArray(r.lookup("PeerStats"),25)),r.struct("TopologyResponseBody",[["inboundPeers",r.lookup("PeerStatList")],["outboundPeers",r.lookup("PeerStatList")],["totalInboundPeerCount",r.lookup("Uint32")],["totalOutboundPeerCount",r.lookup("Uint32")]]),r.union("SurveyResponseBody",{switchOn:r.lookup("SurveyMessageCommandType"),switchName:"type",switches:[["surveyTopology","topologyResponseBody"]],arms:{topologyResponseBody:r.lookup("TopologyResponseBody")}}),r.union("StellarMessage",{switchOn:r.lookup("MessageType"),switchName:"type",switches:[["errorMsg","error"],["hello","hello"],["auth","auth"],["dontHave","dontHave"],["getPeers",r.void()],["peers","peers"],["getTxSet","txSetHash"],["txSet","txSet"],["generalizedTxSet","generalizedTxSet"],["transaction","transaction"],["surveyRequest","signedSurveyRequestMessage"],["surveyResponse","signedSurveyResponseMessage"],["getScpQuorumset","qSetHash"],["scpQuorumset","qSet"],["scpMessage","envelope"],["getScpState","getScpLedgerSeq"],["sendMore","sendMoreMessage"]],arms:{error:r.lookup("Error"),hello:r.lookup("Hello"),auth:r.lookup("Auth"),dontHave:r.lookup("DontHave"),peers:r.varArray(r.lookup("PeerAddress"),100),txSetHash:r.lookup("Uint256"),txSet:r.lookup("TransactionSet"),generalizedTxSet:r.lookup("GeneralizedTransactionSet"),transaction:r.lookup("TransactionEnvelope"),signedSurveyRequestMessage:r.lookup("SignedSurveyRequestMessage"),signedSurveyResponseMessage:r.lookup("SignedSurveyResponseMessage"),qSetHash:r.lookup("Uint256"),qSet:r.lookup("ScpQuorumSet"),envelope:r.lookup("ScpEnvelope"),getScpLedgerSeq:r.lookup("Uint32"),sendMoreMessage:r.lookup("SendMore")}}),r.struct("AuthenticatedMessageV0",[["sequence",r.lookup("Uint64")],["message",r.lookup("StellarMessage")],["mac",r.lookup("HmacSha256Mac")]]),r.union("AuthenticatedMessage",{switchOn:r.lookup("Uint32"),switchName:"v",switches:[[0,"v0"]],arms:{v0:r.lookup("AuthenticatedMessageV0")}}),r.union("LiquidityPoolParameters",{switchOn:r.lookup("LiquidityPoolType"),switchName:"type",switches:[["liquidityPoolConstantProduct","constantProduct"]],arms:{constantProduct:r.lookup("LiquidityPoolConstantProductParameters")}}),r.struct("MuxedAccountMed25519",[["id",r.lookup("Uint64")],["ed25519",r.lookup("Uint256")]]),r.union("MuxedAccount",{switchOn:r.lookup("CryptoKeyType"),switchName:"type",switches:[["keyTypeEd25519","ed25519"],["keyTypeMuxedEd25519","med25519"]],arms:{ed25519:r.lookup("Uint256"),med25519:r.lookup("MuxedAccountMed25519")}}),r.struct("DecoratedSignature",[["hint",r.lookup("SignatureHint")],["signature",r.lookup("Signature")]]),r.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}),r.struct("CreateAccountOp",[["destination",r.lookup("AccountId")],["startingBalance",r.lookup("Int64")]]),r.struct("PaymentOp",[["destination",r.lookup("MuxedAccount")],["asset",r.lookup("Asset")],["amount",r.lookup("Int64")]]),r.struct("PathPaymentStrictReceiveOp",[["sendAsset",r.lookup("Asset")],["sendMax",r.lookup("Int64")],["destination",r.lookup("MuxedAccount")],["destAsset",r.lookup("Asset")],["destAmount",r.lookup("Int64")],["path",r.varArray(r.lookup("Asset"),5)]]),r.struct("PathPaymentStrictSendOp",[["sendAsset",r.lookup("Asset")],["sendAmount",r.lookup("Int64")],["destination",r.lookup("MuxedAccount")],["destAsset",r.lookup("Asset")],["destMin",r.lookup("Int64")],["path",r.varArray(r.lookup("Asset"),5)]]),r.struct("ManageSellOfferOp",[["selling",r.lookup("Asset")],["buying",r.lookup("Asset")],["amount",r.lookup("Int64")],["price",r.lookup("Price")],["offerId",r.lookup("Int64")]]),r.struct("ManageBuyOfferOp",[["selling",r.lookup("Asset")],["buying",r.lookup("Asset")],["buyAmount",r.lookup("Int64")],["price",r.lookup("Price")],["offerId",r.lookup("Int64")]]),r.struct("CreatePassiveSellOfferOp",[["selling",r.lookup("Asset")],["buying",r.lookup("Asset")],["amount",r.lookup("Int64")],["price",r.lookup("Price")]]),r.struct("SetOptionsOp",[["inflationDest",r.option(r.lookup("AccountId"))],["clearFlags",r.option(r.lookup("Uint32"))],["setFlags",r.option(r.lookup("Uint32"))],["masterWeight",r.option(r.lookup("Uint32"))],["lowThreshold",r.option(r.lookup("Uint32"))],["medThreshold",r.option(r.lookup("Uint32"))],["highThreshold",r.option(r.lookup("Uint32"))],["homeDomain",r.option(r.lookup("String32"))],["signer",r.option(r.lookup("Signer"))]]),r.union("ChangeTrustAsset",{switchOn:r.lookup("AssetType"),switchName:"type",switches:[["assetTypeNative",r.void()],["assetTypeCreditAlphanum4","alphaNum4"],["assetTypeCreditAlphanum12","alphaNum12"],["assetTypePoolShare","liquidityPool"]],arms:{alphaNum4:r.lookup("AlphaNum4"),alphaNum12:r.lookup("AlphaNum12"),liquidityPool:r.lookup("LiquidityPoolParameters")}}),r.struct("ChangeTrustOp",[["line",r.lookup("ChangeTrustAsset")],["limit",r.lookup("Int64")]]),r.struct("AllowTrustOp",[["trustor",r.lookup("AccountId")],["asset",r.lookup("AssetCode")],["authorize",r.lookup("Uint32")]]),r.struct("ManageDataOp",[["dataName",r.lookup("String64")],["dataValue",r.option(r.lookup("DataValue"))]]),r.struct("BumpSequenceOp",[["bumpTo",r.lookup("SequenceNumber")]]),r.struct("CreateClaimableBalanceOp",[["asset",r.lookup("Asset")],["amount",r.lookup("Int64")],["claimants",r.varArray(r.lookup("Claimant"),10)]]),r.struct("ClaimClaimableBalanceOp",[["balanceId",r.lookup("ClaimableBalanceId")]]),r.struct("BeginSponsoringFutureReservesOp",[["sponsoredId",r.lookup("AccountId")]]),r.enum("RevokeSponsorshipType",{revokeSponsorshipLedgerEntry:0,revokeSponsorshipSigner:1}),r.struct("RevokeSponsorshipOpSigner",[["accountId",r.lookup("AccountId")],["signerKey",r.lookup("SignerKey")]]),r.union("RevokeSponsorshipOp",{switchOn:r.lookup("RevokeSponsorshipType"),switchName:"type",switches:[["revokeSponsorshipLedgerEntry","ledgerKey"],["revokeSponsorshipSigner","signer"]],arms:{ledgerKey:r.lookup("LedgerKey"),signer:r.lookup("RevokeSponsorshipOpSigner")}}),r.struct("ClawbackOp",[["asset",r.lookup("Asset")],["from",r.lookup("MuxedAccount")],["amount",r.lookup("Int64")]]),r.struct("ClawbackClaimableBalanceOp",[["balanceId",r.lookup("ClaimableBalanceId")]]),r.struct("SetTrustLineFlagsOp",[["trustor",r.lookup("AccountId")],["asset",r.lookup("Asset")],["clearFlags",r.lookup("Uint32")],["setFlags",r.lookup("Uint32")]]),r.const("LIQUIDITY_POOL_FEE_V18",30),r.struct("LiquidityPoolDepositOp",[["liquidityPoolId",r.lookup("PoolId")],["maxAmountA",r.lookup("Int64")],["maxAmountB",r.lookup("Int64")],["minPrice",r.lookup("Price")],["maxPrice",r.lookup("Price")]]),r.struct("LiquidityPoolWithdrawOp",[["liquidityPoolId",r.lookup("PoolId")],["amount",r.lookup("Int64")],["minAmountA",r.lookup("Int64")],["minAmountB",r.lookup("Int64")]]),r.union("OperationBody",{switchOn:r.lookup("OperationType"),switchName:"type",switches:[["createAccount","createAccountOp"],["payment","paymentOp"],["pathPaymentStrictReceive","pathPaymentStrictReceiveOp"],["manageSellOffer","manageSellOfferOp"],["createPassiveSellOffer","createPassiveSellOfferOp"],["setOptions","setOptionsOp"],["changeTrust","changeTrustOp"],["allowTrust","allowTrustOp"],["accountMerge","destination"],["inflation",r.void()],["manageData","manageDataOp"],["bumpSequence","bumpSequenceOp"],["manageBuyOffer","manageBuyOfferOp"],["pathPaymentStrictSend","pathPaymentStrictSendOp"],["createClaimableBalance","createClaimableBalanceOp"],["claimClaimableBalance","claimClaimableBalanceOp"],["beginSponsoringFutureReserves","beginSponsoringFutureReservesOp"],["endSponsoringFutureReserves",r.void()],["revokeSponsorship","revokeSponsorshipOp"],["clawback","clawbackOp"],["clawbackClaimableBalance","clawbackClaimableBalanceOp"],["setTrustLineFlags","setTrustLineFlagsOp"],["liquidityPoolDeposit","liquidityPoolDepositOp"],["liquidityPoolWithdraw","liquidityPoolWithdrawOp"]],arms:{createAccountOp:r.lookup("CreateAccountOp"),paymentOp:r.lookup("PaymentOp"),pathPaymentStrictReceiveOp:r.lookup("PathPaymentStrictReceiveOp"),manageSellOfferOp:r.lookup("ManageSellOfferOp"),createPassiveSellOfferOp:r.lookup("CreatePassiveSellOfferOp"),setOptionsOp:r.lookup("SetOptionsOp"),changeTrustOp:r.lookup("ChangeTrustOp"),allowTrustOp:r.lookup("AllowTrustOp"),destination:r.lookup("MuxedAccount"),manageDataOp:r.lookup("ManageDataOp"),bumpSequenceOp:r.lookup("BumpSequenceOp"),manageBuyOfferOp:r.lookup("ManageBuyOfferOp"),pathPaymentStrictSendOp:r.lookup("PathPaymentStrictSendOp"),createClaimableBalanceOp:r.lookup("CreateClaimableBalanceOp"),claimClaimableBalanceOp:r.lookup("ClaimClaimableBalanceOp"),beginSponsoringFutureReservesOp:r.lookup("BeginSponsoringFutureReservesOp"),revokeSponsorshipOp:r.lookup("RevokeSponsorshipOp"),clawbackOp:r.lookup("ClawbackOp"),clawbackClaimableBalanceOp:r.lookup("ClawbackClaimableBalanceOp"),setTrustLineFlagsOp:r.lookup("SetTrustLineFlagsOp"),liquidityPoolDepositOp:r.lookup("LiquidityPoolDepositOp"),liquidityPoolWithdrawOp:r.lookup("LiquidityPoolWithdrawOp")}}),r.struct("Operation",[["sourceAccount",r.option(r.lookup("MuxedAccount"))],["body",r.lookup("OperationBody")]]),r.struct("HashIdPreimageOperationId",[["sourceAccount",r.lookup("AccountId")],["seqNum",r.lookup("SequenceNumber")],["opNum",r.lookup("Uint32")]]),r.struct("HashIdPreimageRevokeId",[["sourceAccount",r.lookup("AccountId")],["seqNum",r.lookup("SequenceNumber")],["opNum",r.lookup("Uint32")],["liquidityPoolId",r.lookup("PoolId")],["asset",r.lookup("Asset")]]),r.union("HashIdPreimage",{switchOn:r.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeOpId","operationId"],["envelopeTypePoolRevokeOpId","revokeId"]],arms:{operationId:r.lookup("HashIdPreimageOperationId"),revokeId:r.lookup("HashIdPreimageRevokeId")}}),r.enum("MemoType",{memoNone:0,memoText:1,memoId:2,memoHash:3,memoReturn:4}),r.union("Memo",{switchOn:r.lookup("MemoType"),switchName:"type",switches:[["memoNone",r.void()],["memoText","text"],["memoId","id"],["memoHash","hash"],["memoReturn","retHash"]],arms:{text:r.string(28),id:r.lookup("Uint64"),hash:r.lookup("Hash"),retHash:r.lookup("Hash")}}),r.struct("TimeBounds",[["minTime",r.lookup("TimePoint")],["maxTime",r.lookup("TimePoint")]]),r.struct("LedgerBounds",[["minLedger",r.lookup("Uint32")],["maxLedger",r.lookup("Uint32")]]),r.struct("PreconditionsV2",[["timeBounds",r.option(r.lookup("TimeBounds"))],["ledgerBounds",r.option(r.lookup("LedgerBounds"))],["minSeqNum",r.option(r.lookup("SequenceNumber"))],["minSeqAge",r.lookup("Duration")],["minSeqLedgerGap",r.lookup("Uint32")],["extraSigners",r.varArray(r.lookup("SignerKey"),2)]]),r.enum("PreconditionType",{precondNone:0,precondTime:1,precondV2:2}),r.union("Preconditions",{switchOn:r.lookup("PreconditionType"),switchName:"type",switches:[["precondNone",r.void()],["precondTime","timeBounds"],["precondV2","v2"]],arms:{timeBounds:r.lookup("TimeBounds"),v2:r.lookup("PreconditionsV2")}}),r.const("MAX_OPS_PER_TX",100),r.union("TransactionV0Ext",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("TransactionV0",[["sourceAccountEd25519",r.lookup("Uint256")],["fee",r.lookup("Uint32")],["seqNum",r.lookup("SequenceNumber")],["timeBounds",r.option(r.lookup("TimeBounds"))],["memo",r.lookup("Memo")],["operations",r.varArray(r.lookup("Operation"),r.lookup("MAX_OPS_PER_TX"))],["ext",r.lookup("TransactionV0Ext")]]),r.struct("TransactionV0Envelope",[["tx",r.lookup("TransactionV0")],["signatures",r.varArray(r.lookup("DecoratedSignature"),20)]]),r.union("TransactionExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("Transaction",[["sourceAccount",r.lookup("MuxedAccount")],["fee",r.lookup("Uint32")],["seqNum",r.lookup("SequenceNumber")],["cond",r.lookup("Preconditions")],["memo",r.lookup("Memo")],["operations",r.varArray(r.lookup("Operation"),r.lookup("MAX_OPS_PER_TX"))],["ext",r.lookup("TransactionExt")]]),r.struct("TransactionV1Envelope",[["tx",r.lookup("Transaction")],["signatures",r.varArray(r.lookup("DecoratedSignature"),20)]]),r.union("FeeBumpTransactionInnerTx",{switchOn:r.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","v1"]],arms:{v1:r.lookup("TransactionV1Envelope")}}),r.union("FeeBumpTransactionExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("FeeBumpTransaction",[["feeSource",r.lookup("MuxedAccount")],["fee",r.lookup("Int64")],["innerTx",r.lookup("FeeBumpTransactionInnerTx")],["ext",r.lookup("FeeBumpTransactionExt")]]),r.struct("FeeBumpTransactionEnvelope",[["tx",r.lookup("FeeBumpTransaction")],["signatures",r.varArray(r.lookup("DecoratedSignature"),20)]]),r.union("TransactionEnvelope",{switchOn:r.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTxV0","v0"],["envelopeTypeTx","v1"],["envelopeTypeTxFeeBump","feeBump"]],arms:{v0:r.lookup("TransactionV0Envelope"),v1:r.lookup("TransactionV1Envelope"),feeBump:r.lookup("FeeBumpTransactionEnvelope")}}),r.union("TransactionSignaturePayloadTaggedTransaction",{switchOn:r.lookup("EnvelopeType"),switchName:"type",switches:[["envelopeTypeTx","tx"],["envelopeTypeTxFeeBump","feeBump"]],arms:{tx:r.lookup("Transaction"),feeBump:r.lookup("FeeBumpTransaction")}}),r.struct("TransactionSignaturePayload",[["networkId",r.lookup("Hash")],["taggedTransaction",r.lookup("TransactionSignaturePayloadTaggedTransaction")]]),r.enum("ClaimAtomType",{claimAtomTypeV0:0,claimAtomTypeOrderBook:1,claimAtomTypeLiquidityPool:2}),r.struct("ClaimOfferAtomV0",[["sellerEd25519",r.lookup("Uint256")],["offerId",r.lookup("Int64")],["assetSold",r.lookup("Asset")],["amountSold",r.lookup("Int64")],["assetBought",r.lookup("Asset")],["amountBought",r.lookup("Int64")]]),r.struct("ClaimOfferAtom",[["sellerId",r.lookup("AccountId")],["offerId",r.lookup("Int64")],["assetSold",r.lookup("Asset")],["amountSold",r.lookup("Int64")],["assetBought",r.lookup("Asset")],["amountBought",r.lookup("Int64")]]),r.struct("ClaimLiquidityAtom",[["liquidityPoolId",r.lookup("PoolId")],["assetSold",r.lookup("Asset")],["amountSold",r.lookup("Int64")],["assetBought",r.lookup("Asset")],["amountBought",r.lookup("Int64")]]),r.union("ClaimAtom",{switchOn:r.lookup("ClaimAtomType"),switchName:"type",switches:[["claimAtomTypeV0","v0"],["claimAtomTypeOrderBook","orderBook"],["claimAtomTypeLiquidityPool","liquidityPool"]],arms:{v0:r.lookup("ClaimOfferAtomV0"),orderBook:r.lookup("ClaimOfferAtom"),liquidityPool:r.lookup("ClaimLiquidityAtom")}}),r.enum("CreateAccountResultCode",{createAccountSuccess:0,createAccountMalformed:-1,createAccountUnderfunded:-2,createAccountLowReserve:-3,createAccountAlreadyExist:-4}),r.union("CreateAccountResult",{switchOn:r.lookup("CreateAccountResultCode"),switchName:"code",switches:[["createAccountSuccess",r.void()],["createAccountMalformed",r.void()],["createAccountUnderfunded",r.void()],["createAccountLowReserve",r.void()],["createAccountAlreadyExist",r.void()]],arms:{}}),r.enum("PaymentResultCode",{paymentSuccess:0,paymentMalformed:-1,paymentUnderfunded:-2,paymentSrcNoTrust:-3,paymentSrcNotAuthorized:-4,paymentNoDestination:-5,paymentNoTrust:-6,paymentNotAuthorized:-7,paymentLineFull:-8,paymentNoIssuer:-9}),r.union("PaymentResult",{switchOn:r.lookup("PaymentResultCode"),switchName:"code",switches:[["paymentSuccess",r.void()],["paymentMalformed",r.void()],["paymentUnderfunded",r.void()],["paymentSrcNoTrust",r.void()],["paymentSrcNotAuthorized",r.void()],["paymentNoDestination",r.void()],["paymentNoTrust",r.void()],["paymentNotAuthorized",r.void()],["paymentLineFull",r.void()],["paymentNoIssuer",r.void()]],arms:{}}),r.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}),r.struct("SimplePaymentResult",[["destination",r.lookup("AccountId")],["asset",r.lookup("Asset")],["amount",r.lookup("Int64")]]),r.struct("PathPaymentStrictReceiveResultSuccess",[["offers",r.varArray(r.lookup("ClaimAtom"),2147483647)],["last",r.lookup("SimplePaymentResult")]]),r.union("PathPaymentStrictReceiveResult",{switchOn:r.lookup("PathPaymentStrictReceiveResultCode"),switchName:"code",switches:[["pathPaymentStrictReceiveSuccess","success"],["pathPaymentStrictReceiveMalformed",r.void()],["pathPaymentStrictReceiveUnderfunded",r.void()],["pathPaymentStrictReceiveSrcNoTrust",r.void()],["pathPaymentStrictReceiveSrcNotAuthorized",r.void()],["pathPaymentStrictReceiveNoDestination",r.void()],["pathPaymentStrictReceiveNoTrust",r.void()],["pathPaymentStrictReceiveNotAuthorized",r.void()],["pathPaymentStrictReceiveLineFull",r.void()],["pathPaymentStrictReceiveNoIssuer","noIssuer"],["pathPaymentStrictReceiveTooFewOffers",r.void()],["pathPaymentStrictReceiveOfferCrossSelf",r.void()],["pathPaymentStrictReceiveOverSendmax",r.void()]],arms:{success:r.lookup("PathPaymentStrictReceiveResultSuccess"),noIssuer:r.lookup("Asset")}}),r.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}),r.struct("PathPaymentStrictSendResultSuccess",[["offers",r.varArray(r.lookup("ClaimAtom"),2147483647)],["last",r.lookup("SimplePaymentResult")]]),r.union("PathPaymentStrictSendResult",{switchOn:r.lookup("PathPaymentStrictSendResultCode"),switchName:"code",switches:[["pathPaymentStrictSendSuccess","success"],["pathPaymentStrictSendMalformed",r.void()],["pathPaymentStrictSendUnderfunded",r.void()],["pathPaymentStrictSendSrcNoTrust",r.void()],["pathPaymentStrictSendSrcNotAuthorized",r.void()],["pathPaymentStrictSendNoDestination",r.void()],["pathPaymentStrictSendNoTrust",r.void()],["pathPaymentStrictSendNotAuthorized",r.void()],["pathPaymentStrictSendLineFull",r.void()],["pathPaymentStrictSendNoIssuer","noIssuer"],["pathPaymentStrictSendTooFewOffers",r.void()],["pathPaymentStrictSendOfferCrossSelf",r.void()],["pathPaymentStrictSendUnderDestmin",r.void()]],arms:{success:r.lookup("PathPaymentStrictSendResultSuccess"),noIssuer:r.lookup("Asset")}}),r.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}),r.enum("ManageOfferEffect",{manageOfferCreated:0,manageOfferUpdated:1,manageOfferDeleted:2}),r.union("ManageOfferSuccessResultOffer",{switchOn:r.lookup("ManageOfferEffect"),switchName:"effect",switches:[["manageOfferCreated","offer"],["manageOfferUpdated","offer"],["manageOfferDeleted",r.void()]],arms:{offer:r.lookup("OfferEntry")}}),r.struct("ManageOfferSuccessResult",[["offersClaimed",r.varArray(r.lookup("ClaimAtom"),2147483647)],["offer",r.lookup("ManageOfferSuccessResultOffer")]]),r.union("ManageSellOfferResult",{switchOn:r.lookup("ManageSellOfferResultCode"),switchName:"code",switches:[["manageSellOfferSuccess","success"],["manageSellOfferMalformed",r.void()],["manageSellOfferSellNoTrust",r.void()],["manageSellOfferBuyNoTrust",r.void()],["manageSellOfferSellNotAuthorized",r.void()],["manageSellOfferBuyNotAuthorized",r.void()],["manageSellOfferLineFull",r.void()],["manageSellOfferUnderfunded",r.void()],["manageSellOfferCrossSelf",r.void()],["manageSellOfferSellNoIssuer",r.void()],["manageSellOfferBuyNoIssuer",r.void()],["manageSellOfferNotFound",r.void()],["manageSellOfferLowReserve",r.void()]],arms:{success:r.lookup("ManageOfferSuccessResult")}}),r.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}),r.union("ManageBuyOfferResult",{switchOn:r.lookup("ManageBuyOfferResultCode"),switchName:"code",switches:[["manageBuyOfferSuccess","success"],["manageBuyOfferMalformed",r.void()],["manageBuyOfferSellNoTrust",r.void()],["manageBuyOfferBuyNoTrust",r.void()],["manageBuyOfferSellNotAuthorized",r.void()],["manageBuyOfferBuyNotAuthorized",r.void()],["manageBuyOfferLineFull",r.void()],["manageBuyOfferUnderfunded",r.void()],["manageBuyOfferCrossSelf",r.void()],["manageBuyOfferSellNoIssuer",r.void()],["manageBuyOfferBuyNoIssuer",r.void()],["manageBuyOfferNotFound",r.void()],["manageBuyOfferLowReserve",r.void()]],arms:{success:r.lookup("ManageOfferSuccessResult")}}),r.enum("SetOptionsResultCode",{setOptionsSuccess:0,setOptionsLowReserve:-1,setOptionsTooManySigners:-2,setOptionsBadFlags:-3,setOptionsInvalidInflation:-4,setOptionsCantChange:-5,setOptionsUnknownFlag:-6,setOptionsThresholdOutOfRange:-7,setOptionsBadSigner:-8,setOptionsInvalidHomeDomain:-9,setOptionsAuthRevocableRequired:-10}),r.union("SetOptionsResult",{switchOn:r.lookup("SetOptionsResultCode"),switchName:"code",switches:[["setOptionsSuccess",r.void()],["setOptionsLowReserve",r.void()],["setOptionsTooManySigners",r.void()],["setOptionsBadFlags",r.void()],["setOptionsInvalidInflation",r.void()],["setOptionsCantChange",r.void()],["setOptionsUnknownFlag",r.void()],["setOptionsThresholdOutOfRange",r.void()],["setOptionsBadSigner",r.void()],["setOptionsInvalidHomeDomain",r.void()],["setOptionsAuthRevocableRequired",r.void()]],arms:{}}),r.enum("ChangeTrustResultCode",{changeTrustSuccess:0,changeTrustMalformed:-1,changeTrustNoIssuer:-2,changeTrustInvalidLimit:-3,changeTrustLowReserve:-4,changeTrustSelfNotAllowed:-5,changeTrustTrustLineMissing:-6,changeTrustCannotDelete:-7,changeTrustNotAuthMaintainLiabilities:-8}),r.union("ChangeTrustResult",{switchOn:r.lookup("ChangeTrustResultCode"),switchName:"code",switches:[["changeTrustSuccess",r.void()],["changeTrustMalformed",r.void()],["changeTrustNoIssuer",r.void()],["changeTrustInvalidLimit",r.void()],["changeTrustLowReserve",r.void()],["changeTrustSelfNotAllowed",r.void()],["changeTrustTrustLineMissing",r.void()],["changeTrustCannotDelete",r.void()],["changeTrustNotAuthMaintainLiabilities",r.void()]],arms:{}}),r.enum("AllowTrustResultCode",{allowTrustSuccess:0,allowTrustMalformed:-1,allowTrustNoTrustLine:-2,allowTrustTrustNotRequired:-3,allowTrustCantRevoke:-4,allowTrustSelfNotAllowed:-5,allowTrustLowReserve:-6}),r.union("AllowTrustResult",{switchOn:r.lookup("AllowTrustResultCode"),switchName:"code",switches:[["allowTrustSuccess",r.void()],["allowTrustMalformed",r.void()],["allowTrustNoTrustLine",r.void()],["allowTrustTrustNotRequired",r.void()],["allowTrustCantRevoke",r.void()],["allowTrustSelfNotAllowed",r.void()],["allowTrustLowReserve",r.void()]],arms:{}}),r.enum("AccountMergeResultCode",{accountMergeSuccess:0,accountMergeMalformed:-1,accountMergeNoAccount:-2,accountMergeImmutableSet:-3,accountMergeHasSubEntries:-4,accountMergeSeqnumTooFar:-5,accountMergeDestFull:-6,accountMergeIsSponsor:-7}),r.union("AccountMergeResult",{switchOn:r.lookup("AccountMergeResultCode"),switchName:"code",switches:[["accountMergeSuccess","sourceAccountBalance"],["accountMergeMalformed",r.void()],["accountMergeNoAccount",r.void()],["accountMergeImmutableSet",r.void()],["accountMergeHasSubEntries",r.void()],["accountMergeSeqnumTooFar",r.void()],["accountMergeDestFull",r.void()],["accountMergeIsSponsor",r.void()]],arms:{sourceAccountBalance:r.lookup("Int64")}}),r.enum("InflationResultCode",{inflationSuccess:0,inflationNotTime:-1}),r.struct("InflationPayout",[["destination",r.lookup("AccountId")],["amount",r.lookup("Int64")]]),r.union("InflationResult",{switchOn:r.lookup("InflationResultCode"),switchName:"code",switches:[["inflationSuccess","payouts"],["inflationNotTime",r.void()]],arms:{payouts:r.varArray(r.lookup("InflationPayout"),2147483647)}}),r.enum("ManageDataResultCode",{manageDataSuccess:0,manageDataNotSupportedYet:-1,manageDataNameNotFound:-2,manageDataLowReserve:-3,manageDataInvalidName:-4}),r.union("ManageDataResult",{switchOn:r.lookup("ManageDataResultCode"),switchName:"code",switches:[["manageDataSuccess",r.void()],["manageDataNotSupportedYet",r.void()],["manageDataNameNotFound",r.void()],["manageDataLowReserve",r.void()],["manageDataInvalidName",r.void()]],arms:{}}),r.enum("BumpSequenceResultCode",{bumpSequenceSuccess:0,bumpSequenceBadSeq:-1}),r.union("BumpSequenceResult",{switchOn:r.lookup("BumpSequenceResultCode"),switchName:"code",switches:[["bumpSequenceSuccess",r.void()],["bumpSequenceBadSeq",r.void()]],arms:{}}),r.enum("CreateClaimableBalanceResultCode",{createClaimableBalanceSuccess:0,createClaimableBalanceMalformed:-1,createClaimableBalanceLowReserve:-2,createClaimableBalanceNoTrust:-3,createClaimableBalanceNotAuthorized:-4,createClaimableBalanceUnderfunded:-5}),r.union("CreateClaimableBalanceResult",{switchOn:r.lookup("CreateClaimableBalanceResultCode"),switchName:"code",switches:[["createClaimableBalanceSuccess","balanceId"],["createClaimableBalanceMalformed",r.void()],["createClaimableBalanceLowReserve",r.void()],["createClaimableBalanceNoTrust",r.void()],["createClaimableBalanceNotAuthorized",r.void()],["createClaimableBalanceUnderfunded",r.void()]],arms:{balanceId:r.lookup("ClaimableBalanceId")}}),r.enum("ClaimClaimableBalanceResultCode",{claimClaimableBalanceSuccess:0,claimClaimableBalanceDoesNotExist:-1,claimClaimableBalanceCannotClaim:-2,claimClaimableBalanceLineFull:-3,claimClaimableBalanceNoTrust:-4,claimClaimableBalanceNotAuthorized:-5}),r.union("ClaimClaimableBalanceResult",{switchOn:r.lookup("ClaimClaimableBalanceResultCode"),switchName:"code",switches:[["claimClaimableBalanceSuccess",r.void()],["claimClaimableBalanceDoesNotExist",r.void()],["claimClaimableBalanceCannotClaim",r.void()],["claimClaimableBalanceLineFull",r.void()],["claimClaimableBalanceNoTrust",r.void()],["claimClaimableBalanceNotAuthorized",r.void()]],arms:{}}),r.enum("BeginSponsoringFutureReservesResultCode",{beginSponsoringFutureReservesSuccess:0,beginSponsoringFutureReservesMalformed:-1,beginSponsoringFutureReservesAlreadySponsored:-2,beginSponsoringFutureReservesRecursive:-3}),r.union("BeginSponsoringFutureReservesResult",{switchOn:r.lookup("BeginSponsoringFutureReservesResultCode"),switchName:"code",switches:[["beginSponsoringFutureReservesSuccess",r.void()],["beginSponsoringFutureReservesMalformed",r.void()],["beginSponsoringFutureReservesAlreadySponsored",r.void()],["beginSponsoringFutureReservesRecursive",r.void()]],arms:{}}),r.enum("EndSponsoringFutureReservesResultCode",{endSponsoringFutureReservesSuccess:0,endSponsoringFutureReservesNotSponsored:-1}),r.union("EndSponsoringFutureReservesResult",{switchOn:r.lookup("EndSponsoringFutureReservesResultCode"),switchName:"code",switches:[["endSponsoringFutureReservesSuccess",r.void()],["endSponsoringFutureReservesNotSponsored",r.void()]],arms:{}}),r.enum("RevokeSponsorshipResultCode",{revokeSponsorshipSuccess:0,revokeSponsorshipDoesNotExist:-1,revokeSponsorshipNotSponsor:-2,revokeSponsorshipLowReserve:-3,revokeSponsorshipOnlyTransferable:-4,revokeSponsorshipMalformed:-5}),r.union("RevokeSponsorshipResult",{switchOn:r.lookup("RevokeSponsorshipResultCode"),switchName:"code",switches:[["revokeSponsorshipSuccess",r.void()],["revokeSponsorshipDoesNotExist",r.void()],["revokeSponsorshipNotSponsor",r.void()],["revokeSponsorshipLowReserve",r.void()],["revokeSponsorshipOnlyTransferable",r.void()],["revokeSponsorshipMalformed",r.void()]],arms:{}}),r.enum("ClawbackResultCode",{clawbackSuccess:0,clawbackMalformed:-1,clawbackNotClawbackEnabled:-2,clawbackNoTrust:-3,clawbackUnderfunded:-4}),r.union("ClawbackResult",{switchOn:r.lookup("ClawbackResultCode"),switchName:"code",switches:[["clawbackSuccess",r.void()],["clawbackMalformed",r.void()],["clawbackNotClawbackEnabled",r.void()],["clawbackNoTrust",r.void()],["clawbackUnderfunded",r.void()]],arms:{}}),r.enum("ClawbackClaimableBalanceResultCode",{clawbackClaimableBalanceSuccess:0,clawbackClaimableBalanceDoesNotExist:-1,clawbackClaimableBalanceNotIssuer:-2,clawbackClaimableBalanceNotClawbackEnabled:-3}),r.union("ClawbackClaimableBalanceResult",{switchOn:r.lookup("ClawbackClaimableBalanceResultCode"),switchName:"code",switches:[["clawbackClaimableBalanceSuccess",r.void()],["clawbackClaimableBalanceDoesNotExist",r.void()],["clawbackClaimableBalanceNotIssuer",r.void()],["clawbackClaimableBalanceNotClawbackEnabled",r.void()]],arms:{}}),r.enum("SetTrustLineFlagsResultCode",{setTrustLineFlagsSuccess:0,setTrustLineFlagsMalformed:-1,setTrustLineFlagsNoTrustLine:-2,setTrustLineFlagsCantRevoke:-3,setTrustLineFlagsInvalidState:-4,setTrustLineFlagsLowReserve:-5}),r.union("SetTrustLineFlagsResult",{switchOn:r.lookup("SetTrustLineFlagsResultCode"),switchName:"code",switches:[["setTrustLineFlagsSuccess",r.void()],["setTrustLineFlagsMalformed",r.void()],["setTrustLineFlagsNoTrustLine",r.void()],["setTrustLineFlagsCantRevoke",r.void()],["setTrustLineFlagsInvalidState",r.void()],["setTrustLineFlagsLowReserve",r.void()]],arms:{}}),r.enum("LiquidityPoolDepositResultCode",{liquidityPoolDepositSuccess:0,liquidityPoolDepositMalformed:-1,liquidityPoolDepositNoTrust:-2,liquidityPoolDepositNotAuthorized:-3,liquidityPoolDepositUnderfunded:-4,liquidityPoolDepositLineFull:-5,liquidityPoolDepositBadPrice:-6,liquidityPoolDepositPoolFull:-7}),r.union("LiquidityPoolDepositResult",{switchOn:r.lookup("LiquidityPoolDepositResultCode"),switchName:"code",switches:[["liquidityPoolDepositSuccess",r.void()],["liquidityPoolDepositMalformed",r.void()],["liquidityPoolDepositNoTrust",r.void()],["liquidityPoolDepositNotAuthorized",r.void()],["liquidityPoolDepositUnderfunded",r.void()],["liquidityPoolDepositLineFull",r.void()],["liquidityPoolDepositBadPrice",r.void()],["liquidityPoolDepositPoolFull",r.void()]],arms:{}}),r.enum("LiquidityPoolWithdrawResultCode",{liquidityPoolWithdrawSuccess:0,liquidityPoolWithdrawMalformed:-1,liquidityPoolWithdrawNoTrust:-2,liquidityPoolWithdrawUnderfunded:-3,liquidityPoolWithdrawLineFull:-4,liquidityPoolWithdrawUnderMinimum:-5}),r.union("LiquidityPoolWithdrawResult",{switchOn:r.lookup("LiquidityPoolWithdrawResultCode"),switchName:"code",switches:[["liquidityPoolWithdrawSuccess",r.void()],["liquidityPoolWithdrawMalformed",r.void()],["liquidityPoolWithdrawNoTrust",r.void()],["liquidityPoolWithdrawUnderfunded",r.void()],["liquidityPoolWithdrawLineFull",r.void()],["liquidityPoolWithdrawUnderMinimum",r.void()]],arms:{}}),r.enum("OperationResultCode",{opInner:0,opBadAuth:-1,opNoAccount:-2,opNotSupported:-3,opTooManySubentries:-4,opExceededWorkLimit:-5,opTooManySponsoring:-6}),r.union("OperationResultTr",{switchOn:r.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"]],arms:{createAccountResult:r.lookup("CreateAccountResult"),paymentResult:r.lookup("PaymentResult"),pathPaymentStrictReceiveResult:r.lookup("PathPaymentStrictReceiveResult"),manageSellOfferResult:r.lookup("ManageSellOfferResult"),createPassiveSellOfferResult:r.lookup("ManageSellOfferResult"),setOptionsResult:r.lookup("SetOptionsResult"),changeTrustResult:r.lookup("ChangeTrustResult"),allowTrustResult:r.lookup("AllowTrustResult"),accountMergeResult:r.lookup("AccountMergeResult"),inflationResult:r.lookup("InflationResult"),manageDataResult:r.lookup("ManageDataResult"),bumpSeqResult:r.lookup("BumpSequenceResult"),manageBuyOfferResult:r.lookup("ManageBuyOfferResult"),pathPaymentStrictSendResult:r.lookup("PathPaymentStrictSendResult"),createClaimableBalanceResult:r.lookup("CreateClaimableBalanceResult"),claimClaimableBalanceResult:r.lookup("ClaimClaimableBalanceResult"),beginSponsoringFutureReservesResult:r.lookup("BeginSponsoringFutureReservesResult"),endSponsoringFutureReservesResult:r.lookup("EndSponsoringFutureReservesResult"),revokeSponsorshipResult:r.lookup("RevokeSponsorshipResult"),clawbackResult:r.lookup("ClawbackResult"),clawbackClaimableBalanceResult:r.lookup("ClawbackClaimableBalanceResult"),setTrustLineFlagsResult:r.lookup("SetTrustLineFlagsResult"),liquidityPoolDepositResult:r.lookup("LiquidityPoolDepositResult"),liquidityPoolWithdrawResult:r.lookup("LiquidityPoolWithdrawResult")}}),r.union("OperationResult",{switchOn:r.lookup("OperationResultCode"),switchName:"code",switches:[["opInner","tr"],["opBadAuth",r.void()],["opNoAccount",r.void()],["opNotSupported",r.void()],["opTooManySubentries",r.void()],["opExceededWorkLimit",r.void()],["opTooManySponsoring",r.void()]],arms:{tr:r.lookup("OperationResultTr")}}),r.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}),r.union("InnerTransactionResultResult",{switchOn:r.lookup("TransactionResultCode"),switchName:"code",switches:[["txSuccess","results"],["txFailed","results"],["txTooEarly",r.void()],["txTooLate",r.void()],["txMissingOperation",r.void()],["txBadSeq",r.void()],["txBadAuth",r.void()],["txInsufficientBalance",r.void()],["txNoAccount",r.void()],["txInsufficientFee",r.void()],["txBadAuthExtra",r.void()],["txInternalError",r.void()],["txNotSupported",r.void()],["txBadSponsorship",r.void()],["txBadMinSeqAgeOrGap",r.void()],["txMalformed",r.void()]],arms:{results:r.varArray(r.lookup("OperationResult"),2147483647)}}),r.union("InnerTransactionResultExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("InnerTransactionResult",[["feeCharged",r.lookup("Int64")],["result",r.lookup("InnerTransactionResultResult")],["ext",r.lookup("InnerTransactionResultExt")]]),r.struct("InnerTransactionResultPair",[["transactionHash",r.lookup("Hash")],["result",r.lookup("InnerTransactionResult")]]),r.union("TransactionResultResult",{switchOn:r.lookup("TransactionResultCode"),switchName:"code",switches:[["txFeeBumpInnerSuccess","innerResultPair"],["txFeeBumpInnerFailed","innerResultPair"],["txSuccess","results"],["txFailed","results"],["txTooEarly",r.void()],["txTooLate",r.void()],["txMissingOperation",r.void()],["txBadSeq",r.void()],["txBadAuth",r.void()],["txInsufficientBalance",r.void()],["txNoAccount",r.void()],["txInsufficientFee",r.void()],["txBadAuthExtra",r.void()],["txInternalError",r.void()],["txNotSupported",r.void()],["txBadSponsorship",r.void()],["txBadMinSeqAgeOrGap",r.void()],["txMalformed",r.void()]],arms:{innerResultPair:r.lookup("InnerTransactionResultPair"),results:r.varArray(r.lookup("OperationResult"),2147483647)}}),r.union("TransactionResultExt",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.struct("TransactionResult",[["feeCharged",r.lookup("Int64")],["result",r.lookup("TransactionResultResult")],["ext",r.lookup("TransactionResultExt")]]),r.typedef("Hash",r.opaque(32)),r.typedef("Uint256",r.opaque(32)),r.typedef("Uint32",r.uint()),r.typedef("Int32",r.int()),r.typedef("Uint64",r.uhyper()),r.typedef("Int64",r.hyper()),r.union("ExtensionPoint",{switchOn:r.int(),switchName:"v",switches:[[0,r.void()]],arms:{}}),r.enum("CryptoKeyType",{keyTypeEd25519:0,keyTypePreAuthTx:1,keyTypeHashX:2,keyTypeEd25519SignedPayload:3,keyTypeMuxedEd25519:256}),r.enum("PublicKeyType",{publicKeyTypeEd25519:0}),r.enum("SignerKeyType",{signerKeyTypeEd25519:0,signerKeyTypePreAuthTx:1,signerKeyTypeHashX:2,signerKeyTypeEd25519SignedPayload:3}),r.union("PublicKey",{switchOn:r.lookup("PublicKeyType"),switchName:"type",switches:[["publicKeyTypeEd25519","ed25519"]],arms:{ed25519:r.lookup("Uint256")}}),r.struct("SignerKeyEd25519SignedPayload",[["ed25519",r.lookup("Uint256")],["payload",r.varOpaque(64)]]),r.union("SignerKey",{switchOn:r.lookup("SignerKeyType"),switchName:"type",switches:[["signerKeyTypeEd25519","ed25519"],["signerKeyTypePreAuthTx","preAuthTx"],["signerKeyTypeHashX","hashX"],["signerKeyTypeEd25519SignedPayload","ed25519SignedPayload"]],arms:{ed25519:r.lookup("Uint256"),preAuthTx:r.lookup("Uint256"),hashX:r.lookup("Uint256"),ed25519SignedPayload:r.lookup("SignerKeyEd25519SignedPayload")}}),r.typedef("Signature",r.varOpaque(64)),r.typedef("SignatureHint",r.opaque(4)),r.typedef("NodeId",r.lookup("PublicKey")),r.struct("Curve25519Secret",[["key",r.opaque(32)]]),r.struct("Curve25519Public",[["key",r.opaque(32)]]),r.struct("HmacSha256Key",[["key",r.opaque(32)]]),r.struct("HmacSha256Mac",[["mac",r.opaque(32)]])});return Gu.default=i,Gu}var pb;function kt(){if(pb)return Wu;pb=1,Object.defineProperty(Wu,"__esModule",{value:!0});var e=uC(),t=n(e);function n(i){return i&&i.__esModule?i:{default:i}}return Wu.default=t.default,Wu}var No={},zh,vb;function lC(){if(vb)return zh;vb=1;var e=$a(),t=Ha();function n(i,r){return i&&e(r,t(r),i)}return zh=n,zh}var Vh,mb;function cC(){if(mb)return Vh;mb=1;var e=$a(),t=ta();function n(i,r){return i&&e(r,t(r),i)}return Vh=n,Vh}var ws={exports:{}};ws.exports;var gb;function S5(){return gb||(gb=1,function(e,t){var n=Cn(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a?n.Buffer:void 0,u=o?o.allocUnsafe:void 0;function l(s,y){if(y)return s.slice();var c=s.length,h=u?u(c):new s.constructor(c);return s.copy(h),h}e.exports=l}(ws,ws.exports)),ws.exports}var $h,yb;function E5(){if(yb)return $h;yb=1;function e(t,n){var i=-1,r=t.length;for(n||(n=Array(r));++ie)return a;do r%2&&(a+=i),r=t(r/2),r&&(i+=i);while(r);return a}return fp=n,fp}var dp,Ub;function AC(){if(Ub)return dp;Ub=1;function e(t,n,i){var r=-1,a=t.length;n<0&&(n=-n>a?0:a+n),i=i>a?a:i,i<0&&(i+=a),a=n>i?0:i-n>>>0,n>>>=0;for(var o=Array(a);++r=a?n:e(n,i,r)}return hp=t,hp}var pp,zb;function Jg(){if(zb)return pp;zb=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=t+n+i,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+r+a+"]");function l(s){return u.test(s)}return pp=l,pp}var vp,Vb;function TC(){if(Vb)return vp;Vb=1;var e=f5(),t=e("length");return vp=t,vp}var mp,$b;function PC(){if($b)return mp;$b=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=t+n+i,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+r+"]",l="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+l+")",y="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",f=s+"?",d="["+a+"]?",v="(?:"+S+"(?:"+[y,c,h].join("|")+")"+d+f+")*",p=d+f+v,m="(?:"+[y+u+"?",u,c,h,o].join("|")+")",g=RegExp(l+"(?="+l+")|"+m+p,"g");function b(R){for(var B=g.lastIndex=0;g.test(R);)++B;return B}return mp=b,mp}var gp,Hb;function C5(){if(Hb)return gp;Hb=1;var e=TC(),t=Jg(),n=PC();function i(r){return t(r)?n(r):e(r)}return gp=i,gp}var yp,Kb;function CC(){if(Kb)return yp;Kb=1;function e(t){return t.split("")}return yp=e,yp}var wp,Xb;function OC(){if(Xb)return wp;Xb=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=t+n+i,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+r+"]",l="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+l+")",y="[^"+e+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",f=s+"?",d="["+a+"]?",v="(?:"+S+"(?:"+[y,c,h].join("|")+")"+d+f+")*",p=d+f+v,m="(?:"+[y+u+"?",u,c,h,o].join("|")+")",g=RegExp(l+"(?="+l+")|"+m+p,"g");function b(R){return R.match(g)||[]}return wp=b,wp}var _p,Qb;function O5(){if(Qb)return _p;Qb=1;var e=CC(),t=Jg(),n=OC();function i(r){return t(r)?n(r):e(r)}return _p=i,_p}var xp,Wb;function RC(){if(Wb)return xp;Wb=1;var e=kC(),t=Xg(),n=P5(),i=Jg(),r=C5(),a=O5(),o=Math.ceil;function u(l,s){s=s===void 0?" ":t(s);var y=s.length;if(y<2)return y?e(s,l):s;var c=e(s,o(l/r(s)));return i(s)?n(a(c),0,l).join(""):c.slice(0,l)}return xp=u,xp}var bp,Gb;function R5(){if(Gb)return bp;Gb=1;var e=RC(),t=C5(),n=g5(),i=Qg();function r(a,o,u){a=i(a),o=n(o);var l=o?t(a):0;return o&&l-1;);return r}return Tp=t,Tp}var Pp,r2;function I5(){if(r2)return Pp;r2=1;var e=Xg(),t=P5(),n=LC(),i=O5(),r=Qg(),a=m5();function o(u,l,s){if(u=r(u),u&&(s||l===void 0))return u.slice(0,a(u)+1);if(!u||!(l=e(l)))return u;var y=i(u),c=n(y,i(l))+1;return t(y,0,c).join("")}return Pp=o,Pp}var Fo={},Ni={},Cp={},n2;function NC(){return n2||(n2=1,function(e){var t=function(u,l){return l||(l={}),u.split("").forEach(function(s,y){s in l||(l[s]=y)}),l},n={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",charmap:{0:14,1:8}};n.charmap=t(n.alphabet,n.charmap);var i={alphabet:"0123456789ABCDEFGHJKMNPQRSTVWXYZ",charmap:{O:0,I:1,L:1}};i.charmap=t(i.alphabet,i.charmap);var r={alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",charmap:{}};r.charmap=t(r.alphabet,r.charmap);function a(u){if(this.buf=[],this.shift=8,this.carry=0,u){switch(u.type){case"rfc4648":this.charmap=e.rfc4648.charmap;break;case"crockford":this.charmap=e.crockford.charmap;break;case"base32hex":this.charmap=e.base32hex.charmap;break;default:throw new Error("invalid type")}u.charmap&&(this.charmap=u.charmap)}}a.prototype.charmap=n.charmap,a.prototype.write=function(u){var l=this.charmap,s=this.buf,y=this.shift,c=this.carry;return u.toUpperCase().split("").forEach(function(h){if(h!="="){var S=l[h]&255;y-=5,y>0?c|=S<>-y),y+=8,c=S<>l,this.buf+=this.alphabet[y&31],l>5&&(l-=5,y=c>>l,this.buf+=this.alphabet[y&31]),l=5-l,s=c<new Sr.Buffer(e);function Rn(e,t){const n=(i,r)=>t(i,r)>>>0;return n.signed=t,n.unsigned=n,n.model=e,n}const q5=Rn("crc1",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=~~t,i=0;for(let r=0;r>8)&65535}return n});let Om=[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];typeof Int32Array<"u"&&(Om=new Int32Array(Om));const N5=Rn("ccitt",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=typeof t<"u"?~~t:65535;for(let i=0;i>8^r)&255]^n<<8)&65535}return n});let Rm=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(Rm=new Int32Array(Rm));const F5=Rn("crc-16-modbus",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=typeof t<"u"?~~t:65535;for(let i=0;i>8)&65535}return n}),D5=Rn("xmodem",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=typeof t<"u"?~~t:0;for(let i=0;i>>8&255;a^=r&255,a^=a>>>4,n=n<<8&65535,n^=a,a=a<<5&65535,n^=a,a=a<<7&65535,n^=a}return n});let Im=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array<"u"&&(Im=new Int32Array(Im));const U5=Rn("kermit",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=typeof t<"u"?~~t:0;for(let i=0;i>8)&65535}return n});let qm=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array<"u"&&(qm=new Int32Array(qm));const j5=Rn("crc-24",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=typeof t<"u"?~~t:11994318;for(let i=0;i>16^r)&255]^n<<8)&16777215}return n});let Bm=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(Bm=new Int32Array(Bm));const z5=Rn("crc-32",function(e,t){Sr.Buffer.isBuffer(e)||(e=On(e));let n=t===0?0:~~t^-1;for(let i=0;i>>8}return n^-1});let Mm=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(Mm=new Int32Array(Mm));const V5=Rn("jam",function(e,t=-1){Sr.Buffer.isBuffer(e)||(e=On(e));let n=t===0?0:~~t;for(let i=0;i>>8}return n}),FC={crc1:q5,crc8:B5,crc81wire:M5,crc16:L5,crc16ccitt:N5,crc16modbus:F5,crc16xmodem:D5,crc16kermit:U5,crc24:j5,crc32:z5,crcjam:V5},DC=Object.freeze(Object.defineProperty({__proto__:null,crc1:q5,crc16:L5,crc16ccitt:N5,crc16kermit:U5,crc16modbus:F5,crc16xmodem:D5,crc24:j5,crc32:z5,crc8:B5,crc81wire:M5,crcjam:V5,default:FC},Symbol.toStringTag,{value:"Module"})),UC=Nm(DC);var Ju={},i2;function jC(){if(i2)return Ju;i2=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.verifyChecksum=e;function e(t,n){if(t.length!==n.length)return!1;if(t.length===0)return!0;for(var i=0;i165)return!1;break;default:return!1}var B="";try{B=p(b,R)}catch{return!1}switch(b){case"ed25519PublicKey":case"ed25519SecretSeed":case"preAuthTx":case"sha256Hash":return B.length===32;case"med25519PublicKey":return B.length===40;case"signedPayload":return B.length>=32+4+4&&B.length<=32+4+64;default:return!1}}function p(b,R){if(!(0,y.default)(R))throw new TypeError("encoded argument must be of type String");var B=n.default.decode(R),L=B[0],q=B.slice(0,-2),F=q.slice(1),U=B.slice(-2);if(R!==n.default.encode(B))throw new Error("invalid encoded string");var J=f[b];if((0,o.default)(J))throw new Error(b+" is not a valid version byte name. "+("Expected one of "+Object.keys(f).join(", ")));if(L!==J)throw new Error("invalid version byte. expected "+J+", got "+L);var ce=g(q);if(!(0,c.verifyChecksum)(ce,U))throw new Error("invalid checksum");return Buffer.from(F)}function m(b,R){if((0,l.default)(R)||(0,o.default)(R))throw new Error("cannot encode null data");var B=f[b];if((0,o.default)(B))throw new Error(b+" is not a valid version byte name. "+("Expected one of "+Object.keys(f).join(", ")));R=Buffer.from(R);var L=Buffer.from([B]),q=Buffer.concat([L,R]),F=g(q),U=Buffer.concat([q,F]);return n.default.encode(U)}function g(b){var R=Buffer.alloc(2);return R.writeUInt16LE(r.default.crc16xmodem(b),0),R}return Ni}var o2;function zn(){if(o2)return Fo;o2=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.Keypair=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t=function(){function d(v,p){for(var m=0;m"u"?"undefined":e(p)));return h.default.MuxedAccount.keyTypeMuxedEd25519(new h.default.MuxedAccountMed25519({id:h.default.Uint64.fromString(p),ed25519:this._publicKey}))}return new h.default.MuxedAccount.keyTypeEd25519(this._publicKey)}},{key:"rawPublicKey",value:function(){return this._publicKey}},{key:"signatureHint",value:function(){var p=this.xdrAccountId().toXDR();return p.slice(p.length-4)}},{key:"publicKey",value:function(){return s.StrKey.encodeEd25519PublicKey(this._publicKey)}},{key:"secret",value:function(){if(!this._secretSeed)throw new Error("no secret key available");if(this.type==="ed25519")return s.StrKey.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(p){if(!this.canSign())throw new Error("cannot sign: no secret key available");return(0,l.sign)(p,this._secretKey)}},{key:"verify",value:function(p,m){return(0,l.verify)(p,m,this._publicKey)}},{key:"signDecorated",value:function(p){var m=this.sign(p),g=this.signatureHint();return new h.default.DecoratedSignature({hint:g,signature:m})}},{key:"signPayloadDecorated",value:function(p){var m=this.sign(p),g=this.signatureHint(),b=Buffer.from(p.slice(-4));return b.length<4&&(b=Buffer.concat([b,Buffer.alloc(4-p.length,0)])),new h.default.DecoratedSignature({hint:b.map(function(R,B){return R^g[B]}),signature:m})}}],[{key:"fromSecret",value:function(p){var m=s.StrKey.decodeEd25519SecretSeed(p);return this.fromRawEd25519Seed(m)}},{key:"fromRawEd25519Seed",value:function(p){return new this({type:"ed25519",secretKey:p})}},{key:"master",value:function(p){if(!p)throw new Error("No network selected. Please pass a network argument, e.g. `Keypair.master(Networks.PUBLIC)`.");return this.fromRawEd25519Seed((0,y.hash)(p))}},{key:"fromPublicKey",value:function(p){if(p=s.StrKey.decodeEd25519PublicKey(p),p.length!==32)throw new Error("Invalid Stellar public key");return new this({type:"ed25519",publicKey:p})}},{key:"random",value:function(){var p=i.default.randomBytes(32);return this.fromRawEd25519Seed(p)}}]),d}(),Fo}var s2;function ia(){if(s2)return No;s2=1,Object.defineProperty(No,"__esModule",{value:!0}),No.Asset=void 0;var e=function(){function f(d,v){for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:l.default.Asset;if(this.isNative())return v.assetTypeNative();var p=void 0,m=void 0;this.code.length<=4?(p=l.default.AlphaNum4,m="assetTypeCreditAlphanum4"):(p=l.default.AlphaNum12,m="assetTypeCreditAlphanum12");var g=this.code.length<=4?4:12,b=(0,r.default)(this.code,g,"\0"),R=new p({assetCode:b,issuer:s.Keypair.fromPublicKey(this.issuer).xdrAccountId()});return new v(m,R)}},{key:"getCode",value:function(){return(0,n.default)(this.code)}},{key:"getIssuer",value:function(){return(0,n.default)(this.issuer)}},{key:"getAssetType",value:function(){switch(this.getRawAssetType()){case l.default.AssetType.assetTypeNative():return"native";case l.default.AssetType.assetTypeCreditAlphanum4():return"credit_alphanum4";case l.default.AssetType.assetTypeCreditAlphanum12():return"credit_alphanum12";default:return"unknown"}}},{key:"getRawAssetType",value:function(){return this.isNative()?l.default.AssetType.assetTypeNative():this.code.length<=4?l.default.AssetType.assetTypeCreditAlphanum4():l.default.AssetType.assetTypeCreditAlphanum12()}},{key:"isNative",value:function(){return!this.issuer}},{key:"equals",value:function(v){return this.code===v.getCode()&&this.issuer===v.getIssuer()}},{key:"toString",value:function(){return this.isNative()?"native":this.getCode()+":"+this.getIssuer()}}],[{key:"native",value:function(){return new f("XLM")}},{key:"fromOperation",value:function(v){var p=void 0,m=void 0,g=void 0;switch(v.switch()){case l.default.AssetType.assetTypeNative():return this.native();case l.default.AssetType.assetTypeCreditAlphanum4():p=v.alphaNum4();case l.default.AssetType.assetTypeCreditAlphanum12():return p=p||v.alphaNum12(),g=y.StrKey.encodeEd25519PublicKey(p.issuer().ed25519()),m=(0,o.default)(p.assetCode(),"\0"),new this(m,g);default:throw new Error("Invalid asset type: "+v.switch().name)}}},{key:"compare",value:function(v,p){if(!v||!(v instanceof f))throw new Error("assetA is invalid");if(!p||!(p instanceof f))throw new Error("assetB is invalid");if(v.equals(p))return 0;var m=v.getRawAssetType().value,g=p.getRawAssetType().value;if(m!==g)return m1&&arguments[1]!==void 0?arguments[1]:{};if(u!=="constant_product")throw new Error("liquidityPoolType is invalid");var s=l.assetA,y=l.assetB,c=l.fee;if(!s||!(s instanceof n.Asset))throw new Error("assetA is invalid");if(!y||!(y instanceof n.Asset))throw new Error("assetB is invalid");if(!c||c!==a)throw new Error("fee is invalid");if(n.Asset.compare(s,y)!==-1)throw new Error("Assets are not in lexicographic order");var h=t.default.LiquidityPoolType.liquidityPoolConstantProduct().toXDR(),S=new t.default.LiquidityPoolConstantProductParameters({assetA:s.toXDRObject(),assetB:y.toXDRObject(),fee:c}).toXDR(),f=Buffer.concat([h,S]);return(0,i.hash)(f)}return da}var Do={},l2;function ey(){if(l2)return Do;l2=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.TransactionBase=void 0;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t=function(){function l(s,y){for(var c=0;c"u"?"undefined":e(h)));this._networkPassphrase=h,this._tx=s,this._signatures=y,this._fee=c}return t(l,[{key:"sign",value:function(){for(var y=this,c=this.hash(),h=arguments.length,S=Array(h),f=0;f0&&arguments[0]!==void 0?arguments[0]:"",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(!c||typeof c!="string")throw new Error("Invalid signature");if(!y||typeof y!="string")throw new Error("Invalid publicKey");var h=void 0,S=void 0,f=Buffer.from(c,"base64");try{h=a.Keypair.fromPublicKey(y),S=h.signatureHint()}catch{throw new Error("Invalid publicKey")}if(!h.verify(this.hash(),f))throw new Error("Invalid signature");this.signatures.push(new i.default.DecoratedSignature({hint:S,signature:f}))}},{key:"addDecoratedSignature",value:function(y){this.signatures.push(y)}},{key:"signHashX",value:function(y){if(typeof y=="string"&&(y=Buffer.from(y,"hex")),y.length>64)throw new Error("preimage cannnot be longer than 64 bytes");var c=y,h=(0,r.hash)(y),S=h.slice(h.length-4);this.signatures.push(new i.default.DecoratedSignature({hint:S,signature:c}))}},{key:"hash",value:function(){return(0,r.hash)(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")}},{key:"signatures",get:function(){return this._signatures},set:function(y){throw new Error("Transaction is immutable")}},{key:"tx",get:function(){return this._tx},set:function(y){throw new Error("Transaction is immutable")}},{key:"fee",get:function(){return this._fee},set:function(y){throw new Error("Transaction is immutable")}},{key:"networkPassphrase",get:function(){return this._networkPassphrase},set:function(y){this._networkPassphrase=y}}]),l}(),Do}var Uo={},en={},Op={exports:{}};/*! bignumber.js v4.1.0 https://github.com/MikeMcl/bignumber.js/LICENCE */var c2;function Ii(){return c2||(c2=1,function(e){(function(t){var n,i=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,r=Math.ceil,a=Math.floor,o=" not a boolean or binary digit",u="rounding mode",l="number type has more than 15 significant digits",s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",y=1e14,c=14,h=9007199254740991,S=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,d=1e9;function v(U){var J,ce,E=0,O=_e.prototype,H=new _e(1),Z=20,ne=4,W=-7,re=21,ae=-1e7,G=1e7,se=!0,Ee=tt,Be=!1,Pe=1,xe=0,Ye={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function _e(C,w){var P,M,V,te,ee,j,X=this;if(!(X instanceof _e))return se&&it(26,"constructor call without new",C),new _e(C,w);if(w==null||!Ee(w,2,64,E,"base")){if(C instanceof _e){X.s=C.s,X.e=C.e,X.c=(C=C.c)?C.slice():C,E=0;return}if((te=typeof C=="number")&&C*0==0){if(X.s=1/C<0?(C=-C,-1):1,C===~~C){for(M=0,V=C;V>=10;V/=10,M++);X.e=M,X.c=[C],E=0;return}j=C+""}else{if(!i.test(j=C+""))return ce(X,j,te);X.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1}}else{if(w=w|0,j=C+"",w==10)return X=new _e(C instanceof _e?C:j),Me(X,Z+X.e+1,ne);if((te=typeof C=="number")&&C*0!=0||!new RegExp("^-?"+(P="["+s.slice(0,w)+"]+")+"(?:\\."+P+")?$",w<37?"i":"").test(j))return ce(X,j,te,w);te?(X.s=1/C<0?(j=j.slice(1),-1):1,se&&j.replace(/^0\.0*|\./,"").length>15&&it(E,l,C),te=!1):X.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1,j=nt(j,10,w,X.s)}for((M=j.indexOf("."))>-1&&(j=j.replace(".","")),(V=j.search(/e/i))>0?(M<0&&(M=V),M+=+j.slice(V+1),j=j.substring(0,V)):M<0&&(M=j.length),V=0;j.charCodeAt(V)===48;V++);for(ee=j.length;j.charCodeAt(--ee)===48;);if(j=j.slice(V,ee+1),j)if(ee=j.length,te&&se&&ee>15&&(C>h||C!==a(C))&&it(E,l,X.s*C),M=M-V-1,M>G)X.c=X.e=null;else if(MP)return(C=V[P++])!=null};return ee(w="DECIMAL_PLACES")&&Ee(C,0,d,2,w)&&(Z=C|0),M[w]=Z,ee(w="ROUNDING_MODE")&&Ee(C,0,8,2,w)&&(ne=C|0),M[w]=ne,ee(w="EXPONENTIAL_AT")&&(R(C)?Ee(C[0],-d,0,2,w)&&Ee(C[1],0,d,2,w)&&(W=C[0]|0,re=C[1]|0):Ee(C,-d,d,2,w)&&(W=-(re=(C<0?-C:C)|0))),M[w]=[W,re],ee(w="RANGE")&&(R(C)?Ee(C[0],-d,-1,2,w)&&Ee(C[1],1,d,2,w)&&(ae=C[0]|0,G=C[1]|0):Ee(C,-d,d,2,w)&&(C|0?ae=-(G=(C<0?-C:C)|0):se&&it(2,w+" cannot be zero",C))),M[w]=[ae,G],ee(w="ERRORS")&&(C===!!C||C===1||C===0?(E=0,Ee=(se=!!C)?tt:b):se&&it(2,w+o,C)),M[w]=se,ee(w="CRYPTO")&&(C===!0||C===!1||C===1||C===0?C?(C=typeof crypto>"u",!C&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?Be=!0:se?it(2,"crypto unavailable",C?void 0:crypto):Be=!1):Be=!1:se&&it(2,w+o,C)),M[w]=Be,ee(w="MODULO_MODE")&&Ee(C,0,9,2,w)&&(Pe=C|0),M[w]=Pe,ee(w="POW_PRECISION")&&Ee(C,0,d,2,w)&&(xe=C|0),M[w]=xe,ee(w="FORMAT")&&(typeof C=="object"?Ye=C:se&&it(2,w+" not an object",C)),M[w]=Ye,M},_e.max=function(){return et(arguments,O.lt)},_e.min=function(){return et(arguments,O.gt)},_e.random=function(){var C=9007199254740992,w=Math.random()*C&2097151?function(){return a(Math.random()*C)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(P){var M,V,te,ee,j,X=0,le=[],de=new _e(H);if(P=P==null||!Ee(P,0,d,14)?Z:P|0,ee=r(P/c),Be)if(crypto.getRandomValues){for(M=crypto.getRandomValues(new Uint32Array(ee*=2));X>>11),j>=9e15?(V=crypto.getRandomValues(new Uint32Array(2)),M[X]=V[0],M[X+1]=V[1]):(le.push(j%1e14),X+=2);X=ee/2}else if(crypto.randomBytes){for(M=crypto.randomBytes(ee*=7);X=9e15?crypto.randomBytes(7).copy(M,X):(le.push(j%1e14),X+=7);X=ee/7}else Be=!1,se&&it(14,"crypto unavailable",crypto);if(!Be)for(;X=10;j/=10,X++);X=0&&(ee=xe,xe=0,C=C.replace(".",""),de=new _e(P),X=de.pow(C.length-he),xe=ee,de.c=B(q(m(X.c),X.e),10,w),de.e=de.c.length),le=B(C,P,w),te=ee=le.length;le[--ee]==0;le.pop());if(!le[0])return"0";if(he<0?--te:(X.c=le,X.e=te,X.s=M,X=J(X,de,Oe,Ve,w),le=X.c,j=X.r,te=X.e),V=te+Oe+1,he=le[V],ee=w/2,j=j||V<0||le[V+1]!=null,j=Ve<4?(he!=null||j)&&(Ve==0||Ve==(X.s<0?3:2)):he>ee||he==ee&&(Ve==4||j||Ve==6&&le[V-1]&1||Ve==(X.s<0?8:7)),V<1||!le[0])C=j?q("1",-Oe):"0";else{if(le.length=V,j)for(--w;++le[--V]>w;)le[V]=0,V||(++te,le=[1].concat(le));for(ee=le.length;!le[--ee];);for(he=0,C="";he<=ee;C+=s.charAt(le[he++]));C=q(C,te)}return C}J=function(){function C(M,V,te){var ee,j,X,le,de=0,he=M.length,Oe=V%f,Ve=V/f|0;for(M=M.slice();he--;)X=M[he]%f,le=M[he]/f|0,ee=Ve*X+le*Oe,j=Oe*X+ee%f*f+de,de=(j/te|0)+(ee/f|0)+Ve*le,M[he]=j%te;return de&&(M=[de].concat(M)),M}function w(M,V,te,ee){var j,X;if(te!=ee)X=te>ee?1:-1;else for(j=X=0;jV[j]?1:-1;break}return X}function P(M,V,te,ee){for(var j=0;te--;)M[te]-=j,j=M[te]1;M.splice(0,1));}return function(M,V,te,ee,j){var X,le,de,he,Oe,Ve,wt,Tt,Dt,pt,mt,Vt,sr,un,Jr,ur,Hr,dr=M.s==V.s?1:-1,Jt=M.c,Nt=V.c;if(!Jt||!Jt[0]||!Nt||!Nt[0])return new _e(!M.s||!V.s||(Jt?Nt&&Jt[0]==Nt[0]:!Nt)?NaN:Jt&&Jt[0]==0||!Nt?dr*0:dr/0);for(Tt=new _e(dr),Dt=Tt.c=[],le=M.e-V.e,dr=te+le+1,j||(j=y,le=p(M.e/c)-p(V.e/c),dr=dr/c|0),de=0;Nt[de]==(Jt[de]||0);de++);if(Nt[de]>(Jt[de]||0)&&le--,dr<0)Dt.push(1),he=!0;else{for(un=Jt.length,ur=Nt.length,de=0,dr+=2,Oe=a(j/(Nt[0]+1)),Oe>1&&(Nt=C(Nt,Oe,j),Jt=C(Jt,Oe,j),ur=Nt.length,un=Jt.length),sr=ur,pt=Jt.slice(0,ur),mt=pt.length;mt=j/2&&Jr++;do{if(Oe=0,X=w(Nt,pt,ur,mt),X<0){if(Vt=pt[0],ur!=mt&&(Vt=Vt*j+(pt[1]||0)),Oe=a(Vt/Jr),Oe>1)for(Oe>=j&&(Oe=j-1),Ve=C(Nt,Oe,j),wt=Ve.length,mt=pt.length;w(Ve,pt,wt,mt)==1;)Oe--,P(Ve,ur=10;dr/=10,de++);Me(Tt,te+(Tt.e=de+le*c-1)+1,ee,he)}else Tt.e=le,Tt.r=+he;return Tt}}();function ut(C,w,P,M){var V,te,ee,j,X;if(P=P!=null&&Ee(P,0,8,M,u)?P|0:ne,!C.c)return C.toString();if(V=C.c[0],ee=C.e,w==null)X=m(C.c),X=M==19||M==24&&ee<=W?L(X,ee):q(X,ee);else if(C=Me(new _e(C),w,P),te=C.e,X=m(C.c),j=X.length,M==19||M==24&&(w<=te||te<=W)){for(;jj){if(--w>0)for(X+=".";w--;X+="0");}else if(w+=te-j,w>0)for(te+1==j&&(X+=".");w--;X+="0");return C.s<0&&V?"-"+X:X}function et(C,w){var P,M,V=0;for(R(C[0])&&(C=C[0]),P=new _e(C[0]);++VP||C!=F(C))&&it(M,(V||"decimal places")+(CP?" out of range":" not an integer"),C),!0}function Xe(C,w,P){for(var M=1,V=w.length;!w[--V];w.pop());for(V=w[0];V>=10;V/=10,M++);return(P=M+P*c-1)>G?C.c=C.e=null:P=10;j/=10,V++);if(te=w-V,te<0)te+=c,ee=w,X=he[le=0],de=X/Oe[V-ee-1]%10|0;else if(le=r((te+1)/c),le>=he.length)if(M){for(;he.length<=le;he.push(0));X=de=0,V=1,te%=c,ee=te-c+1}else break e;else{for(X=j=he[le],V=1;j>=10;j/=10,V++);te%=c,ee=te-c+V,de=ee<0?0:X/Oe[V-ee-1]%10|0}if(M=M||w<0||he[le+1]!=null||(ee<0?X:X%Oe[V-ee-1]),M=P<4?(de||M)&&(P==0||P==(C.s<0?3:2)):de>5||de==5&&(P==4||M||P==6&&(te>0?ee>0?X/Oe[V-ee]:0:he[le-1])%10&1||P==(C.s<0?8:7)),w<1||!he[0])return he.length=0,M?(w-=C.e+1,he[0]=Oe[(c-w%c)%c],C.e=-w||0):he[0]=C.e=0,C;if(te==0?(he.length=le,j=1,le--):(he.length=le+1,j=Oe[c-te],he[le]=ee>0?a(X/Oe[V-ee]%Oe[ee])*j:0),M)for(;;)if(le==0){for(te=1,ee=he[0];ee>=10;ee/=10,te++);for(ee=he[0]+=j,j=1;ee>=10;ee/=10,j++);te!=j&&(C.e++,he[0]==y&&(he[0]=1));break}else{if(he[le]+=j,he[le]!=y)break;he[le--]=0,j=1}for(te=he.length;he[--te]===0;he.pop());}C.e>G?C.c=C.e=null:C.e0},O.greaterThanOrEqualTo=O.gte=function(C,w){return E=7,(w=g(this,new _e(C,w)))===1||w===0},O.isFinite=function(){return!!this.c},O.isInteger=O.isInt=function(){return!!this.c&&p(this.e/c)>this.c.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.lessThan=O.lt=function(C,w){return E=8,g(this,new _e(C,w))<0},O.lessThanOrEqualTo=O.lte=function(C,w){return E=9,(w=g(this,new _e(C,w)))===-1||w===0},O.minus=O.sub=function(C,w){var P,M,V,te,ee=this,j=ee.s;if(E=10,C=new _e(C,w),w=C.s,!j||!w)return new _e(NaN);if(j!=w)return C.s=-w,ee.plus(C);var X=ee.e/c,le=C.e/c,de=ee.c,he=C.c;if(!X||!le){if(!de||!he)return de?(C.s=-w,C):new _e(he?ee:NaN);if(!de[0]||!he[0])return he[0]?(C.s=-w,C):new _e(de[0]?ee:ne==3?-0:0)}if(X=p(X),le=p(le),de=de.slice(),j=X-le){for((te=j<0)?(j=-j,V=de):(le=X,V=he),V.reverse(),w=j;w--;V.push(0));V.reverse()}else for(M=(te=(j=de.length)<(w=he.length))?j:w,j=w=0;w0)for(;w--;de[P++]=0);for(w=y-1;M>j;){if(de[--M]0?(ee=te,P=X):(V=-V,P=j),P.reverse();V--;P.push(0));P.reverse()}for(V=j.length,w=X.length,V-w<0&&(P=X,X=j,j=P,w=V),V=0;w;)V=(j[--w]=j[w]+X[w]+V)/y|0,j[w]=y===j[w]?0:j[w]%y;return V&&(j=[V].concat(j),++ee),Xe(C,j,ee)},O.precision=O.sd=function(C){var w,P,M=this,V=M.c;if(C!=null&&C!==!!C&&C!==1&&C!==0&&(se&&it(13,"argument"+o,C),C!=!!C&&(C=null)),!V)return null;if(P=V.length-1,w=P*c+1,P=V[P]){for(;P%10==0;P/=10,w--);for(P=V[0];P>=10;P/=10,w++);}return C&&M.e+1>w&&(w=M.e+1),w},O.round=function(C,w){var P=new _e(this);return(C==null||Ee(C,0,d,15))&&Me(P,~~C+this.e+1,w==null||!Ee(w,0,8,15,u)?ne:w|0),P},O.shift=function(C){var w=this;return Ee(C,-h,h,16,"argument")?w.times("1e"+F(C)):new _e(w.c&&w.c[0]&&(C<-h||C>h)?w.s*(C<0?0:1/0):w)},O.squareRoot=O.sqrt=function(){var C,w,P,M,V,te=this,ee=te.c,j=te.s,X=te.e,le=Z+4,de=new _e("0.5");if(j!==1||!ee||!ee[0])return new _e(!j||j<0&&(!ee||ee[0])?NaN:ee?te:1/0);if(j=Math.sqrt(+te),j==0||j==1/0?(w=m(ee),(w.length+X)%2==0&&(w+="0"),j=Math.sqrt(w),X=p((X+1)/2)-(X<0||X%2),j==1/0?w="1e"+X:(w=j.toExponential(),w=w.slice(0,w.indexOf("e")+1)+X),P=new _e(w)):P=new _e(j+""),P.c[0]){for(X=P.e,j=X+le,j<3&&(j=0);;)if(V=P,P=de.times(V.plus(J(te,V,le,1))),m(V.c).slice(0,j)===(w=m(P.c)).slice(0,j))if(P.e=0;){for(P=0,Oe=Vt[V]%Dt,Ve=Vt[V]/Dt|0,ee=X,te=V+ee;te>V;)le=mt[--ee]%Dt,de=mt[ee]/Dt|0,j=Ve*le+de*Oe,le=Oe*le+j%Dt*Dt+wt[te]+P,P=(le/Tt|0)+(j/Dt|0)+Ve*de,wt[te--]=le%Tt;wt[te]=P}return P?++M:wt.splice(0,1),Xe(C,wt,M)},O.toDigits=function(C,w){var P=new _e(this);return C=C==null||!Ee(C,1,d,18,"precision")?null:C|0,w=w==null||!Ee(w,0,8,18,u)?ne:w|0,C?Me(P,C,w):P},O.toExponential=function(C,w){return ut(this,C!=null&&Ee(C,0,d,19)?~~C+1:null,w,19)},O.toFixed=function(C,w){return ut(this,C!=null&&Ee(C,0,d,20)?~~C+this.e+1:null,w,20)},O.toFormat=function(C,w){var P=ut(this,C!=null&&Ee(C,0,d,21)?~~C+this.e+1:null,w,21);if(this.c){var M,V=P.split("."),te=+Ye.groupSize,ee=+Ye.secondaryGroupSize,j=Ye.groupSeparator,X=V[0],le=V[1],de=this.s<0,he=de?X.slice(1):X,Oe=he.length;if(ee&&(M=te,te=ee,ee=M,Oe-=M),te>0&&Oe>0){for(M=Oe%te||te,X=he.substr(0,M);M0&&(X+=j+he.slice(M)),de&&(X="-"+X)}P=le?X+Ye.decimalSeparator+((ee=+Ye.fractionGroupSize)?le.replace(new RegExp("\\d{"+ee+"}\\B","g"),"$&"+Ye.fractionGroupSeparator):le):X}return P},O.toFraction=function(C){var w,P,M,V,te,ee,j,X,le,de=se,he=this,Oe=he.c,Ve=new _e(H),wt=P=new _e(H),Tt=j=new _e(H);if(C!=null&&(se=!1,ee=new _e(C),se=de,(!(de=ee.isInt())||ee.lt(H))&&(se&&it(22,"max denominator "+(de?"out of range":"not an integer"),C),C=!de&&ee.c&&Me(ee,ee.e+1,1).gte(H)?ee:null)),!Oe)return he.toString();for(le=m(Oe),V=Ve.e=le.length-he.e-1,Ve.c[0]=S[(te=V%c)<0?c+te:te],C=!C||ee.cmp(Ve)>0?V>0?Ve:wt:ee,te=G,G=1/0,ee=new _e(le),j.c[0]=0;X=J(ee,Ve,0,1),M=P.plus(X.times(Tt)),M.cmp(C)!=1;)P=Tt,Tt=M,wt=j.plus(X.times(M=wt)),j=M,Ve=ee.minus(X.times(M=Ve)),ee=M;return M=J(C.minus(P),Tt,0,1),j=j.plus(M.times(wt)),P=P.plus(M.times(Tt)),j.s=wt.s=he.s,V*=2,w=J(wt,Tt,V,ne).minus(he).abs().cmp(J(j,P,V,ne).minus(he).abs())<1?[wt.toString(),Tt.toString()]:[j.toString(),P.toString()],G=te,w},O.toNumber=function(){return+this},O.toPower=O.pow=function(C,w){var P,M,V,te=a(C<0?-C:+C),ee=this;if(w!=null&&(E=23,w=new _e(w)),!Ee(C,-h,h,23,"exponent")&&(!isFinite(C)||te>h&&(C/=0)||parseFloat(C)!=C&&!(C=NaN))||C==0)return P=Math.pow(+ee,C),new _e(w?P%w:P);for(w?C>1&&ee.gt(H)&&ee.isInt()&&w.gt(H)&&w.isInt()?ee=ee.mod(w):(V=w,w=null):xe&&(P=r(xe/c+2)),M=new _e(H);;){if(te%2){if(M=M.times(ee),!M.c)break;P?M.c.length>P&&(M.c.length=P):w&&(M=M.mod(w))}if(te=a(te/2),!te)break;ee=ee.times(ee),P?ee.c&&ee.c.length>P&&(ee.c.length=P):w&&(ee=ee.mod(w))}return w?M:(C<0&&(M=H.div(M)),V?M.mod(V):P?Me(M,xe,ne):M)},O.toPrecision=function(C,w){return ut(this,C!=null&&Ee(C,1,d,24,"precision")?C|0:null,w,24)},O.toString=function(C){var w,P=this,M=P.s,V=P.e;return V===null?M?(w="Infinity",M<0&&(w="-"+w)):w="NaN":(w=m(P.c),C==null||!Ee(C,2,64,25,"base")?w=V<=W||V>=re?L(w,V):q(w,V):w=nt(q(w,V),C|0,10,M),M<0&&P.c[0]&&(w="-"+w)),w},O.truncated=O.trunc=function(){return Me(new _e(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var C,w=this,P=w.e;return P===null?w.toString():(C=m(w.c),C=P<=W||P>=re?L(C,P):q(C,P),w.s<0?"-"+C:C)},O.isBigNumber=!0,U!=null&&_e.config(U),_e}function p(U){var J=U|0;return U>0||U===J?J:J-1}function m(U){for(var J,ce,E=1,O=U.length,H=U[0]+"";Ere^ce?1:-1;for(ne=(W=O.length)<(re=H.length)?W:re,Z=0;ZH[Z]^ce?1:-1;return W==re?0:W>re^ce?1:-1}function b(U,J,ce){return(U=F(U))>=J&&U<=ce}function R(U){return Object.prototype.toString.call(U)=="[object Array]"}function B(U,J,ce){for(var E,O=[0],H,Z=0,ne=U.length;Zce-1&&(O[E+1]==null&&(O[E+1]=0),O[E+1]+=O[E]/ce|0,O[E]%=ce)}return O.reverse()}function L(U,J){return(U.length>1?U.charAt(0)+"."+U.slice(1):U)+(J<0?"e":"e+")+J}function q(U,J){var ce,E;if(J<0){for(E="0.";++J;E+="0");U=E+U}else if(ce=U.length,++J>ce){for(E="0",J-=ce;--J;E+="0");U+=E}else J>>0)-1;function a(o){for(var u=new n.default(o),l=void 0,s=void 0,y=[[new n.default(0),new n.default(1)],[new n.default(1),new n.default(0)]],c=2;!u.gt(r);){l=u.floor(),s=u.sub(l);var h=l.mul(y[c-1][0]).add(y[c-2][0]),S=l.mul(y[c-1][1]).add(y[c-2][1]);if(h.gt(r)||S.gt(r)||(y.push([h,S]),s.eq(0)))break;u=new n.default(1).div(s),c+=1}var f=e(y[y.length-1],2),d=f[0],v=f[1];if(d.isZero()||v.isZero())throw new Error("Couldn't find approximation");return[d.toNumber(),v.toNumber()]}return el}var jo={},h2;function ty(){if(h2)return jo;h2=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.LiquidityPoolAsset=void 0;var e=function(){function s(y,c){for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:{};r(a.balanceId);var o={};o.balanceId=t.default.ClaimableBalanceId.fromXDR(a.balanceId,"hex");var u=new t.default.ClaimClaimableBalanceOp(o),l={};return l.body=t.default.OperationBody.claimClaimableBalance(u),this.setSourceAccount(l,a),new t.default.Operation(l)}function r(a){if(typeof a!="string"||a.length!==8+64)throw new Error("must provide a valid claimable balance id")}return $o}var ll={},A2;function ZC(){if(A2)return ll;A2=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.clawbackClaimableBalance=r;var e=kt(),t=i(e),n=K5();function i(a){return a&&a.__esModule?a:{default:a}}function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,n.validateClaimableBalanceId)(a.balanceId);var o={balanceId:t.default.ClaimableBalanceId.fromXDR(a.balanceId,"hex")},u={body:t.default.OperationBody.clawbackClaimableBalance(new t.default.ClawbackClaimableBalanceOp(o))};return this.setSourceAccount(u,a),new t.default.Operation(u)}return ll}var cl={},T2;function JC(){if(T2)return cl;T2=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.inflation=i;var e=kt(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a={};return a.body=t.default.OperationBody.inflation(),this.setSourceAccount(a,r),new t.default.Operation(a)}return cl}var fl={},P2;function eO(){if(P2)return fl;P2=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.manageData=a;var e=Yr(),t=r(e),n=kt(),i=r(n);function r(o){return o&&o.__esModule?o:{default:o}}function a(o){var u={};if(!((0,t.default)(o.name)&&o.name.length<=64))throw new Error("name must be a string, up to 64 characters");if(u.dataName=o.name,!(0,t.default)(o.value)&&!Buffer.isBuffer(o.value)&&o.value!==null)throw new Error("value must be a string, Buffer or null");if((0,t.default)(o.value)?u.dataValue=Buffer.from(o.value):u.dataValue=o.value,u.dataValue!==null&&u.dataValue.length>64)throw new Error("value cannot be longer that 64 bytes");var l=new i.default.ManageDataOp(u),s={};return s.body=i.default.OperationBody.manageData(l),this.setSourceAccount(s,o),new i.default.Operation(s)}return fl}var dl={},C2;function tO(){if(C2)return dl;C2=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.manageBuyOffer=o;var e=Ir(),t=a(e),n=ti(),i=kt(),r=a(i);function a(u){return u&&u.__esModule?u:{default:u}}function o(u){var l={};if(l.selling=u.selling.toXDRObject(),l.buying=u.buying.toXDRObject(),!this.isValidAmount(u.buyAmount,!0))throw new TypeError(this.constructAmountRequirementsError("buyAmount"));if(l.buyAmount=this._toXDRAmount(u.buyAmount),(0,t.default)(u.price))throw new TypeError("price argument is required");l.price=this._toXDRPrice(u.price),(0,t.default)(u.offerId)?u.offerId="0":u.offerId=u.offerId.toString(),l.offerId=n.Hyper.fromString(u.offerId);var s=new r.default.ManageBuyOfferOp(l),y={};return y.body=r.default.OperationBody.manageBuyOffer(s),this.setSourceAccount(y,u),new r.default.Operation(y)}return dl}var hl={},O2;function rO(){if(O2)return hl;O2=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.pathPaymentStrictReceive=r;var e=kt(),t=i(e),n=In();function i(a){return a&&a.__esModule?a:{default:a}}function r(a){switch(!0){case!a.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(a.sendMax):throw new TypeError(this.constructAmountRequirementsError("sendMax"));case!a.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(a.destAmount):throw new TypeError(this.constructAmountRequirementsError("destAmount"))}var o={};o.sendAsset=a.sendAsset.toXDRObject(),o.sendMax=this._toXDRAmount(a.sendMax);try{o.destination=(0,n.decodeAddressToMuxedAccount)(a.destination)}catch{throw new Error("destination is invalid")}o.destAsset=a.destAsset.toXDRObject(),o.destAmount=this._toXDRAmount(a.destAmount);var u=a.path?a.path:[];o.path=u.map(function(y){return y.toXDRObject()});var l=new t.default.PathPaymentStrictReceiveOp(o),s={};return s.body=t.default.OperationBody.pathPaymentStrictReceive(l),this.setSourceAccount(s,a),new t.default.Operation(s)}return hl}var pl={},R2;function nO(){if(R2)return pl;R2=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.pathPaymentStrictSend=r;var e=kt(),t=i(e),n=In();function i(a){return a&&a.__esModule?a:{default:a}}function r(a){switch(!0){case!a.sendAsset:throw new Error("Must specify a send asset");case!this.isValidAmount(a.sendAmount):throw new TypeError(this.constructAmountRequirementsError("sendAmount"));case!a.destAsset:throw new Error("Must provide a destAsset for a payment operation");case!this.isValidAmount(a.destMin):throw new TypeError(this.constructAmountRequirementsError("destMin"))}var o={};o.sendAsset=a.sendAsset.toXDRObject(),o.sendAmount=this._toXDRAmount(a.sendAmount);try{o.destination=(0,n.decodeAddressToMuxedAccount)(a.destination)}catch{throw new Error("destination is invalid")}o.destAsset=a.destAsset.toXDRObject(),o.destMin=this._toXDRAmount(a.destMin);var u=a.path?a.path:[];o.path=u.map(function(y){return y.toXDRObject()});var l=new t.default.PathPaymentStrictSendOp(o),s={};return s.body=t.default.OperationBody.pathPaymentStrictSend(l),this.setSourceAccount(s,a),new t.default.Operation(s)}return pl}var vl={},I2;function iO(){if(I2)return vl;I2=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.payment=r;var e=kt(),t=i(e),n=In();function i(a){return a&&a.__esModule?a:{default:a}}function r(a){if(!a.asset)throw new Error("Must provide an asset for a payment operation");if(!this.isValidAmount(a.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));var o={};try{o.destination=(0,n.decodeAddressToMuxedAccount)(a.destination)}catch{throw new Error("destination is invalid")}o.asset=a.asset.toXDRObject(),o.amount=this._toXDRAmount(a.amount);var u=new t.default.PaymentOp(o),l={};return l.body=t.default.OperationBody.payment(u),this.setSourceAccount(l,a),new t.default.Operation(l)}return vl}var ml={},q2;function aO(){if(q2)return ml;q2=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.setOptions=y;var e=Ir(),t=l(e),n=Yr(),i=l(n),r=kt(),a=l(r),o=zn(),u=$r();function l(c){return c&&c.__esModule?c:{default:c}}function s(c,h){if(c>=0&&c<=255)return!0;throw new Error(h+" value must be between 0 and 255")}function y(c){var h={};if(c.inflationDest){if(!u.StrKey.isValidEd25519PublicKey(c.inflationDest))throw new Error("inflationDest is invalid");h.inflationDest=o.Keypair.fromPublicKey(c.inflationDest).xdrAccountId()}if(h.clearFlags=this._checkUnsignedIntValue("clearFlags",c.clearFlags),h.setFlags=this._checkUnsignedIntValue("setFlags",c.setFlags),h.masterWeight=this._checkUnsignedIntValue("masterWeight",c.masterWeight,s),h.lowThreshold=this._checkUnsignedIntValue("lowThreshold",c.lowThreshold,s),h.medThreshold=this._checkUnsignedIntValue("medThreshold",c.medThreshold,s),h.highThreshold=this._checkUnsignedIntValue("highThreshold",c.highThreshold,s),!(0,t.default)(c.homeDomain)&&!(0,i.default)(c.homeDomain))throw new TypeError("homeDomain argument must be of type String");if(h.homeDomain=c.homeDomain,c.signer){var S=this._checkUnsignedIntValue("signer.weight",c.signer.weight,s),f=void 0,d=0;if(c.signer.ed25519PublicKey){if(!u.StrKey.isValidEd25519PublicKey(c.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var v=u.StrKey.decodeEd25519PublicKey(c.signer.ed25519PublicKey);f=new a.default.SignerKey.signerKeyTypeEd25519(v),d+=1}if(c.signer.preAuthTx){if((0,i.default)(c.signer.preAuthTx)&&(c.signer.preAuthTx=Buffer.from(c.signer.preAuthTx,"hex")),!(Buffer.isBuffer(c.signer.preAuthTx)&&c.signer.preAuthTx.length===32))throw new Error("signer.preAuthTx must be 32 bytes Buffer.");f=new a.default.SignerKey.signerKeyTypePreAuthTx(c.signer.preAuthTx),d+=1}if(c.signer.sha256Hash){if((0,i.default)(c.signer.sha256Hash)&&(c.signer.sha256Hash=Buffer.from(c.signer.sha256Hash,"hex")),!(Buffer.isBuffer(c.signer.sha256Hash)&&c.signer.sha256Hash.length===32))throw new Error("signer.sha256Hash must be 32 bytes Buffer.");f=new a.default.SignerKey.signerKeyTypeHashX(c.signer.sha256Hash),d+=1}if(c.signer.ed25519SignedPayload){if(!u.StrKey.isValidSignedPayload(c.signer.ed25519SignedPayload))throw new Error("signer.ed25519SignedPayload is invalid.");var p=u.StrKey.decodeSignedPayload(c.signer.ed25519SignedPayload),m=a.default.SignerKeyEd25519SignedPayload.fromXDR(p);f=a.default.SignerKey.signerKeyTypeEd25519SignedPayload(m),d+=1}if(d!==1)throw new Error("Signer object must contain exactly one of signer.ed25519PublicKey, signer.sha256Hash, signer.preAuthTx.");h.signer=new a.default.Signer({key:f,weight:S})}var g=new a.default.SetOptionsOp(h),b={};return b.body=a.default.OperationBody.setOptions(g),this.setSourceAccount(b,c),new a.default.Operation(b)}return ml}var gl={},B2;function oO(){if(B2)return gl;B2=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.beginSponsoringFutureReserves=a;var e=kt(),t=r(e),n=$r(),i=zn();function r(o){return o&&o.__esModule?o:{default:o}}function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!n.StrKey.isValidEd25519PublicKey(o.sponsoredId))throw new Error("sponsoredId is invalid");var u=new t.default.BeginSponsoringFutureReservesOp({sponsoredId:i.Keypair.fromPublicKey(o.sponsoredId).xdrAccountId()}),l={};return l.body=t.default.OperationBody.beginSponsoringFutureReserves(u),this.setSourceAccount(l,o),new t.default.Operation(l)}return gl}var yl={},M2;function sO(){if(M2)return yl;M2=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.endSponsoringFutureReserves=i;var e=kt(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a={};return a.body=t.default.OperationBody.endSponsoringFutureReserves(),this.setSourceAccount(a,r),new t.default.Operation(a)}return yl}var Mn={},L2;function uO(){if(L2)return Mn;L2=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.revokeAccountSponsorship=s,Mn.revokeTrustlineSponsorship=y,Mn.revokeOfferSponsorship=c,Mn.revokeDataSponsorship=h,Mn.revokeClaimableBalanceSponsorship=S,Mn.revokeLiquidityPoolSponsorship=f,Mn.revokeSignerSponsorship=d;var e=Yr(),t=l(e),n=kt(),i=l(n),r=$r(),a=zn(),o=ia(),u=ry();function l(v){return v&&v.__esModule?v:{default:v}}function s(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.StrKey.isValidEd25519PublicKey(v.account))throw new Error("account is invalid");var p=i.default.LedgerKey.account(new i.default.LedgerKeyAccount({accountId:a.Keypair.fromPublicKey(v.account).xdrAccountId()})),m=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),g={};return g.body=i.default.OperationBody.revokeSponsorship(m),this.setSourceAccount(g,v),new i.default.Operation(g)}function y(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.StrKey.isValidEd25519PublicKey(v.account))throw new Error("account is invalid");var p=void 0;if(v.asset instanceof o.Asset)p=v.asset.toTrustLineXDRObject();else if(v.asset instanceof u.LiquidityPoolId)p=v.asset.toXDRObject();else throw new TypeError("asset must be an Asset or LiquidityPoolId");var m=i.default.LedgerKey.trustline(new i.default.LedgerKeyTrustLine({accountId:a.Keypair.fromPublicKey(v.account).xdrAccountId(),asset:p})),g=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(m),b={};return b.body=i.default.OperationBody.revokeSponsorship(g),this.setSourceAccount(b,v),new i.default.Operation(b)}function c(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.StrKey.isValidEd25519PublicKey(v.seller))throw new Error("seller is invalid");if(!(0,t.default)(v.offerId))throw new Error("offerId is invalid");var p=i.default.LedgerKey.offer(new i.default.LedgerKeyOffer({sellerId:a.Keypair.fromPublicKey(v.seller).xdrAccountId(),offerId:i.default.Int64.fromString(v.offerId)})),m=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),g={};return g.body=i.default.OperationBody.revokeSponsorship(m),this.setSourceAccount(g,v),new i.default.Operation(g)}function h(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.StrKey.isValidEd25519PublicKey(v.account))throw new Error("account is invalid");if(!(0,t.default)(v.name)||v.name.length>64)throw new Error("name must be a string, up to 64 characters");var p=i.default.LedgerKey.data(new i.default.LedgerKeyData({accountId:a.Keypair.fromPublicKey(v.account).xdrAccountId(),dataName:v.name})),m=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),g={};return g.body=i.default.OperationBody.revokeSponsorship(m),this.setSourceAccount(g,v),new i.default.Operation(g)}function S(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(0,t.default)(v.balanceId))throw new Error("balanceId is invalid");var p=i.default.LedgerKey.claimableBalance(new i.default.LedgerKeyClaimableBalance({balanceId:i.default.ClaimableBalanceId.fromXDR(v.balanceId,"hex")})),m=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),g={};return g.body=i.default.OperationBody.revokeSponsorship(m),this.setSourceAccount(g,v),new i.default.Operation(g)}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(0,t.default)(v.liquidityPoolId))throw new Error("liquidityPoolId is invalid");var p=i.default.LedgerKey.liquidityPool(new i.default.LedgerKeyLiquidityPool({liquidityPoolId:i.default.PoolId.fromXDR(v.liquidityPoolId,"hex")})),m=i.default.RevokeSponsorshipOp.revokeSponsorshipLedgerEntry(p),g={body:i.default.OperationBody.revokeSponsorship(m)};return this.setSourceAccount(g,v),new i.default.Operation(g)}function d(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.StrKey.isValidEd25519PublicKey(v.account))throw new Error("account is invalid");var p=void 0;if(v.signer.ed25519PublicKey){if(!r.StrKey.isValidEd25519PublicKey(v.signer.ed25519PublicKey))throw new Error("signer.ed25519PublicKey is invalid.");var m=r.StrKey.decodeEd25519PublicKey(v.signer.ed25519PublicKey);p=new i.default.SignerKey.signerKeyTypeEd25519(m)}else if(v.signer.preAuthTx){var g=void 0;if((0,t.default)(v.signer.preAuthTx)?g=Buffer.from(v.signer.preAuthTx,"hex"):g=v.signer.preAuthTx,!(Buffer.isBuffer(g)&&g.length===32))throw new Error("signer.preAuthTx must be 32 bytes Buffer.");p=new i.default.SignerKey.signerKeyTypePreAuthTx(g)}else if(v.signer.sha256Hash){var b=void 0;if((0,t.default)(v.signer.sha256Hash)?b=Buffer.from(v.signer.sha256Hash,"hex"):b=v.signer.sha256Hash,!(Buffer.isBuffer(b)&&b.length===32))throw new Error("signer.sha256Hash must be 32 bytes Buffer.");p=new i.default.SignerKey.signerKeyTypeHashX(b)}else throw new Error("signer is invalid");var R=new i.default.RevokeSponsorshipOpSigner({accountId:a.Keypair.fromPublicKey(v.account).xdrAccountId(),signerKey:p}),B=i.default.RevokeSponsorshipOp.revokeSponsorshipSigner(R),L={};return L.body=i.default.OperationBody.revokeSponsorship(B),this.setSourceAccount(L,v),new i.default.Operation(L)}return Mn}var wl={},N2;function lO(){if(N2)return wl;N2=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.clawback=r;var e=kt(),t=i(e),n=In();function i(a){return a&&a.__esModule?a:{default:a}}function r(a){var o={};if(!this.isValidAmount(a.amount))throw new TypeError(this.constructAmountRequirementsError("amount"));o.amount=this._toXDRAmount(a.amount),o.asset=a.asset.toXDRObject();try{o.from=(0,n.decodeAddressToMuxedAccount)(a.from)}catch{throw new Error("from address is invalid")}var u={body:t.default.OperationBody.clawback(new t.default.ClawbackOp(o))};return this.setSourceAccount(u,a),new t.default.Operation(u)}return wl}var _l={},F2;function cO(){if(F2)return _l;F2=1,Object.defineProperty(_l,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};_l.setTrustLineFlags=a;var t=kt(),n=r(t),i=zn();function r(o){return o&&o.__esModule?o:{default:o}}function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u={};if(e(o.flags)!=="object"||Object.keys(o.flags).length===0)throw new Error("opts.flags must be a map of boolean flags to modify");var l={authorized:n.default.TrustLineFlags.authorizedFlag(),authorizedToMaintainLiabilities:n.default.TrustLineFlags.authorizedToMaintainLiabilitiesFlag(),clawbackEnabled:n.default.TrustLineFlags.trustlineClawbackEnabledFlag()},s=0,y=0;Object.keys(o.flags).forEach(function(h){if(!Object.prototype.hasOwnProperty.call(l,h))throw new Error("unsupported flag name specified: "+h);var S=o.flags[h],f=l[h].value;S===!0?y|=f:S===!1&&(s|=f)}),u.trustor=i.Keypair.fromPublicKey(o.trustor).xdrAccountId(),u.asset=o.asset.toXDRObject(),u.clearFlags=s,u.setFlags=y;var c={body:n.default.OperationBody.setTrustLineFlags(new n.default.SetTrustLineFlagsOp(u))};return this.setSourceAccount(c,o),new n.default.Operation(c)}return _l}var xl={},D2;function fO(){if(D2)return xl;D2=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.liquidityPoolDeposit=a;var e=Ir(),t=r(e),n=kt(),i=r(n);function r(o){return o&&o.__esModule?o:{default:o}}function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.liquidityPoolId,l=o.maxAmountA,s=o.maxAmountB,y=o.minPrice,c=o.maxPrice,h={};if(!u)throw new TypeError("liquidityPoolId argument is required");if(h.liquidityPoolId=i.default.PoolId.fromXDR(u,"hex"),!this.isValidAmount(l,!0))throw new TypeError("maxAmountA argument is required");if(h.maxAmountA=this._toXDRAmount(l),!this.isValidAmount(s,!0))throw new TypeError("maxAmountB argument is required");if(h.maxAmountB=this._toXDRAmount(s),(0,t.default)(y))throw new TypeError("minPrice argument is required");if(h.minPrice=this._toXDRPrice(y),(0,t.default)(c))throw new TypeError("maxPrice argument is required");h.maxPrice=this._toXDRPrice(c);var S=new i.default.LiquidityPoolDepositOp(h),f={body:i.default.OperationBody.liquidityPoolDeposit(S)};return this.setSourceAccount(f,o),new i.default.Operation(f)}return xl}var bl={},U2;function dO(){if(U2)return bl;U2=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.liquidityPoolWithdraw=i;var e=kt(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a={};if(!r.liquidityPoolId)throw new TypeError("liquidityPoolId argument is required");if(a.liquidityPoolId=t.default.PoolId.fromXDR(r.liquidityPoolId,"hex"),!this.isValidAmount(r.amount))throw new TypeError("amount argument is required");if(a.amount=this._toXDRAmount(r.amount),!this.isValidAmount(r.minAmountA,!0))throw new TypeError("minAmountA argument is required");if(a.minAmountA=this._toXDRAmount(r.minAmountA),!this.isValidAmount(r.minAmountB,!0))throw new TypeError("minAmountB argument is required");a.minAmountB=this._toXDRAmount(r.minAmountB);var o=new t.default.LiquidityPoolWithdrawOp(a),u={body:t.default.OperationBody.liquidityPoolWithdraw(o)};return this.setSourceAccount(u,r),new t.default.Operation(u)}return bl}var j2;function hO(){return j2||(j2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=$C();Object.defineProperty(e,"manageSellOffer",{enumerable:!0,get:function(){return t.manageSellOffer}});var n=HC();Object.defineProperty(e,"createPassiveSellOffer",{enumerable:!0,get:function(){return n.createPassiveSellOffer}});var i=KC();Object.defineProperty(e,"accountMerge",{enumerable:!0,get:function(){return i.accountMerge}});var r=XC();Object.defineProperty(e,"allowTrust",{enumerable:!0,get:function(){return r.allowTrust}});var a=QC();Object.defineProperty(e,"bumpSequence",{enumerable:!0,get:function(){return a.bumpSequence}});var o=WC();Object.defineProperty(e,"changeTrust",{enumerable:!0,get:function(){return o.changeTrust}});var u=GC();Object.defineProperty(e,"createAccount",{enumerable:!0,get:function(){return u.createAccount}});var l=YC();Object.defineProperty(e,"createClaimableBalance",{enumerable:!0,get:function(){return l.createClaimableBalance}});var s=K5();Object.defineProperty(e,"claimClaimableBalance",{enumerable:!0,get:function(){return s.claimClaimableBalance}});var y=ZC();Object.defineProperty(e,"clawbackClaimableBalance",{enumerable:!0,get:function(){return y.clawbackClaimableBalance}});var c=JC();Object.defineProperty(e,"inflation",{enumerable:!0,get:function(){return c.inflation}});var h=eO();Object.defineProperty(e,"manageData",{enumerable:!0,get:function(){return h.manageData}});var S=tO();Object.defineProperty(e,"manageBuyOffer",{enumerable:!0,get:function(){return S.manageBuyOffer}});var f=rO();Object.defineProperty(e,"pathPaymentStrictReceive",{enumerable:!0,get:function(){return f.pathPaymentStrictReceive}});var d=nO();Object.defineProperty(e,"pathPaymentStrictSend",{enumerable:!0,get:function(){return d.pathPaymentStrictSend}});var v=iO();Object.defineProperty(e,"payment",{enumerable:!0,get:function(){return v.payment}});var p=aO();Object.defineProperty(e,"setOptions",{enumerable:!0,get:function(){return p.setOptions}});var m=oO();Object.defineProperty(e,"beginSponsoringFutureReserves",{enumerable:!0,get:function(){return m.beginSponsoringFutureReserves}});var g=sO();Object.defineProperty(e,"endSponsoringFutureReserves",{enumerable:!0,get:function(){return g.endSponsoringFutureReserves}});var b=uO();Object.defineProperty(e,"revokeAccountSponsorship",{enumerable:!0,get:function(){return b.revokeAccountSponsorship}}),Object.defineProperty(e,"revokeTrustlineSponsorship",{enumerable:!0,get:function(){return b.revokeTrustlineSponsorship}}),Object.defineProperty(e,"revokeOfferSponsorship",{enumerable:!0,get:function(){return b.revokeOfferSponsorship}}),Object.defineProperty(e,"revokeDataSponsorship",{enumerable:!0,get:function(){return b.revokeDataSponsorship}}),Object.defineProperty(e,"revokeClaimableBalanceSponsorship",{enumerable:!0,get:function(){return b.revokeClaimableBalanceSponsorship}}),Object.defineProperty(e,"revokeLiquidityPoolSponsorship",{enumerable:!0,get:function(){return b.revokeLiquidityPoolSponsorship}}),Object.defineProperty(e,"revokeSignerSponsorship",{enumerable:!0,get:function(){return b.revokeSignerSponsorship}});var R=lO();Object.defineProperty(e,"clawback",{enumerable:!0,get:function(){return R.clawback}});var B=cO();Object.defineProperty(e,"setTrustLineFlags",{enumerable:!0,get:function(){return B.setTrustLineFlags}});var L=fO();Object.defineProperty(e,"liquidityPoolDeposit",{enumerable:!0,get:function(){return L.liquidityPoolDeposit}});var q=dO();Object.defineProperty(e,"liquidityPoolWithdraw",{enumerable:!0,get:function(){return q.liquidityPoolWithdraw}})}(Ip)),Ip}var z2;function X5(){if(z2)return en;z2=1,Object.defineProperty(en,"__esModule",{value:!0}),en.Operation=en.AuthClawbackEnabledFlag=en.AuthImmutableFlag=en.AuthRevocableFlag=en.AuthRequiredFlag=void 0;var e=function(){function W(re,ae){for(var G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;if(!(0,s.default)(ae))return!1;var se=void 0;try{se=new i.default(ae)}catch{return!1}return!(!G&&se.isZero()||se.isNegative()||se.times(ce).greaterThan(new i.default(E).toString())||se.decimalPlaces()>7||se.isNaN()||!se.isFinite())}},{key:"constructAmountRequirementsError",value:function(ae){return ae+" argument must be of type String, represent a positive number and have at most 7 digits after the decimal"}},{key:"_checkUnsignedIntValue",value:function(ae,G){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(0,u.default)(G))switch((0,s.default)(G)&&(G=parseFloat(G)),!0){case(!(0,c.default)(G)||!(0,S.default)(G)||G%1!==0):throw new Error(ae+" value is invalid");case G<0:throw new Error(ae+" value must be unsigned");case(!se||se&&se(G,ae)):return G;default:throw new Error(ae+" value is invalid")}}},{key:"_toXDRAmount",value:function(ae){var G=new i.default(ae).mul(ce);return t.Hyper.fromString(G.toString())}},{key:"_fromXDRAmount",value:function(ae){return new i.default(ae).div(ce).toFixed(7)}},{key:"_fromXDRPrice",value:function(ae){var G=new i.default(ae.n());return G.div(new i.default(ae.d())).toString()}},{key:"_toXDRPrice",value:function(ae){var G=void 0;if(ae.n&&ae.d)G=new R.default.Price(ae);else{ae=new i.default(ae);var se=(0,f.best_r)(ae);G=new R.default.Price({n:parseInt(se[0],10),d:parseInt(se[1],10)})}if(G.n()<0||G.d()<0)throw new Error("price must be positive");return G}}]),W}();function H(W,re){switch(W.switch().name){case"revokeSponsorshipLedgerEntry":{var ae=W.ledgerKey();switch(ae.switch().name){case R.default.LedgerEntryType.account().name:{re.type="revokeAccountSponsorship",re.account=ne(ae.account().accountId());break}case R.default.LedgerEntryType.trustline().name:{re.type="revokeTrustlineSponsorship",re.account=ne(ae.trustLine().accountId());var G=ae.trustLine().asset();switch(G.switch()){case R.default.AssetType.assetTypePoolShare():re.asset=g.LiquidityPoolId.fromOperation(G);break;default:re.asset=d.Asset.fromOperation(G);break}break}case R.default.LedgerEntryType.offer().name:{re.type="revokeOfferSponsorship",re.seller=ne(ae.offer().sellerId()),re.offerId=ae.offer().offerId().toString();break}case R.default.LedgerEntryType.data().name:{re.type="revokeDataSponsorship",re.account=ne(ae.data().accountId()),re.name=ae.data().dataName().toString("ascii");break}case R.default.LedgerEntryType.claimableBalance().name:{re.type="revokeClaimableBalanceSponsorship",re.balanceId=ae.claimableBalance().balanceId().toXDR("hex");break}case R.default.LedgerEntryType.liquidityPool().name:{re.type="revokeLiquidityPoolSponsorship",re.liquidityPoolId=ae.liquidityPool().liquidityPoolId().toString("hex");break}default:throw new Error("Unknown ledgerKey: "+W.switch().name)}break}case"revokeSponsorshipSigner":{re.type="revokeSignerSponsorship",re.account=ne(W.signer().accountId()),re.signer=Z(W.signer().signerKey());break}default:throw new Error("Unknown revokeSponsorship: "+W.switch().name)}}function Z(W){var re={};switch(W.switch().name){case R.default.SignerKeyType.signerKeyTypeEd25519().name:{re.ed25519PublicKey=m.StrKey.encodeEd25519PublicKey(W.ed25519());break}case R.default.SignerKeyType.signerKeyTypePreAuthTx().name:{re.preAuthTx=W.preAuthTx().toString("hex");break}case R.default.SignerKeyType.signerKeyTypeHashX().name:{re.sha256Hash=W.hashX().toString("hex");break}default:throw new Error("Unknown signerKey: "+W.switch().name)}return re}function ne(W){return m.StrKey.encodeEd25519PublicKey(W.ed25519())}return O.accountMerge=L.accountMerge,O.allowTrust=L.allowTrust,O.bumpSequence=L.bumpSequence,O.changeTrust=L.changeTrust,O.createAccount=L.createAccount,O.createClaimableBalance=L.createClaimableBalance,O.claimClaimableBalance=L.claimClaimableBalance,O.clawbackClaimableBalance=L.clawbackClaimableBalance,O.createPassiveSellOffer=L.createPassiveSellOffer,O.inflation=L.inflation,O.manageData=L.manageData,O.manageSellOffer=L.manageSellOffer,O.manageBuyOffer=L.manageBuyOffer,O.pathPaymentStrictReceive=L.pathPaymentStrictReceive,O.pathPaymentStrictSend=L.pathPaymentStrictSend,O.payment=L.payment,O.setOptions=L.setOptions,O.beginSponsoringFutureReserves=L.beginSponsoringFutureReserves,O.endSponsoringFutureReserves=L.endSponsoringFutureReserves,O.revokeAccountSponsorship=L.revokeAccountSponsorship,O.revokeTrustlineSponsorship=L.revokeTrustlineSponsorship,O.revokeOfferSponsorship=L.revokeOfferSponsorship,O.revokeDataSponsorship=L.revokeDataSponsorship,O.revokeClaimableBalanceSponsorship=L.revokeClaimableBalanceSponsorship,O.revokeLiquidityPoolSponsorship=L.revokeLiquidityPoolSponsorship,O.revokeSignerSponsorship=L.revokeSignerSponsorship,O.clawback=L.clawback,O.setTrustLineFlags=L.setTrustLineFlags,O.liquidityPoolDeposit=L.liquidityPoolDeposit,O.liquidityPoolWithdraw=L.liquidityPoolWithdraw,en}var Fr={},V2;function ny(){if(V2)return Fr;V2=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.Memo=Fr.MemoReturn=Fr.MemoHash=Fr.MemoText=Fr.MemoID=Fr.MemoNone=void 0;var e=function(){function b(R,B){for(var L=0;L1&&arguments[1]!==void 0?arguments[1]:null;switch(S(this,b),this._type=R,this._value=B,this._type){case f:break;case d:b._validateIdValue(B);break;case v:b._validateTextValue(B);break;case p:case m:b._validateHashValue(B),(0,r.default)(B)&&(this._value=Buffer.from(B,"hex"));break;default:throw new Error("Invalid memo type")}}return e(b,[{key:"toXDRObject",value:function(){switch(this._type){case f:return c.default.Memo.memoNone();case d:return c.default.Memo.memoId(u.UnsignedHyper.fromString(this._value));case v:return c.default.Memo.memoText(this._value);case p:return c.default.Memo.memoHash(this._value);case m:return c.default.Memo.memoReturn(this._value);default:return null}}},{key:"type",get:function(){return(0,o.default)(this._type)},set:function(B){throw new Error("Memo is immutable")}},{key:"value",get:function(){switch(this._type){case f:return null;case d:case v:return(0,o.default)(this._value);case p:case m:return Buffer.from(this._value);default:throw new Error("Invalid memo type")}},set:function(B){throw new Error("Memo is immutable")}}],[{key:"_validateIdValue",value:function(B){var L=new Error("Expects a int64 as a string. Got "+B);if(!(0,r.default)(B))throw L;var q=void 0;try{q=new s.default(B)}catch{throw L}if(!q.isFinite()||q.isNaN())throw L}},{key:"_validateTextValue",value:function(B){if(!c.default.Memo.armTypeForArm("text").isValid(B))throw new Error("Expects string, array or buffer, max 28 bytes")}},{key:"_validateHashValue",value:function(B){var L=new Error("Expects a 32 byte hash value or hex encoded string. Got "+B);if(B===null||(0,n.default)(B))throw L;var q=void 0;if((0,r.default)(B)){if(!/^[0-9A-Fa-f]{64}$/g.test(B))throw L;q=Buffer.from(B,"hex")}else if(Buffer.isBuffer(B))q=Buffer.from(B);else throw L;if(!q.length||q.length!==32)throw L}},{key:"none",value:function(){return new b(f)}},{key:"text",value:function(B){return new b(v,B)}},{key:"id",value:function(B){return new b(d,B)}},{key:"hash",value:function(B){return new b(p,B)}},{key:"return",value:function(B){return new b(m,B)}},{key:"fromXDRObject",value:function(B){switch(B.arm()){case"id":return b.id(B.value().toString());case"text":return b.text(B.value());case"hash":return b.hash(B.value());case"retHash":return b.return(B.value())}if(typeof B.value()>"u")return b.none();throw new Error("Unknown type")}}]),b}();return Fr.Memo=g,Fr}var $2;function iy(){if($2)return Uo;$2=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.Transaction=void 0;var e=function(){function d(v,p){for(var m=0;m=this.operations.length)throw new RangeError("invalid operation index");var g=this.operations[m];try{g=u.Operation.createClaimableBalance(g)}catch(q){throw new TypeError("expected createClaimableBalance, got "+g.type+": "+q)}var b=o.StrKey.decodeEd25519PublicKey((0,y.extractBaseAddress)(this.source)),R=r.default.HashIdPreimage.envelopeTypeOpId(new r.default.HashIdPreimageOperationId({sourceAccount:r.default.AccountId.publicKeyTypeEd25519(b),seqNum:r.default.SequenceNumber.fromString(this.sequence),opNum:m})),B=(0,a.hash)(R.toXDR("raw")),L=r.default.ClaimableBalanceId.claimableBalanceIdTypeV0(B);return L.toXDR("hex")}},{key:"timeBounds",get:function(){return this._timeBounds},set:function(m){throw new Error("Transaction is immutable")}},{key:"ledgerBounds",get:function(){return this._ledgerBounds},set:function(m){throw new Error("Transaction is immutable")}},{key:"minAccountSequence",get:function(){return this._minAccountSequence},set:function(m){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceAge",get:function(){return this._minAccountSequenceAge},set:function(m){throw new Error("Transaction is immutable")}},{key:"minAccountSequenceLedgerGap",get:function(){return this._minAccountSequenceLedgerGap},set:function(m){throw new Error("Transaction is immutable")}},{key:"extraSigners",get:function(){return this._extraSigners},set:function(m){throw new Error("Transaction is immutable")}},{key:"sequence",get:function(){return this._sequence},set:function(m){throw new Error("Transaction is immutable")}},{key:"source",get:function(){return this._source},set:function(m){throw new Error("Transaction is immutable")}},{key:"operations",get:function(){return this._operations},set:function(m){throw new Error("Transaction is immutable")}},{key:"memo",get:function(){return l.Memo.fromXDRObject(this._memo)},set:function(m){throw new Error("Transaction is immutable")}}]),v}(s.TransactionBase),Uo}var Ho={},H2;function Q5(){if(H2)return Ho;H2=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.FeeBumpTransaction=void 0;var e=function(){function c(h,S){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:{};if(b(this,L),!q)throw new Error("must specify source account for the transaction");if((0,u.default)(F.fee))throw new Error("must specify fee for the transaction (in stroops)");this.source=q,this.operations=[],this.baseFee=F.fee,this.timebounds=(0,a.default)(F.timebounds)||null,this.ledgerbounds=(0,a.default)(F.ledgerbounds)||null,this.minAccountSequence=F.minAccountSequence||null,this.minAccountSequenceAge=F.minAccountSequenceAge||null,this.minAccountSequenceLedgerGap=F.minAccountSequenceLedgerGap||null,this.extraSigners=(0,a.default)(F.extraSigners)||null,this.memo=F.memo||p.Memo.none(),this.networkPassphrase=F.networkPassphrase||null}return e(L,[{key:"addOperation",value:function(F){return this.operations.push(F),this}},{key:"addMemo",value:function(F){return this.memo=F,this}},{key:"setTimeout",value:function(F){if(this.timebounds!==null&&this.timebounds.maxTime>0)throw new Error("TimeBounds.max_time has been already set - setting timeout would overwrite it.");if(F<0)throw new Error("timeout cannot be negative");if(F>0){var U=Math.floor(Date.now()/1e3)+F;this.timebounds===null?this.timebounds={minTime:0,maxTime:U}:this.timebounds={minTime:this.timebounds.minTime,maxTime:U}}else this.timebounds={minTime:0,maxTime:0};return this}},{key:"setTimebounds",value:function(F,U){if(typeof F=="number"&&(F=new Date(F*1e3)),typeof U=="number"&&(U=new Date(U*1e3)),this.timebounds!==null)throw new Error("TimeBounds has been already set - setting timebounds would overwrite it.");var J=Math.floor(F.valueOf()/1e3),ce=Math.floor(U.valueOf()/1e3);if(J<0)throw new Error("min_time cannot be negative");if(ce<0)throw new Error("max_time cannot be negative");if(ce>0&&J>ce)throw new Error("min_time cannot be greater than max_time");return this.timebounds={minTime:J,maxTime:ce},this}},{key:"setLedgerbounds",value:function(F,U){if(this.ledgerbounds!==null)throw new Error("LedgerBounds has been already set - setting ledgerbounds would overwrite it.");if(F<0)throw new Error("min_ledger cannot be negative");if(U<0)throw new Error("max_ledger cannot be negative");if(U>0&&F>U)throw new Error("min_ledger cannot be greater than max_ledger");return this.ledgerbounds={minLedger:F,maxLedger:U},this}},{key:"setMinAccountSequence",value:function(F){if(this.minAccountSequence!==null)throw new Error("min_account_sequence has been already set - setting min_account_sequence would overwrite it.");return this.minAccountSequence=F,this}},{key:"setMinAccountSequenceAge",value:function(F){if(typeof F!="number")throw new Error("min_account_sequence_age must be a number");if(this.minAccountSequenceAge!==null)throw new Error("min_account_sequence_age has been already set - setting min_account_sequence_age would overwrite it.");if(F<0)throw new Error("min_account_sequence_age cannot be negative");return this.minAccountSequenceAge=F,this}},{key:"setMinAccountSequenceLedgerGap",value:function(F){if(this.minAccountSequenceLedgerGap!==null)throw new Error("min_account_sequence_ledger_gap has been already set - setting min_account_sequence_ledger_gap would overwrite it.");if(F<0)throw new Error("min_account_sequence_ledger_gap cannot be negative");return this.minAccountSequenceLedgerGap=F,this}},{key:"setExtraSigners",value:function(F){if(!(0,c.default)(F))throw new Error("extra_signers must be an array of strings.");if(this.extraSigners!==null)throw new Error("extra_signers has been already set - setting extra_signers would overwrite it.");if(F.length>2)throw new Error("extra_signers cannot be longer than 2 elements.");return this.extraSigners=(0,a.default)(F),this}},{key:"setNetworkPassphrase",value:function(F){return this.networkPassphrase=F,this}},{key:"build",value:function(){var F=new i.default(this.source.sequenceNumber()).add(1),U=new i.default(this.baseFee).mul(this.operations.length).toNumber(),J={fee:U,seqNum:S.default.SequenceNumber.fromString(F.toString()),memo:this.memo?this.memo.toXDRObject():null};if(this.timebounds===null||typeof this.timebounds.minTime>"u"||typeof this.timebounds.maxTime>"u")throw new Error("TimeBounds has to be set or you must call setTimeout(TimeoutInfinite).");B(this.timebounds.minTime)&&(this.timebounds.minTime=this.timebounds.minTime.getTime()/1e3),B(this.timebounds.maxTime)&&(this.timebounds.maxTime=this.timebounds.maxTime.getTime()/1e3),this.timebounds.minTime=t.UnsignedHyper.fromString(this.timebounds.minTime.toString()),this.timebounds.maxTime=t.UnsignedHyper.fromString(this.timebounds.maxTime.toString());var ce=new S.default.TimeBounds(this.timebounds);if(this.hasV2Preconditions()){var E=null;this.ledgerbounds!==null&&(E=new S.default.LedgerBounds(this.ledgerbounds));var O=this.minAccountSequence||"0";O=S.default.SequenceNumber.fromString(O);var H=t.UnsignedHyper.fromString(this.minAccountSequenceAge!==null?this.minAccountSequenceAge.toString():"0"),Z=this.minAccountSequenceLedgerGap||0,ne=this.extraSigners!==null?this.extraSigners.map(v.SignerKey.decodeAddress):[];J.cond=S.default.Preconditions.precondV2(new S.default.PreconditionsV2({timeBounds:ce,ledgerBounds:E,minSeqNum:O,minSeqAge:H,minSeqLedgerGap:Z,extraSigners:ne}))}else J.cond=S.default.Preconditions.precondTime(ce);J.sourceAccount=(0,m.decodeAddressToMuxedAccount)(this.source.accountId()),J.ext=new S.default.TransactionExt(0);var W=new S.default.Transaction(J);W.operations(this.operations);var re=new S.default.TransactionEnvelope.envelopeTypeTx(new S.default.TransactionV1Envelope({tx:W})),ae=new f.Transaction(re,this.networkPassphrase);return this.source.incrementSequenceNumber(),ae}},{key:"hasV2Preconditions",value:function(){return this.ledgerbounds!==null||this.minAccountSequence!==null||this.minAccountSequenceAge!==null||this.minAccountSequenceLedgerGap!==null||this.extraSigners!==null&&this.extraSigners.length>0}}],[{key:"buildFeeBumpTransaction",value:function(F,U,J,ce){var E=J.operations.length,O=new i.default(J.fee).div(E),H=new i.default(U);if(H.lessThan(O))throw new Error("Invalid baseFee, it should be at least "+O+" stroops.");var Z=new i.default(R);if(H.lessThan(Z))throw new Error("Invalid baseFee, it should be at least "+Z+" stroops.");var ne=J.toEnvelope();if(ne.switch()===S.default.EnvelopeType.envelopeTypeTxV0()){var W=ne.v0().tx(),re=new S.default.Transaction({sourceAccount:new S.default.MuxedAccount.keyTypeEd25519(W.sourceAccountEd25519()),fee:W.fee(),seqNum:W.seqNum(),cond:S.default.Preconditions.precondTime(W.timeBounds()),memo:W.memo(),operations:W.operations(),ext:new S.default.TransactionExt(0)});ne=new S.default.TransactionEnvelope.envelopeTypeTx(new S.default.TransactionV1Envelope({tx:re,signatures:ne.v0().signatures()}))}var ae=void 0;(0,s.default)(F)?ae=(0,m.decodeAddressToMuxedAccount)(F):ae=F.xdrMuxedAccount();var G=new S.default.FeeBumpTransaction({feeSource:ae,fee:S.default.Int64.fromString(H.mul(E+1).toString()),innerTx:S.default.FeeBumpTransactionInnerTx.envelopeTypeTx(ne.v1()),ext:new S.default.FeeBumpTransactionExt(0)}),se=new S.default.FeeBumpTransactionEnvelope({tx:G,signatures:[]}),Ee=new S.default.TransactionEnvelope.envelopeTypeTxFeeBump(se);return new d.FeeBumpTransaction(Ee,ce)}},{key:"fromXDR",value:function(F,U){return typeof F=="string"&&(F=S.default.TransactionEnvelope.fromXDR(F,"base64")),F.switch()===S.default.EnvelopeType.envelopeTypeTxFeeBump()?new d.FeeBumpTransaction(F,U):new f.Transaction(F,U)}}]),L}();function B(L){return L instanceof Date&&!isNaN(L)}return Ln}var Xo={},Q2;function G5(){if(Q2)return Xo;Q2=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.Account=void 0;var e=function(){function l(s,y){for(var c=0;c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-s,R=Math.floor,B=String.fromCharCode,L;function q(ae){throw new RangeError(g[ae])}function F(ae,G){for(var se=ae.length,Ee=[];se--;)Ee[se]=G(ae[se]);return Ee}function U(ae,G){var se=ae.split("@"),Ee="";se.length>1&&(Ee=se[0]+"@",ae=se[1]),ae=ae.replace(m,".");var Be=ae.split("."),Pe=F(Be,G).join(".");return Ee+Pe}function J(ae){for(var G=[],se=0,Ee=ae.length,Be,Pe;se=55296&&Be<=56319&&se65535&&(G-=65536,se+=B(G>>>10&1023|55296),G=56320|G&1023),se+=B(G),se}).join("")}function E(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:l}function O(ae,G){return ae+22+75*(ae<26)-((G!=0)<<5)}function H(ae,G,se){var Ee=0;for(ae=se?R(ae/h):ae>>1,ae+=R(ae/G);ae>b*y>>1;Ee+=l)ae=R(ae/b);return R(Ee+(b+1)*ae/(ae+c))}function Z(ae){var G=[],se=ae.length,Ee,Be=0,Pe=f,xe=S,Ye,_e,nt,ut,et,tt,Xe,it,Me;for(Ye=ae.lastIndexOf(d),Ye<0&&(Ye=0),_e=0;_e=128&&q("not-basic"),G.push(ae.charCodeAt(_e));for(nt=Ye>0?Ye+1:0;nt=se&&q("invalid-input"),Xe=E(ae.charCodeAt(nt++)),(Xe>=l||Xe>R((u-Be)/et))&&q("overflow"),Be+=Xe*et,it=tt<=xe?s:tt>=xe+y?y:tt-xe,!(XeR(u/Me)&&q("overflow"),et*=Me;Ee=G.length+1,xe=H(Be-ut,Ee,ut==0),R(Be/Ee)>u-Pe&&q("overflow"),Pe+=R(Be/Ee),Be%=Ee,G.splice(Be++,0,Pe)}return ce(G)}function ne(ae){var G,se,Ee,Be,Pe,xe,Ye,_e,nt,ut,et,tt=[],Xe,it,Me,C;for(ae=J(ae),Xe=ae.length,G=f,se=0,Pe=S,xe=0;xe=G&&etR((u-se)/it)&&q("overflow"),se+=(Ye-G)*it,G=Ye,xe=0;xeu&&q("overflow"),et==G){for(_e=se,nt=l;ut=nt<=Pe?s:nt>=Pe+y?y:nt-Pe,!(_e1);S++)c.splice(0,1);u[h]=c.join("")}var f=-1,d=0,v=0,p=-1,m=!1;for(h=0;hd&&(f=p,d=v)):u[h]==="0"&&(m=!0,p=h,v=1);v>d&&(f=p,d=v),d>1&&u.splice(f,d,""),l=u.length;var g="";for(u[0]===""&&(g=":"),h=0;h=r.length-1)return!1;var o=r.lastIndexOf(".",a-1);if(o<=0||o>=a-1)return!1;var u=i.list[r.slice(a+1)];return u?u.indexOf(" "+r.slice(o+1,a)+" ")>=0:!1},is:function(r){var a=r.lastIndexOf(".");if(a<=0||a>=r.length-1)return!1;var o=r.lastIndexOf(".",a-1);if(o>=0)return!1;var u=i.list[r.slice(a+1)];return u?u.indexOf(" "+r.slice(0,a)+" ")>=0:!1},get:function(r){var a=r.lastIndexOf(".");if(a<=0||a>=r.length-1)return null;var o=r.lastIndexOf(".",a-1);if(o<=0||o>=a-1)return null;var u=i.list[r.slice(a+1)];return!u||u.indexOf(" "+r.slice(o+1,a)+" ")<0?null:r.slice(o+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=n),this}};return i})}(Hp)),Hp.exports}/*! + * URI.js - Mutating URLs + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */var hS;function ou(){return hS||(hS=1,function(e){(function(t,n){e.exports?e.exports=n(EO(),kO(),AO()):t.URI=n(t.punycode,t.IPv6,t.SecondLevelDomains,t)})($t,function(t,n,i,r){var a=r&&r.URI;function o(E,O){var H=arguments.length>=1,Z=arguments.length>=2;if(!(this instanceof o))return H?Z?new o(E,O):new o(E):new o;if(E===void 0){if(H)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?E=location.href+"":E=""}if(E===null&&H)throw new TypeError("null is not a valid argument for URI");return this.href(E),O!==void 0?this.absoluteTo(O):this}function u(E){return/^[0-9]+$/.test(E)}o.version="1.19.11";var l=o.prototype,s=Object.prototype.hasOwnProperty;function y(E){return E.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(E){return E===void 0?"Undefined":String(Object.prototype.toString.call(E)).slice(8,-1)}function h(E){return c(E)==="Array"}function S(E,O){var H={},Z,ne;if(c(O)==="RegExp")H=null;else if(h(O))for(Z=0,ne=O.length;Z]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.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"},o.getDomAttribute=function(E){if(!(!E||!E.nodeName)){var O=E.nodeName.toLowerCase();if(!(O==="input"&&E.type!=="image"))return o.domAttributes[O]}};function p(E){return escape(E)}function m(E){return encodeURIComponent(E).replace(/[!'()*]/g,p).replace(/\*/g,"%2A")}o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,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)/ig,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)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(E,O){var H=o.encode(E+"");return O===void 0&&(O=o.escapeQuerySpace),O?H.replace(/%20/g,"+"):H},o.decodeQuery=function(E,O){E+="",O===void 0&&(O=o.escapeQuerySpace);try{return o.decode(O?E.replace(/\+/g,"%20"):E)}catch{return E}};var g={encode:"encode",decode:"decode"},b,R=function(E,O){return function(H){try{return o[O](H+"").replace(o.characters[E][O].expression,function(Z){return o.characters[E][O].map[Z]})}catch{return H}}};for(b in g)o[b+"PathSegment"]=R("pathname",g[b]),o[b+"UrnPathSegment"]=R("urnpath",g[b]);var B=function(E,O,H){return function(Z){var ne;H?ne=function(G){return o[O](o[H](G))}:ne=o[O];for(var W=(Z+"").split(E),re=0,ae=W.length;re-1&&(O.fragment=E.substring(H+1)||null,E=E.substring(0,H)),H=E.indexOf("?"),H>-1&&(O.query=E.substring(H+1)||null,E=E.substring(0,H)),E=E.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),E=E.replace(/^[/\\]{2,}/i,"//"),E.substring(0,2)==="//"?(O.protocol=null,E=E.substring(2),E=o.parseAuthority(E,O)):(H=E.indexOf(":"),H>-1&&(O.protocol=E.substring(0,H)||null,O.protocol&&!O.protocol.match(o.protocol_expression)?O.protocol=void 0:E.substring(H+1,H+3).replace(/\\/g,"/")==="//"?(E=E.substring(H+3),E=o.parseAuthority(E,O)):(E=E.substring(H+1),O.urn=!0))),O.path=E,O},o.parseHost=function(E,O){E||(E=""),E=E.replace(/\\/g,"/");var H=E.indexOf("/"),Z,ne;if(H===-1&&(H=E.length),E.charAt(0)==="[")Z=E.indexOf("]"),O.hostname=E.substring(1,Z)||null,O.port=E.substring(Z+2,H)||null,O.port==="/"&&(O.port=null);else{var W=E.indexOf(":"),re=E.indexOf("/"),ae=E.indexOf(":",W+1);ae!==-1&&(re===-1||ae-1?ne:E.length-1),re;return W>-1&&(ne===-1||W-1?Pe=Pe.slice(0,xe)+Pe.slice(xe).replace(W,""):Pe=Pe.replace(W,""),!(Pe.length<=G[0].length)&&!(H.ignore&&H.ignore.test(Pe))){Be=se+Pe.length;var nt=O(Pe,se,Be,E);if(nt===void 0){Z.lastIndex=Be;continue}nt=String(nt),E=E.slice(0,se)+nt+E.slice(Be),Z.lastIndex=se+nt.length}}return Z.lastIndex=0,E},o.ensureValidHostname=function(E,O){var H=!!E,Z=!!O,ne=!1;if(Z&&(ne=f(o.hostProtocols,O)),ne&&!H)throw new TypeError("Hostname cannot be empty, if protocol is "+O);if(E&&E.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(E).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(E){if(E){var O=Number(E);if(!(u(O)&&O>0&&O<65536))throw new TypeError('Port "'+E+'" is not a valid port')}},o.noConflict=function(E){if(E){var O={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict=="function"&&(O.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict=="function"&&(O.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict=="function"&&(O.SecondLevelDomains=r.SecondLevelDomains.noConflict()),O}else r.URI===this&&(r.URI=a);return this},l.build=function(E){return E===!0?this._deferred_build=!0:(E===void 0||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},l.clone=function(){return new o(this)},l.valueOf=l.toString=function(){return this.build(!1)._string};function L(E){return function(O,H){return O===void 0?this._parts[E]||"":(this._parts[E]=O||null,this.build(!H),this)}}function q(E,O){return function(H,Z){return H===void 0?this._parts[E]||"":(H!==null&&(H=H+"",H.charAt(0)===O&&(H=H.substring(1))),this._parts[E]=H,this.build(!Z),this)}}l.protocol=L("protocol"),l.username=L("username"),l.password=L("password"),l.hostname=L("hostname"),l.port=L("port"),l.query=q("query","?"),l.fragment=q("fragment","#"),l.search=function(E,O){var H=this.query(E,O);return typeof H=="string"&&H.length?"?"+H:H},l.hash=function(E,O){var H=this.fragment(E,O);return typeof H=="string"&&H.length?"#"+H:H},l.pathname=function(E,O){if(E===void 0||E===!0){var H=this._parts.path||(this._parts.hostname?"/":"");return E?(this._parts.urn?o.decodeUrnPath:o.decodePath)(H):H}else return this._parts.urn?this._parts.path=E?o.recodeUrnPath(E):"":this._parts.path=E?o.recodePath(E):"/",this.build(!O),this},l.path=l.pathname,l.href=function(E,O){var H;if(E===void 0)return this.toString();this._string="",this._parts=o._parts();var Z=E instanceof o,ne=typeof E=="object"&&(E.hostname||E.path||E.pathname);if(E.nodeName){var W=o.getDomAttribute(E);E=E[W]||"",ne=!1}if(!Z&&ne&&E.pathname!==void 0&&(E=E.toString()),typeof E=="string"||E instanceof String)this._parts=o.parse(String(E),this._parts);else if(Z||ne){var re=Z?E._parts:E;for(H in re)H!=="query"&&s.call(this._parts,H)&&(this._parts[H]=re[H]);re.query&&this.query(re.query,!1)}else throw new TypeError("invalid input");return this.build(!O),this},l.is=function(E){var O=!1,H=!1,Z=!1,ne=!1,W=!1,re=!1,ae=!1,G=!this._parts.urn;switch(this._parts.hostname&&(G=!1,H=o.ip4_expression.test(this._parts.hostname),Z=o.ip6_expression.test(this._parts.hostname),O=H||Z,ne=!O,W=ne&&i&&i.has(this._parts.hostname),re=ne&&o.idn_expression.test(this._parts.hostname),ae=ne&&o.punycode_expression.test(this._parts.hostname)),E.toLowerCase()){case"relative":return G;case"absolute":return!G;case"domain":case"name":return ne;case"sld":return W;case"ip":return O;case"ip4":case"ipv4":case"inet4":return H;case"ip6":case"ipv6":case"inet6":return Z;case"idn":return re;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return ae}return null};var F=l.protocol,U=l.port,J=l.hostname;l.protocol=function(E,O){if(E&&(E=E.replace(/:(\/\/)?$/,""),!E.match(o.protocol_expression)))throw new TypeError('Protocol "'+E+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return F.call(this,E,O)},l.scheme=l.protocol,l.port=function(E,O){return this._parts.urn?E===void 0?"":this:(E!==void 0&&(E===0&&(E=null),E&&(E+="",E.charAt(0)===":"&&(E=E.substring(1)),o.ensureValidPort(E))),U.call(this,E,O))},l.hostname=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E!==void 0){var H={preventInvalidHostname:this._parts.preventInvalidHostname},Z=o.parseHost(E,H);if(Z!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');E=H.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(E,this._parts.protocol)}return J.call(this,E,O)},l.origin=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){var H=this.protocol(),Z=this.authority();return Z?(H?H+"://":"")+this.authority():""}else{var ne=o(E);return this.protocol(ne.protocol()).authority(ne.authority()).build(!O),this}},l.host=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0)return this._parts.hostname?o.buildHost(this._parts):"";var H=o.parseHost(E,this._parts);if(H!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},l.authority=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0)return this._parts.hostname?o.buildAuthority(this._parts):"";var H=o.parseAuthority(E,this._parts);if(H!=="/")throw new TypeError('Hostname "'+E+'" contains characters other than [A-Z0-9.-]');return this.build(!O),this},l.userinfo=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){var H=o.buildUserinfo(this._parts);return H&&H.substring(0,H.length-1)}else return E[E.length-1]!=="@"&&(E+="@"),o.parseUserinfo(E,this._parts),this.build(!O),this},l.resource=function(E,O){var H;return E===void 0?this.path()+this.search()+this.hash():(H=o.parse(E),this._parts.path=H.path,this._parts.query=H.query,this._parts.fragment=H.fragment,this.build(!O),this)},l.subdomain=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var H=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,H)||""}else{var Z=this._parts.hostname.length-this.domain().length,ne=this._parts.hostname.substring(0,Z),W=new RegExp("^"+y(ne));if(E&&E.charAt(E.length-1)!=="."&&(E+="."),E.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return E&&o.ensureValidHostname(E,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(W,E),this.build(!O),this}},l.domain=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(typeof E=="boolean"&&(O=E,E=void 0),E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var H=this._parts.hostname.match(/\./g);if(H&&H.length<2)return this._parts.hostname;var Z=this._parts.hostname.length-this.tld(O).length-1;return Z=this._parts.hostname.lastIndexOf(".",Z-1)+1,this._parts.hostname.substring(Z)||""}else{if(!E)throw new TypeError("cannot set domain empty");if(E.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(E,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=E;else{var ne=new RegExp(y(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(ne,E)}return this.build(!O),this}},l.tld=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(typeof E=="boolean"&&(O=E,E=void 0),E===void 0){if(!this._parts.hostname||this.is("IP"))return"";var H=this._parts.hostname.lastIndexOf("."),Z=this._parts.hostname.substring(H+1);return O!==!0&&i&&i.list[Z.toLowerCase()]&&i.get(this._parts.hostname)||Z}else{var ne;if(E)if(E.match(/[^a-zA-Z0-9-]/))if(i&&i.is(E))ne=new RegExp(y(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(ne,E);else throw new TypeError('TLD "'+E+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");ne=new RegExp(y(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(ne,E)}else throw new TypeError("cannot set TLD empty");return this.build(!O),this}},l.directory=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0||E===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var H=this._parts.path.length-this.filename().length-1,Z=this._parts.path.substring(0,H)||(this._parts.hostname?"/":"");return E?o.decodePath(Z):Z}else{var ne=this._parts.path.length-this.filename().length,W=this._parts.path.substring(0,ne),re=new RegExp("^"+y(W));return this.is("relative")||(E||(E="/"),E.charAt(0)!=="/"&&(E="/"+E)),E&&E.charAt(E.length-1)!=="/"&&(E+="/"),E=o.recodePath(E),this._parts.path=this._parts.path.replace(re,E),this.build(!O),this}},l.filename=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(typeof E!="string"){if(!this._parts.path||this._parts.path==="/")return"";var H=this._parts.path.lastIndexOf("/"),Z=this._parts.path.substring(H+1);return E?o.decodePathSegment(Z):Z}else{var ne=!1;E.charAt(0)==="/"&&(E=E.substring(1)),E.match(/\.?\//)&&(ne=!0);var W=new RegExp(y(this.filename())+"$");return E=o.recodePath(E),this._parts.path=this._parts.path.replace(W,E),ne?this.normalizePath(O):this.build(!O),this}},l.suffix=function(E,O){if(this._parts.urn)return E===void 0?"":this;if(E===void 0||E===!0){if(!this._parts.path||this._parts.path==="/")return"";var H=this.filename(),Z=H.lastIndexOf("."),ne,W;return Z===-1?"":(ne=H.substring(Z+1),W=/^[a-z0-9%]+$/i.test(ne)?ne:"",E?o.decodePathSegment(W):W)}else{E.charAt(0)==="."&&(E=E.substring(1));var re=this.suffix(),ae;if(re)E?ae=new RegExp(y(re)+"$"):ae=new RegExp(y("."+re)+"$");else{if(!E)return this;this._parts.path+="."+o.recodePath(E)}return ae&&(E=o.recodePath(E),this._parts.path=this._parts.path.replace(ae,E)),this.build(!O),this}},l.segment=function(E,O,H){var Z=this._parts.urn?":":"/",ne=this.path(),W=ne.substring(0,1)==="/",re=ne.split(Z);if(E!==void 0&&typeof E!="number"&&(H=O,O=E,E=void 0),E!==void 0&&typeof E!="number")throw new Error('Bad segment "'+E+'", must be 0-based integer');if(W&&re.shift(),E<0&&(E=Math.max(re.length+E,0)),O===void 0)return E===void 0?re:re[E];if(E===null||re[E]===void 0)if(h(O)){re=[];for(var ae=0,G=O.length;ae{}"`^| \\]/,a.expand=function(s,y,c){var h=l[s.operator],S=h.named?"Named":"Unnamed",f=s.variables,d=[],v,p,m;for(m=0;p=f[m];m++){if(v=y.get(p.name),v.type===0&&c&&c.strict)throw new Error('Missing expansion value for variable "'+p.name+'"');if(!v.val.length){v.type&&d.push("");continue}if(v.type>1&&p.maxlength)throw new Error('Invalid expression: Prefix modifier not applicable to variable "'+p.name+'"');d.push(a["expand"+S](v,h,p.explode,p.explode&&h.separator||",",p.maxlength,p.name))}return d.length?h.prefix+d.join(h.separator):""},a.expandNamed=function(s,y,c,h,S,f){var d="",v=y.encode,p=y.empty_name_separator,m=!s[v].length,g=s.type===2?"":t[v](f),b,R,B;for(R=0,B=s.val.length;R"u"}function r(q){return q!==null&&!i(q)&&q.constructor!==null&&!i(q.constructor)&&typeof q.constructor.isBuffer=="function"&&q.constructor.isBuffer(q)}function a(q){return t.call(q)==="[object ArrayBuffer]"}function o(q){return t.call(q)==="[object FormData]"}function u(q){var F;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?F=ArrayBuffer.isView(q):F=q&&q.buffer&&a(q.buffer),F}function l(q){return typeof q=="string"}function s(q){return typeof q=="number"}function y(q){return q!==null&&typeof q=="object"}function c(q){if(t.call(q)!=="[object Object]")return!1;var F=Object.getPrototypeOf(q);return F===null||F===Object.prototype}function h(q){return t.call(q)==="[object Date]"}function S(q){return t.call(q)==="[object File]"}function f(q){return t.call(q)==="[object Blob]"}function d(q){return t.call(q)==="[object Function]"}function v(q){return y(q)&&d(q.pipe)}function p(q){return t.call(q)==="[object URLSearchParams]"}function m(q){return q.trim?q.trim():q.replace(/^\s+|\s+$/g,"")}function g(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function b(q,F){if(!(q===null||typeof q>"u"))if(typeof q!="object"&&(q=[q]),n(q))for(var U=0,J=q.length;U"u"||(e.isArray(y)?c=c+"[]":y=[y],e.forEach(y,function(S){e.isDate(S)?S=S.toISOString():e.isObject(S)&&(S=JSON.stringify(S)),u.push(t(c)+"="+t(S))}))}),o=u.join("&")}if(o){var l=i.indexOf("#");l!==-1&&(i=i.slice(0,l)),i+=(i.indexOf("?")===-1?"?":"&")+o}return i},Yp}var Zp,wS;function CO(){if(wS)return Zp;wS=1;var e=Zr();function t(){this.handlers=[]}return t.prototype.use=function(i,r,a){return this.handlers.push({fulfilled:i,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(i){this.handlers[i]&&(this.handlers[i]=null)},t.prototype.forEach=function(i){e.forEach(this.handlers,function(a){a!==null&&i(a)})},Zp=t,Zp}var Jp,_S;function OO(){if(_S)return Jp;_S=1;var e=Zr();return Jp=function(n,i){e.forEach(n,function(a,o){o!==i&&o.toUpperCase()===i.toUpperCase()&&(n[i]=a,delete n[o])})},Jp}var ev,xS;function rk(){return xS||(xS=1,ev=function(t,n,i,r,a){return t.config=n,i&&(t.code=i),t.request=r,t.response=a,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}),ev}var tv,bS;function nk(){if(bS)return tv;bS=1;var e=rk();return tv=function(n,i,r,a,o){var u=new Error(n);return e(u,i,r,a,o)},tv}var rv,SS;function RO(){if(SS)return rv;SS=1;var e=nk();return rv=function(n,i,r){var a=r.config.validateStatus;!r.status||!a||a(r.status)?n(r):i(e("Request failed with status code "+r.status,r.config,null,r.request,r))},rv}var nv,ES;function IO(){if(ES)return nv;ES=1;var e=Zr();return nv=e.isStandardBrowserEnv()?function(){return{write:function(i,r,a,o,u,l){var s=[];s.push(i+"="+encodeURIComponent(r)),e.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),e.isString(o)&&s.push("path="+o),e.isString(u)&&s.push("domain="+u),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(i){var r=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),nv}var iv,kS;function qO(){return kS||(kS=1,iv=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),iv}var av,AS;function BO(){return AS||(AS=1,av=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),av}var ov,TS;function MO(){if(TS)return ov;TS=1;var e=qO(),t=BO();return ov=function(i,r){return i&&!e(r)?t(i,r):r},ov}var sv,PS;function LO(){if(PS)return sv;PS=1;var e=Zr(),t=["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"];return sv=function(i){var r={},a,o,u;return i&&e.forEach(i.split(` +`),function(s){if(u=s.indexOf(":"),a=e.trim(s.substr(0,u)).toLowerCase(),o=e.trim(s.substr(u+1)),a){if(r[a]&&t.indexOf(a)>=0)return;a==="set-cookie"?r[a]=(r[a]?r[a]:[]).concat([o]):r[a]=r[a]?r[a]+", "+o:o}}),r},sv}var uv,CS;function NO(){if(CS)return uv;CS=1;var e=Zr();return uv=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),r;function a(o){var u=o;return n&&(i.setAttribute("href",u),u=i.href),i.setAttribute("href",u),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=a(window.location.href),function(u){var l=e.isString(u)?a(u):u;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),uv}var lv,OS;function jc(){if(OS)return lv;OS=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,lv=e,lv}var cv,RS;function IS(){if(RS)return cv;RS=1;var e=Zr(),t=RO(),n=IO(),i=tk(),r=MO(),a=LO(),o=NO(),u=nk(),l=zc(),s=jc();return cv=function(c){return new Promise(function(S,f){var d=c.data,v=c.headers,p=c.responseType,m;function g(){c.cancelToken&&c.cancelToken.unsubscribe(m),c.signal&&c.signal.removeEventListener("abort",m)}e.isFormData(d)&&delete v["Content-Type"];var b=new XMLHttpRequest;if(c.auth){var R=c.auth.username||"",B=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";v.Authorization="Basic "+btoa(R+":"+B)}var L=r(c.baseURL,c.url);b.open(c.method.toUpperCase(),i(L,c.params,c.paramsSerializer),!0),b.timeout=c.timeout;function q(){if(b){var U="getAllResponseHeaders"in b?a(b.getAllResponseHeaders()):null,J=!p||p==="text"||p==="json"?b.responseText:b.response,ce={data:J,status:b.status,statusText:b.statusText,headers:U,config:c,request:b};t(function(O){S(O),g()},function(O){f(O),g()},ce),b=null}}if("onloadend"in b?b.onloadend=q:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(q)},b.onabort=function(){b&&(f(u("Request aborted",c,"ECONNABORTED",b)),b=null)},b.onerror=function(){f(u("Network Error",c,null,b)),b=null},b.ontimeout=function(){var J=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",ce=c.transitional||l.transitional;c.timeoutErrorMessage&&(J=c.timeoutErrorMessage),f(u(J,c,ce.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},e.isStandardBrowserEnv()){var F=(c.withCredentials||o(L))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;F&&(v[c.xsrfHeaderName]=F)}"setRequestHeader"in b&&e.forEach(v,function(J,ce){typeof d>"u"&&ce.toLowerCase()==="content-type"?delete v[ce]:b.setRequestHeader(ce,J)}),e.isUndefined(c.withCredentials)||(b.withCredentials=!!c.withCredentials),p&&p!=="json"&&(b.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&b.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(m=function(U){b&&(f(!U||U&&U.type?new s("canceled"):U),b.abort(),b=null)},c.cancelToken&&c.cancelToken.subscribe(m),c.signal&&(c.signal.aborted?m():c.signal.addEventListener("abort",m))),d||(d=null),b.send(d)})},cv}var fv,qS;function zc(){if(qS)return fv;qS=1;var e=Zr(),t=OO(),n=rk(),i={"Content-Type":"application/x-www-form-urlencoded"};function r(l,s){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=s)}function a(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=IS()),l}function o(l,s,y){if(e.isString(l))try{return(s||JSON.parse)(l),e.trim(l)}catch(c){if(c.name!=="SyntaxError")throw c}return(y||JSON.stringify)(l)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:a(),transformRequest:[function(s,y){return t(y,"Accept"),t(y,"Content-Type"),e.isFormData(s)||e.isArrayBuffer(s)||e.isBuffer(s)||e.isStream(s)||e.isFile(s)||e.isBlob(s)?s:e.isArrayBufferView(s)?s.buffer:e.isURLSearchParams(s)?(r(y,"application/x-www-form-urlencoded;charset=utf-8"),s.toString()):e.isObject(s)||y&&y["Content-Type"]==="application/json"?(r(y,"application/json"),o(s)):s}],transformResponse:[function(s){var y=this.transitional||u.transitional,c=y&&y.silentJSONParsing,h=y&&y.forcedJSONParsing,S=!c&&this.responseType==="json";if(S||h&&e.isString(s)&&s.length)try{return JSON.parse(s)}catch(f){if(S)throw f.name==="SyntaxError"?n(f,this,"E_JSON_PARSE"):f}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(s){u.headers[s]={}}),e.forEach(["post","put","patch"],function(s){u.headers[s]=e.merge(i)}),fv=u,fv}var dv,BS;function FO(){if(BS)return dv;BS=1;var e=Zr(),t=zc();return dv=function(i,r,a){var o=this||t;return e.forEach(a,function(l){i=l.call(o,i,r)}),i},dv}var hv,MS;function ik(){return MS||(MS=1,hv=function(t){return!!(t&&t.__CANCEL__)}),hv}var pv,LS;function DO(){if(LS)return pv;LS=1;var e=Zr(),t=FO(),n=ik(),i=zc(),r=jc();function a(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new r("canceled")}return pv=function(u){a(u),u.headers=u.headers||{},u.data=t.call(u,u.data,u.headers,u.transformRequest),u.headers=e.merge(u.headers.common||{},u.headers[u.method]||{},u.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(y){delete u.headers[y]});var l=u.adapter||i.adapter;return l(u).then(function(y){return a(u),y.data=t.call(u,y.data,y.headers,u.transformResponse),y},function(y){return n(y)||(a(u),y&&y.response&&(y.response.data=t.call(u,y.response.data,y.response.headers,u.transformResponse))),Promise.reject(y)})},pv}var vv,NS;function ak(){if(NS)return vv;NS=1;var e=Zr();return vv=function(n,i){i=i||{};var r={};function a(c,h){return e.isPlainObject(c)&&e.isPlainObject(h)?e.merge(c,h):e.isPlainObject(h)?e.merge({},h):e.isArray(h)?h.slice():h}function o(c){if(e.isUndefined(i[c])){if(!e.isUndefined(n[c]))return a(void 0,n[c])}else return a(n[c],i[c])}function u(c){if(!e.isUndefined(i[c]))return a(void 0,i[c])}function l(c){if(e.isUndefined(i[c])){if(!e.isUndefined(n[c]))return a(void 0,n[c])}else return a(void 0,i[c])}function s(c){if(c in i)return a(n[c],i[c]);if(c in n)return a(void 0,n[c])}var y={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s};return e.forEach(Object.keys(n).concat(Object.keys(i)),function(h){var S=y[h]||o,f=S(h);e.isUndefined(f)&&S!==s||(r[h]=f)}),r},vv}var mv,FS;function ok(){return FS||(FS=1,mv={version:"0.25.0"}),mv}var gv,DS;function UO(){if(DS)return gv;DS=1;var e=ok().version,t={};["object","boolean","number","function","string","symbol"].forEach(function(r,a){t[r]=function(u){return typeof u===r||"a"+(a<1?"n ":" ")+r}});var n={};t.transitional=function(a,o,u){function l(s,y){return"[Axios v"+e+"] Transitional option '"+s+"'"+y+(u?". "+u:"")}return function(s,y,c){if(a===!1)throw new Error(l(y," has been removed"+(o?" in "+o:"")));return o&&!n[y]&&(n[y]=!0,console.warn(l(y," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(s,y,c):!0}};function i(r,a,o){if(typeof r!="object")throw new TypeError("options must be an object");for(var u=Object.keys(r),l=u.length;l-- >0;){var s=u[l],y=a[s];if(y){var c=r[s],h=c===void 0||y(c,s,r);if(h!==!0)throw new TypeError("option "+s+" must be "+h);continue}if(o!==!0)throw Error("Unknown option "+s)}}return gv={assertOptions:i,validators:t},gv}var yv,US;function jO(){if(US)return yv;US=1;var e=Zr(),t=tk(),n=CO(),i=DO(),r=ak(),a=UO(),o=a.validators;function u(l){this.defaults=l,this.interceptors={request:new n,response:new n}}return u.prototype.request=function(s,y){if(typeof s=="string"?(y=y||{},y.url=s):y=s||{},!y.url)throw new Error("Provided config url is not valid");y=r(this.defaults,y),y.method?y.method=y.method.toLowerCase():this.defaults.method?y.method=this.defaults.method.toLowerCase():y.method="get";var c=y.transitional;c!==void 0&&a.assertOptions(c,{silentJSONParsing:o.transitional(o.boolean),forcedJSONParsing:o.transitional(o.boolean),clarifyTimeoutError:o.transitional(o.boolean)},!1);var h=[],S=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(y)===!1||(S=S&&R.synchronous,h.unshift(R.fulfilled,R.rejected))});var f=[];this.interceptors.response.forEach(function(R){f.push(R.fulfilled,R.rejected)});var d;if(!S){var v=[i,void 0];for(Array.prototype.unshift.apply(v,h),v=v.concat(f),d=Promise.resolve(y);v.length;)d=d.then(v.shift(),v.shift());return d}for(var p=y;h.length;){var m=h.shift(),g=h.shift();try{p=m(p)}catch(b){g(b);break}}try{d=i(p)}catch(b){return Promise.reject(b)}for(;f.length;)d=d.then(f.shift(),f.shift());return d},u.prototype.getUri=function(s){if(!s.url)throw new Error("Provided config url is not valid");return s=r(this.defaults,s),t(s.url,s.params,s.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],function(s){u.prototype[s]=function(y,c){return this.request(r(c||{},{method:s,url:y,data:(c||{}).data}))}}),e.forEach(["post","put","patch"],function(s){u.prototype[s]=function(y,c,h){return this.request(r(h||{},{method:s,url:y,data:c}))}}),yv=u,yv}var wv,jS;function zO(){if(jS)return wv;jS=1;var e=jc();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(o){i=o});var r=this;this.promise.then(function(a){if(r._listeners){var o,u=r._listeners.length;for(o=0;o60*5?null:h-c+y}e.getCurrentServerTime=u}(Qp)),Qp}var Sv,XS;function QS(){if(XS)return Sv;XS=1;var e=pi.parse,t=pi,n=pi,i=pi,r=pi,a=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","servername","checkServerIdentity"],o=[239,187,191],u=58,l=32,s=10,y=13;function c(p){return o.every(function(m,g){return p[g]===m})}function h(p,m){var g=h.CONNECTING,b=m&&m.headers,R=!1;Object.defineProperty(this,"readyState",{get:function(){return g}}),Object.defineProperty(this,"url",{get:function(){return p}});var B=this;B.reconnectInterval=1e3,B.connectionInProgress=!1;function L(ne){g!==h.CLOSED&&(g=h.CONNECTING,H("error",new S("error",{message:ne})),E&&(p=E,E=null,R=!1),setTimeout(function(){g!==h.CONNECTING||B.connectionInProgress||(B.connectionInProgress=!0,O())},B.reconnectInterval))}var q,F="";b&&b["Last-Event-ID"]&&(F=b["Last-Event-ID"],delete b["Last-Event-ID"]);var U=!1,J="",ce="",E=null;function O(){var ne=e(p),W=ne.protocol==="https:";if(ne.headers={"Cache-Control":"no-cache",Accept:"text/event-stream"},F&&(ne.headers["Last-Event-ID"]=F),b){var re=R?d(b):b;for(var ae in re){var G=re[ae];G&&(ne.headers[ae]=G)}}ne.rejectUnauthorized=!(m&&!m.rejectUnauthorized),m&&m.createConnection!==void 0&&(ne.createConnection=m.createConnection);var se=m&&m.proxy;if(se){var Ee=e(m.proxy);W=Ee.protocol==="https:",ne.protocol=W?"https:":"http:",ne.path=p,ne.headers.Host=ne.host,ne.hostname=Ee.hostname,ne.host=Ee.host,ne.port=Ee.port}if(m&&m.https){for(var Be in m.https)if(a.indexOf(Be)!==-1){var Pe=m.https[Be];Pe!==void 0&&(ne[Be]=Pe)}}m&&m.withCredentials!==void 0&&(ne.withCredentials=m.withCredentials),q=(W?n:i).request(ne,function(xe){if(B.connectionInProgress=!1,xe.statusCode===500||xe.statusCode===502||xe.statusCode===503||xe.statusCode===504){H("error",new S("error",{status:xe.statusCode,message:xe.statusMessage})),L();return}if(xe.statusCode===301||xe.statusCode===302||xe.statusCode===307){var Ye=xe.headers.location;if(!Ye){H("error",new S("error",{status:xe.statusCode,message:xe.statusMessage}));return}var _e=v(p),nt=v(Ye);R=_e!==nt,xe.statusCode===307&&(E=p),p=Ye,process.nextTick(O);return}if(xe.statusCode!==200)return H("error",new S("error",{status:xe.statusCode,message:xe.statusMessage})),B.close();g=h.OPEN,xe.on("close",function(){xe.removeAllListeners("close"),xe.removeAllListeners("end"),L()}),xe.on("end",function(){xe.removeAllListeners("close"),xe.removeAllListeners("end"),L()}),H("open",new S("open"));var ut=!0,et,tt=0,Xe=-1;xe.on("data",function(it){et=et?Buffer.concat([et,it]):it,ut&&c(et)&&(et=et.slice(o.length)),ut=!1;for(var Me=0,C=et.length;Me0&&(et=et.slice(Me))})}),q.on("error",function(xe){B.connectionInProgress=!1,L(xe.message)}),q.setNoDelay&&q.setNoDelay(!0),q.end()}O();function H(){B.listeners(arguments[0]).length>0&&B.emit.apply(B,arguments)}this._close=function(){g!==h.CLOSED&&(g=h.CLOSED,q.abort&&q.abort(),q.xhr&&q.xhr.abort&&q.xhr.abort())};function Z(ne,W,re,ae){if(ae===0){if(J.length>0){var G=ce||"message";H(G,new f(G,{data:J.slice(0,-1),lastEventId:F,origin:v(p)})),J=""}ce=void 0}else if(re>0){var se=re<0,Ee=0,Be=ne.slice(W,W+(se?ae:re)).toString();se?Ee=ae:ne[W+re+1]!==l?Ee=re+1:Ee=re+2,W+=Ee;var Pe=ae-Ee,xe=ne.slice(W,W+Pe).toString();if(Be==="data")J+=xe+` +`;else if(Be==="event")ce=xe;else if(Be==="id")F=xe;else if(Be==="retry"){var Ye=parseInt(xe,10);Number.isNaN(Ye)||(B.reconnectInterval=Ye)}}}}Sv=h,r.inherits(h,t.EventEmitter),h.prototype.constructor=h,["open","error","message"].forEach(function(p){Object.defineProperty(h.prototype,"on"+p,{get:function(){var g=this.listeners(p)[0];return g?g._listener?g._listener:g:void 0},set:function(g){this.removeAllListeners(p),this.addEventListener(p,g)}})}),Object.defineProperty(h,"CONNECTING",{enumerable:!0,value:0}),Object.defineProperty(h,"OPEN",{enumerable:!0,value:1}),Object.defineProperty(h,"CLOSED",{enumerable:!0,value:2}),h.prototype.CONNECTING=0,h.prototype.OPEN=1,h.prototype.CLOSED=2,h.prototype.close=function(){this._close()},h.prototype.addEventListener=function(m,g){typeof g=="function"&&(g._listener=g,this.on(m,g))},h.prototype.dispatchEvent=function(m){if(!m.type)throw new Error("UNSPECIFIED_EVENT_TYPE_ERR");this.emit(m.type,m.detail)},h.prototype.removeEventListener=function(m,g){typeof g=="function"&&(g._listener=void 0,this.removeListener(m,g))};function S(p,m){if(Object.defineProperty(this,"type",{writable:!1,value:p,enumerable:!0}),m)for(var g in m)m.hasOwnProperty(g)&&Object.defineProperty(this,g,{writable:!1,value:m[g],enumerable:!0})}function f(p,m){Object.defineProperty(this,"type",{writable:!1,value:p,enumerable:!0});for(var g in m)m.hasOwnProperty(g)&&Object.defineProperty(this,g,{writable:!1,value:m[g],enumerable:!0})}function d(p){var m={};for(var g in p)/^(cookie|authorization)$/i.test(g)||(m[g]=p[g]);return m}function v(p){return typeof p=="string"&&(p=e(p)),!p.protocol||!p.hostname?"null":(p.protocol+"//"+p.host).toLowerCase()}return Sv}var WS;function Ar(){if(WS)return Go;WS=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.CallBuilder=void 0;var e=Kt,t=e.__importDefault(TO()),n=e.__importDefault(ou()),i=e.__importDefault(PO()),r=Qa(),a=e.__importDefault(oy()),o=qg.version,u=["transaction"],l,s=$t;s.EventSource?l=s.EventSource:t.default?l=QS():s.window.EventSource?l=s.window.EventSource:l=QS();var y=function(){function c(h,S){S===void 0&&(S=""),this.url=h.clone(),this.filter=[],this.originalSegments=this.url.segment()||[],this.neighborRoot=S}return c.prototype.call=function(){var h=this;return this.checkFilter(),this._sendNormalRequest(this.url).then(function(S){return h._parseResponse(S)})},c.prototype.stream=function(h){var S=this;h===void 0&&(h={}),this.checkFilter(),this.url.setQuery("X-Client-Name","js-stellar-sdk"),this.url.setQuery("X-Client-Version",o);var f,d,v=function(){d=setTimeout(function(){f&&f.close(),f=p()},h.reconnectTimeout||15*1e3)},p=function(){try{f=new l(S.url.toString())}catch(B){h.onerror&&h.onerror(B)}if(v(),f){var m=!1,g=function(){m||(clearTimeout(d),f.close(),p(),m=!0)},b=function(B){if(B.type==="close"){g();return}var L=B.data?S._parseRecord(JSON.parse(B.data)):B;L.paging_token&&S.url.setQuery("cursor",L.paging_token),clearTimeout(d),v(),typeof h.onmessage<"u"&&h.onmessage(L)},R=function(B){h.onerror&&h.onerror(B)};f.addEventListener?(f.addEventListener("message",b.bind(S)),f.addEventListener("error",R.bind(S)),f.addEventListener("close",g.bind(S))):(f.onmessage=b.bind(S),f.onerror=R.bind(S))}return f};return p(),function(){clearTimeout(d),f&&f.close()}},c.prototype.cursor=function(h){return this.url.setQuery("cursor",h),this},c.prototype.limit=function(h){return this.url.setQuery("limit",h.toString()),this},c.prototype.order=function(h){return this.url.setQuery("order",h),this},c.prototype.join=function(h){return this.url.setQuery("join",h),this},c.prototype.forEndpoint=function(h,S){if(this.neighborRoot==="")throw new Error("Invalid usage: neighborRoot not set in constructor");return this.filter.push([h,S,this.neighborRoot]),this},c.prototype.checkFilter=function(){if(this.filter.length>=2)throw new r.BadRequestError("Too many filters specified",this.filter);if(this.filter.length===1){var h=this.originalSegments.concat(this.filter[0]);this.url.segment(h)}},c.prototype._requestFnForLink=function(h){var S=this;return function(f){return f===void 0&&(f={}),e.__awaiter(S,void 0,void 0,function(){var d,v,p;return e.__generator(this,function(m){switch(m.label){case 0:return h.templated?(v=i.default(h.href),d=n.default(v.expand(f))):d=n.default(h.href),[4,this._sendNormalRequest(d)];case 1:return p=m.sent(),[2,this._parseResponse(p)]}})})}},c.prototype._parseRecord=function(h){var S=this;if(!h._links)return h;for(var f=function(g){var b=h._links[g],R=!1;if(typeof h[g]<"u"&&(h[g+"_attr"]=h[g],R=!0),R&&u.indexOf(g)>=0){var B=d._parseRecord(h[g]);h[g]=function(){return e.__awaiter(S,void 0,void 0,function(){return e.__generator(this,function(L){return[2,B]})})}}else h[g]=d._requestFnForLink(b)},d=this,v=0,p=Object.keys(h._links);vl||u>=24*s||u%s!==0)},o}(t.CallBuilder);return cs.TradeAggregationCallBuilder=r,cs}var fs={},cE;function oR(){if(cE)return fs;cE=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.TradesCallBuilder=void 0;var e=Kt,t=Ar(),n=function(i){e.__extends(r,i);function r(a){var o=i.call(this,a,"trades")||this;return o.url.segment("trades"),o}return r.prototype.forAssetPair=function(a,o){return a.isNative()?this.url.setQuery("base_asset_type","native"):(this.url.setQuery("base_asset_type",a.getAssetType()),this.url.setQuery("base_asset_code",a.getCode()),this.url.setQuery("base_asset_issuer",a.getIssuer())),o.isNative()?this.url.setQuery("counter_asset_type","native"):(this.url.setQuery("counter_asset_type",o.getAssetType()),this.url.setQuery("counter_asset_code",o.getCode()),this.url.setQuery("counter_asset_issuer",o.getIssuer())),this},r.prototype.forOffer=function(a){return this.url.setQuery("offer_id",a),this},r.prototype.forType=function(a){return this.url.setQuery("trade_type",a),this},r.prototype.forAccount=function(a){return this.forEndpoint("accounts",a)},r.prototype.forLiquidityPool=function(a){return this.forEndpoint("liquidity_pools",a)},r}(t.CallBuilder);return fs.TradesCallBuilder=n,fs}var ds={},fE;function sR(){if(fE)return ds;fE=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.TransactionCallBuilder=void 0;var e=Kt,t=Ar(),n=function(i){e.__extends(r,i);function r(a){var o=i.call(this,a,"transactions")||this;return o.url.segment("transactions"),o}return r.prototype.transaction=function(a){var o=new t.CallBuilder(this.url.clone());return o.filter.push([a]),o},r.prototype.forAccount=function(a){return this.forEndpoint("accounts",a)},r.prototype.forClaimableBalance=function(a){return this.forEndpoint("claimable_balances",a)},r.prototype.forLedger=function(a){return this.forEndpoint("ledgers",a.toString())},r.prototype.forLiquidityPool=function(a){return this.forEndpoint("liquidity_pools",a)},r.prototype.includeFailed=function(a){return this.url.setQuery("include_failed",a.toString()),this},r}(t.CallBuilder);return ds.TransactionCallBuilder=n,ds}var dE;function uR(){return dE||(dE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Server=e.SUBMIT_TRANSACTION_TIMEOUT=void 0;var t=Kt,n=t.__importDefault(Ii()),i=t.__importDefault(gO()),r=t.__importDefault(SO()),a=au(),o=t.__importDefault(ou()),u=Ar(),l=Uc(),s=Qa(),y=KO(),c=Y5(),h=XO(),S=QO(),f=WO(),d=GO(),v=YO(),p=ZO(),m=JO(),g=eR(),b=tR(),R=rR(),B=nR(),L=iR(),q=aR(),F=oR(),U=sR(),J=t.__importStar(oy());e.SUBMIT_TRANSACTION_TIMEOUT=60*1e3;var ce=1e7,E="MQ==";function O(Z){return new n.default(Z).div(ce).toString()}var H=function(){function Z(ne,W){W===void 0&&(W={}),this.serverURL=o.default(ne);var re=typeof W.allowHttp>"u"?l.Config.isAllowHttp():W.allowHttp,ae={};if(W.appName&&(ae["X-App-Name"]=W.appName),W.appVersion&&(ae["X-App-Version"]=W.appVersion),W.authToken&&(ae["X-Auth-Token"]=W.authToken),i.default(ae)||J.default.interceptors.request.use(function(G){return G.headers=r.default(ae,G.headers),G}),this.serverURL.protocol()!=="https"&&!re)throw new Error("Cannot connect to insecure horizon server")}return Z.prototype.fetchTimebounds=function(ne,W){return W===void 0&&(W=!1),t.__awaiter(this,void 0,void 0,function(){var re;return t.__generator(this,function(ae){switch(ae.label){case 0:return re=J.getCurrentServerTime(this.serverURL.hostname()),re?[2,{minTime:0,maxTime:re+ne}]:W?[2,{minTime:0,maxTime:Math.floor(new Date().getTime()/1e3)+ne}]:[4,J.default.get(o.default(this.serverURL).toString())];case 1:return ae.sent(),[4,this.fetchTimebounds(ne,!0)];case 2:return[2,ae.sent()]}})})},Z.prototype.fetchBaseFee=function(){return t.__awaiter(this,void 0,void 0,function(){var ne;return t.__generator(this,function(W){switch(W.label){case 0:return[4,this.feeStats()];case 1:return ne=W.sent(),[2,parseInt(ne.last_ledger_base_fee,10)||100]}})})},Z.prototype.feeStats=function(){return t.__awaiter(this,void 0,void 0,function(){var ne;return t.__generator(this,function(W){return ne=new u.CallBuilder(o.default(this.serverURL)),ne.filter.push(["fee_stats"]),[2,ne.call()]})})},Z.prototype.submitTransaction=function(ne,W){return W===void 0&&(W={skipMemoRequiredCheck:!1}),t.__awaiter(this,void 0,void 0,function(){var re;return t.__generator(this,function(ae){switch(ae.label){case 0:return W.skipMemoRequiredCheck?[3,2]:[4,this.checkMemoRequired(ne)];case 1:ae.sent(),ae.label=2;case 2:return re=encodeURIComponent(ne.toEnvelope().toXDR().toString("base64")),[2,J.default.post(o.default(this.serverURL).segment("transactions").toString(),"tx="+re,{timeout:e.SUBMIT_TRANSACTION_TIMEOUT}).then(function(G){if(!G.data.result_xdr)return G.data;var se=a.xdr.TransactionResult.fromXDR(G.data.result_xdr,"base64"),Ee=se.result().value(),Be,Pe;return Ee.length&&(Be=Ee.map(function(xe,Ye){if(xe.value().switch().name!=="manageBuyOffer"&&xe.value().switch().name!=="manageSellOffer")return null;Pe=!0;var _e=new n.default(0),nt=new n.default(0),ut=xe.value().value().success(),et=ut.offersClaimed().map(function(w){var P=w.value(),M="";switch(w.switch()){case a.xdr.ClaimAtomType.claimAtomTypeV0():M=a.StrKey.encodeEd25519PublicKey(P.sellerEd25519());break;case a.xdr.ClaimAtomType.claimAtomTypeOrderBook():M=a.StrKey.encodeEd25519PublicKey(P.sellerId().ed25519());break;default:throw new Error("Invalid offer result type: "+w.switch())}var V=new n.default(P.amountBought().toString()),te=new n.default(P.amountSold().toString());_e=_e.add(te),nt=nt.add(V);var ee=a.Asset.fromOperation(P.assetSold()),j=a.Asset.fromOperation(P.assetBought()),X={type:ee.getAssetType(),assetCode:ee.getCode(),issuer:ee.getIssuer()},le={type:j.getAssetType(),assetCode:j.getCode(),issuer:j.getIssuer()};return{sellerId:M,offerId:P.offerId().toString(),assetSold:X,amountSold:O(te),assetBought:le,amountBought:O(V)}}),tt=ut.offer().switch().name,Xe;if(typeof ut.offer().value=="function"&&ut.offer().value()){var it=ut.offer().value();Xe={offerId:it.offerId().toString(),selling:{},buying:{},amount:O(it.amount().toString()),price:{n:it.price().n(),d:it.price().d()}};var Me=a.Asset.fromOperation(it.selling());Xe.selling={type:Me.getAssetType(),assetCode:Me.getCode(),issuer:Me.getIssuer()};var C=a.Asset.fromOperation(it.buying());Xe.buying={type:C.getAssetType(),assetCode:C.getCode(),issuer:C.getIssuer()}}return{offersClaimed:et,effect:tt,operationIndex:Ye,currentOffer:Xe,amountBought:O(_e),amountSold:O(nt),isFullyOpen:!et.length&&tt!=="manageOfferDeleted",wasPartiallyFilled:!!et.length&&tt!=="manageOfferDeleted",wasImmediatelyFilled:!!et.length&&tt==="manageOfferDeleted",wasImmediatelyDeleted:!et.length&&tt==="manageOfferDeleted"}}).filter(function(xe){return!!xe})),Object.assign({},G.data,{offerResults:Pe?Be:void 0})}).catch(function(G){return G instanceof Error?Promise.reject(G):Promise.reject(new s.BadResponseError("Transaction submission failed. Server responded: "+G.status+" "+G.statusText,G.data))})]}})})},Z.prototype.accounts=function(){return new y.AccountCallBuilder(o.default(this.serverURL))},Z.prototype.claimableBalances=function(){return new S.ClaimableBalanceCallBuilder(o.default(this.serverURL))},Z.prototype.ledgers=function(){return new v.LedgerCallBuilder(o.default(this.serverURL))},Z.prototype.transactions=function(){return new U.TransactionCallBuilder(o.default(this.serverURL))},Z.prototype.offers=function(){return new m.OfferCallBuilder(o.default(this.serverURL))},Z.prototype.orderbook=function(ne,W){return new b.OrderbookCallBuilder(o.default(this.serverURL),ne,W)},Z.prototype.trades=function(){return new F.TradesCallBuilder(o.default(this.serverURL))},Z.prototype.operations=function(){return new g.OperationCallBuilder(o.default(this.serverURL))},Z.prototype.liquidityPools=function(){return new p.LiquidityPoolCallBuilder(o.default(this.serverURL))},Z.prototype.strictReceivePaths=function(ne,W,re){return new B.StrictReceivePathCallBuilder(o.default(this.serverURL),ne,W,re)},Z.prototype.strictSendPaths=function(ne,W,re){return new L.StrictSendPathCallBuilder(o.default(this.serverURL),ne,W,re)},Z.prototype.payments=function(){return new R.PaymentCallBuilder(o.default(this.serverURL))},Z.prototype.effects=function(){return new f.EffectCallBuilder(o.default(this.serverURL))},Z.prototype.friendbot=function(ne){return new d.FriendbotBuilder(o.default(this.serverURL),ne)},Z.prototype.assets=function(){return new h.AssetsCallBuilder(o.default(this.serverURL))},Z.prototype.loadAccount=function(ne){return t.__awaiter(this,void 0,void 0,function(){var W;return t.__generator(this,function(re){switch(re.label){case 0:return[4,this.accounts().accountId(ne).call()];case 1:return W=re.sent(),[2,new c.AccountResponse(W)]}})})},Z.prototype.tradeAggregation=function(ne,W,re,ae,G,se){return new q.TradeAggregationCallBuilder(o.default(this.serverURL),ne,W,re,ae,G,se)},Z.prototype.checkMemoRequired=function(ne){return t.__awaiter(this,void 0,void 0,function(){var W,re,ae,G,se,Ee;return t.__generator(this,function(Be){switch(Be.label){case 0:if(ne instanceof a.FeeBumpTransaction&&(ne=ne.innerTransaction),ne.memo.type!=="none")return[2];W=new Set,re=0,Be.label=1;case 1:if(!(re1?arguments[1]:{},a={},o={start:su},u=su,l=function(){return bu},s=a,y="#",c={type:"literal",value:"#",description:'"#"'},h=void 0,S={type:"any",description:"any character"},f="[",d={type:"literal",value:"[",description:'"["'},v="]",p={type:"literal",value:"]",description:'"]"'},m=function(_){io(lr("ObjectPath",_,Pt,Ct))},g=function(_){io(lr("ArrayPath",_,Pt,Ct))},b=function(_,I){return _.concat(I)},R=function(_){return[_]},B=function(_){return _},L=".",q={type:"literal",value:".",description:'"."'},F="=",U={type:"literal",value:"=",description:'"="'},J=function(_,I){io(lr("Assign",I,Pt,Ct,_))},ce=function(_){return _.join("")},E=function(_){return _.value},O='"""',H={type:"literal",value:'"""',description:'"\\"\\"\\""'},Z=null,ne=function(_){return lr("String",_.join(""),Pt,Ct)},W='"',re={type:"literal",value:'"',description:'"\\""'},ae="'''",G={type:"literal",value:"'''",description:`"'''"`},se="'",Ee={type:"literal",value:"'",description:`"'"`},Be=function(_){return _},Pe=function(_){return _},xe="\\",Ye={type:"literal",value:"\\",description:'"\\\\"'},_e=function(){return""},nt="e",ut={type:"literal",value:"e",description:'"e"'},et="E",tt={type:"literal",value:"E",description:'"E"'},Xe=function(_,I){return lr("Float",parseFloat(_+"e"+I),Pt,Ct)},it=function(_){return lr("Float",parseFloat(_),Pt,Ct)},Me="+",C={type:"literal",value:"+",description:'"+"'},w=function(_){return _.join("")},P="-",M={type:"literal",value:"-",description:'"-"'},V=function(_){return"-"+_.join("")},te=function(_){return lr("Integer",parseInt(_,10),Pt,Ct)},ee="true",j={type:"literal",value:"true",description:'"true"'},X=function(){return lr("Boolean",!0,Pt,Ct)},le="false",de={type:"literal",value:"false",description:'"false"'},he=function(){return lr("Boolean",!1,Pt,Ct)},Oe=function(){return lr("Array",[],Pt,Ct)},Ve=function(_){return lr("Array",_?[_]:[],Pt,Ct)},wt=function(_){return lr("Array",_,Pt,Ct)},Tt=function(_,I){return lr("Array",_.concat(I),Pt,Ct)},Dt=function(_){return _},pt=",",mt={type:"literal",value:",",description:'","'},Vt="{",sr={type:"literal",value:"{",description:'"{"'},un="}",Jr={type:"literal",value:"}",description:'"}"'},ur=function(_){return lr("InlineTable",_,Pt,Ct)},Hr=function(_,I){return lr("InlineTableValue",I,Pt,Ct,_)},dr=function(_){return"."+_},Jt=function(_){return _.join("")},Nt=":",_r={type:"literal",value:":",description:'":"'},Tr=function(_){return _.join("")},mn="T",ri={type:"literal",value:"T",description:'"T"'},qi="Z",ni={type:"literal",value:"Z",description:'"Z"'},Wa=function(_,I){return lr("Date",new Date(_+"T"+I+"Z"),Pt,Ct)},xr=function(_,I){return lr("Date",new Date(_+"T"+I),Pt,Ct)},aa=/^[ \t]/,N={type:"class",value:"[ \\t]",description:"[ \\t]"},K=` +`,$={type:"literal",value:` +`,description:'"\\n"'},A="\r",Q={type:"literal",value:"\r",description:'"\\r"'},fe=/^[0-9a-f]/i,pe={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Te=/^[0-9]/,qe={type:"class",value:"[0-9]",description:"[0-9]"},He="_",De={type:"literal",value:"_",description:'"_"'},St=function(){return""},Fe=/^[A-Za-z0-9_\-]/,at={type:"class",value:"[A-Za-z0-9_\\-]",description:"[A-Za-z0-9_\\-]"},lt=function(_){return _.join("")},gt='\\"',vt={type:"literal",value:'\\"',description:'"\\\\\\""'},ct=function(){return'"'},ft="\\\\",dt={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},$e=function(){return"\\"},Ze="\\b",je={type:"literal",value:"\\b",description:'"\\\\b"'},Ke=function(){return"\b"},Qe="\\t",Ue={type:"literal",value:"\\t",description:'"\\\\t"'},me=function(){return" "},ge="\\n",Ce={type:"literal",value:"\\n",description:'"\\\\n"'},Ae=function(){return` +`},ke="\\f",Re={type:"literal",value:"\\f",description:'"\\\\f"'},rt=function(){return"\f"},yt="\\r",_t={type:"literal",value:"\\r",description:'"\\\\r"'},ot=function(){return"\r"},oe="\\U",bt={type:"literal",value:"\\U",description:'"\\\\U"'},Et=function(_){return Su(_.join(""))},At="\\u",xt={type:"literal",value:"\\u",description:'"\\\\u"'},k=0,Ie=0,Ut=0,It={line:1,column:1,seenCR:!1},jt=0,Ft=[],we=0,Se={},Gt;if("startRule"in r){if(!(r.startRule in o))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');u=o[r.startRule]}function Pt(){return Ga(Ie).line}function Ct(){return Ga(Ie).column}function Ga(_){function I(z,Y,ue){var ve,be;for(ve=Y;ve_&&(Ut=0,It={line:1,column:1,seenCR:!1}),I(It,Ut,_),Ut=_),It}function Ne(_){kjt&&(jt=k,Ft=[]),Ft.push(_))}function Vc(_,I,z){function Y(ze){var ht=1;for(ze.sort(function(Mt,qt){return Mt.descriptionqt.description?1:0});ht1?qt.slice(0,-1).join(", ")+" or "+qt[ze.length-1]:qt[0],er=ht?'"'+Mt(ht)+'"':"end of input","Expected "+Xt+" but "+er+" found."}var ve=Ga(z),be=zk?(ve=i.charAt(k),k++):(ve=a,we===0&&Ne(S)),ve!==a?(ue=[ue,ve],Y=ue):(k=Y,Y=s)):(k=Y,Y=s);Y!==a;)z.push(Y),Y=k,ue=k,we++,ve=Br(),ve===a&&(ve=Bi()),we--,ve===a?ue=h:(k=ue,ue=s),ue!==a?(i.length>k?(ve=i.charAt(k),k++):(ve=a,we===0&&Ne(S)),ve!==a?(ue=[ue,ve],Y=ue):(k=Y,Y=s)):(k=Y,Y=s);z!==a?(I=[I,z],_=I):(k=_,_=s)}else k=_,_=s;return Se[be]={nextPos:k,result:_},_}function $c(){var _,I,z,Y,ue,ve,be=k*49+4,ze=Se[be];if(ze)return k=ze.nextPos,ze.result;if(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a){for(z=[],Y=We();Y!==a;)z.push(Y),Y=We();if(z!==a)if(Y=cu(),Y!==a){for(ue=[],ve=We();ve!==a;)ue.push(ve),ve=We();ue!==a?(i.charCodeAt(k)===93?(ve=v,k++):(ve=a,we===0&&Ne(p)),ve!==a?(Ie=_,I=m(Y),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;return Se[be]={nextPos:k,result:_},_}function lu(){var _,I,z,Y,ue,ve,be,ze,ht=k*49+5,Mt=Se[ht];if(Mt)return k=Mt.nextPos,Mt.result;if(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a)if(i.charCodeAt(k)===91?(z=f,k++):(z=a,we===0&&Ne(d)),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();if(Y!==a)if(ue=cu(),ue!==a){for(ve=[],be=We();be!==a;)ve.push(be),be=We();ve!==a?(i.charCodeAt(k)===93?(be=v,k++):(be=a,we===0&&Ne(p)),be!==a?(i.charCodeAt(k)===93?(ze=v,k++):(ze=a,we===0&&Ne(p)),ze!==a?(Ie=_,I=g(ue),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s;return Se[ht]={nextPos:k,result:_},_}function cu(){var _,I,z,Y=k*49+6,ue=Se[Y];if(ue)return k=ue.nextPos,ue.result;if(_=k,I=[],z=fu(),z!==a)for(;z!==a;)I.push(z),z=fu();else I=s;return I!==a?(z=gn(),z!==a?(Ie=_,I=b(I,z),_=I):(k=_,_=s)):(k=_,_=s),_===a&&(_=k,I=gn(),I!==a&&(Ie=_,I=R(I)),_=I),Se[Y]={nextPos:k,result:_},_}function gn(){var _,I,z,Y,ue,ve=k*49+7,be=Se[ve];if(be)return k=be.nextPos,be.result;for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=yn(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();Y!==a?(Ie=_,I=B(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s;if(_===a){for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=Ya(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();Y!==a?(Ie=_,I=B(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s}return Se[ve]={nextPos:k,result:_},_}function fu(){var _,I,z,Y,ue,ve,be,ze=k*49+8,ht=Se[ze];if(ht)return k=ht.nextPos,ht.result;for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=yn(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();if(Y!==a)if(i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),ue!==a){for(ve=[],be=We();be!==a;)ve.push(be),be=We();ve!==a?(Ie=_,I=B(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s;if(_===a){for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=Ya(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();if(Y!==a)if(i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),ue!==a){for(ve=[],be=We();be!==a;)ve.push(be),be=We();ve!==a?(Ie=_,I=B(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s}return Se[ze]={nextPos:k,result:_},_}function du(){var _,I,z,Y,ue,ve,be=k*49+9,ze=Se[be];if(ze)return k=ze.nextPos,ze.result;if(_=k,I=yn(),I!==a){for(z=[],Y=We();Y!==a;)z.push(Y),Y=We();if(z!==a)if(i.charCodeAt(k)===61?(Y=F,k++):(Y=a,we===0&&Ne(U)),Y!==a){for(ue=[],ve=We();ve!==a;)ue.push(ve),ve=We();ue!==a?(ve=ai(),ve!==a?(Ie=_,I=J(I,ve),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;if(_===a)if(_=k,I=Ya(),I!==a){for(z=[],Y=We();Y!==a;)z.push(Y),Y=We();if(z!==a)if(i.charCodeAt(k)===61?(Y=F,k++):(Y=a,we===0&&Ne(U)),Y!==a){for(ue=[],ve=We();ve!==a;)ue.push(ve),ve=We();ue!==a?(ve=ai(),ve!==a?(Ie=_,I=J(I,ve),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;return Se[be]={nextPos:k,result:_},_}function yn(){var _,I,z,Y=k*49+10,ue=Se[Y];if(ue)return k=ue.nextPos,ue.result;if(_=k,I=[],z=ro(),z!==a)for(;z!==a;)I.push(z),z=ro();else I=s;return I!==a&&(Ie=_,I=ce(I)),_=I,Se[Y]={nextPos:k,result:_},_}function Ya(){var _,I,z=k*49+11,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(_=k,I=Vn(),I!==a&&(Ie=_,I=E(I)),_=I,_===a&&(_=k,I=pu(),I!==a&&(Ie=_,I=E(I)),_=I),Se[z]={nextPos:k,result:_},_)}function ai(){var _,I=k*49+12,z=Se[I];return z?(k=z.nextPos,z.result):(_=Hc(),_===a&&(_=Zc(),_===a&&(_=Qc(),_===a&&(_=Wc(),_===a&&(_=_u(),_===a&&(_=Gc(),_===a&&(_=Yc())))))),Se[I]={nextPos:k,result:_},_)}function Hc(){var _,I=k*49+13,z=Se[I];return z?(k=z.nextPos,z.result):(_=hu(),_===a&&(_=Vn(),_===a&&(_=Kc(),_===a&&(_=pu()))),Se[I]={nextPos:k,result:_},_)}function hu(){var _,I,z,Y,ue,ve=k*49+14,be=Se[ve];if(be)return k=be.nextPos,be.result;if(_=k,i.substr(k,3)===O?(I=O,k+=3):(I=a,we===0&&Ne(H)),I!==a)if(z=Br(),z===a&&(z=Z),z!==a){for(Y=[],ue=gu();ue!==a;)Y.push(ue),ue=gu();Y!==a?(i.substr(k,3)===O?(ue=O,k+=3):(ue=a,we===0&&Ne(H)),ue!==a?(Ie=_,I=ne(Y),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s;return Se[ve]={nextPos:k,result:_},_}function Vn(){var _,I,z,Y,ue=k*49+15,ve=Se[ue];if(ve)return k=ve.nextPos,ve.result;if(_=k,i.charCodeAt(k)===34?(I=W,k++):(I=a,we===0&&Ne(re)),I!==a){for(z=[],Y=vu();Y!==a;)z.push(Y),Y=vu();z!==a?(i.charCodeAt(k)===34?(Y=W,k++):(Y=a,we===0&&Ne(re)),Y!==a?(Ie=_,I=ne(z),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;return Se[ue]={nextPos:k,result:_},_}function Kc(){var _,I,z,Y,ue,ve=k*49+16,be=Se[ve];if(be)return k=be.nextPos,be.result;if(_=k,i.substr(k,3)===ae?(I=ae,k+=3):(I=a,we===0&&Ne(G)),I!==a)if(z=Br(),z===a&&(z=Z),z!==a){for(Y=[],ue=yu();ue!==a;)Y.push(ue),ue=yu();Y!==a?(i.substr(k,3)===ae?(ue=ae,k+=3):(ue=a,we===0&&Ne(G)),ue!==a?(Ie=_,I=ne(Y),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s;return Se[ve]={nextPos:k,result:_},_}function pu(){var _,I,z,Y,ue=k*49+17,ve=Se[ue];if(ve)return k=ve.nextPos,ve.result;if(_=k,i.charCodeAt(k)===39?(I=se,k++):(I=a,we===0&&Ne(Ee)),I!==a){for(z=[],Y=mu();Y!==a;)z.push(Y),Y=mu();z!==a?(i.charCodeAt(k)===39?(Y=se,k++):(Y=a,we===0&&Ne(Ee)),Y!==a?(Ie=_,I=ne(z),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;return Se[ue]={nextPos:k,result:_},_}function vu(){var _,I,z,Y=k*49+18,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(_=no(),_===a&&(_=k,I=k,we++,i.charCodeAt(k)===34?(z=W,k++):(z=a,we===0&&Ne(re)),we--,z===a?I=h:(k=I,I=s),I!==a?(i.length>k?(z=i.charAt(k),k++):(z=a,we===0&&Ne(S)),z!==a?(Ie=_,I=Be(z),_=I):(k=_,_=s)):(k=_,_=s)),Se[Y]={nextPos:k,result:_},_)}function mu(){var _,I,z,Y=k*49+19,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(_=k,I=k,we++,i.charCodeAt(k)===39?(z=se,k++):(z=a,we===0&&Ne(Ee)),we--,z===a?I=h:(k=I,I=s),I!==a?(i.length>k?(z=i.charAt(k),k++):(z=a,we===0&&Ne(S)),z!==a?(Ie=_,I=Be(z),_=I):(k=_,_=s)):(k=_,_=s),Se[Y]={nextPos:k,result:_},_)}function gu(){var _,I,z,Y=k*49+20,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(_=no(),_===a&&(_=Xc(),_===a&&(_=k,I=k,we++,i.substr(k,3)===O?(z=O,k+=3):(z=a,we===0&&Ne(H)),we--,z===a?I=h:(k=I,I=s),I!==a?(i.length>k?(z=i.charAt(k),k++):(z=a,we===0&&Ne(S)),z!==a?(Ie=_,I=Pe(z),_=I):(k=_,_=s)):(k=_,_=s))),Se[Y]={nextPos:k,result:_},_)}function Xc(){var _,I,z,Y,ue,ve=k*49+21,be=Se[ve];if(be)return k=be.nextPos,be.result;if(_=k,i.charCodeAt(k)===92?(I=xe,k++):(I=a,we===0&&Ne(Ye)),I!==a)if(z=Br(),z!==a){for(Y=[],ue=to();ue!==a;)Y.push(ue),ue=to();Y!==a?(Ie=_,I=_e(),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s;return Se[ve]={nextPos:k,result:_},_}function yu(){var _,I,z,Y=k*49+22,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(_=k,I=k,we++,i.substr(k,3)===ae?(z=ae,k+=3):(z=a,we===0&&Ne(G)),we--,z===a?I=h:(k=I,I=s),I!==a?(i.length>k?(z=i.charAt(k),k++):(z=a,we===0&&Ne(S)),z!==a?(Ie=_,I=Be(z),_=I):(k=_,_=s)):(k=_,_=s),Se[Y]={nextPos:k,result:_},_)}function Qc(){var _,I,z,Y,ue=k*49+23,ve=Se[ue];return ve?(k=ve.nextPos,ve.result):(_=k,I=wu(),I===a&&(I=oi()),I!==a?(i.charCodeAt(k)===101?(z=nt,k++):(z=a,we===0&&Ne(ut)),z===a&&(i.charCodeAt(k)===69?(z=et,k++):(z=a,we===0&&Ne(tt))),z!==a?(Y=oi(),Y!==a?(Ie=_,I=Xe(I,Y),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s),_===a&&(_=k,I=wu(),I!==a&&(Ie=_,I=it(I)),_=I),Se[ue]={nextPos:k,result:_},_)}function wu(){var _,I,z,Y,ue,ve,be=k*49+24,ze=Se[be];return ze?(k=ze.nextPos,ze.result):(_=k,i.charCodeAt(k)===43?(I=Me,k++):(I=a,we===0&&Ne(C)),I===a&&(I=Z),I!==a?(z=k,Y=si(),Y!==a?(i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),ue!==a?(ve=si(),ve!==a?(Y=[Y,ue,ve],z=Y):(k=z,z=s)):(k=z,z=s)):(k=z,z=s),z!==a?(Ie=_,I=w(z),_=I):(k=_,_=s)):(k=_,_=s),_===a&&(_=k,i.charCodeAt(k)===45?(I=P,k++):(I=a,we===0&&Ne(M)),I!==a?(z=k,Y=si(),Y!==a?(i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),ue!==a?(ve=si(),ve!==a?(Y=[Y,ue,ve],z=Y):(k=z,z=s)):(k=z,z=s)):(k=z,z=s),z!==a?(Ie=_,I=V(z),_=I):(k=_,_=s)):(k=_,_=s)),Se[be]={nextPos:k,result:_},_)}function Wc(){var _,I,z=k*49+25,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(_=k,I=oi(),I!==a&&(Ie=_,I=te(I)),_=I,Se[z]={nextPos:k,result:_},_)}function oi(){var _,I,z,Y,ue,ve=k*49+26,be=Se[ve];if(be)return k=be.nextPos,be.result;if(_=k,i.charCodeAt(k)===43?(I=Me,k++):(I=a,we===0&&Ne(C)),I===a&&(I=Z),I!==a){if(z=[],Y=Bt(),Y!==a)for(;Y!==a;)z.push(Y),Y=Bt();else z=s;z!==a?(Y=k,we++,i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),we--,ue===a?Y=h:(k=Y,Y=s),Y!==a?(Ie=_,I=w(z),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;if(_===a)if(_=k,i.charCodeAt(k)===45?(I=P,k++):(I=a,we===0&&Ne(M)),I!==a){if(z=[],Y=Bt(),Y!==a)for(;Y!==a;)z.push(Y),Y=Bt();else z=s;z!==a?(Y=k,we++,i.charCodeAt(k)===46?(ue=L,k++):(ue=a,we===0&&Ne(q)),we--,ue===a?Y=h:(k=Y,Y=s),Y!==a?(Ie=_,I=V(z),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;return Se[ve]={nextPos:k,result:_},_}function _u(){var _,I,z=k*49+27,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(_=k,i.substr(k,4)===ee?(I=ee,k+=4):(I=a,we===0&&Ne(j)),I!==a&&(Ie=_,I=X()),_=I,_===a&&(_=k,i.substr(k,5)===le?(I=le,k+=5):(I=a,we===0&&Ne(de)),I!==a&&(Ie=_,I=he()),_=I),Se[z]={nextPos:k,result:_},_)}function Gc(){var _,I,z,Y,ue,ve=k*49+28,be=Se[ve];if(be)return k=be.nextPos,be.result;if(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a){for(z=[],Y=qr();Y!==a;)z.push(Y),Y=qr();z!==a?(i.charCodeAt(k)===93?(Y=v,k++):(Y=a,we===0&&Ne(p)),Y!==a?(Ie=_,I=Oe(),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;if(_===a&&(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a?(z=xu(),z===a&&(z=Z),z!==a?(i.charCodeAt(k)===93?(Y=v,k++):(Y=a,we===0&&Ne(p)),Y!==a?(Ie=_,I=Ve(z),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s),_===a)){if(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a){if(z=[],Y=sa(),Y!==a)for(;Y!==a;)z.push(Y),Y=sa();else z=s;z!==a?(i.charCodeAt(k)===93?(Y=v,k++):(Y=a,we===0&&Ne(p)),Y!==a?(Ie=_,I=wt(z),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;if(_===a)if(_=k,i.charCodeAt(k)===91?(I=f,k++):(I=a,we===0&&Ne(d)),I!==a){if(z=[],Y=sa(),Y!==a)for(;Y!==a;)z.push(Y),Y=sa();else z=s;z!==a?(Y=xu(),Y!==a?(i.charCodeAt(k)===93?(ue=v,k++):(ue=a,we===0&&Ne(p)),ue!==a?(Ie=_,I=Tt(z,Y),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s)}else k=_,_=s}return Se[ve]={nextPos:k,result:_},_}function xu(){var _,I,z,Y,ue,ve=k*49+29,be=Se[ve];if(be)return k=be.nextPos,be.result;for(_=k,I=[],z=qr();z!==a;)I.push(z),z=qr();if(I!==a)if(z=ai(),z!==a){for(Y=[],ue=qr();ue!==a;)Y.push(ue),ue=qr();Y!==a?(Ie=_,I=Dt(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s;return Se[ve]={nextPos:k,result:_},_}function sa(){var _,I,z,Y,ue,ve,be,ze=k*49+30,ht=Se[ze];if(ht)return k=ht.nextPos,ht.result;for(_=k,I=[],z=qr();z!==a;)I.push(z),z=qr();if(I!==a)if(z=ai(),z!==a){for(Y=[],ue=qr();ue!==a;)Y.push(ue),ue=qr();if(Y!==a)if(i.charCodeAt(k)===44?(ue=pt,k++):(ue=a,we===0&&Ne(mt)),ue!==a){for(ve=[],be=qr();be!==a;)ve.push(be),be=qr();ve!==a?(Ie=_,I=Dt(z),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s;return Se[ze]={nextPos:k,result:_},_}function qr(){var _,I=k*49+31,z=Se[I];return z?(k=z.nextPos,z.result):(_=We(),_===a&&(_=Br(),_===a&&(_=oa())),Se[I]={nextPos:k,result:_},_)}function Yc(){var _,I,z,Y,ue,ve,be=k*49+32,ze=Se[be];if(ze)return k=ze.nextPos,ze.result;if(_=k,i.charCodeAt(k)===123?(I=Vt,k++):(I=a,we===0&&Ne(sr)),I!==a){for(z=[],Y=We();Y!==a;)z.push(Y),Y=We();if(z!==a){for(Y=[],ue=ua();ue!==a;)Y.push(ue),ue=ua();if(Y!==a){for(ue=[],ve=We();ve!==a;)ue.push(ve),ve=We();ue!==a?(i.charCodeAt(k)===125?(ve=un,k++):(ve=a,we===0&&Ne(Jr)),ve!==a?(Ie=_,I=ur(Y),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s}else k=_,_=s}else k=_,_=s;return Se[be]={nextPos:k,result:_},_}function ua(){var _,I,z,Y,ue,ve,be,ze,ht,Mt,qt,Xt=k*49+33,er=Se[Xt];if(er)return k=er.nextPos,er.result;for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=yn(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();if(Y!==a)if(i.charCodeAt(k)===61?(ue=F,k++):(ue=a,we===0&&Ne(U)),ue!==a){for(ve=[],be=We();be!==a;)ve.push(be),be=We();if(ve!==a)if(be=ai(),be!==a){for(ze=[],ht=We();ht!==a;)ze.push(ht),ht=We();if(ze!==a)if(i.charCodeAt(k)===44?(ht=pt,k++):(ht=a,we===0&&Ne(mt)),ht!==a){for(Mt=[],qt=We();qt!==a;)Mt.push(qt),qt=We();Mt!==a?(Ie=_,I=Hr(z,be),_=I):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s;if(_===a){for(_=k,I=[],z=We();z!==a;)I.push(z),z=We();if(I!==a)if(z=yn(),z!==a){for(Y=[],ue=We();ue!==a;)Y.push(ue),ue=We();if(Y!==a)if(i.charCodeAt(k)===61?(ue=F,k++):(ue=a,we===0&&Ne(U)),ue!==a){for(ve=[],be=We();be!==a;)ve.push(be),be=We();ve!==a?(be=ai(),be!==a?(Ie=_,I=Hr(z,be),_=I):(k=_,_=s)):(k=_,_=s)}else k=_,_=s;else k=_,_=s}else k=_,_=s;else k=_,_=s}return Se[Xt]={nextPos:k,result:_},_}function Za(){var _,I,z,Y=k*49+34,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(_=k,i.charCodeAt(k)===46?(I=L,k++):(I=a,we===0&&Ne(q)),I!==a?(z=si(),z!==a?(Ie=_,I=dr(z),_=I):(k=_,_=s)):(k=_,_=s),Se[Y]={nextPos:k,result:_},_)}function Ja(){var _,I,z,Y,ue,ve,be,ze,ht,Mt,qt,Xt,er=k*49+35,Lr=Se[er];return Lr?(k=Lr.nextPos,Lr.result):(_=k,I=k,z=Bt(),z!==a?(Y=Bt(),Y!==a?(ue=Bt(),ue!==a?(ve=Bt(),ve!==a?(i.charCodeAt(k)===45?(be=P,k++):(be=a,we===0&&Ne(M)),be!==a?(ze=Bt(),ze!==a?(ht=Bt(),ht!==a?(i.charCodeAt(k)===45?(Mt=P,k++):(Mt=a,we===0&&Ne(M)),Mt!==a?(qt=Bt(),qt!==a?(Xt=Bt(),Xt!==a?(z=[z,Y,ue,ve,be,ze,ht,Mt,qt,Xt],I=z):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s),I!==a&&(Ie=_,I=Jt(I)),_=I,Se[er]={nextPos:k,result:_},_)}function eo(){var _,I,z,Y,ue,ve,be,ze,ht,Mt,qt,Xt=k*49+36,er=Se[Xt];return er?(k=er.nextPos,er.result):(_=k,I=k,z=Bt(),z!==a?(Y=Bt(),Y!==a?(i.charCodeAt(k)===58?(ue=Nt,k++):(ue=a,we===0&&Ne(_r)),ue!==a?(ve=Bt(),ve!==a?(be=Bt(),be!==a?(i.charCodeAt(k)===58?(ze=Nt,k++):(ze=a,we===0&&Ne(_r)),ze!==a?(ht=Bt(),ht!==a?(Mt=Bt(),Mt!==a?(qt=Za(),qt===a&&(qt=Z),qt!==a?(z=[z,Y,ue,ve,be,ze,ht,Mt,qt],I=z):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s),I!==a&&(Ie=_,I=Tr(I)),_=I,Se[Xt]={nextPos:k,result:_},_)}function la(){var _,I,z,Y,ue,ve,be,ze,ht,Mt,qt,Xt,er,Lr,wn,qn,Nr,ku=k*49+37,ao=Se[ku];return ao?(k=ao.nextPos,ao.result):(_=k,I=k,z=Bt(),z!==a?(Y=Bt(),Y!==a?(i.charCodeAt(k)===58?(ue=Nt,k++):(ue=a,we===0&&Ne(_r)),ue!==a?(ve=Bt(),ve!==a?(be=Bt(),be!==a?(i.charCodeAt(k)===58?(ze=Nt,k++):(ze=a,we===0&&Ne(_r)),ze!==a?(ht=Bt(),ht!==a?(Mt=Bt(),Mt!==a?(qt=Za(),qt===a&&(qt=Z),qt!==a?(i.charCodeAt(k)===45?(Xt=P,k++):(Xt=a,we===0&&Ne(M)),Xt===a&&(i.charCodeAt(k)===43?(Xt=Me,k++):(Xt=a,we===0&&Ne(C))),Xt!==a?(er=Bt(),er!==a?(Lr=Bt(),Lr!==a?(i.charCodeAt(k)===58?(wn=Nt,k++):(wn=a,we===0&&Ne(_r)),wn!==a?(qn=Bt(),qn!==a?(Nr=Bt(),Nr!==a?(z=[z,Y,ue,ve,be,ze,ht,Mt,qt,Xt,er,Lr,wn,qn,Nr],I=z):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s)):(k=I,I=s),I!==a&&(Ie=_,I=Tr(I)),_=I,Se[ku]={nextPos:k,result:_},_)}function Zc(){var _,I,z,Y,ue,ve=k*49+38,be=Se[ve];return be?(k=be.nextPos,be.result):(_=k,I=Ja(),I!==a?(i.charCodeAt(k)===84?(z=mn,k++):(z=a,we===0&&Ne(ri)),z!==a?(Y=eo(),Y!==a?(i.charCodeAt(k)===90?(ue=qi,k++):(ue=a,we===0&&Ne(ni)),ue!==a?(Ie=_,I=Wa(I,Y),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s)):(k=_,_=s),_===a&&(_=k,I=Ja(),I!==a?(i.charCodeAt(k)===84?(z=mn,k++):(z=a,we===0&&Ne(ri)),z!==a?(Y=la(),Y!==a?(Ie=_,I=xr(I,Y),_=I):(k=_,_=s)):(k=_,_=s)):(k=_,_=s)),Se[ve]={nextPos:k,result:_},_)}function We(){var _,I=k*49+39,z=Se[I];return z?(k=z.nextPos,z.result):(aa.test(i.charAt(k))?(_=i.charAt(k),k++):(_=a,we===0&&Ne(N)),Se[I]={nextPos:k,result:_},_)}function Br(){var _,I,z,Y=k*49+40,ue=Se[Y];return ue?(k=ue.nextPos,ue.result):(i.charCodeAt(k)===10?(_=K,k++):(_=a,we===0&&Ne($)),_===a&&(_=k,i.charCodeAt(k)===13?(I=A,k++):(I=a,we===0&&Ne(Q)),I!==a?(i.charCodeAt(k)===10?(z=K,k++):(z=a,we===0&&Ne($)),z!==a?(I=[I,z],_=I):(k=_,_=s)):(k=_,_=s)),Se[Y]={nextPos:k,result:_},_)}function to(){var _,I=k*49+41,z=Se[I];return z?(k=z.nextPos,z.result):(_=Br(),_===a&&(_=We()),Se[I]={nextPos:k,result:_},_)}function Bi(){var _,I,z=k*49+42,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(_=k,we++,i.length>k?(I=i.charAt(k),k++):(I=a,we===0&&Ne(S)),we--,I===a?_=h:(k=_,_=s),Se[z]={nextPos:k,result:_},_)}function Mr(){var _,I=k*49+43,z=Se[I];return z?(k=z.nextPos,z.result):(fe.test(i.charAt(k))?(_=i.charAt(k),k++):(_=a,we===0&&Ne(pe)),Se[I]={nextPos:k,result:_},_)}function Bt(){var _,I,z=k*49+44,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(Te.test(i.charAt(k))?(_=i.charAt(k),k++):(_=a,we===0&&Ne(qe)),_===a&&(_=k,i.charCodeAt(k)===95?(I=He,k++):(I=a,we===0&&Ne(De)),I!==a&&(Ie=_,I=St()),_=I),Se[z]={nextPos:k,result:_},_)}function ro(){var _,I=k*49+45,z=Se[I];return z?(k=z.nextPos,z.result):(Fe.test(i.charAt(k))?(_=i.charAt(k),k++):(_=a,we===0&&Ne(at)),Se[I]={nextPos:k,result:_},_)}function si(){var _,I,z,Y=k*49+46,ue=Se[Y];if(ue)return k=ue.nextPos,ue.result;if(_=k,I=[],z=Bt(),z!==a)for(;z!==a;)I.push(z),z=Bt();else I=s;return I!==a&&(Ie=_,I=lt(I)),_=I,Se[Y]={nextPos:k,result:_},_}function no(){var _,I,z=k*49+47,Y=Se[z];return Y?(k=Y.nextPos,Y.result):(_=k,i.substr(k,2)===gt?(I=gt,k+=2):(I=a,we===0&&Ne(vt)),I!==a&&(Ie=_,I=ct()),_=I,_===a&&(_=k,i.substr(k,2)===ft?(I=ft,k+=2):(I=a,we===0&&Ne(dt)),I!==a&&(Ie=_,I=$e()),_=I,_===a&&(_=k,i.substr(k,2)===Ze?(I=Ze,k+=2):(I=a,we===0&&Ne(je)),I!==a&&(Ie=_,I=Ke()),_=I,_===a&&(_=k,i.substr(k,2)===Qe?(I=Qe,k+=2):(I=a,we===0&&Ne(Ue)),I!==a&&(Ie=_,I=me()),_=I,_===a&&(_=k,i.substr(k,2)===ge?(I=ge,k+=2):(I=a,we===0&&Ne(Ce)),I!==a&&(Ie=_,I=Ae()),_=I,_===a&&(_=k,i.substr(k,2)===ke?(I=ke,k+=2):(I=a,we===0&&Ne(Re)),I!==a&&(Ie=_,I=rt()),_=I,_===a&&(_=k,i.substr(k,2)===yt?(I=yt,k+=2):(I=a,we===0&&Ne(_t)),I!==a&&(Ie=_,I=ot()),_=I,_===a&&(_=ui()))))))),Se[z]={nextPos:k,result:_},_)}function ui(){var _,I,z,Y,ue,ve,be,ze,ht,Mt,qt,Xt=k*49+48,er=Se[Xt];return er?(k=er.nextPos,er.result):(_=k,i.substr(k,2)===oe?(I=oe,k+=2):(I=a,we===0&&Ne(bt)),I!==a?(z=k,Y=Mr(),Y!==a?(ue=Mr(),ue!==a?(ve=Mr(),ve!==a?(be=Mr(),be!==a?(ze=Mr(),ze!==a?(ht=Mr(),ht!==a?(Mt=Mr(),Mt!==a?(qt=Mr(),qt!==a?(Y=[Y,ue,ve,be,ze,ht,Mt,qt],z=Y):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s),z!==a?(Ie=_,I=Et(z),_=I):(k=_,_=s)):(k=_,_=s),_===a&&(_=k,i.substr(k,2)===At?(I=At,k+=2):(I=a,we===0&&Ne(xt)),I!==a?(z=k,Y=Mr(),Y!==a?(ue=Mr(),ue!==a?(ve=Mr(),ve!==a?(be=Mr(),be!==a?(Y=[Y,ue,ve,be],z=Y):(k=z,z=s)):(k=z,z=s)):(k=z,z=s)):(k=z,z=s),z!==a?(Ie=_,I=Et(z),_=I):(k=_,_=s)):(k=_,_=s)),Se[Xt]={nextPos:k,result:_},_)}var bu=[];function Jc(_,I,z){var Y=new Error(_);throw Y.line=I,Y.column=z,Y}function io(_){bu.push(_)}function lr(_,I,z,Y,ue){var ve={type:_,value:I,line:z(),column:Y()};return ue&&(ve.key=ue),ve}function Su(_,I,z){var Y=parseInt("0x"+_);if(!isFinite(Y)||Math.floor(Y)!=Y||Y<0||Y>1114111||Y>55295&&Y<57344)Jc("Invalid Unicode escape code: "+_,I,z);else return Eu(Y)}function Eu(){var _=16384,I=[],z,Y,ue=-1,ve=arguments.length;if(!ve)return"";for(var be="";++ue>10)+55296,Y=ze%1024+56320,I.push(z,Y)),(ue+1==ve||I.length>_)&&(be+=String.fromCharCode.apply(null,I),I.length=0)}return be}if(Gt=u(),Gt!==a&&k===i.length)return Gt;throw Gt!==a&&k"u"?U===g.length-1?F[J]=b:F[J]={}:U!==g.length-1&&i.indexOf(q)>-1&&l("Cannot redefine existing key '"+q+"'.",R,B),F=F[J],F instanceof Array&&F.length&&U-1?'"'+m+'"':m}}return Tv={compile:e},Tv}var Pv,vE;function fR(){if(vE)return Pv;vE=1;var e=lR(),t=cR();return Pv={parse:function(n){var i=e.parse(n.toString());return t.compile(i)}},Pv}var mE;function sk(){return mE||(mE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StellarTomlResolver=e.STELLAR_TOML_MAX_SIZE=void 0;var t=Kt,n=t.__importDefault(ay()),i=t.__importDefault(fR()),r=Uc();e.STELLAR_TOML_MAX_SIZE=100*1024;var a=n.default.CancelToken,o=function(){function u(){}return u.resolve=function(l,s){return s===void 0&&(s={}),t.__awaiter(this,void 0,void 0,function(){var y,c,h;return t.__generator(this,function(S){return y=typeof s.allowHttp>"u"?r.Config.isAllowHttp():s.allowHttp,c=typeof s.timeout>"u"?r.Config.getTimeout():s.timeout,h=y?"http":"https",[2,n.default.get(h+"://"+l+"/.well-known/stellar.toml",{maxContentLength:e.STELLAR_TOML_MAX_SIZE,cancelToken:c?new a(function(f){return setTimeout(function(){return f("timeout of "+c+"ms exceeded")},c)}):void 0,timeout:c}).then(function(f){try{var d=i.default.parse(f.data);return Promise.resolve(d)}catch(v){return Promise.reject(new Error("stellar.toml is invalid - Parsing error on line "+v.line+", column "+v.column+": "+v.message))}}).catch(function(f){throw f.message.match(/^maxContentLength size/)?new Error("stellar.toml file exceeds allowed size of "+e.STELLAR_TOML_MAX_SIZE):f})]})})},u}();e.StellarTomlResolver=o}(kv)),kv}var gE;function dR(){return gE||(gE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FederationServer=e.FEDERATION_RESPONSE_MAX_SIZE=void 0;var t=Kt,n=t.__importDefault(ay()),i=au(),r=t.__importDefault(ou()),a=Uc(),o=Qa(),u=sk();e.FEDERATION_RESPONSE_MAX_SIZE=100*1024;var l=function(){function s(y,c,h){h===void 0&&(h={}),this.serverURL=r.default(y),this.domain=c;var S=typeof h.allowHttp>"u"?a.Config.isAllowHttp():h.allowHttp;if(this.timeout=typeof h.timeout>"u"?a.Config.getTimeout():h.timeout,this.serverURL.protocol()!=="https"&&!S)throw new Error("Cannot connect to insecure federation server")}return s.resolve=function(y,c){return c===void 0&&(c={}),t.__awaiter(this,void 0,void 0,function(){var h,S,f;return t.__generator(this,function(d){switch(d.label){case 0:return y.indexOf("*")<0?i.StrKey.isValidEd25519PublicKey(y)?[2,Promise.resolve({account_id:y})]:[2,Promise.reject(new Error("Invalid Account ID"))]:(h=y.split("*"),S=h[1],h.length!==2||!S?[2,Promise.reject(new Error("Invalid Stellar address"))]:[4,s.createForDomain(S,c)]);case 1:return f=d.sent(),[2,f.resolveAddress(y)]}})})},s.createForDomain=function(y,c){return c===void 0&&(c={}),t.__awaiter(this,void 0,void 0,function(){var h;return t.__generator(this,function(S){switch(S.label){case 0:return[4,u.StellarTomlResolver.resolve(y,c)];case 1:return h=S.sent(),h.FEDERATION_SERVER?[2,new s(h.FEDERATION_SERVER,y,c)]:[2,Promise.reject(new Error("stellar.toml does not contain FEDERATION_SERVER field"))]}})})},s.prototype.resolveAddress=function(y){return t.__awaiter(this,void 0,void 0,function(){var c,h;return t.__generator(this,function(S){if(c=y,y.indexOf("*")<0){if(!this.domain)return[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."))];c=y+"*"+this.domain}return h=this.serverURL.query({type:"name",q:c}),[2,this._sendRequest(h)]})})},s.prototype.resolveAccountId=function(y){return t.__awaiter(this,void 0,void 0,function(){var c;return t.__generator(this,function(h){return c=this.serverURL.query({type:"id",q:y}),[2,this._sendRequest(c)]})})},s.prototype.resolveTransactionId=function(y){return t.__awaiter(this,void 0,void 0,function(){var c;return t.__generator(this,function(h){return c=this.serverURL.query({type:"txid",q:y}),[2,this._sendRequest(c)]})})},s.prototype._sendRequest=function(y){return t.__awaiter(this,void 0,void 0,function(){var c;return t.__generator(this,function(h){return c=this.timeout,[2,n.default.get(y.toString(),{maxContentLength:e.FEDERATION_RESPONSE_MAX_SIZE,timeout:c}).then(function(S){if(typeof S.data.memo<"u"&&typeof S.data.memo!="string")throw new Error("memo value should be of type string");return S.data}).catch(function(S){if(S instanceof Error){if(S.message.match(/^maxContentLength size/))throw new Error("federation response exceeds allowed size of "+e.FEDERATION_RESPONSE_MAX_SIZE);return Promise.reject(S)}else return Promise.reject(new o.BadResponseError("Server query failed. Server responded: "+S.status+" "+S.statusText,S.data))})]})})},s}();e.FederationServer=l}(Ev)),Ev}var Cv={},kl={exports:{}},yE;function hR(){if(yE)return kl.exports;yE=1;var e=65536,t=4294967295;function n(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var i=Ri().Buffer,r=$t.crypto||$t.msCrypto;r&&r.getRandomValues?kl.exports=a:kl.exports=n;function a(o,u){if(o>t)throw new RangeError("requested too many random bytes");var l=i.allocUnsafe(o);if(o>0)if(o>e)for(var s=0;s=Number.parseInt(m,10)-d&&v<=Number.parseInt(g,10)+d}})(e.Utils||(e.Utils={}))}(Cv)),Cv}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0;var n=Kt;jT.polyfill();var i=qg.version;t.version=i,n.__exportStar(aP(),t),n.__exportStar(oP(),t),n.__exportStar(Y5(),t),n.__exportStar(Qa(),t);var r=Uc();Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return r.Config}});var a=uR();Object.defineProperty(t,"Server",{enumerable:!0,get:function(){return a.Server}});var o=dR();Object.defineProperty(t,"FederationServer",{enumerable:!0,get:function(){return o.FederationServer}}),Object.defineProperty(t,"FEDERATION_RESPONSE_MAX_SIZE",{enumerable:!0,get:function(){return o.FEDERATION_RESPONSE_MAX_SIZE}});var u=sk();Object.defineProperty(t,"StellarTomlResolver",{enumerable:!0,get:function(){return u.StellarTomlResolver}}),Object.defineProperty(t,"STELLAR_TOML_MAX_SIZE",{enumerable:!0,get:function(){return u.STELLAR_TOML_MAX_SIZE}});var l=oy();Object.defineProperty(t,"HorizonAxiosClient",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"SERVER_TIME_MAP",{enumerable:!0,get:function(){return l.SERVER_TIME_MAP}}),Object.defineProperty(t,"getCurrentServerTime",{enumerable:!0,get:function(){return l.getCurrentServerTime}}),n.__exportStar(pR(),t),n.__exportStar(au(),t),t.default=e.exports})(Sm,Sm.exports);var vR=Sm.exports;const kn=lc(vR);var uk={exports:{}};/*! +* sweetalert2 v11.7.21 +* Released under the MIT License. +*/(function(e,t){(function(n,i){e.exports=i()})($t,function(){const i={},r=()=>{i.previousActiveElement instanceof HTMLElement?(i.previousActiveElement.focus(),i.previousActiveElement=null):document.body&&document.body.focus()},a=x=>new Promise(T=>{if(!x)return T();const D=window.scrollX,ie=window.scrollY;i.restoreFocusTimeout=setTimeout(()=>{r(),T()},100),window.scrollTo(D,ie)});var o={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const u="swal2-",s=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((x,T)=>(x[T]=u+T,x),{}),c=["success","warning","info","question","error"].reduce((x,T)=>(x[T]=u+T,x),{}),h="SweetAlert2:",S=x=>x.charAt(0).toUpperCase()+x.slice(1),f=x=>{console.warn(`${h} ${typeof x=="object"?x.join(" "):x}`)},d=x=>{console.error(`${h} ${x}`)},v=[],p=x=>{v.includes(x)||(v.push(x),f(x))},m=(x,T)=>{p(`"${x}" is deprecated and will be removed in the next major release. Please use "${T}" instead.`)},g=x=>typeof x=="function"?x():x,b=x=>x&&typeof x.toPromise=="function",R=x=>b(x)?x.toPromise():Promise.resolve(x),B=x=>x&&Promise.resolve(x)===x,L=()=>document.body.querySelector(`.${s.container}`),q=x=>{const T=L();return T?T.querySelector(x):null},F=x=>q(`.${x}`),U=()=>F(s.popup),J=()=>F(s.icon),ce=()=>F(s["icon-content"]),E=()=>F(s.title),O=()=>F(s["html-container"]),H=()=>F(s.image),Z=()=>F(s["progress-steps"]),ne=()=>F(s["validation-message"]),W=()=>q(`.${s.actions} .${s.confirm}`),re=()=>q(`.${s.actions} .${s.cancel}`),ae=()=>q(`.${s.actions} .${s.deny}`),G=()=>F(s["input-label"]),se=()=>q(`.${s.loader}`),Ee=()=>F(s.actions),Be=()=>F(s.footer),Pe=()=>F(s["timer-progress-bar"]),xe=()=>F(s.close),Ye=` + a[href], + area[href], + input:not([disabled]), + select:not([disabled]), + textarea:not([disabled]), + button:not([disabled]), + iframe, + object, + embed, + [tabindex="0"], + [contenteditable], + audio[controls], + video[controls], + summary +`,_e=()=>{const x=U();if(!x)return[];const T=x.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),D=Array.from(T).sort((Je,Ot)=>{const hr=parseInt(Je.getAttribute("tabindex")||"0"),cr=parseInt(Ot.getAttribute("tabindex")||"0");return hr>cr?1:hrJe.getAttribute("tabindex")!=="-1");return[...new Set(D.concat(ye))].filter(Je=>he(Je))},nt=()=>Xe(document.body,s.shown)&&!Xe(document.body,s["toast-shown"])&&!Xe(document.body,s["no-backdrop"]),ut=()=>{const x=U();return x?Xe(x,s.toast):!1},et=()=>{const x=U();return x?x.hasAttribute("data-loading"):!1},tt=(x,T)=>{if(x.textContent="",T){const ie=new DOMParser().parseFromString(T,"text/html"),ye=ie.querySelector("head");ye&&Array.from(ye.childNodes).forEach(Ot=>{x.appendChild(Ot)});const Je=ie.querySelector("body");Je&&Array.from(Je.childNodes).forEach(Ot=>{Ot instanceof HTMLVideoElement||Ot instanceof HTMLAudioElement?x.appendChild(Ot.cloneNode(!0)):x.appendChild(Ot)})}},Xe=(x,T)=>{if(!T)return!1;const D=T.split(/\s+/);for(let ie=0;ie{Array.from(x.classList).forEach(D=>{!Object.values(s).includes(D)&&!Object.values(c).includes(D)&&!Object.values(T.showClass||{}).includes(D)&&x.classList.remove(D)})},Me=(x,T,D)=>{if(it(x,T),T.customClass&&T.customClass[D]){if(typeof T.customClass[D]!="string"&&!T.customClass[D].forEach){f(`Invalid type of customClass.${D}! Expected string or iterable object, got "${typeof T.customClass[D]}"`);return}M(x,T.customClass[D])}},C=(x,T)=>{if(!T)return null;switch(T){case"select":case"textarea":case"file":return x.querySelector(`.${s.popup} > .${s[T]}`);case"checkbox":return x.querySelector(`.${s.popup} > .${s.checkbox} input`);case"radio":return x.querySelector(`.${s.popup} > .${s.radio} input:checked`)||x.querySelector(`.${s.popup} > .${s.radio} input:first-child`);case"range":return x.querySelector(`.${s.popup} > .${s.range} input`);default:return x.querySelector(`.${s.popup} > .${s.input}`)}},w=x=>{if(x.focus(),x.type!=="file"){const T=x.value;x.value="",x.value=T}},P=(x,T,D)=>{!x||!T||(typeof T=="string"&&(T=T.split(/\s+/).filter(Boolean)),T.forEach(ie=>{Array.isArray(x)?x.forEach(ye=>{D?ye.classList.add(ie):ye.classList.remove(ie)}):D?x.classList.add(ie):x.classList.remove(ie)}))},M=(x,T)=>{P(x,T,!0)},V=(x,T)=>{P(x,T,!1)},te=(x,T)=>{const D=Array.from(x.children);for(let ie=0;ie{D===`${parseInt(D)}`&&(D=parseInt(D)),D||parseInt(D)===0?x.style[T]=typeof D=="number"?`${D}px`:D:x.style.removeProperty(T)},j=function(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";x&&(x.style.display=T)},X=x=>{x&&(x.style.display="none")},le=(x,T,D,ie)=>{const ye=x.querySelector(T);ye&&(ye.style[D]=ie)},de=function(x,T){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";T?j(x,D):X(x)},he=x=>!!(x&&(x.offsetWidth||x.offsetHeight||x.getClientRects().length)),Oe=()=>!he(W())&&!he(ae())&&!he(re()),Ve=x=>x.scrollHeight>x.clientHeight,wt=x=>{const T=window.getComputedStyle(x),D=parseFloat(T.getPropertyValue("animation-duration")||"0"),ie=parseFloat(T.getPropertyValue("transition-duration")||"0");return D>0||ie>0},Tt=function(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const D=Pe();D&&he(D)&&(T&&(D.style.transition="none",D.style.width="100%"),setTimeout(()=>{D.style.transition=`width ${x/1e3}s linear`,D.style.width="0%"},10))},Dt=()=>{const x=Pe();if(!x)return;const T=parseInt(window.getComputedStyle(x).width);x.style.removeProperty("transition"),x.style.width="100%";const D=parseInt(window.getComputedStyle(x).width),ie=T/D*100;x.style.width=`${ie}%`},pt=()=>typeof window>"u"||typeof document>"u",mt=` +
+ +
    +
    + +

    +
    + + +
    + + +
    + +
    + + +
    +
    +
    + + + +
    +
    +
    +
    +
    +
    +`.replace(/(^|\n)\s*/g,""),Vt=()=>{const x=L();return x?(x.remove(),V([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0):!1},sr=()=>{i.currentInstance.resetValidationMessage()},un=()=>{const x=U(),T=te(x,s.input),D=te(x,s.file),ie=x.querySelector(`.${s.range} input`),ye=x.querySelector(`.${s.range} output`),Je=te(x,s.select),Ot=x.querySelector(`.${s.checkbox} input`),hr=te(x,s.textarea);T.oninput=sr,D.onchange=sr,Je.onchange=sr,Ot.onchange=sr,hr.oninput=sr,ie.oninput=()=>{sr(),ye.value=ie.value},ie.onchange=()=>{sr(),ye.value=ie.value}},Jr=x=>typeof x=="string"?document.querySelector(x):x,ur=x=>{const T=U();T.setAttribute("role",x.toast?"alert":"dialog"),T.setAttribute("aria-live",x.toast?"polite":"assertive"),x.toast||T.setAttribute("aria-modal","true")},Hr=x=>{window.getComputedStyle(x).direction==="rtl"&&M(L(),s.rtl)},dr=x=>{const T=Vt();if(pt()){d("SweetAlert2 requires document to initialize");return}const D=document.createElement("div");D.className=s.container,T&&M(D,s["no-transition"]),tt(D,mt);const ie=Jr(x.target);ie.appendChild(D),ur(x),Hr(ie),un()},Jt=(x,T)=>{x instanceof HTMLElement?T.appendChild(x):typeof x=="object"?Nt(x,T):x&&tt(T,x)},Nt=(x,T)=>{x.jquery?_r(T,x):tt(T,x.toString())},_r=(x,T)=>{if(x.textContent="",0 in T)for(let D=0;D in T;D++)x.appendChild(T[D].cloneNode(!0));else x.appendChild(T.cloneNode(!0))},Tr=(()=>{if(pt())return!1;const x=document.createElement("div"),T={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const D in T)if(Object.prototype.hasOwnProperty.call(T,D)&&typeof x.style[D]<"u")return T[D];return!1})(),mn=(x,T)=>{const D=Ee(),ie=se();!D||!ie||(!T.showConfirmButton&&!T.showDenyButton&&!T.showCancelButton?X(D):j(D),Me(D,T,"actions"),ri(D,ie,T),tt(ie,T.loaderHtml||""),Me(ie,T,"loader"))};function ri(x,T,D){const ie=W(),ye=ae(),Je=re();!ie||!ye||!Je||(ni(ie,"confirm",D),ni(ye,"deny",D),ni(Je,"cancel",D),qi(ie,ye,Je,D),D.reverseButtons&&(D.toast?(x.insertBefore(Je,ie),x.insertBefore(ye,ie)):(x.insertBefore(Je,T),x.insertBefore(ye,T),x.insertBefore(ie,T))))}function qi(x,T,D,ie){if(!ie.buttonsStyling){V([x,T,D],s.styled);return}M([x,T,D],s.styled),ie.confirmButtonColor&&(x.style.backgroundColor=ie.confirmButtonColor,M(x,s["default-outline"])),ie.denyButtonColor&&(T.style.backgroundColor=ie.denyButtonColor,M(T,s["default-outline"])),ie.cancelButtonColor&&(D.style.backgroundColor=ie.cancelButtonColor,M(D,s["default-outline"]))}function ni(x,T,D){const ie=S(T);de(x,D[`show${ie}Button`],"inline-block"),tt(x,D[`${T}ButtonText`]||""),x.setAttribute("aria-label",D[`${T}ButtonAriaLabel`]||""),x.className=s[T],Me(x,D,`${T}Button`)}const Wa=(x,T)=>{const D=xe();D&&(tt(D,T.closeButtonHtml||""),Me(D,T,"closeButton"),de(D,T.showCloseButton),D.setAttribute("aria-label",T.closeButtonAriaLabel||""))},xr=(x,T)=>{const D=L();D&&(aa(D,T.backdrop),N(D,T.position),K(D,T.grow),Me(D,T,"container"))};function aa(x,T){typeof T=="string"?x.style.background=T:T||M([document.documentElement,document.body],s["no-backdrop"])}function N(x,T){T&&(T in s?M(x,s[T]):(f('The "position" parameter is not valid, defaulting to "center"'),M(x,s.center)))}function K(x,T){T&&M(x,s[`grow-${T}`])}const $=["input","file","range","select","radio","checkbox","textarea"],A=(x,T)=>{const D=U(),ie=o.innerParams.get(x),ye=!ie||T.input!==ie.input;$.forEach(Je=>{const Ot=te(D,s[Je]);pe(Je,T.inputAttributes),Ot.className=s[Je],ye&&X(Ot)}),T.input&&(ye&&Q(T),Te(T))},Q=x=>{if(!Fe[x.input]){d(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${x.input}"`);return}const T=De(x.input),D=Fe[x.input](T,x);j(T),x.inputAutoFocus&&setTimeout(()=>{w(D)})},fe=x=>{for(let T=0;T{const D=C(U(),x);if(D){fe(D);for(const ie in T)D.setAttribute(ie,T[ie])}},Te=x=>{const T=De(x.input);typeof x.customClass=="object"&&M(T,x.customClass.input)},qe=(x,T)=>{(!x.placeholder||T.inputPlaceholder)&&(x.placeholder=T.inputPlaceholder)},He=(x,T,D)=>{if(D.inputLabel){const ie=document.createElement("label"),ye=s["input-label"];ie.setAttribute("for",x.id),ie.className=ye,typeof D.customClass=="object"&&M(ie,D.customClass.inputLabel),ie.innerText=D.inputLabel,T.insertAdjacentElement("beforebegin",ie)}},De=x=>te(U(),s[x]||s.input),St=(x,T)=>{["string","number"].includes(typeof T)?x.value=`${T}`:B(T)||f(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof T}"`)},Fe={};Fe.text=Fe.email=Fe.password=Fe.number=Fe.tel=Fe.url=(x,T)=>(St(x,T.inputValue),He(x,x,T),qe(x,T),x.type=T.input,x),Fe.file=(x,T)=>(He(x,x,T),qe(x,T),x),Fe.range=(x,T)=>{const D=x.querySelector("input"),ie=x.querySelector("output");return St(D,T.inputValue),D.type=T.input,St(ie,T.inputValue),He(D,x,T),x},Fe.select=(x,T)=>{if(x.textContent="",T.inputPlaceholder){const D=document.createElement("option");tt(D,T.inputPlaceholder),D.value="",D.disabled=!0,D.selected=!0,x.appendChild(D)}return He(x,x,T),x},Fe.radio=x=>(x.textContent="",x),Fe.checkbox=(x,T)=>{const D=C(U(),"checkbox");D.value="1",D.checked=!!T.inputValue;const ie=x.querySelector("span");return tt(ie,T.inputPlaceholder),D},Fe.textarea=(x,T)=>{St(x,T.inputValue),qe(x,T),He(x,x,T);const D=ie=>parseInt(window.getComputedStyle(ie).marginLeft)+parseInt(window.getComputedStyle(ie).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const ie=parseInt(window.getComputedStyle(U()).width),ye=()=>{if(!document.body.contains(x))return;const Je=x.offsetWidth+D(x);Je>ie?U().style.width=`${Je}px`:ee(U(),"width",T.width)};new MutationObserver(ye).observe(x,{attributes:!0,attributeFilter:["style"]})}}),x};const at=(x,T)=>{const D=O();D&&(Me(D,T,"htmlContainer"),T.html?(Jt(T.html,D),j(D,"block")):T.text?(D.textContent=T.text,j(D,"block")):X(D),A(x,T))},lt=(x,T)=>{const D=Be();D&&(de(D,T.footer),T.footer&&Jt(T.footer,D),Me(D,T,"footer"))},gt=(x,T)=>{const D=o.innerParams.get(x),ie=J();if(ie){if(D&&T.icon===D.icon){$e(ie,T),vt(ie,T);return}if(!T.icon&&!T.iconHtml){X(ie);return}if(T.icon&&Object.keys(c).indexOf(T.icon)===-1){d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${T.icon}"`),X(ie);return}j(ie),$e(ie,T),vt(ie,T),M(ie,T.showClass&&T.showClass.icon)}},vt=(x,T)=>{for(const[D,ie]of Object.entries(c))T.icon!==D&&V(x,ie);M(x,T.icon&&c[T.icon]),Ze(x,T),ct(),Me(x,T,"icon")},ct=()=>{const x=U();if(!x)return;const T=window.getComputedStyle(x).getPropertyValue("background-color"),D=x.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let ie=0;ie + +
    +
    +`,dt=` + + + + +`,$e=(x,T)=>{if(!T.icon&&!T.iconHtml)return;let D=x.innerHTML,ie="";T.iconHtml?ie=je(T.iconHtml):T.icon==="success"?(ie=ft,D=D.replace(/ style=".*?"/g,"")):T.icon==="error"?ie=dt:T.icon&&(ie=je({question:"?",warning:"!",info:"i"}[T.icon])),D.trim()!==ie.trim()&&tt(x,ie)},Ze=(x,T)=>{if(T.iconColor){x.style.color=T.iconColor,x.style.borderColor=T.iconColor;for(const D of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])le(x,D,"backgroundColor",T.iconColor);le(x,".swal2-success-ring","borderColor",T.iconColor)}},je=x=>`
    ${x}
    `,Ke=(x,T)=>{const D=H();if(D){if(!T.imageUrl){X(D);return}j(D,""),D.setAttribute("src",T.imageUrl),D.setAttribute("alt",T.imageAlt||""),ee(D,"width",T.imageWidth),ee(D,"height",T.imageHeight),D.className=s.image,Me(D,T,"image")}},Qe=(x,T)=>{const D=L(),ie=U();if(!(!D||!ie)){if(T.toast){ee(D,"width",T.width),ie.style.width="100%";const ye=se();ye&&ie.insertBefore(ye,J())}else ee(ie,"width",T.width);ee(ie,"padding",T.padding),T.color&&(ie.style.color=T.color),T.background&&(ie.style.background=T.background),X(ne()),Ue(ie,T)}},Ue=(x,T)=>{const D=T.showClass||{};x.className=`${s.popup} ${he(x)?D.popup:""}`,T.toast?(M([document.documentElement,document.body],s["toast-shown"]),M(x,s.toast)):M(x,s.modal),Me(x,T,"popup"),typeof T.customClass=="string"&&M(x,T.customClass),T.icon&&M(x,s[`icon-${T.icon}`])},me=(x,T)=>{const D=Z();if(!D)return;const{progressSteps:ie,currentProgressStep:ye}=T;if(!ie||ie.length===0||ye===void 0){X(D);return}j(D),D.textContent="",ye>=ie.length&&f("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),ie.forEach((Je,Ot)=>{const hr=ge(Je);if(D.appendChild(hr),Ot===ye&&M(hr,s["active-progress-step"]),Ot!==ie.length-1){const cr=Ce(T);D.appendChild(cr)}})},ge=x=>{const T=document.createElement("li");return M(T,s["progress-step"]),tt(T,x),T},Ce=x=>{const T=document.createElement("li");return M(T,s["progress-step-line"]),x.progressStepsDistance&&ee(T,"width",x.progressStepsDistance),T},Ae=(x,T)=>{const D=E();D&&(de(D,T.title||T.titleText,"block"),T.title&&Jt(T.title,D),T.titleText&&(D.innerText=T.titleText),Me(D,T,"title"))},ke=(x,T)=>{Qe(x,T),xr(x,T),me(x,T),gt(x,T),Ke(x,T),Ae(x,T),Wa(x,T),at(x,T),mn(x,T),lt(x,T);const D=U();typeof T.didRender=="function"&&D&&T.didRender(D)},Re=()=>he(U()),rt=()=>W()&&W().click(),yt=()=>ae()&&ae().click(),_t=()=>re()&&re().click(),ot=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),oe=x=>{x.keydownTarget&&x.keydownHandlerAdded&&(x.keydownTarget.removeEventListener("keydown",x.keydownHandler,{capture:x.keydownListenerCapture}),x.keydownHandlerAdded=!1)},bt=(x,T,D,ie)=>{oe(T),D.toast||(T.keydownHandler=ye=>k(x,ye,ie),T.keydownTarget=D.keydownListenerCapture?window:U(),T.keydownListenerCapture=D.keydownListenerCapture,T.keydownTarget.addEventListener("keydown",T.keydownHandler,{capture:T.keydownListenerCapture}),T.keydownHandlerAdded=!0)},Et=(x,T)=>{const D=_e();if(D.length){x=x+T,x===D.length?x=0:x===-1&&(x=D.length-1),D[x].focus();return}U().focus()},At=["ArrowRight","ArrowDown"],xt=["ArrowLeft","ArrowUp"],k=(x,T,D)=>{const ie=o.innerParams.get(x);ie&&(T.isComposing||T.keyCode===229||(ie.stopKeydownPropagation&&T.stopPropagation(),T.key==="Enter"?Ie(x,T,ie):T.key==="Tab"?Ut(T):[...At,...xt].includes(T.key)?It(T.key):T.key==="Escape"&&jt(T,ie,D)))},Ie=(x,T,D)=>{if(g(D.allowEnterKey)&&T.target&&x.getInput()&&T.target instanceof HTMLElement&&T.target.outerHTML===x.getInput().outerHTML){if(["textarea","file"].includes(D.input))return;rt(),T.preventDefault()}},Ut=x=>{const T=x.target,D=_e();let ie=-1;for(let ye=0;ye{const T=W(),D=ae(),ie=re(),ye=[T,D,ie];if(document.activeElement instanceof HTMLElement&&!ye.includes(document.activeElement))return;const Je=At.includes(x)?"nextElementSibling":"previousElementSibling";let Ot=document.activeElement;for(let hr=0;hr{g(T.allowEscapeKey)&&(x.preventDefault(),D(ot.esc))};var Ft={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const we=()=>{Array.from(document.body.children).forEach(T=>{T===L()||T.contains(L())||(T.hasAttribute("aria-hidden")&&T.setAttribute("data-previous-aria-hidden",T.getAttribute("aria-hidden")||""),T.setAttribute("aria-hidden","true"))})},Se=()=>{Array.from(document.body.children).forEach(T=>{T.hasAttribute("data-previous-aria-hidden")?(T.setAttribute("aria-hidden",T.getAttribute("data-previous-aria-hidden")||""),T.removeAttribute("data-previous-aria-hidden")):T.removeAttribute("aria-hidden")})},Gt=typeof window<"u"&&!!window.GestureEvent,Pt=()=>{if(Gt&&!Xe(document.body,s.iosfix)){const x=document.body.scrollTop;document.body.style.top=`${x*-1}px`,M(document.body,s.iosfix),Ct()}},Ct=()=>{const x=L();let T;x.ontouchstart=D=>{T=Ga(D)},x.ontouchmove=D=>{T&&(D.preventDefault(),D.stopPropagation())}},Ga=x=>{const T=x.target,D=L();return Ne(x)||Vc(x)?!1:T===D||!Ve(D)&&T instanceof HTMLElement&&T.tagName!=="INPUT"&&T.tagName!=="TEXTAREA"&&!(Ve(O())&&O().contains(T))},Ne=x=>x.touches&&x.touches.length&&x.touches[0].touchType==="stylus",Vc=x=>x.touches&&x.touches.length>1,su=()=>{if(Xe(document.body,s.iosfix)){const x=parseInt(document.body.style.top,10);V(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=x*-1}},uu=()=>{const x=document.createElement("div");x.className=s["scrollbar-measure"],document.body.appendChild(x);const T=x.getBoundingClientRect().width-x.clientWidth;return document.body.removeChild(x),T};let ii=null;const oa=()=>{ii===null&&document.body.scrollHeight>window.innerHeight&&(ii=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${ii+uu()}px`)},$c=()=>{ii!==null&&(document.body.style.paddingRight=`${ii}px`,ii=null)};function lu(x,T,D,ie){ut()?hu(x,ie):(a(D).then(()=>hu(x,ie)),oe(i)),Gt?(T.setAttribute("style","display:none !important"),T.removeAttribute("class"),T.innerHTML=""):T.remove(),nt()&&($c(),su(),Se()),cu()}function cu(){V([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function gn(x){x=Ya(x);const T=Ft.swalPromiseResolve.get(this),D=fu(this);this.isAwaitingPromise?x.isDismissed||(yn(this),T(x)):D&&T(x)}const fu=x=>{const T=U();if(!T)return!1;const D=o.innerParams.get(x);if(!D||Xe(T,D.hideClass.popup))return!1;V(T,D.showClass.popup),M(T,D.hideClass.popup);const ie=L();return V(ie,D.showClass.backdrop),M(ie,D.hideClass.backdrop),ai(x,T,D),!0};function du(x){const T=Ft.swalPromiseReject.get(this);yn(this),T&&T(x)}const yn=x=>{x.isAwaitingPromise&&(delete x.isAwaitingPromise,o.innerParams.get(x)||x._destroy())},Ya=x=>typeof x>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},x),ai=(x,T,D)=>{const ie=L(),ye=Tr&&wt(T);typeof D.willClose=="function"&&D.willClose(T),ye?Hc(x,T,ie,D.returnFocus,D.didClose):lu(x,ie,D.returnFocus,D.didClose)},Hc=(x,T,D,ie,ye)=>{i.swalCloseEventFinishedCallback=lu.bind(null,x,D,ie,ye),T.addEventListener(Tr,function(Je){Je.target===T&&(i.swalCloseEventFinishedCallback(),delete i.swalCloseEventFinishedCallback)})},hu=(x,T)=>{setTimeout(()=>{typeof T=="function"&&T.bind(x.params)(),x._destroy&&x._destroy()})},Vn=x=>{let T=U();if(T||new Au,T=U(),!T)return;const D=se();ut()?X(J()):Kc(T,x),j(D),T.setAttribute("data-loading","true"),T.setAttribute("aria-busy","true"),T.focus()},Kc=(x,T)=>{const D=Ee(),ie=se();!D||!ie||(!T&&he(W())&&(T=W()),j(D),T&&(X(T),ie.setAttribute("data-button-to-replace",T.className),D.insertBefore(ie,T)),M([x,D],s.loading))},pu=(x,T)=>{T.input==="select"||T.input==="radio"?yu(x,T):["text","email","number","tel","textarea"].some(D=>D===T.input)&&(b(T.inputValue)||B(T.inputValue))&&(Vn(W()),Qc(x,T))},vu=(x,T)=>{const D=x.getInput();if(!D)return null;switch(T.input){case"checkbox":return mu(D);case"radio":return gu(D);case"file":return Xc(D);default:return T.inputAutoTrim?D.value.trim():D.value}},mu=x=>x.checked?1:0,gu=x=>x.checked?x.value:null,Xc=x=>x.files&&x.files.length?x.getAttribute("multiple")!==null?x.files:x.files[0]:null,yu=(x,T)=>{const D=U();if(!D)return;const ie=ye=>{T.input==="select"?wu(D,oi(ye),T):T.input==="radio"&&Wc(D,oi(ye),T)};b(T.inputOptions)||B(T.inputOptions)?(Vn(W()),R(T.inputOptions).then(ye=>{x.hideLoading(),ie(ye)})):typeof T.inputOptions=="object"?ie(T.inputOptions):d(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof T.inputOptions}`)},Qc=(x,T)=>{const D=x.getInput();D&&(X(D),R(T.inputValue).then(ie=>{D.value=T.input==="number"?`${parseFloat(ie)||0}`:`${ie}`,j(D),D.focus(),x.hideLoading()}).catch(ie=>{d(`Error in inputValue promise: ${ie}`),D.value="",j(D),D.focus(),x.hideLoading()}))};function wu(x,T,D){const ie=te(x,s.select);if(!ie)return;const ye=(Je,Ot,hr)=>{const cr=document.createElement("option");cr.value=hr,tt(cr,Ot),cr.selected=_u(hr,D.inputValue),Je.appendChild(cr)};T.forEach(Je=>{const Ot=Je[0],hr=Je[1];if(Array.isArray(hr)){const cr=document.createElement("optgroup");cr.label=Ot,cr.disabled=!1,ie.appendChild(cr),hr.forEach(ca=>ye(cr,ca[1],ca[0]))}else ye(ie,hr,Ot)}),ie.focus()}function Wc(x,T,D){const ie=te(x,s.radio);if(!ie)return;T.forEach(Je=>{const Ot=Je[0],hr=Je[1],cr=document.createElement("input"),ca=document.createElement("label");cr.type="radio",cr.name=s.radio,cr.value=Ot,_u(Ot,D.inputValue)&&(cr.checked=!0);const tf=document.createElement("span");tt(tf,hr),tf.className=s.label,ca.appendChild(cr),ca.appendChild(tf),ie.appendChild(ca)});const ye=ie.querySelectorAll("input");ye.length&&ye[0].focus()}const oi=x=>{const T=[];return x instanceof Map?x.forEach((D,ie)=>{let ye=D;typeof ye=="object"&&(ye=oi(ye)),T.push([ie,ye])}):Object.keys(x).forEach(D=>{let ie=x[D];typeof ie=="object"&&(ie=oi(ie)),T.push([D,ie])}),T},_u=(x,T)=>!!T&&T.toString()===x.toString(),Gc=x=>{const T=o.innerParams.get(x);x.disableButtons(),T.input?qr(x,"confirm"):eo(x,!0)},xu=x=>{const T=o.innerParams.get(x);x.disableButtons(),T.returnInputValueOnDeny?qr(x,"deny"):ua(x,!1)},sa=(x,T)=>{x.disableButtons(),T(ot.cancel)},qr=(x,T)=>{const D=o.innerParams.get(x);if(!D.input){d(`The "input" parameter is needed to be set when using returnInputValueOn${S(T)}`);return}const ie=x.getInput(),ye=vu(x,D);D.inputValidator?Yc(x,ye,T):ie&&!ie.checkValidity()?(x.enableButtons(),x.showValidationMessage(D.validationMessage)):T==="deny"?ua(x,ye):eo(x,ye)},Yc=(x,T,D)=>{const ie=o.innerParams.get(x);x.disableInput(),Promise.resolve().then(()=>R(ie.inputValidator(T,ie.validationMessage))).then(Je=>{x.enableButtons(),x.enableInput(),Je?x.showValidationMessage(Je):D==="deny"?ua(x,T):eo(x,T)})},ua=(x,T)=>{const D=o.innerParams.get(x||void 0);D.showLoaderOnDeny&&Vn(ae()),D.preDeny?(x.isAwaitingPromise=!0,Promise.resolve().then(()=>R(D.preDeny(T,D.validationMessage))).then(ye=>{ye===!1?(x.hideLoading(),yn(x)):x.close({isDenied:!0,value:typeof ye>"u"?T:ye})}).catch(ye=>Ja(x||void 0,ye))):x.close({isDenied:!0,value:T})},Za=(x,T)=>{x.close({isConfirmed:!0,value:T})},Ja=(x,T)=>{x.rejectPromise(T)},eo=(x,T)=>{const D=o.innerParams.get(x||void 0);D.showLoaderOnConfirm&&Vn(),D.preConfirm?(x.resetValidationMessage(),x.isAwaitingPromise=!0,Promise.resolve().then(()=>R(D.preConfirm(T,D.validationMessage))).then(ye=>{he(ne())||ye===!1?(x.hideLoading(),yn(x)):Za(x,typeof ye>"u"?T:ye)}).catch(ye=>Ja(x||void 0,ye))):Za(x,T)};function la(){const x=o.innerParams.get(this);if(!x)return;const T=o.domCache.get(this);X(T.loader),ut()?x.icon&&j(J()):Zc(T),V([T.popup,T.actions],s.loading),T.popup.removeAttribute("aria-busy"),T.popup.removeAttribute("data-loading"),T.confirmButton.disabled=!1,T.denyButton.disabled=!1,T.cancelButton.disabled=!1}const Zc=x=>{const T=x.popup.getElementsByClassName(x.loader.getAttribute("data-button-to-replace"));T.length?j(T[0],"inline-block"):Oe()&&X(x.actions)};function We(){const x=o.innerParams.get(this),T=o.domCache.get(this);return T?C(T.popup,x.input):null}function Br(x,T,D){const ie=o.domCache.get(x);T.forEach(ye=>{ie[ye].disabled=D})}function to(x,T){const D=U();if(!(!D||!x))if(x.type==="radio"){const ie=D.querySelectorAll(`[name="${s.radio}"]`);for(let ye=0;yeObject.prototype.hasOwnProperty.call(ui,x),Su=x=>bu.indexOf(x)!==-1,Eu=x=>Jc[x],_=x=>{lr(x)||f(`Unknown parameter "${x}"`)},I=x=>{io.includes(x)&&f(`The parameter "${x}" is incompatible with toasts`)},z=x=>{const T=Eu(x);T&&m(x,T)},Y=x=>{x.backdrop===!1&&x.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const T in x)_(T),x.toast&&I(T),z(T)};function ue(x){const T=U(),D=o.innerParams.get(this);if(!T||Xe(T,D.hideClass.popup)){f("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const ie=ve(x),ye=Object.assign({},D,ie);ke(this,ye),o.innerParams.set(this,ye),Object.defineProperties(this,{params:{value:Object.assign({},this.params,x),writable:!1,enumerable:!0}})}const ve=x=>{const T={};return Object.keys(x).forEach(D=>{Su(D)?T[D]=x[D]:f(`Invalid parameter to update: ${D}`)}),T};function be(){const x=o.domCache.get(this),T=o.innerParams.get(this);if(!T){ht(this);return}x.popup&&i.swalCloseEventFinishedCallback&&(i.swalCloseEventFinishedCallback(),delete i.swalCloseEventFinishedCallback),typeof T.didDestroy=="function"&&T.didDestroy(),ze(this)}const ze=x=>{ht(x),delete x.params,delete i.keydownHandler,delete i.keydownTarget,delete i.currentInstance},ht=x=>{x.isAwaitingPromise?(Mt(o,x),x.isAwaitingPromise=!0):(Mt(Ft,x),Mt(o,x),delete x.isAwaitingPromise,delete x.disableButtons,delete x.enableButtons,delete x.getInput,delete x.disableInput,delete x.enableInput,delete x.hideLoading,delete x.disableLoading,delete x.showValidationMessage,delete x.resetValidationMessage,delete x.close,delete x.closePopup,delete x.closeModal,delete x.closeToast,delete x.rejectPromise,delete x.update,delete x._destroy)},Mt=(x,T)=>{for(const D in x)x[D].delete(T)};var qt=Object.freeze({__proto__:null,_destroy:be,close:gn,closeModal:gn,closePopup:gn,closeToast:gn,disableButtons:Mr,disableInput:ro,disableLoading:la,enableButtons:Bi,enableInput:Bt,getInput:We,handleAwaitingPromise:yn,hideLoading:la,rejectPromise:du,resetValidationMessage:no,showValidationMessage:si,update:ue});const Xt=(x,T,D)=>{o.innerParams.get(x).toast?er(x,T,D):(qn(T),Nr(T),ku(x,T,D))},er=(x,T,D)=>{T.popup.onclick=()=>{const ie=o.innerParams.get(x);ie&&(Lr(ie)||ie.timer||ie.input)||D(ot.close)}},Lr=x=>x.showConfirmButton||x.showDenyButton||x.showCancelButton||x.showCloseButton;let wn=!1;const qn=x=>{x.popup.onmousedown=()=>{x.container.onmouseup=function(T){x.container.onmouseup=void 0,T.target===x.container&&(wn=!0)}}},Nr=x=>{x.container.onmousedown=()=>{x.popup.onmouseup=function(T){x.popup.onmouseup=void 0,(T.target===x.popup||x.popup.contains(T.target))&&(wn=!0)}}},ku=(x,T,D)=>{T.container.onclick=ie=>{const ye=o.innerParams.get(x);if(wn){wn=!1;return}ie.target===T.container&&g(ye.allowOutsideClick)&&D(ot.backdrop)}},ao=x=>typeof x=="object"&&x.jquery,sy=x=>x instanceof Element||ao(x),fk=x=>{const T={};return typeof x[0]=="object"&&!sy(x[0])?Object.assign(T,x[0]):["title","html","icon"].forEach((D,ie)=>{const ye=x[ie];typeof ye=="string"||sy(ye)?T[D]=ye:ye!==void 0&&d(`Unexpected type of ${D}! Expected "string" or "Element", got ${typeof ye}`)}),T};function dk(){const x=this;for(var T=arguments.length,D=new Array(T),ie=0;iei.timeout&&i.timeout.getTimerLeft(),uy=()=>{if(i.timeout)return Dt(),i.timeout.stop()},ly=()=>{if(i.timeout){const x=i.timeout.start();return Tt(x),x}},vk=()=>{const x=i.timeout;return x&&(x.running?uy():ly())},mk=x=>{if(i.timeout){const T=i.timeout.increase(x);return Tt(T,!0),T}},gk=()=>!!(i.timeout&&i.timeout.isRunning());let cy=!1;const ef={};function yk(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";ef[x]=this,cy||(document.body.addEventListener("click",wk),cy=!0)}const wk=x=>{for(let T=x.target;T&&T!==document;T=T.parentNode)for(const D in ef){const ie=T.getAttribute(D);if(ie){ef[D].fire({template:ie});return}}};var _k=Object.freeze({__proto__:null,argsToParams:fk,bindClickHandler:yk,clickCancel:_t,clickConfirm:rt,clickDeny:yt,enableLoading:Vn,fire:dk,getActions:Ee,getCancelButton:re,getCloseButton:xe,getConfirmButton:W,getContainer:L,getDenyButton:ae,getFocusableElements:_e,getFooter:Be,getHtmlContainer:O,getIcon:J,getIconContent:ce,getImage:H,getInputLabel:G,getLoader:se,getPopup:U,getProgressSteps:Z,getTimerLeft:pk,getTimerProgressBar:Pe,getTitle:E,getValidationMessage:ne,increaseTimer:mk,isDeprecatedParameter:Eu,isLoading:et,isTimerRunning:gk,isUpdatableParameter:Su,isValidParameter:lr,isVisible:Re,mixin:hk,resumeTimer:ly,showLoading:Vn,stopTimer:uy,toggleTimer:vk});class xk{constructor(T,D){this.callback=T,this.remaining=D,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(T){const D=this.running;return D&&this.stop(),this.remaining+=T,D&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const fy=["swal-title","swal-html","swal-footer"],bk=x=>{const T=typeof x.template=="string"?document.querySelector(x.template):x.template;if(!T)return{};const D=T.content;return Ok(D),Object.assign(Sk(D),Ek(D),kk(D),Ak(D),Tk(D),Pk(D),Ck(D,fy))},Sk=x=>{const T={};return Array.from(x.querySelectorAll("swal-param")).forEach(ie=>{Mi(ie,["name","value"]);const ye=ie.getAttribute("name"),Je=ie.getAttribute("value");typeof ui[ye]=="boolean"?T[ye]=Je!=="false":typeof ui[ye]=="object"?T[ye]=JSON.parse(Je):T[ye]=Je}),T},Ek=x=>{const T={};return Array.from(x.querySelectorAll("swal-function-param")).forEach(ie=>{const ye=ie.getAttribute("name"),Je=ie.getAttribute("value");T[ye]=new Function(`return ${Je}`)()}),T},kk=x=>{const T={};return Array.from(x.querySelectorAll("swal-button")).forEach(ie=>{Mi(ie,["type","color","aria-label"]);const ye=ie.getAttribute("type");T[`${ye}ButtonText`]=ie.innerHTML,T[`show${S(ye)}Button`]=!0,ie.hasAttribute("color")&&(T[`${ye}ButtonColor`]=ie.getAttribute("color")),ie.hasAttribute("aria-label")&&(T[`${ye}ButtonAriaLabel`]=ie.getAttribute("aria-label"))}),T},Ak=x=>{const T={},D=x.querySelector("swal-image");return D&&(Mi(D,["src","width","height","alt"]),D.hasAttribute("src")&&(T.imageUrl=D.getAttribute("src")),D.hasAttribute("width")&&(T.imageWidth=D.getAttribute("width")),D.hasAttribute("height")&&(T.imageHeight=D.getAttribute("height")),D.hasAttribute("alt")&&(T.imageAlt=D.getAttribute("alt"))),T},Tk=x=>{const T={},D=x.querySelector("swal-icon");return D&&(Mi(D,["type","color"]),D.hasAttribute("type")&&(T.icon=D.getAttribute("type")),D.hasAttribute("color")&&(T.iconColor=D.getAttribute("color")),T.iconHtml=D.innerHTML),T},Pk=x=>{const T={},D=x.querySelector("swal-input");D&&(Mi(D,["type","label","placeholder","value"]),T.input=D.getAttribute("type")||"text",D.hasAttribute("label")&&(T.inputLabel=D.getAttribute("label")),D.hasAttribute("placeholder")&&(T.inputPlaceholder=D.getAttribute("placeholder")),D.hasAttribute("value")&&(T.inputValue=D.getAttribute("value")));const ie=Array.from(x.querySelectorAll("swal-input-option"));return ie.length&&(T.inputOptions={},ie.forEach(ye=>{Mi(ye,["value"]);const Je=ye.getAttribute("value"),Ot=ye.innerHTML;T.inputOptions[Je]=Ot})),T},Ck=(x,T)=>{const D={};for(const ie in T){const ye=T[ie],Je=x.querySelector(ye);Je&&(Mi(Je,[]),D[ye.replace(/^swal-/,"")]=Je.innerHTML.trim())}return D},Ok=x=>{const T=fy.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(x.children).forEach(D=>{const ie=D.tagName.toLowerCase();T.includes(ie)||f(`Unrecognized element <${ie}>`)})},Mi=(x,T)=>{Array.from(x.attributes).forEach(D=>{T.indexOf(D.name)===-1&&f([`Unrecognized attribute "${D.name}" on <${x.tagName.toLowerCase()}>.`,`${T.length?`Allowed attributes are: ${T.join(", ")}`:"To set the value, use HTML within the element."}`])})},dy=10,Rk=x=>{const T=L(),D=U();typeof x.willOpen=="function"&&x.willOpen(D);const ye=window.getComputedStyle(document.body).overflowY;Bk(T,D,x),setTimeout(()=>{Ik(T,D)},dy),nt()&&(qk(T,x.scrollbarPadding,ye),we()),!ut()&&!i.previousActiveElement&&(i.previousActiveElement=document.activeElement),typeof x.didOpen=="function"&&setTimeout(()=>x.didOpen(D)),V(T,s["no-transition"])},hy=x=>{const T=U();if(x.target!==T)return;const D=L();T.removeEventListener(Tr,hy),D.style.overflowY="auto"},Ik=(x,T)=>{Tr&&wt(T)?(x.style.overflowY="hidden",T.addEventListener(Tr,hy)):x.style.overflowY="auto"},qk=(x,T,D)=>{Pt(),T&&D!=="hidden"&&oa(),setTimeout(()=>{x.scrollTop=0})},Bk=(x,T,D)=>{M(x,D.showClass.backdrop),T.style.setProperty("opacity","0","important"),j(T,"grid"),setTimeout(()=>{M(T,D.showClass.popup),T.style.removeProperty("opacity")},dy),M([document.documentElement,document.body],s.shown),D.heightAuto&&D.backdrop&&!D.toast&&M([document.documentElement,document.body],s["height-auto"])};var py={email:(x,T)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(x)?Promise.resolve():Promise.resolve(T||"Invalid email address"),url:(x,T)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(x)?Promise.resolve():Promise.resolve(T||"Invalid URL")};function Mk(x){x.inputValidator||(x.input==="email"&&(x.inputValidator=py.email),x.input==="url"&&(x.inputValidator=py.url))}function Lk(x){(!x.target||typeof x.target=="string"&&!document.querySelector(x.target)||typeof x.target!="string"&&!x.target.appendChild)&&(f('Target parameter is not valid, defaulting to "body"'),x.target="body")}function Nk(x){Mk(x),x.showLoaderOnConfirm&&!x.preConfirm&&f(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +showLoaderOnConfirm should be used together with preConfirm, see usage example: +https://sweetalert2.github.io/#ajax-request`),Lk(x),typeof x.title=="string"&&(x.title=x.title.split(` +`).join("
    ")),dr(x)}let _n;class ar{constructor(){if(typeof window>"u")return;_n=this;for(var T=arguments.length,D=new Array(T),ie=0;ie1&&arguments[1]!==void 0?arguments[1]:{};Y(Object.assign({},D,T)),i.currentInstance&&(i.currentInstance._destroy(),nt()&&Se()),i.currentInstance=_n;const ie=Dk(T,D);Nk(ie),Object.freeze(ie),i.timeout&&(i.timeout.stop(),delete i.timeout),clearTimeout(i.restoreFocusTimeout);const ye=Uk(_n);return ke(_n,ie),o.innerParams.set(_n,ie),Fk(_n,ye,ie)}then(T){return o.promise.get(this).then(T)}finally(T){return o.promise.get(this).finally(T)}}const Fk=(x,T,D)=>new Promise((ie,ye)=>{const Je=Ot=>{x.close({isDismissed:!0,dismiss:Ot})};Ft.swalPromiseResolve.set(x,ie),Ft.swalPromiseReject.set(x,ye),T.confirmButton.onclick=()=>{Gc(x)},T.denyButton.onclick=()=>{xu(x)},T.cancelButton.onclick=()=>{sa(x,Je)},T.closeButton.onclick=()=>{Je(ot.close)},Xt(x,T,Je),bt(x,i,D,Je),pu(x,D),Rk(D),jk(i,D,Je),zk(T,D),setTimeout(()=>{T.container.scrollTop=0})}),Dk=(x,T)=>{const D=bk(x),ie=Object.assign({},ui,T,D,x);return ie.showClass=Object.assign({},ui.showClass,ie.showClass),ie.hideClass=Object.assign({},ui.hideClass,ie.hideClass),ie},Uk=x=>{const T={popup:U(),container:L(),actions:Ee(),confirmButton:W(),denyButton:ae(),cancelButton:re(),loader:se(),closeButton:xe(),validationMessage:ne(),progressSteps:Z()};return o.domCache.set(x,T),T},jk=(x,T,D)=>{const ie=Pe();X(ie),T.timer&&(x.timeout=new xk(()=>{D("timer"),delete x.timeout},T.timer),T.timerProgressBar&&(j(ie),Me(ie,T,"timerProgressBar"),setTimeout(()=>{x.timeout&&x.timeout.running&&Tt(T.timer)})))},zk=(x,T)=>{if(!T.toast){if(!g(T.allowEnterKey)){$k();return}Vk(x,T)||Et(-1,1)}},Vk=(x,T)=>T.focusDeny&&he(x.denyButton)?(x.denyButton.focus(),!0):T.focusCancel&&he(x.cancelButton)?(x.cancelButton.focus(),!0):T.focusConfirm&&he(x.confirmButton)?(x.confirmButton.focus(),!0):!1,$k=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const x=new Date,T=localStorage.getItem("swal-initiation");T?(x.getTime()-Date.parse(T))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const D=document.createElement("audio");D.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",D.loop=!0,document.body.appendChild(D),setTimeout(()=>{D.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${x}`)}ar.prototype.disableButtons=Mr,ar.prototype.enableButtons=Bi,ar.prototype.getInput=We,ar.prototype.disableInput=ro,ar.prototype.enableInput=Bt,ar.prototype.hideLoading=la,ar.prototype.disableLoading=la,ar.prototype.showValidationMessage=si,ar.prototype.resetValidationMessage=no,ar.prototype.close=gn,ar.prototype.closePopup=gn,ar.prototype.closeModal=gn,ar.prototype.closeToast=gn,ar.prototype.rejectPromise=du,ar.prototype.update=ue,ar.prototype._destroy=be,Object.assign(ar,_k),Object.keys(qt).forEach(x=>{ar[x]=function(){return _n&&_n[x]?_n[x](...arguments):null}}),ar.DismissReason=ot,ar.version="11.7.21";const Au=ar;return Au.default=Au,Au}),typeof $t<"u"&&$t.Sweetalert2&&($t.swal=$t.sweetAlert=$t.Swal=$t.SweetAlert=$t.Sweetalert2),typeof document<"u"&&function(n,i){var r=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(r),r.styleSheet)r.styleSheet.disabled||(r.styleSheet.cssText=i);else try{r.innerHTML=i}catch{r.innerText=i}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(uk);var mR=uk.exports;const Lm=lc(mR);const uc=new kn.Server("https://horizon-testnet.stellar.org"),lk=uc.fetchBaseFee();function gR(e){const t=kn.Keypair.fromSecret(e);return uc.loadAccount(t.publicKey())}function ck(e){return kn.Keypair.fromSecret(e).publicKey()}function yR(){return lk}function wR(e,t,n,i){i==null&&(i=".");const r=kn.Keypair.fromSecret(t);uc.loadAccount(r.publicKey()).then(a=>{console.log(a);try{const o=new kn.TransactionBuilder(a,{fee:lk,networkPassphrase:kn.Networks.TESTNET}).addOperation(kn.Operation.payment({destination:n,asset:new kn.Asset("BLC","GBPKUSD5ZGMEXCS5YW7WAOC2QJSJLEX6LHGUTJIMDYYPFLPOT6GYFNNX"),amount:e})).setTimeout(30).addMemo(kn.Memo.text(i)).build();o.sign(r);try{uc.submitTransaction(o)}catch(u){console.log("An error has occured:"),console.log(u)}Lm.fire({title:"Payment sent successfully",icon:"success",confirmButtonText:"OK"})}catch(o){console.log(o),Lm.fire({title:"Error!",text:"Invalid Transaction Data",icon:"error",confirmButtonText:"OK"})}})}function _R(e){var n=JSON.parse(e),t=JSON.stringify(n),n=JSON.parse(t),i=JSON.stringify(n),r=Js.decrypt("arstotzka",i);return r}function xR(){const e=Yt.useContext(Ti),[t,n]=Yt.useState([null,null]),i=_R(e.keys.private);t[0]===null&&gR(i).then(a=>{console.log(a.balances);const o=[];a.balances.map(u=>{console.log(u),u.asset_type==="native"&&(o[0]=Math.trunc(u.balance*100)/100),u.asset_code==="BLC"&&(o[1]=Math.trunc(u.balance*100)/100)}),n(o)});function r(){e.setKeys({public:"r",private:"r"})}return st.jsxs("div",{className:"flex flex-row pt-5 gap-[20%] h-32 bg-secondary ",children:[st.jsxs("div",{className:"bg-secondary w-[25rem] self-center flex flex-col justify-center rounded-xl ml-[45%]",children:[st.jsxs("h1",{className:"text-primary2 text-2xl self-center",children:[t[0]," XLM"]}),st.jsxs("h1",{className:"text-primary text-5xl self-center",children:[t[1]," BLC"]})]}),st.jsx("button",{className:"w-[8rem] h-[3rem] bg-five text-white rounded-3xl self-center",onClick:r,children:"Cerrar Sesion"})]})}function _E(e){var n=JSON.parse(e),t=JSON.stringify(n),n=JSON.parse(t),i=JSON.stringify(n),r=Js.decrypt("arstotzka",i);return r}function bR(){const e=Yt.useContext(Ti),[t,n]=Yt.useState("0");Yt.useEffect(()=>{n((parseFloat(yR())*1e-5/100).toString())},[]);function i(){const r=document.getElementById("amount").value,a=document.getElementById("to").value,o=document.getElementById("memo").value;console.log(r),console.log(a),console.log(_E(e.keys.private)),wR(r,_E(e.keys.private),a,o)}return st.jsxs("div",{className:"h-3/6 w-2/6 min-h-[25rem] bg-secondary self-center ml-[10rem] rounded-2xl flex flex-col gap-5 justify-center",children:[st.jsx("label",{htmlFor:"send2",className:"font-bold text-3xl self-center",children:"Send to:"}),st.jsx("input",{name:"send2",id:"to",className:"h-[2rem] w-3/6 self-center border-4 border-five rounded-md",placeholder:"Example: GDY2CP7XLBIY65YX7KS72X7JCZJVJ3AEPEEFTW3TYPLGDRWEZKAC7NR3",type:"text"}),st.jsx("label",{htmlFor:"amount",className:"font-bold text-3xl self-center",children:"BLC Amount:"}),st.jsxs("div",{className:"self-center h-[2rem] w-3/6 flex flex-col justify-center gap-1 m-2",children:[st.jsx("input",{id:"amount",name:"amount",className:"self-center w-full border-4 border-five rounded-md",type:"number"}),st.jsxs("p",{className:"text-alert self-center text-sm",children:["Comision XLM: ",t]})]}),st.jsx("label",{htmlFor:"send2",className:"font-bold text-3xl self-center",children:"Extra comment:"}),st.jsx("input",{name:"memo",id:"memo",className:"h-[2rem] w-3/6 self-center border-4 border-five rounded-md",placeholder:"Example: Buy a great coffee",type:"text"}),st.jsx("input",{name:"submit",type:"submit",value:"Send",className:"rounded bg-primary text-tertiary px-4 py-2 cursor-pointer w-3/6 self-center",onClick:i})]})}function Di(e){return st.jsx("h1",{className:"font-semibold text-primary bg-primary2 self-center text-center break-all pl-5 w-5/6 p-2 rounded-md",children:e.children})}function SR(e){return st.jsx("h1",{className:"pl-5 text-2xl text-secondary font-bold",children:e.children})}function xE(e){return st.jsx("span",{className:"text-secondary text-xl",children:e.children})}const ER=new kn.Server("https://horizon-testnet.stellar.org");function kR(e){var n=JSON.parse(e),t=JSON.stringify(n),n=JSON.parse(t),i=JSON.stringify(n),r=Js.decrypt("arstotzka",i);return r}function AR(){const e=Yt.useContext(Ti),[t,n]=Yt.useState([]),i=Yt.useRef(""),r=kR(e.keys.private);return Yt.useEffect(()=>{let a=[],o=[];i.current=ck(r),ER.payments().forAccount(i.current).limit(100).order("desc").cursor(a).call().then(u=>{a=u.records.length>0?u.records[u.records.length-1].paging_token:null,o=u.records,n(o)}).catch(u=>{console.error("Error al obtener pagos:",u)})},[]),console.log(t),st.jsx("div",{className:" w-[32%] h-5/6 bg-secondary shadow-xl rounded-xl flex flex-col gap-5 overflow-y-scroll overflow-x-clip mt-10",children:t.map(a=>st.jsxs("div",{className:"bg-five flex flex-col gap-2 rounded-lg w-[95%] self-center mt-5",children:[st.jsxs(SR,{children:[a.type,":"]}),st.jsx(Di,{children:a.amount}),a.funder?st.jsxs(Di,{children:["By: ",a.funder]}):null,a.asset_code?st.jsxs(Di,{children:["Token: ",a.asset_code]}):null,a.from?a.from===i.current?st.jsxs(Di,{children:["from: ",st.jsx(xE,{children:"Me"})]}):st.jsxs(Di,{children:["from: ",a.from]}):null,a.to?a.to===i.current?st.jsxs(Di,{children:["to: ",st.jsx(xE,{children:"Me"})]}):st.jsxs(Di,{children:["to: ",a.to]}):null]}))})}const TR=new kn.Server("https://horizon-testnet.stellar.org");function bE(e){var n=JSON.parse(e),t=JSON.stringify(n),n=JSON.parse(t),i=JSON.stringify(n),r=Js.decrypt("arstotzka",i);return r}function PR(){const e=Yt.useContext(Ti),t=Yt.useRef(ck(bE(e.keys.private)));bE(e.keys.private);const n=Yt.useRef(!1),i=Yt.useRef(0),r=Yt.useRef([{transaction_hash:0}]),a=Yt.useRef(0);return Yt.useEffect(()=>{let o=[];n.current||(setInterval(()=>{TR.payments().forAccount(t.current).limit(100).order("desc").cursor(o).call().then(u=>{o=u.records.length>0?u.records[u.records.length-1].paging_token:null;const l="2023-08-10T08:15:07Z",y=new Date(l).getUTCDate();r.current[0].transaction_hash!==u.records[0].transaction_hash&&u.records[0]!==void 0&&a.current===y&&i.current!==0&&Lm.fire({title:"Transacción recibida",text:u.records[0].amount+" BLC de: "+u.records[0].from,icon:"success",confirmButtonText:"OK"}),r.current[0].transaction_hash!==u.records[0].transaction_hash&&u.records[0]!==void 0&&(i.current+=1),r.current=u.records,a.current=y}).catch(u=>{console.log(u)})},12e3),n.current=!0)},[]),st.jsx("div",{})}function CR(){const e=Yt.useContext(Ti);return st.jsxs("div",{className:"bg-five w-full h-full",children:[st.jsx(xR,{keys:e.keys,setkeys:e.setKeys}),st.jsxs("div",{className:"flex flex-row w-full h-5/6 justify-center",children:[st.jsx(AR,{keys:e.keys}),st.jsx(bR,{keys:e.keys}),st.jsx(PR,{keys:e.keys})]})]})}const Ti=Yt.createContext();function OR(){const[e,t]=Yt.useState({public:"",private:""});return Yt.useEffect(()=>{e.private!==""?window.localStorage.setItem("private",e.private):window.localStorage.getItem("private")!==null&&t({private:window.localStorage.getItem("private")})},[e.private]),e.private.length<10?st.jsx(Ti.Provider,{value:{setKeys:t,keys:e},children:st.jsx(_T,{})}):st.jsx(Ti.Provider,{value:{setKeys:t,keys:e},children:st.jsx(CR,{})})}Ov.createRoot(document.getElementById("root")).render(st.jsx(oA.StrictMode,{children:st.jsx(OR,{})})); diff --git a/dist/assets/index-583239dc.css b/dist/assets/index-583239dc.css new file mode 100644 index 0000000..19065d4 --- /dev/null +++ b/dist/assets/index-583239dc.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.m-2{margin:.5rem}.ml-\[10rem\]{margin-left:10rem}.ml-\[45\%\]{margin-left:45%}.mt-10{margin-top:2.5rem}.mt-5{margin-top:1.25rem}.mt-\[10rem\]{margin-top:10rem}.mt-\[2rem\]{margin-top:2rem}.flex{display:flex}.h-10{height:2.5rem}.h-2\/6{height:33.333333%}.h-3\/6{height:50%}.h-32{height:8rem}.h-5\/6{height:83.333333%}.h-8,.h-\[2rem\]{height:2rem}.h-\[3rem\]{height:3rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[14rem\]{min-height:14rem}.min-h-\[25rem\]{min-height:25rem}.w-2\/6{width:33.333333%}.w-3\/6{width:50%}.w-5\/6{width:83.333333%}.w-\[25rem\]{width:25rem}.w-\[32\%\]{width:32%}.w-\[8rem\]{width:8rem}.w-\[95\%\]{width:95%}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[20rem\]{min-width:20rem}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-5{gap:1.25rem}.gap-\[20\%\]{gap:20%}.self-center{align-self:center}.overflow-x-clip{overflow-x:clip}.overflow-y-scroll{overflow-y:scroll}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border-4{border-width:4px}.border-five{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-five{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(5 5 5 / var(--tw-bg-opacity))}.bg-primary2{--tw-bg-opacity: 1;background-color:rgb(194 194 194 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(27 154 170 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-5{padding-left:1.25rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-alert{--tw-text-opacity: 1;color:rgb(139 0 0 / var(--tw-text-opacity))}.text-five{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(5 5 5 / var(--tw-text-opacity))}.text-primary2{--tw-text-opacity: 1;color:rgb(194 194 194 / var(--tw-text-opacity))}.text-secondary{--tw-text-opacity: 1;color:rgb(27 154 170 / var(--tw-text-opacity))}.text-tertiary{--tw-text-opacity: 1;color:rgb(221 219 203 / var(--tw-text-opacity))}.text-opacity-70{--tw-text-opacity: .7}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#19191a;box-shadow:0 0 1px #00000013,0 1px 2px #00000013,1px 2px 4px #00000013,1px 3px 8px #00000013,2px 4px 16px #00000013;pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:.5em 0 0;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(25,25,26,.75)}.swal2-container.swal2-backdrop-hide{background:transparent!important}.swal2-container.swal2-top-start,.swal2-container.swal2-center-start,.swal2-container.swal2-bottom-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-top,.swal2-container.swal2-center,.swal2-container.swal2-bottom{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-top-end,.swal2-container.swal2-center-end,.swal2-container.swal2-bottom-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-start>.swal2-popup,.swal2-container.swal2-center-left>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-start>.swal2-popup,.swal2-container.swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-row>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#19191a;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:none}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:#e1e1e1;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px #7066e080}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px #dc374180}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px #6e788180}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 1px #19191a,0 0 0 3px #8ab0d580}.swal2-styled:focus{outline:none}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #555;color:#bbb;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(225,225,225,.6)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:transparent;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:transparent;color:#f27474}.swal2-close:focus{outline:none;box-shadow:inset 0 0 0 3px #6496c880}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:#e1e1e1;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-input,.swal2-file,.swal2-textarea,.swal2-select,.swal2-radio,.swal2-checkbox{margin:1em 2em 3px}.swal2-input,.swal2-file,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:#323234;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px transparent;color:#e1e1e1;font-size:1.125em}.swal2-input.swal2-inputerror,.swal2-file.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-input:focus,.swal2-file:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px #6496c880}.swal2-input::-moz-placeholder,.swal2-file::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-input::placeholder,.swal2-file::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#19191a}.swal2-range input{width:80%}.swal2-range output{width:20%;color:#e1e1e1;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:#323234;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:#323234;color:#e1e1e1;font-size:1.125em}.swal2-radio,.swal2-checkbox{align-items:center;justify-content:center;background:#19191a;color:#e1e1e1}.swal2-radio label,.swal2-checkbox label{margin:0 .6em;font-size:1.125em}.swal2-radio input,.swal2-checkbox input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#323234;color:#e1e1e1;font-size:1em;font-weight:300}.swal2-validation-message:before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:transparent;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#58585b;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#58585b}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@keyframes swal2-toast-hide{to{transform:rotate(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}to{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}to{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}to{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}to{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}to{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotate(45deg);opacity:0}25%{transform:rotate(-25deg);opacity:.4}50%{transform:rotate(15deg);opacity:.8}75%{transform:rotate(-5deg);opacity:1}to{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px #19191abf}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto} diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..c33d1bf --- /dev/null +++ b/dist/index.html @@ -0,0 +1,15 @@ + + + + + + + Vite + React + + + + +
    + + + diff --git a/dist/vite.svg b/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file