PageSourceSearch

https://smilecoin.ai/assets/chunk-ZLwEzXoy.js

js smilecoin.ai collected 2026-10-05 15:06:24 UTC 960,413 bytes, 26 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.js-BiTu9WkW.js","assets/chunk-64Y5F-uU.js","assets/chunk-Gmj5k1uE.js","assets/index-40a497ea.js-ChkGZ-sX.js","assets/chunk-B1e8YJRb.js","assets/index-021f6a62.js-DCWHhgOl.js","assets/Index-fb68189d.js-nkj0Pk0U.js","assets/Index-bf757f44.js-Dl9BcCx2.js","assets/chunk-CdSArBFG.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./chunk-64Y5F-uU.js";import{g as t,c as r,r as n,b as i}from"./chunk-Gmj5k1uE.js";const o={},s=function(e,t,r){let n=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),i=(null==r?void 0:r.nonce)||(null==r?void 0:r.getAttribute("nonce"));n=e(t.map(e=>{if((e=function(e){return"/"+e}(e))in o)return;o[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const n=document.createElement("link");return n.rel=t?"stylesheet":"modulepreload",t||(n.as="script"),n.crossOrigin="",n.href=e,i&&n.setAttribute("nonce",i),document.head.appendChild(n),t?new Promise((t,r)=>{n.addEventListener("load",t),n.addEventListener("error",()=>r(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(l){a=[6,l],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function f(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function p(e){return this instanceof p?(this.v=e,this):new p(e)}function m(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=i[e](t)).value instanceof p?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(n){u(o[0][3],n)}var r}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function g(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}function b(e){return"function"==typeof e}function y(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var v=y(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function w(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var _=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=h(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(g){e={error:g}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;
2if(b(l))try{l()}catch(y){i=y instanceof v?y.errors:[y]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=h(c),p=u.next();!p.done;p=u.next()){var m=p.value;try{x(m)}catch(w){i=null!=i?i:[],w instanceof v?i=f(f([],d(i)),d(w.errors)):i.push(w)}}}catch(_){r={error:_}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new v(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)x(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&w(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&w(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),E=_.EMPTY;function A(e){return e instanceof _||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function x(e){b(e)?e():e.unsubscribe()}var k={Promise:void 0},C=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,f([e,t],d(r)))};function P(e){C(function(){throw e})}function I(){}function S(e){e()}var O=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,A(t)&&t.add(r)):r.destination=R,r}return l(t,e),t.create=function(e,t,r){return new T(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_),M=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){N(r)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){N(r)}else N(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){N(t)}},e}(),T=function(e){function t(t,r,n){var i,o=e.call(this)||this;return i=b(t)||!t?{next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:t,o.destination=new M(i),o}return l(t,e),t}(O);function N(e){P(e)}var R={closed:!0,next:I,error:function(e){throw e},complete:I},j="function"==typeof Symbol&&Symbol.observable||"@@observable";function B(e){return e}var $=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof O||function(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}(n)&&A(n)?e:new T(e,t,r);return S(function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=L(t))(function(t,n){var i=new T({next:function(t){try{e(t)}catch(r){n(r),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[j]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?B:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=L(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function L(e){var t;return null!==(t=null!=e?e:k.Promise)&&void 0!==t?t:Promise}function F(e){return function(t){if(function(e){return b(null==e?void 0:e.lift)}(t))return t.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,r,n,i){return new U(e,t,r,n,i)}var U=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(n){t.error(n)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(r){t.error(r)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return l(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(O),H=y(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),z=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l(t,e),t.prototype.lift=function(e){var t=new q(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new H},t.prototype.next=function(e){var t=this;S(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=h(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;S(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;S(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
vendor: 3,337 bytes, line 2
2,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?E:(this.currentObservers=null,o.push(e),new _(function(){t.currentObservers=null,w(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new q(e,t)},t}($),q=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return l(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:E},t}(z),G=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return l(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(z),W={now:function(){return(W.delegate||Date).now()},delegate:void 0},V=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=W);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return l(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(z),Z=function(e){function t(t,r){return e.call(this)||this}return l(t,e),t.prototype.schedule=function(e,t){return this},t}(_),K=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,f([e,t],d(r)))},J=function(e){return clearInterval(e)},Y=function(e){function t(t,r){var n=e.call(this,t,r)||this;
vendor: 3,604 bytes, line 2
2return n.scheduler=t,n.work=r,n.pending=!1,n}return l(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),K(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&J(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(i){n=!0,r=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,w(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Z),Q=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=W.now,e}(),X=new(function(e){function t(t,r){void 0===r&&(r=Q.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return l(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(Q))(Y),ee=new $(function(e){return e.complete()});function te(e){return e[e.length-1]}function re(e){return(t=te(e))&&b(t.schedule)?e.pop():void 0;var t}var ne=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ie(e){return b(null==e?void 0:e.then)}function oe(e){return b(e[j])}function se(e){return Symbol.asyncIterator&&b(null==e?void 0:e[Symbol.asyncIterator])}function ae(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var le="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ce(e){return b(null==e?void 0:e[le])}function ue(e){return m(this,arguments,function(){var t,r,n;return u(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,p(t.read())];case 3:return r=i.sent(),n=r.value,r.done?[4,p(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,p(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function he(e){return b(null==e?void 0:e.getReader)}function de(e){if(e instanceof $)return e;if(null!=e){if(oe(e))return i=e,new $(function(e){var t=i[j]();if(b(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(ne(e))return n=e,new $(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()});if(ie(e))return r=e,new $(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,P)});if(se(e))return fe(e);
2if(ce(e))return t=e,new $(function(e){var r,n;try{for(var i=h(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()});if(he(e))return fe(ue(e))}var t,r,n,i;throw ae(e)}function fe(e){return new $(function(t){(function(e,t){var r,n,i,o;return c(this,void 0,void 0,function(){var s,a;return u(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=g(e),l.label=1;case 1:return[4,r.next()];case 2:if((n=l.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function pe(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function me(e,t){return void 0===t&&(t=0),F(function(r,n){r.subscribe(D(n,function(r){return pe(n,e,function(){return n.next(r)},t)},function(){return pe(n,e,function(){return n.complete()},t)},function(r){return pe(n,e,function(){return n.error(r)},t)}))})}function ge(e,t){return void 0===t&&(t=0),F(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function be(e,t){if(!e)throw new Error("Iterable cannot be null");return new $(function(r){pe(r,t,function(){var n=e[Symbol.asyncIterator]();pe(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function ye(e,t){if(null!=e){if(oe(e))return function(e,t){return de(e).pipe(ge(t),me(t))}(e,t);if(ne(e))return function(e,t){return new $(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}(e,t);if(ie(e))return function(e,t){return de(e).pipe(ge(t),me(t))}(e,t);if(se(e))return be(e,t);if(ce(e))return function(e,t){return new $(function(r){var n;return pe(r,t,function(){n=e[le](),pe(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(o){return void r.error(o)}i?r.complete():r.next(t)},0,!0)}),function(){return b(null==n?void 0:n.return)&&n.return()}})}(e,t);if(he(e))return function(e,t){return be(ue(e),t)}(e,t)}throw ae(e)}function ve(e,t){return t?ye(e,t):de(e)}var we=y(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function _e(e,t){return new Promise(function(t,r){var n=new T({next:function(e){t(e),n.unsubscribe()},error:r,complete:function(){r(new we)}});e.subscribe(n)})}function Ee(e,t){return F(function(r,n){var i=0;r.subscribe(D(n,function(r){n.next(e.call(t,r,i++))}))})}var Ae=Array.isArray;function xe(e){return Ee(function(t){return function(e,t){return Ae(t)?e.apply(void 0,f([],d(t))):e(t)}(e,t)})}function ke(e,t,r){return void 0===r&&(r=1/0),b(t)?ke(function(r,n){return Ee(function(e,i){return t(r,e,n,i)})(de(e(r,n)))},r):("number"==typeof t&&(r=t),F(function(t,n){return function(e,t,r,n,i,o,s){var a=[],l=0,c=0,u=!1,h=function(){!u||a.length||l||t.complete()},d=function(e){l++;var i=!1;de(r(e,c++)).subscribe(D(t,function(e){t.next(e)},function(){i=!0},void 0,function(){if(i)try{l--;for(var e=function(){var e=a.shift();s||d(e)};a.length&&l<n;)e();h()}catch(r){t.error(r)}}))};return e.subscribe(D(t,function(e){return l<n?d(e):a.push(e)},function(){u=!0,h()})),function(){}}(t,n,e,r)}))}function Ce(e){return void 0===e&&(e=1/0),ke(B,e)}function Pe(){return Ce(1)}function Ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pe()(ve(e,re(e)))}function Se(e){return new $(function(t){de(e()).subscribe(t)})}var Oe=["addListener","removeListener"],Me=["addEventListener","removeEventListener"],Te=["on","off"];function Ne(e,t,r,n){if(b(r)&&(n=r,r=void 0),n)return Ne(e,t,r).pipe(xe(n));var i=d(function(e){return b(e.addEventListener)&&b(e.removeEventListener)}(e)?Me.map(function(n){return function(i){return e[n](t,i,r)}}):function(e){return b(e.addListener)&&b(e.removeListener)}(e)?Oe.map(Re(e,t)):function(e){return b(e.on)&&b(e.off)}(e)?Te.map(Re(e,t)):[],2),o=i[0],s=i[1];if(!o&&ne(e))return ke(function(e){return Ne(e,t,r)})(de(e));if(!o)throw new TypeError("Invalid event target");return new $(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return o(t),function(){return s(t)}})}function Re(e,t){return function(r){return function(n){return e[r](t,n)}}}function je(e,t,r){return new $(function(r){var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)},i=e(n);return b(t)?function(){return t(n,i)}:void 0})}function Be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=re(e),n=function(e,t){return"number"==typeof te(e)?e.pop():t}(e,1/0),i=e;return i.length?1===i.length?de(i[0]):Ce(n)(ve(i,r)):ee}function $e(e,t){return F(function(r,n){var i=0;r.subscribe(D(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}function Le(e,t){return void 0===t&&(t=X),F(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,n.next(e)}};function l(){var r=s+e,o=t.now();
2if(o<r)return i=this.schedule(void 0,r-o),void n.add(i);a()}r.subscribe(D(n,function(r){o=r,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function Fe(e){return e<=0?function(){return ee}:F(function(t,r){var n=0;t.subscribe(D(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}function De(e){return Ee(function(){return e})}function Ue(e,t){return void 0===t&&(t=B),e=null!=e?e:He,F(function(r,n){var i,o=!0;r.subscribe(D(n,function(r){var s=t(r);!o&&e(i,s)||(o=!1,i=s,n.next(r))}))})}function He(e,t){return e===t}function ze(e,t){return Ue(function(t,r){return t[e]===r[e]})}function qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return Ee(function(t){for(var n=t,i=0;i<r;i++){var o=null==n?void 0:n[e[i]];if(void 0===o)return;n=o}return n})}function Ge(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new z}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,l=void 0===a||a;return function(e){var t,n,o,a=0,c=!1,u=!1,h=function(){null==n||n.unsubscribe(),n=void 0},d=function(){h(),t=o=void 0,c=u=!1},f=function(){var e=t;d(),null==e||e.unsubscribe()};return F(function(e,p){a++,u||c||h();var m=o=null!=o?o:r();p.add(function(){0!==--a||u||c||(n=We(f,l))}),m.subscribe(p),!t&&a>0&&(t=new T({next:function(e){return m.next(e)},error:function(e){u=!0,h(),n=We(d,i,e),m.error(e)},complete:function(){c=!0,h(),n=We(d,s),m.complete()}}),de(e).subscribe(t))})(e)}}function We(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0!==t){if(!1!==t){var i=new T({next:function(){i.unsubscribe(),e()}});return de(t.apply(void 0,f([],d(r)))).subscribe(i)}}else e()}function Ve(e,t,r){var n;return n=e,Ge({connector:function(){return new V(n,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1})}function Ze(e){return $e(function(t,r){return e<=r})}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=re(e);return F(function(t,n){(r?Ie(e,t,r):Ie(e,t)).subscribe(n)})}function Je(e,t){return F(function(r,n){var i=null,o=0,s=!1,a=function(){return s&&!i&&n.complete()};r.subscribe(D(n,function(r){null==i||i.unsubscribe();var s=0,l=o++;de(e(r,l)).subscribe(i=D(n,function(e){return n.next(t?t(r,e,l,s++):e)},function(){i=null,a()}))},function(){s=!0,a()}))})}function Ye(e){return F(function(t,r){de(e).subscribe(D(r,function(){return r.complete()},I)),!r.closed&&t.subscribe(r)})}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=b(te(r=e))?r.pop():void 0;return F(function(t,r){for(var i=e.length,o=new Array(i),s=e.map(function(){return!1}),a=!1,l=function(t){de(e[t]).subscribe(D(r,function(e){o[t]=e,a||s[t]||(s[t]=!0,(a=s.every(B))&&(s=null))},I))},c=0;c<i;c++)l(c);t.subscribe(D(r,function(e){if(a){var t=f([e],d(o));r.next(n?n.apply(void 0,f([],d(t))):t)}}))})}const Xe=Object.freeze(Object.defineProperty({__proto__:null,BehaviorSubject:G,EMPTY:ee,EmptyError:we,ObjectUnsubscribedError:H,Observable:$,ReplaySubject:V,Scheduler:Q,Subject:z,Subscriber:O,Subscription:_,UnsubscriptionError:v,asyncScheduler:X,concat:Ie,concatAll:Pe,config:k,debounceTime:Le,defer:Se,distinctUntilChanged:Ue,distinctUntilKeyChanged:ze,filter:$e,firstValueFrom:_e,from:ve,fromEvent:Ne,fromEventPattern:je,identity:B,map:Ee,mapTo:De,merge:Be,mergeAll:Ce,mergeMap:ke,noop:I,observable:j,observeOn:me,pluck:qe,scheduled:ye,share:Ge,shareReplay:Ve,skip:Ze,startWith:Ke,subscribeOn:ge,switchMap:Je,take:Fe,takeUntil:Ye,withLatestFrom:Qe},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,concatAll:Pe,debounceTime:Le,distinctUntilChanged:Ue,distinctUntilKeyChanged:ze,filter:$e,map:Ee,mapTo:De,mergeAll:Ce,mergeMap:ke,observeOn:me,pluck:qe,share:Ge,shareReplay:Ve,skip:Ze,startWith:Ke,subscribeOn:ge,switchMap:Je,take:Fe,takeUntil:Ye,withLatestFrom:Qe},Symbol.toStringTag,{value:"Module"})),tt={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},rt={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},it={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ot={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class st{static getFirstMatch(e,t){const r=t.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,t){const r=t.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,t,r){if(e.test(t))return r}
vendor: 15,694 bytes, line 2
2static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const t=e.split(".").splice(0,2).map(e=>parseInt(e,10)||0);if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const t=e.split(".").splice(0,2).map(e=>parseInt(e,10)||0);if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,r=!1){const n=st.getVersionPrecision(e),i=st.getVersionPrecision(t);let o=Math.max(n,i),s=0;const a=st.map([e,t],e=>{const t=o-st.getVersionPrecision(e),r=e+new Array(t+1).join(".0");return st.map(r.split("."),e=>new Array(20-e.length).join("0")+e).reverse()});for(r&&(s=o-Math.min(n,i)),o-=1;o>=s;){if(a[0][o]>a[1][o])return 1;if(a[0][o]===a[1][o]){if(o===s)return 0;o-=1}else if(a[0][o]<a[1][o])return-1}}static map(e,t){const r=[];let n;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r}static find(e,t){let r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){const n=e[r];if(t(n,r))return n}}static assign(e,...t){const r=e;let n,i;if(Object.assign)return Object.assign(e,...t);for(n=0,i=t.length;n<i;n+=1){const e=t[n];if("object"==typeof e&&null!==e){Object.keys(e).forEach(t=>{r[t]=e[t]})}}return e}static getBrowserAlias(e){return tt[e]}static getBrowserTypeByAlias(e){return rt[e]||""}}const at=/version\/(\d+(\.?_?\d+)+)/i,lt=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=st.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},r=st.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},r=st.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},r=st.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},r=st.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},r=st.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},r=st.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},r=st.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=st.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},r=st.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},r=st.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},r=st.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},r=st.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},r=st.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},r=st.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},r=st.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},r=st.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},r=st.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},r=st.getFirstMatch(at,e)||st.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},r=st.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},r=st.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},r=st.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},r=st.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},r=st.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},r=st.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},r=st.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},r=st.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},r=st.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t={name:"Android Browser"},r=st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=st.getFirstMatch(at,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){const t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:st.getFirstMatch(t,e),version:st.getSecondMatch(t,e)}}}],ct=[{test:[/Roku\/DVP/],describe(e){const t=st.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:it.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=st.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:it.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=st.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=st.getWindowsVersionName(t);return{name:it.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:it.iOS},r=st.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){const t=st.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=st.getMacOSVersionName(t),n={name:it.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=st.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:it.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t=st.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=st.getAndroidVersionName(t),n={name:it.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=st.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:it.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=st.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||st.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||st.getFirstMatch(/\bbb(\d+)/i,e);return{name:it.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=st.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:it.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=st.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:it.Tizen,version:t}}},{test:[/linux/i],describe:()=>({name:it.Linux})},{test:[/CrOS/],describe:()=>({name:it.ChromeOS})},{test:[/PlayStation 4/],describe(e){const t=st.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:it.PlayStation4,version:t}}}],ut=[{test:[/googlebot/i],describe:()=>({type:"bot",vendor:"Google"})},{test:[/huawei/i],describe(e){const t=st.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:nt.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:()=>({type:nt.tablet,vendor:"Nexus"})},{test:[/ipad/i],describe:()=>({type:nt.tablet,vendor:"Apple",model:"iPad"})},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:()=>({type:nt.tablet,vendor:"Apple",model:"iPad"})},{test:[/kftt build/i],describe:()=>({type:nt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"})},{test:[/silk/i],describe:()=>({type:nt.tablet,vendor:"Amazon"})},{test:[/tablet(?! pc)/i],describe:()=>({type:nt.tablet})},{test(e){const t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){const t=st.getFirstMatch(/(ipod|iphone)/i,e);return{type:nt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:()=>({type:nt.mobile,vendor:"Nexus"})},{test:[/[^-]mobi/i],describe:()=>({type:nt.mobile})},{test:e=>"blackberry"===e.getBrowserName(!0),describe:()=>({type:nt.mobile,vendor:"BlackBerry"})},{test:e=>"bada"===e.getBrowserName(!0),describe:()=>({type:nt.mobile})},{test:e=>"windows phone"===e.getBrowserName(),describe:()=>({type:nt.mobile,vendor:"Microsoft"})},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:()=>({type:nt.tablet})},{test:e=>"android"===e.getOSName(!0),describe:()=>({type:nt.mobile})},{test:e=>"macos"===e.getOSName(!0),describe:()=>({type:nt.desktop,vendor:"Apple"})},{test:e=>"windows"===e.getOSName(!0),describe:()=>({type:nt.desktop})},{test:e=>"linux"===e.getOSName(!0),describe:()=>({type:nt.desktop})},{test:e=>"playstation 4"===e.getOSName(!0),describe:()=>({type:nt.tv})},{test:e=>"roku"===e.getOSName(!0),describe:()=>({type:nt.tv})}],ht=[{test:e=>"microsoft edge"===e.getBrowserName(!0),describe(e){if(/\sedg\//i.test(e))return{name:ot.Blink};const t=st.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ot.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:ot.Trident},r=st.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:e=>e.test(/presto/i),describe(e){const t={name:ot.Presto},r=st.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){const t={name:ot.Gecko},r=st.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:()=>({name:ot.Blink})},{test:[/(apple)?webkit/i],describe(e){const t={name:ot.WebKit},r=st.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];let dt=class{constructor(e,t=!1){if(null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=st.find(lt,e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=st.find(ct,e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};const e=st.find(ut,e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some(e=>this.test(e));
2throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=st.find(ht,e=>{if("function"==typeof e.test)return e.test(this);if(e.test instanceof Array)return e.test.some(e=>this.test(e));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return st.assign({},this.parsedResult)}satisfies(e){const t={};let r=0;const n={};let i=0;if(Object.keys(e).forEach(o=>{const s=e[o];"string"==typeof s?(n[o]=s,i+=1):"object"==typeof s&&(t[o]=s,r+=1)}),r>0){const e=Object.keys(t),r=st.find(e,e=>this.isOS(e));if(r){const e=this.satisfies(t[r]);if(void 0!==e)return e}const n=st.find(e,e=>this.isPlatform(e));if(n){const e=this.satisfies(t[n]);if(void 0!==e)return e}}if(i>0){const e=Object.keys(n),t=st.find(e,e=>this.isBrowser(e,!0));if(void 0!==t)return this.compareVersion(n[t])}}isBrowser(e,t=!1){const r=this.getBrowserName().toLowerCase();let n=e.toLowerCase();const i=st.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r}compareVersion(e){let t=[0],r=e,n=!1;const i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(st.compareVersions(i,r,n))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(e=>this.is(e))}};
3/*!
4 * Bowser - a browser detector
5 * https://github.com/lancedikson/bowser
6 * MIT License | (c) Dustin Diaz 2012-2015
7 * MIT License | (c) Denis Demchenko 2015-2019
8 */class ft{static getParser(e,t=!1){if("string"!=typeof e)throw new Error("UserAgent should be a string");return new dt(e,t)}static parse(e){return new dt(e).getResult()}static get BROWSER_MAP(){return rt}static get ENGINE_MAP(){return ot}static get OS_MAP(){return it}static get PLATFORMS_MAP(){return nt}}function pt(){}function mt(e){return e()}const gt=[];function bt(e,t=pt){let r;const n=new Set;function i(t){if(o=t,((i=e)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(e=t,r)){const t=!gt.length;for(const r of n)r[1](),gt.push(r,e);if(t){for(let e=0;e<gt.length;e+=2)gt[e][0](gt[e+1]);gt.length=0}}var i,o}return{set:i,update:function(t){i(t(e))},subscribe:function(o,s=pt){const a=[o,s];return n.add(a),1===n.size&&(r=t(i)||pt),o(e),()=>{n.delete(a),0===n.size&&r&&(r(),r=null)}}}}function yt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e,o=t.length<2;return s=e=>{let r=!1;const s=[];let a=0,l=pt;const c=()=>{if(a)return;l();const r=t(n?s[0]:s,e);o?e(r):l="function"==typeof r?r:pt},u=i.map((e,t)=>function(e,...t){if(null==e)return pt;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(e,e=>{s[t]=e,a&=~(1<<t),r&&c()},()=>{a|=1<<t}));return r=!0,c(),function(){u.forEach(mt),l(),r=!1}},{subscribe:bt(r,s).subscribe};var s}var vt,wt;const _t=t(function(){if(wt)return vt;wt=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function o(e,t){try{return t in e}catch(r){return!1}}function s(e,t,n){var s={};return n.isMergeableObject(e)&&i(e).forEach(function(t){s[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&n.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a}(i,n)(e[i],t[i],n):s[i]=r(t[i],n))}),s}function a(t,i,o){(o=o||{}).arrayMerge=o.arrayMerge||n,o.isMergeableObject=o.isMergeableObject||e,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(i);return a===Array.isArray(t)?a?o.arrayMerge(t,i,o):s(t,i,o):r(i,o)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},vt=a}());var Et=function(e,t){return(Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function At(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Et(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var xt=function(){return xt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xt.apply(this,arguments)};function kt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Ct(e,t){var r=t&&t.cache?t.cache:Ft,n=t&&t.serializer?t.serializer:$t;return(t&&t.strategy?t.strategy:Ot)(e,{cache:r,serializer:n})}function Pt(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function It(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function St(e,t,r,n,i){return r.bind(t,e,n,i)}function Ot(e,t){return St(e,this,1===e.length?Pt:It,t.cache.create(),t.serializer)}"function"==typeof SuppressedError&&SuppressedError;var Mt,Tt,Nt,Rt,jt,Bt,$t=function(){return JSON.stringify(arguments)},Lt=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),Ft={create:function(){return new Lt}},Dt={variadic:function(e,t){return St(e,this,It,t.cache.create(),t.serializer)}},Ut=function(){return Ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ut.apply(this,arguments)};function Ht(e){return e.type===Nt.literal}function zt(e){return e.type===Nt.argument}function qt(e){return e.type===Nt.number}function Gt(e){return e.type===Nt.date}function Wt(e){return e.type===Nt.time}function Vt(e){return e.type===Nt.select}function Zt(e){return e.type===Nt.plural}function Kt(e){return e.type===Nt.pound}function Jt(e){return e.type===Nt.tag}function Yt(e){return!(!e||"object"!=typeof e||e.type!==jt.number)}function Qt(e){return!(!e||"object"!=typeof e||e.type!==jt.dateTime)}"function"==typeof SuppressedError&&SuppressedError,(Tt=Mt||(Mt={}))[Tt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Tt[Tt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Tt[Tt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Tt[Tt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Tt[Tt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Tt[Tt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Tt[Tt.INVALID_
8NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Tt[Tt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Tt[Tt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Tt[Tt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Tt[Tt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Tt[Tt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Tt[Tt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Tt[Tt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Tt[Tt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Tt[Tt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Tt[Tt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Tt[Tt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Tt[Tt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Tt[Tt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Tt[Tt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Tt[Tt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Tt[Tt.INVALID_TAG=23]="INVALID_TAG",Tt[Tt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Tt[Tt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Tt[Tt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Rt=Nt||(Nt={}))[Rt.literal=0]="literal",Rt[Rt.argument=1]="argument",Rt[Rt.number=2]="number",Rt[Rt.date=3]="date",Rt[Rt.time=4]="time",Rt[Rt.select=5]="select",Rt[Rt.plural=6]="plural",Rt[Rt.pound=7]="pound",Rt[Rt.tag=8]="tag",(Bt=jt||(jt={}))[Bt.number=0]="number",Bt[Bt.dateTime=1]="dateTime";
vendor: 4,650 bytes, line 8
8var Xt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,er=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function tr(e){var t={};return e.replace(er,function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var rr=function(){return rr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rr.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var nr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ir(e){return e.replace(/^(.*?)-/,"")}var or=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,sr=/^(@+)?(\+|#+)?[rs]?$/g,ar=/(\*)(0+)|(#+)(0+)|(0+)/g,lr=/^(0+)$/;function cr(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(sr,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function ur(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function hr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function dr(e){var t=ur(e);return t||{}}function fr(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ir(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;
vendor: 26,430 bytes, line 8
8case"scientific":t=rr(rr(rr({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return rr(rr({},e),dr(t))},{}));continue;case"engineering":t=rr(rr(rr({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return rr(rr({},e),dr(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(ar,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if(lr.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(or.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(or,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var o=i.options[0];"w"===o?t=rr(rr({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=rr(rr({},t),cr(o)))}else if(sr.test(i.stem))t=rr(rr({},t),cr(i.stem));else{var s=ur(i.stem);s&&(t=rr(rr({},t),s));var a=hr(i.stem);a&&(t=rr(rr({},t),a))}}return t}var pr,mr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function gr(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(mr[r||""]||mr[n||""]||mr["".concat(n,"-001")]||mr["001"])[0]}var br=new RegExp("^".concat(Xt.source,"*")),yr=new RegExp("".concat(Xt.source,"*$"));function vr(e,t){return{start:e,end:t}}var wr=!!String.prototype.startsWith&&"_a".startsWith("a",1),_r=!!String.fromCodePoint,Er=!!Object.fromEntries,Ar=!!String.prototype.codePointAt,xr=!!String.prototype.trimStart,kr=!!String.prototype.trimEnd,Cr=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pr=!0;try{Pr="a"===(null===(pr=jr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pr?void 0:pr[0])}catch(mS){Pr=!1}var Ir,Sr=wr?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Or=_r?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Mr=Er?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Tr=Ar?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Nr=xr?function(e){return e.trimStart()}:function(e){return e.replace(br,"")},Rr=kr?function(e){return e.trimEnd()}:function(e){return e.replace(yr,"")};function jr(e,t){return new RegExp(e,t)}if(Pr){var Br=jr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ir=function(e,t){var r;return Br.lastIndex=t,null!==(r=Br.exec(e)[1])&&void 0!==r?r:""}}else Ir=function(e,t){for(var r=[];;){var n=Tr(e,t);if(void 0===n||Hr(n)||zr(n))break;r.push(n),t+=n>=65536?2:1}return Or.apply(void 0,r)};var $r,Lr,Fr=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Mt.UNMATCHED_CLOSING_TAG,vr(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Dr(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:Nt.pound,location:vr(s,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Nt.literal,value:"<".concat(n,"/>"),location:vr(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dr(this.char()))return this.error(Mt.INVALID_TAG,vr(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(Mt.UNMATCHED_CLOSING_TAG,vr(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Nt.tag,value:n,children:o,location:vr(r,this.clonePosition())},err:null}:this.error(Mt.INVALID_TAG,vr(s,this.clonePosition())))}return this.error(Mt.UNCLOSED_TAG,vr(r,this.clonePosition()))}return this.error(Mt.INVALID_TAG,vr(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Ur(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=vr(r,this.clonePosition());return{val:{type:Nt.literal,value:n,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Dr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Or.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Or(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Mt.EXPECT_ARGUMENT_CLOSING_BRACE,vr(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Mt.EMPTY_ARGUMENT,vr(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Mt.MALFORMED_ARGUMENT,vr(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Mt.EXPECT_ARGUMENT_CLOSING_BRACE,vr(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Nt.argument,value:n,location:vr(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Mt.EXPECT_ARGUMENT_CLOSING_BRACE,vr(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Mt.MALFORMED_ARGUMENT,vr(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ir(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:vr(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(Mt.EXPECT_ARGUMENT_TYPE,vr(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=Rr(b.val)).length)return this.error(Mt.EXPECT_ARGUMENT_STYLE,vr(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:vr(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var u=vr(n,this.clonePosition());if(l&&Sr(null==l?void 0:l.style,"::",0)){var h=Nr(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?b:{val:{type:Nt.number,value:r,location:u,style:b.val},err:null};if(0===h.length)return this.error(Mt.EXPECT_DATE_TIME_SKELETON,u);var d=h;this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=gr(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale));var f={type:jt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?tr(d):{}};return{val:{type:"date"===s?Nt.date:Nt.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===s?Nt.number:"date"===s?Nt.date:Nt.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Mt.EXPECT_SELECT_ARGUMENT_OPTIONS,vr(p,Ut({},p)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vr(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=b.val}var y,v=this.tryParsePluralOrSelectOptions(e,s,t,m);if(v.err)return v;if((y=this.tryParseArgumentClose(n)).err)return y;var w=vr(n,this.clonePosition());return"select"===s?{val:{type:Nt.select,value:r,options:Mr(v.val),location:w},err:null}:{val:{type:Nt.plural,value:r,options:Mr(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(Mt.INVALID_ARGUMENT_TYPE,vr(o,a))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Mt.EXPECT_ARGUMENT_CLOSING_BRACE,vr(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Mt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,vr(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(nr).filter(function(e){return e.length>0});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(n){return this.error(Mt.INVALID_NUMBER_SKELETON,t)}return{val:{type:jt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?fr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,s=[],a=new Set,l=n.value,c=n.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(Mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=vr(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(a.has(l))return this.error("select"===t?Mt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Mt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Mt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Mt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,vr(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:f.val,location:vr(d,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?Mt.EXPECT_SELECT_ARGUMENT_SELECTOR:Mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,vr(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Mt.MISSING_OTHER_CLAUSE,vr(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}var a=vr(n,this.clonePosition());return i?Cr(o*=r)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Tr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Sr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Hr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Dr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ur(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Hr(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function zr(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function qr(e){e.forEach(function(e){if(delete e.location,Vt(e)||Zt(e))for(var t in e.options)delete e.options[t].location,qr(e.options[t].value);else qt(e)&&Yt(e.style)||(Gt(e)||Wt(e))&&Qt(e.style)?delete e.style.location:Jt(e)&&qr(e.children)})}function Gr(e,t){void 0===t&&(t={}),t=Ut({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Fr(e,t).parse();if(r.err){var n=SyntaxError(Mt[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||qr(r.val),r.val}(Lr=$r||($r={})).MISSING_VALUE="MISSING_VALUE",Lr.INVALID_VALUE="INVALID_VALUE",Lr.MISSING_INTL_API="MISSING_INTL_API";var Wr,Vr,Zr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return At(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Kr=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),$r.INVALID_VALUE,i)||this}return At(t,e),t}(Zr),Jr=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),$r.INVALID_VALUE,n)||this}return At(t,e),t}(Zr),Yr=function(e){function t(t,r){return e.call(this,'The intl str
8ing context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),$r.MISSING_VALUE,r)||this}return At(t,e),t}(Zr);function Qr(e){return"function"==typeof e}function Xr(e,t,r,n,i,o,s){if(1===e.length&&Ht(e[0]))return[{type:Wr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Ht(u))a.push({type:Wr.literal,value:u.value});else if(Kt(u))"number"==typeof o&&a.push({type:Wr.literal,value:r.getNumberFormat(t).format(o)});else{var h=u.value;if(!i||!(h in i))throw new Yr(h,s);var d=i[h];if(zt(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Wr.literal:Wr.object,value:d});else if(Gt(u)){var f="string"==typeof u.style?n.date[u.style]:Qt(u.style)?u.style.parsedOptions:void 0;a.push({type:Wr.literal,value:r.getDateTimeFormat(t,f).format(d)})}else if(Wt(u)){f="string"==typeof u.style?n.time[u.style]:Qt(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Wr.literal,value:r.getDateTimeFormat(t,f).format(d)})}else if(qt(u)){(f="string"==typeof u.style?n.number[u.style]:Yt(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:Wr.literal,value:r.getNumberFormat(t,f).format(d)})}else{if(Jt(u)){var p=u.children,m=u.value,g=i[m];if(!Qr(g))throw new Jr(m,"function",s);var b=g(Xr(p,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map(function(e){return{type:"string"==typeof e?Wr.literal:Wr.object,value:e}}))}if(Vt(u)){if(!(y=u.options[d]||u.options.other))throw new Kr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Xr(y.value,t,r,n,i))}else if(Zt(u)){var y;if(!(y=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Zr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',$r.MISSING_INTL_API,s);var v=r.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));y=u.options[v]||u.options.other}if(!y)throw new Kr(u.value,d,Object.keys(u.options),s);a.push.apply(a,Xr(y.value,t,r,n,i,d-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===Wr.literal&&t.type===Wr.literal?r.value+=t.value:e.push(t),e},[])}(a)}function en(e,t){return t?Object.keys(e).reduce(function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?xt(xt(xt({},i||{}),o||{}),Object.keys(i).reduce(function(e,t){return e[t]=xt(xt({},i[t]),o[t]||{}),e},{})):i),r},xt({},e)):e}function tn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}(Vr=Wr||(Wr={}))[Vr.literal=0]="literal",Vr[Vr.object=1]="object";var rn=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===Wr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Xr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=s.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(a,["formatters"]);this.ast=e.__parse(t,xt(xt({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=en(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ct(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,kt([void 0],t,!1)))},{cache:tn(o.number),strategy:Dt.variadic}),getDateTimeFormat:Ct(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,kt([void 0],t,!1)))},{cache:tn(o.dateTime),strategy:Dt.variadic}),getPluralRules:Ct(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,kt([void 0],t,!1)))},{cache:tn(o.pluralRules),strategy:Dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale}
8,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Gr,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const nn={},on=(e,t,r)=>r?(t in nn||(nn[t]={}),e in nn[t]||(nn[t][e]=r),r):r,sn=(e,t)=>{if(null==t)return;if(t in nn&&e in nn[t])return nn[t][e];const r=Bn(t);for(let n=0;n<r.length;n++){const i=un(r[n],e);if(i)return on(e,t,i)}};let an;const ln=bt({});function cn(e){return e in an}function un(e,t){if(!cn(e))return null;const r=function(e){return an[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if("object"==typeof n){if(i>0){const e=r.slice(i,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[i]]}else n=void 0;return n}(r,t)}function hn(e,...t){delete nn[e],ln.update(r=>(r[e]=_t.all([r[e]||{},...t]),r))}yt([ln],([e])=>Object.keys(e)),ln.subscribe(e=>an=e);const dn={};function fn(e){return dn[e]}function pn(e){return null!=e&&Bn(e).some(e=>{var t;return null==(t=fn(e))?void 0:t.size})}function mn(e,t){const r=Promise.all(t.map(t=>(function(e,t){dn[e].delete(t),0===dn[e].size&&delete dn[e]}(e,t),t().then(e=>e.default||e))));return r.then(t=>hn(e,...t))}const gn={};function bn(e){if(!pn(e))return e in gn?gn[e]:Promise.resolve();const t=function(e){return Bn(e).map(e=>{const t=fn(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}(e);return gn[e]=Promise.all(t.map(([e,t])=>mn(e,t))).then(()=>{if(pn(e))return bn(e);delete gn[e]}),gn[e]}var yn=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable;function _n({locale:e,id:t}){}const En={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function An(){return En}function xn(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)vn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yn)for(var n of yn(e))t.indexOf(n)<0&&wn.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{rn.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage&&(n.handleMissingMessage=_n)),Object.assign(En,n,{initialLocale:i}),r&&("number"in r&&Object.assign(En.formats.number,r.number),"date"in r&&Object.assign(En.formats.date,r.date),"time"in r&&Object.assign(En.formats.time,r.time)),Ln.set(i)}const kn=bt(!1);var Cn=Object.defineProperty,Pn=Object.defineProperties,In=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Tn=(e,t,r)=>t in e?Cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Nn;const Rn=bt(null);function jn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Bn(e,t=An().fallbackLocale){const r=jn(e);return t?[...new Set([...r,...jn(t)])]:r}function $n(){return null!=Nn?Nn:void 0}Rn.subscribe(e=>{Nn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const Ln=(Fn=((e,t)=>{for(var r in t||(t={}))On.call(t,r)&&Tn(e,r,t[r]);if(Sn)for(var r of Sn(t))Mn.call(t,r)&&Tn(e,r,t[r]);return e})({},Rn),Pn(Fn,In({set:e=>{if(e&&function(e){if(null==e)return;const t=Bn(e);for(let r=0;r<t.length;r++){const e=t[r];if(cn(e))return e}}(e)&&pn(e)){const{loadingDelay:t}=An();let r;return"undefined"!=typeof window&&null!=$n()&&t?r=window.setTimeout(()=>kn.set(!0),t):kn.set(!0),bn(e).then(()=>{Rn.set(e)}).finally(()=>{clearTimeout(r),kn.set(!1)})}return Rn.set(e)}})));var Fn;const Dn=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var Un=Object.defineProperty,Hn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Gn=(e,t,r)=>t in e?Un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wn=(e,t)=>{for(var r in t||(t={}))zn.call(t,r)&&Gn(e,r,t[r]);if(Hn)for(var r of Hn(t))qn.call(t,r)&&Gn(e,r,t[r]);return e},Vn=(e,t)=>{var r={};for(var n in e)zn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Hn)for(var n of Hn(e))t.indexOf(n)<0&&qn.call(e,n)&&(r[n]=e[n]);return r};const Zn=(e,t)=>{const{formats:r}=An();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Kn=Dn(e=>{var t=e,{locale:r,format:n}=t,i=Vn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Zn("number",n)),new Intl.NumberFormat(r,i)}),Jn=Dn(e=>{var t=e,{locale:r,format:n}=t,i=Vn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Zn("date",n):0===Object.keys(i).length&&(i=Zn("date","short")),new Intl.DateTimeFormat(r,i)}),Yn=Dn(e=>{var t=e,{locale:r,format:n}=t,i=Vn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Zn("time",n):0===Object.keys(i).length&&(i=Zn("time","short")),new Intl.DateTimeFormat(r,i)}),Qn=Dn((e,t=$n())=>new rn(e,t,An().formats,{ignoreTag:An().ignoreTag})),Xn=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=$n(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=sn(e,l);if(u){if("string"!=typeof u)return u}else u=null!=(o=null!=(i=null==(n=(r=An()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=Qn(u,l).format(a)}catch(d){Error}return h},ei=(e,t)=>((e={})=>{var t=e,{locale:r=$n()}=t,n=Vn(t,["locale"]);return Yn(Wn({locale:r},n))})(t).format(e),ti=(e,t)=>((e={})=>{var t=e,{locale:r=$n()}=t,n=Vn(t,["locale"]);return Jn(Wn({locale:r},n))})(t).format(e),ri=(e,t)=>((e={})=>{var t=e,{locale:r=$n()}=t,n=Vn(t,["locale"]);return Kn(Wn({locale:r},n))})(t).format(e),ni=(e,t=$n())=>sn(e,t),ii=yt([Ln,ln],()=>Xn);yt([Ln],()=>ei),yt([Ln],()=>ti),yt([Ln],()=>ri),yt([Ln,ln],()=>ni);var oi,si={exports:{}};var ai,li=oi?si.exports:(oi=1,self,ai=()=>{return e={7629:(e,t,r)=>{const n=r(375),i=r(8571),o=r(9474),s=r(1687),a=r(8652),l=r(8160),c=r(3292),u=r(6354),h=r(8901),d=r(9708),f=r(6914),p=r(2294),m=r(6133),g=r(1152),b=r(8863),y=r(2036),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._val
vendor: 2,118 bytes, line 8
8ids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof d.describe,"Manifest functionality disabled"),d.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"allow"),this._values(t,"_valids")}alter(e){n(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const i=e[r];n("function"==typeof i,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return n(void 0!==e,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return n(!1===e||"string"==typeof e,"Invalid to value"),n(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return n(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return n(e,"Missing error"),n(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}
8forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._values(t,"_invalids")}label(e){return n(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return n(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing notes");for(const i of t)n(i&&"string"==typeof i,"Notes must be non-empty strings");return this._inner("notes",t)}only(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing tags");for(const i of t)n(i&&"string"==typeof i,"Tags must be non-empty strings");return this._inner("tags",t)}unit(e){return n(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];l.verifyFlat(t,"valid");const n=this.allow(...t);return n.$_setFlag("only",!!n._valids,{clone:!1}),n}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const i=c.when(r,e,t);if(!["any","link"].includes(r.type)){const e=i.is?[i]:i.switch;for(const t of e)n(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),n(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(i),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||a.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(l.isSchema(e),"Invalid schema object"),n("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=y.merge(t._valids,e._valids,e._invalids),t._invalids=y.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==r),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.c
8oncat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),h.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&r<this._rules.length,"Cannot apply rules to empty ruleset");const o=this.clone();for(let s=r;s<o._rules.length;++s){const r=o._rules[s],a=i(r);for(const i in e)t.modifiers[i](a,e[i]),n(a.name===r.name,"Cannot change rule name");o._rules[s]=a,o._singleRules.get(a.name)===r&&o._singleRules.set(a.name,a)}return o.$_temp.ruleset=!1,o.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),"Cannot tailor inside a ruleset");let t=this;if(this.$_terms.alterations)for(const{target:r,adjuster:i}of this.$_terms.alterations)e.includes(r)&&(t=i(t),n(l.isSchema(t),"Alteration adjuster for",r,"failed to return a schema object"));return t=t.$_modify({each:t=>t.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return g.location?g.location(this):this}validate(e,t){return b.entry(e,this,t)}validateAsync(e,t){return b.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const s in e)n("_"!==s[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],i=t.args;n(r,"Unknown rule",t.method);const o=this.clone();if(i){n(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in i){let s=i[e];if(r.argsByName){const a=r.argsByName.get(e);if(a.ref&&l.isResolvable(s))t._resolve.push(e),o.$_mutateRegister(s);else if(a.normalize&&(s=a.normalize(s),i[e]=s),a.assert){const t=l.validateArg(s,e,a);n(!t,t,"or reference")}}void 0!==s?i[e]=s:delete i[e]}}return r.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),r.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=!1!==o.flags?this._flags:{},a=o.messages?f.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,r,s,a,n,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const i=!b.validate(e,this,t,r,n).errors;return t.restore(),i}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let{source:r,name:n,path:i,key:o}=t;const s=this._definition[r][n]&&this._definition[r][n].register;!1!==s&&this.$_mutateRegister(e,{family:s,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let{family:t,key:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this[e][l.symbols.parent].call(this,...r)}
vendor: 5,740 bytes, line 8
8$_validate(e,t,r){return b.validate(e,this,t,r)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=i(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const r in t){const n=t[r];e.$_terms[r]=n.init}return e.$_mutateRebuild()}_default(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],i=[];for(let a=0;a<this.$_terms.whens.length;++a){const o=this.$_terms.whens[a];if(o.concat){n.push(o.concat),i.push(`${a}.concat`);continue}const s=o.ref?o.ref.resolve(e,t,r):e,l=o.is?[o]:o.switch,c=i.length;for(let u=0;u<l.length;++u){const{is:c,then:h,otherwise:d}=l[u],f=`${a}${o.switch?"."+u:""}`;if(c.$_match(s,t.nest(c,`${f}.is`),r)){if(h){const o=t.localize([...t.path,`${f}.then`],t.ancestors,t.schemas),{schema:s,id:a}=h._generate(e,o,r);n.push(s),i.push(`${f}.then${a?`(${a})`:""}`);break}}else if(d){const o=t.localize([...t.path,`${f}.otherwise`],t.ancestors,t.schemas),{schema:s,id:a}=d._generate(e,o,r);n.push(s),i.push(`${f}.otherwise${a?`(${a})`:""}`);break}}if(o.break&&i.length>c)break}const o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const a of n)s=s.concat(a);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...n]),this.$_temp.whens[o]=s,{schema:s,id:o}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),`Cannot set ${e} inside a ruleset`);const i=this.clone();return i.$_terms[e]&&!r.override||(i.$_terms[e]=[]),r.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let i=0;i<r._rules.length;++i){const t=r._rules[i];t.name!==e||t.keep?n.push(t):r._inRuleset()&&i<r.$_temp.ruleset&&--r.$_temp.ruleset}return r._rules=n,r}_values(e,t){l.verifyFlat(e,t.slice(1,-1));const r=this.clone(),i=e[0]===l.symbols.override;if(i&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new y:i&&(r[t]=e.length?new y:null,r.$_mutateRebuild()),!r[t])return r;i&&r[t].override();for(const o of e){n(void 0!==o,"Cannot call allow/valid/invalid with undefined"),n(o!==l.symbols.override,"Override must be the first value");const e="_invalids"===t?"_valids":"_invalids";r[e]&&(r[e].remove(o),r[e].length||(n("_valids"===t||!r._flags.only,"Setting invalid value",o,"leaves schema rejecting all values due to previous valid rule"),r[e]=null)),r[t].add(o,r._refs)}return r}}};v.Base.prototype[l.symbols.any]={version:l.version,compile:c.compile,root:"$_root"},v.Base.prototype.isImmutable=!0,v.Base.prototype.deny=v.Base.prototype.invalid,v.Base.prototype.disallow=v.Base.prototype.invalid,v.Base.prototype.equal=v.Base.prototype.valid,v.Base.prototype.exist=v.Base.prototype.required,v.Base.prototype.not=v.Base.prototype.invalid,v.Base.prototype.options=v.Base.prototype.prefs,v.Base.prototype.preferences=v.Base.prototype.prefs,e.exports=new v.Base},8652:(e,t,r)=>{const n=r(375),i=r(8571),o=r(8160),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},8160:(e,t,r)=>{const n=r(375),i=r(7916),o=r(5934);let s,a;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};
8t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const i=Object.keys(e).filter(e=>!t.includes(e));n(0===i.length,`${r} contain unknown keys: ${i}`)},t.checkPreferences=function(e){a=a||r(3378);const t=a.preferences.validate(e);if(t.error)throw new i([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e&&e[t.symbols.any];return!!i&&(n(r.legacy||i.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){s=s||r(6914),e=e||{},n=n||{};const i=Object.assign({},e,n);return n.errors&&e.errors&&(i.errors=Object.assign({},e.errors,n.errors),i.errors.wrap=Object.assign({},e.errors.wrap,n.errors.wrap)),n.messages&&(i.messages=s.compile(n.messages,e.messages)),delete i[t.symbols.prefs],i},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(n){throw void 0!==n.path?n.path=t+"."+n.path:n.path=t,r.append&&(n.message=`${n.message} (${n.path})`),n}},t.validateArg=function(e,r,n){let{assert:i,message:o}=n;if(t.isSchema(i)){const t=i.validate(e);if(!t.error)return;return t.error.message}if(!i(e))return r?`${r} ${o}`:o},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},3292:(e,t,r)=>{const n=r(375),i=r(8160),o=r(6133),s={};t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(n){throw r.appendPath&&void 0!==n.path&&(n.message=`${n.message} (${n.path})`),n}},s.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return!1!==r.override?t.valid(e.override,...i):t.valid(...i)};if(s.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(n("object"==typeof t,"Invalid schema content:",typeof t),i.isResolvable(t))return o(e,t);if(i.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!s.simple(r))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i.assertOptions(o,["legacy"]);const a=r&&r[i.symbols.any];if(a)return n(o.legacy||a.version===i.version,"Cannot mix different versions of joi schemas:",a.version,i.version),r;if("object"!=typeof r||!o.legacy)return t.schema(e,r,{appendPath:!0});const l=s.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}
vendor: 9,599 bytes, line 8
8const t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const r in e){const t=s.walk(e[r]);if(t)return t}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,a){if(void 0===a&&(n(r&&"object"==typeof r,"Missing options"),a=r,r=o.create(".")),Array.isArray(a)&&(a={switch:a}),i.assertOptions(a,["is","not","then","otherwise","switch","break"]),i.isSchema(r))return n(void 0===a.is,'"is" can not be used with a schema condition'),n(void 0===a.not,'"not" can not be used with a schema condition'),n(void 0===a.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:a.then,otherwise:a.otherwise,break:a.break});if(n(o.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===a.not||void 0===a.is,'Cannot combine "is" with "not"'),void 0===a.switch){let l=a;void 0!==a.not&&(l={is:a.not,then:a.otherwise,otherwise:a.then,break:a.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===a.is||o.isRef(a.is)||i.isSchema(a.is)||(c=c.required()),s.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}n(Array.isArray(a.switch),'"switch" must be an array'),n(void 0===a.is,'Cannot combine "switch" with "is"'),n(void 0===a.not,'Cannot combine "switch" with "not"'),n(void 0===a.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:a.break};for(let t=0;t<a.switch.length;++t){const r=a.switch[t],s=t===a.switch.length-1;i.assertOptions(r,s?["is","then","otherwise"]:["is","then"]),n(void 0!==r.is,'Switch statement missing "is"'),n(void 0!==r.then,'Switch statement missing "then"');const c={is:e.$_compile(r.is),then:e.$_compile(r.then)};if(o.isRef(r.is)||i.isSchema(r.is)||(c.is=c.is.required()),s){n(void 0===a.otherwise||void 0===r.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');const t=void 0!==a.otherwise?a.otherwise:r.otherwise;void 0!==t&&(n(void 0===l.break,"Cannot specify both otherwise and break"),c.otherwise=e.$_compile(t))}l.switch.push(c)}return l},s.condition=function(e,t){for(const r of["then","otherwise"])void 0===t[r]?delete t[r]:t[r]=e.$_compile(t[r]);return t}},6354:(e,t,r)=>{const n=r(5688),i=r(8160),o=r(3328);t.Report=class{constructor(e,r,n,i,o,s,a){if(this.code=e,this.flags=i,this.messages=o,this.path=s.path,this.prefs=a,this.state=s,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?`Error code "${e}" is not defined, your custom type is missing the correct messages definition`:(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+=`[${r}]`);return t},t.template=function(e,t,r,n,s){if(!t)return;if(o.isTemplate(t))return"root"!==r?t:null;let a=s.errors.language;if(i.isResolvable(a)&&(a=a.resolve(e,n,s)),a&&t[a]){if(void 0!==t[a][r])return t[a][r];if(void 0!==t[a]["*"])return t[a]["*"]}return t[r]?t[r]:t["*"]},t.label=function(e,r,n,i){if(e.label)return e.label;if(!n.errors.label)return"";let o=r.path;return"key"===n.errors.label&&r.path.length>1&&(o=r.path.slice(-1)),t.path(o)||t.template(null,n.messages,"root",r,n)||i&&t.template(null,i,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const{override:i,message:o,details:s}=t.details(e);if(i)return i;if(n.errors.stack)return new t.ValidationError(o,s,r);const a=Error.stackTraceLimit;Error.stackTraceLimit=0;const l=new t.ValidationError(o,s,r);return Error.stackTraceLimit=a,l},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const n=[];for(const i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};const e=i.toString();r.push(e),n.push({message:e,type:"override",context:{error:i}});continue}const e=i.toString();r.push(e),n.push({message:e,path:i.path.filter(e=>"object"!=typeof e),type:i.code,context:i.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},8901:(e,t,r)=>{const n=r(375),i=r(8571),o=r(8160),s=r(6914),a={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=i(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const h=r._definition||{};u.messages=s.merge(h.messages,u.messages),u.properties=Object.assign({},h.properties,u.properties),c.type=u.type,u.flags=Object.assign({},h.flags,u.flags);const d=Object.assign({},h.terms);if(u.terms)for(const i in u.terms){const e=u.terms[i];n(void 0===c.$_terms[i],"Invalid term override for",u.type,i),c.$_terms[i]=e.init,d[i]=e}u.terms=d,u.args||(u.args=h.args),u.prepare=a.prepare(u.prepare,h.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=a.coerce(u.coerce,h.coerce),u.validate=a.validate(u.validate,h.validate);const f=Object.assign({},h.rules);if(u.rules)for(const i in u.rules){const e=u.rules[i];n("object"==typeof e,"Invalid rule definition for",u.type,i);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(i)}),t&&(n(!l[i],"Rule conflict in",u.type,i),l[i]=t),n(!f[i],"Rule conflict in",u.type,i),f[i]=e,e.alias){const t=[].concat(e.alias);for(const r of t)l[r]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map(t=>("string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),o.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t)))}u.rules=f;const p=Object.assign({},h.modifiers);if(u.modifiers)for(const i in u.modifiers){n(!l[i],"Rule conflict in",u.type,i);const e=u.modifiers[i];n("function"==typeof e,"Invalid modifier definition for",u.type,i);const t=function(e){return this.rule({[i]:e})};l[i]=t,p[i]=e}if(u.modifiers=p,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)n(r[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=r[e],c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},h.cast,u.cast);const m=Object.assign({},h.manifest,u.manifest);return m.build=a.build(u.manifest&&u.manifest.build,h.manifest&&h.manifest.build),u.manifest=m,u.rebuild=a.rebuild(u.rebuild,h.rebuild),c},a.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},a.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let i;if((!t.from||t.from.includes(typeof r))&&(i=t.method(r,n),i)){if(i.errors||void 0===i.value)return i;r=i.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return i}}:e||t},a.prepare=function(e,t){return e&&t?function(r,n){const i=e(r,n);if(i){if(i.errors||void 0===i.value)return i;r=i.value}return t(r,n)||i}:e||t},a.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},a.validate=function(e,t){return e&&t?function(r,n){const i=t(r,n);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;r=i.value}return e(r,n)||i}:e||t}},5107:(e,t,r)=>{const n=r(375),i=r(8571),o=r(8652),s=r(8160),a=r(3292),l=r(6354),c=r(8901),u=r(9708),h=r(6133),d=r(3328),f=r(1152);let p;const m={types:{alternatives:r(4946),any:r(8068),array:r(546),boolean:r(4937),date:r(7500),function:r(390),link:r(8785),number:r(3832),object:r(8966),string:r(7417),symbol:r(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(m.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n(!r.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),m.generate(this,m.types[t],r)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(){return this.any()[t](...arguments)};Object.assign(e,m.methods);for(const t in m.aliases){const r=m.aliases[t];e[t]=e[r]}return e.x=e.expression,f.setup&&f.setup(e),e}};
8m.methods={ValidationError:l.ValidationError,version:s.version,cache:o.provider,assert(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];m.assert(e,t,!0,n)},attempt(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return m.assert(e,t,!1,n)},build(e){return n("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return a.compile(this,e,t)},defaults(e){n("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const i=e(t[r]());n(s.isSchema(i),"modifier must return a valid schema object"),t[r]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.generate(this,i,t)}}return t},expression(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new d(...t)},extend(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];s.verifyFlat(t,"extend"),p=p||r(3378),n(t.length,"You need to provide at least one extension"),this.assert(t,p.extensions);const o=Object.assign({},this);o._types=new Set(o._types);for(let r of t){"function"==typeof r&&(r=r(o)),this.assert(r,p.extension);const e=m.expandExtension(r,o);for(const t of e){n(void 0===o[t.type]||o._types.has(t.type),"Cannot override name",t.type);const e=t.base||this.any(),r=c.type(e,t);o._types.add(t.type),o[t.type]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.generate(this,r,t)}}}return o},isError:l.ValidationError.isError,isExpression:d.isTemplate,isRef:h.isRef,isSchema:s.isSchema,in(){return h.in(...arguments)},override:s.symbols.override,ref(){return h.create(...arguments)},types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,r,n){const o=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,a=null!==o?n[1]:n[0],c=t.validate(e,s.preferences({errors:{stack:!0}},a||{}));let u=c.error;if(!u)return c.value;if(o instanceof Error)throw o;const h=r&&"function"==typeof u.annotate?u.annotate():u.message;throw u instanceof l.ValidationError==0&&(u=i(u)),u.message=o?`${o} ${h}`:h,u},m.generate=function(e,t,r){return n(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},m.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const r=[];for(const n of t._types)if(e.type.test(n)){const i=Object.assign({},e);i.type=n,i.base=t[n](),r.push(i)}return r},e.exports=m.root()},6914:(e,t,r)=>{const n=r(375),i=r(8571),o=r(3328);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{};for(let r in e){const i=e[r];if("root"===r||o.isTemplate(i)){t[r]=i;continue}if("string"==typeof i){t[r]=new o(i);continue}n("object"==typeof i&&!Array.isArray(i),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},i){const e=i[r];"root"===r||o.isTemplate(e)?t[s][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new o(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t.root=n;continue}if(o.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const i=r;for(r in t[i]={},n){const e=n[r];"root"!==r?t[i][r]=e.describe({compact:!0}):t[i].root=e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new o(r);if(o.isTemplate(r))return r;const s=i(e);for(let t in r){const e=r[t];if("root"===t||o.isTemplate(e)){s[t]=e;continue}if("string"==typeof e){s[t]=new o(e);continue}n("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const i=t;for(t in s[i]=s[i]||{},e){const r=e[t];"root"===t||o.isTemplate(r)?s[i][t]=r:(n("string"==typeof r,"Invalid message for",t,"in",i),s[i][t]=new o(r))}}return s}},2294:(e,t,r)=>{const n=r(375),i=r(8160),o=r(6133),s={};t.Ids=s.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new s.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);
8for(const[t,r]of e._byId.entries())n(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const o=this._collect(e);o.push({schema:r});const a=o.shift();let l={id:a.id,schema:t(a.schema)};n(i.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const n of o)l={id:n.id,schema:s.fork(n.schema,l.id,l.schema)};return l.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const i=e.slice(1);return t=[...t,n.schema._flags.label||r],i.length?n.schema._ids.labels(i,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],i=this._get(r);n(i,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?i.schema._ids.reach(o,[...t,r]):i.schema}register(e){let{key:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!i.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);n(!t||t.schema===e,"Cannot add different schemas with the same id:",r),n(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(n(!this._byKey.has(t),"Schema already contains key:",t),n(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const i=e[0],o=this._get(i);n(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const s=e.slice(1);return s.length?o.schema._ids._collect(s,[...t,i],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},s.fork=function(e,r,n){const i=t.schema(e,{each:(e,t)=>{let{key:i}=t;if(r===(e._flags.id||i))return n},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const i=s.scan(e._flags[n],{source:"flags",name:n},t);void 0!==i&&(r=r||e.clone(),r._flags[n]=i)}for(let n=0;n<e._rules.length;++n){const i=e._rules[n],o=s.scan(i.args,{source:"rules",name:i.name},t);if(void 0!==o){r=r||e.clone();const t=Object.assign({},i);t.args=o,r._rules[n]=t,r._singleRules.get(i.name)===i&&r._singleRules.set(i.name,t)}}for(const n in e.$_terms){if("_"===n[0])continue;const i=s.scan(e.$_terms[n],{source:"terms",name:n},t);void 0!==i&&(r=r||e.clone(),r.$_terms[n]=i)}return r},s.scan=function(e,t,r,n,a){const l=n||[];if(null===e||"object"!=typeof e)return;let c;if(Array.isArray(e)){for(let n=0;n<e.length;++n){const i="terms"===t.source&&"keys"===t.name&&e[n].key,o=s.scan(e[n],t,r,[n,...l],i);void 0!==o&&(c=c||e.slice(),c[n]=o)}return c}if(!1!==r.schema&&i.isSchema(e)||!1!==r.ref&&o.isRef(e)){const n=r.each(e,{...t,path:l,key:a});if(n===e)return;return n}for(const i in e){if("_"===i[0])continue;const n=s.scan(e[i],t,r,[i,...l],a);void 0!==n&&(c=c||Object.assign({},e),c[i]=n)}return c}},6133:(e,t,r)=>{const n=r(375),i=r(8571),o=r(9621),s=r(8160);let a;const l={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n("string"==typeof e,"Invalid reference key:",e),s.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),n(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},l.defaults,t);delete r.prefix;const i=r.separator,o=l.context(e,i,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(n(!i||e[0]!==i,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),i&&i===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)n(!i||!e||e[0]!==i,"Cannot combine prefix with ancestor option");else{const[t,n]=l.ancestor(e,i);n&&""===(e=e.slice(n))&&(e=null),r.ancestor=t}return r.path=i?null===e?[]:e.split(i):[e],new l.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,{...r,in:!0})},t.isRef=function(e){return!!e&&!!e[s.symbols.ref]},l.Ref=class{constructor(e){n("object"==typeof e,"Invalid reference construction"),s.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),n([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),n(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),n(!e.map||Array.isArray(e.map),"options.map must be an array"),n(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,l.defaults,e),n("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}
vendor: 9,933 bytes, line 8
8resolve(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return n(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(i,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(n(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new l.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display=`ref:${this.type}:${e}`);if(!this.separator)return void(this.display=`ref:${e}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${e}`);if("root"===this.ancestor)return void(this.display=`ref:root:${e}`);if(1===this.ancestor)return void(this.display=`ref:${e||".."}`);const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${t}${e||""}`}},l.Ref.prototype[s.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},l.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new l.Ref(e)},l.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const i=void 0===r.local?"#":r.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};const o=void 0===r.root?"/":r.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},l.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(s.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),a=a||r(3328),a.isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=i(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}},3378:(e,t,r)=>{const n=r(5107),i={};i.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:i.wrap,array:i.wrap,string:i.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=n.object({alias:n.array().items(n.string().pattern(i.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(i.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(i.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(i.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(i.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(i.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(i.nameRx,i.rule),terms:n.object().pattern(i.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),i.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},i.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,n.link("/")]),i.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=n.object().pattern(/.+/,[n.string(),i.desc.template,n.object().pattern(/.+/,[n.string(),i.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:i.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:n.boolean(),messages:i.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),i.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},493:(e,t,r)=>{const n=r(8571),i=r(9621),o=r(8160),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=new s.State(e,t,this);return r&&n.schemas&&(n.schemas=[s.schemas(r),...n.schemas]),n}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}},s.schemas=function(e){return o.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let i=0;i<e.length;++i){const t=e[i];let r=n.get(t);r||(r=new Map,n.set(t,r)),n=r}n[s.value]=t}get(e){const t=this.node(e);if(t)return t[s.value]}node(e){if(this._values)return i(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;const r=e.slice(0,-1),n=e[e.length-1],o=i(this._values,r,{iterables:!0});t?o.set(n,t):o&&o.delete(n)}}},3328:(e,t,r)=>{const n=r(375),i=r(8571),o=r(5277),s=r(1447),a=r(8160),l=r(6354),c=r(6133),u={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("�"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,
8string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=u.Template=class{constructor(e,t){n("string"==typeof e,"Template source must be a string"),n(!e.includes("\0")&&!e.includes("�"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=u.encode(this.source),t=u.split(e);let r=!1;const n=[],i=t.shift();i&&n.push(i);for(const o of t){const e="{"!==o[0],t=e?"}":"}}",i=o.indexOf(t);if(-1===i||"{"===o[1]){n.push(`{${u.decode(o)}`);continue}let s=o.slice(e?0:1,i);const a=":"===s[0];a&&(s=s.slice(1));const l=this._ref(u.decode(s),{raw:e,wrapped:a});n.push(l),"string"!=typeof l&&(r=!0);const c=o.slice(i+t.length);c&&n.push(u.decode(c))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return u.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new u.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[a.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.ref?e.ref.resolve(...r):e.formula.evaluate(r)}render(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const s=[];for(const a of this._template)if("string"==typeof a)s.push(a);else{const l=this._part(a,e,t,r,n,i),c=u.stringify(l,e,t,r,n,i);if(void 0!==c){const e=a.raw||!1===(i.errors&&i.errors.escapeHtml)?c:o(c);s.push(u.wrap(e,a.wrapped&&r.errors.wrap.label))}}return s.join("")}_ref(e,t){let{raw:r,wrapped:n}=t;const i=[],o=e=>{const t=c.create(e,this._settings);return i.push(t),e=>t.resolve(...e)};try{var a=new s.Parser(e,{reference:o,functions:u.functions,constants:u.constants})}catch(l){throw l.message=`Invalid template variable "${e}" fails due to: ${l.message}`,l}if(a.single){if("reference"===a.single.type){const e=i[0];return{ref:e,raw:r,refs:i,wrapped:n||"local"===e.type&&"label"===e.key}}return u.stringify(a.single.value)}return{formula:a,raw:r,refs:i}}toString(){return this.source}},u.Template.prototype[a.symbols.template]=!0,u.Template.prototype.isImmutable=!0,u.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>u.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>u.closes.slice(0,t.length))},u.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},u.split=function(e){const t=[];let r="";for(let n=0;n<e.length;++n){const i=e[n];if("{"===i){let i="";for(;n+1<e.length&&"{"===e[n+1];)i+="{",++n;t.push(r),r=i}else r+=i}return t.push(r),t},u.wrap=function(e,t){return t?1===t.length?`${t}${e}${t}`:`${t[0]}${e}${t[1]}`:e},u.stringify=function(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=typeof e,a=n&&n.errors&&n.errors.wrap||{};let l=!1;if(c.isRef(e)&&e.render&&(l=e.in,e=e.resolve(t,r,n,i,{in:e.in,...o})),null===e)return"null";if("string"===s)return u.wrap(e,o.arrayItems&&a.string);if("number"===s||"function"===s||"symbol"===s)return e.toString();if("object"!==s)return JSON.stringify(e);if(e instanceof Date)return u.Template.date(e,n);if(e instanceof Map){const t=[];for(const[r,n]of e.entries())t.push(`${r.toString()} -> ${n.toString()}`);e=t}if(!Array.isArray(e))return e.toString();const h=[];for(const c of e)h.push(u.stringify(c,t,r,n,i,{arrayItems:!0,...o}));return u.wrap(h.join(", "),!l&&a.array)},u.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},u.functions={if:(e,t,r)=>e?t:r,length:e=>"string"==typeof e?e.length:e&&"object"==typeof e?Array.isArray(e)?e.length:Object.keys(e).length:null,msg(e){const[t,r,n,i,o]=this,s=o.messages;if(!s)return"";const a=l.template(t,s[0],e,r,n)||l.template(t,s[1],e,r,n);return a?a.render(t,r,n,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},4946:(e,t,r)=>{const n=r(375),i=r(1687),o=r(8068),s=r(8160),a=r(3292),l=r(6354),c=r(6133),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return 1===r.length&&Array.isArray(r[0])?e.try(...r[0]):e.try(...r)},validate(e,t){const{schema:r,error:n,state:o,prefs:s}=t;if(r._flags.match){const t=[],a=[];for(let n=0;n<r.$_terms.matches.length;++n){const i=r.$_terms.matches[n],l=o.nest(i.schema,`match.${n}`);l.snapshot();const c=i.schema.$_validate(e,l,s);
vendor: 4,838 bytes, line 8
8c.errors?(a.push(c.errors),l.restore()):t.push(c.value)}if(0===t.length)return{errors:n("alternatives.any",{details:a.map(e=>l.details(e,{override:!1}))})};if("one"===r._flags.match)return 1===t.length?{value:t[0]}:{errors:n("alternatives.one")};if(t.length!==r.$_terms.matches.length)return{errors:n("alternatives.all",{details:a.map(e=>l.details(e,{override:!1}))})};const c=e=>e.$_terms.matches.some(e=>"object"===e.schema.type||"alternatives"===e.schema.type&&c(e.schema));return c(r)?{value:t.reduce((e,t)=>i(e,t,{mergeArrays:!1}))}:{value:t[t.length-1]}}const a=[];for(let i=0;i<r.$_terms.matches.length;++i){const t=r.$_terms.matches[i];if(t.schema){const r=o.nest(t.schema,`match.${i}`);r.snapshot();const n=t.schema.$_validate(e,r,s);if(!n.errors)return n;r.restore(),a.push({schema:t.schema,reports:n.errors});continue}const n=t.ref?t.ref.resolve(e,o,s):e,l=t.is?[t]:t.switch;for(let r=0;r<l.length;++r){const a=l[r],{is:c,then:u,otherwise:h}=a,d=`match.${i}${t.switch?"."+r:""}`;if(c.$_match(n,o.nest(c,`${d}.is`),s)){if(u)return u.$_validate(e,o.nest(u,`${d}.then`),s)}else if(h)return h.$_validate(e,o.nest(h,`${d}.otherwise`),s)}}return u.errors(a,t)},rules:{conditional:{method(e,t){n(!this._flags._endedSwitch,"Unreachable condition"),n(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),n(void 0===t.break,"Cannot use break option with alternatives conditional");const r=this.clone(),i=a.when(r,e,t),o=i.is?[i]:i.switch;for(const n of o)if(n.then&&n.otherwise){r.$_setFlag("_endedSwitch",!0,{clone:!1});break}return r.$_terms.matches.push(i),r.$_mutateRebuild()}},match:{method(e){if(n(["any","one","all"].includes(e),"Invalid alternatives match mode",e),"any"!==e)for(const t of this.$_terms.matches)n(t.schema,"Cannot combine match mode",e,"with conditional rules");return this.$_setFlag("match",e)}},try:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing alternative schemas"),s.verifyFlat(t,"try"),n(!this._flags._endedSwitch,"Unreachable condition");const i=this.clone();for(const n of t)i.$_terms.matches.push({schema:i.$_compile(n)});return i.$_mutateRebuild()}}},overrides:{label(e){return this.$_parent("label",e).$_modify({each:(t,r)=>"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{s.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:n,is:i,not:o,then:s,otherwise:a}=r;e=t?e.try(t):n?e.conditional(n,{is:i,then:s,not:o,otherwise:a,switch:r.switch}):e.conditional(i,{then:s,otherwise:a})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,t){let{error:r,state:n}=t;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const i=new Set,o=[];for(const{reports:s,schema:a}of e){if(s.length>1)return u.unmatched(e,r);const t=s[0];if(t instanceof l.Report==0)return u.unmatched(e,r);if(t.state.path.length!==n.path.length){o.push({type:a.type,report:t});continue}if("any.only"===t.code){for(const e of t.local.valids)i.add(e);continue}const[c,h]=t.code.split(".");"base"===h?i.add(c):o.push({type:a.type,report:t})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,r):{errors:r("alternatives.types",{types:[...i]})}},u.unmatched=function(e,t){const r=[];for(const n of e)r.push(...n.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},8068:(e,t,r)=>{const n=r(375),i=r(7629),o=r(8160),s=r(6914);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let{method:n}=r;try{return n(e,t)}catch(i){return t.error("any.custom",{error:i})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})}
8,validate(e,t,r){let{code:n,local:i}=r;return t.error(n,i)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=s.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const{ref:r,is:n,not:i,then:o,otherwise:s,concat:a}=t;e=a?e.concat(a):r?e.when(r,{is:n,not:i,then:o,otherwise:s,switch:t.switch,break:t.break}):e.when(n,{then:o,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(e,t,r)=>{const n=r(375),i=r(9474),o=r(9621),s=r(8068),a=r(8160),l=r(3292),c={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let{schema:r,state:n,prefs:i}=t;if(!Array.isArray(e))return;const o=r.$_getRule("sort");return o?c.sort(r,e,o.args.options,n,i):void 0}},validate(e,t){let{schema:r,error:n}=t;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[a.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,t,r){let{state:n,prefs:i,error:o}=t,{schema:s}=r;const a=[e,...n.ancestors];for(let c=0;c<e.length;++c){const t=n.localize([...n.path,c],a,s);if(s.$_match(e[c],t,i))return e}const l=s._flags.label;return l?o("array.hasKnown",{patternLabel:l}):o("array.hasUnknown",null)},multi:!0},items:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.verifyFlat(t,"items");const n=this.$_addRule("items");for(let i=0;i<t.length;++i){const e=a.tryWithPath(()=>this.$_compile(t[i]),i,{append:!0});n.$_terms.items.push(e)}return n.$_mutateRebuild()},validate(e,t){let{schema:r,error:n,state:i,prefs:o,errorsArray:s}=t;const l=r.$_terms._requireds.slice(),u=r.$_terms.ordered.slice(),h=[...r.$_terms._inclusions,...l],d=!e[a.symbols.arraySingle];delete e[a.symbols.arraySingle];const f=s();let p=e.length;for(let a=0;a<p;++a){const t=e[a];let s=!1,m=!1;const g=d?a:new Number(a),b=[...i.path,g];if(!r._flags.sparse&&void 0===t){if(f.push(n("array.sparse",{key:g,path:b,pos:a,value:void 0},i.localize(b))),o.abortEarly)return f;u.shift();continue}const y=[e,...i.ancestors];for(const e of r.$_terms._exclusions)if(e.$_match(t,i.localize(b,y,e),o,{presence:"ignore"})){if(f.push(n("array.excludes",{pos:a,value:t},i.localize(b))),o.abortEarly)return f;s=!0,u.shift();break}if(s)continue;if(r.$_terms.ordered.length){if(u.length){const s=u.shift(),l=s.$_validate(t,i.localize(b,y,s),o);if(l.errors){if(f.push(...l.errors),o.abortEarly)return f}else if("strip"===s._flags.result)c.fastSplice(e,a),--a,--p;else{if(!r._flags.sparse&&void 0===l.value){if(f.push(n("array.sparse",{key:g,path:b,pos:a,value:void 0},i.localize(b))),o.abortEarly)return f;continue}e[a]=l.value}continue}if(!r.$_terms.items.length){if(f.push(n("array.orderedLength",{pos:a,limit:r.$_terms.ordered.length})),o.abortEarly)return f;break}}const v=[];let w=l.length;for(let u=0;u<w;++u){const s=i.localize(b,y,l[u]);s.snapshot();const h=l[u].$_validate(t,s,o);if(v[u]=h,!h.errors){if(e[a]=h.value,m=!0,c.fastSplice(l,u),--u,--w,!r._flags.sparse&&void 0===h.value&&(f.push(n("array.sparse",{key:g,path:b,pos:a,value:void 0},i.localize(b))),o.abortEarly))return f;break}
vendor: 6,923 bytes, line 8
8s.restore()}if(m)continue;const _=o.stripUnknown&&!!o.stripUnknown.arrays||!1;w=h.length;for(const u of h){let h;const d=l.indexOf(u);if(-1!==d)h=v[d];else{const l=i.localize(b,y,u);if(l.snapshot(),h=u.$_validate(t,l,o),!h.errors){"strip"===u._flags.result?(c.fastSplice(e,a),--a,--p):r._flags.sparse||void 0!==h.value?e[a]=h.value:(f.push(n("array.sparse",{key:g,path:b,pos:a,value:void 0},i.localize(b))),s=!0),m=!0;break}l.restore()}if(1===w){if(_){c.fastSplice(e,a),--a,--p,m=!0;break}if(f.push(...h.errors),o.abortEarly)return f;s=!0;break}}if(!s&&(r.$_terms._inclusions.length||r.$_terms._requireds.length)&&!m){if(_){c.fastSplice(e,a),--a,--p;continue}if(f.push(n("array.includes",{pos:a,value:t},i.localize(b))),o.abortEarly)return f}}return l.length&&c.fillMissedErrors(r,f,l,e,i,o),u.length&&(c.fillOrderedErrors(r,f,u,e,i,o),f.length||c.fillDefault(u,e,i,o)),f.length?f:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:s,args:l}=n;return a.compare(e.length,i,s)?e:t.error("array."+o,{limit:l.limit,value:e})},args:[{name:"limit",ref:!0,assert:a.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.verifyFlat(t,"ordered");const n=this.$_addRule("items");for(let i=0;i<t.length;++i){const e=a.tryWithPath(()=>this.$_compile(t[i]),i,{append:!0});c.validateSingle(e,n),n.$_mutateRegister(e),n.$_terms.ordered.push(e)}return n.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let{error:n,state:i,prefs:o,schema:s}=t,{options:a}=r;const{value:l,errors:u}=c.sort(s,e,a,i,o);if(u)return u;for(let c=0;c<e.length;++c)if(e[c]!==l[c])return n("array.sort",{order:a.order,by:a.by?a.by.key:"value"});return e},convert:!0},sparse:{method(e){const t=void 0===e||!!e;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),a.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const n=a.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,s){let{state:a,error:l,schema:c}=t,{comparator:u,options:h}=r,{comparator:d,path:f}=s;const p={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},m=d||i,g=h.ignoreUndefined;for(let i=0;i<e.length;++i){const t=f?o(e[i],f):e[i],r=d?p.custom:p[typeof t];if(n(r,"Failed to find unique map container for type",typeof t),r instanceof Map){const n=r.entries();let o;for(;!(o=n.next()).done;)if(m(o.value[0],t)){const t=a.localize([...a.path,i],[e,...a.ancestors]),r={pos:i,value:e[i],dupePos:o.value[1],dupeValue:e[o.value[1]]};return f&&(r.path=u),l("array.unique",r,t)}r.set(t,i)}else{if((!g||void 0!==t)&&void 0!==r[t]){const n={pos:i,value:e[i],dupePos:r[t],dupeValue:e[r[t]]};return f&&(n.path=u),l("array.unique",n,a.localize([...a.path,i],[e,...a.ancestors]))}r[t]=i}}return e},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(e,t)=>new Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),c.fillMissedErrors=function(e,t,r,n,i,o){const s=[];let a=0;for(const l of r){const e=l._flags.label;e?s.push(e):++a}s.length?a?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:s,unknownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:a},i,o))},c.fillOrderedErrors=function(e,t,r,n,i,o){const s=[];for(const a of r)"required"===a._flags.presence&&s.push(a);s.length&&c.fillMissedErrors(e,t,s,n,i,o)},c.fillDefault=function(e,t,r,n){const i=[];let o=!0;for(let s=e.length-1;s>=0;--s){const a=e[s],l=[t,...r.ancestors],c=a.$_validate(void 0,r.localize(r.path,l,a),n).value;if(o){if(void 0===c)continue;o=!1}i.unshift(c)}i.length&&t.push(...i)},c.fastSplice=function(e,t){let r=t;for(;r<e.length;)e[r++]=e[r];--e.length},c.validateSingle=function(e,t){("array"===e.type||e._flags._arrayItems)&&(n(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},c.sort=function(e,t,r,n,i){const o="ascending"===r.order?1:-1,s=-1*o,a=o,l=(l,u)=>{let h=c.compare(l,u,s,a);if(null!==h)return h;
8if(r.by&&(l=r.by.resolve(l,n,i),u=r.by.resolve(u,n,i)),h=c.compare(l,u,s,a),null!==h)return h;const d=typeof l;if(d!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,n,i);if("number"!==d&&"string"!==d)throw e.$_createError("array.sort.unsupported",t,{type:d},n,i);return"number"===d?(l-u)*o:l<u?s:a};try{return{value:t.slice().sort(l)}}catch(u){return{errors:u}}},c.compare=function(e,t,r,n){return e===t?0:void 0===e?1:void 0===t?-1:null===e?n:null===t?r:null}},4937:(e,t,r)=>{const n=r(375),i=r(8068),o=r(8160),s=r(2036),a={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let{schema:r}=t;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let{error:r}=t;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.verifyFlat(t,"truthy");const i=this.clone();i.$_terms.truthy=i.$_terms.truthy||new s;for(let o=0;o<t.length;++o){const e=t[o];n(void 0!==e,"Cannot call truthy with undefined"),i.$_terms.truthy.add(e)}return i}},falsy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];o.verifyFlat(t,"falsy");const i=this.clone();i.$_terms.falsy=i.$_terms.falsy||new s;for(let o=0;o<t.length;++o){const e=t[o];n(void 0!==e,"Cannot call falsy with undefined"),i.$_terms.falsy.add(e)}return i}},sensitive:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:a.isBool,to:(e,t)=>e?1:0},string:{from:a.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(e,t,r)=>{const n=r(375),i=r(8068),o=r(8160),s=r(3328),a={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method(e,t){let{schema:r}=t;return{value:a.parse(e,r._flags.format)||e}}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e instanceof Date&&!isNaN(e.getTime()))return;const o=r._flags.format;return i.convert&&o&&"string"==typeof e?{value:e,errors:n("date.format",{format:o})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,r,n){let{date:i}=r,{name:s,operator:a,args:l}=n;const c="now"===i?Date.now():i.getTime();return o.compare(e.getTime(),c,a)?e:t.error("date."+s,{limit:l.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:a.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:a.isDate,to:(e,t)=>e.getTime()},string:{from:a.isDate,to(e,t){let{prefs:r}=t;return s.date(e,r)}}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),a.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?a.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return a.date(1*e);if("unix"===t)return a.date(1e3*e);if("string"==typeof r)return null}return a.date(e)},a.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},390:(e,t,r)=>{const n=r(375),i=r(7824);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length===n?e:t.error("function.arity",{n:n})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>
8/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length>=n?e:t.error("function.minArity",{n:n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let{n:n}=r;return e.length<=n?e:t.error("function.maxArity",{n:n})}}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(e,t,r)=>{const n=r(978),i=r(375),o=r(8571),s=r(3652),a=r(8068),l=r(8160),c=r(3292),u=r(6354),h=r(6133),d=r(3328),f={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=a.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let{schema:r,error:n,state:i,prefs:o}=t;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=f.clone(e,o);const s=[];if(r.$_terms.renames&&!f.rename(r,e,i,o,s))return{value:e,errors:s};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:s};const a=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...i.ancestors];for(const n of r.$_terms.keys){const r=n.key,l=e[r];a.delete(r);const c=i.localize([...i.path,r],t,n),u=n.schema.$_validate(l,c,o);if(u.errors){if(o.abortEarly)return{value:e,errors:u.errors};void 0!==u.value&&(e[r]=u.value),s.push(...u.errors)}else"strip"===n.schema._flags.result||void 0===u.value&&void 0!==l?delete e[r]:void 0!==u.value&&(e[r]=u.value)}}if(a.size||r._flags._hasPatternMatch){const t=f.unknown(r,e,a,s,i,o);if(t)return t}if(r.$_terms.dependencies)for(const l of r.$_terms.dependencies){if(null!==l.key&&!1===f.isPresent(l.options)(l.key.resolve(e,i,o,null,{shadow:!1})))continue;const t=f.dependencies[l.rel](r,l,e,i,o);if(t){const n=r.$_createError(t.code,e,t.context,i,o);if(o.abortEarly)return{value:e,errors:n};s.push(n)}}return{value:e,errors:s}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"and"),f.dependency(this,"and",null,t)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){d.isTemplate(e)||(e=c.ref(e)),i(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const n=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return n.$_mutateRegister(e),n.$_mutateRegister(t),n},validate(e,t,r){let{error:n,prefs:i,state:o}=t,{subject:s,schema:a,message:l}=r;const c=s.resolve(e,o,i),u=h.isRef(s)?s.absolute(o):[];return a.$_match(c,o.localize(u,[e,...o.ancestors],a),i)?e:n("object.assert",{subject:s,message:l})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return i("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate(e,t,r){let{constructor:n,name:i}=r;return e instanceof n?e:t.error("object.instance",{type:i,value:e})},args:["constructor","name"]},keys:{method(e){i(void 0===e||"object"==typeof e,"Object schema must be a valid object"),i(!l.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new f.Keys;for(const r in e)l.tryWithPath(()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])}),r)}else t.$_terms.keys=new f.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let{limit:i}=r,{name:o,operator:s,args:a}=n;return l.compare(Object.keys(e).length,i,s)?e:t.error("object."+o,{limit:a.limit,value:e})},args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];
8return l.verifyFlat(t,"nand"),f.dependency(this,"nand",null,t)}},or:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"or"),f.dependency(this,"or",null,t)}},oxor:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.dependency(this,"oxor",null,t)}},pattern:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),n&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const s={[n?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),o.$_mutateRegister(s.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),o.$_terms.patterns.push(s),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>h.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof d,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const n of o.$_terms.renames)i(n.from!==e,"Cannot rename the same key multiple times");return t instanceof d&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:n(f.renameDefaults,r)}),o}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let{type:n}=r;return!l.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"xor"),f.dependency(this,"xor",null,t)}}},overrides:{default(e,t){return void 0===e&&(e=l.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new s.Sorter;for(const r of e.$_terms.keys)l.tryWithPath(()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key}),r.key);e.$_terms.keys=new f.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:n=null,peers:i,options:o}of t.dependencies)e=f.dependency(e,r,n,i,o);if(t.patterns)for(const{regex:r,schema:n,rule:i,fallthrough:o,matches:s}of t.patterns)e=e.pattern(r||n,i,{fallthrough:o,matches:s});if(t.renames)for(const{from:r,to:n,options:i}of t.renames)e=e.rename(r,n,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),f.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)};return r.prototype=o(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r}
vendor: 4,705 bytes, line 8
8,f.dependency=function(e,t,r,n,o){i(null===r||"string"==typeof r,t,"key must be a strings"),o||(o=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),l.assertOptions(o,["separator","isPresent"]),n=[].concat(n);const s=l.default(o.separator,"."),a=[];for(const l of n)i("string"==typeof l,t,"peers must be strings"),a.push(c.ref(l,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:s,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new f.Dependency(t,r,a,n,o)),u},f.dependencies={and(e,t,r,n,i){const o=[],s=[],a=t.peers.length,l=f.isPresent(t.options);for(const c of t.peers)!1===l(c.resolve(r,n,i,null,{shadow:!1}))?o.push(c.key):s.push(c.key);if(o.length!==a&&s.length!==a)return{code:"object.and",context:{present:s,presentWithLabels:f.keysToLabels(e,s),missing:o,missingWithLabels:f.keysToLabels(e,o)}}},nand(e,t,r,n,i){const o=[],s=f.isPresent(t.options);for(const c of t.peers)s(c.resolve(r,n,i,null,{shadow:!1}))&&o.push(c.key);if(o.length!==t.peers.length)return;const a=t.paths[0],l=t.paths.slice(1);return{code:"object.nand",context:{main:a,mainWithLabel:f.keysToLabels(e,a),peers:l,peersWithLabels:f.keysToLabels(e,l)}}},or(e,t,r,n,i){const o=f.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,n,i,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,i){const o=[],s=f.isPresent(t.options);for(const l of t.peers)s(l.resolve(r,n,i,null,{shadow:!1}))&&o.push(l.key);if(!o.length||1===o.length)return;const a={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return a.present=o,a.presentWithLabels=f.keysToLabels(e,o),{code:"object.oxor",context:a}},with(e,t,r,n,i){const o=f.isPresent(t.options);for(const s of t.peers)if(!1===o(s.resolve(r,n,i,null,{shadow:!1})))return{code:"object.with",context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:f.keysToLabels(e,s.key)}}},without(e,t,r,n,i){const o=f.isPresent(t.options);for(const s of t.peers)if(o(s.resolve(r,n,i,null,{shadow:!1})))return{code:"object.without",context:{main:t.key.key,mainWithLabel:f.keysToLabels(e,t.key.key),peer:s.key,peerWithLabel:f.keysToLabels(e,s.key)}}},xor(e,t,r,n,i){const o=[],s=f.isPresent(t.options);for(const l of t.peers)s(l.resolve(r,n,i,null,{shadow:!1}))&&o.push(l.key);if(1===o.length)return;const a={peers:t.paths,peersWithLabels:f.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:a}:(a.present=o,a.presentWithLabels=f.keysToLabels(e,o),{code:"object.xor",context:a})}},f.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},f.isPresent=function(e){return"function"==typeof e.isPresent?e.isPresent:e=>void 0!==e},f.rename=function(e,t,r,n,i){const o={};for(const s of e.$_terms.renames){const a=[],l="string"!=typeof s.from;if(l)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&a.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||a.push(s);for(const c of a){const a=c.from;let u=c.to;if(u instanceof d&&(u=u.render(t,r,n,c.match)),a!==u){if(!s.options.multiple&&o[u]&&(i.push(e.$_createError("object.rename.multiple",t,{from:a,to:u,pattern:l},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!s.options.override&&!o[u]&&(i.push(e.$_createError("object.rename.override",t,{from:a,to:u,pattern:l},r,n)),n.abortEarly))return!1;void 0===t[a]?delete t[u]:t[u]=t[a],o[u]=!0,s.options.alias||delete t[a]}}}return!0},f.unknown=function(e,t,r,n,i,o){if(e.$_terms.patterns){let s=!1;const a=e.$_terms.patterns.map(e=>{if(e.matches)return s=!0,[]}),l=[t,...i.ancestors];for(const c of r){const s=t[c],u=[...i.path,c];for(let h=0;h<e.$_terms.patterns.length;++h){const d=e.$_terms.patterns[h];if(d.regex){const e=d.regex.test(c);if(i.mainstay.tracer.debug(i,"rule",`pattern.${h}`,e?"pass":"error"),!e)continue}else if(!d.schema.$_match(c,i.nest(d.schema,`pattern.${h}`),o))continue;r.delete(c);const f=i.localize(u,l,{schema:d.rule,key:c}),p=d.rule.$_validate(s,f,o);if(p.errors){if(o.abortEarly)return{value:t,errors:p.errors};n.push(...p.errors)}if(d.matches&&a[h].push(c),t[c]=p.value,!d.fallthrough)break}}if(s)for(let r=0;r<a.length;++r){const s=a[r];if(!s)continue;const c=e.$_terms.patterns[r].matches,h=i.localize(i.path,l,c),d=c.$_validate(s,h,o);if(d.errors){const r=u.details(d.errors,{override:!1});r.matches=s;const a=e.$_createError("object.pattern.match",t,r,i,o);if(o.abortEarly)return{value:t,errors:a};n.push(a)}}}
8if(r.size&&(e.$_terms.keys||e.$_terms.patterns)){if(o.stripUnknown&&!e._flags.unknown||o.skipFunctions){const e=!(!o.stripUnknown||!0!==o.stripUnknown&&!o.stripUnknown.objects);for(const n of r)e?(delete t[n],r.delete(n)):"function"==typeof t[n]&&r.delete(n)}if(!l.default(e._flags.unknown,o.allowUnknown))for(const s of r){const r=i.localize([...i.path,s],[]),a=e.$_createError("object.unknown",t[s],{child:s},r,o,{flags:!1});if(o.abortEarly)return{value:t,errors:a};n.push(a)}}},f.Dependency=class{constructor(e,t,r,n,i){this.rel=e,this.key=t,this.peers=r,this.paths=n,this.options=i}describe(){const e={rel:this.rel,peers:this.paths};return null!==this.key&&(e.key=this.key.key),"."!==this.peers[0].separator&&(e.options={...e.options,separator:this.peers[0].separator}),this.options.isPresent&&(e.options={...e.options,isPresent:this.options.isPresent}),e}},f.Keys=class extends Array{concat(e){const t=this.slice(),r=new Map;for(let n=0;n<t.length;++n)r.set(t[n].key,n);for(const n of e){const e=n.key,i=r.get(e);void 0!==i?t[i]={key:e,schema:t[i].schema.concat(n.schema)}:t.push(n)}return t}}},8785:(e,t,r)=>{const n=r(375),i=r(8068),o=r(8160),s=r(3292),a=r(6354),l={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let{schema:r,state:i,prefs:o}=t;n(r.$_terms.link,"Uninitialized link schema");const s=l.generate(r,e,i,o),a=r.$_terms.link[0].ref;return s.$_validate(e,i.nest(s,`link:${a.display}:${s.type}`),o)},generate:(e,t,r,n)=>l.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(o.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,n){let i=r.mainstay.links.get(e);if(i)return i._generate(t,r,n).schema;const o=e.$_terms.link[0].ref,{perspective:s,path:a}=l.perspective(o,r);l.assert(s,"which is outside of schema boundaries",o,e,r,n);try{i=a.length?s.$_reach(a):s}catch(c){l.assert(!1,"to non-existing schema",o,e,r,n)}return l.assert("link"!==i.type,"which is another link",o,e,r,n),e._flags.relative||r.mainstay.links.set(e,i),i._generate(t,r,n).schema},l.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,i,o,s){e||n(!1,`"${a.label(i._flags,o,s)}" contains link reference "${r.display}" ${t}`)}},3832:(e,t,r)=>{const n=r(375),i=r(8068),o=r(8160),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let{schema:r,error:n}=t;if(!e.match(s.numberRx))return;e=e.trim();const i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(s.extractSignificantDigits(e)!==s.extractSignificantDigits(String(i.value)))return i.errors=n("number.unsafe"),i}else{const t=i.value.toString();if(t.match(/e/i))return i;if(t!==s.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}return i}},validate(e,t){let{schema:r,error:n,prefs:i}=t;if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!o.isNumber(e))return{value:e,errors:n("number.base")};const s={value:e};if(i.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);s.value=Math.round(s.value*t)/t}}return 0===s.value&&(s.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(s.errors=n("number.unsafe")),s},rules:{compare:{method:!1,validate(e,t,r,n){let{limit:i}=r,{name:s,operator:a,args:l}=n;return o.compare(e,i,a)?e:t.error("number."+s,{limit:l.limit,value:e})},args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>
8Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate(e,t,r,n){let{base:i}=r;return e*(1/i)%1==0?e:t.error("number.multiple",{multiple:n.args.base,value:e})},args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let{limit:n}=r;const i=e.toString().match(s.precisionRx);return Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let{sign:n}=r;return"negative"===n&&e<0||"positive"===n&&e>0?e:t.error(`number.${n}`)}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.extractSignificantDigits=function(e){return e.replace(s.exponentialPartRegex,"").replace(s.dotRegex,"").replace(s.trailingZerosRegex,"").replace(s.leadingSignAndZerosRegex,"")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},8966:(e,t,r)=>{const n=r(7824);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},7417:(e,t,r)=>{const n=r(375),i=r(5380),o=r(1745),s=r(9959),a=r(6064),l=r(9926),c=r(5752),u=r(8068),h=r(8160),d={tlds:l instanceof Set&&{tlds:{allow:l,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:s.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=u.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let{schema:r,state:n,prefs:i}=t;const o=r.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const s=r.$_getRule("case");s&&(e="upper"===s.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const a=r.$_getRule("trim");if(a&&a.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const c of r.$_terms.replacements)e=e.replace(c.pattern,c.replacement);const l=r.$_getRule("hex");
8if(l&&l.args.options.byteAligned&&e.length%2!=0&&(e=`0${e}`),r.$_getRule("isoDate")){const t=d.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let o=t.args.limit;if(h.isResolvable(o)&&(o=o.resolve(e,n,i),!h.limit(o)))return{value:e,errors:r.$_createError("any.ref",o,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},n,i)};e=e.slice(0,o)}}return{value:e}}},validate(e,t){let{schema:r,error:n}=t;if("string"!=typeof e)return{value:e,errors:n("string.base")};if(""===e){const t=r.$_getRule("min");if(t&&0===t.args.limit)return;return{value:e,errors:n("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(e,["paddingRequired","urlSafe"]),e={urlSafe:!1,paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),n("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let{options:n}=r;return d.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return n(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let{direction:n}=r;return"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error(`string.${n}case`)},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,i=1;for(;r--;){const t=e.charAt(r)*i;n+=t-9*(t>9),i^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(e,["paddingRequired"]),e={paddingRequired:!0,...e},n("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let{options:n}=r;const i=e.match(d.dataUriRegex);if(i){if(!i[2])return e;if("base64"!==i[2])return e;if(d.base64Regex[n.paddingRequired].false.test(i[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&h.assertOptions(e,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=d.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,n){let{address:o}=n;return i.isValid(e,o)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(e,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),n(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=d.addressOptions(e),r=new RegExp(`\\s*[${e.separator?a(e.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,n){let{options:i}=r,{regex:s,address:a}=n;const l=i.multiple?e.split(s):[e],c=[];for(const u of l)o.isValid(u,a)||c.push(u);return c.length?t.error("string.email",{value:e,invalids:c}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);n(r.length>=1,"version must have at least 1 valid version specified");const i=new Set;for(let e=0;e<r.length;++e){const o=r[e];n("string"==typeof o,"version at position "+e+" must be a string");const s=d.guidVersions[o.toLowerCase()];n(s,"version at position "+e+" must be one of "+Object.keys(d.guidVersions).join(", ")),n(!i.has(s),"version at position "+e+" must not be a duplicate"),t+=s,i.add(s)}}n(d.guidSeparators.has(e.separator),'separator must be one of true, false, "-", or ":"');const r=void 0===e.separator?"[:-]?":!0===e.separator?"[:-]":!1===e.separator?"[]?":`\\${e.separator}`,i=new RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${r})[0-9A-F]{4}\\2?[${t||"0-9A-F"}][0-9A-F]{3}\\2?[${t?"89AB":"0-9A-F"}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,"i");return this.$_addRule({name:"guid",args:{options:e},regex:i})},validate(e,t,r,n){let{regex:i}=n;const o=i.exec(e);return o?d.guidBrackets[o[1]]!==o[o.length-1]?t.error("string.guid"):e:t.error("string.guid")}},hex:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.assertOptions(e,["byteAligned"]),e={byteAligned:!1,...e},n("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let{options:n}=r;return d.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>
8i.isValid(e,{minDomainSegments:1})||d.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:n}=s.regex(e),i=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:n})},validate(e,t,r,n){let{options:i}=r,{regex:o}=n;return o.test(e)?e:i.version?t.error("string.ipVersion",{value:e,cidr:i.cidr,version:i.version}):t.error("string.ip",{value:e,cidr:i.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let{error:r}=t;return d.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>d.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return d.length(this,"length",e,"=",t)},validate(e,t,r,n){let{limit:i,encoding:o}=r,{name:s,operator:a,args:l}=n;const c=!o&&e.length;return h.compare(c,i,a)?e:t.error("string."+s,{limit:l.limit,value:e,encoding:o})},args:[{name:"limit",ref:!0,assert:h.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return d.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return d.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return n(d.normalizationForms.includes(e),"normalization form must be one of "+d.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let{error:n}=t,{form:i}=r;return e===e.normalize(i)?e:n("string.normalize",{value:e,form:i})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(e instanceof RegExp,"regex must be a RegExp"),n(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),h.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,n){let{regex:i,options:o}=r,{errorCode:s}=n;return i.test(e)^o.invert?e:t.error(s,{name:o.name,regex:i,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(a(e),"g")),n(e instanceof RegExp,"pattern must be a RegExp"),n("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate(e,t,r){let{enabled:n}=r;return n&&e!==e.trim()?t.error("string.trim"):e},convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&h.assertOptions(e.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=c.regex(e),n=e.domain?d.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,r,n){let{options:o}=r,{regex:s,domain:a,scheme:l}=n;if(["http:/","https:/"].includes(e))return t.error("string.uri");const c=s.exec(e);if(c){const r=c[1]||c[2];return!a||o.allowRelative&&!r||i.isValid(r,a)?e:t.error("string.domain",{value:r})}return o.relativeOnly?t.error("string.uriRelativeOnly"):o.scheme?t.error("string.uriCustomScheme",{scheme:l,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}}
8 must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),d.addressOptions=function(e){if(!e)return e;if(n(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),n(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return n(d.tlds,"Built-in TLD list disabled"),Object.assign({},e,d.tlds);n("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),n(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),n(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),d.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(n(d.tlds,"Built-in TLD list disabled"),Object.assign({},e,d.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),n(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),d.validateTlds(e.tlds.allow,"tlds.allow"),e):e},d.validateTlds=function(e,t){for(const r of e)n(i.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),`${t} must contain valid top level domain names`)},d.isoDate=function(e){if(!h.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},d.length=function(e,t,r,i,o){return n(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:i})}},8826:(e,t,r)=>{const n=r(375),i=r(8068),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let{schema:r,error:n}=t;const i=r.$_terms.map.get(e);return i&&(e=i),r._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let{error:r}=t;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const i of e){n(i&&i[Symbol.iterator],"Entry must be an iterable");const[e,o]=i;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),r.push(o)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(e,t,r)=>{const n=r(375),i=r(8571),o=r(738),s=r(9621),a=r(8160),l=r(6354),c=r(493),u={result:Symbol("result")};t.entry=function(e,t,r){let i=a.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),i=a.preferences(a.defaults,r));const o=u.entry(e,t,i);n(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:o.value};return o.error&&(s.error=o.error),o.mainstay.warnings.length&&(s.warning=l.details(o.mainstay.warnings)
vendor: 10,692 bytes, line 8
8),o.mainstay.debug&&(s.debug=o.mainstay.debug),o.mainstay.artifacts&&(s.artifacts=o.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let n=a.defaults;r&&(n=a.preferences(a.defaults,r));const i=u.entry(e,t,n),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let t=i.value;const c=[];for(const i of o.externals){const d=i.state.path,f="link"===i.schema.type?o.links.get(i.schema):null;let p,m,g=t;const b=d.length?[t]:[],y=d.length?s(e,d):e;if(d.length){p=d[d.length-1];let e=t;for(const t of d.slice(0,-1))e=e[t],b.unshift(e);m=b[0],g=m[p]}try{const e=(e,t)=>(f||i.schema).$_createError(e,g,t,i.state,n),s=await i.method(g,{schema:i.schema,linked:f,state:i.state,prefs:r,original:y,error:e,errorsArray:u.errorsArray,warn:(e,t)=>o.warnings.push((f||i.schema).$_createError(e,g,t,i.state,n)),message:(e,t)=>(f||i.schema).$_createError("external",g,t,i.state,n,{messages:e})});if(void 0===s||s===g)continue;if(s instanceof l.Report){if(o.tracer.log(i.schema,i.state,"rule","external","error"),c.push(s),n.abortEarly)break;continue}if(Array.isArray(s)&&s[a.symbols.errors]){if(o.tracer.log(i.schema,i.state,"rule","external","error"),c.push(...s),n.abortEarly)break;continue}m?(o.tracer.value(i.state,"rule",g,s,"external"),m[p]=s):(o.tracer.value(i.state,"rule",t,s,"external"),t=s)}catch(h){throw n.errors.label&&(h.message+=` (${i.label})`),h}}if(i.value=t,c.length)throw i.error=l.process(c,e,n),o.debug&&(i.error.debug=o.debug),i.error}if(!n.warnings&&!n.debug&&!n.artifacts)return i.value;const c={value:i.value};return o.warnings.length&&(c.warning=l.details(o.warnings)),o.debug&&(c.debug=o.debug),o.artifacts&&(c.artifacts=o.artifacts),c},u.Mainstay=class{constructor(e,t,r){this.externals=[],this.warnings=[],this.tracer=e,this.debug=t,this.links=r,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const e=this._snapshots.pop();this.externals=e.externals,this.warnings=e.warnings}},u.entry=function(e,r,n){const{tracer:i,cleanup:o}=u.tracer(r,n),s=n.debug?[]:null,a=r._ids._schemaChain?new Map:null,h=new u.Mainstay(i,s,a),d=r._ids._schemaChain?[{schema:r}]:null,f=new c([],[],{mainstay:h,schemas:d}),p=t.validate(e,r,f,n);o&&r.$_root.untrace();const m=l.process(p.errors,e,n);return{value:p.value,error:m,mainstay:h}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=u.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const o=(i,o,s)=>t.$_createError(i,e,o,s||r,n),s={original:e,prefs:n,schema:t,state:r,error:o,errorsArray:u.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(o(e,t,n)),message:(i,o)=>t.$_createError("custom",e,o,r,n,{messages:i})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&n.convert){const t=l.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(l.coerce&&void 0!==e&&n.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),s);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),a.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const h=i.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===h)return u.finalize(e,null,s);if("required"===h)return u.finalize(e,[t.$_createError("any.required",e,null,r,n)],s);if("optional"===h){if(t._flags.default!==a.symbols.deepDefault)return u.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===h)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],s);const d=[];if(t._valids){const i=t._valids.get(e,r,n,t._flags.insensitive);if(i)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,i.value),e=i.value),r.mainstay.tracer.filter(t,r,"valid",i),u.finalize(e,null,s);if(t._flags.only){const i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return u.finalize(e,[i],s);d.push(i)}}if(t._invalids){const i=t._invalids.get(e,r,n,t._flags.insensitive);if(i){r.mainstay.tracer.filter(t,r,"invalid",i);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return u.finalize(e,[o],s);d.push(o)}}if(l.validate){const t=l.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return d.push(t.errors),u.finalize(e,d,s);if(t.errors.length)return d.push(...t.errors),u.finalize(e,d,s)}}return t._rules.length?u.rules(e,d,s):u.finalize(e,d,s)},u.rules=function(e,t,r){const{schema:n,state:i,prefs:o}=r;for(const s of n._rules){const l=n._definition.rules[s.method];if(l.convert&&o.convert){i.mainstay.tracer.log(n,i,"rule",s.name,"full");continue}let c,h=s.args;if(s._resolve.length){h=Object.assign({},h);for(const t of s._resolve){const r=l.argsByName.get(t),s=h[t].resolve(e,i,o),u=r.normalize?r.normalize(s):s,d=a.validateArg(u,null,r);if(d){c=n.$_createError("any.ref",s,{arg:t,ref:h[t],reason:d},i,o);break}h[t]=u}}c=c||l.validate(e,r,h,s);const d=u.rule(c,s);if(d.errors){if(i.mainstay.tracer.log(n,i,"rule",s.name,"error"),s.warn){i.mainstay.warnings.push(...d.errors);continue}if(o.abortEarly)return u.finalize(e,d.errors,r);t.push(...d.errors)}else i.mainstay.tracer.log(n,i,"rule",s.name,"pass"),i.mainstay.tracer.value(i,"rule",e,d.value,s.name),e=d.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[a.symbols.errors]?(e.forEach(e=>u.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const{schema:i,state:o,prefs:s}=r;if(t.length){const n=u.default("failover",void 0,t,r);void 0!==n&&(o.mainstay.tracer.value(o,"failover",e,n),e=n,t=[])}if(t.length&&i._flags.error)if("function"==typeof i._flags.error){t=i._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[i._flags.error];if(void 0===e){const n=u.default("default",e,t,r);o.mainstay.tracer.value(o,"default",e,n),e=n}if(i._flags.cast&&void 0!==e){const t=i._definition.cast[i._flags.cast];if(t.from(e)){const n=t.to(e,r);o.mainstay.tracer.value(o,"cast",e,n,i._flags.cast),e=n}}if(i.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:n}of i.$_terms.externals)o.mainstay.externals.push({method:n,schema:i,state:o,label:l.label(i._flags,o,s)});const a={value:e,errors:t.length?t:null};return i._flags.result&&(a.value="strip"===i._flags.result?void 0:r.original,o.mainstay.tracer.value(o,i._flags.result,e,a.value),o.shadow(e,i._flags.result)),i._cache&&!1!==s.cache&&!i._refs.length&&i._cache.set(r.original,a),void 0===e||a.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),a},u.prefs=function(e,t){const r=t===a.defaults;return r&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),r&&(e._preferences[a.symbols.prefs]=t),t)},u.default=function(e,t,r,n){const{schema:o,state:s,prefs:l}=n,c=o._flags[e];if(l.noDefaults||void 0===c)return t;if(s.mainstay.tracer.log(o,s,"rule",e,"full"),!c)return c;if("function"==typeof c){const t=c.length?[i(s.ancestors[0]),n]:[];try{return c(...t)}catch(u){return void r.push(o.$_createError(`any.${e}`,null,{error:u},s,l))}}return"object"!=typeof c?c:c[a.symbols.literal]?c.literal:a.isResolvable(c)?c.resolve(t,s,l):i(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[a.symbols.errors]=!0,e}},2036:(e,t,r)=>{const n=r(375),i=r(9474),o=r(8160),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const n of[...r._values,...r._refs])e.remove(n);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const o of this._values)if(i(o,e))return{value:o};if(t)for(const o of this._refs){const s=o.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const a=o.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of a)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[o.symbols.values]=!0,s.Values.prototype.slice=s.
8Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},978:(e,t,r)=>{const n=r(375),i=r(8571),o=r(1687),s=r(9621),a={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return a.applyToDefaultsWithShallow(e,t,r);const s=i(e);if(!0===t)return s;const l=void 0!==r.nullOverride&&r.nullOverride;return o(s,t,{nullOverride:l,mergeArrays:!1})},a.applyToDefaultsWithShallow=function(e,t,r){const l=r.shallow;n(Array.isArray(l),"Invalid keys");const c=new Map,u=!0===t?null:new Set;for(let n of l){n=Array.isArray(n)?n:n.split(".");const r=s(e,n);r&&"object"==typeof r?c.set(r,u&&s(t,n)||r):u&&u.add(n)}const h=i(e,{},c);if(!u)return h;for(const n of u)a.reachCopy(h,t,n);const d=void 0!==r.nullOverride&&r.nullOverride;return o(h,t,{nullOverride:d,mergeArrays:!1})},a.reachCopy=function(e,t,r){for(const o of r){if(!(o in t))return;const e=t[o];if("object"!=typeof e||null===e)return;t=e}const n=t;let i=e;for(let o=0;o<r.length-1;++o){const e=r[o];"object"!=typeof i[e]&&(i[e]={}),i=i[e]}i[r[r.length-1]]=n}},375:(e,t,r)=>{const n=r(7916);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(1===r.length&&r[0]instanceof Error)throw r[0];throw new n(r)}}},8571:(e,t,r)=>{const n=r(9621),i=r(4277),o=r(7043),s={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=s.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let n=s.clone,a=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);n=e=>e}else if(a){const t=a.get(e);if(t)return t}else a=new Map;const l=i.getInternalProto(e);if(l===i.buffer)return!1;if(l===i.date)return new Date(e.getTime());if(l===i.regex)return new RegExp(e);const c=s.base(e,l,t);if(c===e)return e;if(a&&a.set(e,c),l===i.set)for(const i of e)c.add(n(i,t,a));else if(l===i.map)for(const[i,o]of e)c.set(i,n(o,t,a));const u=o.keys(e,t);for(const o of u){if("__proto__"===o)continue;if(l===i.array&&"length"===o){c.length=e.length;continue}const r=Object.getOwnPropertyDescriptor(e,o);r?r.get||r.set?Object.defineProperty(c,o,r):r.enumerable?c[o]=n(e[o],t,a):Object.defineProperty(c,o,{enumerable:!1,writable:!0,configurable:!0,value:n(e[o],t,a)}):Object.defineProperty(c,o,{enumerable:!0,writable:!0,configurable:!0,value:n(e[o],t,a)})}return c},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const o of r){const t=n(e,o);"object"!=typeof t&&"function"!=typeof t||i.set(t,t)}return s.clone(e,t,i)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===i.array){const e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(s.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},9474:(e,t,r)=>{const n=r(4277),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,o){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const a=i.getSharedType(e,t,!!r.prototype);switch(a){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let n=o.length-1;n>=0;--n)if(o[n].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(a,e,t,r,o)}finally{o.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:n.getInternalProto(e);const o=n.getInternalProto(e);return o!==n.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(r){return r}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},i.isDeepEqualObj=function(e,t,r,o,s){const{isDeepEqual:a,valueOf
8:l,hasOwnEnumerableProperty:c}=i,{keys:u,getOwnPropertySymbols:h}=Object;if(e===n.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!a(t[e],r[e],o,s))return!1;return!0}for(const e of t)for(const t of r)if(a(e,t,o,s))return!0}else if(e===n.set){if(t.size!==r.size)return!1;if(!i.isSetSimpleEqual(t,r)){const e=new Set(Set.prototype.values.call(r));for(const r of Set.prototype.values.call(t)){if(e.delete(r))continue;let t=!1;for(const n of e)if(a(r,n,o,s)){e.delete(n),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==r.size)return!1;for(const[e,n]of Map.prototype.entries.call(t)){if(void 0===n&&!Map.prototype.has.call(r,e))return!1;if(!a(n,Map.prototype.get.call(r,e),o,s))return!1}}else if(e===n.error&&(t.name!==r.name||t.message!==r.message))return!1;const d=l(t),f=l(r);if((t!==d||r!==f)&&!a(d,f,o,s))return!1;const p=u(t);if(!o.part&&p.length!==u(r).length&&!o.skip)return!1;let m=0;for(const n of p)if(o.skip&&o.skip.includes(n))void 0===r[n]&&++m;else{if(!c(r,n))return!1;if(!a(t[n],r[n],o,s))return!1}if(!o.part&&p.length-m!==u(r).length)return!1;if(!1!==o.symbols){const e=h(t),n=new Set(h(r));for(const i of e){if(!o.skip||!o.skip.includes(i))if(c(t,i)){if(!c(r,i))return!1;if(!a(t[i],r[i],o,s))return!1}else if(c(r,i))return!1;n.delete(i)}for(const t of n)if(c(r,t))return!1}return!0},i.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},7916:(e,t,r)=>{const n=r(8761);e.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:n(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},5277:e=>{const t={};e.exports=function(e){if(!e)return"";let r="";for(let n=0;n<e.length;++n){const i=e.charCodeAt(n);t.isSafe(i)?r+=e[n]:r+=t.escapeHtmlChar(i)}return r},t.escapeHtmlChar=function(e){return t.namedHtml.get(e)||(e>=256?"&#"+e+";":`&#x${e.toString(16).padStart(2,"0")};`)},t.isSafe=function(e){return t.safeCharCodes.has(e)},t.namedHtml=new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[34,"&quot;"],[160,"&nbsp;"],[162,"&cent;"],[163,"&pound;"],[164,"&curren;"],[169,"&copy;"],[174,"&reg;"]]),t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}()},6064:e=>{e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:e=>{e.exports=function(){}},1687:(e,t,r)=>{const n=r(375),i=r(8571),o=r(7043),s={};e.exports=s.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(i(t[n],{symbols:r.symbols}));return e}const a=o.keys(t,r);for(let n=0;n<a.length;++n){const o=a[n];if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(t,o))continue;const l=t[o];if(l&&"object"==typeof l){if(e[o]===l)continue;!e[o]||"object"!=typeof e[o]||Array.isArray(e[o])!==Array.isArray(l)||l instanceof Date||l instanceof RegExp?e[o]=i(l,{symbols:r.symbols}):s.merge(e[o],l,r)}else(null!=l||r.nullOverride)&&(e[o]=l)}return e}},9621:(e,t,r)=>{const n=r(375),i={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const o=Array.isArray(t);n(!o||!r.separator,"Separator option is not valid for array-based chain");const s=o?t:t.split(r.separator||".");let a=e;for(let l=0;l<s.length;++l){let e=s[l];const o=r.iterables&&i.iterables(a);if(Array.isArray(a)||"set"===o){const t=Number(e);Number.isInteger(t)&&(e=t<0?a.length+t:t)}if(!a||"function"==typeof a&&!1===r.functions||!o&&void 0===a[e]){n(!r.strict||l+1===s.length,"Missing segment",e,"in reach path ",t),n("object"==typeof a||!0===r.functions||"function"!=typeof a,"Invalid segment",e,"in reach path ",t),a=r.default;break}a=o?"set"===o?[...a][e]:a.get(e):a[e]}return a},i.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0}},8761:e=>{e.exports=function(){try{return JSON.stringify(...arguments)}catch(e){return"[Cannot display object: "+e.message+"]"}}},4277:(e,t)=>{const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},7043:(e,t)=>
vendor: 2,219 bytes, line 8
8{t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},3652:(e,t,r)=>{const n=r(375),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",s=t.sort||0;n(!r.includes(o),`Item cannot come before itself: ${o}`),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!i.includes(o),`Item cannot come after itself: ${o}`),n(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const n of e){const e={seq:this._items.length,sort:s,before:r,after:i,group:o,node:n};this._items.push(e)}if(!t.manual){const e=this._sort();n(e,"item","?"!==o?`added into group ${o}`:"","created a dependencies error")}return this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const r of e)if(r)for(const e of r._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let r=0;r<this._items.length;++r)this._items[r].seq=r;const t=this._sort();return n(t,"merge created a dependencies error"),this.nodes}sort(){const e=this._sort();return n(e,"sort created a dependencies error"),this.nodes}_sort(){const e={},t=Object.create(null),r=Object.create(null);for(const a of this._items){const n=a.seq,i=a.group;r[i]=r[i]||[],r[i].push(n),e[n]=a.before;for(const e of a.after)t[e]=t[e]||[],t[e].push(n)}for(const a in e){const t=[];for(const n in e[a]){const i=e[a][n];r[i]=r[i]||[],t.push(...r[i])}e[a]=t}for(const a in t)if(r[a])for(const n of r[a])e[n].push(...t[a]);const n={};for(const a in e){const t=e[a];for(const e of t)n[e]=n[e]||[],n[e].push(a)}const i={},o=[];for(let a=0;a<this._items.length;++a){let e=a;if(n[a]){e=null;for(let t=0;t<this._items.length;++t){if(!0===i[t])continue;n[t]||(n[t]=[]);const r=n[t].length;let o=0;for(let e=0;e<r;++e)i[n[t][e]]&&++o;if(o===r){e=t;break}}}null!==e&&(i[e]=!0,o.push(e))}if(o.length!==this._items.length)return!1;const s={};for(const a of this._items)s[a.seq]=a;this._items=[],this.nodes=[];for(const a of o){const e=s[a];this.nodes.push(e.node),this._items.push(e)}return!0}},i.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}
8,5380:(e,t,r)=>{const n=r(443),i=r(2178),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e),t.allowFullyQualified&&"."===e[e.length-1]&&(e=e.slice(0,-1));const r=t.minDomainSegments||o.minDomainSegments,n=e.split(".");if(n.length<r)return i.code("DOMAIN_SEGMENTS_COUNT");if(t.maxDomainSegments&&n.length>t.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=n[n.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let a=0;a<n.length;++a){const e=n[a];if(!e.length)return i.code("DOMAIN_EMPTY_SEGMENT");if(e.length>63)return i.code("DOMAIN_LONG_SEGMENT");if(a<n.length-1){if(!o.domainSegmentRx.test(e))return i.code("DOMAIN_INVALID_CHARS")}else if(!o.tldSegmentRx.test(e))return i.code("DOMAIN_INVALID_TLDS_CHARS")}return null},t.isValid=function(e,r){return!t.analyze(e,r)},o.punycode=function(e){e.includes("%")&&(e=e.replace(/%/g,"%25"));try{return new o.URL(`http://${e}`).host}catch(t){return e}}},1745:(e,t,r)=>{const n=r(9848),i=r(5380),o=r(2178),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const n=e.split("@");if(2!==n.length)return n.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[a,l]=n;if(!a)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(s.encoder.encode(a).length>64)return o.code("LOCAL_TOO_LONG")}return s.local(a,r)||i.analyze(l,t)},s.local=function(e,t){const r=e.split(".");for(const n of r){if(!n.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(n))return o.code("INVALID_LOCAL_CHARS")}else for(const e of n){if(s.atextRx.test(e))continue;const t=s.binary(e);if(!s.atomRx.test(t))return o.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map(e=>String.fromCharCode(e)).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(e,t)=>{t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ 
8character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},9959:(e,t,r)=>{const n=r(375),i=r(5752);t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let i=0;i<r.length;++i)n("string"==typeof r[i],"options.version must only contain strings"),r[i]=r[i].toLowerCase(),n(["ipv4","ipv6","ipvfuture"].includes(r[i]),"options.version contains unknown version "+r[i]+" - must be one of ipv4, ipv6, ipvfuture");r=Array.from(new Set(r));const o=`(?:${r.map(e=>{if("forbidden"===t)return i.ip[e];const r=`\\/${"ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr}`;return"required"===t?`${i.ip[e]}${r}`:`${i.ip[e]}(?:${r})?`}).join("|")})`,s=new RegExp(`^${o}$`);return{cidr:t,versions:r,regex:s,raw:o}}},5752:(e,t,r)=>{const n=r(375),i=r(6064),o={generate:function(){const e={},t="\\dA-Fa-f",r="["+t+"]",n="\\w-\\.~",i="!\\$&'\\(\\)\\*\\+,;=",o="%"+t,s=n+o+i+":@",a="["+s+"]",l="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+l+"\\.){3}"+l;const c=r+"{1,4}",u="(?:"+c+":"+c+"|"+e.ipv4address+")",h="(?:"+c+":){6}"+u,d="::(?:"+c+":){5}"+u,f="(?:"+c+")?::(?:"+c+":){4}"+u,p="(?:(?:"+c+":){0,1}"+c+")?::(?:"+c+":){3}"+u,m="(?:(?:"+c+":){0,2}"+c+")?::(?:"+c+":){2}"+u,g="(?:(?:"+c+":){0,3}"+c+")?::"+c+":"+u,b="(?:(?:"+c+":){0,4}"+c+")?::"+u,y="(?:(?:"+c+":){0,5}"+c+")?::"+c,v="(?:(?:"+c+":){0,6}"+c+")?::";e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+h+"|"+d+"|"+f+"|"+p+"|"+m+"|"+g+"|"+b+"|"+y+"|"+v+")",e.ipvFuture="v"+r+"+\\.["+n+i+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const w="["+n+o+i+":]*",_="["+n+o+i+"]{1,255}",E="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|"+_+")",A="(?:"+w+"@)?"+E+"(?::\\d*)?",x="(?:"+w+"@)?("+E+")(?::\\d*)?",k=a+"*",C=a+"+",P="(?:\\/"+k+")*",I="\\/(?:"+C+P+")?",S=C+P,O="["+n+o+i+"@]+"+P,M="(?:\\/\\/\\/"+k+P+")";return e.hierPart="(?:(?:\\/\\/"+A+P+")|"+I+"|"+S+"|"+M+")",e.hierPartCapture="(?:(?:\\/\\/"+x+P+")|"+I+"|"+S+")",e.relativeRef="(?:(?:\\/\\/"+A+P+")|"+I+"|"+O+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+x+P+")|"+I+"|"+O+"|)",e.query="["+s+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+s+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+s+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(s+r);let a="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.sc
8heme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e<r.length;++e){const s=r[e];n(s instanceof RegExp||"string"==typeof s,"scheme at position "+e+" must be a RegExp or String"),s instanceof RegExp?o.push(s.source.toString()):(n(t.schemeRegex.test(s),"scheme at position "+e+" must be a valid scheme"),o.push(i(s)))}a=o.join("|")}const l="(?:"+(a?"(?:"+a+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",c=e.allowRelative?"(?:"+l+"|"+s+")":l;return o.wrap(c+r,a)},o.wrap=function(e,t){return{raw:e=`(?=.)(?!https?:/(?:$|[^/]))(?!https?:///)(?!https?:[^/])${e}`,regex:new RegExp(`^${e}$`),scheme:t}},o.uriRegex=o.createRegex({}),t.regex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},1447:(e,t)=>{const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[r.settings]&&t.constants)for(const r in t.constants){const e=t.constants[r];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error(`Formula constant ${r} contains invalid ${typeof e} value type`)}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,s=!1;const a=e=>{if(o)throw new Error("Formula missing closing parenthesis");const a=n.length?n[n.length-1]:null;if(s||i||e){if(a&&"reference"===a.type&&")"===e)return a.type="function",a.value=this._subFormula(i,a.value),void(i="");if(")"===e){const e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(s){if("]"===s)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))a&&"operator"===a.type&&r.operators.includes(a.value+i)?a.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw new Error(`Formula contains invalid token: ${i}`);n.push({type:"reference",value:i})}i=""}};for(const t of e)s?t===s?(a(),s=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?(--o,o?i+=t:a(t)):i+=t:t in r.literals?s=r.literals[t]:"("===t?(a(),++o):r.operatorCharacters.includes(t)?(a(),i=t,a()):" "!==t?i+=t:a();a(),n=n.map((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"});let l=!1;for(const t of n){if("operator"===t.type){if(r.operatorsPrefix.includes(t.value))continue;if(!l)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(t.value))throw new Error(`Formula contains an unknown operator ${t.value}`)}else if(l)throw new Error("Formula missing expected operator");l=!l}if(!l)throw new Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map(e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error(`Formula contains invalid reference ${e.value}`);return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)})}_subFormula(e,n){const i=this.settings.functions[n];if("function"!=typeof i)throw new Error(`Formula contains unknown function ${n}`);let o=[];if(e){let t="",i=0,s=!1;const a=()=>
8{if(!t)throw new Error(`Formula contains function ${n} with invalid arguments ${e}`);o.push(t),t=""};for(let n=0;n<e.length;++n){const o=e[n];s?(t+=o,o===s&&(s=!1)):o in r.literals&&!i?(t+=o,s=r.literals[o]):","!==o||i?(t+=o,"("===o?++i:")"===o&&--i):a()}a()}return o=o.map(e=>new t.Parser(e,this.settings)),function(e){const t=[];for(const r of o)t.push(r.evaluate(e));return i.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let n=t.length-2;n>=0;--n){const i=t[n];if(i&&"operator"===i.type){const o=t[n+1];t.splice(n+1,1);const s=r.evaluate(o,e);t[n]=r.single(i.value,s)}}return r.operatorsOrder.forEach(n=>{for(let i=1;i<t.length-1;)if(n.includes(t[i])){const n=t[i],o=r.evaluate(t[i-1],e),s=r.evaluate(t[i+1],e);t.splice(i,2);const a=r.calculate(n,o,s);t[i-1]=0===a?0:a}else i+=2}),r.evaluate(t[0],e)}},t.Parser.prototype[r.symbol]=!0,r.reference=function(e){return function(t){return t&&void 0!==t[e]?t[e]:null}},r.evaluate=function(e,t){return null===e?null:"function"==typeof e?e(t):e[r.symbol]?e.evaluate(t):e},r.single=function(e,t){if("!"===e)return!t;const r=-t;return 0===r?0:r},r.calculate=function(e,t,n){if("??"===e)return r.exists(t)?t:n;if("string"==typeof t||"string"==typeof n){if("+"===e)return(t=r.exists(t)?t:"")+(r.exists(n)?n:"")}else switch(e){case"^":return Math.pow(t,n);case"*":return t*n;case"/":return t/n;case"%":return t%n;case"+":return t+n;case"-":return t-n}switch(e){case"<":return t<n;case"<=":return t<=n;case">":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:e=>{e.exports={version:"17.9.1"}}},t={},function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(5107);var e,t},si.exports=ai());const ci=t(li);let ui=class extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.data=e.data}};const hi=(e,t)=>{let r;e.request?r=e.request.bind(e):e.sendAsync&&(r=di(e));return e.request=async({method:e,params:n})=>{const i=e;if(t&&null===t[i])throw new ui({code:4200,message:`The Provider does not support the requested method: ${e}`});if(t&&t[i])return t[i]({baseRequest:r,params:n});if(r)return r({method:e,params:n});throw new ui({code:4200,message:`The Provider does not support the requested method: ${e}`})},e},di=e=>({method:t,params:r})=>new Promise((n,i)=>{e.sendAsync({id:0,jsonrpc:"2.0",method:t,params:r},(e,{result:t})=>{e?i(JSON.parse(e)):n(null==t?null:t)})});const fi=/^tuple(?<array>(\[(\d*)\])*)$/;function pi(e){let t=e.type;if(fi.test(e.type)&&"components"in e){t="(";const r=e.components.length;for(let i=0;i<r;i++){t+=pi(e.components[i]),i<r-1&&(t+=", ")}const n=function(e,t){const r=e.exec(t);return null==r?void 0:r.groups}(fi,e.type);return t+=`)${(null==n?void 0:n.array)??""}`,pi({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function mi(e){let t="";const r=e.length;for(let n=0;n<r;n++){t+=pi(e[n]),n!==r-1&&(t+=", ")}return t}function gi(e,t,r){return n=>{var i,o;return(null==(i=e[t.name])?void 0:i.call(e,n))??(null==(o=e[r])?void 0:o.call(e,n))??t(e,n)}}function bi(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new zi(e.type);return`${e.name}(${yi(e.inputs,{includeName:t})})`}function yi(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${yi(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}function vi(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}function wi(e){return vi(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}class _i extends Error{constructor(e,t={}){var r;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"});const n=t.cause instanceof _i?t.cause.details:(null==(r=t.cause)?void 0:r.message)?t.cause.message:t.details,i=t.cause instanceof _i&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://viem.sh${i}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return Ei(this,e)}}function Ei(e,t){return(null==t?void 0:t(e))?e:e&&"object"==typeof e&&"cause"in e?Ei(e.cause,t):t?null:e}class Ai extends _i{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class xi extends _i{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class ki extends _i{constructor({data:e,params:t,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${yi(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class Ci extends _i{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class Pi extends _i{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLe
8ngthMismatchError"})}}class Ii extends _i{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${wi(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class Si extends _i{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class Oi extends _i{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class Mi extends _i{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class Ti extends _i{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class Ni extends _i{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class Ri extends _i{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class ji extends _i{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class Bi extends _i{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${bi(e.abiItem)}\`, and`,`\`${t.type}\` in \`${bi(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class $i extends _i{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class Li extends _i{constructor({abiItem:e,data:t,params:r,size:n}){super([`Data size of ${n} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${yi(r,{includeName:!0})})`,`Data:   ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=r,this.size=n}}class Fi extends _i{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${bi(e,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class Di extends _i{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class Ui extends _i{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class Hi extends _i{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class zi extends _i{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class qi extends _i{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}class Gi extends _i{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class Wi extends _i{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class Vi extends _i{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}function Zi(e,{dir:t,size:r=32}={}){return"string"==typeof e?Ki(e,{dir:t,size:r}):Ji(e,{dir:t,size:r})}function Ki(e,{dir:t,size:r=32}={}){if(null===r)return e;const n=e.replace("0x","");if(n.length>2*r)throw new Wi({size:Math.ceil(n.length/2),targetSize:r,type:"hex"});return`0x${n["right"===t?"padEnd":"padStart"](2*r,"0")}`}function Ji(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new Wi({size:e.length,targetSize:r,type:"bytes"});const n=new Uint8Array(r);for(let i=0;i<r;i++){const o="right"===t;n[o?i:r-i-1]=e[o?i:e.length-i-1]}return n}class Yi extends _i{constructor({max:e,min:t,signed:r,size:n,value:i}
8){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class Qi extends _i{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}class Xi extends _i{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class eo extends _i{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function to(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let i=0;i<r.length-1&&"0"===r["left"===t?i:r.length-i-1].toString();i++)n++;return r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}function ro(e,{size:t}){if(wi(e)>t)throw new eo({givenSize:wi(e),maxSize:t})}function no(e,t){const r="string"==typeof t?{to:t}:t,n=r.to;return"number"===n?so(e,r):"bigint"===n?io(e,r):"string"===n?ao(e,r):"boolean"===n?oo(e,r):_o(e,r)}function io(e,t={}){const{signed:r}=t;t.size&&ro(e,{size:t.size});const n=BigInt(e);if(!r)return n;const i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function oo(e,t={}){let r=e;if(t.size&&(ro(r,{size:t.size}),r=to(r)),"0x00"===to(r))return!1;if("0x01"===to(r))return!0;throw new Xi(r)}function so(e,t={}){return Number(io(e,t))}function ao(e,t={}){let r=_o(e);return t.size&&(ro(r,{size:t.size}),r=to(r,{dir:"right"})),(new TextDecoder).decode(r)}const lo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function co(e,t={}){return"number"==typeof e||"bigint"==typeof e?fo(e,t):"string"==typeof e?mo(e,t):"boolean"==typeof e?uo(e,t):ho(e,t)}function uo(e,t={}){const r=`0x${Number(e)}`;return"number"==typeof t.size?(ro(r,{size:t.size}),Zi(r,{size:t.size})):r}function ho(e,t={}){let r="";for(let i=0;i<e.length;i++)r+=lo[e[i]];const n=`0x${r}`;return"number"==typeof t.size?(ro(n,{size:t.size}),Zi(n,{dir:"right",size:t.size})):n}function fo(e,t={}){const{signed:r,size:n}=t,i=BigInt(e);let o;n?o=r?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof o&&r?-o-1n:0;if(o&&i>o||i<s){const t="bigint"==typeof e?"n":"";throw new Yi({max:o?`${o}${t}`:void 0,min:`${s}${t}`,signed:r,size:n,value:`${e}${t}`})}const a=`0x${(r&&i<0?(1n<<BigInt(8*n))+BigInt(i):i).toString(16)}`;return n?Zi(a,{size:n}):a}const po=new TextEncoder;function mo(e,t={}){return ho(po.encode(e),t)}const go=new TextEncoder;function bo(e,t={}){return"number"==typeof e||"bigint"==typeof e?Eo(e,t):"boolean"==typeof e?yo(e,t):vi(e)?_o(e,t):Ao(e,t)}function yo(e,t={}){const r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?(ro(r,{size:t.size}),Zi(r,{size:t.size})):r}const vo={zero:48,nine:57,A:65,F:70,a:97,f:102};function wo(e){return e>=vo.zero&&e<=vo.nine?e-vo.zero:e>=vo.A&&e<=vo.F?e-(vo.A-10):e>=vo.a&&e<=vo.f?e-(vo.a-10):void 0}function _o(e,t={}){let r=e;t.size&&(ro(r,{size:t.size}),r=Zi(r,{dir:"right",size:t.size}));let n=r.slice(2);n.length%2&&(n=`0${n}`);const i=n.length/2,o=new Uint8Array(i);for(let s=0,a=0;s<i;s++){const e=wo(n.charCodeAt(a++)),t=wo(n.charCodeAt(a++));if(void 0===e||void 0===t)throw new _i(`Invalid byte sequence ("${n[a-2]}${n[a-1]}" in "${n}").`);o[s]=16*e+t}return o}function Eo(e,t){return _o(fo(e,t))}function Ao(e,t={}){const r=go.encode(e);return"number"==typeof t.size?(ro(r,{size:t.size}),Zi(r,{dir:"right",size:t.size})):r}function xo(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function ko(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Co(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Po(e,t){ko(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}const Io=BigInt(2**32-1),So=BigInt(32);function Oo(e,t=!1){return t?{h:Number(e&Io),l:Number(e>>So&Io)}:{h:0|Number(e>>So&Io),l:0|Number(e&Io)}}function Mo(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:s}=Oo(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]}const To="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,No=e=>e instanceof Uint8Array,Ro=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),jo=(e,t)=>e<<32-t|e>>>t;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function Bo(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!No(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class $o{clone(){return this._cloneInto()}}function Lo(e){const t=t=>e().update(Bo(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Fo(e=32){if(To&&"function"==typeof To.getRandomValues)return To.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}const[Do,Uo,Ho]=[[],[],[]],zo=BigInt(0),qo=BigInt(1),Go=BigInt(2),Wo=BigInt(7),Vo=BigInt(256),Zo=BigInt(113);for(let gS=0,bS=qo,yS=1,vS=0;gS<24;gS++){[yS,vS]=[vS,(2*yS+3*vS)%5],Do.push(2*(5*vS+yS)),Uo.push((gS+1)*(gS+2)/2%64);let e=zo;for(let t=0;t<7;t++)bS=(bS<<qo^(bS>>Wo)*Zo)%Vo,bS&Go&&(e^=qo<<(qo<<BigInt(t))-qo);Ho.push(e)}const[Ko,Jo]=Mo(Ho,!0),Yo=(e,t,r)=>r>32?((e,t,r)=>t<<r-32|e>>>64-r)(e,t,r):((e,t,r)=>e<<r|t>>>32-r)(e,t,r),Qo=(e,t,r)=>r>32?((e,t,r)=>e<<r-32|t>>>64-r)(e,t,r):((e,t,r)=>t<<r|e>>>32-r)(e,t,r);class Xo extends $o{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,xo(r),
vendor: 4,473 bytes, line 8
80>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}keccak(){!function(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],s=r[i+1],a=Yo(o,s,1)^r[t],l=Qo(o,s,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=a,e[n+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=Uo[r],o=Yo(t,i,n),s=Qo(t,i,n),a=Do[r];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=Ko[n],e[1]^=Jo[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Co(this);const{blockLen:t,state:r}=this,n=(e=Bo(e)).length;for(let i=0;i<n;){const o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){Co(this,!1),ko(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return xo(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Po(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new Xo(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}const es=((e,t,r)=>Lo(()=>new Xo(t,e,r)))(1,136,32);function ts(e,t){const r=t||"hex",n=es(vi(e,{strict:!1})?bo(e):e);return"bytes"===r?n:co(n)}function rs(e){return ts(bo(e))}const ns=e=>{var t;return function(e){let t=!0,r="",n=0,i="",o=!1;for(let s=0;s<e.length;s++){const a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&n++,")"===a&&n--,t)if(0!==n)" "!==a?(i+=a,r+=a):","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);else if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}}if(!o)throw new _i("Unable to normalize signature.");return i}("string"==typeof e?e:"function"===(t=e).type?`function ${t.name}(${mi(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs.length?` returns (${mi(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${mi(t.inputs)})`:"error"===t.type?`error ${t.name}(${mi(t.inputs)})`:"constructor"===t.type?`constructor(${mi(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback()":"receive() external payable")};function is(e){return rs(ns(e))}const os=is;class ss extends _i{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class as extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}const ls=new as(8192);function cs(e,t){if(ls.has(`${e}.${t}`))return ls.get(`${e}.${t}`);const r=e.substring(2).toLowerCase(),n=ts(Ao(r),"bytes"),i=r.split("");for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&i[s]&&(i[s]=i[s].toUpperCase()),(15&n[s>>1])>=8&&i[s+1]&&(i[s+1]=i[s+1].toUpperCase());const o=`0x${i.join("")}`;return ls.set(`${e}.${t}`,o),o}const us=/^0x[a-fA-F0-9]{40}$/,hs=new as(8192);function ds(e,t){const{strict:r=!0}=t??{};if(hs.has(e))return hs.get(e);const n=!(!us.test(e)||e.toLowerCase()!==e&&r&&cs(e)!==e);return hs.set(e,n),n}function fs(e){return"string"==typeof e[0]?ms(e):ps(e)}function ps(e){let t=0;for(const i of e)t+=i.length;
vendor: 4,509 bytes, line 8
8const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}function ms(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function gs(e,t,r,{strict:n}={}){return vi(e,{strict:!1})?ws(e,t,r,{strict:n}):vs(e,t,r,{strict:n})}function bs(e,t){if("number"==typeof t&&t>0&&t>wi(e)-1)throw new Gi({offset:t,position:"start",size:wi(e)})}function ys(e,t,r){if("number"==typeof t&&"number"==typeof r&&wi(e)!==r-t)throw new Gi({offset:r,position:"end",size:wi(e)})}function vs(e,t,r,{strict:n}={}){bs(e,t);const i=e.slice(t,r);return n&&ys(i,t,r),i}function ws(e,t,r,{strict:n}={}){bs(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(r??e.length))}`;return n&&ys(i,t,r),i}function _s(e,t){if(e.length!==t.length)throw new Si({expectedLength:e.length,givenLength:t.length});const r=function({params:e,values:t}){const r=[];for(let n=0;n<e.length;n++)r.push(Es({param:e[n],value:t[n]}));return r}({params:e,values:t}),n=As(r);return 0===n.length?"0x":n}function Es({param:e,value:t}){const r=xs(e.type);if(r){const[n,i]=r;return function(e,{length:t,param:r}){const n=null===t;if(!Array.isArray(e))throw new Hi(e);if(!n&&e.length!==t)throw new Pi({expectedLength:t,givenLength:e.length,type:`${r.type}[${t}]`});let i=!1;const o=[];for(let s=0;s<e.length;s++){const t=Es({param:r,value:e[s]});t.dynamic&&(i=!0),o.push(t)}if(n||i){const e=As(o);if(n){const t=fo(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?fs([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:fs(o.map(({encoded:e})=>e))}}(t,{length:n,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:t}){let r=!1;const n=[];for(let i=0;i<t.components.length;i++){const o=t.components[i],s=Es({param:o,value:e[Array.isArray(e)?i:o.name]});n.push(s),s.dynamic&&(r=!0)}return{dynamic:r,encoded:r?As(n):fs(n.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!ds(e))throw new ss({address:e});return{dynamic:!1,encoded:Ki(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new _i(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ki(uo(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){return function(e,{signed:t}){return{dynamic:!1,encoded:fo(e,{size:32,signed:t})}}(t,{signed:e.type.startsWith("int")})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,r]=t.type.split("bytes"),n=wi(e);if(!r){let t=e;return n%32!=0&&(t=Ki(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:fs([Ki(fo(n,{size:32})),t])}}if(n!==Number.parseInt(r))throw new Ii({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:Ki(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=mo(e),r=Math.ceil(wi(t)/32),n=[];for(let i=0;i<r;i++)n.push(Ki(gs(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:fs([Ki(fo(wi(t),{size:32})),...n])}}(t);throw new Di(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function As(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:r,encoded:n}=e[o];t+=r?32:wi(n)}const r=[],n=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:s,encoded:a}=e[o];s?(r.push(fo(t+i,{size:32})),n.push(a),i+=wi(a)):r.push(a)}return fs([...r,...n])}function xs(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const ks=e=>gs(is(e),0,4);function Cs(e){const{abi:t,args:r=[],name:n}=e,i=vi(n,{strict:!1}),o=t.filter(e=>i?"function"===e.type?ks(e)===n:"event"===e.type&&os(e)===n:"name"in e&&e.name===n);if(0===o.length)return;if(1===o.length)return o[0];let s;for(const a of o){if(!("inputs"in a))continue;if(!r||0===r.length){if(!a.inputs||0===a.inputs.length)return a;continue}if(!a.inputs)continue;if(0===a.inputs.length)continue;if(a.inputs.length!==r.length)continue;if(r.every((e,t)=>{const r="inputs"in a&&a.inputs[t];return!!r&&Ps(e,r)})){if(s&&"inputs"in s&&s.inputs){const e=Is(a.inputs,s.inputs,r);if(e)throw new Bi({abiItem:a,type:e[0]},{abiItem:s,type:e[1]})}s=a}}return s||o[0]}function Ps(e,t){const r=typeof e,n=t.type;switch(n){case"address":return ds(e,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in t?Object.values(t.components).every((t,r)=>Ps(Object.values(e)[r],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"b
8igint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&(Array.isArray(e)&&e.every(e=>Ps(e,{...t,type:n.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Is(e,t,r){for(const n in e){const i=e[n],o=t[n];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return Is(i.components,o.components,r[n]);const s=[i.type,o.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&ds(r[n],{strict:!1}))())return s}}const Ss="/docs/contract/encodeEventTopics";function Os(e){var t;const{abi:r,eventName:n,args:i}=e;let o=r[0];if(n){const e=Cs({abi:r,name:n});if(!e)throw new Ni(n,{docsPath:Ss});o=e}if("event"!==o.type)throw new Ni(void 0,{docsPath:Ss});const s=bi(o),a=os(s);let l=[];if(i&&"inputs"in o){const e=null==(t=o.inputs)?void 0:t.filter(e=>"indexed"in e&&e.indexed),r=Array.isArray(i)?i:Object.values(i).length>0?(null==e?void 0:e.map(e=>i[e.name]))??[]:[];r.length>0&&(l=(null==e?void 0:e.map((e,t)=>Array.isArray(r[t])?r[t].map((n,i)=>Ms({param:e,value:r[t][i]})):r[t]?Ms({param:e,value:r[t]}):null))??[])}return[a,...l]}function Ms({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return ts(bo(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new qi(e.type);return _s([e],[t])}function Ts(e,{method:t}){var r,n;const i={};return"fallback"===e.transport.type&&(null==(n=(r=e.transport).onResponse)||n.call(r,({method:e,response:r,status:n,transport:o})=>{"success"===n&&t===e&&(i[r]=o.request)})),t=>i[t]||e.request}async function Ns(e,t){const{address:r,abi:n,args:i,eventName:o,fromBlock:s,strict:a,toBlock:l}=t,c=Ts(e,{method:"eth_newFilter"}),u=o?Os({abi:n,args:i,eventName:o}):void 0,h=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof s?fo(s):s,toBlock:"bigint"==typeof l?fo(l):l,topics:u}]});return{abi:n,args:i,eventName:o,id:h,request:c(h),strict:Boolean(a),type:"event"}}function Rs(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const js="/docs/contract/encodeFunctionData";function Bs(e){const{abi:t,args:r,functionName:n}=e;let i=t[0];if(n){const e=Cs({abi:t,args:r,name:n});if(!e)throw new Ri(n,{docsPath:js});i=e}if("function"!==i.type)throw new Ri(void 0,{docsPath:js});return{abi:[i],functionName:ks(bi(i))}}function $s(e){const{args:t}=e,{abi:r,functionName:n}=1===e.abi.length&&(null==(i=e.functionName)?void 0:i.startsWith("0x"))?e:Bs(e);var i;const o=r[0];return ms([n,("inputs"in o&&o.inputs?_s(o.inputs,t??[]):void 0)??"0x"])}const Ls={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},Fs={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Ds={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class Us extends _i{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class Hs extends _i{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class zs extends _i{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}const qs={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new zs({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Hs({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Us({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Us({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Gs(e,{recursiveReadLimit:t=8192}={}){const r=Object.create(qs);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}function Ws(e,t={}){void 0!==t.size&&ro(e,{size:t.size});return io(ho(e,t),t)}function Vs(e,t={}){let r=e;if(void 0!==t.size&&(ro(r,{size:t.size}),r=to(r)),r.length>1||r[0]>1)throw new Qi(r);return Boolean(r[0])}function Zs(e,t={}){void 0!==t.size&&ro(e,{size:t.size});return so(ho(e,t),t)}function Ks(e,t={}){let r=e;return void 0!==t.size&&(ro(r,{size:t.size}),r=to(r,{dir:"right"})),(new TextDecoder).decode(r)}function Js(e,t){const r="string"==typeof t?_o(t):t,n=Gs(r);if(0===wi(r)&&e.length>0)throw new Ci;if(wi(t)&&wi(t)<32)throw new ki({data:"string"==typeof t?t:ho(t),params:e,size:wi(t)});let i=0;const o=[];for(let s=0;s<e.length;++s){const t=e[s];n.setPosition(i);const[r,a]=Ys(n,t,{staticPosition:0});i+=a,o.push(r)}return o}function Ys(e,t,{staticPosition:r}){const n=xs(t.type);if(n){const[i,o]=n;return function(e,t,{length:r,staticPosition:n}){if(!r){const r=n+Zs(e.readBytes(Xs)),i=r+Qs;
vendor: 5,405 bytes, line 8
8e.setPosition(r);const o=Zs(e.readBytes(Qs)),s=ea(t);let a=0;const l=[];for(let n=0;n<o;++n){e.setPosition(i+(s?32*n:a));const[r,o]=Ys(e,t,{staticPosition:i});a+=o,l.push(r)}return e.setPosition(n+32),[l,32]}if(ea(t)){const i=n+Zs(e.readBytes(Xs)),o=[];for(let n=0;n<r;++n){e.setPosition(i+32*n);const[r]=Ys(e,t,{staticPosition:i});o.push(r)}return e.setPosition(n+32),[o,32]}let i=0;const o=[];for(let s=0;s<r;++s){const[r,s]=Ys(e,t,{staticPosition:n+i});i+=s,o.push(r)}return[o,i]}(e,{...t,type:o},{length:i,staticPosition:r})}if("tuple"===t.type)return function(e,t,{staticPosition:r}){const n=0===t.components.length||t.components.some(({name:e})=>!e),i=n?[]:{};let o=0;if(ea(t)){const s=r+Zs(e.readBytes(Xs));for(let r=0;r<t.components.length;++r){const a=t.components[r];e.setPosition(s+o);const[l,c]=Ys(e,a,{staticPosition:s});o+=c,i[n?r:null==a?void 0:a.name]=l}return e.setPosition(r+32),[i,32]}for(let s=0;s<t.components.length;++s){const a=t.components[s],[l,c]=Ys(e,a,{staticPosition:r});i[n?s:null==a?void 0:a.name]=l,o+=c}return[i,o]}(e,t,{staticPosition:r});if("address"===t.type)return function(e){const t=e.readBytes(32);return[cs(ho(vs(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[Vs(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){const[n,i]=t.type.split("bytes");if(!i){const t=Zs(e.readBytes(32));e.setPosition(r+t);const n=Zs(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const i=e.readBytes(n);return e.setPosition(r+32),[ho(i),32]}const o=ho(e.readBytes(Number.parseInt(i),32));return[o,32]}(e,t,{staticPosition:r});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[n>48?Ws(i,{signed:r}):Zs(i,{signed:r}),32]}(e,t);if("string"===t.type)return function(e,{staticPosition:t}){const r=Zs(e.readBytes(32)),n=t+r;e.setPosition(n);const i=Zs(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];const o=e.readBytes(i,32),s=Ks(to(o));return e.setPosition(t+32),[s,32]}(e,{staticPosition:r});throw new Ui(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Qs=32,Xs=32;function ea(e){var t;const{type:r}=e;if("string"===r)return!0;if("bytes"===r)return!0;if(r.endsWith("[]"))return!0;if("tuple"===r)return null==(t=e.components)?void 0:t.some(ea);const n=xs(e.type);return!(!n||!ea({...e,type:n[1]}))}function ta(e){const{abi:t,data:r}=e,n=gs(r,0,4);if("0x"===n)throw new Ci;const i=[...t||[],Fs,Ds].find(e=>"error"===e.type&&n===ks(bi(e)));if(!i)throw new Oi(n,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Js(i.inputs,gs(r,4)):void 0,errorName:i.name}}const ra=(e,t,r)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,r);function na({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?ra(t[r]):t[r]}`).join(", ")})`}const ia={gwei:9,wei:18},oa={ether:-9,wei:9};function sa(e,t){let r=e.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(t,"0");let[i,o]=[r.slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}function aa(e,t="wei"){return sa(e,ia[t])}function la(e,t="wei"){return sa(e,oa[t])}class ca extends _i{constructor({address:e}){super(`State for account "${e}" is set multiple times.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountStateConflictError"})}}class ua extends _i{constructor(){super("state and stateDiff are set on the same account."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"StateAssignmentConflictError"})}}function ha(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}\n`,"")}function da(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class fa extends _i{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class pa extends _i{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class ma extends _i{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",da(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class ga extends _i{constructor({storageKey:e}){super(`Size for storage key "${e}
8" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class ba extends _i{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class ya extends _i{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class va extends _i{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}class wa extends _i{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:l,nonce:c,to:u,value:h,stateOverride:d}){var f;const p=t?Rs(t):void 0;let m=da({from:null==p?void 0:p.address,to:u,value:void 0!==h&&`${aa(h)} ${(null==(f=null==n?void 0:n.nativeCurrency)?void 0:f.symbol)||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${la(s)} gwei`,maxFeePerGas:void 0!==a&&`${la(a)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${la(l)} gwei`,nonce:c});d&&(m+=`\n${function(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:\n`;return r.nonce&&(n+=`      nonce: ${r.nonce}\n`),r.balance&&(n+=`      balance: ${r.balance}\n`),r.code&&(n+=`      code: ${r.code}\n`),r.state&&(n+="      state:\n",n+=ha(r.state)),r.stateDiff&&(n+="      stateDiff:\n",n+=ha(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}(d)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class _a extends _i{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){const a=Cs({abi:t,args:r,name:o}),l=a?na({abiItem:a,args:r,includeFunctionName:!1,includeName:!1}):void 0,c=da({address:n&&n,function:a?bi(a,{includeName:!0}):void 0,args:l&&"()"!==l&&`${[...Array((null==o?void 0:o.length)??0).keys()].map(()=>" ").join("")}${l}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",c].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class Ea extends _i{constructor({abi:e,data:t,functionName:r,message:n}){let i,o,s,a,l;if(t&&"0x"!==t)try{o=ta({abi:e,data:t});const{abiItem:r,errorName:n,args:i}=o;if("Error"===n)a=i[0];else if("Panic"===n){const[e]=i;a=Ls[e]}else{const e=r?bi(r,{includeName:!0}):void 0,t=r&&i?na({abiItem:r,args:i,includeFunctionName:!1,includeName:!1}):void 0;s=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array((null==n?void 0:n.length)??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(c){i=c}else n&&(a=n);i instanceof Oi&&(l=i.signature,s=[`Unable to decode signature "${l}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${l}.`]),super(a&&"execution reverted"!==a||l?[`The contract function "${r}" reverted with the following ${l?"signature":"reason"}:`,a||l].join("\n"):`The contract function "${r}" reverted.`,{cause:i,metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=o,this.reason=a,this.signature=l}}class Aa extends _i{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class xa extends _i{constructor({data:e,message:t}){super(t||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}class ka extends _i{constructor({body:e,details:t,headers:r,status:n,url:i}){super("HTTP request failed.",{details:t,metaMessages:[n&&`Status: ${n}`,`URL: ${i}`,e&&`Request body: ${ra(e)}
8`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=r,this.status=n,this.url=i}}class Ca extends _i{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${r}`,`Request body: ${ra(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class Pa extends _i{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${t}`,`Request body: ${ra(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}class Ia extends _i{constructor(e,{code:t,docsPath:r,metaMessages:n,shortMessage:i}){super(i,{cause:e,docsPath:r,metaMessages:n||(null==e?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof Ca?e.code:t??-1}}class Sa extends Ia{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class Oa extends Ia{constructor(e){super(e,{code:Oa.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(Oa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Ma extends Ia{constructor(e){super(e,{code:Ma.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(Ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Ta extends Ia{constructor(e){super(e,{code:Ta.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(Ta,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Na extends Ia{constructor(e){super(e,{code:Na.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(Na,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ra extends Ia{constructor(e){super(e,{code:Ra.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(Ra,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ja extends Ia{constructor(e){super(e,{code:ja.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(ja,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Ba extends Ia{constructor(e){super(e,{code:Ba.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Ba,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class $a extends Ia{constructor(e){super(e,{code:$a.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty($a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});
8class La extends Ia{constructor(e){super(e,{code:La.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(La,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Fa extends Ia{constructor(e){super(e,{code:Fa.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(Fa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Da extends Ia{constructor(e){super(e,{code:Da.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(Da,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Ua extends Ia{constructor(e){super(e,{code:Ua.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(Ua,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Ha extends Sa{constructor(e){super(e,{code:Ha.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(Ha,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class za extends Sa{constructor(e){super(e,{code:za.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(za,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class qa extends Sa{constructor(e){super(e,{code:qa.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(qa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Ga extends Sa{constructor(e){super(e,{code:Ga.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(Ga,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Wa extends Sa{constructor(e){super(e,{code:Wa.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(Wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Va extends Sa{constructor(e){super(e,{code:Va.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(Va,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Za extends Ia{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}const Ka=3;function Ja(e,{abi:t,address:r,args:n,docsPath:i,functionName:o,sender:s}){const{code:a,data:l,message:c,shortMessage:u}=e instanceof xa?e:e instanceof _i?e.walk(e=>"data"in e)||e.walk():{},h=e instanceof Ci?new Aa({functionName:o}):[Ka,Ra.code].includes(a)&&(l||c||u)?new Ea({abi:t,data:"object"==typeof l?l.data:l,functionName:o,message:u??c}):e;return new _a(h,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:s})}class Ya extends _i{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:l,nonce:c,to:u,value:h}){var d;const f=da({from:null==t?void 0:t.address,to:u,value:void 0!==h&&`${aa(h)} ${(null==(d=null==n?void 0:n.nativeCurrency)?void 0:d.symbol)||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${la(s)} gwei`,maxFeePerGas:void 0!==a&&`${la(a)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${la(l)} gwei`,nonce:c});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(
8Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}class Qa extends _i{constructor({cause:e,message:t}={}){var r;const n=null==(r=null==t?void 0:t.replace("execution reverted: ",""))?void 0:r.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(Qa,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(Qa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Xa extends _i{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${la(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(Xa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class el extends _i{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${la(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(el,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class tl extends _i{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(tl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class rl extends _i{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(rl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class nl extends _i{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(nl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class il extends _i{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(il,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class ol extends _i{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(ol,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class sl extends _i{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(sl,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class al extends _i{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(al,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class ll extends _i{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${la(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${la(r)} gwei`:""}).`].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(ll,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class cl extends _i{constructor({cause:e}){super(`An error occurred while executing: ${null==e?void 0:e.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}function ul(e,t){const r=(e.details||"").toLowerCase(),n=e instanceof _i?e.walk(e=>e.code===Qa.code):e;return n instanceof _i?new Qa({cause:e,message:n.details}):Qa.nodeMessage.test(r)?new Qa({cause:e,message:e.details}):Xa.nodeMessage.test(r)?new Xa({cause:e,maxFeePerGas:null==t?void 0:t.maxFeePerGas}):el.nodeMessage.test(r)?new el({cause:e,maxFeePerGas:null==t?void 0:t.maxFeePerGas}):tl.nodeMessage.test(r)?new tl({cause:e,nonce:null==t?void 0:t.nonce}):rl.nodeMessage.test(r)?new rl({cause:e,nonce:null==t?void 0:t.nonce}):nl.nodeMessage.test(r)?new nl({cause:e,nonce:null==t?void 0:t.nonce}
vendor: 4,348 bytes, line 8
8):il.nodeMessage.test(r)?new il({cause:e}):ol.nodeMessage.test(r)?new ol({cause:e,gas:null==t?void 0:t.gas}):sl.nodeMessage.test(r)?new sl({cause:e,gas:null==t?void 0:t.gas}):al.nodeMessage.test(r)?new al({cause:e}):ll.nodeMessage.test(r)?new ll({cause:e,maxFeePerGas:null==t?void 0:t.maxFeePerGas,maxPriorityFeePerGas:null==t?void 0:t.maxPriorityFeePerGas}):new cl({cause:e})}function hl(e,{format:t}){if(!t)return{};const r={};return function t(n){const i=Object.keys(n);for(const o of i)o in e&&(r[o]=e[o]),n[o]&&"object"==typeof n[o]&&!Array.isArray(n[o])&&t(n[o])}(t(e||{})),r}function dl(e,t){return({exclude:r,format:n})=>({exclude:r,format:e=>{const i=t(e);if(r)for(const t of r)delete i[t];return{...i,...n(e)}},type:e})}const fl={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function pl(e){const t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>ho(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=fo(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=fo(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=fo(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=fo(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=fo(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=fo(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=fl[e.type]),void 0!==e.value&&(t.value=fo(e.value)),t}const ml=dl("transactionRequest",pl);function gl(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new Vi({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new Vi({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function bl(e){const{balance:t,nonce:r,state:n,stateDiff:i,code:o}=e,s={};if(void 0!==o&&(s.code=o),void 0!==t&&(s.balance=fo(t)),void 0!==r&&(s.nonce=fo(r)),void 0!==n&&(s.state=gl(n)),void 0!==i){if(s.state)throw new ua;s.stateDiff=gl(i)}return s}function yl(e){if(!e)return;const t={};for(const{address:r,...n}of e){if(!ds(r,{strict:!1}))throw new ss({address:r});if(t[r])throw new ca({address:r});t[r]=bl(n)}return t}function vl(e){const{account:t,gasPrice:r,maxFeePerGas:n,maxPriorityFeePerGas:i,to:o}=e,s=t?Rs(t):void 0;if(s&&!ds(s.address))throw new ss({address:s.address});if(o&&!ds(o))throw new ss({address:o});if(void 0!==r&&(void 0!==n||void 0!==i))throw new fa;if(n&&n>2n**256n-1n)throw new Xa({maxFeePerGas:n});if(i&&n&&i>n)throw new ll({maxFeePerGas:n,maxPriorityFeePerGas:i})}class wl extends _i{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class _l extends _i{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class El extends _i{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${la(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class Al extends _i{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}const xl={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function kl(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?so(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?so(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?xl[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>
8{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n==0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}const Cl=dl("transaction",kl);function Pl(e){var t;const r=null==(t=e.transactions)?void 0:t.map(e=>"string"==typeof e?e:kl(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:r,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Il=dl("block",Pl);async function Sl(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:i}={}){var o,s,a;const l=n??"latest",c=i??!1,u=void 0!==r?fo(r):void 0;let h=null;if(h=t?await e.request({method:"eth_getBlockByHash",params:[t,c]}):await e.request({method:"eth_getBlockByNumber",params:[u||l,c]}),!h)throw new Al({blockHash:t,blockNumber:r});return((null==(a=null==(s=null==(o=e.chain)?void 0:o.formatters)?void 0:s.block)?void 0:a.format)||Pl)(h)}async function Ol(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Ml(e,t){var r,n,i;const{block:o,chain:s=e.chain,request:a}=t||{};if("function"==typeof(null==(r=null==s?void 0:s.fees)?void 0:r.defaultPriorityFee)){const t=o||await gi(e,Sl,"getBlock")({});return s.fees.defaultPriorityFee({block:t,client:e,request:a})}if(void 0!==(null==(n=null==s?void 0:s.fees)?void 0:n.defaultPriorityFee))return null==(i=null==s?void 0:s.fees)?void 0:i.defaultPriorityFee;try{return io(await e.request({method:"eth_maxPriorityFeePerGas"}))}catch{const[t,r]=await Promise.all([o?Promise.resolve(o):gi(e,Sl,"getBlock")({}),gi(e,Ol,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new _l;const n=r-t.baseFeePerGas;return n<0n?0n:n}}async function Tl(e,t){var r,n;const{block:i,chain:o=e.chain,request:s,type:a="eip1559"}=t||{},l=await(async()=>{var t,r;return"function"==typeof(null==(t=null==o?void 0:o.fees)?void 0:t.baseFeeMultiplier)?o.fees.baseFeeMultiplier({block:i,client:e,request:s}):(null==(r=null==o?void 0:o.fees)?void 0:r.baseFeeMultiplier)??1.2})();if(l<1)throw new wl;const c=10**((null==(r=l.toString().split(".")[1])?void 0:r.length)??0),u=e=>e*BigInt(Math.ceil(l*c))/BigInt(c),h=i||await gi(e,Sl,"getBlock")({});if("function"==typeof(null==(n=null==o?void 0:o.fees)?void 0:n.estimateFeesPerGas)){const t=await o.fees.estimateFeesPerGas({block:i,client:e,multiply:u,request:s,type:a});if(null!==t)return t}if("eip1559"===a){if("bigint"!=typeof h.baseFeePerGas)throw new _l;const t="bigint"==typeof(null==s?void 0:s.maxPriorityFeePerGas)?s.maxPriorityFeePerGas:await Ml(e,{block:h,chain:o,request:s}),r=u(h.baseFeePerGas);return{maxFeePerGas:(null==s?void 0:s.maxFeePerGas)??r+t,maxPriorityFeePerGas:t}}return{gasPrice:(null==s?void 0:s.gasPrice)??u(await gi(e,Ol,"getGasPrice")({}))}}async function Nl(e,{address:t,blockTag:r="latest",blockNumber:n}){return so(await e.request({method:"eth_getTransactionCount",params:[t,n?fo(n):r]}))}function Rl(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>_o(e)):e.blobs,i=[];for(const o of n)i.push(Uint8Array.from(t.blobToKzgCommitment(o)));return"bytes"===r?i:i.map(e=>ho(e))}function jl(e){const{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>_o(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>_o(e)):e.commitments,o=[];for(let s=0;s<n.length;s++){const e=n[s],r=i[s];o.push(Uint8Array.from(t.computeBlobKzgProof(e,r)))}return"bytes"===r?o:o.map(e=>ho(e))}class Bl extends $o{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Ro(this.buffer)}update(e){Co(this);const{view:t,buffer:r,blockLen:n}=this,i=(e=Bo(e)).length;for(let o=0;o<i;){const s=Math.min(n-this.pos,i-o);if(s===n){const t=Ro(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Co(this),Po(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:n,isLE:i}=this;let{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let u=o;u<n;u++)t[u]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),l=n?4:0,c=n?0:4;e.setUint32(t+l,s,n),e.setUint32(t+c,a,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);const s=Ro(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=a/4,c=this.get();if(l>c.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)s.setUint32(4*u,c[u],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}const $l=(e,t,r)=>e&t^~e&r,Ll=(e,t,r)=>e&t^e&r^t&r,Fl=new Uint32Array([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,2756
8734187,3204031479,3329325298]),Dl=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ul=new Uint32Array(64);class Hl extends Bl{constructor(){super(64,32,8,!1),this.A=0|Dl[0],this.B=0|Dl[1],this.C=0|Dl[2],this.D=0|Dl[3],this.E=0|Dl[4],this.F=0|Dl[5],this.G=0|Dl[6],this.H=0|Dl[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[e,t,r,n,i,o,s,a]}set(e,t,r,n,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let u=0;u<16;u++,t+=4)Ul[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const e=Ul[u-15],t=Ul[u-2],r=jo(e,7)^jo(e,18)^e>>>3,n=jo(t,17)^jo(t,19)^t>>>10;Ul[u]=n+Ul[u-7]+r+Ul[u-16]|0}let{A:r,B:n,C:i,D:o,E:s,F:a,G:l,H:c}=this;for(let u=0;u<64;u++){const e=c+(jo(s,6)^jo(s,11)^jo(s,25))+$l(s,a,l)+Fl[u]+Ul[u]|0,t=(jo(r,2)^jo(r,13)^jo(r,22))+Ll(r,n,i)|0;c=l,l=a,a=s,s=o+e|0,o=i,i=n,n=r,r=e+t|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(r,n,i,o,s,a,l,c)}roundClean(){Ul.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const zl=Lo(()=>new Hl);function ql(e,t){const r=t||"hex",n=zl(vi(e,{strict:!1})?bo(e):e);return"bytes"===r?n:co(n)}function Gl(e){const{commitment:t,version:r=1}=e,n=e.to??("string"==typeof t?"hex":"bytes"),i=ql(t,"bytes");return i.set([r],0),"bytes"===n?i:ho(i)}function Wl(e){const{commitments:t,version:r}=e,n=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(const o of t)i.push(Gl({commitment:o,to:n,version:r}));return i}const Vl=4096,Zl=131072,Kl=761855;class Jl extends _i{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class Yl extends _i{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}class Ql extends _i{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}}class Xl extends _i{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}}function ec(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?_o(e.data):e.data,n=wi(r);if(!n)throw new Yl;if(n>Kl)throw new Jl({maxSize:Kl,size:n});const i=[];let o=!0,s=0;for(;o;){const e=Gs(new Uint8Array(Zl));let t=0;for(;t<Vl;){const n=r.slice(s,s+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),o=!1;break}t++,s+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>ho(e.bytes))}function tc(e){const{data:t,kzg:r,to:n}=e,i=e.blobs??ec({data:t,to:n}),o=e.commitments??Rl({blobs:i,kzg:r,to:n}),s=e.proofs??jl({blobs:i,commitments:o,kzg:r,to:n}),a=[];for(let l=0;l<i.length;l++)a.push({blob:i[l],commitment:o[l],proof:s[l]});return a}function rc(e){if(e.type)return e.type;if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new ma({transaction:e})}async function nc(e){return so(await e.request({method:"eth_chainId"}))}const ic=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function oc(e,t){const{account:r=e.account,blobs:n,chain:i,chainId:o,gas:s,kzg:a,nonce:l,parameters:c=ic,type:u}=t,h=r?Rs(r):void 0,d={...t,...h?{from:null==h?void 0:h.address}:{}};let f;async function p(){return f||(f=await gi(e,Sl,"getBlock")({blockTag:"latest"}),f)}if((c.includes("blobVersionedHashes")||c.includes("sidecars"))&&n&&a){const e=Rl({blobs:n,kzg:a});if(c.includes("blobVersionedHashes")){const t=Wl({commitments:e,to:"hex"});d.blobVersionedHashes=t}if(c.includes("sidecars")){const t=tc({blobs:n,commitments:e,proofs:jl({blobs:n,commitments:e,kzg:a}),to:"hex"});d.sidecars=t}}if(c.includes("chainId")&&(d.chainId=i?i.id:void 0!==o?o:await gi(e,nc,"getChainId")({})),c.includes("nonce")&&void 0===l&&h&&(d.nonce=await gi(e,Nl,"getTransactionCount")({address:h.address,blockTag:"pending"})),(c.includes("fees")||c.includes("type"))&&void 0===u)try{d.type=rc(d)}catch{const e=await p();d.type="bigint"==typeof(null==e?void 0:e.baseFeePerGas)?"eip1559":"legacy"}if(c.includes("fees"))if("legacy"!==d.type&&"eip2930"!==d.type){if(void 0===d.maxFeePerGas||void 0===d.maxPriorityFeePerGas){const r=await p(),{maxFeePerGas:n,maxPriorityFeePerGas:o}=await Tl(e,{block:r,chain:i,request:d});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new El({maxPriorityFeePerGas:o});d.maxPriorityFeePerGas=o,d.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new _l;const r=await p(),{gasPrice:n}=await Tl(e,{block:r,chain:i,request:d,type:"legacy"});d.gasPrice=n}return c.includes("gas")&&void 0===s&&(d.gas=await gi(e,sc,"estimateGas")({...d,account:h?{address:h.address,type:"json-rpc"}:void 0})),vl(d),delete d.parameters,d}async function sc(e,t){var r,n,i;const o=t.account??e.account,s=o?Rs(o):void 0;try{const{accessList:o,blobs:a,blobVersionedHashes:l,blockNumber:c,blockTag:u,data:h,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:b,to:y,value:v,stateOverride:w,..._}=await oc(e,{...t,parameters:"local"===(null==s?void 0:s.type)?void 0:["blobVersionedHashes"]}),E=(c?fo(c):void 0)||u,A=yl(w);vl(t);const x=null==(i=null==(n=null==(r=e.chain)?void 0:r.formatters)?void 0:n.transactionRequest)?void 0:i.format,k=(x||pl)({...hl(_,{format:x}),from:null==s?void 0:s.address,accessList:o,blobs:a,blobVersionedHashes:l,data:h,gas:d,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:g,nonce:b,to:y,value:v}),C=await e.request({method:"eth_estimateGas",params:A?[k,E??"latest",A]:E?[k,E]:[k]});return BigInt(C)}catch(a){throw function(e,{docsPath:t,...r}){const n=(()=>{const t=ul(e,r);return t instanceof cl?e:t})();return new Ya(n,{docsPath:t,...r})}(a,{...t,account:s,chain:e.chain})}}const ac="/docs/contract/decodeEventLog";function lc(e){const{abi:t,data:r,strict:n,topics:i}=e,o=n??!0,[s,...a]=i;if(!s)throw new Mi({docsPath:ac});const l=t.find(e=>"event"===e.type&&s===os(bi(e)));if(!l||!("name"in l)||"event"!==l.type)throw new Ti(s,{docsPath:ac});const{name:c,inputs:u}=l,h=null==u?void 0:u.some(e=>!("name"in e&&e.name));let d=h?[]:{};const f=u.filter(e=>
8"indexed"in e&&e.indexed);for(let g=0;g<f.length;g++){const e=f[g],t=a[g];if(!t)throw new Fi({abiItem:l,param:e});d[h?g:e.name||g]=cc({param:e,value:t})}const p=u.filter(e=>!("indexed"in e&&e.indexed));if(p.length>0)if(r&&"0x"!==r)try{const e=Js(p,r);if(e)if(h)d=[...d,...e];else for(let t=0;t<p.length;t++)d[p[t].name]=e[t]}catch(m){if(o){if(m instanceof ki||m instanceof Hs)throw new Li({abiItem:l,data:r,params:p,size:wi(r)});throw m}}else if(o)throw new Li({abiItem:l,data:"0x",params:p,size:0});return{eventName:c,args:Object.values(d).length>0?d:void 0}}function cc({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return(Js([e],t)||[])[0]}function uc({abi:e,eventName:t,logs:r,strict:n=!0}){return r.map(r=>{var i;try{const i=lc({...r,abi:e,strict:n});return t&&!t.includes(i.eventName)?null:{...i,...r}}catch(o){let e,t;if(o instanceof Ti)return null;if(o instanceof Li||o instanceof Fi){if(n)return null;e=o.abiItem.name,t=null==(i=o.abiItem.inputs)?void 0:i.some(e=>!("name"in e&&e.name))}return{...r,args:t?[]:{},eventName:e}}}).filter(Boolean)}function hc(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}async function dc(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:o,events:s,args:a,strict:l}={}){const c=l??!1,u=s??(o?[o]:void 0);let h,d=[];u&&(d=[u.flatMap(e=>Os({abi:[e],eventName:e.name,args:a}
vendor: 4,165 bytes, line 8
8))],o&&(d=d[0])),h=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?fo(n):n,toBlock:"bigint"==typeof i?fo(i):i}]});const f=h.map(e=>hc(e));return u?uc({abi:u,logs:f,strict:c}):f}async function fc(e,t){const{abi:r,address:n,args:i,blockHash:o,eventName:s,fromBlock:a,toBlock:l,strict:c}=t,u=s?Cs({abi:r,name:s}):void 0,h=u?void 0:r.filter(e=>"event"===e.type);return gi(e,dc,"getLogs")({address:n,args:i,blockHash:o,event:u,events:h,fromBlock:a,toBlock:l,strict:c})}const pc="/docs/contract/decodeFunctionResult";function mc(e){const{abi:t,args:r,functionName:n,data:i}=e;let o=t[0];if(n){const e=Cs({abi:t,args:r,name:n});if(!e)throw new Ri(n,{docsPath:pc});o=e}if("function"!==o.type)throw new Ri(void 0,{docsPath:pc});if(!o.outputs)throw new ji(o.name,{docsPath:pc});const s=Js(o.outputs,i);return s&&s.length>1?s:s&&1===s.length?s[0]:void 0}const gc=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],bc=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],yc=[...bc,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],vc=[...bc,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],wc=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],_c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Ec=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],Ac="0x82ad56cb";class xc extends _i{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class kc extends _i{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class Cc extends _i{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
8" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}function Pc({blockNumber:e,chain:t,contract:r}){var n;const i=null==(n=null==t?void 0:t.contracts)?void 0:n[r];if(!i)throw new xc({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new xc({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}const Ic=new Map;function Sc({fn:e,id:t,shouldSplitBatch:r,wait:n=0,sort:i}){const o=async()=>{const t=a();s();const r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{var r;i&&Array.isArray(e)&&e.sort(i);for(let n=0;n<t.length;n++){const{pendingPromise:i}=t[n];null==(r=i.resolve)||r.call(i,[e[n],e])}}).catch(e=>{var r;for(let n=0;n<t.length;n++){const{pendingPromise:i}=t[n];null==(r=i.reject)||r.call(i,e)}})},s=()=>Ic.delete(t),a=()=>Ic.get(t)||[],l=e=>Ic.set(t,[...a(),e]);return{flush:s,async schedule(e){const t={},i=new Promise((e,r)=>{t.resolve=e,t.reject=r});(null==r?void 0:r([...a().map(({args:e})=>e),e]))&&o();return a().length>0?(l({args:e,pendingPromise:t}),i):(l({args:e,pendingPromise:t}),setTimeout(o,n),i)}}}async function Oc(e,t){var r,n,i,o;const{account:a=e.account,batch:l=Boolean(null==(r=e.batch)?void 0:r.multicall),blockNumber:c,blockTag:u="latest",accessList:h,blobs:d,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:v,to:w,value:_,stateOverride:E,...A}=t,x=a?Rs(a):void 0;try{vl(t);const r=(c?fo(c):void 0)||u,s=yl(E),a=null==(o=null==(i=null==(n=e.chain)?void 0:n.formatters)?void 0:i.transactionRequest)?void 0:o.format,C=(a||pl)({...hl(A,{format:a}),from:null==x?void 0:x.address,accessList:h,blobs:d,data:f,gas:p,gasPrice:m,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:v,to:w,value:_});if(l&&function({request:e}){const{data:t,to:r,...n}=e;return!!t&&(!t.startsWith(Ac)&&(!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)))}({request:C})&&!s)try{return await async function(e,t){var r;const{batchSize:n=1024,wait:i=0}="object"==typeof(null==(r=e.batch)?void 0:r.multicall)?e.batch.multicall:{},{blockNumber:o,blockTag:s="latest",data:a,multicallAddress:l,to:c}=t;let u=l;if(!u){if(!e.chain)throw new kc;u=Pc({blockNumber:o,chain:e.chain,contract:"multicall3"})}const h=o?fo(o):void 0,d=h||s,{schedule:f}=Sc({id:`${e.uid}.${d}`,wait:i,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{const r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=$s({abi:gc,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:u},d]});return mc({abi:gc,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:p,success:m}]=await f({data:a,to:c});if(!m)throw new xa({data:p});return"0x"===p?{data:void 0}:{data:p}}(e,{...C,blockNumber:c,blockTag:u})}catch(k){if(!(k instanceof kc||k instanceof xc))throw k}const P=await e.request({method:"eth_call",params:s?[C,r,s]:[C,r]});return"0x"===P?{data:void 0}:{data:P}}catch(k){const r=function(e){var t;if(!(e instanceof _i))return;const r=e.walk();return"object"==typeof(null==r?void 0:r.data)?null==(t=r.data)?void 0:t.data:r.data}(k),{offchainLookup:n,offchainLookupSignature:i}=await s(async()=>{const{offchainLookup:e,offchainLookupSignature:t}=await Promise.resolve().then(()=>Tu);return{offchainLookup:e,offchainLookupSignature:t}},void 0);if(!1!==e.ccipRead&&(null==r?void 0:r.slice(0,10))===i&&w)return{data:await n(e,{data:r,to:w})};throw function(e,{docsPath:t,...r}){const n=(()=>{const t=ul(e,r);return t instanceof cl?e:t})();return new wa(n,{docsPath:t,...r})}(k,{...t,account:x,chain:e.chain})}}async function Mc(e,t){const{abi:r,address:n,args:i,functionName:o,...s}=t,a=$s({abi:r,args:i,functionName:o});try{const{data:t}=await gi(e,Oc,"call")({...s,data:a,to:n});return mc({abi:r,args:i,functionName:o,data:t||"0x"})}catch(l){throw Ja(l,{abi:r,address:n,args:i,docsPath:"/docs/contract/readContract",functionName:o})}}const Tc=new Map,Nc=new Map;let Rc=0;function jc(e,t,r){const n=++Rc,i=()=>Tc.get(e)||[],o=()=>{const t=Nc.get(e);1===i().length&&t&&t(),(()=>{const t=i();Tc.set(e,t.filter(e=>e.id!==n))})()},s=i();if(Tc.set(e,[...s,{id:n,fns:t}]),s&&s.length>0)return o;const a={};for(const c in t)a[c]=(...e)=>{var t,r;const n=i();if(0!==n.length)for(const i of n)null==(r=(t=i.fns)[c])||r.call(t,...e)};const l=r(a);return"function"==typeof l&&Nc.set(e,l),o}async function Bc(e){return new Promise(t=>setTimeout(t,e))}function $c(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0;const o=()=>i=!1;return(async()=>{let s;t&&(s=await e({unpoll:o}));const a=await(null==r?void 0:r(s))??n;await Bc(a);const l=async()=>
8{i&&(await e({unpoll:o}),await Bc(n),l())};l()})(),o}const Lc=new Map,Fc=new Map;async function Dc(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){const n=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,Lc),n=t(e,Fc);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0){if((new Date).getTime()-i.created.getTime()<r)return i.data}let o=n.promise.get();o||(o=e(),n.promise.set(o));try{const e=await o;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}async function Uc(e,{cacheTime:t=e.cacheTime}={}){const r=await Dc(()=>e.request({method:"eth_blockNumber"}),{cacheKey:(n=e.uid,`blockNumber.${n}`),cacheTime:t});var n;return BigInt(r)}async function Hc(e,{filter:t}){const r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof n[0])return n;const i=n.map(e=>hc(e));return"abi"in t&&t.abi?uc({abi:t.abi,logs:i,strict:r}):i}async function zc(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}let qc,Gc=256;function Wc(e=11){if(!qc||Gc+e>512){qc="",Gc=0;for(let e=0;e<256;e++)qc+=(256+256*Math.random()|0).toString(16).substring(1)}return qc.substring(Gc,Gc+++e)}function Vc(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:n,key:i="base",name:o="Base Client",pollingInterval:s=4e3,type:a="base"}=e,l=e.chain,c=e.account?Rs(e.account):void 0,{config:u,request:h,value:d}=e.transport({chain:l,pollingInterval:s}),f={account:c,batch:t,cacheTime:r,ccipRead:n,chain:l,key:i,name:o,pollingInterval:s,request:h,transport:{...u,...d},type:a,uid:Wc()};return Object.assign(f,{extend:function e(t){return r=>{const n=r(t);for(const e in f)delete n[e];const i={...t,...n};return Object.assign(i,{extend:e(i)})}}(f)})}function Zc(e,{delay:t=100,retryCount:r=2,shouldRetry:n=()=>!0}={}){return new Promise((i,o)=>{const s=async({count:a=0}={})=>{try{const t=await e();i(t)}catch(l){if(a<r&&await n({count:a,error:l}))return(async({error:e})=>{const r="function"==typeof t?t({count:a,error:e}):t;r&&await Bc(r),s({count:a+1})})({error:l});o(l)}};s()})}function Kc(e,t={}){return async(r,n={})=>{const{retryDelay:i=150,retryCount:o=3}={...t,...n};return Zc(async()=>{try{return await e(r)}catch(t){const e=t;switch(e.code){case Oa.code:throw new Oa(e);case Ma.code:throw new Ma(e);case Ta.code:throw new Ta(e);case Na.code:throw new Na(e);case Ra.code:throw new Ra(e);case ja.code:throw new ja(e);case Ba.code:throw new Ba(e);case $a.code:throw new $a(e);case La.code:throw new La(e);case Fa.code:throw new Fa(e);case Da.code:throw new Da(e);case Ua.code:throw new Ua(e);case Ha.code:throw new Ha(e);case za.code:throw new za(e);case qa.code:throw new qa(e);case Ga.code:throw new Ga(e);case Wa.code:throw new Wa(e);case Va.code:throw new Va(e);case 5e3:throw new Ha(e);default:if(t instanceof _i)throw t;throw new Za(e)}}},{delay:({count:e,error:t})=>{var r;if(t&&t instanceof ka){const e=null==(r=null==t?void 0:t.headers)?void 0:r.get("Retry-After");if(null==e?void 0:e.match(/\d/))return 1e3*Number.parseInt(e)}return(1<<e)*i},retryCount:o,shouldRetry:({error:e})=>function(e){if("code"in e&&"number"==typeof e.code)return-1===e.code||(e.code===Da.code||e.code===Ra.code);if(e instanceof ka&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(e)})}}function Jc({key:e,name:t,request:r,retryCount:n=3,retryDelay:i=150,timeout:o,type:s},a){return{config:{key:e,name:t,request:r,retryCount:n,retryDelay:i,timeout:o,type:s},request:Kc(r,{retryCount:n,retryDelay:i}),value:a}}class Yc extends _i{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function Qc(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise((i,o)=>{(async()=>{let s;try{const t=new AbortController;r>0&&(s=setTimeout(()=>{n&&t.abort()},r)),i(await e({signal:(null==t?void 0:t.signal)||null}))}catch(a){"AbortError"===a.name&&o(t),o(a)}finally{clearTimeout(s)}})()})}function Xc(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const eu=Xc();function tu(e,t){var r,n,i,o,s,a;if(!(e instanceof _i))return!1;const l=e.walk(e=>e instanceof Ea);return l instanceof Ea&&("ResolverNotFound"===(null==(r=l.data)?void 0:r.errorName)||("ResolverWildcardNotSupported"===(null==(n=l.data)?void 0:n.errorName)||("ResolverNotContract"===(null==(i=l.data)?void 0:i.errorName)||("ResolverError"===(null==(o=l.data)?void 0:o.errorName)||("HttpError"===(null==(s=l.data)?void 0:s.errorName)||(!!(null==(a=l.reason)?void 0:a.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&l.reason===Ls[50]))))))}function ru(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return vi(t)?t:null}function nu(e){let t=new Uint8Array(32).fill(0);if(!e)return ho(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const e=ru(r[n]),i=e?bo(e):ts(Ao(r[n]),"bytes");t=ts(fs([t,i]),"bytes")}return ho(t)}function iu(e){return`[${e.slice(2)}]`}function ou(e){const t=new Uint8Array(32).fill(0);return e?ru(e)||ts(Ao(e)):ho(t)}function su(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);
vendor: 1,894 bytes, line 8
8const r=new Uint8Array(Ao(t).byteLength+2);let n=0;const i=t.split(".");for(let o=0;o<i.length;o++){let e=Ao(i[o]);e.byteLength>255&&(e=Ao(iu(ou(i[o])))),r[n]=e.length,r.set(e,n+1),n+=e.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}class au extends _i{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class lu extends _i{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class cu extends _i{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class uu extends _i{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const hu=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,du=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,fu=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,pu=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function mu(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function gu({uri:e,gatewayUrls:t}){const r=fu.test(e);
8if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=mu(null==t?void 0:t.ipfs,"https://ipfs.io"),i=mu(null==t?void 0:t.arweave,"https://arweave.net"),o=e.match(hu),{protocol:s,subpath:a,target:l,subtarget:c=""}=(null==o?void 0:o.groups)||{},u="ipns:/"===s||"ipns/"===a,h="ipfs:/"===s||"ipfs/"===a||du.test(e);if(e.startsWith("http")&&!u&&!h){let r=e;return(null==t?void 0:t.arweave)&&(r=e.replace(/https:\/\/arweave.net/g,null==t?void 0:t.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((u||h)&&l)return{uri:`${n}/${u?"ipns":"ipfs"}/${l}${c}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&l)return{uri:`${i}/${l}${c||""}`,isOnChain:!1,isEncoded:!1};let d=e.replace(pu,"");if(d.startsWith("<svg")&&(d=`data:image/svg+xml;base64,${btoa(d)}`),d.startsWith("data:")||d.startsWith("{"))return{uri:d,isOnChain:!0,isEncoded:!1};throw new cu({uri:e})}function bu(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new au({data:e});return e.image||e.image_url||e.image_data}async function yu({gatewayUrls:e,uri:t}){const{uri:r,isOnChain:n}=gu({uri:t,gatewayUrls:e});if(n)return r;const i=await async function(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return null==e?void 0:e.startsWith("image/")}return!1}catch(t){return("object"!=typeof t||void 0===t.response)&&!!globalThis.hasOwnProperty("Image")&&new Promise(t=>{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}(r);if(i)return r;throw new cu({uri:t})}async function vu(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,i]=t.split("/"),[o,s]=r.split(":"),[a,l]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new lu({reason:"Only EIP-155 supported"});if(!s)throw new lu({reason:"Chain ID not found"});if(!l)throw new lu({reason:"Contract address not found"});if(!i)throw new lu({reason:"Token ID not found"});if(!a)throw new lu({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:a.toLowerCase(),contractAddress:l,tokenID:i}}(r),i=await async function(e,{nft:t}){if("erc721"===t.namespace)return Mc(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return Mc(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new uu({namespace:t.namespace})}(e,{nft:n}),{uri:o,isOnChain:s,isEncoded:a}=gu({uri:i,gatewayUrls:t});if(s&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){const e=a?atob(o.replace("data:application/json;base64,","")):o;return yu({uri:bu(JSON.parse(e)),gatewayUrls:t})}let l=n.tokenID;"erc1155"===n.namespace&&(l=l.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then(e=>e.json());return await yu({gatewayUrls:e,uri:bu(r)})}catch{throw new cu({uri:t})}}({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,l)})}(e,{gatewayUrls:t,record:r}):yu({uri:r,gatewayUrls:t})}async function wu(e,{blockNumber:t,blockTag:r,name:n,key:i,gatewayUrls:o,strict:s,universalResolverAddress:a}){let l=a;if(!l){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");l=Pc({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s={address:l,abi:yc,functionName:"resolve",args:[co(su(n)),$s({abi:wc,functionName:"text",args:[nu(n),i]})],blockNumber:t,blockTag:r},a=gi(e,Mc,"readContract"),c=o?await a({...s,args:[...s.args,o]}):await a(s);if("0x"===c[0])return null;const u=mc({abi:wc,functionName:"text",data:c[0]});return""===u?null:u}catch(c){if(s)throw c;if(tu(c,"resolve"))return null;throw c}}async function _u(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:s,toBlock:a}={}){const l=i??(n?[n]:void 0),c=Ts(e,{method:"eth_newFilter"});let u=[];l&&(u=[l.flatMap(e=>Os({abi:[e],eventName:e.name,args:r}))],n&&(u=u[0]));const h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?fo(o):o,toBlock:"bigint"==typeof a?fo(a):a,...u.length?{topics:u}:{}}]});return{abi:l,args:r,eventName:n?n.name:void 0,fromBlock:o,id:h,request:c(h),strict:Boolean(s),toBlock:a,type:"event"}}async function Eu(e){const t=Ts(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function Au(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){const o=r?fo(r):void 0;return function(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.olde
8stBlock),reward:null==(t=e.reward)?void 0:t.map(e=>e.map(e=>BigInt(e)))}}(await e.request({method:"eth_feeHistory",params:[fo(t),o||n,i]}))}class xu extends _i{constructor({callbackSelector:e,cause:t,data:r,extraData:n,sender:i,urls:o}){var s;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(null==(s=t.metaMessages)?void 0:s.length)?"":[],"Offchain Gateway Call:",o&&["  Gateway URL(s):",...o.map(e=>`    ${e}`)],`  Sender: ${i}`,`  Data: ${r}`,`  Callback selector: ${e}`,`  Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class ku extends _i{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${t}`,`Response: ${ra(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class Cu extends _i{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function Pu(e,t){if(!ds(e,{strict:!1}))throw new ss({address:e});if(!ds(t,{strict:!1}))throw new ss({address:t});return e.toLowerCase()===t.toLowerCase()}const Iu="0x556f1830",Su={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function Ou(e,{blockNumber:t,blockTag:r,data:n,to:i}){const{args:o}=ta({data:n,abi:[Su]}),[s,a,l,c,u]=o,{ccipRead:h}=e,d=h&&"function"==typeof(null==h?void 0:h.request)?h.request:Mu;try{if(!Pu(i,s))throw new Cu({sender:s,to:i});const n=await d({data:l,sender:s,urls:a}),{data:o}=await Oc(e,{blockNumber:t,blockTag:r,data:fs([c,_s([{type:"bytes"},{type:"bytes"}],[n,u])]),to:i});return o}catch(f){throw new xu({callbackSelector:c,cause:f,data:n,extraData:u,sender:s,urls:a})}}async function Mu({data:e,sender:t,urls:r}){var n;let i=new Error("An unknown error occurred.");for(let s=0;s<r.length;s++){const a=r[s],l=a.includes("{data}")?"GET":"POST",c="POST"===l?{data:e,sender:t}:void 0;try{const r=await fetch(a.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(c),method:l});let o;if(o=(null==(n=r.headers.get("Content-Type"))?void 0:n.startsWith("application/json"))?(await r.json()).data:await r.text(),!r.ok){i=new ka({body:c,details:(null==o?void 0:o.error)?ra(o.error):r.statusText,headers:r.headers,status:r.status,url:a});continue}if(!vi(o)){i=new ku({result:o,url:a});continue}return o}catch(o){i=new ka({body:c,details:o.message,url:a})}}throw i}const Tu=Object.freeze(Object.defineProperty({__proto__:null,ccipRequest:Mu,offchainLookup:Ou,offchainLookupAbiItem:Su,offchainLookupSignature:Iu},Symbol.toStringTag,{value:"Module"}));function Nu(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const Ru=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ju=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Bu(e){const{domain:t={},message:r,primaryType:n}=e,i={EIP712Domain:qu({domain:t}),...e.types};zu({domain:t,message:r,primaryType:n,types:i});const o=["0x1901"];return t&&o.push($u({domain:t,types:i})),"EIP712Domain"!==n&&o.push(Lu({data:r,primaryType:n,types:i})),ts(fs(o))}function $u({domain:e,types:t}){return Lu({data:e,primaryType:"EIP712Domain",types:t})}function Lu({data:e,primaryType:t,types:r}){return ts(Fu({data:e,primaryType:t,types:r}))}function Fu({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],i=[Du({primaryType:t,types:r})];for(const o of r[t]){const[t,s]=Hu({types:r,name:o.name,type:o.type,value:e[o.name]});n.push(t),i.push(s)}return _s(n,i)}function Du({primaryType:e,types:t}){const r=co(function({primaryType:e,types:t}){let r="";
vendor: 7,026 bytes, line 8
8const n=Uu({primaryType:e,types:t});n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i)r+=`${o}(${t[o].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return ts(r)}function Uu({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u),i=null==n?void 0:n[0];if(r.has(i)||void 0===t[i])return r;r.add(i);for(const o of t[i])Uu({primaryType:o.type,types:t},r);return r}function Hu({types:e,name:t,type:r,value:n}){if(void 0!==e[r])return[{type:"bytes32"},ts(Fu({data:n,primaryType:r,types:e}))];if("bytes"===r){return[{type:"bytes32"},ts(n=`0x${(n.length%2?"0":"")+n.slice(2)}`)]}if("string"===r)return[{type:"bytes32"},ts(co(n))];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),o=n.map(r=>Hu({name:t,type:i,types:e,value:r}));return[{type:"bytes32"},ts(_s(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:r},n]}function zu(e){const{domain:t,message:r,primaryType:n,types:i}=e,o=(e,t)=>{for(const r of e){const{name:e,type:n}=r,s=t[e],a=n.match(ju);if(a&&("number"==typeof s||"bigint"==typeof s)){const[e,t,r]=a;fo(s,{signed:"int"===t,size:Number.parseInt(r)/8})}if("address"===n&&"string"==typeof s&&!ds(s))throw new ss({address:s});const l=n.match(Ru);if(l){const[e,t]=l;if(t&&wi(s)!==Number.parseInt(t))throw new $i({expectedSize:Number.parseInt(t),givenSize:wi(s)})}const c=i[n];c&&o(c,s)}};if(i.EIP712Domain&&t&&o(i.EIP712Domain,t),"EIP712Domain"!==n){const e=i[n];o(e,r)}}function qu({domain:e}){return["string"==typeof(null==e?void 0:e.name)&&{name:"name",type:"string"},(null==e?void 0:e.version)&&{name:"version",type:"string"},"number"==typeof(null==e?void 0:e.chainId)&&{name:"chainId",type:"uint256"},(null==e?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(null==e?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}const Gu="/docs/contract/encodeDeployData";function Wu(e){const{abi:t,args:r,bytecode:n}=e;if(!r||0===r.length)return n;const i=t.find(e=>"type"in e&&"constructor"===e.type);if(!i)throw new Ai({docsPath:Gu});if(!("inputs"in i))throw new xi({docsPath:Gu});if(!i.inputs||0===i.inputs.length)throw new xi({docsPath:Gu});return ms([n,_s(i.inputs,r)])}function Vu(e,t="hex"){const r=Zu(e),n=Gs(new Uint8Array(r.length));return r.encode(n),"hex"===t?ho(n.bytes):n.bytes}function Zu(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),r=Ku(t);return{length:t<=55?1+t:1+r+t,encode(n){t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t));for(const{encode:t}of e)t(n)}}}(e.map(e=>Zu(e))):function(e){const t="string"==typeof e?_o(e):e,r=Ku(t.length),n=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length;return{length:n,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function Ku(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new _i("Length is too large.")}const Ju={"0x0":"reverted","0x1":"success"};function Yu(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>hc(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?so(e.transactionIndex):null,status:e.status?Ju[e.status]:null,type:e.type?xl[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const Qu=dl("transactionReceipt",Yu),Xu="�Ethereum Signed Message:\n";function eh(e,t){const r="string"==typeof e?Ao(e):e.raw instanceof Uint8Array?e.raw:bo(e.raw);return ts(fs([Ao(`${Xu}${r.length}`),r]),t)}function th(e){const{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:n,to:i}=e;if(t<=0)throw new Cc({chainId:t});if(i&&!ds(i))throw new ss({address:i});if(n&&n>2n**256n-1n)throw new Xa({maxFeePerGas:n});if(r&&n&&r>n)throw new ll({maxFeePerGas:n,maxPriorityFeePerGas:r})}function rh(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:o}=e;if(t<=0)throw new Cc({chainId:t});if(o&&!ds(o))throw new ss({address:o});if(r||i)throw new _i("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new Xa({maxFeePerGas:n})}function nh(e){const{chainId:t,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:o,accessList:s}=e;if(o&&!ds(o))throw new ss({address:o});if(void 0!==t&&t<=0)throw new Cc({chainId:t});if(r||i)throw new _i("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new Xa({maxFeePerGas:n});if(s)throw new _i("`accessList` is not a valid Legacy Transaction attribute.")}function ih(e){if(!e||0===e.length)return[];const t=[];for(let r=0;r<e.length;r++){const{address:n,storageKeys:i}=e[r];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new ga({storageKey:i[e]});if(!ds(n,{strict:!1}))throw new ss({address:n});t.push([n,i])}return t}function oh(e,t){const r=rc(e);return"eip1559"===r?function(e,t){const{chainId:r,gas:n,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:l,accessList:c,data:u}=e;th(e);const h=ih(c),d=[co(r),i?co(i):"0x",l?co(l):"0x",a?co(a):"0x",n?co(n):"0x",o??"0x",s?co(s):"0x",u??"0x",h,...sh(e,t)];return ms(["0x02",Vu(d)])}(e,t):"eip2930"===r?function(e,t){const{chainId:r,gas:n,data:i,nonce:o,to:s,value:a,accessList:l,gasPrice:c}=e;rh(e);const u=ih(l),h=[co(r),o?co(o):"0x",c?co(c):"0x",n?co(n):"0x",s??"0x",a?co(a):"0x",i??"0x",u,...sh(e,t)];return ms(["0x01",Vu(h)])}(e,t):"eip4844"===r?function(e,t){const{chainId:r,gas:n,nonce:i,to:o,value:s,maxFeePerBlobGas:a,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:h}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new Yl;for(const e of t){const t=wi(e),r=so(gs(e,0,1));if(32!==t)throw new Ql({hash:e,size:t});if(1!==r)throw new Xl({hash:e,version:r})}}th(e)}(e);let d=e.blobVersionedHashes,f=e.sidecars;if(e.blobs&&(void 0===d||void 0===f)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>ho(e)),r=e.kzg,n=Rl({blobs:t,kzg:r});if(void 0===d&&(d=Wl({commitments:n})),void 0===f){f=tc({blobs:t,commitments:n,proofs:jl({blobs:t,commitments:n,kzg:r})})}}const p=ih(u),m=[co(r),i?co(i):"0x",c?co(c):"0x",l?co(l):"0x",n?co(n):"0x",o??"0x",s?co(s):"0x",h??"0x",p,a?co(a):"0x",d??[],...sh(e,t)],g=[],b=[],y=[];if(f)for(let v=0;v<f.length;v++){const{blob:e,commitment:t,proof:r}=f[v];g.push(e),b.push(t),y.push(r)}return ms(["0x03",Vu(f?[m,g,b,y]:m)])}(e,t):function(e,t){const{chainId:r=0,gas:n,data:i,nonce:o,to:s,value:a,gasPrice:l}=e;nh(e);let c=[o?co(o):"0x",l?co(l):"0x",n?co(n):"0x",s??"0x",a?co(a):"0x",i??"0x"];if(t){const e=(()=>
8{if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new pa({v:t.v});return e})();c=[...c,co(e),t.r,t.s]}else r>0&&(c=[...c,co(r),"0x","0x"]);return Vu(c)}(e,t)}function sh(e,t){const{r:r,s:n,v:i,yParity:o}=t??e;if(void 0===r)return[];if(void 0===n)return[];if(void 0===i&&void 0===o)return[];return["number"==typeof o?o?co(1):"0x":0n===i?"0x":1n===i?co(1):27n===i?"0x":co(1),to(r),to(n)]}async function ah(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){const o=n??"latest",s=void 0!==r?fo(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?so(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map(e=>({...e,value:BigInt(e.value)}))):void 0};var t}(await e.request({method:"eth_getProof",params:[t,i,s||o]}))}async function lh(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:o}){var s,a,l;const c=n||"latest",u=void 0!==r?fo(r):void 0;let h=null;if(h=i?await e.request({method:"eth_getTransactionByHash",params:[i]}):t?await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,fo(o)]}):await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,fo(o)]}),!h)throw new ba({blockHash:t,blockNumber:r,blockTag:c,hash:i,index:o});return((null==(l=null==(a=null==(s=e.chain)?void 0:s.formatters)?void 0:a.transaction)?void 0:l.format)||kl)(h)}async function ch(e,{hash:t}){var r,n,i;const o=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!o)throw new ya({hash:t});return((null==(i=null==(n=null==(r=e.chain)?void 0:r.formatters)?void 0:n.transactionReceipt)?void 0:i.format)||Yu)(o)}const uh=BigInt(0),hh=BigInt(1),dh=BigInt(2),fh=e=>e instanceof Uint8Array,ph=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));
9/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function mh(e){if(!fh(e))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=ph[e[r]];return t}function gh(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function bh(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function yh(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(t/2);for(let n=0;n<r.length;n++){const t=2*n,i=e.slice(t,t+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");r[n]=o}return r}function vh(e){return bh(mh(e))}function wh(e){if(!fh(e))throw new Error("Uint8Array expected");return bh(mh(Uint8Array.from(e).reverse()))}function _h(e,t){return yh(e.toString(16).padStart(2*t,"0"))}function Eh(e,t){return _h(e,t).reverse()}function Ah(e,t,r){let n;if("string"==typeof t)try{n=yh(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!fh(t))throw new Error(`${e} must be hex string or Uint8Array`);n=Uint8Array.from(t)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${e} expected ${r} bytes, got ${i}`);return n}function xh(...e){const t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));let r=0;return e.forEach(e=>{if(!fh(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}function kh(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const Ch=e=>(dh<<BigInt(e-1))-hh,Ph=e=>new Uint8Array(e),Ih=e=>Uint8Array.from(e);function Sh(e,t,r){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=Ph(e),i=Ph(e),o=0;const s=()=>{n.fill(1),i.fill(0),o=0},a=(...e)=>r(i,n,...e),l=(e=Ph())=>{i=a(Ih([0]),e),n=a(),0!==e.length&&(i=a(Ih([1]),e),n=a())},c=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const r=[];for(;e<t;){n=a();const t=n.slice();r.push(t),e+=n.length}return xh(...r)};return(e,t)=>{let r;for(s(),l(e);!(r=t(c()));)l();return s(),r}}const Oh={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function Mh(e,t,r={}){const n=(t,r,n)=>{const i=Oh[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const o=e[t];if(!(n&&void 0===o||i(o,e)))throw new Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(const[i,o]of Object.entries(t))n(i,o,!1);for(const[i,o]of Object.entries(r))n(i,o,!0);return e}const Th=Object.freeze(Object.defineProperty({__proto__:null,bitGet:function(e,t){return e>>BigInt(t)&hh},bitLen:function(e){let t;for(t=0;e>uh;e>>=hh,t+=1);return t},bitMask:Ch,bitSet:(e,t,r)=>e|(r?hh:uh)<<BigInt(t),bytesToHex:mh,bytesToNumberBE:vh,bytesToNumberLE:wh,concatBytes:xh,createHmacDrbg:Sh,ensureBytes:Ah,equalBytes:kh,hexToBytes:yh,hexToNumber:bh,numberToBytesBE:_h,numberToBytesLE:Eh,numberToHexUnpadded:gh,numberToVarBytesBE:function(e){return yh(gh(e))},utf8ToBytes:function(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))},validateObject:Mh},Symbol.toStringTag,{value:"Module"}));
10/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
11const Nh=BigInt(0),Rh=BigInt(1),jh=BigInt(2),Bh=BigInt(3),$h=BigInt(4),Lh=BigInt(5),Fh=BigInt(8);function Dh(e,t){const r=e%t;return r>=Nh?r:t+r}function Uh(e,t,r){if(r<=Nh||t<Nh)throw new Error("Expected power/modulo > 0");if(r===Rh)return Nh;let n=Rh;for(;t>Nh;)t&Rh&&(n=n*e%r),e=e*e%r,t>>=Rh;return n}function Hh(e,t,r){let n=e;for(;t-- >Nh;)n*=n,n%=r;return n}function zh(e,t){if(e===Nh||t<=Nh)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=Dh(e,t),n=t,i=Nh,o=Rh;for(;r!==Nh;){const e=n%r,t=i-o*(n/r);n=r,r=e,i=o,o=t}if(n!==Rh)throw new Error("invert: does not exist");return Dh(i,t)}function qh(e){if(e%$h===Bh){const t=(e+Rh)/$h;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}
11if(e%Fh===Lh){const t=(e-Lh)/Fh;return function(e,r){const n=e.mul(r,jh),i=e.pow(n,t),o=e.mul(r,i),s=e.mul(e.mul(o,jh),i),a=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),r))throw new Error("Cannot find square root");return a}}return function(e){const t=(e-Rh)/jh;let r,n,i;for(r=e-Rh,n=0;r%jh===Nh;r/=jh,n++);for(i=jh;i<e&&Uh(i,t,e)!==e-Rh;i++);if(1===n){const t=(e+Rh)/$h;return function(e,r){const n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw new Error("Cannot find square root");return n}}const o=(r+Rh)/jh;return function(e,s){if(e.pow(s,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let a=n,l=e.pow(e.mul(e.ONE,i),r),c=e.pow(s,o),u=e.pow(s,r);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(u);t<a&&!e.eql(n,e.ONE);t++)n=e.sqr(n);const r=e.pow(l,Rh<<BigInt(a-t-1));l=e.sqr(r),c=e.mul(c,r),u=e.mul(u,l),a=t}return c}}(e)}BigInt(9),BigInt(16);const Gh=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Wh(e,t){const r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function Vh(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Zh(e){const t=Vh(e);return t+Math.ceil(t/2)}
12/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
13const Kh=BigInt(0),Jh=BigInt(1);function Yh(e){return Mh(e.Fp,Gh.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),Mh(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Wh(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}
14/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const{bytesToNumberBE:Qh,hexToBytes:Xh}
vendor: 14,994 bytes, lines 14-16
14=Th,ed={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){const{Err:t}=ed;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Qh(n),l:e.subarray(r+2)}},toSig(e){const{Err:t}=ed,r="string"==typeof e?Xh(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:i,l:o}=ed._parseInt(r.subarray(2)),{d:s,l:a}=ed._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,s=i.length/2,a=r(o),l=r(s);return`30${r(s+o+4)}02${l}${i}02${a}${n}`}},td=BigInt(0),rd=BigInt(1);BigInt(2);const nd=BigInt(3);function id(e){const t=function(e){const t=Yh(e);Mh(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{const i=t.toAffine();return xh(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=t.fromBytes||(e=>{const t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function o(e){const{a:n,b:i}=t,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(e){return"bigint"==typeof e&&td<e&&e<t.n}function a(e){if(!s(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){const{allowedPrivateKeyLengths:r,nByteLength:n,wrapPrivateKey:i,n:o}=t;if(r&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=mh(e)),"string"!=typeof e||!r.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*n,"0")}let s;try{s="bigint"==typeof e?e:vh(Ah("private key",e,n))}catch(l){throw new Error(`private key must be ${n} bytes, hex or bigint, not ${typeof e}`)}return i&&(s=Dh(s,o)),a(s),s}const c=new Map;function u(e){if(!(e instanceof h))throw new Error("ProjectivePoint expected")}class h{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw new Error("x required");if(null==t||!r.isValid(t))throw new Error("y required");if(null==n||!r.isValid(n))throw new Error("z required")}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof h)throw new Error("projective point not allowed");const i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?h.ZERO:new h(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(h.fromAffine)}static fromHex(e){const t=h.fromAffine(i(Ah("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return h.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=o(e);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){u(e);const{px:t,py:n,pz:i}=this,{px:o,py:s,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(o,i)),c=r.eql(r.mul(n,a),r.mul(s,i));return l&&c}negate(){return new h(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,nd),{px:o,py:s,pz:a}=this;let l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(o,o),f=r.mul(s,s),p=r.mul(a,a),m=r.mul(o,s);return m=r.add(m,m),u=r.mul(o,a),u=r.add(u,u),l=r.mul(e,u),c=r.mul(i,p),c=r.add(l,c),l=r.sub(f,c),c=r.add(f,c),c=r.mul(l,c),l=r.mul(m,l),u=r.mul(i,u),p=r.mul(e,p),m=r.sub(d,p),m=r.mul(e,m),m=r.add(m,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,m),c=r.add(c,d),p=r.mul(s,a),p=r.add(p,p),d=r.mul(p,m),l=r.sub(l,d),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new h(l,c,u)}add(e){u(e);const{px:n,py:i,pz:o}=this,{px:s,py:a,pz:l}=e;let c=r.ZERO,d=r.ZERO,f=r.ZERO;const p=t.a,m=r.mul(t.b,nd);let g=r.mul(n,s),b=r.mul(i,a),y=r.mul(o,l),v=r.add(n,i),w=r.add(s,a);v=r.mul(v,w),w=r.add(g,b),v=r.sub(v,w),w=r.add(n,o);let _=r.add(s,l);return w=r.mul(w,_),_=r.add(g,y),w=r.sub(w,_),_=r.add(i,o),c=r.add(a,l),_=r.mul(_,c),c=r.add(b,y),_=r.sub(_,c),f=r.mul(p,w),c=r.mul(m,y),f=r.add(c,f),c=r.sub(b,f),f=r.add(b,f),d=r.mul(c,f),b=r.add(g,g),b=r.add(b,g),y=r.mul(p,y),w=r.mul(m,w),b=r.add(b,y),y=r.sub(g,y),y=r.mul(p,y),w=r.add(w,y),g=r.mul(b,w),d=r.add(d,g),g=r.mul(_,w),c=r.mul(v,c),c=r.sub(c,g),g=r.mul(v,b),f=r.mul(_,f),f=r.add(f,g),new h(c,d,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(h.ZERO)}wNAF(e){return f.wNAFCached(this,c,e,e=>{const t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(h.fromAffine)})}multiplyUnsafe(e){const n=h.ZERO;if(e===td)return n;if(a(e),e===rd)return this;const{endo:i}=t;if(!i)return f.unsafeLadder(this,e);let{k1neg:o,k1:s,k2neg:l,k2:c}=i.splitScalar(e),u=n,d=n,p=this;for(;s>td||c>td;)s&rd&&(u=u.add(p)),c&rd&&(d=d.add(p)),p=p.double(),s>>=rd,c>>=rd;return o&&(u=u.negate()),l&&(d=d.negate()),d=new h(r.mul(d.px,i.beta),d.py,d.pz),u.add(d)}multiply(e){a(e);let n,i,o=e;const{endo:s}=t;if(s){const{k1neg:e,k1:t,k2neg:a,k2:l}=s.splitScalar(o);let{p:c,f:u}=this.wNAF(t),{p:d,f:p}=this.wNAF(l);c=f.constTimeNegate(e,c),d=f.constTimeNegate(a,d),d=new h(r.mul(d.px,s.beta),d.py,d.pz),n=c.add(d),i=u.add(p)}else{const{p:e,f:t}=this.wNAF(o);n=e,i=t}return h.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){const n=h.BASE,i=(e,t)=>t!==td&&t!==rd&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){const{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));const s=r.mul(t,e),a=r.mul(n,e),l=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw new Error("invZ was invalid");return{x:s,y:a}}isTorsionFree(){const{h:e,isTorsionFree:r}=t;if(e===rd)return!0;if(r)return r(h,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:r}=t;return e===rd?this:r?r(h,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(h,this,e)}toHex(e=!0){return mh(this.toRawBytes(e))}}h.BASE=new h(t.Gx,t.Gy,r.ONE),h.ZERO=new h(r.ZERO,r.ONE,r.ZERO);const d=t.nBitLength,f=function(e,t){const r=(e,t)=>{const r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;for(;r>Kh;)r&Jh&&(n=n.add(i)),i=i.double(),r>>=Jh;return n},precomputeWindow(e,t){const{windows:r,windowSize:i}=n(t),o=[];let s=e,a=s;for(let n=0;n<r;n++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(t,i,o){const{windows:s,windowSize:a}=n(t);let l=e.ZERO,c=e.BASE;const u=BigInt(2**t-1),h=2**t,d=BigInt(t);for(let e=0;e<s;e++){const t=e*a;let n=Number(o&u);o>>=d,n>a&&(n-=h,o+=Jh);const s=t,f=t+Math.abs(n)-1,p=e%2!=0,m=n<0;0===n?c=c.add(r(p,i[s])):l=l.add(r(m,i[f]))}return{p:l,f:c}},wNAFCached(e,t,r,n){const i=e._WINDOW_SIZE||1;let o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}(h,t.endo?Math.ceil(d/2):d);return{CURVE:t,ProjectivePoint:h,normPrivateKeyToScalar:l,weierstrassEquation:o,isWithinCurveOrder:s}}function od(e){const t=function(e){const t=Yh(e);return Mh(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function s(e){return Dh(e,n)}function a(e){return zh(e,n)}const{ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:h}=id({...t,toBytes(e,t,n){const i=t.toAffine(),o=r.toBytes(i.x),s=xh;return n?s(Uint8Array.from([t.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){const t=e.length,n=e[0],s=e.subarray(1);if(t!==i||2!==n&&3!==n){if(t===o&&4===n){return{x:r.fromBytes(s.subarray(0,r.BYTES)),y:r.fromBytes(s.subarray(r.BYTES,2*r.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}{const e=vh(s);if(!(td<(a=e)&&a<r.ORDER))throw new Error("Point is not on curve");const t=u(e);let i=r.sqrt(t);return!(1&~n)!==((i&rd)===rd)&&(i=r.neg(i)),{x:e,y:i}}var a}}),d=e=>mh(_h(e,t.nByteLength));function f(e){return e>n>>rd}const p=(e,t,r)=>vh(e.slice(t,r));class m{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){const r=t.nByteLength;return e=Ah("compactSignature",e,2*r),new m(p(e,0,r),p(e,r,2*r))}static fromDER(e){const{r:t,s:r}=ed.toSig(Ah("DER",e));return new m(t,r)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new m(this.r,this.s,e)}recoverPublicKey(e){const{r:n,s:i,recovery:o}=this,c=v(Ah("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?n+t.n:n;if(u>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const h=1&o?"03":"02",f=l.fromHex(h+d(u)),p=a(u),m=s(-c*p),g=s(i*p),b=l.BASE.multiplyAndAddUnsafe(f,m,g);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return f(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return yh(this.toDERHex())}toDERHex(){return ed.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return yh(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}const g={isValidPrivateKey(e){try{return c(e),!0}catch(t){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{const e=Zh(t.n);return function(e,t,r=!1){const n=e.length,i=Vh(t),o=Zh(t);if(n<16||n<o||n>1024)throw new Error(`expected ${o}-1024 bytes of input, got ${n}`);const s=Dh(r?vh(e):wh(e),t-Rh)+Rh;return r?Eh(s,i):_h(s,i)}(t.randomBytes(e),t.n)},precompute:(e=8,t=l.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function b(e){const t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof l}const y=t.bits2int||function(e){const r=vh(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},v=t.bits2int_modN||function(e){return s(y(e))},w=Ch(t.nBitLength);function _(e){if("bigint"!=typeof e)throw new Error("bigint expected");if(!(td<=e&&e<w))throw new Error(`bigint expected < 2^${t.nBitLength}`);return _h(e,t.nByteLength)}function E(e,n,i=A){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:u}=t;let{lowS:d,prehash:p,extraEntropy:g}=i;null==d&&(d=!0),e=Ah("msgHash",e),p&&(e=Ah("prehashed msgHash",o(e)));const b=v(e),w=c(n),E=[_(w),_(b)];if(null!=g){const e=!0===g?u(r.BYTES):g;E.push(Ah("extraEntropy",e))}const x=xh(...E),k=b;return{seed:x,k2sig:function(e){const t=y(e);if(!h(t))return;const r=a(t),n=l.BASE.multiply(t).toAffine(),i=s(n.x);if(i===td)return;const o=s(r*s(k+i*w));if(o===td)return;let c=(n.x===i?0:2)|Number(n.y&rd),u=o;return d&&f(o)&&(u=function(e){return f(e)?s(-e):e}(o),c^=1),new m(i,u,c)}}}const A={lowS:t.lowS,prehash:!1},x={lowS:t.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(b(e))throw new Error("first arg must be private key");if(!b(t))throw new Error("second arg must be public key");return l.fromHex(t).multiply(c(e)).toRawBytes(r)},sign:function(e,r,n=A){const{seed:i,k2sig:o}=E(e,r,n),s=t;return Sh(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(e,r,n,i=x){var o;const c=e;if(r=Ah("msgHash",r),n=Ah("publicKey",n),"strict"in i)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:h}=i;let d,f;try{if("string"==typeof c||c instanceof Uint8Array)try{d=m.fromDER(c)}catch(A){if(!(A instanceof ed.Err))throw A;d=m.fromCompact(c)}else{if("object"!=typeof c||"bigint"!=typeof c.r||"bigint"!=typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new m(e,t)}}f=l.fromHex(n)}catch(k){if("PARSE"===k.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&d.hasHighS())return!1;h&&(r=t.hash(r));const{r:p,s:g}=d,b=v(r),y=a(g),w=s(b*y),_=s(p*y),E=null==(o=l.BASE.multiplyAndAddUnsafe(f,w,_))?void 0:o.toAffine();return!!E&&s(E.x)===p},ProjectivePoint:l,Signature:m,utils:g}}BigInt(4);class sd extends $o{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");xo(e.outputLen),xo(e.blockLen)}(e);const r=Bo(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),i.fill(0)}update(e){return Co(this),this.iHash.update(e),this}digestInto(e){Co(this),ko(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const ad=(e,t,r)=>new sd(e,t).update(r).digest();
15/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
16function ld(e){return{hash:e,hmac:(t,...r)=>ad(e,t,function(...e){const t=new Uint8Array(e.reduce((e,t)=>
16e+t.length,0));let r=0;return e.forEach(e=>{if(!No(e))throw new Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}(...r)),randomBytes:Fo}}ad.create=(e,t)=>new sd(e,t);
17/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
18const cd=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ud=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),hd=BigInt(1),dd=BigInt(2),fd=(e,t)=>(e+t/dd)/t;const pd=function(e,t,r=!1,n={}){if(e<=Nh)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=Wh(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=qh(e),a=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:Ch(i),ZERO:Nh,ONE:Rh,create:t=>Dh(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return Nh<=t&&t<e},is0:e=>e===Nh,isOdd:e=>(e&Rh)===Rh,neg:t=>Dh(-t,e),eql:(e,t)=>e===t,sqr:t=>Dh(t*t,e),add:(t,r)=>Dh(t+r,e),sub:(t,r)=>Dh(t-r,e),mul:(t,r)=>Dh(t*r,e),pow:(e,t)=>function(e,t,r){if(r<Nh)throw new Error("Expected power > 0");if(r===Nh)return e.ONE;if(r===Rh)return t;let n=e.ONE,i=t;for(;r>Nh;)r&Rh&&(n=e.mul(n,i)),i=e.sqr(i),r>>=Rh;return n}(a,e,t),div:(t,r)=>Dh(t*zh(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>zh(t,e),sqrt:n.sqrt||(e=>s(a,e)),invertBatch:e=>function(e,t){const r=new Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r}(a,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?Eh(e,o):_h(e,o),fromBytes:e=>{if(e.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return r?wh(e):vh(e)}});return Object.freeze(a)}(cd,void 0,void 0,{sqrt:function(e){const t=cd,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),l=BigInt(88),c=e*e*e%t,u=c*c*e%t,h=Hh(u,r,t)*u%t,d=Hh(h,r,t)*u%t,f=Hh(d,dd,t)*c%t,p=Hh(f,i,t)*f%t,m=Hh(p,o,t)*p%t,g=Hh(m,a,t)*m%t,b=Hh(g,l,t)*g%t,y=Hh(b,a,t)*m%t,v=Hh(y,r,t)*u%t,w=Hh(v,s,t)*p%t,_=Hh(w,n,t)*c%t,E=Hh(_,dd,t);if(!pd.eql(pd.sqr(E),e))throw new Error("Cannot find square root");return E}}),md=function(e,t){const r=t=>od({...e,...ld(t)});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:pd,n:ud,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=ud,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-hd*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),a=fd(o*e,t),l=fd(-n*e,t);let c=Dh(e-a*r-l*i,t),u=Dh(-a*n-l*o,t);const h=c>s,d=u>s;if(h&&(c=t-c),d&&(u=t-u),c>s||u>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:h,k1:c,k2neg:d,k2:u}}}},zl);function gd({r:e,s:t,v:r,yParity:n}){const i=(()=>{if(0===n||1===n)return n;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})();return`0x${new md.Signature(io(e),io(t)).toCompactHex()}${0===i?"1b":"1c"}`}async function bd(e,{address:t,hash:r,signature:n,...i}){const o=vi(n)?n:"object"==typeof n&&"r"in n&&"s"in n?gd(n):ho(n);try{const{data:n}=await gi(e,Oc,"call")({data:Wu({abi:Ec,args:[t,r,o],bytecode:
vendor: 3,588 bytes, line 18
18"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"
18}),...i});return a="0x1",kh(vi(s=n??"0x0")?bo(s):s,vi(a)?bo(a):a)}catch(l){if(l instanceof wa)return!1;throw l}var s,a}function yd(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:o,pollingInterval:s=e.pollingInterval}){let a;return(void 0!==o?o:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
18onfig.type))?jc(ra(["watchBlockNumber",e.uid,t,r,s]),{onBlockNumber:n,onError:i},n=>$c(async()=>{var t;try{const t=await gi(e,Uc,"getBlockNumber")({cacheTime:0});if(a){if(t===a)return;if(t-a>1&&r)for(let e=a+1n;e<t;e++)n.onBlockNumber(e,a),a=e}(!a||t>a)&&(n.onBlockNumber(t,a),a=t)}catch(i){null==(t=n.onError)||t.call(n,i)}},{emitOnBegin:t,interval:s})):jc(ra(["watchBlockNumber",e.uid,t,r]),{onBlockNumber:n,onError:i},t=>{let r=!0,n=()=>r=!1;return(async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){var n;if(!r)return;const i=io(null==(n=e.result)?void 0:n.number);t.onBlockNumber(i,a),a=i},onError(e){var r;null==(r=t.onError)||r.call(t,e)}});n=o,r||n()}catch(o){null==i||i(o)}})(),()=>n()})}BigInt(0),md.ProjectivePoint;const vd=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,wd=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function _d(e,t){const{address:r,domain:n,message:i,nonce:o,scheme:s,signature:a,time:l=new Date,...c}=t,u=function(e){var t,r,n;const{scheme:i,statement:o,...s}=(null==(t=e.match(vd))?void 0:t.groups)??{},{chainId:a,expirationTime:l,issuedAt:c,notBefore:u,requestId:h,...d}=(null==(r=e.match(wd))?void 0:r.groups)??{},f=null==(n=e.split("Resources:")[1])?void 0:n.split("\n- ").slice(1);return{...s,...d,...a?{chainId:Number(a)}:{},...l?{expirationTime:new Date(l)}:{},...c?{issuedAt:new Date(c)}:{},...u?{notBefore:new Date(u)}:{},...h?{requestId:h}:{},...f?{resources:f}:{},...i?{scheme:i}:{},...o?{statement:o}:{}}}(i);if(!u.address)return!1;const h=function(e){const{address:t,domain:r,message:n,nonce:i,scheme:o,time:s=new Date}=e;if(r&&n.domain!==r)return!1;if(i&&n.nonce!==i)return!1;if(o&&n.scheme!==o)return!1;if(n.expirationTime&&s>=n.expirationTime)return!1;if(n.notBefore&&s<n.notBefore)return!1;try{if(!n.address)return!1;if(t&&!Pu(n.address,t))return!1}catch{return!1}return!0}({address:r,domain:n,message:u,nonce:o,scheme:s,time:l});if(!h)return!1;const d=eh(i);return bd(e,{address:u.address,hash:d,signature:a,...c})}function Ed(e){return{call:t=>Oc(e,t),createBlockFilter:()=>async function(e){const t=Ts(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}(e),createContractEventFilter:t=>Ns(e,t),createEventFilter:t=>_u(e,t),createPendingTransactionFilter:()=>Eu(e),estimateContractGas:t=>async function(e,t){const{abi:r,address:n,args:i,functionName:o,...s}=t,a=$s({abi:r,args:i,functionName:o});try{return await gi(e,sc,"estimateGas")({data:a,to:n,...s})}catch(l){const e=s.account?Rs(s.account):void 0;throw Ja(l,{abi:r,address:n,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:null==e?void 0:e.address})}}(e,t),estimateGas:t=>sc(e,t),getBalance:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest"}){const i=r?fo(r):void 0,o=await e.request({method:"eth_getBalance",params:[t,i||n]});return BigInt(o)}(e,t),getBlobBaseFee:()=>async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}(e),getBlock:t=>Sl(e,t),getBlockNumber:t=>Uc(e,t),getBlockTransactionCount:t=>async function(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const i=void 0!==r?fo(r):void 0;let o;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]}),so(o)}(e,t),getBytecode:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest"}){const i=void 0!==r?fo(r):void 0,o=await e.request({method:"eth_getCode",params:[t,i||n]});if("0x"!==o)return o}(e,t),getChainId:()=>nc(e),getContractEvents:t=>fc(e,t),getEnsAddress:t=>async function(e,{blockNumber:t,blockTag:r,coinType:n,name:i,gatewayUrls:o,strict:s,universalResolverAddress:a}){let l=a;if(!l){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");l=Pc({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const s=$s({abi:_c,functionName:"addr",...null!=n?{args:[nu(i),BigInt(n)]}:{args:[nu(i)]}}),a={address:l,abi:yc,functionName:"resolve",args:[co(su(i)),s],blockNumber:t,blockTag:r},c=gi(e,Mc,"readContract"),u=o?await c({...a,args:[...a.args,o]}):await c(a);if("0x"===u[0])return null;const h=mc({abi:_c,args:null!=n?[nu(i),BigInt(n)]:void 0,functionName:"addr",data:u[0]});return"0x"===h||"0x00"===to(h)?null:h}catch(c){if(s)throw c;if(tu(c,"resolve"))return null;throw c}}(e,t),getEnsAvatar:t=>async function(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:o,strict:s,universalResolverAddress:a}){const l=await gi(e,wu,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:a,gatewayUrls:o,strict:s});if(!l)return null;try{return await vu(e,{record:l,gatewayUrls:n})}catch{return null}}(e,t),getEnsName:t=>async function(e,{address:t,blockNumber:r,blockTag:n,gatewayUrls:i,strict:o,universalResolverAddress:s}){let a=s;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Pc({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const l=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const o={address:a,abi:vc,functionName:"reverse",args:[co(su(l))],blockNumber:r,blockTag:n},s=gi(e,Mc,"readContract"),[c,u]=i?await s({...o,args:[...o.args,i]}):await s(o);return t.toLowerCase()!==u.toLowerCase()?null:c}catch(c){if(o)throw c;if(tu(c,"reverse"))return null;throw c}}(e,t),getEnsResolver:t=>async function(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=Pc({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[s]=await gi(e,Mc,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[co(su(n))],blockNumber:t,blockTag:r});return s}(e,t),getEnsText:t=>wu(e,t),getFeeHistory:t=>Au(e,t),estimateFeesPerGas:t=>async function(e,t){return Tl(e,t)}(e,t),getFilterChanges:e=>Hc(0,e),getFilterLogs:e=>async function(e,{filter:t}){const r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>hc(e));return t.abi?uc({abi:t.abi,logs:n,strict:r}):n}(0,e),getGasPrice:()=>
18Ol(e),getLogs:t=>dc(e,t),getProof:t=>ah(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return Ml(e,t)}(e,t),getStorageAt:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){const o=void 0!==r?fo(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||n]})}(e,t),getTransaction:t=>lh(e,t),getTransactionConfirmations:t=>async function(e,{hash:t,transactionReceipt:r}){const[n,i]=await Promise.all([gi(e,Uc,"getBlockNumber")({}),t?gi(e,lh,"getBlockNumber")({hash:t}):void 0]),o=(null==r?void 0:r.blockNumber)||(null==i?void 0:i.blockNumber);return o?n-o+1n:0n}(e,t),getTransactionCount:t=>Nl(e,t),getTransactionReceipt:t=>ch(e,t),multicall:t=>async function(e,t){var r;const{allowFailure:n=!0,batchSize:i,blockNumber:o,blockTag:s,multicallAddress:a,stateOverride:l}=t,c=t.contracts,u=i??("object"==typeof(null==(r=e.batch)?void 0:r.multicall)&&e.batch.multicall.batchSize||1024);let h=a;if(!h){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");h=Pc({blockNumber:o,chain:e.chain,contract:"multicall3"})}const d=[[]];let f=0,p=0;for(let y=0;y<c.length;y++){const{abi:e,address:t,args:r,functionName:i}=c[y];try{const n=$s({abi:e,args:r,functionName:i});p+=(n.length-2)/2,u>0&&p>u&&d[f].length>0&&(f++,p=(n.length-2)/2,d[f]=[]),d[f]=[...d[f],{allowFailure:!0,callData:n,target:t}]}catch(b){const o=Ja(b,{abi:e,address:t,args:r,docsPath:"/docs/contract/multicall",functionName:i});if(!n)throw o;d[f]=[...d[f],{allowFailure:!0,callData:"0x",target:t}]}}const m=await Promise.allSettled(d.map(t=>gi(e,Mc,"readContract")({abi:gc,address:h,args:[t],blockNumber:o,blockTag:s,functionName:"aggregate3",stateOverride:l}))),g=[];for(let y=0;y<m.length;y++){const e=m[y];if("rejected"===e.status){if(!n)throw e.reason;for(let t=0;t<d[y].length;t++)g.push({status:"failure",error:e.reason,result:void 0});continue}const t=e.value;for(let r=0;r<t.length;r++){const{returnData:e,success:i}=t[r],{callData:o}=d[y][r],{abi:s,address:a,functionName:l,args:u}=c[g.length];try{if("0x"===o)throw new Ci;if(!i)throw new xa({data:e});const t=mc({abi:s,args:u,data:e,functionName:l});g.push(n?{result:t,status:"success"}:t)}catch(b){const e=Ja(b,{abi:s,address:a,args:u,docsPath:"/docs/contract/multicall",functionName:l});if(!n)throw e;g.push({error:e,result:void 0,status:"failure"})}}}if(g.length!==c.length)throw new _i("multicall results mismatch");return g}(e,t),prepareTransactionRequest:t=>oc(e,t),readContract:t=>Mc(e,t),sendRawTransaction:t=>async function(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}(e,t),simulateContract:t=>async function(e,t){const{abi:r,address:n,args:i,dataSuffix:o,functionName:s,...a}=t,l=a.account?Rs(a.account):e.account,c=$s({abi:r,args:i,functionName:s});try{const{data:u}=await gi(e,Oc,"call")({batch:!1,data:`${c}${o?o.replace("0x",""):""}`,to:n,...a,account:l});return{result:mc({abi:r,args:i,functionName:s,data:u||"0x"}),request:{abi:r.filter(e=>"name"in e&&e.name===t.functionName),address:n,args:i,dataSuffix:o,functionName:s,...a,account:l}}}catch(u){throw Ja(u,{abi:r,address:n,args:i,docsPath:"/docs/contract/simulateContract",functionName:s,sender:null==l?void 0:l.address})}}(e,t),verifyMessage:t=>async function(e,{address:t,message:r,signature:n,...i}){return bd(e,{address:t,hash:eh(r),signature:n,...i})}(e,t),verifySiweMessage:t=>_d(e,t),verifyTypedData:t=>async function(e,t){const{address:r,signature:n,message:i,primaryType:o,types:s,domain:a,...l}=t;return bd(e,{address:r,hash:Bu({message:i,primaryType:o,types:s,domain:a}),signature:n,...l})}(e,t),uninstallFilter:e=>zc(0,e),waitForTransactionReceipt:t=>async function(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,retryCount:o=6,retryDelay:s=({count:e})=>200*(1<<e),timeout:a}){const l=ra(["waitForTransactionReceipt",e.uid,r]);let c,u,h,d=0,f=!1;return new Promise((p,m)=>{a&&setTimeout(()=>m(new va({hash:r})),a);const g=jc(l,{onReplaced:n,resolve:p,reject:m},n=>{const a=gi(e,yd,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){const l=e=>{a(),e(),g()};let p=i;if(!f){d>o&&l(()=>n.reject(new va({hash:r})));try{if(h){if(t>1&&(!h.blockNumber||p-h.blockNumber+1n<t))return;return void l(()=>n.resolve(h))}if(c||(f=!0,await Zc(async()=>{c=await gi(e,lh,"getTransaction")({hash:r}),c.blockNumber&&(p=c.blockNumber)},{delay:s,retryCount:o}),f=!1),h=await gi(e,ch,"getTransactionReceipt")({hash:r}),t>1&&(!h.blockNumber||p-h.blockNumber+1n<t))return;l(()=>n.resolve(h))}catch(m){if(m instanceof ba||m instanceof ya){if(!c)return void(f=!1);try{u=c,f=!0;const r=await Zc(()=>gi(e,Sl,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:s,retryCount:o,shouldRetry:({error:e})=>e instanceof Al});f=!1;const i=r.transactions.find(({from:e,nonce:t})=>e===u.from&&t===u.nonce);if(!i)return;if(h=await gi(e,ch,"getTransactionReceipt")({hash:i.hash}),t>1&&(!h.blockNumber||p-h.blockNumber+1n<t))return;let a="replaced";i.to===u.to&&i.value===u.value?a="repriced":i.from===i.to&&0n===i.value&&(
18a="cancelled"),l(()=>{var e;null==(e=n.onReplaced)||e.call(n,{reason:a,replacedTransaction:u,transaction:i,transactionReceipt:h}),n.resolve(h)})}catch(b){l(()=>n.reject(b))}}else l(()=>n.reject(m))}finally{d++}}}})})})}(e,t),watchBlocks:t=>function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:o,includeTransactions:s,poll:a,pollingInterval:l=e.pollingInterval}){const c=void 0!==a?a:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),u=s??!1;let h;return c?jc(ra(["watchBlocks",e.uid,t,r,n,u,l]),{onBlock:i,onError:o},i=>$c(async()=>{var n;try{const n=await gi(e,Sl,"getBlock")({blockTag:t,includeTransactions:u});if(n.number&&(null==h?void 0:h.number)){if(n.number===h.number)return;if(n.number-h.number>1&&r)for(let t=(null==h?void 0:h.number)+1n;t<n.number;t++){const r=await gi(e,Sl,"getBlock")({blockNumber:t,includeTransactions:u});i.onBlock(r,h),h=r}}(!(null==h?void 0:h.number)||"pending"===t&&!(null==n?void 0:n.number)||n.number&&n.number>h.number)&&(i.onBlock(n,h),h=n)}catch(o){null==(n=i.onError)||n.call(i,o)}},{emitOnBegin:n,interval:l})):(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const n=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await n.subscribe({params:["newHeads"],onData(r){var n,o,s;if(!t)return;const a=((null==(s=null==(o=null==(n=e.chain)?void 0:n.formatters)?void 0:o.block)?void 0:s.format)||Pl)(r.result);i(a,h),h=a},onError(e){null==o||o(e)}});r=s,t||r()}catch(n){null==o||o(n)}})(),()=>r()})()}(e,t),watchBlockNumber:t=>yd(e,t),watchContractEvent:t=>function(e,t){const{abi:r,address:n,args:i,batch:o=!0,eventName:s,fromBlock:a,onError:l,onLogs:c,poll:u,pollingInterval:h=e.pollingInterval,strict:d}=t;return(void 0!==u?u:"bigint"==typeof a||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
18onfig.type))?(()=>{const t=d??!1;return jc(ra(["watchContractEvent",n,i,o,e.uid,s,h,t,a]),{onLogs:c,onError:l},l=>{let c,u;void 0!==a&&(c=a-1n);let d=!1;const f=$c(async()=>{var h;if(d)try{let a;if(u)a=await gi(e,Hc,"getFilterChanges")({filter:u});else{const o=await gi(e,Uc,"getBlockNumber")({});a=c&&c!==o?await gi(e,fc,"getContractEvents")({abi:r,address:n,args:i,eventName:s,fromBlock:c+1n,toBlock:o,strict:t}):[],c=o}if(0===a.length)return;if(o)l.onLogs(a);else for(const e of a)l.onLogs([e])}catch(f){u&&f instanceof ja&&(d=!1),null==(h=l.onError)||h.call(l,f)}else{try{u=await gi(e,Ns,"createContractEventFilter")({abi:r,address:n,args:i,eventName:s,strict:t,fromBlock:a})}catch{}d=!0}},{emitOnBegin:!0,interval:h});return async()=>{u&&await gi(e,zc,"uninstallFilter")({filter:u}),f()}})})():(()=>{const t=d??!1,a=ra(["watchContractEvent",n,i,o,e.uid,s,h,t]);let u=!0,f=()=>u=!1;return jc(a,{onLogs:c,onError:l},t=>((async()=>{try{const o=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=s?Os({abi:r,eventName:s,args:i}):[],{unsubscribe:l}=await o.subscribe({params:["logs",{address:n,topics:a}],onData(e){var n;if(!u)return;const i=e.result;try{const{eventName:e,args:n}=lc({abi:r,data:i.data,topics:i.topics,strict:d}),o=hc(i,{args:n,eventName:e});t.onLogs([o])}catch(o){let e,r;if(o instanceof Li||o instanceof Fi){if(d)return;e=o.abiItem.name,r=null==(n=o.abiItem.inputs)?void 0:n.some(e=>!("name"in e&&e.name))}const s=hc(i,{args:r?[]:{},eventName:e});t.onLogs([s])}},onError(e){var r;null==(r=t.onError)||r.call(t,e)}});f=l,u||f()}catch(o){null==l||l(o)}})(),()=>f()))})()}(e,t),watchEvent:t=>function(e,{address:t,args:r,batch:n=!0,event:i,events:o,fromBlock:s,onError:a,onLogs:l,poll:c,pollingInterval:u=e.pollingInterval,strict:h}){const d=void 0!==c?c:"bigint"==typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
18onfig.type),f=h??!1;return d?jc(ra(["watchEvent",t,r,n,e.uid,i,u,s]),{onLogs:l,onError:a},a=>{let l,c;void 0!==s&&(l=s-1n);let h=!1;const d=$c(async()=>{var u;if(h)try{let s;if(c)s=await gi(e,Hc,"getFilterChanges")({filter:c});else{const n=await gi(e,Uc,"getBlockNumber")({});s=l&&l!==n?await gi(e,dc,"getLogs")({address:t,args:r,event:i,events:o,fromBlock:l+1n,toBlock:n}):[],l=n}if(0===s.length)return;if(n)a.onLogs(s);else for(const e of s)a.onLogs([e])}catch(d){c&&d instanceof ja&&(h=!1),null==(u=a.onError)||u.call(a,d)}else{try{c=await gi(e,_u,"createEventFilter")({address:t,args:r,event:i,events:o,strict:f,fromBlock:s})}catch{}h=!0}},{emitOnBegin:!0,interval:u});return async()=>{c&&await gi(e,zc,"uninstallFilter")({filter:c}),d()}}):(()=>{let n=!0,s=()=>n=!1;return(async()=>{try{const c=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=o??(i?[i]:void 0);let d=[];u&&(d=[u.flatMap(e=>Os({abi:[e],eventName:e.name,args:r}))],i&&(d=d[0]));const{unsubscribe:p}=await c.subscribe({params:["logs",{address:t,topics:d}],onData(e){var t;if(!n)return;const r=e.result;try{const{eventName:e,args:t}=lc({abi:u??[],data:r.data,topics:r.topics,strict:f}),n=hc(r,{args:t,eventName:e});l([n])}catch(i){let e,n;if(i instanceof Li||i instanceof Fi){if(h)return;e=i.abiItem.name,n=null==(t=i.abiItem.inputs)?void 0:t.some(e=>!("name"in e&&e.name))}const o=hc(r,{args:n?[]:{},eventName:e});l([o])}},onError(e){null==a||a(e)}});s=p,n||s()}catch(c){null==a||a(c)}})(),()=>s()})()}(e,t),watchPendingTransactions:t=>function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:o=e.pollingInterval}){return(void 0!==i?i:"webSocket"!==e.transport.type)?jc(ra(["watchPendingTransactions",e.uid,t,o]),{onTransactions:n,onError:r},r=>{let n;const i=$c(async()=>{var o;try{if(!n)try{return void(n=await gi(e,Eu,"createPendingTransactionFilter")({}))}catch(s){throw i(),s}const o=await gi(e,Hc,"getFilterChanges")({filter:n});if(0===o.length)return;if(t)r.onTransactions(o);else for(const e of o)r.onTransactions([e])}catch(s){null==(o=r.onError)||o.call(r,s)}},{emitOnBegin:!0,interval:o});return async()=>{n&&await gi(e,zc,"uninstallFilter")({filter:n}),i()}}):(()=>{let t=!0,i=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;n([r])},onError(e){null==r||r(e)}});i=o,t||i()}catch(o){null==r||r(o)}})(),()=>i()})()}(e,t)}}const Ad=65535n,xd=Object.freeze(Object.defineProperty({__proto__:null,AbiConstructorNotFoundError:Ai,AbiConstructorParamsNotFoundError:xi,AbiDecodingDataSizeTooSmallError:ki,AbiDecodingZeroDataError:Ci,AbiEncodingArrayLengthMismatchError:Pi,AbiEncodingBytesSizeMismatchError:Ii,AbiEncodingLengthMismatchError:Si,AbiErrorSignatureNotFoundError:Oi,AbiEventNotFoundError:Ni,AbiEventSignatureEmptyTopicsError:Mi,AbiEventSignatureNotFoundError:Ti,AbiFunctionNotFoundError:Ri,AbiFunctionOutputsNotFoundError:ji,AccountStateConflictError:ca,BaseError:_i,BaseFeeScalarError:wl,BlockNotFoundError:Al,BytesSizeMismatchError:$i,CallExecutionError:wa,ChainDisconnectedError:Wa,ChainDoesNotSupportContract:xc,ClientChainNotConfiguredError:kc,ContractFunctionExecutionError:_a,ContractFunctionRevertedError:Ea,ContractFunctionZeroDataError:Aa,DecodeLogDataMismatch:Li,DecodeLogTopicsMismatch:Fi,Eip1559FeesNotSupportedError:_l,EnsAvatarInvalidNftUriError:lu,EnsAvatarUnsupportedNamespaceError:uu,EnsAvatarUriResolutionError:cu,EstimateGasExecutionError:Ya,ExecutionRevertedError:Qa,FeeCapTooHighError:Xa,FeeCapTooLowError:el,FeeConflictError:fa,FilterTypeNotSupportedError:qi,HttpRequestError:ka,InsufficientFundsError:il,IntegerOutOfRangeError:Yi,InternalRpcError:Ra,IntrinsicGasTooHighError:ol,IntrinsicGasTooLowError:sl,InvalidAbiDecodingTypeError:Ui,InvalidAbiEncodingTypeError:Di,InvalidAddressError:ss,InvalidArrayError:Hi,InvalidBytesBooleanError:Qi,InvalidChainIdError:Cc,InvalidDefinitionTypeError:zi,InvalidHexBooleanError:Xi,InvalidInputRpcError:ja,InvalidLegacyVError:pa,InvalidParamsRpcError:Na,InvalidRequestRpcError:Ma,InvalidSerializableTransactionError:ma,InvalidStorageKeySizeError:ga,JsonRpcVersionUnsupportedError:Ua,LimitExceededRpcError:Da,MaxFeePerGasTooLowError:El,MethodNotFoundRpcError:Ta,MethodNotSupportedRpcError:Fa,NonceMaxValueError:nl,NonceTooHighError:tl,NonceTooLowError:rl,ParseRpcError:Oa,ProviderDisconnectedError:Ga,ProviderRpcError:Sa,RawContractError:xa,ResourceNotFoundRpcError:Ba,ResourceUnavailableRpcError:$a,RpcError:Ia,RpcRequestError:Ca,SizeExceedsPaddingSizeError:Wi,SizeOverflowError:eo,SliceOffsetOutOfBoundsError:Gi,StateAssignmentC
18onflictError:ua,SwitchChainError:Va,TimeoutError:Pa,TipAboveFeeCapError:ll,TransactionNotFoundError:ba,TransactionReceiptNotFoundError:ya,TransactionRejectedRpcError:La,TransactionTypeNotSupportedError:al,UnauthorizedProviderError:za,UnknownNodeError:cl,UnknownRpcError:Za,UnsupportedProviderMethodError:qa,UrlRequiredError:Yc,UserRejectedRequestError:Ha,WaitForTransactionReceiptTimeoutError:va,assertRequest:vl,assertTransactionEIP1559:th,assertTransactionEIP2930:rh,assertTransactionLegacy:nh,blobsToCommitments:Rl,blobsToProofs:jl,boolToBytes:yo,boolToHex:uo,bytesToBigInt:Ws,bytesToBool:Vs,bytesToHex:ho,bytesToNumber:Zs,bytesToString:Ks,ccipFetch:Mu,ccipRequest:Mu,checksumAddress:cs,commitmentToVersionedHash:Gl,commitmentsToVersionedHashes:Wl,concat:fs,concatBytes:ps,concatHex:ms,createClient:Vc,createPublicClient:function(e){const{key:t="public",name:r="Public Client"}=e;return Vc({...e,key:t,name:r,type:"publicClient"}).extend(Ed)},createTransport:Jc,decodeAbiParameters:Js,decodeErrorResult:ta,decodeEventLog:lc,decodeFunctionResult:mc,defineBlock:Il,defineChain:Nu,defineTransaction:Cl,defineTransactionReceipt:Qu,defineTransactionRequest:ml,encodeAbiParameters:_s,encodeDeployData:Wu,encodeEventTopics:Os,encodeFunctionData:$s,etherUnits:ia,extractChain:function({chains:e,id:t}){return e.find(e=>e.id===t)},formatBlock:Pl,formatEther:aa,formatGwei:la,formatLog:hc,formatTransaction:kl,formatTransactionReceipt:Yu,formatTransactionRequest:pl,formatUnits:sa,fromHex:no,getAbiItem:Cs,getChainContractAddress:Pc,getContractError:Ja,getEventSelector:os,getEventSignature:ns,getFunctionSelector:ks,getFunctionSignature:ns,getTransactionType:rc,getTypesForEIP712Domain:qu,gweiUnits:oa,hashDomain:$u,hashMessage:eh,hashTypedData:Bu,hexToBigInt:io,hexToBool:oo,hexToBytes:_o,hexToNumber:so,hexToString:ao,http:function(e,t={}){const{batch:r,fetchOptions:n,key:i="http",name:o="HTTP JSON-RPC",onFetchRequest:s,onFetchResponse:a,retryDelay:l}=t;return({chain:c,retryCount:u,timeout:h})=>{const{batchSize:d=1e3,wait:f=0}="object"==typeof r?r:{},p=t.retryCount??u,m=h??t.timeout??1e4,g=e||(null==c?void 0:c.rpcUrls.default.http[0]);if(!g)throw new Yc;const b=function(e,t={}){return{async request(r){var n;const{body:i,onRequest:o=t.onRequest,onResponse:s=t.onResponse,timeout:a=t.timeout??1e4}=r,l={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:c,method:u,signal:h}=l;try{const t=await Qc(async({signal:t})=>{const r={...l,body:Array.isArray(i)?ra(i.map(e=>({jsonrpc:"2.0",id:e.id??eu.take(),...e}))):ra({jsonrpc:"2.0",id:i.id??eu.take(),...i}),headers:{...c,"Content-Type":"application/json"},method:u||"POST",signal:h||(a>0?t:null)},n=new Request(e,r);return o&&await o(n),await fetch(e,r)},{errorInstance:new Pa({body:i,url:e}),timeout:a,signal:!0});let r;if(s&&await s(t),(null==(n=t.headers.get("Content-Type"))?void 0:n.startsWith("application/json"))?r=await t.json():(r=await t.text(),r=JSON.parse(r||"{}")),!t.ok)throw new ka({body:i,details:ra(r.error)||t.statusText,headers:t.headers,status:t.status,url:e});return r}catch(d){if(d instanceof ka)throw d;if(d instanceof Pa)throw d;throw new ka({body:i,details:d.message,url:e})}}}}(g,{fetchOptions:n,onRequest:s,onResponse:a,timeout:m});return Jc({key:i,name:o,async request({method:e,params:t}){const n={method:e,params:t},{schedule:i}=Sc({id:g,wait:f,shouldSplitBatch:e=>e.length>d,fn:e=>b.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:o,result:s}]=await(async e=>r?i(e):[await b.request({body:e})])(n);if(o)throw new Ca({body:n,error:o,url:g});return s},retryCount:p,retryDelay:l,timeout:m,type:"http"},{fetchOptions:n,url:g})}},isAddress:ds,isAddressEqual:Pu,isHex:vi,keccak256:ts,labelhash:ou,maxUint16:65535n,multicall3Abi:gc,namehash:nu,numberToBytes:Eo,numberToHex:fo,offchainLookup:Ou,offchainLookupAbiItem:Su,offchainLookupSignature:Iu,pad:Zi,padBytes:Ji,padHex:Ki,parseEventLogs:uc,prepareEncodeFunctionData:Bs,presignMessagePrefix:Xu,publicActions:Ed,rpcTransactionType:fl,serializeAccessList:ih,serializeSignature:gd,serializeTransaction:oh,sha256:ql,signatureToHex:gd,size:wi,slice:gs,sliceBytes:vs,sliceHex:ws,stringToBytes:Ao,stringToHex:mo,stringify:ra,toBlobSidecars:tc,toBlobs:ec,toBytes:bo,toEventHash:is,toEventSelector:os,toEventSignature:ns,toFunctionHash:is,toFunctionSelector:ks,toFunctionSignature:ns,toHex:co,toRlp:Vu,transactionType:xl,trim:to,validateTypedData:zu,withRetry:Zc,withTimeout:Qc},Symbol.toStringTag,{value:"Module"})),kd=e=>kd(),Cd=e=>aa(io(e)),Pd=e=>{if(!e)return e;return aa(no(e,"bigint"))},Id=e=>fo(e),Sd=async e=>{const t=await s(()=>import("./index.js-BiTu9WkW.js"),__vite__mapDeps([0,1,2])),{id:r,label:n,token:i,publicRpcUrl:o,blockExplorerUrl:a,rpcUrl:l}=e;switch(r){case"0x89":{const{polygon:e}=t;return e}case"0xa":{const{optimism:e}=t;return e}case"0xa4b1":{const{arbitrum:e}=t;return e}case"0x144":{const{zkSync:e}=t;return e}case"0x38":{const{bsc:e}=t;return e}case"0x1":{const{mainnet:e}=t;return e}case"0xaa36a7":{const{sepolia:e}=t;return e}case"0xfa":{const{fantom:e}=t;return e}case"0xa86a":{const{avalanche:e}=t;return e}case"0xa4ec":{const{celo:e}=t;return e}case"0x2105":{const{base:e}=t;return e}case"0x14a33":{const{baseGoerli:e}=t;return e}case"0x64":{const{gnosis:e}=t;return e}case"0x63564C40":{const{harmonyOne:e}=t;return e}case"0x27bc86aa":{const{degen:e}=t;return e}default:{const{extractChain:e,defineChain:c}=await s(async()=>{const{extractChain:e,defineChain:t}=await Promise.resolve().then(()=>xd);return{extractChain:e,defineChain:t}},void 0),u=e({chains:Object.values(t),id:no(r,"number")});return u||c({id:no(r,"number"),name:null!=n?n:"",nativeCurrency:{decimals:18,name:null!=i?i:"",symbol
18:null!=i?i:""},rpcUrls:{default:{http:[null!=l?l:"",null!=o?o:""]}},blockExplorers:{default:{name:"Explorer",url:null!=a?a:""}}})}}};var Od,Md;function Td(e,t){const r=e.validate(t);return r.error?r:null}(Md=Od||(Od={}))[Md.ACCOUNT_ACCESS_REJECTED=4001]="ACCOUNT_ACCESS_REJECTED",Md[Md.ACCOUNT_ACCESS_ALREADY_REQUESTED=-32002]="ACCOUNT_ACCESS_ALREADY_REQUESTED",Md[Md.UNAUTHORIZED=4100]="UNAUTHORIZED",Md[Md.INVALID_PARAMS=-32602]="INVALID_PARAMS",Md[Md.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",Md[Md.DISCONNECTED=4900]="DISCONNECTED",Md[Md.CHAIN_DISCONNECTED=4901]="CHAIN_DISCONNECTED",Md[Md.CHAIN_NOT_ADDED=4902]="CHAIN_NOT_ADDED",Md[Md.DOES_NOT_EXIST=-32601]="DOES_NOT_EXIST",Md[Md.UNRECOGNIZED_CHAIN_ID=-32603]="UNRECOGNIZED_CHAIN_ID";const Nd=ci.alternatives().try(ci.string().pattern(/^0x[0-9a-fA-F]+$/),ci.number().positive()),Rd=ci.string().valid("evm"),jd=ci.object({address:ci.string().required(),icon:ci.string().optional()}),Bd=ci.object({namespace:Rd,id:Nd.required(),rpcUrl:ci.string(),label:ci.string(),token:ci.string(),secondaryTokens:ci.array().max(5).items(jd).optional(),icon:ci.string(),color:ci.string(),publicRpcUrl:ci.string(),protectedRpcUrl:ci.string(),blockExplorerUrl:ci.string()}),$d=Object.freeze(Object.defineProperty({__proto__:null,InterVar:'\n@font-face {\n  font-family: \'Inter\';\n  font-style:  normal;\n  font-weight: 300 600;\n  font-display: swap;\n  src: url("https://rsms.me/inter/font-files/InterVariable.woff2") format("woff2-variations");\n}\n',ProviderRpcError:ui,get ProviderRpcErrorCode(){return Od},bigIntToHex:Id,chainIdToViemImport:Sd,chainIdValidation:Nd,chainNamespaceValidation:Rd,chainValidation:Bd,createEIP1193Provider:hi,fromHex:no,isAddress:kd,isHex:vi,toHex:co,validate:Td,weiHexToEth:Cd,weiToEth:Pd},Symbol.toStringTag,{value:"Module"}));var Ld,Fd={exports:{}};var Dd=(Ld||(Ld=1,function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",b="[object String]",y="[object Symbol]",v="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,x=/^\./,k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,P=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[s]=S[w]=S[a]=S[_]=S[l]=S[c]=S[u]=S[h]=S[d]=S[f]=S[m]=S[g]=S[b]=S[v]=!1;var O="object"==typeof r&&r&&r.Object===Object&&r,M="object"==typeof self&&self&&self.Object===Object&&self,T=O||M||Function("return this")(),N=t&&!t.nodeType&&t,R=N&&e&&!e.nodeType&&e,j=R&&R.exports===N&&O.process,B=function(){try{return j&&j.binding("util")}catch(e){}}(),$=B&&B.isTypedArray;function L(e,t,r,n){for(var i=-1,o=e?e.length:0;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function F(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function D(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function U(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var z,q,G,W=Array.prototype,V=Function.prototype,Z=Object.prototype,K=T["__core-js_shared__"],J=(z=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",Y=V.toString,Q=Z.hasOwnProperty,X=Z.toString,ee=RegExp("^"+Y.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=T.Symbol,re=T.Uint8Array,ne=Z.propertyIsEnumerable,ie=W.splice,oe=(q=Object.keys,G=Object,function(e){return q(G(e))}),se=De(T,"DataView"),ae=De(T,"Map"),le=De(T,"Promise"),ce=De(T,"Set"),ue=De(T,"WeakMap"),he=De(Object,"create"),de=Ze(se),fe=Ze(ae),pe=Ze(le),me=Ze(ce),ge=Ze(ue),be=te?te.prototype:void 0,ye=be?be.valueOf:void 0,ve=be?be.toString:void 0;function we(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _e(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ae(e){var t=-1,r=e?e.length:0;for(this.__data__=new Ee;++t<r;)this.add(e[t])}function xe(e){this.__data__=new _e(e)}function ke(e,t){var r=tt(e)||et(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!Q.call(e,o)||i&&("length"==o||He(o,n))||r.push(o);return r}function Ce(e,t){for(var r=e.length;r--;)if(Xe(e[r][0],t))return r;return-1}function Pe(e,t,r,n){return Se(e,function(e,i,o){t(n,e,r(e),o)}),n}we.prototype.clear=function(){this.__data__=he?he(null):{}},we.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},we.prototype.get=function(e){var t=this.__data__;if(he){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},we.prototype.has=function(e){var t=this.__data__;return he?void 0!==t[e]:Q.call(t,e)},we.prototype.set=function(e,t){return this.__data__[e]=he&&void 0===t?n:t,this},_e.prototype.clear=function(){this.__data__=[]},_e.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0||(r==t.length-1?t.pop():ie.call(t,r,1),0))},_e.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},_e.prototype.has=function(e){return Ce(this.__data__,e)>-1},_e.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new we,map:new(ae||_e),string:new we}},Ee.prototype.delete=function(e){return Fe(this,e).delete(e)},Ee.prototype.get=function(e){return Fe(this,e).get(e)},Ee.prototype.has=function(e){return Fe(this,e).has(e)},Ee.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,n),this},Ae.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new _e},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _e){var n=r.__data__;if(!ae||n.length<199)return n.push([e,t]),this;r=this.__data__=new Ee(n)}return r.set(e,t),this};var Ie,Se=(Ie=function(e,t){return e&&Oe(e,t,ct)},function(e,t){if(null==e)return e;if(!rt(e))return Ie(e,t);for(var r=e.length,n=-1,i=Object(e);++n<r&&!1!==t(i[n],n,i););return e}),Oe=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),s=o.length;s--;){var a=o[++n];if(!1===t(i[a],a,i))break}return e};function Me(e,t){for(var r=0,n=(t=ze(t,e)?[t]:$e(t)).length;null!=e&&r<n;)e=e[Ve(t[r++])];return r&&r==n?e:void 0}function Te(e,t){return null!=e&&t in Object(e)}function Ne(e,t,r,n,i){return e===t||(null==e||null==t||!ot(e)&&!st(t)?e!=e&&t!=t:function(e,t,r,n,i,u){var p=tt(e),v=tt(t),E=s,A=s;p||(E=(E=Ue(e))==o?f:E),v||(A=(A=Ue(t))==o?f:A);var x=E==f&&!D(e),k=A==f&&!D(t),C=E==A;if(C&&!x)return u||(u=new xe),p||lt(e)?Le(e,t,r,n,i,u):function(e,t,r,n,i,o,s){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!n(new re(e),new re(t)));case a:case l:case d:return Xe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case h:var u=U;case g:var f=2&o;if(u||(u=H),e.size!=t.size&&!f)return!1;var p=s.get(e);if(p)return p==t;o|=1,s.set(e,t);var v=Le(u(e),u(t),n,i,o,s);return s.delete(e),v;case y:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,E,r,n,i,u);if(!(2&i)){var P=x&&Q.call(e,"__wrapped__"),I=k&&Q.call(t,"__wrapped__");
18if(P||I){var S=P?e.value():e,O=I?t.value():t;return u||(u=new xe),r(S,O,n,i,u)}}return!!C&&(u||(u=new xe),function(e,t,r,n,i,o){var s=2&i,a=ct(e),l=a.length,c=ct(t),u=c.length;if(l!=u&&!s)return!1;for(var h=l;h--;){var d=a[h];if(!(s?d in t:Q.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=s;++h<l;){var g=e[d=a[h]],b=t[d];if(n)var y=s?n(b,g,d,t,e,o):n(g,b,d,e,t,o);if(!(void 0===y?g===b||r(g,b,n,i,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,u))}(e,t,Ne,r,n,i))}function Re(e){return!(!ot(e)||function(e){return!!J&&J in e}(e))&&(nt(e)||D(e)?ee:P).test(Ze(e))}function je(e){return"function"==typeof e?e:null==e?ut:"object"==typeof e?tt(e)?function(e,t){return ze(e)&&qe(t)?Ge(Ve(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:Me(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=ze(t,e)?[t]:$e(t);for(var n,i=-1,o=t.length;++i<o;){var s=Ve(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(o=e?e.length:0)&&it(o)&&He(s,o)&&(tt(e)||et(e))}(e,t,Te)}(r,e):Ne(t,n,void 0,3)}}(e[0],e[1]):(r=function(e){for(var t=ct(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,qe(i)]}return t}(t=e),1==r.length&&r[0][2]?Ge(r[0][0],r[0][1]):function(e){return e===t||function(e,t,r,n){var i=r.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var a=(s=r[i])[0],l=e[a],c=s[1];if(s[2]){if(void 0===l&&!(a in e))return!1}else if(!Ne(c,l,n,3,new xe))return!1}return!0}(e,0,r)}):ze(n=e)?(i=Ve(n),function(e){return null==e?void 0:e[i]}):function(e){return function(t){return Me(t,e)}}(n);var t,r,n,i}function Be(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||Z,t!==n)return oe(e);var t,r,n,i=[];for(var o in Object(e))Q.call(e,o)&&"constructor"!=o&&i.push(o);return i}function $e(e){return tt(e)?e:We(e)}function Le(e,t,r,n,i,o){var s=2&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,h=!0,d=1&i?new Ae:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var f=e[u],p=t[u];if(n)var m=s?n(p,f,u,t,e,o):n(f,p,u,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!F(t,function(e,t){if(!d.has(t)&&(f===e||r(f,e,n,i,o)))return d.add(t)})){h=!1;break}}else if(f!==p&&!r(f,p,n,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Fe(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function De(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(r)?r:void 0}var Ue=function(e){return X.call(e)};function He(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t){if(tt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!at(e))||A.test(e)||!E.test(e)||null!=t&&e in Object(t)}function qe(e){return e==e&&!ot(e)}function Ge(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(se&&Ue(new se(new ArrayBuffer(1)))!=_||ae&&Ue(new ae)!=h||le&&Ue(le.resolve())!=p||ce&&Ue(new ce)!=g||ue&&Ue(new ue)!=v)&&(Ue=function(e){var t=X.call(e),r=t==f?e.constructor:void 0,n=r?Ze(r):void 0;if(n)switch(n){case de:return _;case fe:return h;case pe:return p;case me:return g;case ge:return v}return t});var We=Qe(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(at(e))return ve?ve.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return x.test(e)&&r.push(""),e.replace(k,function(e,t,n,i){r.push(n?i.replace(C,"$1"):t||e)}),r});function Ve(e){if("string"==typeof e||at(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return Y.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ke,Je,Ye=(Ke=function(e,t,r){e[r?0:1].push(t)},Je=function(){return[[],[]]},function(e,t){var r=tt(e)?L:Pe,n=Je?Je():{};return r(e,Ke,je(t),n)});function Qe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(Qe.Cache||Ee),r}function Xe(e,t){return e===t||e!=e&&t!=t}function et(e){return function(e){return st(e)&&rt(e)}(e)&&Q.call(e,"callee")&&(!ne.call(e,"callee")||X.call(e)==o)}Qe.Cache=Ee;var tt=Array.isArray;function rt(e){return null!=e&&it(e.length)&&!nt(e)}function nt(e){var t=ot(e)?X.call(e):"";return t==u||"[object GeneratorFunction]"==t}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function at(e){return"symbol"==typeof e||st(e)&&X.call(e)==y}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return st(e)&&it(e.length)&&!!S[X.call(e)]};function ct(e){return rt(e)?ke(e):Be(e)}function ut(e){return e}e.exports=Ye}
vendor: 9,281 bytes, line 18
18(Fd,Fd.exports)),Fd.exports);const Ud=t(Dd);var Hd,zd={exports:{}};var qd=(Hd||(Hd=1,function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[s]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var h,d="object"==typeof r&&r&&r.Object===Object&&r,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),m=t&&!t.nodeType&&t,g=m&&e&&!e.nodeType&&e,b=g&&g.exports===m,y=b&&d.process,v=function(){try{var e=g&&g.require&&g.require("util").types;return e||y&&y.binding&&y.binding("util")}catch(t){}}(),w=v&&v.isTypedArray,_=Array.prototype,E=Function.prototype,A=Object.prototype,x=p["__core-js_shared__"],k=E.toString,C=A.hasOwnProperty,P=(h=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",I=A.toString,S=k.call(Object),O=RegExp("^"+k.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=b?p.Buffer:void 0,T=p.Symbol,N=p.Uint8Array;M&&M.allocUnsafe;var R,j,B=(R=Object.getPrototypeOf,j=Object,function(e){return R(j(e))}),$=Object.create,L=A.propertyIsEnumerable,F=_.splice,D=T?T.toStringTag:void 0,U=function(){try{var e=de(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),H=M?M.isBuffer:void 0,z=Math.max,q=Date.now,G=de(p,"Map"),W=de(Object,"create"),V=function(){function e(){}return function(t){if(!xe(t))return{};if($)return $(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function K(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=this.__data__=new K(e);this.size=t.size}function Q(e,t){var r=ve(e),n=!r&&ye(e),i=!r&&!n&&_e(e),o=!r&&!n&&!i&&Ce(e),s=r||n||i||o,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=a.length;for(var c in e)s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fe(c,l))||a.push(c);return a}function X(e,t,r){(void 0!==r&&!be(e[t],r)||void 0===r&&!(t in e))&&re(e,t,r)}function ee(e,t,r){var n=e[t];C.call(e,t)&&be(n,r)&&(void 0!==r||t in e)||re(e,t,r)}function te(e,t){for(var r=e.length;r--;)if(be(e[r][0],t))return r;return-1}function re(e,t,r){"__proto__"==t&&U?U(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Z.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(W){var r=t[e];return r===n?void 0:r}return C.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return W?void 0!==t[e]:C.call(t,e)},Z.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=W&&void 0===t?n:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=te(t,e);return!(r<0||(r==t.length-1?t.pop():F.call(t,r,1),--this.size,0))},K.prototype.get=function(e){var t=this.__data__,r=te(t,e);return r<0?void 0:t[r][1]},K.prototype.has=function(e){return te(this.__data__,e)>-1},K.prototype.set=function(e,t){var r=this.__data__,n=te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(G||K),string:new Z}},J.prototype.delete=function(e){var t=he(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return he(this,e).get(e)},J.prototype.has=function(e){return he(this,e).has(e)},J.prototype.set=function(e,t){var r=he(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Y.prototype.clear=function(){this.__data__=new K,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!G||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new J(n)}return r.set(e,t),this.size=r.size,this};var ne=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),s=o.length;s--;){var a=o[++n];if(!1===t(i[a],a,i))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?function(e){var t=C.call(e,D),r=e[D];try{e[D]=void 0;var n=!0}catch(o){}var i=I.call(e);return n&&(t?e[D]=r:delete e[D]),i}(e):function(e){return I.call(e)}(e)}function oe(e){return ke(e)&&ie(e)==o}function se(e){return!(!xe(e)||function(e){return!!P&&P in e}(e))&&(Ee(e)?O:l).test(function(e){if(null!=e){try{return k.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ae(e){if(!xe(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=pe(e),r=[];for(var n in e)("constructor"!=n||!t&&C.call(e,n))&&r.push(n);return r}function le(e,t,r,n,i){e!==t&&ne(t,function(o,s){if(i||(i=new Y),xe(o))!function(e,t,r,n,i,o,s){var l=me(e,r),c=me(t,r),u=s.get(c);if(u)X(e,r,u);else{var h,d=o?o(l,c,r+"",e,t,s):void 0,f=void 0===d;if(f){var p=ve(c),m=!p&&_e(c),g=!p&&!m&&Ce(c);d=c,p||m||g?ve(l)?d=l:ke(h=l)&&we(h)?d=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(l):m?(f=!1,d=c.slice()):g?(f=!1,d=function(e){var t,r,n=(t=e.buffer,r=new t.constructor(t.byteLength),new N(r).set(new N(t)),r);return new e.constructor(n,e.byteOffset,e.length)}(c)):d=[]:function(e){if(!ke(e)||ie(e)!=a)return!1;var t=B(e);if(null===t)return!0;var r=C.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&k.call(r)==S}(c)||ye(c)?(d=l,ye(l)?d=function(e){return function(e,t,r){var n=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=void 0;void 0===a&&(a=e[s]),n?re(r,s,a):ee(r,s,a)}return r}(e,Pe(e))}(l):xe(l)&&!Ee(l)||(d=function(e){return"function"!=typeof e.constructor||pe(e)?{}:V(B(e))}(c))):f=!1}f&&(s.set(c,d),i(d,c,n,o,s),s.delete(c)),X(e,r,d)}}(e,t,s,r,le,n,i);else{var l=n?n(me(e,s),o,s+"",e,t,i):void 0;void 0===l&&(l=o),X(e,s,l)}},Pe)}function ce(e,t){return ge(function(e,t,r){return t=z(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=z(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,a)}}(e,t,Oe),e+"")}var ue=U?function(e,t){return U(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Oe;function he(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function de(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return se(r)?r:void 0}function fe(e,t){var r=typeof e;return!!(t=null==t?i:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function pe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function me(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ge=function(e){var t=0,r=0;return function(){var n=q(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ue);function be(e,t){return e===t||e!=e&&t!=t}var ye=oe(function(){return arguments}())?oe:function(e){return ke(e)&&C.call(e,"callee")&&!L.call(e,"callee")},ve=Array.isArray;function we(e){return null!=e&&Ae(e.length)&&!Ee(e)}var _e=H||function(){return!1};function Ee(e){if(!xe(e))return!1;var t=ie(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var Ce=w?function(e){return function(t){return e(t)}}(w):function(e){return ke(e)&&Ae(e.length)&&!!u[ie(e)]};function Pe(e){return we(e)?Q(e):ae(e)}var Ie,Se=(Ie=function(e,t,r){le(e,t,r)},ce(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Ie.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!xe(r))return!1;var n=typeof t;return!!("number"==n?we(r)&&fe(t,r.length):"string"==n&&t in r)&&be(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var s=t[r];s&&Ie(e,s,r,i)}return e}));function Oe(e){return e}e.exports=Se}
vendor: 5,256 bytes, line 18
18(zd,zd.exports)),zd.exports);const Gd=t(qd);var Wd,Vd={exports:{}};var Zd=(Wd||(Wd=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,o||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,i,o,s){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,s),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||s(this,o);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||i&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a}(Vd)),Vd.exports);const Kd=t(Zd);function Jd(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}"function"==typeof SuppressedError&&SuppressedError;var Yd='<svg width="756" height="756" viewBox="0 0 756 756" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g filter="url(#filter0_d_210_16)">\n<rect x="22" y="22" width="712.081" height="712.081" rx="100" fill="white"/>\n<rect x="21.5" y="21.5" width="713.081" height="713.081" rx="100.5" stroke="#CCCCCC" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M388.846 243.497C391.572 244.066 394.144 245.216 396.391 246.871C398.905 248.87 400.831 251.522 401.963 254.539C409.105 272.488 416.247 290.426 423.39 308.352C431.294 328.289 439.237 348.23 447.22 368.174C451.381 378.631 455.52 389.098 459.744 399.533C460.643 401.668 461.107 403.962 461.107 406.28C461.107 408.598 460.643 410.893 459.744 413.027L423.444 503.98C421.04 510 416.686 513.743 410.284 514.719C402.319 515.923 395.194 511.974 392.316 504.956C385.505 488.132 378.844 471.255 372.129 454.387L337.984 368.586C327.874 343.124 317.749 317.67 307.611 292.222C304.248 283.772 300.993 275.279 297.479 266.894C296.512 264.614 296.054 262.148 296.139 259.671C296.223 257.193 296.848 254.764 297.969 252.557C299.09 250.349 300.68 248.417 302.625 246.896C304.571 245.376 306.825 244.304 309.228 243.757C309.518 243.692 309.799 243.584 310.079 243.497H388.846Z" fill="url(#paint0_linear_210_16)"/>\n<path d="M247.379 243.497C248.273 243.747 249.168 243.963 250.041 244.267C252.313 244.981 254.399 246.198 256.143 247.829C257.887 249.46 259.245 251.464 260.118 253.693C267.915 273.131 275.675 292.584 283.399 312.051C291.217 331.677 299.035 351.307 306.852 370.94C310.675 380.565 314.516 390.187 318.374 399.804C319.238 401.864 319.683 404.077 319.683 406.312C319.683 408.548 319.238 410.761 318.374 412.821C314.063 423.625 309.752 434.425 305.44 445.221C297.536 464.985 289.632 484.748 281.728 504.512C280.487 507.589 278.366 510.226 275.633 512.087C272.901 513.949 269.68 514.952 266.38 514.968C262.884 515.03 259.455 514.004 256.561 512.029C253.667 510.055 251.45 507.228 250.213 503.937C242.906 485.312 235.447 466.742 228.053 448.15C218.144 422.97
187 208.185 397.823 198.176 372.686C187.987 347.102 177.802 321.513 167.62 295.921C163.761 286.235 159.935 276.527 156.023 266.851C154.313 262.819 154.23 258.277 155.791 254.185C157.353 250.093 160.435 246.773 164.386 244.929C165.82 244.346 167.293 243.867 168.795 243.497H247.379Z" fill="url(#paint1_linear_210_16)"/>\n<path d="M599.828 408.922C597.67 416.244 594.438 423.154 591.69 430.215C583.736 450.304 575.738 470.382 567.695 490.449C565.852 495.049 563.976 499.637 562.188 504.258C560.928 507.415 558.759 510.12 555.952 512.021C553.15 513.923 549.845 514.934 546.463 514.923C543.081 514.913 539.784 513.881 536.992 511.963C534.2 510.043 532.042 507.325 530.803 504.16L495.904 416.494L465.724 340.77C455.873 316.046 446.029 291.325 436.192 266.608C435.257 264.348 434.826 261.909 434.929 259.463C435.032 257.017 435.667 254.623 436.79 252.451C437.912 250.279 439.494 248.381 441.424 246.892C443.355 245.402 445.587 244.356 447.962 243.829C448.286 243.753 448.598 243.645 448.921 243.547H527.689C527.934 243.623 528.173 243.72 528.422 243.775C531.184 244.355 533.756 245.627 535.9 247.474C538.043 249.321 539.692 251.682 540.689 254.34C545.272 265.91 549.863 277.448 554.461 288.953C566.497 319.166 578.522 349.379 590.536 379.592C593.695 387.553 597.208 395.374 599.795 403.553L599.828 408.922Z" fill="url(#paint2_linear_210_16)"/>\n</g>\n<defs>\n<filter id="filter0_d_210_16" x="0.348907" y="0.348907" width="755.384" height="755.383" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n<feFlood flood-opacity="0" result="BackgroundImageFix"/>\n<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n<feOffset/>\n<feGaussianBlur stdDeviation="10.3255"/>\n<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>\n<feBlend mode="overlay" in2="BackgroundImageFix" result="effect1_dropShadow_210_16"/>\n<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_210_16" result="shape"/>\n</filter>\n<linearGradient id="paint0_linear_210_16" x1="283.92" y1="265.538" x2="474.49" y2="454.896" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n<linearGradient id="paint1_linear_210_16" x1="142.528" y1="265.473" x2="333.054" y2="454.788" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n<linearGradient id="paint2_linear_210_16" x1="422.73" y1="265.469" x2="613.268" y2="454.794" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n</defs>\n</svg>\n',Qd='\n<svg width="170" height="17" viewBox="0 0 170 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_208_15)">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M122.262 1.76074C121.506 1.76074 120.886 2.37313 120.886 3.15393C120.886 3.91942 121.506 4.53181 122.262 4.53181C123.019 4.53181 123.639 3.91942 123.639 3.15393C123.639 2.37313 123.019 1.76074 122.262 1.76074ZM123.472 5.23601H121.068V13.4879H123.472V5.23601ZM107.034 2.06696H109.378V5.23607H111.178V7.44068H109.378V10.3495C109.378 10.7782 109.711 11.115 110.119 11.115H111.162V13.4574H110.119C108.425 13.4574 107.034 12.0642 107.034 10.3342V7.42536H105.945V5.22076H107.034V2.06696ZM116.909 5.05236C115.82 5.05236 114.958 5.51164 114.626 6.23121V2.06696H112.221V13.4727H114.626V8.84917C114.626 7.88466 115.246 7.21103 116.123 7.21103C117.015 7.21103 117.514 7.79281 117.514 8.77262V13.488H119.919V8.46642C119.919 6.32307 118.83 5.05236 116.909 5.05236ZM126.905 5.22072V6.35364C127.268 5.52691 128.145 5.05232 129.249 5.03701C129.415 5.03701 129.627 5.05232 129.884 5.08293V7.3794C129.642 7.33346 129.37 7.30285 129.083 7.30285C127.707 7.30285 126.905 8.08364 126.905 9.44619V13.4727H124.501V5.22072H126.905ZM136.644 6.30776C136.402 5.58819 135.449 5.08299 134.224 5.08299C133.075 5.08299 132.107 5.49634 131.336 6.32307C130.58 7.13448 130.187 8.16023 130.187 9.3544C130.187 10.5486 130.58 11.559 131.336 12.401C132.107 13.2124 133.075 13.6258 134.224 13.6258C135.449 13.6258 136.402 13.1206 136.644 12.401V13.488H139.048V2.06696H136.644V6.30776ZM136.16 10.8241C135.752 11.2222 135.253 11.4059 134.663 11.4059C134.088 11.4059 133.589 11.2069 133.196 10.8241C132.788 10.4108 132.591 9.92085 132.591 9.3544C132.591 8.78793 132.788 8.29803 133.196 7.89997C133.604 7.4866 134.088 7.28758 134.663 7.28758C135.268 7.28758 135.767 7.4866 136.16 7.89997C136.583 8.29803 136.795 8.78793 136.795 9.3544C136.795 9.92085 136.583 10.4108 136.16 10.8241ZM145.99 5.26662L148.168 9.18591L149.634 5.23601H151.994L148.636 13.9625L145.99 9.21654L143.343 13.9625L140.001 5.23601H142.361L143.812 9.18591L145.99 5.26662ZM155.956 5.03701C154.716 5.03701 153.672 5.43505 152.855 6.23115C152.054 7.01195 151.646 8.05301 151.646 9.33903V9.41558C151.646 10.7016 152.054 11.7427 152.855 12.5235C153.687 13.2889 154.746 13.687 156.077 13.687C157.317 13.687 158.33 13.442 159.101 12.9368V10.8088C158.345 11.3446 157.377 11.6049 156.213 11.6049C154.942 11.6049 154.111 10.9772 154.065 9.99736H160.039C160.069 9.7524 160.084 9.47683 160.084 9.20125C160.084 8.0224 159.691 7.04258 158.935 6.24648C158.179 5.43505 157.165 5.03701 155.956 5.03701ZM154.065 8.42046C154.08 8.0377 154.277 7.71619 154.64 7.45593C155.018 7.19566 155.441 7.05789 155.956 7.05789C156.908 7.05789 157.649 7.68558 157.649 8.42046H154.065ZM165.816 5.08297C166.965 5.08297 167.933 5.49634 168.689 6.32307C169.46 7.14979 169.853 8.14493 169.853 9.33907C169.853 10.5332 169.46 11.5437 168.689 12.3857C167.933 13.1971 166.965 13.6105 165.816 13.6105C164.591 13.6105 163.638 13.1053 
18163.396 12.3857V13.4727H160.991V2.06696H163.396V6.30776C163.638 5.58819 164.591 5.08297 165.816 5.08297ZM165.377 11.4059C165.952 11.4059 166.436 11.2222 166.844 10.8241C167.252 10.4108 167.449 9.92085 167.449 9.3544C167.449 8.78793 167.252 8.29801 166.844 7.89997C166.451 7.4866 165.952 7.28758 165.377 7.28758C164.787 7.28758 164.288 7.4866 163.865 7.89997C163.456 8.29801 163.245 8.78793 163.245 9.3544C163.245 9.92085 163.456 10.4108 163.865 10.8241C164.273 11.2069 164.772 11.4059 165.377 11.4059Z" fill="currentColor"/>\n<path d="M89.8362 0.333008C89.988 0.364561 90.1313 0.428355 90.2565 0.520089C90.3966 0.630998 90.5038 0.778018 90.5669 0.945385C90.9647 1.94075 91.3625 2.9355 91.7603 3.92966C92.2006 5.03532 92.6431 6.14117 93.0877 7.24722C93.3194 7.82711 93.55 8.4076 93.7853 8.9863C93.8354 9.10466 93.8612 9.23191 93.8612 9.36046C93.8612 9.48901 93.8354 9.61626 93.7853 9.73462L91.7633 14.7786C91.6295 15.1125 91.3869 15.32 91.0303 15.3741C90.5867 15.4409 90.1898 15.222 90.0296 14.8327C89.6501 13.8997 89.2791 12.9637 88.9051 12.0283L87.0032 7.27007C86.4401 5.85803 85.8762 4.4464 85.3114 3.03517C85.1241 2.56656 84.9428 2.09555 84.7471 1.63055C84.6932 1.50411 84.6677 1.36735 84.6724 1.22995C84.6772 1.09255 84.712 0.957863 84.7744 0.835438C84.8368 0.713012 84.9254 0.605838 85.0337 0.52151C85.1421 0.437179 85.2677 0.377755 85.4015 0.347445C85.4177 0.343836 85.4333 0.33782 85.4489 0.333008H89.8362Z" fill="url(#paint0_linear_208_15)"/>\n<path d="M81.9564 0.333008C82.0062 0.346844 82.0561 0.358875 82.1047 0.375718C82.2313 0.415281 82.3474 0.482777 82.4446 0.57324C82.5417 0.663706 82.6174 0.774838 82.666 0.898465C83.1003 1.97644 83.5325 3.05522 83.9628 4.13481C84.3982 5.2232 84.8337 6.31181 85.2691 7.4006C85.482 7.93438 85.696 8.46795 85.9109 9.00134C85.959 9.11556 85.9838 9.23828 85.9838 9.36226C85.9838 9.48624 85.959 9.60897 85.9109 9.7232C85.6707 10.3223 85.4306 10.9213 85.1905 11.52C84.7502 12.616 84.31 13.7121 83.8697 14.8081C83.8006 14.9787 83.6824 15.125 83.5302 15.2282C83.378 15.3315 83.1986 15.3871 83.0148 15.388C82.8201 15.3914 82.6291 15.3345 82.4679 15.225C82.3067 15.1155 82.1832 14.9587 82.1143 14.7762C81.7073 13.7433 81.2918 12.7135 80.88 11.6824C80.3281 10.2864 79.7734 8.89144 79.2158 7.49746C78.6483 6.0786 78.081 4.65954 77.5139 3.2403C77.2989 2.70311 77.0858 2.16473 76.8679 1.62814C76.7727 1.40457 76.768 1.15263 76.855 0.925706C76.942 0.698779 77.1137 0.514681 77.3337 0.412412C77.4136 0.380081 77.4956 0.353544 77.5793 0.333008H81.9564Z" fill="url(#paint1_linear_208_15)"/>\n<path d="M101.588 9.50617C101.468 9.91224 101.288 10.2954 101.135 10.687C100.692 11.8011 100.246 12.9146 99.7983 14.0274C99.6956 14.2825 99.5912 14.5369 99.4916 14.7932C99.4214 14.9683 99.3003 15.1183 99.1442 15.2237C98.9881 15.3292 98.804 15.3853 98.6156 15.3847C98.4273 15.3841 98.2436 15.3269 98.0881 15.2205C97.9326 15.1141 97.8124 14.9633 97.7434 14.7878L95.7994 9.92605L94.1185 5.72664C93.5698 4.35552 93.0215 2.98458 92.4735 1.61385C92.4214 1.48852 92.3974 1.35326 92.4032 1.21761C92.4089 1.08196 92.4443 0.949232 92.5068 0.828775C92.5693 0.708318 92.6574 0.603069 92.765 0.520448C92.8725 0.437828 92.9968 0.37985 93.1291 0.350601C93.1471 0.346391 93.1645 0.340375 93.1825 0.334961H97.5699C97.5836 0.339172 97.5969 0.344586 97.6108 0.347594C97.7646 0.379769 97.9079 0.450334 98.0273 0.552752C98.1467 0.655171 98.2385 0.78613 98.2938 0.933503C98.5493 1.57515 98.805 2.215 99.0612 2.85305C99.7316 4.52856 100.401 6.20407 101.071 7.87958C101.246 8.32113 101.442 8.75485 101.586 9.20842L101.588 9.50617Z" fill="url(#paint2_linear_208_15)"/>\n</g>\n<path d="M0.788497 15.9577V6.16183H2.73655V7.35849H2.82468C2.91126 7.16678 3.03649 6.97197 3.20037 6.77407C3.36735 6.57308 3.5838 6.40611 3.84972 6.27315C4.11874 6.13709 4.45269 6.06906 4.85158 6.06906C5.37106 6.06906 5.85034 6.20512 6.28942 6.47723C6.72851 6.74624 7.07947 7.15286 7.3423 7.69708C7.60513 8.2382 7.73655 8.91693 7.73655 9.73326C7.73655 10.5279 7.60823 11.1989 7.35158 11.7462C7.09802 12.2905 6.7517 12.7033 6.31262 12.9846C5.87662 13.2629 5.38806 13.4021 4.84694 13.4021C4.46351 13.4021 4.13729 13.3387 3.86827 13.2119C3.60235 13.0851 3.38435 12.9259 3.21429 12.7342C3.04422 12.5394 2.91435 12.343 2.82468 12.1451H2.76438V15.9577H0.788497ZM2.72263 9.72398C2.72263 10.1476 2.78139 10.5171 2.89889 10.8325C3.01639 11.1479 3.18646 11.3937 3.40909 11.57C3.63173 11.7432 3.90229 11.8297 4.22078 11.8297C4.54236 11.8297 4.81447 11.7416 5.03711 11.5654C5.25974 11.386 5.42826 11.1386 5.54267 10.8232C5.66017 10.5047 5.71892 10.1383 5.71892 9.72398C5.71892 9.31273 5.66172 8.95094 5.54731 8.63864C5.4329 8.32633 5.26438 8.08205 5.04174 7.9058C4.81911 7.72955 4.54545 7.64142 4.22078 7.64142C3.8992 7.64142 3.62709 7.72645 3.40445 7.89652C3.18491 8.06659 3.01639 8.30778 2.89889 8.62008C2.78139 8.93239 2.72263 9.30036 2.72263 9.72398ZM11.8809 13.4253C11.1604 13.4253 10.5374 13.2722 10.0117 12.9661C9.48912 12.6569 9.08559 12.2271 8.80111 11.6767C8.51664 11.1232 8.3744 10.4816 8.3744 9.75181C8.3744 9.01588 8.51664 8.37271 8.80111 7.82231C9.08559 7.26882 9.48912 6.83901 10.0117 6.53289C10.5374 6.22367 11.
181604 6.06906 11.8809 6.06906C12.6014 6.06906 13.2229 6.22367 13.7455 6.53289C14.2711 6.83901 14.6762 7.26882 14.9607 7.82231C15.2451 8.37271 15.3874 9.01588 15.3874 9.75181C15.3874 10.4816 15.2451 11.1232 14.9607 11.6767C14.6762 12.2271 14.2711 12.6569 13.7455 12.9661C13.2229 13.2722 12.6014 13.4253 11.8809 13.4253ZM11.8902 11.8947C12.2179 11.8947 12.4916 11.8019 12.7111 11.6164C12.9307 11.4278 13.0961 11.1711 13.2074 10.8464C13.3218 10.5218 13.379 10.1522 13.379 9.7379C13.379 9.32355 13.3218 8.95404 13.2074 8.62936C13.0961 8.30469 12.9307 8.04804 12.7111 7.85942C12.4916 7.6708 12.2179 7.57649 11.8902 7.57649C11.5593 7.57649 11.281 7.6708 11.0553 7.85942C10.8327 8.04804 10.6641 8.30469 10.5497 8.62936C10.4384 8.95404 10.3827 9.32355 10.3827 9.7379C10.3827 10.1522 10.4384 10.5218 10.5497 10.8464C10.6641 11.1711 10.8327 11.4278 11.0553 11.6164C11.281 11.8019 11.5593 11.8947 11.8902 11.8947ZM17.5071 13.2861L15.5684 6.16183H17.5674L18.6713 10.9485H18.7363L19.8865 6.16183H21.8485L23.0173 10.9206H23.0776L24.163 6.16183H26.1574L24.2233 13.2861H22.1314L20.907 8.80561H20.8188L19.5943 13.2861H17.5071ZM29.8878 13.4253C29.155 13.4253 28.5242 13.2769 27.9954 12.98C27.4697 12.6801 27.0647 12.2564 26.7802 11.7091C26.4957 11.1587 26.3535 10.5078 26.3535 9.75645C26.3535 9.02361 26.4957 8.38044 26.7802 7.82695C27.0647 7.27346 27.4651 6.8421 27.9815 6.53289C28.501 6.22367 29.1101 6.06906 29.8089 6.06906C30.279 6.06906 30.7165 6.14482 31.1216 6.29634C31.5297 6.44476 31.8853 6.66894 32.1884 6.96888C32.4945 7.26882 32.7326 7.64606 32.9026 8.1006C33.0727 8.55206 33.1577 9.08081 33.1577 9.68687V10.2295H27.142V9.00506H31.2978C31.2978 8.72058 31.236 8.46857 31.1123 8.24903C30.9886 8.02948 30.817 7.85787 30.5974 7.73418C30.381 7.60741 30.129 7.54402 29.8414 7.54402C29.5415 7.54402 29.2756 7.61359 29.0436 7.75274C28.8148 7.88879 28.6355 8.07277 28.5056 8.30469C28.3757 8.5335 28.3093 8.78861 28.3062 9.06999V10.2342C28.3062 10.5867 28.3711 10.8913 28.501 11.1479C28.6339 11.4046 28.821 11.6025 29.0622 11.7416C29.3034 11.8808 29.5894 11.9503 29.9203 11.9503C30.1398 11.9503 30.3408 11.9194 30.5232 11.8576C30.7057 11.7957 30.8618 11.703 30.9917 11.5793C31.1216 11.4556 31.2205 11.3041 31.2885 11.1247L33.116 11.2453C33.0232 11.6844 32.8331 12.0678 32.5455 12.3956C32.261 12.7203 31.8931 12.9738 31.4416 13.1563C30.9932 13.3356 30.4753 13.4253 29.8878 13.4253ZM34.0553 13.2861V6.16183H35.9709V7.40487H36.0451C36.175 6.96269 36.393 6.62874 36.6991 6.40302C37.0052 6.1742 37.3577 6.05979 37.7566 6.05979C37.8556 6.05979 37.9623 6.06597 38.0767 6.07834C38.1911 6.09071 38.2916 6.10772 38.3782 6.12936V7.88261C38.2854 7.85478 38.1571 7.83004 37.9932 7.8084C37.8293 7.78675 37.6793 7.77593 37.5433 7.77593C37.2526 7.77593 36.9929 7.83932 36.7641 7.9661C36.5383 8.08978 36.359 8.26294 36.226 8.48558C36.0961 8.70821 36.0312 8.96486 36.0312 9.25552V13.2861H34.0553ZM41.923 13.4253C41.1902 13.4253 40.5594 13.2769 40.0306 12.98C39.5049 12.6801 39.0999 12.2564 38.8154 11.7091C38.5309 11.1587 38.3887 10.5078 38.3887 9.75645C38.3887 9.02361 38.5309 8.38044 38.8154 7.82695C39.0999 7.27346 39.5003 6.8421 40.0167 6.53289C40.5362 6.22367 41.1453 6.06906 41.8442 6.06906C42.3142 6.06906 42.7517 6.14482 43.1568 6.29634C43.5649 6.44476 43.9205 6.66894 44.2236 6.96888C44.5297 7.26882 44.7678 7.64606 44.9378 8.1006C45.1079 8.55206 45.1929 9.08081 45.1929 9.68687V10.2295H39.1772V9.00506H43.333C43.333 8.72058 43.2712 8.46857 43.1475 8.24903C43.0238 8.02948 42.8522 7.85787 42.6327 7.73418C42.4162 7.60741 42.1642 7.54402 41.8766 7.54402C41.5767 7.54402 41.3108 7.61359 41.0788 7.75274C40.85 7.88879 40.6707 8.07277 40.5408 8.30469C40.4109 8.5335 40.3445 8.78861 40.3414 9.06999V10.2342C40.3414 10.5867 40.4063 10.8913 40.5362 11.1479C40.6691 11.4046 40.8562 11.6025 41.0974 11.7416C41.3386 11.8808 41.6246 11.9503 41.9555 11.9503C42.175 11.9503 42.376 11.9194 42.5584 11.8576C42.7409 11.7957 42.897 11.703 43.0269 11.5793C43.1568 11.4556 43.2557 11.3041 43.3237 11.1247L45.1512 11.2453C45.0584 11.6844 44.8683 12.0678 44.5807 12.3956C44.2962 12.7203 43.9283 12.9738 43.4768 13.1563C43.0284 13.3356 42.5105 13.4253 41.923 13.4253ZM48.7158 13.4021C48.1746 13.4021 47.6845 13.2629 47.2455 12.9846C46.8095 12.7033 46.4631 12.2905 46.2065 11.7462C45.9529 11.1989 45.8262 10.5279 45.8262 9.73326C45.8262 8.91693 45.9576 8.2382 46.2204 7.69708C46.4832 7.15286 46.8327 6.74624 47.2686 6.47723C47.7077 6.20512 48.1886 6.06906 48.7111 6.06906C49.11 6.06906 49.4424 6.13709 49.7083 6.27315C49.9774 6.40611 50.1938 6.57308 50.3577 6.77407C50.5247 6.97197 50.6515 7.16678 50.738 7.35849H50.7983V3.78706H52.7696V13.2861H50.8215V12.1451H50.738C50.6453 12.343 50.5139 12.5394 50.3438 12.7342C50.1768 12.9259 49.9588 13.0851 49.6898 13.2119C49.4239 13.3387 49.0992 13.4021 48.7158 13.4021ZM49.3419 11.8297C49.6604 11.8297 49.9294 11.7432 50.149 11.57C50.3716 11.3937 50.5417 11.
181479 50.6592 10.8325C50.7798 10.5171 50.8401 10.1476 50.8401 9.72398C50.8401 9.30036 50.7813 8.93239 50.6638 8.62008C50.5463 8.30778 50.3763 8.06659 50.1536 7.89652C49.931 7.72645 49.6604 7.64142 49.3419 7.64142C49.0173 7.64142 48.7436 7.72955 48.521 7.9058C48.2983 8.08205 48.1298 8.32633 48.0154 8.63864C47.901 8.95094 47.8438 9.31273 47.8438 9.72398C47.8438 10.1383 47.901 10.5047 48.0154 10.8232C48.1329 11.1386 48.3014 11.386 48.521 11.5654C48.7436 11.7416 49.0173 11.8297 49.3419 11.8297ZM56.6705 13.2861V3.78706H58.6464V7.35849H58.7067C58.7933 7.16678 58.9185 6.97197 59.0824 6.77407C59.2493 6.57308 59.4658 6.40611 59.7317 6.27315C60.0007 6.13709 60.3347 6.06906 60.7336 6.06906C61.2531 6.06906 61.7323 6.20512 62.1714 6.47723C62.6105 6.74624 62.9615 7.15286 63.2243 7.69708C63.4871 8.2382 63.6185 8.91693 63.6185 9.73326C63.6185 10.5279 63.4902 11.1989 63.2336 11.7462C62.98 12.2905 62.6337 12.7033 62.1946 12.9846C61.7586 13.2629 61.2701 13.4021 60.7289 13.4021C60.3455 13.4021 60.0193 13.3387 59.7503 13.2119C59.4844 13.0851 59.2664 12.9259 59.0963 12.7342C58.9262 12.5394 58.7963 12.343 58.7067 12.1451H58.6185V13.2861H56.6705ZM58.6046 9.72398C58.6046 10.1476 58.6634 10.5171 58.7809 10.8325C58.8984 11.1479 59.0685 11.3937 59.2911 11.57C59.5137 11.7432 59.7843 11.8297 60.1028 11.8297C60.4244 11.8297 60.6965 11.7416 60.9191 11.5654C61.1417 11.386 61.3103 11.1386 61.4247 10.8232C61.5422 10.5047 61.6009 10.1383 61.6009 9.72398C61.6009 9.31273 61.5437 8.95094 61.4293 8.63864C61.3149 8.32633 61.1464 8.08205 60.9237 7.9058C60.7011 7.72955 60.4275 7.64142 60.1028 7.64142C59.7812 7.64142 59.5091 7.72645 59.2865 7.89652C59.0669 8.06659 58.8984 8.30778 58.7809 8.62008C58.6634 8.93239 58.6046 9.30036 58.6046 9.72398ZM65.5354 15.9577C65.2849 15.9577 65.0499 15.9376 64.8304 15.8975C64.6139 15.8603 64.4346 15.8124 64.2923 15.7537L64.7376 14.2787C64.9695 14.3498 65.1782 14.3885 65.3638 14.3947C65.5524 14.4009 65.7147 14.3576 65.8508 14.2648C65.9899 14.172 66.1028 14.0143 66.1894 13.7917L66.3053 13.4902L63.7497 6.16183H65.8276L67.3025 11.3937H67.3768L68.8656 6.16183H70.9575L68.1884 14.0561C68.0555 14.4395 67.8746 14.7735 67.6458 15.0579C67.4201 15.3455 67.134 15.5666 66.7877 15.7212C66.4414 15.8789 66.0239 15.9577 65.5354 15.9577Z" fill="currentColor"/>\n<defs>\n<linearGradient id="paint0_linear_208_15" x1="83.9919" y1="1.55536" x2="94.5605" y2="12.1028" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n<linearGradient id="paint1_linear_208_15" x1="76.1162" y1="1.55175" x2="86.6824" y2="12.0968" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n<linearGradient id="paint2_linear_208_15" x1="91.7237" y1="1.55069" x2="102.291" y2="12.0963" gradientUnits="userSpaceOnUse">\n<stop stop-color="#FF00A8"/>\n<stop offset="1" stop-color="#6200C6"/>\n</linearGradient>\n<clipPath id="clip0_208_15">\n<rect width="93.2653" height="15.102" fill="white" transform="translate(76.7344 0.286133)"/>\n</clipPath>\n</defs>\n</svg>\n',Xd='\n  <svg height="100%" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M4.99902 0.12619V5.20805L9.58065 7.12736L4.99902 0.12619Z" fill="white" fill-opacity="0.602"/>\n    <path d="M4.99923 0.12619L0.416992 7.12736L4.99923 5.20805V0.12619Z" fill="white"/>\n    <path d="M4.99902 10.4207V13.8737L9.58371 7.92728L4.99902 10.4207Z" fill="white" fill-opacity="0.602"/>\n    <path d="M4.99923 13.8737V10.4201L0.416992 7.92728L4.99923 13.8737Z" fill="white"/>\n    <path d="M4.99902 9.62134L9.58065 7.12739L4.99902 5.20923V9.62134Z" fill="white" fill-opacity="0.2"/>\n    <path d="M0.416992 7.12739L4.99923 9.62134V5.20923L0.416992 7.12739Z" fill="white" fill-opacity="0.602"/>\n  </svg>\n',ef='\n  <svg width="100%" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10.5091 4.05856C10.2585 3.91901 9.9362 3.91901 9.64974 4.05856L7.64453 5.20986L6.28385 5.94251L4.31445 7.09382C4.0638 7.23337 3.74154 7.23337 3.45508 7.09382L1.91536 6.18673C1.66471 6.04718 1.48568 5.76807 1.48568 5.45408V3.70968C1.48568 3.43057 1.62891 3.15147 1.91536 2.97703L3.45508 2.10483C3.70573 1.96527 4.02799 1.96527 4.31445 2.10483L5.85417 3.01192C6.10482 3.15147 6.28385 3.43057 6.28385 3.74457V4.89587L7.64453 4.12833V2.94214C7.64453 2.66304 7.5013 2.38393 7.21484 2.20949L4.35026 0.569752C4.09961 0.4302 3.77734 0.4302 3.49089 0.569752L0.554687 2.24438C0.268229 2.38393 0.125 2.66304 0.125 2.94214V6.22162C0.125 6.50072 0.268229 6.77983 0.554687 6.95427L3.45508 8.59401C3.70573 8.73356 4.02799 8.73356 4.31445 8.59401L6.28385 7.47759
18L7.64453 6.71005L9.61393 5.59363C9.86458 5.45408 10.1868 5.45408 10.4733 5.59363L12.013 6.46583C12.2637 6.60539 12.4427 6.88449 12.4427 7.19848V8.94289C12.4427 9.22199 12.2995 9.50109 12.013 9.67553L10.5091 10.5477C10.2585 10.6873 9.9362 10.6873 9.64974 10.5477L8.11002 9.67553C7.85937 9.53598 7.68034 9.25688 7.68034 8.94289V7.82647L6.31966 8.59401V9.74531C6.31966 10.0244 6.46289 10.3035 6.74935 10.478L9.64974 12.1177C9.90039 12.2572 10.2227 12.2572 10.5091 12.1177L13.4095 10.478C13.6602 10.3384 13.8392 10.0593 13.8392 9.74531V6.43095C13.8392 6.15184 13.696 5.87274 13.4095 5.6983L10.5091 4.05856Z" fill="white"/>\n  </svg>\n',tf='\n  <svg width="100%" viewBox="0 0 17 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M3.33611 9.25254C2.38341 9.25254 1.60287 9.02834 0.99442 8.58002C0.393974 8.1237 0.09375 7.47526 0.09375 6.63462C0.09375 6.45849 0.113782 6.2423 0.153782 5.9861C0.257909 5.40972 0.406006 4.71718 0.598133 3.9086C1.14252 1.707 2.54757 0.606201 4.81323 0.606201C5.42967 0.606201 5.98206 0.710266 6.47044 0.918394C6.95882 1.11852 7.34308 1.42278 7.62327 1.8311C7.90346 2.23135 8.04362 2.71174 8.04362 3.27212C8.04362 3.44025 8.02359 3.65241 7.98352 3.9086C7.86346 4.62111 7.71933 5.31366 7.55121 5.9861C7.27101 7.08294 6.78666 7.90354 6.09815 8.44793C5.40964 8.98431 4.489 9.25254 3.33611 9.25254ZM3.50424 7.52326C3.95262 7.52326 4.33284 7.39116 4.6451 7.12697C4.96535 6.86278 5.19351 6.45849 5.32958 5.9141C5.51371 5.16153 5.65387 4.50502 5.74993 3.94463C5.78193 3.7765 5.79793 3.60441 5.79793 3.42822C5.79793 2.6997 5.41764 2.33542 4.65713 2.33542C4.20875 2.33542 3.82449 2.46751 3.50424 2.7317C3.19205 2.99596 2.96786 3.40025 2.83179 3.94463C2.68766 4.48102 2.54354 5.13753 2.39947 5.9141C2.36741 6.07417 2.35141 6.2423 2.35141 6.41842C2.35141 7.155 2.73573 7.52326 3.50424 7.52326Z" fill="white"/>\n    <path d="M8.59569 9.13247C8.50762 9.13247 8.43953 9.10443 8.39153 9.04837C8.35146 8.98431 8.33949 8.9123 8.35549 8.83224L10.0127 1.02648C10.0287 0.938417 10.0727 0.866353 10.1448 0.810289C10.2169 0.754289 10.2929 0.726257 10.373 0.726257H13.5673C14.456 0.726257 15.1685 0.910385 15.7049 1.27864C16.2493 1.64696 16.5215 2.17931 16.5215 2.87582C16.5215 3.07595 16.4975 3.28415 16.4495 3.50027C16.2493 4.42098 15.845 5.10149 15.2366 5.54
18181C14.6361 5.98213 13.8115 6.20229 12.7627 6.20229H11.1415L10.5892 8.83224C10.5731 8.92031 10.5291 8.99231 10.4571 9.04837C10.385 9.10443 10.3089 9.13247 10.2289 9.13247H8.59569ZM12.8468 4.54507C13.183 4.54507 13.4752 4.45298 13.7234 4.26885C13.9796 4.08472 14.1478 3.82053 14.2278 3.47627C14.2518 3.34015 14.2639 3.22008 14.2639 3.11602C14.2639 2.88383 14.1958 2.7077 14.0597 2.58763C13.9236 2.45951 13.6914 2.3955 13.3632 2.3955H11.9221L11.4658 4.54507H12.8468Z" fill="white"/>\n  </svg>\n',rf='\n  <svg height="100%" viewBox="0 0 22 25" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M13.7827 11.3172L15.5966 8.23933L20.4858 15.8545L20.4881 17.3159L20.4722 7.25942C20.4606 7.0136 20.3301 6.7887 20.1218 6.6561L11.3194 1.5928C11.1135 1.49162 10.8523 1.49269 10.6468 1.59594C10.6191 1.60989 10.593 1.62499 10.568 1.64147L10.5374 1.66079L1.99318 6.6121L1.95999 6.62712C1.91737 6.64674 1.8743 6.67165 1.83382 6.70063C1.67186 6.81683 1.56424 6.98861 1.52944 7.18131C1.52423 7.21052 1.52039 7.24026 1.51855 7.27023L1.53197 15.4653L6.08607 8.40666C6.65942 7.47067 7.90869 7.1692 9.06835 7.1856L10.4295 7.22155L2.40986 20.0827L3.3552 20.627L11.4709 7.23458L15.0581 7.22155L6.96327 20.9519L10.3366 22.8921L10.7396 23.1239C10.9101 23.1932 11.111 23.1967 11.283 23.1347L20.2091 17.9618L18.5026 18.9507L13.7827 11.3172ZM14.4747 21.2849L11.0677 15.9375L13.1474 12.4083L17.622 19.461L14.4747 21.2849Z" fill="#2D374B"/>\n    <path d="M11.0684 15.9375L14.4754 21.2849L17.6228 19.4609L13.1482 12.4083L11.0684 15.9375Z" fill="#28A0F0"/>\n    <path d="M20.4887 17.3159L20.4864 15.8545L15.5972 8.23932L13.7832 11.3172L18.5031 18.9507L20.2097 17.9618C20.3771 17.8259 20.4783 17.6264 20.489 17.4111L20.4887 17.3159Z" fill="#28A0F0"/>\n    <path d="M7.71943e-05 18.694L2.41 20.0826L10.4296 7.22152L9.0685 7.18557C7.90883 7.16916 6.65964 7.47063 6.08621 8.40662L1.53211 15.4652L0 17.8193V18.694H7.71943e-05Z" fill="white"/>\n    <path d="M15.0582 7.22156L11.4712 7.23459L3.35547 20.627L6.19211 22.2603L6.96354 20.9519L15.0582 7.22156Z" fill="white"/>\n    <path d="M21.9999 7.20306C21.97 6.45287 21.5638 5.76608 20.9275 5.36626L12.0097 0.237888C11.3803 -0.079066 10.594 -0.0794494 9.96363 0.237658C9.88913 0.275218 1.2912 5.26171 1.2912 5.26171C1.17223 5.31874 1.05764 5.38673 0.949789 5.46384C0.381801 5.87094 0.0355663 6.50346 0 7.19846V17.8194L1.53211 15.4653L1.5187 7.27029C1.52054 7.24032 1.52429 7.21088 1.52958 7.18175C1.56415 6.9889 1.67185 6.81689 1.83397 6.70069C1.87444 6.67171 10.6192 1.60995 10.647 1.596C10.8526 1.49275 11.1137 1.49168 11.3195 1.59286L20.122 6.65616C20.3302 6.78876 20.4608 7.01366 20.4723 7.25948V17.4111C20.4617 17.6265 20.3766 17.8259 20.2092 17.9619L18.5026 18.9508L17.6221 19.461L14.4748 21.285L11.283 23.1347C11.1111 23.1968 10.9101 23.1933 10.7397 23.124L6.96334 20.952L6.19191 22.2603L9.58559 24.2142C9.6978 24.278 9.79784 24.3345 9.87985 24.3807C10.0069 24.452 10.0935 24.4996 10.1241 24.5144C10.3653 24.6315 10.7123 24.6997 11.025 24.6997C11.3118 24.6997 11.5913 24.647 11.8559 24.5434L21.1266 19.1745C21.6587 18.7623 21.9717 18.1406 21.9999 17.467V7.20306Z" fill="#96BEDC"/>\n  </svg>\n',nf='\n<svg height="100%" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_1607_202)">\n<mask id="mask0_1607_202" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">\n<path d="M32 0H0V32H32V0Z" fill="white"/>\n</mask>\n<g mask="url(#mask0_1607_202)">\n<path d="M16 32C19.1645 32 22.258 31.0616 24.8892 29.3036C27.5204 27.5454 29.571 25.0466 30.782 22.123C31.993 19.1993 32.31 15.9823 31.6926 12.8786C31.0752 9.77486 29.5514 6.92394 27.3138 4.6863C25.076 2.44866 22.2252 0.924806 19.1214 0.307442C16.0177 -0.30992 12.8007 0.0069325 9.87706 1.21793C6.95344 2.42894 4.45458 4.4797 2.69648 7.11088C0.938384 9.74206 0 12.8355 0 16C0 20.2434 1.68571 24.3132 4.6863 27.3138C7.68688 30.3142 11.7565 32 16 32Z" fill="#0052FF"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9624 27.2676C22.1852 27.2676 27.23 22.223 27.23 16C27.23 9.7771 22.1852 4.73242 15.9624 4.73242C10.0588 4.73242 5.21566 9.2726 4.7341 15.0518H21.4546V16.928H4.73242C5.20432 22.7168 10.0519 27.2676 15.9624 27.2676Z" fill="white"/>\n</g>\n</g>\n<defs>\n<clipPath id="clip0_1607_202">\n<rect width="32" height="32" fill="white"/>\n</clipPath>\n</defs>\n</svg>
18\n',of='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M11.07 12.85C11.84 11.46 13.32 10.64 14.18 9.41C15.09 8.12 14.58 5.71 12 5.71C10.31 5.71 9.48 6.99 9.13 8.05L6.54 6.96C7.25 4.83 9.18 3 11.99 3C14.34 3 15.95 4.07 16.77 5.41C17.47 6.56 17.88 8.71 16.8 10.31C15.6 12.08 14.45 12.62 13.83 13.76C13.58 14.22 13.48 14.52 13.48 16H10.59C10.58 15.22 10.46 13.95 11.07 12.85ZM14 20C14 21.1 13.1 22 12 22C10.9 22 10 21.1 10 20C10 18.9 10.9 18 12 18C13.1 18 14 18.9 14 20Z" fill="currentColor"/>\n  </svg>\n',sf='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z" fill="currentColor"/>\n  </svg>\n',af='\n  <svg width="100%" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M6.74999 12.15L3.59999 9L2.54999 10.05L6.74999 14.25L15.75 5.25L14.7 4.2L6.74999 12.15Z" fill="currentColor"/>\n  </svg>\n';const lf=e=>null!=e;function cf(e){return e.includes("<svg")}function uf(e){return`${e.slice(0,6)}…${e.slice(-4)}`}function hf(e){return e.length>11?`${e.slice(0,4)}…${e.slice(-6)}`:e}async function df(e){try{return await navigator.clipboard.writeText(e)}catch(t){}}const ff=e=>"number"==typeof e?`0x${e.toString(16)}`:e;function pf(e){return`0x${(1e9*e).toString(16)}`}const mf={"0x1":"Ethereum","0xaa36a7":"Sepolia","0x38":"Binance","0x89":"Polygon","0xfa":"Fantom","0xa":"OP Mainnet","0x45":"OP Kovan","0xa86a":"Avalanche","0xa4ec":"Celo","0x2105":"Base","0x14a33":"Base Goerli","0x64":"Gnosis","0x63564C40":"Harmony One","0xa4b1":"Arbitrum One","0xa4ba":"Arbitrum Nova","0x27bc86aa":"Degen","0x890":"SNAX"};function gf(e){switch(e){case"0x1":case"0x89":case"0xa":case"0xa4b1":case"0x144":return"0x1";case"0x5":case"0xaa36a7":return e;default:return null}}const bf={main:"0x1",sepolia:"0xaa36a7",xdai:"0x64","bsc-main":"0x38","matic-main":"0x89","fantom-main":"0xfa","matic-mumbai":"0x80001",degen:"0x27bc86aa",SNAX:"0x890"},yf={"0x1":{icon:Xd,color:"#627EEA"},"0xaa36a7":{icon:Xd,color:"#627EEA"},"0x38":{icon:'\n  <svg width="100%" height="100%" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M4.32975 5.90275L7 3.2325L9.67163 5.90413L11.2254 4.35038L7 0.125L2.776 4.349L4.32975 5.90275ZM0.125 7L1.67875 5.44625L3.2325 7L1.67875 8.55375L0.125 7ZM4.32975 8.09725L7 10.7675L9.67163 8.09587L11.2254 9.64894L7 13.875L2.776 9.651L2.77394 9.64894L4.32975 8.09725ZM10.7675 7L12.3212 5.44625L13.875 7L12.3212 8.55375L10.7675 7ZM8.57575 6.99863H8.57713V7L7 8.57713L5.42494 7.00275L5.42219 7L5.42494 6.99794L5.70062 6.72156L5.83469 6.5875L7 5.42288L8.57644 6.99931L8.57575 6.99863Z" fill="white"/>\n  </svg>\n',color:"#F3BA2F"},"0x89":{icon:ef,color:"#8247E5"},"0xfa":{icon:'\n  <svg height="100%" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M5.26613 0.133876C5.46683 0.0457135 5.68592 0 5.90775 0C6.12958 0 6.34867 0.0457135 6.54938 0.133876L10.2679 1.9598C10.3617 1.99893 10.4437 2.05898 10.5068 2.13465C10.5699 2.21033 10.6121 2.29932 10.6298 2.3938H10.6335V11.5637C10.6245 11.6667 10.5857 11.7654 10.5213 11.8495C10.457 11.9336 10.3694 11.9998 10.2679 12.0411L6.54938 13.8656C6.34867 13.9538 6.12958 13.9995 5.90775 13.9995C5.68592 13.9995 5.46683 13.9538 5.26613 13.8656L1.54762 12.0397C1.44724 11.9979 1.36095 11.9313 1.29799 11.8472C1.23504 11.7631 1.19779 11.6646 1.19025 11.5623C1.19025 11.5465 1.19025 11.5332 1.19025 11.522V2.39205C1.20579 2.29767 1.24673 2.20852 1.30923 2.13292C1.37173 2.05733 1.45375 1.99776 1.54762 1.9598L5.26613 0.133876ZM10.0478 7.50898L6.54938 9.22396C6.34872 9.31229 6.12961 9.35809 5.90775 9.35809C5.68589 9.35809 5.46678 9.31229 5.26613 9.22396L1.77525 7.51283V11.5455L5.26613 13.2493C5.43937 13.3471 5.62982 13.4154 5.82863 13.4512L5.9085 13.4558C6.12668 13.4357 6.3373 13.3704 6.525 13.2647L10.05 11.5301V7.50898H10.0478ZM0.585375 11.3642C0.568078 11.6186 0.612957 11.8734 0.716625 12.1093C0.805331 12.2602 0.936232 12.3857 1.09538 12.4726L1.10662 12.4796C1.1505 12.5069 1.1985 12.5356 1.25663 12.5692L1.32563 12.6081L1.53675 12.7267L1.23375 13.1922L0.9975 13.0592L0.95775 13.0365C0.889125 12.9973 0.8325 12.9637 0.779625 12.9315C0.214875 12.5769 0.004125 12.1912 0 11.3887V11.3642H0.585H0.585375ZM5.61412 5.05096C5.58845 5.05933 5.5634 5.06926 5.53912 5.08071L1.82137 6.90524L1.81013 6.91119H1.80675L1.81275 6.91469L1.82137 6.91889L5.53988 8.74341C5.56405 8.75505 5.58912 8.76499 5.61487 8.77316L5.61412 5.05096ZM6.201 5.05096V8.77456C6.22675 8.76639 6.25182 8.75645 6.276 8.74481L9.9945 6.92029L10.0057 6.91434H10.0091L10.0031 6.91154L9.9945 6.90699L6.276 5.08246C6.25182 5.07083 6.22675 5.06088 6.201 5.05271V5.05096Z
18M10.0478 3.04479L6.71025 4.68137L10.0478 6.31795V3.04304V3.04479ZM1.77525 3.04864V6.3141L5.103 4.68137L1.77525 3.04864ZM6.27525 0.61617C6.15894 0.569406 6.03364 0.545286 5.907 0.545286C5.78036 0.545286 5.65506 0.569406 5.53875 0.61617L1.821 2.4393L1.80975 2.4449L1.80638 2.44665L1.81238 2.4498L1.821 2.45365L5.5395 4.27817C5.65571 4.32526 5.78106 4.34956 5.90775 4.34956C6.03444 4.34956 6.15979 4.32526 6.276 4.27817L9.9945 2.45365L10.0057 2.4498L10.0091 2.44805L10.0031 2.4449L9.9945 2.4407L6.27525 0.61617ZM10.5968 0.816717L10.833 0.949365L10.875 0.970015C10.9432 1.00921 10.9999 1.04316 11.0528 1.07501C11.6179 1.42851 11.8282 1.81455 11.8328 2.61709V2.64159H11.2459C11.2632 2.38703 11.2183 2.13212 11.1146 1.8961C11.0258 1.74528 10.8948 1.61983 10.7355 1.53316L10.7242 1.52616C10.6807 1.49851 10.6327 1.47016 10.5743 1.43656L10.5056 1.39981L10.2945 1.28151L10.5975 0.816017L10.5968 0.816717Z" fill="white"/>\n  </svg>\n',color:"#1969FF"},"0xa":{icon:tf,color:"#FF0420"},"0x45":{icon:tf,color:"#FF0420"},"0xa86a":{icon:'\n  <svg width="100%" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M19.8682 0.489349H0.110352V18.4468H19.8682V0.489349Z" fill="white"/>\n  </svg>\n',color:"#E84142"},"0xa4ec":{icon:'\n<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 26.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  --\x3e\n<svg version="1.1" id="Symbol" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 384 383" style="enable-background:new 0 0 384 383;" xml:space="preserve">\n<style type="text/css">\n\t.st0{fill:#FCFF52;}\n</style>\n<path class="st0" d="M383.5,0H0.5v383h383V249.3h-63.6C298,298.1,248.7,332,192.3,332c-77.8,0-140.8-63.6-140.8-140.8\n\tC51.4,114,114.5,51,192.3,51c57.5,0,106.8,35,128.7,84.9h62.5V0z"/>\n</svg>\n',color:"#FBCC5C"},"0x64":{icon:'\n  <svg width="100%" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z" fill="#04795B"/>\n    <path d="M11.6529 17.4492C12.2831 17.4492 12.8648 17.2392 13.3334 16.8758L9.4877 13.0316C9.12413 13.4919 8.9141 14.0734 8.9141 14.7114C8.906 16.2216 10.134 17.4492 11.6529 17.4492Z" fill="#EFEFEF"/>\n    <path d="M23.0931 14.7033C23.0931 14.0734 22.8831 13.4919 22.5195 13.0234L18.6738 16.8677C19.1343 17.2311 19.716 17.4411 20.3543 17.4411C21.8651 17.4492 23.0931 16.2216 23.0931 14.7033Z" fill="#EFEFEF"/>\n    <path d="M25.0322 10.528L23.3275 12.2321C23.8931 12.9105 24.2324 13.7666 24.2324 14.7195C24.2324 16.8597 22.4954 18.5961 20.3544 18.5961C19.4092 18.5961 18.5447 18.2569 17.866 17.6915L15.9998 19.5571L14.1335 17.6915C13.4549 18.2569 12.5985 18.5961 11.6451 18.5961C9.50416 18.5961 7.7672 16.8597 7.7672 14.7195C7.7672 13.7746 8.10651 12.9105 8.67206 12.2321L7.79947 11.3599L6.96736 10.528C5.99787 12.1271 5.44043 13.9927 5.44043 15.9956C5.44043 21.8265 10.1667 26.543 15.9917 26.543C21.8167 26.543 26.543 21.8185 26.543 15.9956C26.5591 13.9846 26.0017 12.119 25.0322 10.528Z" fill="#EFEFEF"/>\n    <path d="M23.6338 8.71084C21.7191 6.6999 19.0045 5.44 15.9991 5.44C12.9937 5.44 10.2872 6.6999 8.36435 8.71084C8.10584 8.98545 7.85539 9.27617 7.62109 9.575L15.991 17.9419L24.361 9.56695C24.1509 9.27617 23.9005 8.97734 23.6338 8.71084ZM15.9991 6.81297C18.4713 6.81297 20.7658 7.76593 22.4866 9.50231L15.9991 15.9874L9.5116 9.50231C11.2405 7.76593 13.5269 6.81297 15.9991 6.81297Z" fill="#EFEFEF"/>\n  </svg>\n',color:"#04795B"},"0x63564C40":{icon:'\n  <svg width="100%" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M12.5484 1.04102e-06C11.6346 -0.000708404 10.7578 0.361217 10.1105 1.00633C9.46322 1.65145 9.09835 2.52703 9.096 3.44089V7.256C8.74045 7.28 8.37689 7.29511 8 7.29511C7.62311 7.29511 7.26133 7.31022 6.904 7.33156V3.44089C6.88946 2.53496 6.51938 1.6710
185 5.87358 1.03553C5.22779 0.400017 4.35805 0.0438409 3.452 0.0438409C2.54595 0.0438409 1.67621 0.400017 1.03042 1.03553C0.384623 1.67105 0.0145378 2.53496 0 3.44089V12.5591C0.0145378 13.465 0.384623 14.329 1.03042 14.9645C1.67621 15.6 2.54595 15.9562 3.452 15.9562C4.35805 15.9562 5.22779 15.6 5.87358 14.9645C6.51938 14.329 6.88946 13.465 6.904 12.5591V8.744C7.25956 8.72 7.62311 8.70489 8 8.70489C8.37689 8.70489 8.73867 8.68978 9.096 8.66845V12.5591C9.11054 13.465 9.48062 14.329 10.1264 14.9645C10.7722 15.6 11.6419 15.9562 12.548 15.9562C13.4541 15.9562 14.3238 15.6 14.9696 14.9645C15.6154 14.329 15.9855 13.465 16 12.5591V3.44089C15.9976 2.52719 15.6329 1.65173 14.9858 1.00665C14.3387 0.361557 13.4622 -0.000472854 12.5484 1.04102e-06ZM3.45156 1.40978C3.99089 1.40954 4.50828 1.62326 4.89023 2.00404C5.27218 2.38482 5.48748 2.90156 5.48889 3.44089V7.48089C4.47892 7.62724 3.49264 7.90609 2.55556 8.31023C2.14954 8.48842 1.76733 8.71655 1.41778 8.98934V3.44089C1.41919 2.90218 1.634 2.38597 2.01518 2.00529C2.39636 1.62462 2.91284 1.41048 3.45156 1.40978ZM5.48889 12.5591C5.48889 13.0994 5.27424 13.6177 4.89217 13.9997C4.51009 14.3818 3.99189 14.5964 3.45156 14.5964C2.91122 14.5964 2.39302 14.3818 2.01094 13.9997C1.62887 13.6177 1.41422 13.0994 1.41422 12.5591V11.6444C1.41422 10.8364 2.05422 10.0711 3.12711 9.59467C3.88309 9.26852 4.6763 9.03656 5.48889 8.904V12.5591ZM12.5484 14.5902C12.0091 14.5905 11.4917 14.3767 11.1098 13.996C10.7278 13.6152 10.5125 13.0984 10.5111 12.5591V8.51911C11.5211 8.37276 12.5074 8.09392 13.4444 7.68978C13.8505 7.51159 14.2327 7.28345 14.5822 7.01067V12.5591C14.5808 13.0978 14.366 13.614 13.9848 13.9947C13.6036 14.3754 13.0872 14.5895 12.5484 14.5902ZM12.8729 6.4C12.1169 6.72615 11.3237 6.95811 10.5111 7.09067V3.44089C10.5111 2.90056 10.7258 2.38235 11.1078 2.00028C11.4899 1.6182 12.0081 1.40356 12.5484 1.40356C13.0888 1.40356 13.607 1.6182 13.9891 2.00028C14.3711 2.38235 14.5858 2.90056 14.5858 3.44089V4.35556C14.5858 5.16 13.9458 5.92534 12.8729 6.4Z" fill="url(#paint0_linear_10254_2422)"/>\n    <defs>\n      <linearGradient id="paint0_linear_10254_2422" x1="1.01333" y1="14.7674" x2="14.8954" y2="0.847434" gradientUnits="userSpaceOnUse">\n        <stop stop-color="#00AEE9"/>\n        <stop offset="1" stop-color="#69FABD"/>\n      </linearGradient>\n    </defs>\n  </svg>\n',color:"#ffffff"},"0xa4b1":{icon:rf,color:"#33394B"},"0xa4ba":{icon:rf,color:"#33394B"},"0x2105":{icon:nf,color:"#0259F9"},"0x14a33":{icon:nf,color:"#0259F9"},"0x80001":{icon:ef,color:"#8247E5"},"0x27bc86aa":{icon:'\n<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477 477">\n  <defs>\n    <style>.cls-1{fill:#a36dfe;}.cls-2{fill:#4b2895;}</style>\n  </defs>\n  <circle class="cls-1" cx="238.5" cy="238.5" r="238.5"/>\n  <g>\n    <path class="cls-2" d="M237.85,113.99c29.25,1.32,54.97,2.45,80.69,3.69,3.95,.19,7.92,.72,11.82,1.43,9.23,1.69,15.34,8.72,14.78,18.2-1.33,22.33-3.22,44.63-4.79,66.95-.81,11.47-1.49,22.96-2.12,34.44-.29,5.24-2.03,8.14-7.74,10.18-37.84,13.52-76.98,15.46-116.47,13.42-23.24-1.2-45.99-5.86-68.06-13.68-4.71-1.67-6.72-3.91-7.03-8.72-1.31-20.46-2.83-40.9-4.25-61.35-.94-13.55-2.1-27.1-2.7-40.66-.49-11.15,6.17-18.37,17.2-19.01,30.7-1.78,61.4-3.39,88.69-4.88Z"/><path class="cls-2" d="M238.34,363.01c-31.19-1.24-61.52-5.51-90.12-18.31-20.8-9.31-38.13-23.01-48.65-43.63-3.63-7.1-5.68-15.3-6.91-23.24-1.17-7.59,1.95-14.47,8.76-18.93,6.74-4.42,13.4-3.5,20.12,.38,14.24,8.24,14.6,8.18,14.39,24.44-.09,7.1,3.71,11.23,8.41,15.24,12.51,10.67,26.94,17.78,42.7,21.94,38.88,10.26,77.66,10.06,115.42-4.42,11.31-4.33,21.33-12.17,31.67-18.82,5.27-3.39,7.7-8.7,6.88-15.19-1.34-10.7,2.19-17.99,12.86-22.48,7.8-3.29,14.95-6.25,22.38-.72,7.42,5.53,9.4,13.33,7.88,22.37-4.05,24.14-19.06,40.5-38.25,53.68-18.5,12.7-39.59,19.06-61.42,22.61-15.24,2.48-30.72,3.44-46.1,5.09Z"/>\n  </g>\n</svg>\n',color:"#a36dfe"},"0x890":{icon:'<svg width="178" height="177" viewBox="0 0 178 177" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="89.0198" cy="88.4095" r="88.305" fill="#06061B"/>\n<path d="M68.0815 75.158C67.5149 74.5153 66.8174 74.1932 65.9874 74.1932H49.0126C48.8618 74.1932 48.7384 74.1459 48.6455 74.0512C48.5511 73.9581 48.5039 73.8528 48.5039 73.7398V62.3958C48.5039 62.2828 48.5511 62.179 48.6455 62.0844C48.7384 61.9897 48.8618 
1861.9424 49.0126 61.9424H66.9499C71.4761 61.9424 75.381 63.7773 78.6629 67.4442L83.0201 72.7185L74.5327 82.9848L68.0815 75.158ZM99.4299 67.3877C102.712 63.7575 106.635 61.9424 111.199 61.9424H129.08C129.231 61.9424 129.344 61.9805 129.42 62.0553C129.495 62.1317 129.533 62.2446 129.533 62.3958V73.7398C129.533 73.8528 129.495 73.9581 129.42 74.0512C129.344 74.1459 129.231 74.1932 129.08 74.1932H112.105C111.275 74.1932 110.578 74.5153 110.011 75.158L97.5064 90.2452L110.068 105.445C110.634 106.051 111.312 106.354 112.105 106.354H129.08C129.231 106.354 129.344 106.401 129.42 106.496C129.495 106.59 129.533 106.714 129.533 106.864V118.208C129.533 118.321 129.495 118.426 129.42 118.519C129.344 118.614 129.231 118.661 129.08 118.661H111.199C106.635 118.661 102.73 116.828 99.4863 113.159L89.0754 100.568L78.6629 113.159C75.381 116.828 71.4578 118.661 66.8936 118.661H49.0126C48.8618 118.661 48.7476 118.614 48.673 118.519C48.5968 118.424 48.5603 118.302 48.5603 118.15V106.806C48.5603 106.693 48.5968 106.589 48.673 106.494C48.7476 106.399 48.8618 106.352 49.0126 106.352H65.9874C66.7793 106.352 67.4768 106.032 68.0815 105.387L80.3595 90.5276L99.4299 67.3877Z" fill="#00D1FF"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.62306 101.122C1.02459 96.9706 0.714844 92.7262 0.714844 88.4095C0.714844 85.5803 0.84789 82.7823 1.10807 80.0212L11.5198 67.3877C14.8017 63.7575 18.7248 61.9424 23.2891 61.9424H41.1701C41.3209 61.9424 41.4336 61.9805 41.5097 62.0553C41.5844 62.1317 41.6224 62.2446 41.6224 62.3958V73.7398C41.6224 73.8528 41.5844 73.9581 41.5097 74.0512C41.4336 74.1459 41.3209 74.1932 41.1701 74.1932H24.1953C23.3653 74.1932 22.6678 74.5153 22.1012 75.158L9.59627 90.2452L22.1576 105.445C22.7241 106.051 23.4018 106.354 24.1953 106.354H41.1701C41.3209 106.354 41.4336 106.401 41.5097 106.496C41.5844 106.59 41.6224 106.714 41.6224 106.864V118.208C41.6224 118.321 41.5844 118.426 41.5097 118.519C41.4336 118.614 41.3209 118.661 41.1701 118.661H23.2891C18.7248 118.661 14.82 116.828 11.5761 113.159L1.62306 101.122Z" fill="#00D1FF"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M176.393 101.284C177.007 97.0816 177.325 92.7827 177.325 88.4095C177.325 85.5791 177.192 82.7799 176.931 80.0176L168.27 90.5276L155.992 105.387C155.387 106.032 154.689 106.352 153.898 106.352H136.923C136.772 106.352 136.658 106.399 136.583 106.494C136.507 106.589 136.47 106.693 136.47 106.806V118.15C136.47 118.302 136.507 118.424 136.583 118.519C136.658 118.614 136.772 118.661 136.923 118.661H154.804C159.368 118.661 163.291 116.828 166.573 113.159L176.393 101.284ZM153.898 74.1932C154.728 74.1932 155.425 74.5153 155.992 75.158L162.443 82.9848L170.93 72.7185L166.573 67.4442C163.291 63.7773 159.386 61.9424 154.86 61.9424H136.923C136.772 61.9424 136.649 61.9897 136.556 62.0844C136.461 62.179 136.414 62.2828 136.414 62.3958V73.7398C136.414 73.8528 136.461 73.9581 136.556 74.0512C136.649 74.1459 136.772 74.1932 136.923 74.1932H153.898Z" fill="#00D1FF"/>\n</svg>',color:"#00D1FF"}},vf={icon:of,color:"#33394B"};function wf(e){return e?yf[e.toLowerCase()]:void 0}function _f(e,t){return!!t.find(({id:t,namespace:r})=>t===e.id&&r===e.namespace)}const Ef={pending:{backgroundColor:"var(--onboard-primary-700, var(--primary-700))",borderColor:"#6370E5",eventIcon:'\n<svg width="100%" height="100%" viewBox="0 0 12 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M0 0L0.0100002 6L4 10L0.0100002 14.01L0 20H12V14L8 10L12 6.01V0H0ZM10 14.5V18H2V14.5L6 10.5L10 14.5Z" fill="#929BED"/>\n</svg>\n'},success:{backgroundColor:"#052E17",borderColor:"var(--onboard-success-300, var(--success-300))",eventIcon:'\n<svg width="14" height="11" viewB
18ox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M4.48076 8.10881L1.33076 4.95881L0.280762 6.00881L4.48076 10.2088L13.4808 1.20881L12.4308 0.158813L4.48076 8.10881Z" fill="#A4F4C6"/>\n</svg>\n'},error:{backgroundColor:"#FDB1B11A",borderColor:"var(--onboard-danger-300, var(--danger-300))",eventIcon:'<svg width="16" height="13" viewBox="0 0 16 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.666992 13.0002H15.3337L8.00033 0.333496L0.666992 13.0002ZM8.66699 11.0002H7.33366V9.66683H8.66699V11.0002ZM8.66699 8.3335H7.33366V5.66683H8.66699V8.3335Z" fill="#FFB3B3"/>\n</svg>\n'},hint:{backgroundColor:"var(--onboard-gray-500, var(--gray-500))",borderColor:"var(--onboard-gray-500, var(--gray-500))",iconColor:"var(--onboard-gray-100, var(--gray-100))",eventIcon:sf}};function Af(e){try{return localStorage.getItem(e)}catch(t){return null}}function xf(e,t){try{localStorage.setItem(e,t)}catch(r){return}}function kf(e){try{localStorage.removeItem(e)}catch(t){return}}let Cf={svelteInstance:null,device:function(){if("undefined"!=typeof window){const e=ft.getParser(window.navigator.userAgent),t=e.getOS(),r=e.getBrowser(),{type:n}=e.getPlatform();return{type:n,os:t,browser:r}}return{type:null,os:null,browser:null}}(),initialWalletInit:[],gas:void 0,containerElements:{accountCenter:void 0,connectModal:void 0},unstoppableResolution:void 0,wagmi:void 0};function Pf(e){Cf=Object.assign(Object.assign({},Cf),e)}const If={wallets:[],walletModules:[],chains:[],accountCenter:{enabled:!0,position:"bottomRight",expanded:!1,minimal:!0},notify:{enabled:!0,position:"topRight",replacement:{gasPriceProbability:{speedup:80,cancel:95}}},notifications:[],locale:"",connect:{showSidebar:!0,disableClose:!1},appMetadata:null,wagmiConfig:null},Sf="onboard.js:agreement",Of="onboard.js:last_connected_wallet",Mf=768,Tf="https://rpc.blocknative.com/boost",Nf="https://docs.blocknative.com/blocknative-mev-protection/transaction-boost",Rf="add_chains",jf="update_chains",Bf="reset_store",$f="add_wallet",Lf="update_wallet",Ff="remove_wallet",Df="update_account",Uf="update_account_center",Hf="update_connect_modal",zf="set_wallet_modules",qf="set_locale",Gf="update_notify",Wf="add_notification",Vf="remove_notification",Zf="update_balance",Kf="update_app_metadata",Jf="update_wagmi_config";const Yf=new G(If),Qf=new z;function Xf(e){const t=Yf.getValue();Qf.next(function(e,t){const{type:r,payload:n}=t;switch(r){case Rf:return Object.assign(Object.assign({},e),{chains:[...e.chains,...n]});case jf:{const t=n,r=e.chains,i=r.findIndex(e=>e.id===t.id);return r[i]=t,Object.assign(Object.assign({},e),{chains:r})}case $f:{const t=n,r=e.wallets.find(({label:e})=>e===t.label);return Object.assign(Object.assign({},e),{wallets:[r||n,...e.wallets.filter(({label:e})=>e!==t.label)]})}case Lf:{const t=n,{id:r}=t,i=Jd(t,["id"]),o=e.wallets.map(e=>e.label===r?Object.assign(Object.assign({},e),i):e);return Object.assign(Object.assign({},e),{wallets:o})}case Ff:{const t=n;return Object.assign(Object.assign({},e),{wallets:e.wallets.filter(({label:e})=>e!==t.id)})}case Df:{const t=n,{id:r,address:i}=t,o=Jd(t,["id","address"]),s=e.wallets.map(e=>(e.label===r&&(e.accounts=e.accounts.map(e=>e.address===i?Object.assign(Object.assign({},e),o):e)),e));return Object.assign(Object.assign({},e),{wallets:s})}case Zf:{const t=n;return Object.assign(Object.assign({},e),{wallets:t})}case Hf:{const t=n;return Object.assign(Object.assign({},e),{connect:Object.assign(Object.assign({},e.connect),t)})}case Uf:{const t=n;return Object.assign(Object.assign({},e),{accountCenter:Object.assign(Object.assign({},e.accountCenter),t)})}case Gf:{const t=n;return Object.assign(Object.assign({},e),{notify:Object.assign(Object.assign({},e.notify),t)})}case Wf:{const t=n,r=[...e.notifications],i=r.findIndex(({id:e})=>e===t.id);return-1!==i?r[i]=t:r.unshift(t),Object.assign(Object.assign({},e),{notifications:r})}case Vf:{const t=n;return Object.assign(Object.assign({},e),{notifications:e.notifications.filter(e=>e.id!==t)})}case zf:return Object.assign(Object.assign({},e),{walletModules:n});case qf:return Ln.set(n),Object.assign(Object.assign({},e),{locale:n});case Kf:{const t=n;return Object.assign(Object.assign({},e),{appMetadata:Object.assign(Object.assign(Object.assign({},e.appMetadata),t),{name:t.name||""})})}case Jf:{const t=n;return Object.assign(Object.assign({},e),{wagmiConfig:t})}case Bf:return If;default:throw new Error(`Unknown type: ${r} in appStore reducer`)}}(t,e))}Qf.subscribe(Yf);const ep={select:function(e){if(!e)return Qf.asObservable();if(!Object.keys(Yf.getValue()).includes(String(e)))throw new Error(`key: ${e} does not exist on this store`);return Qf.asObservable().pipe(ze(e),qe(e),$e(lf))},get:function(){return Yf.getValue()}};function tp(){}const rp=e=>e;function np(e){return e()}function ip(){return Object.create(null)}function op(e){e.forEach(np)}function sp(e){return"function"==typeof e}function ap(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let lp;function cp(e,t){return lp||(lp=document.createElement("a")),lp.href=t,e===lp.href}function up(e,t,r){e.$$.on_destroy.push(function(e,...t){if(null==e)return tp;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(t,r))}function hp(e,t,r,n){if(e){const i=dp(e,t,r,n);return e[0](i)}}function dp(e,t,r,n){return e[1]&&n?function(e,t){for(const r in t)e[r]=t[r];return e}(r.ctx.slice(),e[1](n(t))):r.ctx}function fp(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],r=Math.max(t.dirty.length,i.length);for(let n=0;n<r;n+=1)e[n]=t.dirty[n]|i[n];return e}return t.dirty|i}return t.dirty}function pp(e,t,r,n,i,o){if(i){const s=dp(t,r,n,o);e.p(s,i)}}function mp(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let e=0;e<r;e++)t[e]=-1;return t}return-1}function gp(e){return null==e?"":e}function bp(e){const t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const yp="undefined"!=typeof window;let vp=yp?()=>window.performance.now():()=>Date.now(),wp=yp?e=>requestAnimationFrame(e):tp;const _p=new Set;function Ep(e){_p.forEach(t=>{t.c(e)||(_p.delete(t),t.f())}),0!==_p.size&&wp(Ep)}function Ap(e){let t;return 0===_p.size&&wp(Ep),{promise:new Promise(r=>{_p.add(t={c:e,f:r})}),abort(){_p.delete(t)}}}function xp(e,t){e.appendChild(t)}function kp(e,t,r){const n=Cp(e);if(!n.getElementById(t)){const e=Tp("style");e.id=t,e.textContent=r,Ip(n,e)}}function Cp(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pp(e){const t=Tp("style");return Ip(Cp(e),t),t.sheet}function Ip(e,t){return xp(e.head||e,t),t.sheet}function Sp(e,t,r){e.insertBefore(t,r||null)}function Op(e){e.parentNode&&e.parentNode.removeChild(e)}function Mp(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function Tp(e){return document.createElement(e)}function Np(e){return document.createTextNode(e)}function Rp(){return Np(" ")}function jp(){return Np("")}function Bp(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function $p(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function Lp(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}
18function Fp(e,t){t=""+t,e.data!==t&&(e.data=t)}function Dp(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function Up(e,t,r){for(let n=0;n<e.options.length;n+=1){const r=e.options[n];if(r.__value===t)return void(r.selected=!0)}e.selectedIndex=-1}function Hp(e,t,r){e.classList[r?"add":"remove"](t)}class zp{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,r=null){var n;this.e||(this.is_svg?this.e=(n=t.nodeName,document.createElementNS("http://www.w3.org/2000/svg",n)):this.e=Tp(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)Sp(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(Op)}}function qp(e,t){return new e(t)}const Gp=new Map;let Wp,Vp=0;function Zp(e,t,r,n,i,o,s,a=0){const l=16.666/n;let c="{\n";for(let g=0;g<=1;g+=l){const e=t+(r-t)*o(g);c+=100*g+`%{${s(e,1-e)}}\n`}const u=c+`100% {${s(r,1-r)}}\n}`,h=`__svelte_${function(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}(u)}_${a}`,d=Cp(e),{stylesheet:f,rules:p}=Gp.get(d)||function(e,t){const r={stylesheet:Pp(t),rules:{}};return Gp.set(e,r),r}(d,e);p[h]||(p[h]=!0,f.insertRule(`@keyframes ${h} ${u}`,f.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${h} ${n}ms linear ${i}ms 1 both`,Vp+=1,h}function Kp(e,t){const r=(e.style.animation||"").split(", "),n=r.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=r.length-n.length;i&&(e.style.animation=n.join(", "),Vp-=i,Vp||wp(()=>{Vp||(Gp.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Op(t)}),Gp.clear())}))}function Jp(e,t,r,n){if(!t)return tp;const i=e.getBoundingClientRect();if(t.left===i.left&&t.right===i.right&&t.top===i.top&&t.bottom===i.bottom)return tp;const{delay:o=0,duration:s=300,easing:a=rp,start:l=vp()+o,end:c=l+s,tick:u=tp,css:h}=r(e,{from:t,to:i},n);let d,f=!0,p=!1;function m(){h&&Kp(e,d),f=!1}return Ap(e=>{if(!p&&e>=l&&(p=!0),p&&e>=c&&(u(1,0),m()),!f)return!1;if(p){const t=0+1*a((e-l)/s);u(t,1-t)}return!0}),h&&(d=Zp(e,0,1,s,o,a,h)),o||(p=!0),u(0,1),m}function Yp(e){const t=getComputedStyle(e);if("absolute"!==t.position&&"fixed"!==t.position){const{width:r,height:n}=t,i=e.getBoundingClientRect();e.style.position="absolute",e.style.width=r,e.style.height=n,Qp(e,i)}}function Qp(e,t){const r=e.getBoundingClientRect();if(t.left!==r.left||t.top!==r.top){const n=getComputedStyle(e),i="none"===n.transform?"":n.transform;e.style.transform=`${i} translate(${t.left-r.left}px, ${t.top-r.top}px)`}}function Xp(e){Wp=e}function em(){if(!Wp)throw new Error("Function called outside component initialization");return Wp}function tm(e){em().$$.on_destroy.push(e)}function rm(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach(e=>e.call(this,t))}const nm=[],im=[];let om=[];const sm=[],am=Promise.resolve();let lm=!1;function cm(e){om.push(e)}function um(e){sm.push(e)}const hm=new Set;let dm,fm=0;function pm(){if(0!==fm)return;const e=Wp;do{try{for(;fm<nm.length;){const e=nm[fm];fm++,Xp(e),mm(e.$$)}}catch(t){throw nm.length=0,fm=0,t}for(Xp(null),nm.length=0,fm=0;im.length;)im.pop()();for(let e=0;e<om.length;e+=1){const t=om[e];hm.has(t)||(hm.add(t),t())}om.length=0}while(nm.length);for(;sm.length;)sm.pop()();lm=!1,hm.clear(),Xp(e)}function mm(e){if(null!==e.fragment){e.update(),op(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(cm)}}function gm(){return dm||(dm=Promise.resolve(),dm.then(()=>{dm=null})),dm}function bm(e,t,r){e.dispatchEvent(function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(`${t?"intro":"outro"}${r}`))}const ym=new Set;let vm;function wm(){vm={r:0,c:[],p:vm}}function _m(){vm.r||op(vm.c),vm=vm.p}function Em(e,t){e&&e.i&&(ym.delete(e),e.i(t))}function Am(e,t,r,n){if(e&&e.o){if(ym.has(e))return;ym.add(e),vm.c.push(()=>{ym.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}const xm={duration:0};function km(e,t,r){const n={direction:"in"};let i,o,s=t(e,r,n),a=!1,l=0;function c(){i&&Kp(e,i)}function u(){const{delay:t=0,duration:r=300,easing:n=rp,tick:u=tp,css:h}=s||xm;h&&(i=Zp(e,0,1,r,t,n,h,l++)),u(0,1);const d=vp()+t,f=d+r;o&&o.abort(),a=!0,cm(()=>bm(e,!0,"start")),o=Ap(t=>{if(a){if(t>=f)return u(1,0),bm(e,!0,"end"),c(),a=!1;if(t>
18=d){const e=n((t-d)/r);u(e,1-e)}}return a})}let h=!1;return{start(){h||(h=!0,Kp(e),sp(s)?(s=s(n),gm().then(u)):u())},invalidate(){h=!1},end(){a&&(c(),a=!1)}}}function Cm(e,t,r){const n={direction:"out"};let i,o=t(e,r,n),s=!0;const a=vm;function l(){const{delay:t=0,duration:r=300,easing:n=rp,tick:l=tp,css:c}=o||xm;c&&(i=Zp(e,1,0,r,t,n,c));const u=vp()+t,h=u+r;cm(()=>bm(e,!1,"start")),Ap(t=>{if(s){if(t>=h)return l(0,1),bm(e,!1,"end"),--a.r||op(a.c),!1;if(t>=u){const e=n((t-u)/r);l(1-e,e)}}return s})}return a.r+=1,sp(o)?gm().then(()=>{o=o(n),l()}):l(),{end(t){t&&o.tick&&o.tick(1,0),s&&(i&&Kp(e,i),s=!1)}}}function Pm(e,t,r,n){const i={direction:"both"};let o=t(e,r,i),s=n?0:1,a=null,l=null,c=null;function u(){c&&Kp(e,c)}function h(e,t){const r=e.b-s;return t*=Math.abs(r),{a:s,b:e.b,d:r,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){const{delay:r=0,duration:n=300,easing:i=rp,tick:d=tp,css:f}=o||xm,p={start:vp()+r,b:t};t||(p.group=vm,vm.r+=1),a||l?l=p:(f&&(u(),c=Zp(e,s,t,n,r,i,f)),t&&d(0,1),a=h(p,n),cm(()=>bm(e,t,"start")),Ap(t=>{if(l&&t>l.start&&(a=h(l,n),l=null,bm(e,a.b,"start"),f&&(u(),c=Zp(e,s,a.b,a.duration,0,i,o.css))),a)if(t>=a.end)d(s=a.b,1-s),bm(e,a.b,"end"),l||(a.b?u():--a.group.r||op(a.group.c)),a=null;else if(t>=a.start){const e=t-a.start;s=a.a+a.d*i(e/a.duration),d(s,1-s)}return!(!a&&!l)}))}return{run(e){sp(o)?gm().then(()=>{o=o(i),d(e)}):d(e)},end(){u(),a=l=null}}}function Im(e,t){const r=t.token={};function n(e,n,i,o){if(t.token!==r)return;t.resolved=o;let s=t.ctx;void 0!==i&&(s=s.slice(),s[i]=o);const a=e&&(t.current=e)(s);let l=!1;t.block&&(t.blocks?t.blocks.forEach((e,r)=>{r!==n&&e&&(wm(),Am(e,1,1,()=>{t.blocks[r]===e&&(t.blocks[r]=null)}),_m())}):t.block.d(1),a.c(),Em(a,1),a.m(t.mount(),t.anchor),l=!0),t.block=a,t.blocks&&(t.blocks[n]=a),l&&pm()}if(!(i=e)||"object"!=typeof i&&"function"!=typeof i||"function"!=typeof i.then){if(t.current!==t.then)return n(t.then,1,t.value,e),!0;t.resolved=e}else{const r=em();if(e.then(e=>{Xp(r),n(t.then,1,t.value,e),Xp(null)},e=>{if(Xp(r),n(t.catch,2,t.error,e),Xp(null),!t.hasCatch)throw e}),t.current!==t.pending)return n(t.pending,0),!0}var i}function Sm(e,t,r){const n=t.slice(),{resolved:i}=e;e.current===e.then&&(n[e.value]=i),e.current===e.catch&&(n[e.error]=i),e.block.p(n,r)}function Om(e,t){e.d(1),t.delete(e.key)}function Mm(e,t){Am(e,1,1,()=>{t.delete(e.key)})}function Tm(e,t){e.f(),Mm(e,t)}function Nm(e,t,r,n,i,o,s,a,l,c,u,h){let d=e.length,f=o.length,p=d;const m={};for(;p--;)m[e[p].key]=p;const g=[],b=new Map,y=new Map,v=[];for(p=f;p--;){const e=h(i,o,p),n=r(e);let a=s.get(n);a?v.push(()=>a.p(e,t)):(a=c(n,e),a.c()),b.set(n,g[p]=a),n in m&&y.set(n,Math.abs(p-m[n]))}const w=new Set,_=new Set;function E(e){Em(e,1),e.m(a,u),s.set(e.key,e),u=e.first,f--}for(;d&&f;){const t=g[f-1],r=e[d-1],n=t.key,i=r.key;t===r?(u=t.first,d--,f--):b.has(i)?!s.has(n)||w.has(n)?E(t):_.has(i)?d--:y.get(n)>y.get(i)?(_.add(n),E(t)):(w.add(i),d--):(l(r,s),d--)}for(;d--;){const t=e[d];b.has(t.key)||l(t,s)}for(;f;)E(g[f-1]);return op(v),g}function Rm(e,t,r){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=r,r(e.$$.ctx[n]))}function jm(e){e&&e.c()}function Bm(e,t,r,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,r),n||cm(()=>{const t=e.$$.on_mount.map(np).filter(sp);e.$$.on_destroy?e.$$.on_destroy.push(...t):op(t),e.$$.on_mount=[]}),o.forEach(cm)}function $m(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];om.forEach(n=>-1===e.indexOf(n)?t.push(n):r.push(n)),r.forEach(e=>e()),om=t}(r.after_update),op(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Lm(e,t){-1===e.$$.dirty[0]&&(nm.push(e),lm||(lm=!0,am.then(pm)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Fm(e,t,r,n,i,o,s,a=[-1]){const l=Wp;Xp(e);const c=e.$$={fragment:null,ctx:[],props:o,update:tp,not_equal:i,bound:ip(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:ip(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=r?r(e,t.props||{},(t,r,...n)=>{const o=n.length?n[0]:r;return c.ctx&&i(c.ctx[t],c.ctx[t]=o)&&(!c.skip_bound&&c.bound[t]&&
18c.bound[t](o),u&&Lm(e,t)),r}):[],c.update(),u=!0,op(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=(h=t.target,Array.from(h.childNodes));c.fragment&&c.fragment.l(e),e.forEach(Op)}else c.fragment&&c.fragment.c();t.intro&&Em(e.$$.fragment),Bm(e,t.target,t.anchor,t.customElement),pm()}var h;Xp(l)}class Dm{$destroy(){$m(this,1),this.$destroy=tp}$on(e,t){if(!sp(t))return tp;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Um=new z,Hm=new z,zm=new G({inProgress:!1,actionRequired:""}),qm=new G(null),Gm=ep.select("wallets").pipe(Ve(1));Um.pipe(Qe(Gm),qe("1")).subscribe(e=>{e.forEach(({label:e})=>{Hm.next(e)}),Xf({type:Bf})});const Wm=new G([]);function Vm(e){const t=Wm.getValue();Wm.next(t.filter(t=>t.hash!==e))}const Zm=Se(()=>{const e=new z;return tm(()=>{e.next()}),e.asObservable().pipe(Fe(1))}),Km={default:{"--w3o-background-color":"unset","--w3o-foreground-color":"unset","--w3o-text-color":"unset","--w3o-border-color":"unset","--w3o-action-color":"unset","--w3o-border-radius":"unset","--w3o-font-family":"inherit"},light:{"--w3o-background-color":"#ffffff","--w3o-foreground-color":"#EFF1FC","--w3o-text-color":"#1a1d26","--w3o-border-color":"#d0d4f7","--w3o-action-color":"#6370E5","--w3o-border-radius":"16px","--w3o-font-family":"inherit"},dark:{"--w3o-background-color":"#1A1D26","--w3o-foreground-color":"#242835","--w3o-text-color":"#EFF1FC","--w3o-border-color":"#33394B","--w3o-action-color":"#929bed","--w3o-border-radius":"16px","--w3o-font-family":"inherit"}},Jm=e=>"string"==typeof e&&e in Km?Km[e]:"object"==typeof e?e:void 0,Ym=e=>{Object.keys(e).forEach(t=>{document.documentElement.style.setProperty(t,e[t]||null)})},Qm=()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");e.matches?Ym(Km.dark):Ym(Km.light),Ne(e,"change").pipe(Ye(Um)).subscribe(e=>{e.matches?Ym(Km.dark):Ym(Km.light)})},Xm=ci.object().unknown(),eg=ci.object({namespace:Rd.required(),id:Nd.required()}),tg=ci.any().allow(ci.object({name:ci.string().required(),avatar:ci.string(),contentHash:ci.any().allow(ci.string(),null),getText:ci.function().arity(1).required()}),null),rg=ci.any().allow(ci.object({name:ci.string().required()}),null),ng=ci.any().allow(ci.object({eth:ci.number()}).unknown(),null),ig=ci.any().allow(ci.object({balance:ci.string().required(),icon:ci.string()}),null),og=ci.object({address:ci.string().required(),ens:tg,uns:rg,balance:ng,secondaryTokens:ig}),sg=ci.array().items(Bd).unique((e,t)=>e.id===t.id).error(e=>"array.unique"===e[0].code?new Error(`There is a duplicate Chain ID in your Onboard Chains array: ${e}`):new Error(`${e}`)),ag=ci.array().items(og),lg=ci.object({label:ci.string(),icon:ci.string(),provider:Xm,instance:Xm,accounts:ag,chains:ci.array().items(eg),wagmiConnector:Xm}).required().error(new Error("wallet must be defined")),cg=ci.array().items(lg),ug=ci.object({name:ci.string().required(),url:ci.string().uri().required()}),hg=ci.object({version:ci.string().required(),termsUrl:ci.string().uri(),privacyUrl:ci.string().uri()}),dg=ci.object({name:ci.string().required(),description:ci.string().required(),icon:ci.string(),logo:ci.string(),gettingStartedGuide:ci.string(),email:ci.string(),appUrl:ci.string(),explore:ci.string(),recommendedInjectedWallets:ci.array().items(ug),agreement:hg}),fg=ci.object({name:ci.string(),description:ci.string(),icon:ci.string(),logo:ci.string(),gettingStartedGuide:ci.string(),email:ci.string(),appUrl:ci.string(),explore:ci.string(),recommendedInjectedWallets:ci.array().items(ug),agreement:hg});ci.object({label:ci.string().required(),getInfo:ci.function().arity(1).required(),getInterface:ci.function().arity(1).required()});const pg=ci.array().items(ci.function()).required(),mg=ci.string(),gg=ci.string().valid("topRight","bottomRight","bottomLeft","topLeft"),bg=[70,80,90,95,99],yg=ci.object({transactionHandler:ci.function().optional(),enabled:ci.boolean(),position:gg,replacement:ci.object({gasPriceProbability:ci.object({speedup:ci.number().valid(...bg),cancel:ci.number().valid(...bg)})})}),vg=ci.object({desktop:yg,mobile:yg}),wg=ci.object({enabled:ci.boolean(),position:gg,minimal:ci.boolean(),containerElement:ci.string(),hideTransactionProtectionBtn:ci.boolean(),transactionProtectionInfoLink:ci.string()}),_g=ci.object({enabled:ci.boolean(),position:gg,expanded:ci.boolean(),minimal:ci.boolean(),hideTransactionProtectionBtn:ci.boolean(),transactionProtectionInfoLink:ci.string(),containerElement:ci.string()}),Eg=ci.object({showSidebar:ci.boolean(),disableClose:ci.boolean(),autoConnectLastWallet:ci.boolean(),autoConnectAllPreviousWallet:ci.boolean(),iDontHaveAWalletLink:ci.string(),wheresMyWalletLink:ci.string(),removeWhereIsMyWalletWarning:ci.boolean(),removeIDontHaveAWalletInfoLink:ci.boolean(),disableUDResolution:ci.boolean()}
18),Ag=ci.object({accountCenter:ci.string(),connectModal:ci.string()}),xg=ci.object({"--w3o-background-color":ci.string(),"--w3o-font-family":ci.string(),"--w3o-foreground-color":ci.string(),"--w3o-text-color":ci.string(),"--w3o-border-color":ci.string(),"--w3o-action-color":ci.string(),"--w3o-border-radius":ci.string()}),kg=ci.string().valid("default","dark","light","system"),Cg=ci.alternatives().try(xg,kg),Pg=ci.object({wallets:pg,chains:sg.required(),appMetadata:dg,i18n:ci.object().unknown(),apiKey:ci.string(),accountCenter:ci.object({desktop:wg,mobile:wg,hideTransactionProtectionBtn:ci.boolean(),transactionProtectionInfoLink:ci.string()}),notify:[vg,yg],gas:ci.object({get:ci.function().required(),stream:ci.function().required()}),wagmi:ci.function(),connect:Eg,containerElements:Ag,transactionPreview:ci.any(),theme:Cg,disableFontDownload:ci.boolean(),unstoppableResolution:ci.function()}),Ig=ci.object({autoSelect:ci.alternatives().try(ci.object({label:ci.string().required(),disableModals:ci.boolean()}),ci.string())}),Sg=ci.object({label:ci.string().required()}).required(),Og=ci.object({address:ci.string().required(),icon:ci.string().optional()}),Mg=ci.object({chainId:Nd.required(),chainNamespace:Rd,wallet:ci.string(),rpcUrl:ci.string(),label:ci.string(),token:ci.string(),protectedRpcUrl:ci.string(),secondaryTokens:ci.array().max(5).items(Og).optional()}),Tg=ci.object({key:ci.string().required(),type:ci.string().allow("pending","error","success","hint"),eventCode:ci.string(),message:ci.string().required(),id:ci.string().required(),autoDismiss:ci.number(),onClick:ci.function(),link:ci.string()});ci.object({sendTransaction:ci.function(),estimateGas:ci.function(),gasPrice:ci.function(),balance:ci.alternatives(ci.string(),ci.number()),txDetails:ci.object({value:ci.alternatives(ci.string(),ci.number()),to:ci.string(),from:ci.string()}),txApproveReminderTimeout:ci.number()});const Ng=ci.object({key:ci.string(),type:ci.string().allow("pending","error","success","hint"),eventCode:ci.string(),message:ci.string(),id:ci.string(),autoDismiss:ci.number(),onClick:ci.function(),link:ci.string()});function Rg(e){return Td(lg,e)}function jg(e,t){return Td(ci.string().required().label(t||"value"),e)}function Bg(e){return Td(Mg,e)}function $g(e){return Td(yg,e)}function Lg(e){return Td(Ng,e)}function Fg(e){const{label:t,token:r,rpcUrl:n,id:i,namespace:o}=e,s=Bg({label:t,token:r,rpcUrl:n,chainId:i,chainNamespace:o});if(s)throw s;Xf({type:jf,payload:e})}function Dg(e){const t=Rg(e);if(t)throw t;Xf({type:$f,payload:e})}function Ug(e,t){const r=Rg(t);if(r)throw r;Xf({type:Lf,payload:Object.assign({id:e},t)})}function Hg(e,t){const r=Rg(e)||t&&jg(t,"address");if(r)throw r;if(t){const r=e.accounts.find(e=>e.address===t);r&&(e.accounts=[r,...e.accounts.filter(({address:e})=>e!==r.address)])}!function(e){const{wagmi:t}=Cf;if(!t)return;try{const{label:r}=e,{wagmiConnect:n,getWagmiConnector:i}=t,o=ep.get().wagmiConfig,s=i(r);n(o,{connector:s}).then(()=>{Ug(r,{wagmiConnector:s})})}catch(r){}}(e),Dg(e)}function zg(e,t,r){Xf({type:Df,payload:Object.assign({id:e,address:t},r)})}function qg(e){const t=Td(_g,e);if(t)throw t;Xf({type:Uf,payload:e})}function Gg(e){const t=Td(Eg,e);if(t)throw t;Xf({type:Hf,payload:e})}function Wg(e){const t=$g(e);if(t)throw t;Xf({type:Gf,payload:e})}function Vg(e){const t=Td(Tg,e);if(t)throw t;Xf({type:Wf,payload:e})}function Zg(e){if("string"!=typeof e)throw new Error("Notification id must be of type string");Xf({type:Vf,payload:e})}function Kg(e){const t=Td(pg,e);if(t)throw t;const r=function(e){const{device:t}=Cf;return t?e.reduce((e,r)=>{const n=r({device:t});return n&&e.push(...Array.isArray(n)?n:[n]),e},[]):[]}(e),n=(i=r).filter((e,t)=>e&&i.findIndex(t=>t&&t.label===e.label)===t);var i;Xf({type:zf,payload:n})}function Jg(e){const t=Td(cg,e);if(t)throw t;Xf({type:Zf,payload:e})}function Yg(e){const t=Td(Cg,e);if(t)throw t;const r=(e=>"string"==typeof e&&"system"===e?Qm():Jm(e))(e);r&&Ym(r)}function Qg(e){const t=Td(fg,e);if(t)throw t;Xf({type:Kf,payload:e})}function Xg(e){Xf({type:Jf,payload:e})}async function eb(e){if(e){const t=Td(Ig,e);if(t)throw t}const{chains:t}=ep.get();if(!t.length)throw new Error("At least one chain must be set before attempting to connect a wallet");let{autoSelect:r}=e||{};var n;r||(r={label:"",disableModals:!1}),r&&("string"==typeof r||r.label)&&await(n=50,new Promise(e=>setTimeout(e,n))),ep.get().walletModules.length||Kg(Cf.initialWalletInit),zm.next({autoSelect:"string"==typeof r?{label:r,disableModals:!1}:r,inProgress:!0});return _e(zm.pipe($e(({inProgress:e,actionRequired:t})=>!1===e&&!t),Qe(Gm),qe(1)))}async function tb(e){const t=Td(Sg,e);if(t)throw t;const{label:r}=e,{wagmi:n}=Cf;if(n){const e=await n.wagmiDisconnectWallet(r);e&&Xg(e)}Hm.next(r),function(e){const t=jg(e,"wallet id");if(t)throw t;
18Xf({type:Ff,payload:{id:e}})}(r);const i=Af(Of);if(i)try{const e=JSON.parse(i);Array.isArray(e)&&e.indexOf(r)>=0&&xf(Of,JSON.stringify(e.filter(e=>e!==r))),"string"==typeof e&&e===r&&kf(Of)}catch(o){}return ep.get().wallets}ci.object({id:ci.string().required(),key:ci.string().required(),type:ci.string().allow("pending","error","success","hint").required(),eventCode:ci.string().required(),message:ci.string().required(),autoDismiss:ci.number().required(),network:ci.string().required(),startTime:ci.number(),onClick:ci.function(),link:ci.string()});const rb=async(e,t)=>{if(!t)return[];const r=t.rpcUrl;if(!t.secondaryTokens||!t.secondaryTokens.length||!r)return[];return await Promise.all(t.secondaryTokens.map(async n=>{try{const{createPublicClient:i,http:o}=await s(async()=>{const{createPublicClient:e,http:t}=await Promise.resolve().then(()=>xd);return{createPublicClient:e,http:t}},void 0),a=i({chain:await Sd(t),transport:o(t.providerConnectionInfo&&t.providerConnectionInfo.url?t.providerConnectionInfo.url:r)}),l={abi:[{inputs:[{name:"owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],stateMutability:"view",type:"function"}],address:n.address},c=a.readContract(Object.assign(Object.assign({},l),{functionName:"balanceOf",args:[e]}))||"",u=a.readContract(Object.assign(Object.assign({},l),{functionName:"symbol",args:[]}))||"",[h,d]=await Promise.all([c,u]);return{name:d,balance:Pd(h.toString()),icon:n.icon}}catch(i){}}))},nb={};async function ib(e){if(!e)return null;if(!nb[e.rpcUrl]){const t=await(async e=>{switch(e){case"0x89":case"0xa":case"0xa4b1":case"0x144":case"0x1":{const{mainnet:e}=await s(async()=>{const{mainnet:e}=await import("./index-40a497ea.js-ChkGZ-sX.js");return{mainnet:e}},__vite__mapDeps([3,4]));return e}case"0xaa36a7":{const{sepolia:e}=await s(async()=>{const{sepolia:e}=await import("./index-40a497ea.js-ChkGZ-sX.js");return{sepolia:e}},__vite__mapDeps([3,4]));return e}default:return null}})(e.id);if(!t)return null;const{createPublicClient:r,http:n}=await s(async()=>{const{createPublicClient:e,http:t}=await Promise.resolve().then(()=>xd);return{createPublicClient:e,http:t}},void 0),i=r({chain:t,transport:n()});nb[e.rpcUrl]=i}return nb[e.rpcUrl]}function ob(e){return e.request({method:"eth_requestAccounts"})}function sb(e){return e.request({method:"eth_selectAccounts"})}function ab(e){return e.request({method:"eth_chainId"})}function lb(e){const{provider:t,disconnected$:r}=e;return je(e=>{t.on("accountsChanged",e)},e=>{t.removeListener("accountsChanged",e)}).pipe(Ye(r))}function cb(e,t){const r=Hm.pipe($e(e=>e===t),Fe(1)),n=lb({provider:e,disconnected$:r}).pipe(Ge());n.subscribe(async([e])=>{try{await async function(e){const t=ep.get().wallets.find(t=>t.label===e);if(!t)return;const r=await async function(e){try{const t=await e.request({method:"wallet_getPermissions"});return Array.isArray(t)?t:[]}catch(t){return[]}}(t.provider),n=r.find(({parentCapability:e})=>"eth_accounts"===e);if(n){const{value:e}=n.caveats.find(({type:e})=>"restrictReturnedAccounts"===e)||{value:null};if(e){const r=t.accounts.filter(({address:t})=>e.includes(t));Ug(t.label,Object.assign(Object.assign({},t),{accounts:r}))}}}(t)}catch(a){}if(!e)return void tb({label:t});const{wallets:r}=ep.get(),n=r.find(e=>e.label===t),i=n?n.accounts:[],[[o],s]=Ud(i,t=>t.address===e);Ug(t,{accounts:[o||{address:e,ens:null,uns:null,balance:null},...s]})}),n.pipe(Je(async([e])=>{if(!e)return;const{wallets:r,chains:n}=ep.get(),i=r.find(e=>e.label===t);if(!i)return;const{chains:o,accounts:s}=i,[a]=o,l=n.find(({namespace:e,id:t})=>"evm"===e&&t===a.id);if(!l)return;const c=db(e,l),u=rb(e,l),h=s.find(t=>t.address===e),d=n.find(({id:e})=>e===gf(a.id)),f=h&&h.ens?Promise.resolve(h.ens):d?ub(e,d):Promise.resolve(null),p=h&&h.uns?Promise.resolve(h.uns):d?hb(e,d):Promise.resolve(null);return Promise.all([Promise.resolve(e),c,f,p,u])})).subscribe(e=>{if(!e)return;const[r,n,i,o,s]=e;zg(t,r,{balance:n,ens:i,uns:o,secondaryTokens:s})});const i=function(e){const{provider:t,disconnected$:r}=e;return je(e=>{t.on("chainChanged",e)},e=>{t.removeListener("chainChanged",e)}).pipe(Ye(r))}({provider:e,disconnected$:r}).pipe(Ge());i.subscribe(async e=>{const{wallets:r}=ep.get(),n=r.find(e=>e.label===t);if(!n)return;const{chains:i,accounts:o}=n,[s]=i;if(vi(e)||(e=co(e)),e===s.id)return;const a=o.map(({address:e})=>({address:e,ens:null,uns:null,balance:null}));Ug(t,{chains:[{namespace:"evm",id:e}],accounts:a})}),i.pipe(Je(async e=>{const{wallets:r,chains:n}=ep.get(),i=r.find(e=>e.label===t),o=(null==i?void 0:i.accounts)||[];vi(e)||(e=co(e));const s=n.find(({namespace:t,id:r})=>"evm"===t&&r===e);return s?Promise.all(o.map(async({address:t})=>{const r=db(t,s),i=rb(t,s),o=n.find(({id:t})=>t===gf(e)),a=o?ub(t,o):Promise.resolve(null),l=o?hb(t,o):Promise.resolve(null),[c,u,h,d]=await Promise.all([r,a,l,i]);return{address:t,balance:c,ens:u,uns:h,secondaryTokens:d}})):Promise.resolve(null)})).subscribe(e=>{e&&Ug(t,{accounts:e})}),r.subscribe(()=>{e.disconnect&&e.disconnect()})}async function ub(e,t){if(!t)return null;const r=await ib(t);if(!r)return null;try{const t=await r.getEnsName({address:e});let n=null;if(t){const{labelhash:e,normalize:i}=await s(()=>import("./index-021f6a62.js-DCWHhgOl.js"),__vite__mapDeps([5,4,1,2])).then(function(e){return e.i}),o=i(t),a=await r.getEnsResolver({name:o}),l=await r.getEnsAvatar({name:o}),c=e(o);n={name:t,avatar:l,contentHash:c,ensResolver:a,getText:async e=>await r.getEnsText({name:t,key:e})}}return n}catch(n){return null}}async function hb(e,t){const{unstoppableResolution:r}=Cf;
18if(!r||!kd()||!t)return null;try{return await r(e)}catch(n){return null}}async function db(e,t){if(!t)return null;const{wallets:r}=ep.get();try{const n=r.find(e=>!!e.provider);if(!n)return null;const i=n.provider,o=await i.request({method:"eth_getBalance",params:[e,"latest"]});return o?{[t.token||"eth"]:Cd(o)}:null}catch(n){return null}}function fb(e,t){return e.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]})}function pb(e,t){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[t.publicRpcUrl||t.rpcUrl],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:null}]})}function mb(e,t,r){return e.request({method:"wallet_addEthereumChain",params:[{chainId:t.id,chainName:t.label,nativeCurrency:{name:t.label,symbol:t.token,decimals:18},rpcUrls:[r],blockExplorerUrls:t.blockExplorerUrl?[t.blockExplorerUrl]:void 0}]})}const gb=async(e,t)=>{try{const{id:r}=t;return await pb(e,t),await fb(e,r),r}catch(r){return}};async function bb(e){const t=Bg(e);if(t)throw t;const{wallets:r,chains:n}=ep.get(),{chainId:i,chainNamespace:o="evm",wallet:s,rpcUrl:a,label:l,token:c}=e,u=ff(i),h=n.find(({namespace:e,id:t})=>e===o&&t.toLowerCase()===u.toLowerCase());if(!h)throw new Error(`Chain with chainId: ${i} and chainNamespace: ${o} has not been set and must be added when Onboard is initialized.`);const d=s?r.find(({label:e})=>e===s):r[0];if(!d)throw new Error(s?`Wallet with label ${s} is not connected`:"A wallet must be connected before a chain can be set");const[f]=d.chains;if(f.namespace===o&&f.id===u)return!0;try{return await fb(d.provider,u),!0}catch(p){const{code:e}=p,t=qm.pipe($e(e=>null===e),Ee(()=>!1));if(e===Od.CHAIN_NOT_ADDED||e===Od.UNRECOGNIZED_CHAIN_ID)return(a||l||c)&&(a&&(h.rpcUrl=a),l&&(h.label=l),c&&(h.token=c),Fg(h)),yb(d,h,t,u);if(e===Od.UNSUPPORTED_METHOD)return qm.next({chain:h}),_e(t)}return!1}const yb=async(e,t,r,n)=>{try{return await pb(e.provider,t),await fb(e.provider,n),!0}catch(i){const{code:e}=i;return e!==Od.ACCOUNT_ACCESS_REJECTED&&(qm.next({chain:t}),_e(r))}};var vb={connect:{selectingWallet:{header:"Available Wallets",sidebar:{heading:"",subheading:"Connect your wallet",paragraph:"Connecting your wallet is like “logging in” to Web3. Select your wallet from the options to get started.",IDontHaveAWallet:"I don't have a wallet"},recommendedWalletsPart1:"{app} only supports",recommendedWalletsPart2:"on this platform. Please use or install one of the supported wallets to continue",installWallet:"You do not have any wallets installed that {app} supports, please use a supported wallet",agreement:{agree:"I agree to the",terms:"Terms & Conditions",and:"and",privacy:"Privacy Policy"},whyDontISeeMyWallet:"Why don't I see my wallet?",learnMore:"Click here to learn more"},connectingWallet:{header:"{connectionRejected, select, false {Connecting to {wallet}...} other {Connection Rejected}}",sidebar:{subheading:"Approve Connection",paragraph:"Please approve the connection in your wallet and authorize access to continue."},mainText:"Connecting...",paragraph:"Make sure to select all accounts that you want to grant access to.",previousConnection:"{wallet} already has a pending connection request, please open the {wallet} app to login and connect.",rejectedText:"Connection Rejected!",rejectedCTA:"Click here to try again",primaryButton:"Back to wallets"},connectedWallet:{header:"Connection Successful",sidebar:{subheading:"Connection Successful!",paragraph:"Your wallet is now connected to {app}"},mainText:"Connected",accountSelected:"Account Selected",availableWallet:"available wallet"}},modals:{actionRequired:{heading:"Action required in {wallet}",paragraph:"Please switch the active account in your wallet.",linkText:"Learn more.",buttonText:"Okay"},switchChain:{heading:"Switch Chain",paragraph1:"{app} requires that you switch your wallet to the {nextNetworkName} network to continue.",paragraph2:"*Some wallets may not support changing networks. If you can not change networks in your wallet you may consider switching to a different wallet."},confirmDisconnectAll:{heading:"Disconnect all Wallets",description:"Are you sure that you would like to disconnect all your wallets?",confirm:"Confirm",cancel:"Cancel"},confirmTransactionProtection:{heading:"Enable Transaction Protection",description:"Protect RPC endpoints hide your transaction from front-running and sandwich bots.",link:"Learn more",enable:"Enable",dismiss:"Dismiss"}},accountCenter:{connectAnotherWallet:"Connect another Wallet",disconnectAllWallets:"Disconnect all Wallets",currentNetwork:"Current Network",enableTransactionProtection:"Enable Transaction Protection",appInfo:"App Info",learnMore:"Learn More",gettingStartedGuide:"Getting Started Guide",smartContracts:"Smart Contract(s)",explore:"Explore",poweredBy:"powered by",addAccount:"Add Account",setPrimaryAccount:"Set Primary Account",disconnectWallet:"Disconnect Wallet",copyAddress:"Copy Wallet address"},notify:{transaction:{txRequest:"Your transaction is waiting for you to confirm",nsfFail:"You have insufficient funds for this transaction",txUnderpriced:"The gas price for your transaction is too low, try a higher gas price",txRepeat:"This could be a repeat transaction",txAwaitingApproval:"You have a previous transaction waiting for you to confirm",txConfirmReminder:"Please confirm your transaction to continue",txSendFail:"You rejected the transaction",txSent:"Your transaction has been sent to the network",txStallPending:"Your transaction has stalled before it was sent, please try again",txStuck:"Your transaction is stuck due to a nonce gap",txPool:"Your transaction has started",txStallConfirmed:"Your transaction has stalled and hasn't been confirmed",txSpeedUp:"Your transaction has been sped up",txCancel:"Your transaction is being canceled",txFailed:"Your transaction has failed",txConfirmed:"Your transaction has succeeded",txError:"Oops something went wrong, please try again",txReplaceError:"There was an error replacing your transaction, please try again"},watched:{txPool:"Your account is {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txSpeedUp:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been sped up",txCancel:"Transaction for {formattedValue} {asset} {preposition} {counterpartyShortened} has been canceled",txConfirmed:"Your account successfully {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txFailed:"Your account failed to {verb} {formattedValue} {asset} {preposition} {counterpartyShortened}",txStuck:"Your transaction is stuck due to a nonce gap"},time:{minutes:"min",seconds:"sec"}}};function wb(e){kp(e,"svelte-1ubf722",".close-button.svelte-1ubf722.svelte-1ubf722{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:2rem;cursor:pointer;color:var(--onboard-close-button-color, inherit)}.close-button.svelte-1ubf722.svelte-1ubf722:hover::before{opacity:0.2}
18.close-button.svelte-1ubf722:hover .svg-box.svelte-1ubf722{opacity:1}.close-button.svelte-1ubf722.svelte-1ubf722::before{content:'';position:absolute;height:inherit;width:inherit;opacity:0.1;background:currentColor;transition:300ms ease-in-out opacity}.svg-box.svelte-1ubf722.svelte-1ubf722{position:absolute;height:1.5rem;width:1.5rem;opacity:0.6;transition:300ms ease-in-out opacity}")}function _b(e){let t,r;return{c(){t=Tp("div"),r=Tp("div"),Lp(r,"class","svg-box svelte-1ubf722"),Lp(t,"class","close-button svelte-1ubf722")},m(e,n){Sp(e,t,n),xp(t,r),r.innerHTML='\n  <svg width="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z" fill="currentColor"/>\n  </svg>\n'},p:tp,i:tp,o:tp,d(e){e&&Op(t)}}}class Eb extends Dm{constructor(e){super(),Fm(this,e,null,_b,ap,{},wb)}}function Ab(e){const t=e-1;return t*t*t+1}function xb(e){return Math.pow(e-1,3)*(1-e)+1}function kb(e,{delay:t=0,duration:r=400,easing:n=rp}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:e=>"opacity: "+e*i}}function Cb(e,{delay:t=0,duration:r=400,easing:n=Ab,x:i=0,y:o=0,opacity:s=0}={}){const a=getComputedStyle(e),l=+a.opacity,c="none"===a.transform?"":a.transform,u=l*(1-s),[h,d]=bp(i),[f,p]=bp(o);return{delay:t,duration:r,easing:n,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*h}${d}, ${(1-e)*f}${p});\n\t\t\topacity: ${l-u*t}`}}function Pb(e,{delay:t=0,duration:r=400,easing:n=Ab,axis:i="y"}={}){const o=getComputedStyle(e),s=+o.opacity,a="y"===i?"height":"width",l=parseFloat(o[a]),c="y"===i?["top","bottom"]:["left","right"],u=c.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),h=parseFloat(o[`padding${u[0]}`]),d=parseFloat(o[`padding${u[1]}`]),f=parseFloat(o[`margin${u[0]}`]),p=parseFloat(o[`margin${u[1]}`]),m=parseFloat(o[`border${u[0]}Width`]),g=parseFloat(o[`border${u[1]}Width`]);return{delay:t,duration:r,easing:n,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*s};${a}: ${e*l}px;padding-${c[0]}: ${e*h}px;padding-${c[1]}: ${e*d}px;margin-${c[0]}: ${e*f}px;margin-${c[1]}: ${e*p}px;border-${c[0]}-width: ${e*m}px;border-${c[1]}-width: ${e*g}px;`}}function Ib(e){kp(e,"svelte-7ee2g7","section.svelte-7ee2g7{top:0;left:0;pointer-events:none;z-index:var(--onboard-modal-z-index, var(--modal-z-index))}.background.svelte-7ee2g7{background:var(--onboard-modal-backdrop, var(--modal-backdrop));pointer-events:all}.full-screen-background.svelte-7ee2g7{width:100vw;height:100vh;height:100dvh}.max-height.svelte-7ee2g7{max-height:calc(100vh - 2rem)}.modal-position.svelte-7ee2g7{top:var(--onboard-modal-top, var(--modal-top));bottom:var(--onboard-modal-bottom, var(--modal-bottom));left:var(--onboard-modal-left, var(--modal-left));right:var(--onboard-modal-right, var(--modal-right))}.modal-overflow.svelte-7ee2g7{overflow:hidden}.modal-styling.svelte-7ee2g7{--border-radius:var(\n      --onboard-modal-border-radius,\n      var(--w3o-border-radius, 1rem)\n    );border-radius:var(--border-radius) var(--border-radius) 0 0;
18box-shadow:var(--onboard-modal-box-shadow, var(--box-shadow-0));max-width:100vw}.modal.svelte-7ee2g7{overflow-y:auto;background:var(--onboard-modal-background, white);color:var(--onboard-modal-color, initial)}.width-100.svelte-7ee2g7{width:100%}.modal-container-mobile.svelte-7ee2g7{bottom:0}@media all and (min-width: 768px){.modal-styling.svelte-7ee2g7{border-radius:var(--border-radius)}.modal-container-mobile.svelte-7ee2g7{bottom:unset;margin:1rem}.width-100.svelte-7ee2g7{width:unset}}")}function Sb(e){let t,r,n,i,o,s,a,l,c,u;const h=e[3].default,d=hp(h,e,e[2],null);return{c(){t=Tp("section"),r=Tp("div"),n=Tp("div"),i=Tp("div"),o=Tp("div"),s=Tp("div"),d&&d.c(),Lp(s,"class","modal relative svelte-7ee2g7"),Lp(o,"class","modal-overflow modal-styling relative flex justify-center svelte-7ee2g7"),Lp(o,"style",""+(e[1]?"max-width: 100%;":"")),Lp(i,"class","flex relative max-height svelte-7ee2g7"),Hp(i,"width-100",e[1]),Lp(n,"class","modal-container-mobile modal-position flex svelte-7ee2g7"),Hp(n,"absolute",!e[1]),Hp(n,"width-100",e[1]),Lp(r,"class","background flex items-center justify-center relative svelte-7ee2g7"),Hp(r,"full-screen-background",!e[1]),Lp(t,"class","svelte-7ee2g7"),Hp(t,"fixed",!e[1])},m(a,h){Sp(a,t,h),xp(t,r),xp(r,n),xp(n,i),xp(i,o),xp(o,s),d&&d.m(s,null),l=!0,c||(u=[Bp(i,"click",$p(e[4])),Bp(r,"click",function(){sp(e[0])&&e[0].apply(this,arguments)})],c=!0)},p(t,[r]){e=t,d&&d.p&&(!l||4&r)&&pp(d,h,e,e[2],l?fp(h,e[2],r,null):mp(e[2]),null)},i(e){l||(Em(d,e),cm(()=>{l&&(a||(a=Pm(t,kb,{},!0)),a.run(1))}),l=!0)},o(e){Am(d,e),a||(a=Pm(t,kb,{},!1)),a.run(0),l=!1},d(e){e&&Op(t),d&&d.d(e),e&&a&&a.end(),c=!1,op(u)}}}function Ob(e,t,r){let{$$slots:n={},$$scope:i}=t;const o=!!Cf.containerElements.connectModal,s=document.documentElement;var a;a=()=>{o||(s.style.position="sticky",s.style.overflow="hidden")},em().$$.on_mount.push(a),tm(()=>{o||(s.style.position="",s.style.removeProperty("overflow"))});let{close:l}=t;return e.$$set=e=>{"close"in e&&r(0,l=e.close),"$$scope"in e&&r(2,i=e.$$scope)},[l,o,i,n,function(t){rm.call(this,e,t)}]}class Mb extends Dm{constructor(e){super(),Fm(this,e,Ob,Sb,ap,{close:0},Ib)}}function Tb(e){kp(e,"svelte-tz7ru1",".container.svelte-tz7ru1{padding:var(--onboard-spacing-4, var(--spacing-4));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:24px}input.svelte-tz7ru1{height:1rem;width:1rem;margin-right:0.5rem}")}function Nb(e){let t,r,n,i,o,s,a,l,c,u,h,d,f=e[1]("connect.selectingWallet.agreement.agree")+"",p=e[3]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.terms")+"",o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".";return{c(){t=Tp("a"),r=Np(i),n=Np(o),Lp(t,"href",e[3]),Lp(t,"target","_blank")},m(e,i){Sp(e,t,i),xp(t,r),Sp(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.terms")+"")&&Fp(r,i),2&t&&o!==(o=e[4]?" "+e[1]("connect.selectingWallet.agreement.and")+" ":".")&&Fp(n,o)},d(e){e&&Op(t),e&&Op(n)}}}(e),m=e[4]&&function(e){let t,r,n,i=e[1]("connect.selectingWallet.agreement.privacy")+"";return{c(){t=Tp("a"),r=Np(i),n=Np("."),Lp(t,"href",e[4]),Lp(t,"target","_blank")},m(e,i){Sp(e,t,i),xp(t,r),Sp(e,n,i)},p(e,t){2&t&&i!==(i=e[1]("connect.selectingWallet.agreement.privacy")+"")&&Fp(r,i)},d(e){e&&Op(t),e&&Op(n)}}}(e);return{c(){t=Tp("div"),r=Tp("label"),n=Tp("input"),i=Rp(),o=Tp("span"),s=Np(f),a=Rp(),l=Np(" "),c=Rp(),p&&p.c(),u=Rp(),m&&m.c(),Lp(n,"class"," svelte-tz7ru1"),Lp(n,"type","checkbox"),Lp(r,"class","flex"),Lp(t,"class","container flex items-center svelte-tz7ru1")},m(f,g){Sp(f,t,g),xp(t,r),xp(r,n),n.checked=e[0],xp(r,i),xp(r,o),xp(o,s),xp(o,a),xp(o,l),xp(o,c),p&&p.m(o,null),xp(o,u),m&&m.m(o,null),h||(d=Bp(n,"change",e[6]),h=!0)},p(e,t){1&t&&(n.checked=e[0]),2&t&&f!==(f=e[1]("connect.selectingWallet.agreement.agree")+"")&&Fp(s,f),e[3]&&p.p(e,t),e[4]&&m.p(e,t)},d(e){e&&Op(t),p&&p.d(),m&&m.d(),h=!1,d()}}}function Rb(e){let t,r=e[5]&&Nb(e);return{c(){r&&r.c(),t=jp()},m(e,n){r&&r.m(e,n),Sp(e,t,n)},p(e,[t]){e[5]&&r.p(e,t)},i:tp,o:tp,d(e){r&&r.d(e),e&&Op(t)}}}function jb(e,t,r){let n,i;up(e,ii,e=>r(1,i=e));let{agreed:o}=t;const{terms:s,privacy:a,version:l}=JSON.parse(Af(Sf)||"{}"),c=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));up(e,c,e=>r(7,n=e));const{termsUrl:u,privacyUrl:h,version:d}=n&&n.agreement||{termsUrl:"",privacyUrl:"",version:""},f=!!(u&&!s||h&&!a||d&&d!==l);return o=!f,e.$$set=e=>{"agreed"in e&&r(0,o=e.agreed)},e.$$.update=()=>{1&e.$$.dirty&&(o?xf(Sf,JSON.stringify({version:d,terms:!!u,privacy:!!h})):!1===o&&kf(Sf))},[o,i,c,u,h,f,function(){o=this.checked,r(0,o)}]}class Bb extends Dm{constructor(e){super(),Fm(this,e,jb,Rb,ap,{agreed:0},Tb)}}function $b(e){kp(e,"svelte-2btye1",".icon.svelte-2btye1{color:var(--onboard-white, var(--white));border-radius:50px;bottom:-0.25rem;right:-0.25rem}.yellow.svelte-2btye1{background:var(--onboard-warning-500, var(--warning-500))}")}
18function Lb(e){let t,r,n;return{c(){t=Tp("div"),Lp(t,"class",r=gp(`${e[2]} icon flex absolute`)+" svelte-2btye1"),Lp(t,"style",n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`),Hp(t,"yellow","yellow"===e[1])},m(e,r){Sp(e,t,r),t.innerHTML='\n  <svg width="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M6 2L6.01 8L10 12L6.01 16.01L6 22H18V16L14 12L18 8.01V2H6ZM16 16.5V20H8V16.5L12 12.5L16 16.5Z" fill="currenColor"/>\n  </svg>\n'},p(e,[i]){4&i&&r!==(r=gp(`${e[2]} icon flex absolute`)+" svelte-2btye1")&&Lp(t,"class",r),1&i&&n!==(n=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/6}px;`)&&Lp(t,"style",n),6&i&&Hp(t,"yellow","yellow"===e[1])},i:tp,o:tp,d(e){e&&Op(t)}}}function Fb(e,t,r){let{size:n}=t,{color:i="yellow"}=t,{class:o="test"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color),"class"in e&&r(2,o=e.class)},[n,i,o]}class Db extends Dm{constructor(e){super(),Fm(this,e,Fb,Lb,ap,{size:0,color:1,class:2},$b)}}function Ub(e){kp(e,"svelte-1bikw7k",".icon.svelte-1bikw7k{color:var(--onboard-white, var(--white));border-radius:50px}.green.svelte-1bikw7k{background:var(--onboard-success-600, var(--success-600))}.blue.svelte-1bikw7k{background:var(--onboard-primary-1, var(--primary-1))}")}function Hb(e){let t,r;return{c(){t=Tp("div"),Lp(t,"class","icon flex svelte-1bikw7k"),Lp(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`),Hp(t,"green","green"===e[1]),Hp(t,"blue","blue"===e[1])},m(e,r){Sp(e,t,r),t.innerHTML=af},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px; padding: ${e[0]/5}px;`)&&Lp(t,"style",r),2&n&&Hp(t,"green","green"===e[1]),2&n&&Hp(t,"blue","blue"===e[1])},i:tp,o:tp,d(e){e&&Op(t)}}}function zb(e,t,r){let{size:n}=t,{color:i="green"}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size),"color"in e&&r(1,i=e.color)},[n,i]}class qb extends Dm{constructor(e){super(),Fm(this,e,zb,Hb,ap,{size:0,color:1},Ub)}}function Gb(e){kp(e,"svelte-1le5672",".loading-container.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:inherit;color:inherit}span.svelte-1le5672.svelte-1le5672{font-family:inherit;font-size:0.889em;margin-top:1rem}.loading.svelte-1le5672.svelte-1le5672{display:inline-block}.loading.svelte-1le5672 div.svelte-1le5672{font-size:inherit;display:block;position:absolute;border:3px solid;border-radius:50%;animation:svelte-1le5672-bn-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.loading.svelte-1le5672 .loading-first.svelte-1le5672{animation-delay:-0.45s}.loading.svelte-1le5672 .loading-second.svelte-1le5672{animation-delay:-0.3s}.loading.svelte-1le5672 .loading-third.svelte-1le5672{animation-delay:-0.15s}@keyframes svelte-1le5672-bn-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function Wb(e){let t,r;return{c(){t=Tp("span"),r=Np(e[0]),Lp(t,"class","svelte-1le5672")},m(e,n){Sp(e,t,n),xp(t,r)},p(e,t){1&t&&Fp(r,e[0])},d(e){e&&Op(t)}}}function Vb(e){let t,r,n,i,o,s,a,l,c,u,h,d,f=e[0]&&Wb(e);return{c(){t=Tp("div"),r=Tp("div"),n=Tp("div"),o=Rp(),s=Tp("div"),l=Rp(),c=Tp("div"),d=Rp(),f&&f.c(),Lp(n,"class","loading-first svelte-1le5672"),Lp(n,"style",i=`height: ${e[1]}; width: ${e[1]};`),Lp(s,"class","loading-second svelte-1le5672"),Lp(s,"style",a=`height: ${e[1]}; width: ${e[1]};`),Lp(c,"class","loading-third svelte-1le5672"),Lp(c,"style",u=`height: ${e[1]}; width: ${e[1]};`),Lp(r,"class","loading relative svelte-1le5672"),Lp(r,"style",h=`height: ${e[1]}; width: ${e[1]};`),Lp(t,"class","loading-container flex flex-column justify-center items-center absolute svelte-1le5672")},m(e,i){Sp(e,t,i),xp(t,r),xp(r,n),xp(r,o),xp(r,s),xp(r,l),xp(r,c),xp(t,d),f&&f.m(t,null)},p(e,[o]){2&o&&i!==(i=`height: ${e[1]}; width: ${e[1]};`)&&Lp(n,"style",i),2&o&&a!==(a=`height: ${e[1]}; width: ${e[1]};`)&&Lp(s,"style",a),2&o&&u!==(u=`height: ${e[1]}; width: ${e[1]};`)&&Lp(c,"style",u),2&o&&h!==(h=`height: ${e[1]}; width: ${e[1]};`)&&Lp(r,"style",h),e[0]?f?f.p(e,o):(f=Wb(e),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},i:tp,o:tp,d(e){e&&Op(t),f&&f.d()}}}function Zb(e,t,r){let{description:n=""}=t,{size:i="2rem"}=t;return e.$$set=e=>{"description"in e&&r(0,n=e.description),"size"in e&&r(1,i=e.size)},[n,i]}class Kb extends Dm{constructor(e){super(),Fm(this,e,Zb,Vb,ap,{description:0,size:1},Gb)}}function Jb(e){kp(e,"svelte-i129jl",".icon.svelte-i129jl{height:100%}.border-custom.svelte-i129jl{border:1px solid var(--border-color)}.border-yellow.svelte-i129jl{border:1px solid var(--onboard-warning-500, var(--warning-500))}.border-gray.svelte-i129jl{border:1px solid var(--onboard-gray-400, var(--gray-400))}.border-green.svelte-i129jl{border:1px solid var(--onboard-success-500, var(--success-500))}.border-dark-green.svelte-i129jl{border:1px solid var(--onboard-success-700, var(--success-700))}.border-blue.svelte-i129jl{border:1px solid\n      var(\n        --onboard-wallet-app-icon-border-color,\n        var(--onboard-primary-300, var(--primary-300))\n      )}.border-dark-blue.svelte-i129jl{border:1px solid\n      var(\n        --onboard-wallet-app-icon-border-color,\n        var(--onboard-primary-600, var(--primary-600))\n      )}.border-transparent.svelte-i129jl{border:1px solid transparent}.border-black.svelte-i129jl{border:1px solid var(--onboard-gray-600, var(--gray-600))}.background-gray.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-gray,\n      var(--onboard-gray-500, var(--gray-500))\n    )}.background-light-gray.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-light-gray,\n      var(--onboard-gray-100, var(--gray-100))\n    )}.background-light-blue.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-light-blue,\n      var(--onboard-primary-100, var(--primary-100))\n    )}.background-green.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-green,\n      var(--onboard-success-100, var(--success-100))\n    )}.background-white.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-white,\n      var(--onboard-white, var(--white))\n    )}
18.background-transparent.svelte-i129jl{background:var(\n      --onboard-wallet-app-icon-background-transparent,\n      transparent\n    )}@keyframes svelte-i129jl-pulse{from{opacity:0}to{opacity:1}}.placeholder-icon.svelte-i129jl{width:100%;height:100%;background:var(--onboard-gray-100, var(--gray-100));border-radius:32px;animation:svelte-i129jl-pulse infinite 750ms alternate ease-in-out}.spinner-container.svelte-i129jl{color:var(--onboard-primary-300, var(--primary-300))}img.svelte-i129jl{max-width:100%;height:auto}.pending-status-icon{z-index:1;fill:white;box-shadow:0px 2px 12px 0px rgba(0, 0, 0, 0.1)}.status-icon-container.svelte-i129jl{right:-0.25rem;bottom:-0.25rem;position:absolute}")}const Yb=e=>({}),Qb=e=>({});function Xb(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:sy,then:ry,catch:ty,value:13,blocks:[,,,]};return Im(r=e[1],i),{c(){t=jp(),i.block.c()},m(e,r){Sp(e,t,r),i.block.m(e,i.anchor=r),i.mount=()=>t.parentNode,i.anchor=t,n=!0},p(t,n){e=t,i.ctx=e,2&n&&r!==(r=e[1])&&Im(r,i)||Sm(i,e,n)},i(e){n||(Em(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){Am(i.blocks[t])}n=!1},d(e){e&&Op(t),i.block.d(e),i.token=null,i=null}}}function ey(e){let t,r,n;return r=new Kb({props:{size:"2rem"}}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","spinner-container svelte-i129jl")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},p:tp,i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}function ty(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function ry(e){let t,r,n,i,o,s;function a(e,t){return 2&t&&(r=null),null==r&&(r=!!cf(e[13])),r?iy:ny}let l=a(e,-1),c=l(e),u=e[2]&&e[9]<=Mf&&oy();return{c(){t=Tp("div"),c.c(),i=Rp(),u&&u.c(),o=jp(),Lp(t,"class","icon flex justify-center items-center svelte-i129jl")},m(e,r){Sp(e,t,r),c.m(t,null),Sp(e,i,r),u&&u.m(e,r),Sp(e,o,r),s=!0},p(e,r){l===(l=a(e,r))&&c?c.p(e,r):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null))),e[2]&&e[9]<=Mf?u?516&r&&Em(u,1):(u=oy(),u.c(),Em(u,1),u.m(o.parentNode,o)):u&&(wm(),Am(u,1,1,()=>{u=null}),_m())},i(e){s||(e&&(n||cm(()=>{n=km(t,kb,{}),n.start()})),Em(u),s=!0)},o(e){Am(u),s=!1},d(e){e&&Op(t),c.d(),e&&Op(i),u&&u.d(e),e&&Op(o)}}}function ny(e){let t,r;return{c(){t=Tp("img"),cp(t.src,r=e[13])||Lp(t,"src",r),Lp(t,"alt","logo"),Lp(t,"class","svelte-i129jl")},m(e,r){Sp(e,t,r)},p(e,n){2&n&&!cp(t.src,r=e[13])&&Lp(t,"src",r)},d(e){e&&Op(t)}}}function iy(e){let t,r,n=e[13]+"";return{c(){t=new zp(!1),r=jp(),t.a=r},m(e,i){t.m(n,e,i),Sp(e,r,i)},p(e,r){2&r&&n!==(n=e[13]+"")&&t.p(n)},d(e){e&&Op(r),e&&t.d()}}}function oy(e){let t,r,n;return r=new Db({props:{class:"pending-status-icon",size:20}}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","status-icon-container svelte-i129jl")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}function sy(e){let t;return{c(){t=Tp("div"),Lp(t,"class","placeholder-icon svelte-i129jl")},m(e,r){Sp(e,t,r)},p:tp,i:tp,o:tp,d(e){e&&Op(t)}}}function ay(e){let t,r,n,i,o,s,a,l;cm(e[12]);const c=[ey,Xb],u=[];function h(e,t){return e[2]&&e[9]>=Mf?0:1}r=h(e),n=u[r]=c[r](e);const d=e[11].status,f=hp(d,e,e[10],Qb);return{c(){t=Tp("div"),n.c(),i=Rp(),f&&f.c(),Lp(t,"class","relative svelte-i129jl"),Lp(t,"style",o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`),Hp(t,"border-custom","custom"===e[5]),Hp(t,"border-yellow","yellow"===e[5]),Hp(t,"border-gray","gray"===e[5]),Hp(t,"border-green","green"===e[5]),Hp(t,"border-dark-green","darkGreen"===e[5]),Hp(t,"border-blue","blue"===e[5]),Hp(t,"border-dark-blue","darkBlue"===e[5]),Hp(t,"border-transparent","transparent"===e[5]),Hp(t,"border-black","black"===e[5]),Hp(t,"background-gray","gray"===e[6]),Hp(t,"background-light-gray","lightGray"===e[6]),Hp(t,"background-light-blue","lightBlue"===e[6]),Hp(t,"background-green","green"===e[6]),Hp(t,"background-white","white"===e[6]),Hp(t,"background-transparent","transparent"===e[6])},m(n,o){Sp(n,t,o),u[r].m(t,null),xp(t,i),f&&f.m(t,null),s=!0,a||(l=Bp(window,"resize",e[12]),a=!0)},p(e,[a]){let l=r;r=h(e),r===l?u[r].p(e,a):(wm(),Am(u[l],1,1,()=>{u[l]=null}),_m(),n=u[r],n?n.p(e,a):(n=u[r]=c[r](e),n.c()),Em(n,1),n.m(t,i)),f&&f.p&&(!s||1024&a)&&pp(f,d,e,e[10],s?fp(d,e[10],a,Yb):mp(e[10]),Qb),(!s||473&a&&o!==(o=`${"custom"===e[6]?`background-color: ${e[7]}`:""}; padding: ${e[3]-1}px; width: ${e[0]}px; height: ${e[0]}px; border-radius: ${e[8]}px; color: ${e[4]};`))&&Lp(t,"style",o),(!s||32&a)&&Hp(t,"border-custom","custom"===e[5]),(!s||32&a)&&Hp(t,"border-yellow","yellow"===e[5]),(!s||32&a)&&Hp(t,"border-gray","gray"===e[5]),(!s||32&a)&&Hp(t,"border-green","green"===e[5]),(!s||32&a)&&Hp(t,"border-dark-green","darkGreen"===e[5]),(!s||32&a)&&Hp(t,"border-blue","blue"===e[5]),(!s||32&a)&&Hp(t,"border-dark-blue","darkBlue"===e[5]),(!s||32&a)&&Hp(t,"border-transparent","transparent"===e[5]),(!s||32&a)&&Hp(t,"border-black","black"===e[5]),(!s||64&a)&&Hp(t,"background-gray","gray"===e[6]),(!s||64&a)&&Hp(t,"background-light-gray","lightGray"===e[6]),(!s||64&a)&&Hp(t,"background-light-blue","lightBlue"===e[6]),(!s||64&a)&&Hp(t,"background-green","green"===e[6]),(!s||64&a)&&Hp(t,"background-white","white"===e[6]),(!s||64&a)&&Hp(t,"background-trans
18parent","transparent"===e[6])},i(e){s||(Em(n),Em(f,e),s=!0)},o(e){Am(n),Am(f,e),s=!1},d(e){e&&Op(t),u[r].d(),f&&f.d(e),a=!1,l()}}}function ly(e,t,r){let n,{$$slots:i={},$$scope:o}=t,{size:s}=t,{icon:a}=t,{loading:l=!1}=t,{padding:c=s/6}=t,{color:u="black"}=t,{border:h="transparent"}=t,{background:d="transparent"}=t,{customBackgroundColor:f=""}=t,{radius:p=12}=t;return e.$$set=e=>{"size"in e&&r(0,s=e.size),"icon"in e&&r(1,a=e.icon),"loading"in e&&r(2,l=e.loading),"padding"in e&&r(3,c=e.padding),"color"in e&&r(4,u=e.color),"border"in e&&r(5,h=e.border),"background"in e&&r(6,d=e.background),"customBackgroundColor"in e&&r(7,f=e.customBackgroundColor),"radius"in e&&r(8,p=e.radius),"$$scope"in e&&r(10,o=e.$$scope)},[s,a,l,c,u,h,d,f,p,n,o,i,function(){r(9,n=window.innerWidth)}]}class cy extends Dm{constructor(e){super(),Fm(this,e,ly,ay,ap,{size:0,icon:1,loading:2,padding:3,color:4,border:5,background:6,customBackgroundColor:7,radius:8},Jb)}}function uy(e){kp(e,"svelte-q2gson",".container.svelte-q2gson{gap:1rem;padding:0.75rem;color:var(--onboard-warning-700, var(--warning-700));font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;border:1px solid var(--onboard-warning-400, var(--warning-400));background:var(--onboard-warning-100, var(--warning-100));border-radius:12px}.icon.svelte-q2gson{color:var(--onboard-warning-700, var(--warning-700));width:1rem;height:1rem;flex:0 0 auto}")}function hy(e){let t,r,n,i,o,s;const a=e[1].default,l=hp(a,e,e[0],null);return{c(){t=Tp("div"),r=Tp("div"),l&&l.c(),n=Rp(),i=Tp("div"),Lp(i,"class","icon svelte-q2gson"),Lp(t,"class","container flex justify-between svelte-q2gson")},m(e,o){Sp(e,t,o),xp(t,r),l&&l.m(r,null),xp(t,n),xp(t,i),i.innerHTML=sf,s=!0},p(e,[t]){l&&l.p&&(!s||1&t)&&pp(l,a,e,e[0],s?fp(a,e[0],t,null):mp(e[0]),null)},i(e){s||(Em(l,e),e&&(o||cm(()=>{o=km(t,Pb,{delay:50,duration:500}),o.start()})),s=!0)},o(e){Am(l,e),s=!1},d(e){e&&Op(t),l&&l.d(e)}}}function dy(e,t,r){let{$$slots:n={},$$scope:i}=t;return e.$$set=e=>{"$$scope"in e&&r(0,i=e.$$scope)},[i,n]}class fy extends Dm{constructor(e){super(),Fm(this,e,dy,hy,ap,{},uy)}}function py(e){kp(e,"svelte-1kfgpsl",".container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));color:var(\n      --onboard-connect-accent-text-color,\n      var(--onboard-gray-700, var(--gray-700))\n    )}.connecting-container.svelte-1kfgpsl{padding:var(--onboard-spacing-4, var(--spacing-4));border-radius:var(--onboard-border-radius-1, var(--border-radius-1));background:var(--onboard-success-100, var(--success-100));border:1px solid var(--onboard-success-600, var(--success-600));width:100%}.text.svelte-1kfgpsl{right:var(--onboard-spacing-5, var(--spacing-5))}.tick.svelte-1kfgpsl{color:var(--onboard-success-700, var(--success-700))}")}function my(e){let t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,b,y=e[2]("connect.connectedWallet.mainText",{default:vb.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"";return o=new cy({props:{size:40,padding:8,background:e[1]&&e[1].icon?"lightBlue":"lightGray",border:"darkGreen",icon:e[1]&&e[1].icon||of}}),l=new qb({props:{size:17}}),h=new cy({props:{size:40,padding:8,border:"darkGreen",background:"white",icon:e[0].icon}}),{c(){t=Tp("div"),r=Tp("div"),n=Tp("div"),i=Tp("div"),jm(o.$$.fragment),s=Rp(),a=Tp("div"),jm(l.$$.fragment),c=Rp(),u=Tp("div"),jm(h.$$.fragment),d=Rp(),f=Tp("div"),p=Np(y),m=Rp(),g=Tp("div"),Lp(a,"class","relative"),Dp(a,"right","1rem"),Dp(a,"top","4px"),Dp(a,"z-index","1"),Lp(u,"class","relative"),Dp(u,"right","1.75rem"),Lp(i,"class","flex justify-center items-end relative"),Lp(f,"class","text relative svelte-1kfgpsl"),Lp(n,"class","flex items-center"),Lp(g,"class","tick flex items-center svelte-1kfgpsl"),Dp(g,"width","24px"),Lp(r,"class","connecting-container flex justify-between items-center svelte-1kfgpsl"),Lp(t,"class","container svelte-1kfgpsl")},m(e,y){Sp(e,t,y),xp(t,r),xp(r,n),xp(n,i),Bm(o,i,null),xp(i,s),xp(i,a),Bm(l,a,null),xp(i,c),xp(i,u),Bm(h,u,null),xp(n,d),xp(n,f),xp(f,p),xp(r,m),xp(r,g),g.innerHTML=af,b=!0},p(e,[t]){const r={};2&t&&(r.background=e[1]&&e[1].icon?"lightBlue":"lightGray"),2&t&&(r.icon=e[1]&&e[1].icon||of),o.$set(r);const n={};1&t&&(n.icon=e[0].icon),h.$set(n),(!b||5&t)&&y!==(y=e[2]("connect.connectedWallet.mainText",{default:vb.connect.connectedWallet.mainText,values:{wallet:e[0].label}})+"")&&Fp(p,y)},i(e){b||(Em(o.$$.fragment,e),Em(l.$$.fragment,e),Em(h.$$.fragment,e),b=!0)},o(e){Am(o.$$.fragment,e),Am(l.$$.fragment,e),Am(h.$$.fragment,e),b=!1},d(e){e&&Op(t),$m(o),$m(l),$m(h)}}}function gy(e,t,r){let n,i;up(e,ii,e=>r(2,i=e));let{selectedWallet:o}=t;const s=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));return up(e,s,e=>r(1,n=e)),e.$$set=e=>{"selectedWallet"in e&&r(0,o=e.selectedWallet)},[o,n,i,s]}class by extends Dm{constructor(e){super(),Fm(this,e,gy,my,ap,{selectedWallet:0},py)}}function yy(e){kp(e,"svelte-j1ywa3",".container.svelte-j1ywa3{padding:var(--onboard-spacing-4, var(--spacing-4))}.connecting-container.svelte-j1ywa3{width:100%;padding:var(--onboard-spacing-4, var(--spacing-4));transition:background-color 100ms ease-in-out,\n      border-color 100ms ease-in-out;border-radius:24px;background:var(--onboard-primary-100, var(--primary-100));border:1px solid;border-color:var(--onboard-primary-300, var(--primary-300));color:var(--onboard-gray-600, var(--gray-600))}.connecting-container.warning.svelte-j1ywa3{background:var(--onboard-warning-100, var(--warning-100));border-color:var(--onboard-warning-400, var(--warning-400))}.text.svelte-j1ywa3{line-height:16px;margin-bottom:var(--onboard-spacing-5, var(--spacing-5))}.text.text-rejected.svelte-j1ywa3{line-height:24px;margin-bottom:0}.subtext.svelte-j1ywa3{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px}.rejected-cta.svelte-j1ywa3{color:var(--onboard-primary-500, var(--primary-500))}.onboard-button-primary.svelte-j1ywa3{bottom:var(--onboard-spacing-3, var(--spacing-3))}.ml.svelte-j1ywa3{margin-left:var(--onboard-spacing-4, var(--spacing-4))}@media all and (max-width: 520px){.connecting-container.svelte-j1ywa3{border-radius:var(--onboard-border-radius-4, var(--border-radius-4))}.container.svelte-j1ywa3{padding-bottom:0}.wallet-badges.svelte-j1ywa3{display:none}.connecting-wallet-info.svelte-j1ywa3{margin:0}.onboard-button-primary.svelte-j1ywa3{display:none}}")}function vy(e){let t,r,n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:vb.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"";return{c(){t=Tp("div"),r=Np(n),Lp(t,"class","subtext svelte-j1ywa3")}
18,m(e,n){Sp(e,t,n),xp(t,r)},p(e,t){162&t&&n!==(n=e[7]("connect.connectingWallet."+(e[5]?"previousConnection":"paragraph"),{default:vb.connect.connectingWallet.paragraph,values:{wallet:e[1].label}})+"")&&Fp(r,n)},d(e){e&&Op(t)}}}function wy(e){let t,r,n,i,o=e[7]("connect.connectingWallet.rejectedCTA",{default:vb.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"";return{c(){t=Tp("div"),r=Np(o),Lp(t,"class","rejected-cta pointer subtext svelte-j1ywa3")},m(o,s){Sp(o,t,s),xp(t,r),n||(i=Bp(t,"click",function(){sp(e[0])&&e[0].apply(this,arguments)}),n=!0)},p(t,n){e=t,130&n&&o!==(o=e[7]("connect.connectingWallet.rejectedCTA",{default:vb.connect.connectingWallet.rejectedCTA,values:{wallet:e[1].label}})+"")&&Fp(r,o)},d(e){e&&Op(t),n=!1,i()}}}function _y(e){let t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,b,y,v,w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?vb.connect.connectingWallet.rejectedText:vb.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"",_=e[7]("connect.connectingWallet.primaryButton",{default:vb.connect.connectingWallet.primaryButton})+"";function E(e,t){return e[4]?wy:vy}o=new cy({props:{size:40,padding:8,icon:e[6]&&e[6].icon||of,border:e[4]||e[5]?"yellow":"blue",background:"lightGray"}}),l=new cy({props:{size:40,padding:8,border:e[4]||e[5]?"yellow":"blue",background:"white",icon:e[1].icon}});let A=E(e),x=A(e);return{c(){t=Tp("div"),r=Tp("div"),n=Tp("div"),i=Tp("div"),jm(o.$$.fragment),s=Rp(),a=Tp("div"),jm(l.$$.fragment),c=Rp(),u=Tp("div"),h=Tp("div"),d=Np(w),f=Rp(),x.c(),p=Rp(),m=Tp("button"),g=Np(_),Lp(a,"class","relative"),Dp(a,"right","0.5rem"),Lp(i,"class","flex justify-center relative wallet-badges svelte-j1ywa3"),Lp(h,"class","text svelte-j1ywa3"),Hp(h,"text-rejected",e[4]),Lp(u,"class","flex flex-column justify-center ml connecting-wallet-info svelte-j1ywa3"),Lp(n,"class","flex"),Lp(r,"class","connecting-container flex justify-between items-center svelte-j1ywa3"),Hp(r,"warning",e[4]||e[5]),Lp(m,"class","onboard-button-primary absolute svelte-j1ywa3"),Lp(t,"class","container flex flex-column items-center svelte-j1ywa3")},m(w,_){Sp(w,t,_),xp(t,r),xp(r,n),xp(n,i),Bm(o,i,null),xp(i,s),xp(i,a),Bm(l,a,null),xp(n,c),xp(n,u),xp(u,h),xp(h,d),xp(u,f),x.m(u,null),xp(t,p),xp(t,m),xp(m,g),b=!0,y||(v=Bp(m,"click",e[9]),y=!0)},p(e,[t]){const n={};64&t&&(n.icon=e[6]&&e[6].icon||of),48&t&&(n.border=e[4]||e[5]?"yellow":"blue"),o.$set(n);const i={};48&t&&(i.border=e[4]||e[5]?"yellow":"blue"),2&t&&(i.icon=e[1].icon),l.$set(i),(!b||146&t)&&w!==(w=e[7]("connect.connectingWallet."+(e[4]?"rejectedText":"mainText"),{default:e[4]?vb.connect.connectingWallet.rejectedText:vb.connect.connectingWallet.mainText,values:{wallet:e[1].label}})+"")&&Fp(d,w),(!b||16&t)&&Hp(h,"text-rejected",e[4]),A===(A=E(e))&&x?x.p(e,t):(x.d(1),x=A(e),x&&(x.c(),x.m(u,null))),(!b||48&t)&&Hp(r,"warning",e[4]||e[5]),(!b||128&t)&&_!==(_=e[7]("connect.connectingWallet.primaryButton",{default:vb.connect.connectingWallet.primaryButton})+"")&&Fp(g,_)},i(e){b||(Em(o.$$.fragment,e),Em(l.$$.fragment,e),b=!0)},o(e){Am(o.$$.fragment,e),Am(l.$$.fragment,e),b=!1},d(e){e&&Op(t),$m(o),$m(l),x.d(),y=!1,v()}}}function Ey(e,t,r){let n,i;up(e,ii,e=>r(7,i=e));let{connectWallet:o}=t,{selectedWallet:s}=t,{deselectWallet:a}=t,{setStep:l}=t,{connectionRejected:c}=t,{previousConnectionRequest:u}=t;const h=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));up(e,h,e=>r(6,n=e));return e.$$set=e=>{"connectWallet"in e&&r(0,o=e.connectWallet),"selectedWallet"in e&&r(1,s=e.selectedWallet),"deselectWallet"in e&&r(2,a=e.deselectWallet),"setStep"in e&&r(3,l=e.setStep),"connectionRejected"in e&&r(4,c=e.connectionRejected),"previousConnectionRequest"in e&&r(5,u=e.previousConnectionRequest)},[o,s,a,l,c,u,n,i,h,()=>{a(s.label),l("selectingWallet")}]}class Ay extends Dm{constructor(e){super(),Fm(this,e,Ey,_y,ap,{connectWallet:0,selectedWallet:1,deselectWallet:2,setStep:3,connectionRejected:4,previousConnectionRequest:5},yy)}}function xy(e){kp(e,"svelte-1uy2ffh",".outer-container.svelte-1uy2ffh{padding:var(--onboard-spacing-4, var(--spacing-4))}.link.svelte-1uy2ffh{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:16px;color:var(--onboard-primary-500, var(--primary-500));text-decoration:none}")}function ky(e,t,r){const n=e.slice();return n[3]=t[r].name,n[4]=t[r].url,n[6]=r,n}function Cy(e){let t,r=e[1]("connect.selectingWallet.installWallet",{default:vb.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"";return{c(){t=Np(r)},m(e,r){Sp(e,t,r)},p(e,n){3&n&&r!==(r=e[1]("connect.selectingWallet.installWallet",{default:vb.connect.selectingWallet.installWallet,values:{app:e[0].name||"this app"}})+"")&&Fp(t,r)},d(e){e&&Op(t)}}}function Py(e){let t,r,n,i,o=e[1]("connect.selectingWallet.recommendedWalletsPart1",{default:vb.connect.selectingWallet.recommendedWalletsPart1,values:{app:e[0].name||"This app"}})+"",s=e[1]("connect.selectingWallet.recommendedWalletsPart2",{default:vb.connect.selectingWallet.recommendedWalletsPart2})+"",a=e[0].recommendedInjectedWallets,l=[];for(let c=0;c<a.length;c+=1)l[c]=Iy(ky(e,a,c));return{c(){t=Np(o),r=Rp();for(let e=0;e<l.length;e+=1)l[e].c();n=Rp(),i=Np(s)},m(e,o){Sp(e,t,o),Sp(e,r,o);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,o);Sp(e,n,o),Sp(e,i,o)},p(e,r){if(3&r&&o!==(o=e[1]("connect.selectingWallet.recommendedWalletsPart1",{default:vb.connect.selectingWallet.recommendedWalletsPart1,values:{app:e[0].name||"This app"}})+"")&&Fp(t,o),1&r){let t;for(a=e[0].recommendedInjectedWallets,t=0;t<a.length;t+=1){const i=ky(e,a,t);l[t]?l[t].p(i,r):(l[t]=Iy(i),l[t].c(),l[t].m(n.parentNode,n))}for(;t<l.length;t+=1)l[t].d(1);l.length=a.length}2&r&&s!==(s=e[1]("connect.selectingWallet.recommendedWalletsPart2",{default:vb.connect.selectingWallet.recommendedWalletsPart2})+"")&&Fp(i,s)},d(e){e&&Op(t),e&&Op(r),Mp(l,e),e&&Op(n),e&&Op(i)}}}function Iy(e){let t,r,n,i,o=e[3]+"",s=e[6]<e[0].recommendedInjectedWallets.length-1?", ":"";return{c(){t=Tp("a"),r=Np(o),n=Np(s),Lp(t,"class","link pointer svelte-1uy2ffh"),Lp(t,"href",i=e[4]),Lp(t,"target","_blank"),Lp(t,"rel","noreferrer noopener")},m(e,i){Sp(e,t,i),xp(t,r),xp(t,n)},p(e,a){1&a&&o!==(o=e[3]+"")&&Fp(r,o),1&a&&s!==(s=e[6]<e[0].recommendedInjectedWallets.length-1?", ":"")&&Fp(n,s),1&a&&i!==(i=e[4])&&Lp(t,"href",i)},d(e){e&&Op(t)}}}function Sy(e){let t;function r(e,t){return e[0].recommendedInjectedWallets?Py:Cy}let n=r(e),i=n(e);return{c(){i.c(),t=jp()},m(e,r){i.m(e,r),Sp(e,t,r)},p(e,o){n===(n=r(e))&&i?i.p(e,o):(i.d(1),i=n(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&Op(t)}}}function Oy(e){let t,r,n;return r=new fy({props:{$$slots:{default:[Sy]},$$scope:{ctx:e}}}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","outer-container svelte-1uy2ffh")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},p(e,[t]){const n={};131&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}function My(e,t,r){let n,i;up(e,ii,e=>r(1,i=e));const o=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));return up(e,o,e=>r(0,n=e)),[n,i,o]}class Ty extends Dm{constructor(e){super(),Fm(this,e,My,Oy,ap,{},xy)}}function Ny(e){kp(e,"svelte-1ct6vh0","button.svelte-1ct6vh0:disabled{opacity:0.5}button.wallet-button-styling.svelte-1ct6vh0{position:relative;align-items:flex-start;flex:1;padding:0;background:none;color:var(--onboard-wallet-button-color, inherit)}.wallet-button-container.svelte-1ct6vh0{display:flex}.wallet-button-container-inner.svelte-1ct6vh0{position:relative;display:flex;flex-flow:column;align-items:center;gap:0.5rem;padding:0.75rem;width:5rem}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:1rem;text-overflow:ellipsis;max-width:5rem;max-height:2rem;overflow:hidden}.status-icon.svelte-1ct6vh0{position:absolute;top:3.5rem;left:3.5rem}@media screen and (min-width: 768px){button.wallet-button-styling.svelte-1ct6vh0{transition:background-color 250ms ease-in-out;background:var(--onboard-wallet-button-background, none);border:1px solid transparent;border-color:var(--onboard-wallet-button-border-color, var(--border-color));border-radius:var(--onboard-wallet-button-border-radius, var(--border-radius-1))}button.wallet-button-styling.svelte-1ct6vh0:hover{background:var(--onboard-wallet-button-background-hover, var(--foreground-color));color:var(--onboard-wallet-button-color-hover)}.wallet-button-container-inner.svelte-1ct6vh0{flex:1;flex-flow:row nowrap;gap:1rem;padding:1rem}button.connected.svelte-1ct6vh0{border-color:var(--onboard-success-500, var(--success-500))}.name.svelte-1ct6vh0{font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:1.25rem;text-align:initial;max-width:inherit;max-height:3rem}.status-icon.svelte-1ct6vh0{top:0;bottom:0;left:auto;right:1rem;margin:auto;height:20px}}")}function Ry(e){let t,r,n;return r=new qb({props:{size:20}}
18),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","status-icon svelte-1ct6vh0")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}function jy(e){let t,r,n,i,o,s,a,l,c,u,h,d;cm(e[7]),i=new cy({props:{size:e[6]>=Mf?48:56,icon:e[0],loading:e[4],border:e[3]?"green":"custom",background:"transparent"}});let f=e[3]&&Ry();return{c(){t=Tp("div"),r=Tp("button"),n=Tp("div"),jm(i.$$.fragment),o=Rp(),s=Tp("div"),a=Np(e[1]),l=Rp(),f&&f.c(),Lp(s,"class","name svelte-1ct6vh0"),Lp(n,"class","wallet-button-container-inner svelte-1ct6vh0"),Lp(r,"class","wallet-button-styling svelte-1ct6vh0"),r.disabled=e[5],Hp(r,"connected",e[3]),Lp(t,"class","wallet-button-container svelte-1ct6vh0")},m(c,p){Sp(c,t,p),xp(t,r),xp(r,n),Bm(i,n,null),xp(n,o),xp(n,s),xp(s,a),xp(n,l),f&&f.m(n,null),u=!0,h||(d=[Bp(window,"resize",e[7]),Bp(r,"click",function(){sp(e[2])&&e[2].apply(this,arguments)})],h=!0)},p(t,[o]){e=t;const s={};64&o&&(s.size=e[6]>=Mf?48:56),1&o&&(s.icon=e[0]),16&o&&(s.loading=e[4]),8&o&&(s.border=e[3]?"green":"custom"),i.$set(s),(!u||2&o)&&Fp(a,e[1]),e[3]?f?8&o&&Em(f,1):(f=Ry(),f.c(),Em(f,1),f.m(n,null)):f&&(wm(),Am(f,1,1,()=>{f=null}),_m()),(!u||32&o)&&(r.disabled=e[5]),(!u||8&o)&&Hp(r,"connected",e[3])},i(e){u||(Em(i.$$.fragment,e),Em(f),e&&(c||cm(()=>{c=km(r,kb,{}),c.start()})),u=!0)},o(e){Am(i.$$.fragment,e),Am(f),u=!1},d(e){e&&Op(t),$m(i),f&&f.d(),h=!1,op(d)}}}function By(e,t,r){let n,{icon:i}=t,{label:o}=t,{onClick:s}=t,{connected:a}=t,{connecting:l}=t,{disabled:c}=t;return e.$$set=e=>{"icon"in e&&r(0,i=e.icon),"label"in e&&r(1,o=e.label),"onClick"in e&&r(2,s=e.onClick),"connected"in e&&r(3,a=e.connected),"connecting"in e&&r(4,l=e.connecting),"disabled"in e&&r(5,c=e.disabled)},[i,o,s,a,l,c,n,function(){r(6,n=window.innerWidth)}]}class $y extends Dm{constructor(e){super(),Fm(this,e,By,jy,ap,{icon:0,label:1,onClick:2,connected:3,connecting:4,disabled:5},Ny)}}function Ly(e){kp(e,"svelte-kpc6js",".wallets-container.svelte-kpc6js{display:flex;gap:0.5rem;overflow-x:scroll;overflow-y:hidden;padding:0.75rem 0.5rem;border-bottom:1px solid var(--border-color);-ms-overflow-style:none;scrollbar-width:none}.wallets-container.svelte-kpc6js::-webkit-scrollbar{display:none}.warning-container.svelte-kpc6js{margin:1rem 1rem 0}.notice-container.svelte-kpc6js{flex:0 0 100%;margin-top:0.75rem}@media all and (min-width: 768px){.wallets-container.svelte-kpc6js{display:grid;grid-template-columns:repeat(var(--onboard-wallet-columns, 2), 1fr);padding:1rem;border:none}.notice-container.svelte-kpc6js{grid-column:span 2;margin:0}}")}function Fy(e,t,r){const n=e.slice();return n[10]=t[r],n}function Dy(e){let t,r,n;return r=new fy({props:{$$slots:{default:[Uy]},$$scope:{ctx:e}}}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","warning-container svelte-kpc6js")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},p(e,t){const n={};8200&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}function Uy(e){let t,r;return{c(){t=new zp(!1),r=jp(),t.a=r},m(n,i){t.m(e[3],n,i),Sp(n,r,i)},p(e,r){8&r&&t.p(e[3])},d(e){e&&Op(r),e&&t.d()}}}function Hy(e){let t,r;function n(){return e[9](e[10])}return t=new $y({props:{connected:e[7](e[10].label),connecting:e[2]===e[10].label,label:e[10].label,icon:e[10].icon,onClick:n,disabled:e[4]<=Mf&&e[2]&&e[2]!==e[10].label}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(r,i){e=r;const o={};1&i&&(o.connected=e[7](e[10].label)),5&i&&(o.connecting=e[2]===e[10].label),1&i&&(o.label=e[10].label),1&i&&(o.icon=e[10].icon),3&i&&(o.onClick=n),21&i&&(o.disabled=e[4]<=Mf&&e[2]&&e[2]!==e[10].label),t.$set(o)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function zy(e){let t,r,n,i,o,s=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:vb.connect.selectingWallet.whyDontISeeMyWallet})+"",a=e[5]("connect.selectingWallet.learnMore",{default:vb.connect.selectingWallet.learnMore})+"";return{c(){t=Tp("div"),r=Np(s),n=Rp(),i=Tp("a"),o=Np(a),Lp(i,"class","link pointer"),Lp(i,"href",e[6].wheresMyWalletLink||Gy),Lp(i,"target","_blank"),Lp(i,"rel","noreferrer noopener")},m(e,s){Sp(e,t,s),xp(t,r),Sp(e,n,s),Sp(e,i,s),xp(i,o)},p(e,t){32&t&&s!==(s=e[5]("connect.selectingWallet.whyDontISeeMyWallet",{default:vb.connect.selectingWallet.whyDontISeeMyWallet})+"")&&Fp(r,s),32&t&&a!==(a=e[5]("connect.selectingWallet.learnMore",{default:vb.connect.selectingWallet.learnMore})+"")&&Fp(o,a)},d(e){e&&Op(t),e&&Op(n),e&&Op(i)}}}function qy(e){let t,r,n,i,o,s,a;cm(e[8]);let l=e[3]&&Dy(e),c=e[0],u=[];for(let f=0;f<c.length;f+=1)u[f]=Hy(Fy(e,c,f));const h=e=>Am(u[e],1,1,()=>{u[e]=null});let d=!e[6].removeWhereIsMyWalletWarning&&function(e){let t,r,n;return r=new fy({props:{$$slots:{default:[zy]},$$scope:{ctx:e}}}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","notice-container svelte-kpc6js")},m(e,i){Sp(e,t,i),Bm(r,t,null),n=!0},p(e,t){const n={};8224&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n)},i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r)}}}(e);return{c(){t=Tp("div"),l&&l.c(),r=Rp(),n=Tp("div");for(let e=0;e<u.length;e+=1)u[e].c();i=Rp(),d&&d.c(),Lp(n,"class","wallets-container svelte-kpc6js"),Lp(t,"class","outer-container")},m(c,h){Sp(c,t,h),l&&l.m(t,null),xp(t,r),xp(t,n);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(n,null);xp(n,i),d&&d.m(n,null),o=!0,s||(a=Bp(window,"resize",e[8]),s=!0)},p(e,[o]){if(e[3]?l?(l.p(e,o),8&o&&Em(l,1)):(l=Dy(e),l.c(),Em(l,1),l.m(t,r)):l&&(wm(),Am(l,1,1,()=>{l=null}),_m()),151&o){let t;for(c=e[0],t=0;t<c.length;t+=1){const r=Fy(e,c,t);u[t]?(u[t].p(r,o),Em(u[t],1)):(u[t]=Hy(r),u[t].c(),Em(u[t],1),u[t].m(n,i))}for(wm(),t=c.length;t<u.length;t+=1)h(t);_m()}e[6].removeWhereIsMyWalletWarning||d.p(e,o)},i(e){if(!o){Em(l);for(let e=0;e<c.length;e+=1)Em(u[e]);Em(d),o=!0}},o(e){Am(l),u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)Am(u[t]);Am(d),o=!1},d(e){e&&Op(t),l&&l.d(),Mp(u,e),d&&d.d(),s=!1,a()}}}const Gy="https://www.blocknative.com/blog/metamask-wont-connect-web3-wallet-troubleshooting";function Wy(e,t,r){let n;up(e,ii,e=>r(5,n=e));let i,{wallets:o}=t,{selectWallet:s}=t,{connectingWalletLabel:a}=t,{connectingErrorMessage:l}=t;const{connect:c}=ep.get();return e.$$set=e=>{"wallets"in e&&r(0,o=e.wallets),"selectWallet"in e&&r(1,s=e.selectWallet),"connectingWalletLabel"in e&&r(2,a=e.connectingWalletLabel),"connectingErrorMessage"in e&&r(3,l=e.connectingErrorMessage)},[o,s,a,l,i,n,c,function(e){const{wallets:t}=ep.get();return!!t.find(t=>t.label===e)},function(){r(4,i=window.innerWidth)},e=>s(e)]}class Vy extends Dm{constructor(e){super(),Fm(this,e,Wy,qy,ap,{wallets:0,selectWallet:1,connectingWalletLabel:2,connectingErrorMessage:3},Ly)}}function Zy(e){kp(e,"svelte-obaru3",".sidebar.svelte-obaru3{--background-color:var(\n      --onboard-connect-sidebar-background,\
18n      var(--w3o-foreground-color, none)\n    );--text-color:var(--onboard-connect-sidebar-color, inherit);--border-color:var(--onboard-connect-sidebar-border-color, inherit);display:flex;flex-flow:column;gap:1rem;padding:1rem;align-items:center}.inner-container.svelte-obaru3{display:flex;flex-flow:column;align-items:center;align-self:stretch;gap:0.5rem;padding:1.5rem;text-align:center;border:1px solid transparent;border-radius:12px;border-color:var(--border-color);background:var(--background-color);color:var(--text-color)}.icon-container.svelte-obaru3{display:flex;height:3.5rem;width:auto;min-width:3.5rem;max-width:100%}.heading.svelte-obaru3{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:0 0 var(--onboard-spacing-5, var(--spacing-5)) 0}.subheading.svelte-obaru3{line-height:1rem}.description.svelte-obaru3{line-height:1.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}img.svelte-obaru3{max-width:100%;height:auto}.indicators.svelte-obaru3{margin-top:auto}.indicator.svelte-obaru3{box-sizing:content-box;width:8px;height:8px;border-radius:8px;background:var(\n      --onboard-connect-sidebar-progress-background,\n      var(--onboard-gray-700, var(--gray-700))\n    );transition:background 250ms ease-in-out}.indicator.on.svelte-obaru3{background:var(\n      --onboard-connect-sidebar-progress-color,\n      var(--action-color)\n    );border:2px solid\n      var(\n        --onboard-connect-sidebar-progress-background,\n        var(--onboard-gray-700, var(--gray-700))\n      )}.join.svelte-obaru3{box-sizing:content-box;z-index:1;right:4px;height:2px;background:var(\n      --onboard-connect-sidebar-progress-background,\n      var(--onboard-gray-700, var(--gray-700))\n    );transition:background 250ms ease-in-out}.join.active.svelte-obaru3{background:var(\n      --onboard-connect-sidebar-progress-color,\n      var(--action-color)\n    )}.no-link.svelte-obaru3{display:flex;flex-direction:row;align-items:center;padding:0.25rem 0.5rem 0.25rem 0.75rem;gap:0.25rem;font-size:var(--onboard-font-size-6, var(--font-size-6))}.info-icon.svelte-obaru3{width:1.25rem;display:flex;align-items:center}@media all and (min-width: 768px){.sidebar.svelte-obaru3{max-width:280px;border-right:1px solid;border-color:var(--border-color);background:var(--background-color)}.inner-container.svelte-obaru3{border:none;text-align:initial;flex:1;align-items:flex-start;gap:1rem}.indicators.svelte-obaru3{margin-bottom:0.25rem}}")}function Ky(e){let t,r,n,i=e[3](`connect.${e[0]}.sidebar.header`,{default:""});function o(e,t){return e[2]&&(e[2].logo||e[2].icon)?Yy:Jy}let s=o(e),a=s(e),l=i&&ev(e);return{c(){t=Tp("div"),a.c(),r=Rp(),l&&l.c(),n=jp(),Lp(t,"class","icon-container svelte-obaru3")},m(e,i){Sp(e,t,i),a.m(t,null),Sp(e,r,i),l&&l.m(e,i),Sp(e,n,i)},p(e,r){s===(s=o(e))&&a?a.p(e,r):(a.d(1),a=s(e),a&&(a.c(),a.m(t,null))),9&r&&(i=e[3](`connect.${e[0]}.sidebar.header`,{default:""})),i?l?l.p(e,r):(l=ev(e),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(e){e&&Op(t),a.d(),e&&Op(r),l&&l.d(e),e&&Op(n)}}}function Jy(e){let t,r;return{c(){t=new zp(!1),r=jp(),t.a=r},m(e,n){t.m(Yd,e,n),Sp(e,r,n)},p:tp,d(e){e&&Op(r),e&&t.d()}}}function Yy(e){let t,r;function n(e,r){return 4&r&&(t=null),null==t&&(t=!!cf(e[2].logo||e[2].icon)),t?Xy:Qy}let i=n(e,-1),o=i(e);return{c(){o.c(),r=jp()},m(e,t){o.m(e,t),Sp(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&Op(r)}}}function Qy(e){let t,r;return{c(){t=Tp("img"),cp(t.src,r=e[2].logo||e[2].icon)||Lp(t,"src",r),Lp(t,"alt","logo"),Lp(t,"class","svelte-obaru3")},m(e,r){Sp(e,t,r)},p(e,n){4&n&&!cp(t.src,r=e[2].logo||e[2].icon)&&Lp(t,"src",r)},d(e){e&&Op(t)}}}function Xy(e){let t,r,n=(e[2].logo||e[2].icon)+"";return{c(){t=new zp(!1),r=Np("​"),t.a=r},m(e,i){t.m(n,e,i),Sp(e,r,i)},p(e,r){4&r&&n!==(n=(e[2].logo||e[2].icon)+"")&&t.p(n)},d(e){e&&t.d(),e&&Op(r)}}}function ev(e){let t,r,n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"";return{c(){t=Tp("div"),r=Np(n),Lp(t,"class","heading svelte-obaru3")},m(e,n){Sp(e,t,n),xp(t,r)},p(e,t){9&t&&n!==(n=e[3](`connect.${e[0]}.sidebar.header`,{default:e[7]})+"")&&Fp(r,n)},d(e){e&&Op(t)}}}function tv(e){let t,r,n,i,o,s,a,l,c,u,h,d;return{c(){t=Tp("div"),r=Tp("div"),n=Rp(),i=Tp("div"),s=Rp(),a=Tp("div"),l=Rp(),c=Tp("div"),h=Rp(),d=Tp("div"),Lp(r,"class","indicator relative svelte-obaru3"),Hp(r,"on",!0),Lp(i,"class","join relative svelte-obaru3"),Lp(i,"style",o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;")),Hp(i,"active","selectingWallet"!==e[0]),Lp(a,"class","indicator relative svelte-obaru3"),Lp(a,"style","right: 8px;"),Hp(a,"on","selectingWallet"!==e[0]),Lp(c,"class","join relative svelte-obaru3"),Lp(c,"style",u=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;")),Hp(c,"active","connectedWallet"===e[0]),Lp(d,"style","right: 16px;"),Lp(d,"class","indicator relative svelte-obaru3"),Hp(d,"on","connectedWallet"===e[0]),Lp(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){Sp(e,t,o),xp(t,r),xp(t,n),xp(t,i),xp(t,s),xp(t,a),xp(t,l),xp(t,c),xp(t,h),xp(t,d)},p(e,t){1&t&&o!==(o=""+("selectingWallet"!==e[0]?"right: 4px; width: 52px;":"right: 2px; width: 54px;"))&&Lp(i,"style",o),1&t&&Hp(i,"active","selectingWallet"!==e[0]),1&t&&Hp(a,"on","selectingWallet"!==e[0]),1&t&&u!==(u=""+("connectedWallet"===e[0]?"right: 12px; width: 52px;":"right: 10px; width: 54px;"))&&Lp(c,"style",u),1&t&&Hp(c,"active","connectedWallet"===e[0]),1&t&&Hp(d,"on","connectedWallet"===e[0])},d(e){e&&Op(t)}}}function rv(e){let t,r,n,i,o,s,a,l,c,u,h,d;return{c(){t=Tp("div"),r=Tp("div"),n=Rp(),i=Tp("div"),s=Rp(),a=Tp("div"),l=Rp(),c=Tp("div"),h=Rp(),d=Tp("div"),Lp(r,"class","indicator relative svelte-obaru3"),Hp(r,"on",!0),Lp(i,"class","join relative svelte-obaru3"),Lp(i,"style",o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;")),Hp(i,"active","selectingWallet"!==e[0]),Lp(a,"class","indicator relative svelte-obaru3"),Lp(a,"style","right: 4px;"),Hp(a,"on","selectingWallet"!==e[0]),Lp(c,"class","join relative svelte-obaru3"),Lp(c,"style",u="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;")),Hp(c,"active","connectedWallet"===e[0]),Lp(d,"style","right: 8px;"),Lp(d,"class","indicator relative svelte-obaru3"),Hp(d,"on","connectedWallet"===e[0]),Lp(t,"class","indicators flex items-center svelte-obaru3")},m(e,o){Sp(e,t,o),xp(t,r),xp(t,n),xp(t,i),xp(t,s),xp(t,a),xp(t,l),xp(t,c),xp(t,h),xp(t,d)},p(e,t){1&t&&o!==(o="right: 2px; "+("selectingWallet"!==e[0]?"width: 78px;":"width: 82px;"))&&Lp(i,"style",o),1&t&&Hp(i,"active","selectingWallet"!==e[0]),1&t&&Hp(a,"on","selectingWallet"!==e[0]),1&t&&u!==(u="right: 6px; "+("connectedWallet"===e[0]?"width: 74px;":"width: 81px;"))&&Lp(c,"style",u),1&t&&Hp(c,"active","connectedWallet"===e[0]),1&t&&Hp(d,"on","connectedWallet"===e[0])},d(e){e&&Op(t)}}}function nv(e){let t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"",b=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"";cm(e[9]);let y=e[1]>=Mf&&Ky(e),v=!e[4].removeIDontHaveAWalletInfoLink&&function(e){let t,r,n,i,o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:vb.connect.selectingWallet.sidebar.IDontHaveAWallet})+"";return{c(){t=Tp("a"),r=Np(o),n=Rp(),i=Tp("div"),Lp(i,"class","info-icon svelte-obaru3"),Lp(t,"href",e[4].iDontHaveAWalletLink||"https://ethereum.org/en/wallets/find-wallet/#main-content"),Lp(t,"target","_blank"),Lp(t,"rel","noreferrer noopener"),Lp(t,"class","no-link svelte-obaru3")},m(e,o){Sp(e,t,o),xp(t,r),xp(t,n),xp(t,i),i.innerHTML=sf},p(e,t){8&t&&o!==(o=e[3]("connect.selectingWallet.sidebar.IDontHaveAWallet",{default:vb.connect.selectingWallet.sidebar.IDontHaveAWallet})+"")&&Fp(r,o)},d(e){e&&Op(t)}}}(e),w=e[1]<Mf&&tv(e),_=e[1]>=Mf&&rv(e);return{c(){t=Tp("div"),r=Tp("div"),y&&y.c(),n=Rp(),i=Tp("div"),o=Np(g),s=Rp(),a=Tp("div"),l=Np(b),c=Rp(),v&&v.c(),u=Rp(),w&&w.c(),h=Rp(),_&&_.c(),d=Rp(),f=Tp("div"),Lp(i,"class","subheading svelte-obaru3"),Lp(a,"class","description svelte-obaru3"),Lp(r,"class","inner-container svelte-obaru3"),Lp(t,"class","sidebar svelte-obaru3")},m(g,b){Sp(g,t,b),xp(t,r),y&&y.m(r,null),xp(r,n),xp(r,i),xp(i,o),xp(r,s),xp(r,a),xp(a,l),xp(r,c),v&&v.m(r,null),xp(r,u),w&&w.m(r,null),xp(t,h),_&&_.m(t,null),xp(t,d),xp(t,f),f.innerHTML=Qd,p||(m=Bp(window,"resize",e[9]),p=!0)},p(e,[i]){e[1]>=Mf?y?y.p(e,i):(y=Ky(e),y.c(),y.m(r,n)):y&&(y.d(1),y=null),9&i&&g!==(g=e[3](`connect.${e[0]}.sidebar.subheading`,{default:e[5]})+"")&&Fp(o,g),13&i&&b!==(b=e[3](`connect.${e[0]}.sidebar.paragraph`,{values:{app:e[2]&&e[2].name||"This App"},default:e[6]})+"")&&Fp(l,b),e[4].removeIDontHaveAWalletInfoLink||v.p(e,i),e[1]<Mf?w?w.p(e,i):(w=tv(e),w.c(),w.m(r,null)):w&&(w.d(1),w=null),e[1]>=Mf?_?_.p(e,i):(_=rv(e),_.c(),_.m(t,d)):_&&(_.d(1),_=null)},i:tp,o:tp,d(e){e&&Op(t),y&&y.d(),v&&v.d(),w&&w.d(),_&&_.d(),p=!1,m()}}}function iv(e,t,r){let n,i;up(e,ii,e=>r(3,i=e));let{step:o}=t;const{connect:s}=ep.get(),a=vb.connect[o].sidebar,{subheading:l,paragraph:c}=a,{heading:u}=a;let h;const d=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));return up(e,d,e=>r(2,n=e)),e.$$set=e=>{"step"in e&&r(0,o=e.step)},[o,h,n,i,s,l,c,u,d,function(){r(1,h=window.innerWidth)}]}class ov extends Dm{constructor(e){super(),Fm(this,e,iv,nv,ap,{step:0},Zy)}}function sv(e){kp(e,"svelte-1qwmck3",".container.svelte-1qwmck3{--background-color:var(\n      --onboard-main-scroll-container-background,\
18n      var(--w3o-background-color)\n    );--foreground-color:var(--w3o-foreground-color);--text-color:var(--onboard-connect-text-color, var(--w3o-text-color));--border-color:var(--w3o-border-color, var(--gray-200));--action-color:var(--w3o-action-color, var(--primary-500));font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, 1rem);background:var(--background-color);color:var(--text-color);border-color:var(--border-color);line-height:24px;overflow:hidden;position:relative;display:flex;height:min-content;flex-flow:column-reverse}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 100%)}.header.svelte-1qwmck3{display:flex;padding:1rem;border-bottom:1px solid transparent;background:var(--onboard-connect-header-background);color:var(--onboard-connect-header-color);border-color:var(--border-color)}.header-heading.svelte-1qwmck3{line-height:1rem}.button-container.svelte-1qwmck3{right:0.5rem;top:0.5rem}.mobile-header.svelte-1qwmck3{display:flex;gap:0.5rem;height:4.5rem;padding:1rem;border-bottom:1px solid;border-color:var(--border-color)}.mobile-subheader.svelte-1qwmck3{opacity:0.6;font-size:0.875rem;font-weight:400;line-height:1rem;margin-top:0.25rem}.icon-container.svelte-1qwmck3{display:flex;flex:0 0 auto;height:2.5rem;width:2.5rem;min-width:2.5rem;justify-content:center;align-items:center}.disabled.svelte-1qwmck3{opacity:0.2;pointer-events:none;overflow:hidden}.icon-container svg{display:block;height:100%;width:auto}.w-full.svelte-1qwmck3{width:100%}.scroll-container.svelte-1qwmck3{overflow-y:auto;transition:opacity 250ms ease-in-out;scrollbar-width:none}.scroll-container.svelte-1qwmck3::-webkit-scrollbar{display:none}@media all and (min-width: 768px){.container.svelte-1qwmck3{margin:0;flex-flow:row;height:var(--onboard-connect-content-height, 440px)}.content.svelte-1qwmck3{width:var(--onboard-connect-content-width, 488px)}.mobile-subheader.svelte-1qwmck3{display:none}.icon-container.svelte-1qwmck3{display:none}}")}function av(e){let t,r;return t=new Mb({props:{close:!e[16].disableClose&&e[20],$$slots:{default:[vv]},$$scope:{ctx:e}}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};32766&r[0]|32&r[1]&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function lv(e){let t,r,n,i,o,s=e[14](`connect.${e[5]}.header`,{default:vb.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",a="selectingWallet"===e[5]?`(${e[12]})`:"";return{c(){t=Tp("div"),r=Tp("div"),n=Np(s),i=Rp(),o=Np(a),Lp(r,"class","header-heading svelte-1qwmck3"),Lp(t,"class","header relative flex items-center svelte-1qwmck3")},m(e,s){Sp(e,t,s),xp(t,r),xp(r,n),xp(r,i),xp(r,o)},p(e,t){16426&t[0]&&s!==(s=e[14](`connect.${e[5]}.header`,{default:vb.connect[e[5]].header,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Fp(n,s),4128&t[0]&&a!==(a="selectingWallet"===e[5]?`(${e[12]})`:"")&&Fp(o,a)},d(e){e&&Op(t)}}}function cv(e){let t,r,n,i,o,s,a,l,c,u=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?vb.connect[e[5]].header:vb.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"",h="selectingWallet"===e[5]?e[12]>1?`${e[12]} ${e[14]("connect.selectingWallet.header").toLowerCase()}`:`1 ${e[14]("connect.connectedWallet.availableWallet").toLowerCase()}`:`1 ${e[14]("connect.connectedWallet.accountSelected").toLowerCase()}`;function d(e,t){return e[13]&&e[13].icon?hv:uv}let f=d(e),p=f(e);return{c(){t=Tp("div"),r=Tp("div"),p.c(),n=Rp(),i=Tp("div"),o=Tp("div"),s=Np(u),a=Rp(),l=Tp("div"),c=Np(h),Lp(r,"class","icon-container svelte-1qwmck3"),Lp(o,"class","header-heading svelte-1qwmck3"),Lp(l,"class","mobile-subheader svelte-1qwmck3"),Lp(i,"class","flex flex-column justify-center w-full svelte-1qwmck3"),Lp(t,"class","mobile-header svelte-1qwmck3")},m(e,u){Sp(e,t,u),xp(t,r),p.m(r,null),xp(t,n),xp(t,i),xp(i,o),xp(o,s),xp(i,a),xp(i,l),xp(l,c)},p(e,t){f===(f=d(e))&&p?p.p(e,t):(p.d(1),p=f(e),p&&(p.c(),p.m(r,null))),16426&t[0]&&u!==(u=e[14]("connectingWallet"===e[5]&&e[3]?`connect.${e[5]}.header`:`connect.${e[5]}.sidebar.subheading`,{default:"connectingWallet"===e[5]&&e[3]?vb.connect[e[5]].header:vb.connect[e[5]].sidebar.subheading,values:{connectionRejected:e[1],wallet:e[3]&&e[3].label}})+"")&&Fp(s,u),20512&t[0]&&h!==(h="selectingWallet"===e[5]?e[12]>1?`${e[12]} ${e[14]("connect.selectingWallet.header").toLowerCase()}`:`1 ${e[14]("connect.connectedWallet.availableWallet").toLowerCase()}`:`1 ${e[14]("connect.connectedWallet.accountSelected").toLowerCase()}`)&&Fp(c,h)},d(e){e&&Op(t),p.d()}}}function uv(e){let t,r;return{c(){t=new zp(!1),r=jp(),t.a=r},m(e,n){t.m(Yd,e,n),Sp(e,r,n)},p:tp,d(e){e&&Op(r),e&&t.d()}}}function hv(e){let t,r;function n(e,r){return 8192&r[0]&&(t=null),null==t&&(t=!!cf(e[13].icon)),t?fv:dv}let i=n(e,[-1,-1]),o=i(e);return{c(){o.c(),r=jp()},m(e,t){o.m(e,t),Sp(e,r,t)},p(e,t){i===(i=n(e,t))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&Op(r)}
18}}function dv(e){let t,r;return{c(){t=Tp("img"),cp(t.src,r=e[13].icon)||Lp(t,"src",r),Lp(t,"alt","logo")},m(e,r){Sp(e,t,r)},p(e,n){8192&n[0]&&!cp(t.src,r=e[13].icon)&&Lp(t,"src",r)},d(e){e&&Op(t)}}}function fv(e){let t,r,n=e[13].icon+"";return{c(){t=new zp(!1),r=jp(),t.a=r},m(e,i){t.m(n,e,i),Sp(e,r,i)},p(e,r){8192&r[0]&&n!==(n=e[13].icon+"")&&t.p(n)},d(e){e&&Op(r),e&&t.d()}}}function pv(e){let t,r,n,i;const o=[gv,mv],s=[];function a(e,t){return e[2].length?0:1}return t=a(e),r=s[t]=o[t](e),{c(){r.c(),n=jp()},m(e,r){s[t].m(e,r),Sp(e,n,r),i=!0},p(e,i){let l=t;t=a(e),t===l?s[t].p(e,i):(wm(),Am(s[l],1,1,()=>{s[l]=null}),_m(),r=s[t],r?r.p(e,i):(r=s[t]=o[t](e),r.c()),Em(r,1),r.m(n.parentNode,n))},i(e){i||(Em(r),i=!0)},o(e){Am(r),i=!1},d(e){s[t].d(e),e&&Op(n)}}}function mv(e){let t,r;return t=new Ty({}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p:tp,i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function gv(e){let t,r,n,i,o,s;function a(t){e[24](t)}let l={};return void 0!==e[7]&&(l.agreed=e[7]),t=new Bb({props:l}),im.push(()=>Rm(t,"agreed",a)),o=new Vy({props:{selectWallet:e[18],wallets:e[2],connectingWalletLabel:e[8],connectingErrorMessage:e[9]}}),{c(){jm(t.$$.fragment),n=Rp(),i=Tp("div"),jm(o.$$.fragment),Lp(i,"class","svelte-1qwmck3"),Hp(i,"disabled",!e[7])},m(e,r){Bm(t,e,r),Sp(e,n,r),Sp(e,i,r),Bm(o,i,null),s=!0},p(e,n){const a={};!r&&128&n[0]&&(r=!0,a.agreed=e[7],um(()=>r=!1)),t.$set(a);const l={};4&n[0]&&(l.wallets=e[2]),256&n[0]&&(l.connectingWalletLabel=e[8]),512&n[0]&&(l.connectingErrorMessage=e[9]),o.$set(l),(!s||128&n[0])&&Hp(i,"disabled",!e[7])},i(e){s||(Em(t.$$.fragment,e),Em(o.$$.fragment,e),s=!0)},o(e){Am(t.$$.fragment,e),Am(o.$$.fragment,e),s=!1},d(e){$m(t,e),e&&Op(n),e&&Op(i),$m(o)}}}function bv(e){let t,r;return t=new Ay({props:{connectWallet:e[21],connectionRejected:e[1],previousConnectionRequest:e[6],setStep:e[22],deselectWallet:e[19],selectedWallet:e[3]}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};2&r[0]&&(n.connectionRejected=e[1]),64&r[0]&&(n.previousConnectionRequest=e[6]),8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function yv(e){let t,r;return t=new by({props:{selectedWallet:e[3]}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};8&r[0]&&(n.selectedWallet=e[3]),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function vv(e){let t,r,n,i,o,s,a,l,c,u=e[16].showSidebar&&function(e){let t,r;return t=new ov({props:{step:e[5]}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};32&r[0]&&(n.step=e[5]),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}(e);function h(e,t){return e[4]<=Mf?cv:lv}let d=h(e),f=d(e),p=!e[16].disableClose&&function(e){let t,r,n,i,o;return r=new Eb({}),{c(){t=Tp("div"),jm(r.$$.fragment),Lp(t,"class","button-container absolute svelte-1qwmck3")},m(s,a){Sp(s,t,a),Bm(r,t,null),n=!0,i||(o=Bp(t,"click",e[20]),i=!0)},p:tp,i(e){n||(Em(r.$$.fragment,e),n=!0)},o(e){Am(r.$$.fragment,e),n=!1},d(e){e&&Op(t),$m(r),i=!1,o()}}}(e),m=("selectingWallet"===e[5]||e[4]<=Mf)&&pv(e),g=e[11]&&bv(e),b="connectedWallet"===e[5]&&e[3]&&e[4]>=Mf&&yv(e);return{c(){t=Tp("div"),u&&u.c(),r=Rp(),n=Tp("div"),f.c(),i=Rp(),p&&p.c(),o=Rp(),s=Tp("div"),m&&m.c(),a=Rp(),g&&g.c(),l=Rp(),b&&b.c(),Lp(s,"class","scroll-container svelte-1qwmck3"),Lp(n,"class","content flex flex-column svelte-1qwmck3"),Lp(t,"class","container svelte-1qwmck3")},m(h,d){Sp(h,t,d),u&&u.m(t,null),xp(t,r),xp(t,n),f.m(n,null),xp(n,i),p&&p.m(n,null),xp(n,o),xp(n,s),m&&m.m(s,null),xp(s,a),g&&g.m(s,null),xp(s,l),b&&b.m(s,null),e[25](s),c=!0},p(e,t){e[16].showSidebar&&u.p(e,t),d===(d=h(e))&&f?f.p(e,t):(f.d(1),f=d(e),f&&(f.c(),f.m(n,i))),e[16].disableClose||p.p(e,t),"selectingWallet"===e[5]||e[4]<=Mf?m?(m.p(e,t),48&t[0]&&Em(m,1)):(m=pv(e),m.c(),Em(m,1),m.m(s,a)):m&&(wm(),Am(m,1,1,()=>{m=null}),_m()),e[11]?g?(g.p(e,t),2048&t[0]&&Em(g,1)):(g=bv(e),g.c(),Em(g,1),g.m(s,l)):g&&(wm(),Am(g,1,1,()=>{g=null}),_m()),"connectedWallet"===e[5]&&e[3]&&e[4]>=Mf?b?(b.p(e,t),56&t[0]&&Em(b,1)):(b=yv(e),b.c(),Em(b,1),b.m(s,null)):b&&(wm(),Am(b,1,1,()=>{b=null}),_m())},i(e){c||(Em(u),Em(p),Em(m),Em(g),Em(b),c=!0)},o(e){Am(u),Am(p),Am(m),Am(g),Am(b),c=!1},d(r){r&&Op(t),u&&u.d(),f.d(),p&&p.d(),m&&m.d(),g&&g.d(),b&&b.d(),e[25](null)}}}function wv(e){let t,r,n,i;cm(e[23]);let o=!e[0].disableModals&&av(e);return{c(){o&&o.c(),t=jp()},m(s,a){o&&o.m(s,a),Sp(s,t,a),r=!0,n||(i=Bp(window,"resize",e[23]),n=!0)},p(e,r){e[0].disableModals?o&&(wm(),Am(o,1,1,()=>{o=null}),_m()):o?(o.p(e,r),1&r[0]&&Em(o,1)):(o=av(e),o.c(),Em(o,1),o.m(t.parentNode,t))},i(e){r||(Em(o),r=!0)},o(e){Am(o),r=!1},d(e){o&&o.d(e),e&&Op(t),n=!1,i()}}}function _v(e,t,r){let n,i,o,s,a;up(e,ii,e=>r(14,a=e));let{autoSelect:l}=t;const c=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));up(e,c,e=>r(13,o=e));const{walletModules:u,connect:h,chains:d}=ep.get(),f=new z,{unstoppableResolution:p,wagmi:m}=Cf;let g,b,y,v,w,_,E=!1,A=!1,x=[];const k=new G("selectingWallet");async function C({label:e,icon:t,getInterface:n}){r(8,y=e);try{const i=ep.get().wallets.find(t=>t.label===e);if(i)return Dg(i),setTimeout(()=>I("connectedWallet"),1),void r(3,g=i);const{chains:s}=ep.get(),{provider:a,instance:l}=await n({chains:s,EventEmitter:Kd,appMetadata:o}),c=await t;r(3,g={label:e,icon:c,provider:a,instance:l,accounts:[],chains:[{namespace:"evm",id:"0x1"}]}),r(9,v=""),S(),setTimeout(()=>I("connectingWallet"),1)}catch(i){const{message:e}=i;r(9,v=e),r(8,y=""),S()}}async function P(){r(1,E=!1);const{provider:e,label:t}=g;f.next();try{let i,o;if(m){const{buildWagmiConfig:r,wagmiConnect:n,getWagmiConnector:s}=m,a=await r(d,{label:t,provider:e});Xg(a),o=s(t);const l=await Promise.race([n(a,{connector:o}),_e(f.pipe(De([])))]);if(!l||!("accounts"in l))return;const[c]=l.accounts;i=c}else{const[t]=await Promise.race([ob(e),_e(f.pipe(De([])))]);if(!t)return;i=t}if(ep.get().connect.autoConnectLastWallet||ep.get().connect.autoConnectAllPreviousWallet){let e=Af(Of);try{let r=JSON.parse(e);if(r&&Array.isArray(r)){e=[...new Set([t,...r])]}}catch(n){if(!(n instanceof SyntaxError&&e&&"string"==typeof e))throw new Error(n);e=[e]}e||(e=[t]),xf(Of,JSON.stringify(e))}const s={accounts:[{address:i,ens:null,uns:null,balance:null}],chains:[{namespace:"evm",id:await ab(e)}],wagmiConnector:o};Dg(Object.assign(Object.assign({},g),s)),cb(e,t),function(e){r(3,g=Object.assign(Object.assign({},g),e))}(s),I("connectedWallet"),S()}catch(i){const{code:e}=i;if(S(),e===Od.ACCOUNT_ACCESS_REJECTED)return r(1,E=!0),void(l.disableModals?zm.next({inProgress:!1}):l.label&&r(0,l.label="",l));if(e===Od.ACCOUNT_ACCESS_ALREADY_REQUESTED)return r(6,A=!0),l.disableModals?void zm.next({inProgress:!1}):void lb({provider:g.provider,disconnected$:zm.pipe($e(({inProgress:e})=>!e),De(""))}).pipe(Fe(1)).subscribe(([e])=>{e&&P()})}}function I(e){f.next(),k.next(e)}function S(){_&&_.scrollTo(0,0)}return up(e,k,e=>r(5,s=e)),zm.pipe(Ue((e,t)=>
18e.autoSelect&&t.autoSelect&&e.autoSelect.disableModals===t.autoSelect.disableModals),$e(({autoSelect:e})=>e&&!1===e.disableModals),Ye(Zm)).subscribe(()=>{g&&P()}),k.pipe(Ye(Zm)).subscribe(e=>{switch(e){case"selectingWallet":if(l.label){const e=u.find(({label:e})=>e.toLowerCase()===l.label.toLowerCase());e?async function(e){const{getIcon:t,getInterface:r,label:n}=e;C({label:n,icon:t(),getInterface:r})}(e):l.disableModals&&zm.next({inProgress:!1})}else r(8,y=""),async function(){r(2,x=u.map(({getIcon:e,getInterface:t,label:r})=>({label:r,icon:e(),getInterface:t})))}();break;case"connectingWallet":P();break;case"connectedWallet":r(8,y=""),async function(){const{accounts:e,chains:t}=g,r=ep.get().chains,[n]=t,i=r.find(({namespace:e,id:t})=>e===n.namespace&&t===n.id),{address:o}=e[0];let{balance:s,ens:a,uns:l,secondaryTokens:c}=e[0];if(null===s&&db(o,i).then(e=>{zg(g.label,o,{balance:e})}),i&&!c&&Array.isArray(i.secondaryTokens)&&i.secondaryTokens.length&&rb(o,i).then(e=>{zg(g.label,o,{secondaryTokens:e})}),null===a&&gf(n.id)){const e=d.find(({id:e})=>e===gf(n.id));ub(o,e).then(e=>{zg(g.label,o,{ens:e})})}null===l&&p&&hb(o,i).then(e=>{zg(g.label,o,{uns:e})}),setTimeout(()=>zm.next({inProgress:!1}),1500)}()}}),e.$$set=e=>{"autoSelect"in e&&r(0,l=e.autoSelect)},e.$$.update=()=>{4&e.$$.dirty[0]&&r(12,n=x.length-ep.get().wallets.length),58&e.$$.dirty[0]&&r(11,i="connectingWallet"===s&&g&&w>=Mf||w<=Mf&&E&&"connectingWallet"===s&&g)},[l,E,x,g,w,s,A,b,y,v,_,i,n,o,a,c,h,k,C,function(){r(3,g=null)},function(){zm.next({inProgress:!1})},P,I,function(){r(4,w=window.innerWidth)},function(e){b=e,r(7,b)},function(e){im[e?"unshift":"push"](()=>{_=e,r(10,_)})}]}class Ev extends Dm{constructor(e){super(),Fm(this,e,_v,wv,ap,{autoSelect:0},sv,[-1,-1])}}function Av(e){kp(e,"svelte-12yam41",".container.svelte-12yam41{padding:var(--onboard-spacing-4, var(--spacing-4));font-family:var(--onboard-font-family-normal, var(--font-family-normal));line-height:16px;font-size:var(--onboard-font-size-5, var(--font-size-5))}.close.svelte-12yam41{top:var(--onboard-spacing-5, var(--spacing-5));right:var(--onboard-spacing-5, var(--spacing-5));padding:0.5rem}h4.svelte-12yam41{font-size:var(--onboard-font-size-3, var(--font-size-3));margin:var(--onboard-spacing-4, var(--spacing-4)) 0}p.svelte-12yam41{margin:0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;max-width:488px}")}function xv(e){let t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g=e[0]("modals.switchChain.heading",{default:vb.modals.switchChain.heading})+"",b=e[0]("modals.switchChain.paragraph1",{default:vb.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"",y=e[0]("modals.switchChain.paragraph2",{default:vb.modals.switchChain.paragraph2})+"";return d=new Eb({}),{c(){t=Tp("div"),r=Tp("h4"),n=Np(g),i=Rp(),o=Tp("p"),s=Np(b),a=Rp(),l=Tp("p"),c=Np(y),u=Rp(),h=Tp("div"),jm(d.$$.fragment),Lp(r,"class","svelte-12yam41"),Lp(o,"class","svelte-12yam41"),Lp(l,"class","svelte-12yam41"),Lp(h,"class","close absolute svelte-12yam41"),Lp(t,"class","container relative svelte-12yam41")},m(g,b){Sp(g,t,b),xp(t,r),xp(r,n),xp(t,i),xp(t,o),xp(o,s),xp(t,a),xp(t,l),xp(l,c),xp(t,u),xp(t,h),Bm(d,h,null),f=!0,p||(m=Bp(h,"click",e[3]),p=!0)},p(e,t){(!f||1&t)&&g!==(g=e[0]("modals.switchChain.heading",{default:vb.modals.switchChain.heading})+"")&&Fp(n,g),(!f||3&t)&&b!==(b=e[0]("modals.switchChain.paragraph1",{default:vb.modals.switchChain.paragraph1,values:{app:e[1]&&e[1].name||"This app",nextNetworkName:e[2]}})+"")&&Fp(s,b),(!f||1&t)&&y!==(y=e[0]("modals.switchChain.paragraph2",{default:vb.modals.switchChain.paragraph2})+"")&&Fp(c,y)},i(e){f||(Em(d.$$.fragment,e),f=!0)},o(e){Am(d.$$.fragment,e),f=!1},d(e){e&&Op(t),$m(d),p=!1,m()}}}function kv(e){let t,r;return t=new Mb({props:{close:e[3],$$slots:{default:[xv]},$$scope:{ctx:e}}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,[r]){const n={};67&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function Cv(e,t,r){let n,i,o;up(e,qm,e=>r(5,n=e)),up(e,ii,e=>r(0,i=e));const s=n.chain.label;const a=ep.select("appMetadata").pipe(Ke(ep.get().appMetadata),Ve(1));return up(e,a,e=>r(1,o=e)),[i,o,s,function(){qm.next(null)},a]}class Pv extends Dm{constructor(e){super(),Fm(this,e,Cv,kv,ap,{},Av)}}function Iv(e){kp(e,"svelte-z54y2j",".icon.svelte-z54y2j{border-radius:50px;color:var(--onboard-primary-500, var(--primary-500))}")}function Sv(e){let t,r;return{c(){t=Tp("div"),Lp(t,"class","icon flex svelte-z54y2j"),Lp(t,"style",r=`width: ${e[0]}px; height: ${e[0]}px;`)},m(e,r){Sp(e,t,r),t.innerHTML=sf},p(e,[n]){1&n&&r!==(r=`width: ${e[0]}px; height: ${e[0]}px;`)&&Lp(t,"style",r)},i:tp,o:tp,d(e){e&&Op(t)}}}function Ov(e,t,r){let{size:n=20}=t;return e.$$set=e=>{"size"in e&&r(0,n=e.size)},[n]}class Mv extends Dm{constructor(e){super(),Fm(this,e,Ov,Sv,ap,{size:0},Iv)}}function Tv(e){kp(e,"svelte-20hjq1",".content.svelte-20hjq1{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px;background:var(\n      --onboard-action-required-modal-background,\
18n      var(--onboard-white, var(--white))\n    )}.icon-container.svelte-20hjq1{width:3rem;height:3rem;background:var(--onboard-primary-100, var(--primary-100));border-radius:24px}h4.svelte-20hjq1{margin:1.5rem 0 0.5rem 0;font-weight:600}.action-required-heading.svelte-20hjq1,.action-required-info.svelte-20hjq1{color:var(\n      --onboard-action-required-text-color,\n      var(--onboard-black, inherit)\n    )}.action-required-btn.svelte-20hjq1{color:var(\n      --onboard-action-required-btn-text-color,\n      var(--onboard-black, inherit)\n    )}p.svelte-20hjq1{margin:0;font-weight:400}a.svelte-20hjq1{font-weight:600}button.svelte-20hjq1{margin-top:1.5rem;font-weight:600}")}function Nv(e){let t,r,n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"";return{c(){t=Tp("a"),r=Np(n),Lp(t,"href","https://metamask.zendesk.com/hc/en-us/articles/360061346311-Switching-accounts-in-MetaMask"),Lp(t,"target","_blank"),Lp(t,"rel","noreferrer noopener"),Lp(t,"class","svelte-20hjq1")},m(e,n){Sp(e,t,n),xp(t,r)},p(e,t){3&t&&n!==(n=e[1]("modals.actionRequired.linkText",{values:{wallet:e[0]}})+"")&&Fp(r,n)},d(e){e&&Op(t)}}}function Rv(e){let t,r,n,i,o,s,a,l,c,u,h,d,f,p,m,g,b=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"",y=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"",v=e[1]("modals.actionRequired.buttonText")+"";n=new Mv({});let w="MetaMask"===e[0]&&Nv(e);return{c(){t=Tp("div"),r=Tp("div"),jm(n.$$.fragment),i=Rp(),o=Tp("h4"),s=Np(b),a=Rp(),l=Tp("p"),c=Np(y),u=Rp(),w&&w.c(),h=Rp(),d=Tp("button"),f=Np(v),Lp(r,"class","icon-container flex justify-center items-center svelte-20hjq1"),Lp(o,"class","action-required-heading svelte-20hjq1"),Lp(l,"class","action-required-info svelte-20hjq1"),Lp(d,"class","button-neutral-solid rounded action-required-btn svelte-20hjq1"),Lp(t,"class","content svelte-20hjq1")},m(b,y){Sp(b,t,y),xp(t,r),Bm(n,r,null),xp(t,i),xp(t,o),xp(o,s),xp(t,a),xp(t,l),xp(l,c),xp(l,u),w&&w.m(l,null),xp(t,h),xp(t,d),xp(d,f),p=!0,m||(g=Bp(d,"click",e[2]),m=!0)},p(e,t){(!p||3&t)&&b!==(b=e[1]("modals.actionRequired.heading",{values:{wallet:e[0]}})+"")&&Fp(s,b),(!p||3&t)&&y!==(y=e[1]("modals.actionRequired.paragraph",{values:{wallet:e[0]}})+"")&&Fp(c,y),"MetaMask"===e[0]?w?w.p(e,t):(w=Nv(e),w.c(),w.m(l,null)):w&&(w.d(1),w=null),(!p||2&t)&&v!==(v=e[1]("modals.actionRequired.buttonText")+"")&&Fp(f,v)},i(e){p||(Em(n.$$.fragment,e),p=!0)},o(e){Am(n.$$.fragment,e),p=!1},d(e){e&&Op(t),$m(n),w&&w.d(),m=!1,g()}}}function jv(e){let t,r;return t=new Mb({props:{close:e[2],$$slots:{default:[Rv]},$$scope:{ctx:e}}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,[r]){const n={};11&r&&(n.$$scope={dirty:r,ctx:e}),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function Bv(e,t,r){let n;up(e,ii,e=>r(1,n=e));let{wallet:i}=t;return e.$$set=e=>{"wallet"in e&&r(0,i=e.wallet)},[i,n,function(){zm.next({inProgress:!1,actionRequired:""})}]}class $v extends Dm{constructor(e){super(),Fm(this,e,Bv,jv,ap,{wallet:0},Tv)}}
vendor: 4,939 bytes, line 18
18function Lv(e){kp(e,"svelte-w5zexe",".flex{display:flex}.inline-flex{display:inline-flex}.flex-column{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.justify-around{justify-content:space-around}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.pointer{cursor:pointer}.shadow-1{box-shadow:var(--onboard-shadow-1, var(--shadow-1))}.w-100{width:100%}*{box-sizing:border-box}input{background:var(--onboard-white, var(--white))}input{width:100%;padding:0.5rem 1rem;outline:2px solid var(--onboard-gray-200, var(--gray-200));border:none;border-radius:8px;font-size:1rem;line-height:1.5;color:var(--onboard-gray-600, var(--gray-600));transition:all 200ms ease-in-out}input[type='checkbox']{-webkit-appearance:none;appearance:none;width:auto;background:var(--onboard-white, var(--white));outline:1px solid var(--onboard-gray-300, var(--gray-300));border:none;padding:0.5em;border-radius:3px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer}input[type='checkbox']:hover{border-color:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    )}input[type='checkbox']:checked{background:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    );border-color:var(\n      --onboard-checkbox-background,\n      var(--onboard-primary-500, var(--primary-500))\n    );color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input[type='checkbox']:checked:after{content:url(\"data:image/svg+xml,%3Csvg width='0.885em' height='0.6em' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 6L5 11L14 2L12.59 0.58L5 8.17L1.41 4.59L0 6Z' fill='white'/%3E%3C/svg%3E\");font-size:12px;position:absolute;color:var(--onboard-checkbox-color, var(--onboard-white, var(--white)))}input:hover{border-color:var(\n      --onboard-checkbox-color,\n      var(--onboard-white, var(--white))\n    )}input:focus{border-color:var(--onboard-primary-500, var(--primary-500));box-shadow:0 0 1px 1px\n      var(\n        --onboard-checkbox-background,\n        var(--onboard-primary-500, var(--primary-500))\n      );box-shadow:0 0 0 1px -moz-mac-focusring}input:disabled, textarea:disabled, select:disabled{background:var(--gray-100)}input::-moz-focus-inner{outline:0;padding:0;margin-top:-2px;margin-bottom:-2px}a{color:var(\n      --onboard-link-color,\n      var(--onboard-primary-500, var(--primary-500))\n    );text-decoration:none}a:hover{text-decoration:underline}button{display:flex;align-items:center;justify-content:center;padding:calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);border-radius:24px;cursor:pointer;font:inherit;border:none;transition:background-color 150ms ease-in-out, color 150ms ease-in-out}.onboard-button-primary{background:var(--onboard-white, var(--white));padding:calc(var(--onboard-spacing-5, var(--spacing-5)) - 1px)\n      calc(var(--onboard-spacing-4, var(--spacing-4)) - 1px);color:var(--onboard-gray-500, var(--gray-500));font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));border:1px solid var(--onboard-gray-500, var(--gray-500));font-weight:600}.button-neutral-solid{width:100%;border-radius:8px;background:var(--onboard-gray-500, var(--gray-500));color:var(--onboard-white, var(--white));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.button-neutral-solid-b{width:100%;background:var(--onboard-gray-100, var(--gray-100));color:var(--onboard-gray-500, var(--gray-500));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}button.rounded{border-radius:24px}.button-neutral-solid:hover{background:var(--onboard-gray-700, var(--gray-700))}.button-neutral-solid-b:hover{background:var(--onboard-gray-200, var(--gray-200))}.button-neutral-solid:active{color:var(--onboard-gray-300, var(--gray-300))}.button-neutral-solid-b:active{color:var(--onboard-gray-600, var(--gray-600));background:var(--onboard-gray-300, var(--gray-300))}.container.svelte-w5zexe{padding:16px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));pointer-events:none;touch-action:none;width:100%}.z-indexed.svelte-w5zexe{z-index:var(--account-center-z-index)}@media all and (min-width: 428px){.container.svelte-w5zexe{max-width:348px}}")}function Fv(e){let t,r;return t=new Ev({props:{autoSelect:e[8].autoSelect}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.autoSelect=e[8].autoSelect),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function Dv(e){let t,r;
18return t=new $v({props:{wallet:e[8].actionRequired}}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},p(e,r){const n={};256&r&&(n.wallet=e[8].actionRequired),t.$set(n)},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function Uv(e){let t,r;return t=new Pv({}),{c(){jm(t.$$.fragment)},m(e,n){Bm(t,e,n),r=!0},i(e){r||(Em(t.$$.fragment,e),r=!0)},o(e){Am(t.$$.fragment,e),r=!1},d(e){$m(t,e)}}}function Hv(e){let t,r,n,i,o,s,a=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7],l=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7],c=a&&zv(e),u={ctx:e,current:null,token:null,hasCatch:!1,pending:Kv,then:Zv,catch:Vv,value:23,blocks:[,,,]};Im(e[16],u);let h=l&&Jv(e);return{c(){t=Tp("div"),c&&c.c(),r=Rp(),n=Tp("div"),u.block.c(),i=Rp(),h&&h.c(),Lp(n,"id","account-center-with-notify"),Lp(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Lp(t,"style",o=e[15](uw)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,o){Sp(e,t,o),c&&c.m(t,null),xp(t,r),xp(t,n),u.block.m(n,u.anchor=null),u.mount=()=>n,u.anchor=null,xp(t,i),h&&h.m(t,null),s=!0},p(n,i){e=n,138&i&&(a=e[3].position.includes("bottom")&&e[1].position.includes("bottom")&&e[7]),a?c?(c.p(e,i),138&i&&Em(c,1)):(c=zv(e),c.c(),Em(c,1),c.m(t,r)):c&&(wm(),Am(c,1,1,()=>{c=null}),_m()),Sm(u,e,i),138&i&&(l=e[3].position.includes("top")&&e[1].position.includes("top")&&e[7]),l?h?(h.p(e,i),138&i&&Em(h,1)):(h=Jv(e),h.c(),Em(h,1),h.m(t,null)):h&&(wm(),Am(h,1,1,()=>{h=null}),_m()),(!s||2&i&&o!==(o=e[15](uw)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Lp(t,"style",o)},i(e){s||(Em(c),Em(u.block),Em(h),s=!0)},o(e){Am(c);for(let t=0;t<3;t+=1){Am(u.blocks[t])}Am(h),s=!1},d(e){e&&Op(t),c&&c.d(),u.block.d(),u.token=null,u=null,h&&h.d()}}}function zv(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Wv,then:Gv,catch:qv,value:22,blocks:[,,,]};return Im(e[17],n),{c(){t=jp(),n.block.c()},m(e,i){Sp(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Sm(n,e=t,r)},i(e){r||(Em(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){Am(n.blocks[t])}r=!1},d(e){e&&Op(t),n.block.d(e),n.token=null,n=null}}}function qv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function Gv(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=qp(i,o(e)));return{c(){t&&jm(t.$$.fragment),r=jp()},m(e,i){t&&Bm(t,e,i),Sp(e,r,i),n=!0},p(e,n){const s={};if(1024&n&&(s.notifications=e[10]),8&n&&(s.position=e[3].position),1&n&&(s.sharedContainer=e[0]),i!==(i=e[22])){if
18(t){wm();const e=t;Am(e.$$.fragment,1,0,()=>{$m(e,1)}),_m()}i?(t=qp(i,o(e)),jm(t.$$.fragment),Em(t.$$.fragment,1),Bm(t,r.parentNode,r)):t=null}else i&&t.$set(s)},i(e){n||(t&&Em(t.$$.fragment,e),n=!0)},o(e){t&&Am(t.$$.fragment,e),n=!1},d(e){e&&Op(r),t&&$m(t,e)}}}(e);return{c(){n&&n.c(),t=jp()},m(e,i){n&&n.m(e,i),Sp(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(Em(n),r=!0)},o(e){Am(n),r=!1},d(e){n&&n.d(e),e&&Op(t)}}}function Wv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function Vv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function Zv(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=qp(i,o()));return{c(){t&&jm(t.$$.fragment),r=jp()},m(e,i){t&&Bm(t,e,i),Sp(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){wm();const e=t;Am(e.$$.fragment,1,0,()=>{$m(e,1)}),_m()}i?(t=qp(i,o()),jm(t.$$.fragment),Em(t.$$.fragment,1),Bm(t,r.parentNode,r)):t=null}},i(e){n||(t&&Em(t.$$.fragment,e),n=!0)},o(e){t&&Am(t.$$.fragment,e),n=!1},d(e){e&&Op(r),t&&$m(t,e)}}}(e);return{c(){n&&n.c(),t=jp()},m(e,i){n&&n.m(e,i),Sp(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(Em(n),r=!0)},o(e){Am(n),r=!1},d(e){n&&n.d(e),e&&Op(t)}}}function Kv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function Jv(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:Xv,then:Qv,catch:Yv,value:22,blocks:[,,,]};return Im(e[17],n),{c(){t=jp(),n.block.c()},m(e,i){Sp(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Sm(n,e=t,r)},i(e){r||(Em(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){Am(n.blocks[t])}r=!1},d(e){e&&Op(t),n.block.d(e),n.token=null,n=null}}}function Yv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function Qv(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=qp(i,o(e)));return{c(){t&&jm(t.$$.fragment),r=jp()},m(e,i){t&&Bm(t,e,i),Sp(e,r,i),n=!0},p(e,n){const s={};if(1024&n&&(s.notifications=e[10]),8&n&&(s.position=e[3].position),1&n&&(s.sharedContainer=e[0]),i!==(i=e[22])){if
18(t){wm();const e=t;Am(e.$$.fragment,1,0,()=>{$m(e,1)}),_m()}i?(t=qp(i,o(e)),jm(t.$$.fragment),Em(t.$$.fragment,1),Bm(t,r.parentNode,r)):t=null}else i&&t.$set(s)},i(e){n||(t&&Em(t.$$.fragment,e),n=!0)},o(e){t&&Am(t.$$.fragment,e),n=!1},d(e){e&&Op(r),t&&$m(t,e)}}}(e);return{c(){n&&n.c(),t=jp()},m(e,i){n&&n.m(e,i),Sp(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(Em(n),r=!0)},o(e){Am(n),r=!1},d(e){n&&n.d(e),e&&Op(t)}}}function Xv(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function ew(e){let t,r,n,i,o=e[1].enabled&&e[2].length&&tw(e);return{c(){t=Tp("div"),r=Tp("div"),o&&o.c(),Lp(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Lp(t,"style",n=e[15](uw)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":""))},m(e,n){Sp(e,t,n),xp(t,r),o&&o.m(r,null),i=!0},p(e,s){e[1].enabled&&e[2].length?o?(o.p(e,s),6&s&&Em(o,1)):(o=tw(e),o.c(),Em(o,1),o.m(r,null)):o&&(wm(),Am(o,1,1,()=>{o=null}),_m()),(!i||2&s&&n!==(n=e[15](uw)[e[1].position]+"; "+("mobile"===e[11].type&&e[1].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[1].position.includes("bottom")?"padding-top:0;":"")))&&Lp(t,"style",n)},i(e){i||(Em(o),i=!0)},o(e){Am(o),i=!1},d(e){e&&Op(t),o&&o.d()}}}function tw(e){let t,r,n={ctx:e,current:null,token:null,hasCatch:!1,pending:iw,then:nw,catch:rw,value:23,blocks:[,,,]};return Im(e[16],n),{c(){t=jp(),n.block.c()},m(e,i){Sp(e,t,i),n.block.m(e,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,r=!0},p(t,r){Sm(n,e=t,r)},i(e){r||(Em(n.block),r=!0)},o(e){for(let t=0;t<3;t+=1){Am(n.blocks[t])}r=!1},d(e){e&&Op(t),n.block.d(e),n.token=null,n=null}}}function rw(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function nw(e){let t,r,n=e[23]&&function(e){let t,r,n;var i=e[23];function o(e){return{}}i&&(t=qp(i,o()));return{c(){t&&jm(t.$$.fragment),r=jp()},m(e,i){t&&Bm(t,e,i),Sp(e,r,i),n=!0},p(e,n){if(i!==(i=e[23])){if(t){wm();const e=t;Am(e.$$.fragment,1,0,()=>{$m(e,1)}),_m()}i?(t=qp(i,o()),jm(t.$$.fragment),Em(t.$$.fragment,1),Bm(t,r.parentNode,r)):t=null}},i(e){n||(t&&Em(t.$$.fragment,e),n=!0)},o(e){t&&Am(t.$$.fragment,e),n=!1},d(e){e&&Op(r),t&&$m(t,e)}}}(e);return{c(){n&&n.c(),t=jp()},m(e,i){n&&n.m(e,i),Sp(e,t,i),r=!0},p(e,t){e[23]&&n.p(e,t)},i(e){r||(Em(n),r=!0)},o(e){Am(n),r=!1},d(e){n&&n.d(e),e&&Op(t)}}}function iw(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function ow(e){let t,r,n,i={ctx:e,current:null,token:null,hasCatch:!1,pending:lw,then:aw,catch:sw,value:22,blocks:[,,,]};return Im(e[17],i),{c(){t=Tp("div"),i.block.c(),Lp(t,"class","container flex flex-column fixed z-indexed svelte-w5zexe"),Lp(t,"style",r=e[15](hw)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":""))},m(e,r){Sp(e,t,r),i.block.m(t,i.anchor=null),i.mount=()=>t,i.anchor=null,n=!0},p(o,s){Sm(i,e=o,s),(!n||8&s&&r!==(r=e[15](hw)[e[3].position]+"; "+("mobile"===e[11].type&&e[3].position.includes("top")?"padding-bottom: 0;":"mobile"===e[11].type&&e[3].position.includes("bottom")?"padding-top:0;":"")))&&Lp(t,"style",r)},i(e){n||(Em(i.block),n=!0)},o(e){for(let t=0;t<3;t+=1){Am(i.blocks[t])}n=!1},d(e){e&&Op(t),i.block.d(),i.token=null,i=null}}}function sw(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function aw(e){let t,r,n=e[22]&&function(e){let t,r,n;var i=e[22];function o(e){return{props:{notifications:e[10],position:e[3].position,sharedContainer:e[0]}}}i&&(t=qp(i,o(e)));return{c(){t&&jm(t.$$.fragment),r=jp()},m(e,i){t&&Bm(t,e,i),Sp(e,r,i),n=!0},p(e,n){const s={};if(1024&n&&(s.notifications=e[10]),8&n&&(s.position=e[3].position),1&n&&(s.sharedContainer=e[0]),i!==(i=e[22])){if
18(t){wm();const e=t;Am(e.$$.fragment,1,0,()=>{$m(e,1)}),_m()}i?(t=qp(i,o(e)),jm(t.$$.fragment),Em(t.$$.fragment,1),Bm(t,r.parentNode,r)):t=null}else i&&t.$set(s)},i(e){n||(t&&Em(t.$$.fragment,e),n=!0)},o(e){t&&Am(t.$$.fragment,e),n=!1},d(e){e&&Op(r),t&&$m(t,e)}}}(e);return{c(){n&&n.c(),t=jp()},m(e,i){n&&n.m(e,i),Sp(e,t,i),r=!0},p(e,t){e[22]&&n.p(e,t)},i(e){r||(Em(n),r=!0)},o(e){Am(n),r=!1},d(e){n&&n.d(e),e&&Op(t)}}}function lw(e){return{c:tp,m:tp,p:tp,i:tp,o:tp,d:tp}}function cw(e){let t,r,n,i,o,s,a,l=e[8].inProgress&&Fv(e),c=e[8].actionRequired&&Dv(e),u=e[9]&&Uv(),h=e[4]&&Hv(e),d=e[5]&&ew(e),f=e[6]&&ow(e);return{c(){l&&l.c(),t=Rp(),c&&c.c(),r=Rp(),u&&u.c(),n=Rp(),h&&h.c(),i=Rp(),d&&d.c(),o=Rp(),f&&f.c(),s=jp()},m(e,p){l&&l.m(e,p),Sp(e,t,p),c&&c.m(e,p),Sp(e,r,p),u&&u.m(e,p),Sp(e,n,p),h&&h.m(e,p),Sp(e,i,p),d&&d.m(e,p),Sp(e,o,p),f&&f.m(e,p),Sp(e,s,p),a=!0},p(e,[a]){e[8].inProgress?l?(l.p(e,a),256&a&&Em(l,1)):(l=Fv(e),l.c(),Em(l,1),l.m(t.parentNode,t)):l&&(wm(),Am(l,1,1,()=>{l=null}),_m()),e[8].actionRequired?c?(c.p(e,a),256&a&&Em(c,1)):(c=Dv(e),c.c(),Em(c,1),c.m(r.parentNode,r)):c&&(wm(),Am(c,1,1,()=>{c=null}),_m()),e[9]?u?512&a&&Em(u,1):(u=Uv(),u.c(),Em(u,1),u.m(n.parentNode,n)):u&&(wm(),Am(u,1,1,()=>{u=null}),_m()),e[4]?h?(h.p(e,a),16&a&&Em(h,1)):(h=Hv(e),h.c(),Em(h,1),h.m(i.parentNode,i)):h&&(wm(),Am(h,1,1,()=>{h=null}),_m()),e[5]?d?(d.p(e,a),32&a&&Em(d,1)):(d=ew(e),d.c(),Em(d,1),d.m(o.parentNode,o)):d&&(wm(),Am(d,1,1,()=>{d=null}),_m()),e[6]?f?(f.p(e,a),64&a&&Em(f,1)):(f=ow(e),f.c(),Em(f,1),f.m(s.parentNode,s)):f&&(wm(),Am(f,1,1,()=>{f=null}),_m())},i(e){a||(Em(l),Em(c),Em(u),Em(h),Em(d),Em(f),a=!0)},o(e){Am(l),Am(c),Am(u),Am(h),Am(d),Am(f),a=!1},d(e){l&&l.d(e),e&&Op(t),c&&c.d(e),e&&Op(r),u&&u.d(e),e&&Op(n),h&&h.d(e),e&&Op(i),d&&d.d(e),e&&Op(o),f&&f.d(e),e&&Op(s)}}}const uw="account-center",hw="notify-onboard-container";function dw(e,t,r){let n,i,o,a,l,c,u,h,d,f,p,m;up(e,Gm,e=>r(2,h=e)),up(e,zm,e=>r(8,f=e)),up(e,qm,e=>r(9,p=e));const{device:g,containerElements:b}=Cf,y=ep.select("accountCenter").pipe(Ke(ep.get().accountCenter),Ve(1));up(e,y,e=>r(1,u=e));const v=ep.select("notify").pipe(Ke(ep.get().notify),Ve(1));up(e,v,e=>r(3,d=e));const w=ep.select("notifications").pipe(Ke(ep.get().notifications));up(e,w,e=>r(10,m=e));const _=u.enabled?s(()=>import("./Index-fb68189d.js-nkj0Pk0U.js"),__vite__mapDeps([6,1,2])).then(e=>e.default):Promise.resolve(null),E=d.enabled?s(()=>import("./Index-bf757f44.js-Dl9BcCx2.js"),__vite__mapDeps([7,1,2])).then(e=>e.default):Promise.resolve(null),A=u.enabled&&b&&b.accountCenter;if(A){((e,t,r,n)=>{const i=e.attachShadow({mode:"open"});let o=document.querySelector("onboard-v2").shadowRoot.styleSheets;const s=new CSSStyleSheet;Object.values(o).forEach(e=>{Object.values(e.cssRules).forEach(e=>s.insertRule(e.cssText))}),i.adoptedStyleSheets=[s];const a=document.querySelector(t);if(a.appendChild(e),!a)throw new Error(`Element with query ${t} does not exist.`);(async()=>{let e=await r;e&&new e({target:i,props:{settings:n,mountInContainer:!0}})})()})(document.createElement("onboard-account-center"),A,_,u)}return e.$$.update=()=>{10&e.$$.dirty&&r(0,n=!A&&u.enabled&&d.enabled&&d.position===u.position),10&e.$$.dirty&&r(7,i="mobile"===g.type||u.position===d.position),10&e.$$.dirty&&r(18,o=d.position.includes("bottom")&&u.position.includes("bottom")||d.position.includes("top")&&u.position.includes("top")),262158&e.$$.dirty&&r(6,a=d.enabled&&(!u.enabled||A||d.position!==u.position&&"mobile"!==g.type||"mobile"===g.type&&!o||!h.length)),262158&e.$$.dirty&&r(5,l=u.enabled&&(!d.enabled||d.position!==u.position&&"mobile"!==g.type||"mobile"===g.type&&!o)&&h.length),262159&e.$$.dirty&&r(4,c=d.enabled&&u.enabled&&(n||"mobile"===g.type&&o)&&h.length)},[n,u,h,d,c,l,a,i,f,p,m,g,y,v,w,e=>({topLeft:`\n        top: var(--${e}-position-top, 0); \n        left: var(--${e}-position-left, 0);`,topRight:`\n        top: var(--${e}-position-top, 0); \n        right: var(--${e}-position-right, 0);`,bottomRight:`\n        bottom: var(--${e}-position-bottom, 0); \n        right: var(--${e}-position-right, 0);`,bottomLeft:`\n        bottom: var(--${e}-position-bottom, 0); \n        left: var(--${e}-position-left, 0);`}),_,E,o]}class fw extends Dm{constructor(e){super(),Fm(this,e,dw,cw,ap,{},Lv)}}const pw={connectWallet:eb,disconnectWallet:tb,setChain:bb,state:{get:ep.get,select:ep.select,actions:{setWalletModules:Kg,setLocale:function(e){const t=Td(mg,e);if(t)throw t;
18Xf({type:qf,payload:e})},updateNotify:Wg,customNotification:function(e){const t=Lg(e);if(t)throw t;const r=`customNotification-${((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),""))()}`,n=Object.assign(Object.assign({},e),{id:r,key:r});Vg(n);const i=()=>{n.id&&Zg(n.id)},o=t=>{const r=Lg(e);if(r)throw r;return Vg(Object.assign(Object.assign({},t),{id:n.id,key:n.key})),{dismiss:i,update:o}};return Vg(n),{dismiss:i,update:o}},updateBalances:async function(e){const{wallets:t,chains:r}=ep.get();Jg(await Promise.all(t.map(async t=>{const n=r.find(({id:e})=>e===t.chains[0].id);if(!n)return;const i=await Promise.all(t.accounts.map(async t=>{const r=await rb(t.address,n);if(!e||e.some(e=>e.toLowerCase()===t.address.toLowerCase())){const e=await db(t.address,n);return Object.assign(Object.assign({},t),{balance:e,secondaryTokens:r})}return Object.assign(Object.assign({},t),{secondaryTokens:r})}));return Object.assign(Object.assign({},t),{accounts:i})})))},updateAccountCenter:qg,setPrimaryWallet:Hg,updateTheme:Yg,updateAppMetadata:Qg}}};function mw(e){if("undefined"==typeof window)return pw;if(e){const t=Td(Pg,e);if(t)throw t}const{wallets:t,chains:r,appMetadata:n,i18n:i,accountCenter:o,notify:s,gas:a,connect:l,containerElements:c,transactionPreview:u,theme:h,disableFontDownload:d,unstoppableResolution:f,wagmi:p}=e;c&&Pf({containerElements:c});const{device:m,svelteInstance:g}=Cf;if(g&&Um.next(),function(e){if(e){const{en:t}=e;hn("en",Gd(vb,t||{})),Object.keys(e).filter(e=>"en"!==e).forEach(t=>{const r=e[t];r&&hn(t,r)})}else hn("en",vb);xn({fallbackLocale:"en",initialLocale:"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0]})}(i),function(e){Xf({type:Rf,payload:e.map(e=>{var{namespace:t="evm",id:r,rpcUrl:n}=e,i=Jd(e,["namespace","id","rpcUrl"]);return Object.assign(Object.assign({},i),{namespace:t,id:r.toLowerCase(),rpcUrl:n?n.trim():null})})})}(function(e){return e.map(e=>{var{id:t}=e,r=Jd(e,["id"]);const n=ff(t);return Object.assign({id:n},r)})}(r)),void 0!==l&&Gg(l),void 0!==o){let e;const{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}=o;"mobile"===m.type?e=Object.assign(Object.assign(Object.assign({},If.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),o.mobile?o.mobile:{}):o.desktop&&(e=Object.assign(Object.assign(Object.assign({},If.accountCenter),{hideTransactionProtectionBtn:t,transactionProtectionInfoLink:r}),o.desktop)),void 0!==e&&qg(e)}let b;if(void 0!==p&&(b=p(Object.assign({disconnect:tb,updateChain:Fg},{addOrSwitchChain:gb,getChainId:ab,requestAccounts:ob,switchChain:fb}))),void 0!==s)if("desktop"in s||"mobile"in s){const e=function(e){return Td(vg,e)}(s);if(e)throw e;s&&s.desktop&&s.desktop.position&&o&&o.desktop&&o.desktop.position&&(s.desktop.position=o.desktop.position),s&&s.mobile&&s.mobile.position&&o&&o.mobile&&o.mobile.position&&(s.mobile.position=o.mobile.position);let t={};"mobile"===m.type&&s.mobile?t=Object.assign(Object.assign({},If.notify),s.mobile):s.desktop&&(t=Object.assign(Object.assign({},If.notify),s.desktop)),Wg(t)}else{const e=$g(s);if(e)throw e;Wg(Object.assign(Object.assign({},If.notify),s))}else{Wg(If.notify)}const y=g||function(e,t){class r extends HTMLElement{constructor(){super()}}customElements.get("onboard-v2")||customElements.define("onboard-v2",r);gw(e,t)||bw();const n=document.createElement("onboard-v2"),i=n.attachShadow({mode:"open"});let o;n.style.all="initial",i.innerHTML="\n\n  <style>\n    :host {\n          /* COLORS */\n          --white: white;\n          --black: black;\n          --primary-1: #2F80ED;\n          --primary-100: #eff1fc;\n          --primary-200: #d0d4f7;\n          --primary-300: #b1b8f2;\n          --primary-400: #929bed;\n          --primary-500: #6370e5;\n          --primary-600: #454ea0;\n          --primary-700: #323873;\n          --gray-100: #ebebed;\n          --gray-200: #c2c4c9;\n          --gray-300: #999ca5;\n          --gray-400: #707481;\n          --gray-500: #33394b;\n          --gray-600: #242835;\n          --gray-700: #1a1d26;\n          --success-100: #d1fae3;\n          --success-200: #baf7d5;\n          --success-300: #a4f4c6;\n          --success-400: #8df2b8;\n          --success-500: #5aec99;\n          --success-600: #18ce66;\n          --success-700: #129b4d;\n          --danger-100: #ffe5e6;\n          --danger-200: #ffcccc;\n          --danger-300: #ffb3b3;
18\n          --danger-400: #ff8080;\n          --danger-500: #ff4f4f;\n          --danger-600: #cc0000;\n          --danger-700: #660000;\n          --warning-100: #ffefcc;\n          --warning-200: #ffe7b3;\n          --warning-300: #ffd780;\n          --warning-400: #ffc74c;\n          --warning-500: #ffaf00;\n          --warning-600: #cc8c00;\n          --warning-700: #664600;\n\n          /* FONTS */\n          --font-family-normal: var(--w3o-font-family, Inter, sans-serif);\n\n          --font-size-1: 3rem;\n          --font-size-2: 2.25rem;\n          --font-size-3: 1.5rem;\n          --font-size-4: 1.25rem;\n          --font-size-5: 1rem;\n          --font-size-6: .875rem;\n          --font-size-7: .75rem;\n\n          --font-line-height-1: 24px;\n          --font-line-height-2: 20px;\n          --font-line-height-3: 16px;\n          --font-line-height-4: 12px;\n\n          /* SPACING */\n          --spacing-1: 3rem;\n          --spacing-2: 2rem;\n          --spacing-3: 1.5rem;\n          --spacing-4: 1rem;\n          --spacing-5: 0.5rem;\n          --spacing-6: 0.25rem;\n          --spacing-7: 0.125rem;\n\n          /* BORDER RADIUS */\n          --border-radius-1: 24px;\n          --border-radius-2: 20px;\n          --border-radius-3: 16px;\n          --border-radius-4: 12px;\n          --border-radius-5: 8px;\n\n          /* SHADOWS */\n          --shadow-0: none;\n          --shadow-1: 0px 4px 12px rgba(0, 0, 0, 0.1);\n          --shadow-2: inset 0px -1px 0px rgba(0, 0, 0, 0.1);\n          --shadow-3: 0px 4px 16px rgba(0, 0, 0, 0.2);\n\n          /* MODAL POSITIONING */\n          --modal-z-index: 10;\n          --modal-top: unset;\n          --modal-right: unset;\n          --modal-bottom: unset;\n          --modal-left: unset;\n\n          /* MODAL STYLES */\n          --modal-backdrop: rgba(0, 0, 0, 0.6);\n\n        }\n      </style>\n    ",Cf&&Cf.containerElements&&Cf.containerElements.connectModal&&(o=Cf.containerElements.connectModal);const s=o||ep.get().accountCenter.containerElement||"body",a=document.querySelector(s);if(!a)throw new Error(`Element with query ${s} does not exist.`);a.appendChild(n);const l=new fw({target:i});return l}(h||{},d||!1);if(Pf({svelteInstance:y,initialWalletInit:t,gas:a,unstoppableResolution:f,wagmi:b}),n&&Qg(n),h&&Yg(h),l&&(l.autoConnectLastWallet||l.autoConnectAllPreviousWallet)){const e=Af(Of);try{const t=JSON.parse(e);t&&Array.isArray(t)&&t.length&&yw(t,l),t&&"string"==typeof t&&yw([t],l)}catch(v){v instanceof SyntaxError&&e&&pw.connectWallet({autoSelect:{label:e,disableModals:!0}})}}return pw}const gw=(e,t)=>!!t||(!(!document.body||!getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal")&&!getComputedStyle(document.body).getPropertyValue("--w3o-font-family"))||!!e&&!("object"!=typeof e||!e["--w3o-font-family"])),bw=async()=>{const{InterVar:e}=await s(async()=>{const{InterVar:e}=await Promise.resolve().then(()=>$d);return{InterVar:e}},void 0),t=document.createElement("style");t.innerHTML=`\n    ${e}\n  `,document.body.appendChild(t)},yw=async(e,t)=>{const r=[],n=e;if(t.autoConnectAllPreviousWallet)for(let i=n.length;i--;){(await pw.connectWallet({autoSelect:{label:n[i],disableModals:!0}})).some(e=>e.label===n[i])&&r.unshift(n[i])}else pw.connectWallet({autoSelect:{label:n[0],disableModals:!0}}),r.push(n[0]);xf(Of,JSON.stringify(r))};let vw,ww=!1;const _w=e=>(vw=mw(e),vw),Ew=e.createContext(void 0);function Aw({children:t,web3Onboard:r}){return ww=!0,vw=void 0,e.createElement(Ew.Provider,{value:r},t)}function xw(){const t=ww?e.useContext(Ew):vw;
18if(!t)throw new Error("Must call the provided initialization method`init` method before using hooks.");return t}var kw,Cw,Pw={exports:{}},Iw={};var Sw=(Cw||(Cw=1,Pw.exports=function(){if(kw)return Iw;kw=1;var e=n(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}catch(i){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),c=l[0].inst,u=l[1];return o(function(){c.value=n,c.getSnapshot=t,a(c)&&u({inst:c})},[e,n,t]),i(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),s(n),n};return Iw.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,Iw}()),Pw.exports);const Ow=(t=void 0)=>{const r=xw(),{select:n,get:i}=r.state,o=e.useCallback(e=>{const{unsubscribe:r}=t?n(t).subscribe(e):n().subscribe(e);return()=>r},[t]),s=e.useCallback(()=>{const e=i();return t?e[t]:e},[t]);return Sw.useSyncExternalStore(o,s,()=>s())},Mw=()=>{const t=xw(),{connectWallet:r,disconnectWallet:n}=t,i=Ow("wallets")[0]||null,[o,s]=e.useState(!1);return[{wallet:i,connecting:o},e.useCallback(async e=>{s(!0);const t=await r(e);return s(!1),t},[]),e.useCallback(async({label:e})=>{s(!0);const t=await n({label:e});return s(!1),t},[]),t.state.actions.updateBalances,t.state.actions.setWalletModules,t.state.actions.setPrimaryWallet]},Tw=()=>Ow("wallets");var Nw={exports:{}};const Rw=i(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var jw;var Bw=(jw||(jw=1,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;
vendor: 4,463 bytes, line 18
18"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Rw.Buffer}catch(C){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function a(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,n,i){for(var o=0,s=0,a=Math.min(e.length,n),l=t;l<a;l++){var c=e.charCodeAt(l)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s<i,"Invalid character"),o+=s}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,c=0,u=r;u<a;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var h=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)h*=t;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){c(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(C){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,774 bytes, line 18
18777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,l=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var u=l>>>26,h=67108863&l,d=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=d;f++){var p=c-f|0;u+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[c]=0|h,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?h[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],u=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:h[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 8,244 bytes, line 18
18n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,o,s=e.words,a=t.words,l=r.words,c=0,u=0|s[0],h=8191&u,d=u>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],b=8191&g,y=g>>>13,v=0|s[3],w=8191&v,_=v>>>13,E=0|s[4],A=8191&E,x=E>>>13,k=0|s[5],C=8191&k,P=k>>>13,I=0|s[6],S=8191&I,O=I>>>13,M=0|s[7],T=8191&M,N=M>>>13,R=0|s[8],j=8191&R,B=R>>>13,$=0|s[9],L=8191&$,F=$>>>13,D=0|a[0],U=8191&D,H=D>>>13,z=0|a[1],q=8191&z,G=z>>>13,W=0|a[2],V=8191&W,Z=W>>>13,K=0|a[3],J=8191&K,Y=K>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],le=8191&ae,ce=ae>>>13,ue=0|a[8],he=8191&ue,de=ue>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(h,U))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,o=Math.imul(m,H);var be=(c+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,G)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,H))+Math.imul(y,U)|0,o=Math.imul(y,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,H))+Math.imul(_,U)|0,o=Math.imul(_,H),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Z)|0;var ve=(c+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,H))+Math.imul(x,U)|0,o=Math.imul(x,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(b,V)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Y)|0;var we=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,H))+Math.imul(P,U)|0,o=Math.imul(P,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,H))+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(b,X)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var Ee=(c+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,H))+Math.imul(N,U)|0,o=Math.imul(N,H),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(O,q)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(c+(n=n+Math.imul(h,le)|0)|0)+((8191&(i=(i=i+Math.imul(h,ce)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,H))+Math.imul(B,U)|0,o=Math.imul(B,H),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,se)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var xe=(c+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,H))+Math.imul(F,U)|0,o=Math.imul(F,H),n=n+Math.imul(j,q)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,
vendor: 2,576 bytes, line 18
18ce)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var ke=(c+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,G))+Math.imul(F,q)|0,o=Math.imul(F,G),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,se)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(b,he)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(y,he)|0,o=o+Math.imul(y,de)|0;var Ce=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,Z))+Math.imul(F,V)|0,o=Math.imul(F,Z),n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Y)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(x,le)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var Pe=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Y))+Math.imul(F,J)|0,o=Math.imul(F,Y),n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(C,le)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(x,he)|0,o=o+Math.imul(x,de)|0;var Ie=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X
vendor: 4,785 bytes, line 18
18)|0,o=Math.imul(F,ee),n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,se)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,se)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Se=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,se)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,se)|0,n=n+Math.imul(T,le)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(S,he)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Oe=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),n=n+Math.imul(j,le)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(T,he)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(N,he)|0,o=o+Math.imul(N,de)|0;var Me=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,le),i=(i=Math.imul(L,ce))+Math.imul(F,le)|0,o=Math.imul(F,ce),n=n+Math.imul(j,he)|0,i=(i=i+Math.imul(j,de)|0)+Math.imul(B,he)|0,o=o+Math.imul(B,de)|0;var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,he),i=(i=Math.imul(L,de))+Math.imul(F,he)|0,o=Math.imul(F,de);var Ne=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Re=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=ge,l[1]=be,l[2]=ye,l[3]=ve,l[4]=we,l[5]=_e,l[6]=Ee,l[7]=Ae,l[8]=xe,l[9]=ke,l[10]=Ce,l[11]=Pe,l[12]=Ie,l[13]=Se,l[14]=Oe,l[15]=Me,l[16]=Te,l[17]=Ne,l[18]=Re,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,h=(0|e.words[u])*(0|t.words[c]),d=67108863&h;a=67108863&(d=d+a|0),i+=(s=(s=s+(h/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return g(e,t,r)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?g(this,e,t):b(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),b(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<n;this.words[t]=l|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,l=n;if(i-=s,i=Math.max(0,i),l){for(var c=0;c<s;
vendor: 5,514 bytes, line 18
18c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var h=0|this.words[c];this.words[c]=u<<26-o|h>>>o,u=h&a}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n||!(this.words[n]&i))},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,o,s=e.length+n;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+a;var l=(0|e.words[i])*t;a=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,l=n.length-o.length;if("mod"!==t){(a=new i(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var u=n.clone()._ishlnsubmul(o,1,l);0===u.negative&&(n=u,a&&(a.words[l]=1));for(var h=l-1;h>=0;h--){var d=67108864*(0|n.words[o.length+h])+(0|n.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(o,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;
vendor: 10,296 bytes, line 18
180===(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(u),l.isub(h)),a.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a),s.isub(l)):(n.isub(t),a.isub(o),l.isub(s))}return{a:a,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var h=0,d=1;0===(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new x(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(w,v),w.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(_,v),n(E,v),n(A,v),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new _;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return y[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var h=this.pow(u,o),d=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var b=this.pow(h,new i(1).iushln(p-g-1));d=d.redMul(b),h=b.redSqr(),f=f.redMul(h),p=g}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var h=c>>u&1;o!==r[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===u)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}
vendor: 1,069 bytes, line 18
18l=26}return o},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},n(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}
vendor: 40,069 bytes, lines 18-26
18(Nw,Nw.exports)),Nw.exports);const $w=t(Bw);let Lw=!1,Fw=!1;const Dw={debug:1,default:2,info:2,warning:3,error:4,off:5};let Uw=Dw.default,Hw=null;const zw=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var qw,Gw,Ww;(Gw=qw||(qw={})).DEBUG="DEBUG",Gw.INFO="INFO",Gw.WARNING="WARNING",Gw.ERROR="ERROR",Gw.OFF="OFF",function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(Ww||(Ww={}));const Vw="0123456789abcdef";class Zw{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==Dw[r]&&this.throwArgumentError("invalid log level name","logLevel",e)}debug(...e){this._log(Zw.levels.DEBUG,e)}info(...e){this._log(Zw.levels.INFO,e)}warn(...e){this._log(Zw.levels.WARNING,e)}makeError(e,t,r){if(Fw)return this.makeError("censored error",t,{});t||(t=Zw.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach(e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=Vw[t[e]>>4],r+=Vw[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(i){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);const i=e;let o="";switch(t){case Ww.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case Ww.CALL_EXCEPTION:case Ww.INSUFFICIENT_FUNDS:case Ww.MISSING_NEW:case Ww.NONCE_EXPIRED:case Ww.REPLACEMENT_UNDERPRICED:case Ww.TRANSACTION_REPLACED:case Ww.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=i,s.code=t,Object.keys(r).forEach(function(e){s[e]=r[e]}),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,Zw.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){zw&&this.throwError("platform missing String.prototype.normalize",Zw.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:zw})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,Zw.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,Zw.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,Zw.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,Zw.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",Zw.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",Zw.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",Zw.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return Hw||(Hw=new Zw("logger/5.8.0")),Hw}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",Zw.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Lw){if(!e)return;this.globalLogger().throwError("error censorship permanent",Zw.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Fw=!!e,Lw=!!t}static setLogLevel(e){const t=Dw[e.toLowerCase()];null!=t?Uw=t:Zw.globalLogger().warn("invalid log level - "+e)}static from(e){return new Zw(e)}}Zw.errors=Ww,Zw.levels=qw;const Kw=new Zw("bytes/5.8.0");function Jw(e){return!!e.toHexString}function Yw(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return Yw(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Qw(e){return i_(e)&&!(e.length%2)||e_(e)}function Xw(e){return"number"==typeof e&&e==e&&e%1==0}function e_(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!Xw(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!Xw(r)||r<0||r>=256)return!1}return!0}function t_(e,t){if(t||(t={}),"number"==typeof e){Kw.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),Yw(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Jw(e)&&(e=e.toHexString()),i_(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":Kw.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return Yw(new Uint8Array(n))}return e_(e)?Yw(new Uint8Array(e)):Kw.throwArgumentError("invalid arrayify value","value",e)}function r_(e){const t=e.map(e=>t_(e)),r=t.reduce((e,t)=>e+t.length,0),n=new Uint8Array(r);return t.reduce((e,t)=>(n.set(t,e),e+t.length),0),Yw(n)}function n_(e){let t=t_(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function i_(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const o_="0123456789abcdef";function s_(e,t){if(t||(t={}),"number"==typeof e){Kw.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=o_[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Jw(e))return e.toHexString();if(i_(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":Kw.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(e_(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=o_[(240&n)>>4]+o_[15&n]}return t}return Kw.throwArgumentError("invalid hexlify value","value",e)}function a_(e){if("string"!=typeof e)e=s_(e);else if(!i_(e)||e.length%2)return null;return(e.length-2)/2}function l_(e,t,r){return"string"!=typeof e?e=s_(e):(!i_(e)||e.length%2)&&Kw.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function c_(e){let t="0x";return e.forEach(e=>{t+=s_(e).substring(2)}),t}function u_(e){const t=function(e){"string"!=typeof e&&(e=s_(e));i_(e)||Kw.throwArgumentError("invalid hex string","value",e);e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}(s_(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function h_(e,t){for("string"!=typeof e?e=s_(e):i_(e)||Kw.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Kw.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function d_(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Qw(e)){let r=t_(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=s_(r.slice(0,32)),t.s=s_(r.slice(32,64))):65===r.length?(t.r=s_(r.slice(0,32)),t.s=s_(r.slice(32,64)),t.v=r[64]):Kw.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Kw.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=s_(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=function(e,t){(e=t_(e)).length>t&&Kw.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),Yw(r)}(t_(t._vs),32);t._vs=s_(r);const n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&Kw.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const i=s_(r);null==t.s?t.s=i:t.s!==i&&Kw.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Kw.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&Kw.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&i_(t.r)?t.r=h_(t.r,32):Kw.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&i_(t.s)?t.s=h_(t.s,32):Kw.throwArgumentError("signature missing or invalid s","signature",e);const r=t_(t.s);r[0]>=128&&Kw.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=s_(r);t._vs&&(i_(t._vs)||Kw.throwArgumentError("signature invalid _vs","signature",e),t._vs=h_(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&Kw.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}const f_="bignumber/5.8.0";var p_=$w.BN;const m_=new Zw(f_),g_={},b_=9007199254740991;let y_=!1;class v_{constructor(e,t){e!==g_&&m_.throwError("cannot call constructor directly; use BigNumber.from",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return __(E_(this).fromTwos(e))}toTwos(e){return __(E_(this).toTwos(e))}abs(){return"-"===this._hex[0]?v_.from(this._hex.substring(1)):this}add(e){return __(E_(this).add(E_(e)))}sub(e){return __(E_(this).sub(E_(e)))}div(e){return v_.from(e).isZero()&&A_("division-by-zero","div"),__(E_(this).div(E_(e)))}mul(e){return __(E_(this).mul(E_(e)))}mod(e){const t=E_(e);return t.isNeg()&&A_("division-by-zero","mod"),__(E_(this).umod(t))}pow(e){const t=E_(e);return t.isNeg()&&A_("negative-power","pow"),__(E_(this).pow(t))}and(e){const t=E_(e);return(this.isNegative()||t.isNeg())&&A_("unbound-bitwise-result","and"),__(E_(this).and(t))}or(e){const t=E_(e);return(this.isNegative()||t.isNeg())&&A_("unbound-bitwise-result","or"),__(E_(this).or(t))}xor(e){const t=E_(e);return(this.isNegative()||t.isNeg())&&A_("unbound-bitwise-result","xor"),__(E_(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&A_("negative-width","mask"),__(E_(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&A_("negative-width","shl"),__(E_(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&A_("negative-width","shr"),__(E_(this).shrn(e))}eq(e){return E_(this).eq(E_(e))}lt(e){return E_(this).lt(E_(e))}lte(e){return E_(this).lte(E_(e))}gt(e){return E_(this).gt(E_(e))}gte(e){return E_(this).gte(E_(e))}isNegative(){return"-"===this._hex[0]}isZero(){return E_(this).isZero()}toNumber(){try{return E_(this).toNumber()}catch(e){A_("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return m_.throwError("this platform does not support BigInt",Zw.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?y_||(y_=!0,m_.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?m_.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Zw.errors.UNEXPECTED_ARGUMENT,{}):m_.throwError("BigNumber.toString does not accept parameters",Zw.errors.UNEXPECTED_ARGUMENT,{})),E_(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof v_)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new v_(g_,w_(e)):e.match(/^-?[0-9]+$/)?new v_(g_,w_(new p_(e))):m_.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&A_("underflow","BigNumber.from",e),(e>=b_||e<=-b_)&&A_("overflow","BigNumber.from",e),v_.from(String(e));const t=e;if("bigint"==typeof t)return v_.from(t.toString());if(e_(t))return v_.from(s_(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return v_.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(i_(e)||"-"===e[0]&&i_(e.substring(1))))return v_.from(e)}return m_.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function w_(e){if("string"!=typeof e)return w_(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&m_.throwArgumentError("invalid hex","value",e),"0x00"===(e=w_(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function __(e){return v_.from(w_(e))}function E_(e){const t=v_.from(e).toHexString();return"-"===t[0]?new p_("-"+t.substring(3),16):new p_(t.substring(2),16)}function A_(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),m_.throwError(e,Zw.errors.NUMERIC_FAULT,n)}const x_=new Zw(f_),k_={},C_=v_.from(0),P_=v_.from(-1);function I_(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),x_.throwError(e,Zw.errors.NUMERIC_FAULT,i)}let S_="0";for(;S_.length<256;)S_+=S_;function O_(e){if("number"!=typeof e)try{e=v_.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+S_.substring(0,e):x_.throwArgumentError("invalid decimal size","decimals",e)}function M_(e,t){null==t&&(t=0);const r=O_(t),n=(e=v_.from(e)).lt(C_);n&&(e=e.mul(P_));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function T_(e,t){null==t&&(t=0);const r=O_(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||x_.throwArgumentError("invalid decimal value","value",e);const n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&x_.throwArgumentError("missing value","value",e);const i=e.split(".");i.length>2&&x_.throwArgumentError("too many decimal points","value",e);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&I_("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.length<r.length-1;)s+="0";const a=v_.from(o),l=v_.from(s);let c=a.mul(r).add(l);return n&&(c=c.mul(P_)),c}class N_{constructor(e,t,r,n){e!==k_&&x_.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=O_(n),Object.freeze(this)}static from(e){if(e instanceof N_)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||x_.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}else if(e){const i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&x_.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&x_.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&x_.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new N_(k_,t,r,n)}}class R_{constructor(e,t,r,n){e!==k_&&x_.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&x_.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=T_(this._value,this.format.decimals),r=T_(e._value,e.format.decimals);return R_.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=T_(this._value,this.format.decimals),r=T_(e._value,e.format.decimals);return R_.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=T_(this._value,this.format.decimals),r=T_(e._value,e.format.decimals);return R_.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=T_(this._value,this.format.decimals),r=T_(e._value,e.format.decimals);return R_.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=R_.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(j_.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=R_.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(j_.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&x_.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=R_.from("1"+S_.substring(0,e),this.format),n=B_.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&x_.throwArgumentError("invalid byte width","width",e);return h_(v_.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return R_.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||function(e){return null!=e&&(v_.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||i_(e)||"bigint"==typeof e||e_(e))}(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),R_.fromString(M_(e,t),N_.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=N_.from(t),n=T_(e,r.decimals);!r.signed&&n.lt(C_)&&I_("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=h_(i,r.width/8));const o=M_(n,r.decimals);return new R_(k_,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=N_.from(t);if(t_(e).length>r.width/8)throw new Error("overflow");let n=v_.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=M_(n,r.decimals);return new R_(k_,i,o,r)}static from(e,t){if("string"==typeof e)return R_.fromString(e,t);if(e_(e))return R_.fromBytes(e,t);try{return R_.fromValue(e,0,t)}catch(r){if(r.code!==Zw.errors.INVALID_ARGUMENT)throw r}return x_.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const j_=R_.from(1),B_=R_.from("0.5");var $_=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const L_=new Zw("properties/5.8.0");function F_(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function D_(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function U_(e){return $_(this,void 0,void 0,function*(){const t=Object.keys(e).map(t=>{const r=e[t];return Promise.resolve(r).then(e=>({key:t,value:e}))});return(yield Promise.all(t)).reduce((e,t)=>(e[t.key]=t.value,e),{})})}function H_(e){const t={};for(const r in e)t[r]=e[r];return t}const z_={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function q_(e){if(null==e||z_[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const r=Object.keys(e);for(let n=0;n<r.length;n++){let i=null;try{i=e[r[n]]}catch(t){continue}if(!q_(i))return!1}return!0}return L_.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function G_(e){if(q_(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>W_(e)));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&F_(t,r,W_(n))}return t}return L_.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function W_(e){return G_(e)}class V_{constructor(e){for(const t in e)this[t]=W_(e[t])}}const Z_="abi/5.8.0",K_=new Zw(Z_),J_={};let Y_={calldata:!0,memory:!0,storage:!0},Q_={calldata:!0,memory:!0};function X_(e,t){if("bytes"===e||"string"===e){if(Y_[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&Q_[t])return!0;return(Y_[t]||"payable"===t)&&K_.throwArgumentError("invalid modifier","name",t),!1}function eE(e,t){for(let r in t)F_(e,r,t[r])}const tE=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),rE=new RegExp(/^(.*)\[([0-9]*)\]$/);class nE{constructor(e,t){e!==J_&&K_.throwError("use fromString",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),eE(this,t);let r=this.type.match(rE);eE(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:nE.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=tE.sighash),tE[e]||K_.throwArgumentError("invalid format type","format",e),e===tE.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==tE.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===tE.full?", ":",")+")"):t+=this.type,e!==tE.sighash&&(!0===this.indexed&&(t+=" indexed"),e===tE.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?nE.fromString(e,t):nE.fromObject(e)}static fromObject(e){return nE.isParamType(e)?e:new nE(J_,{name:e.name||null,type:pE(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(nE.fromObject):null})}static fromString(e,t){return r=function(e,t){let r=e;function n(t){K_.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let a=0;a<e.length;a++){let r=e[a];switch(r){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(a),s.state.allowType=!1,s.type=pE(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(t||n(a),s.indexed=!0,s.name=""),X_(s.type,s.name)&&(s.name=""),s.type=pE(s.type);let e=s;s=s.parent,s||n(a),delete e.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(t||n(a),s.indexed=!0,s.name=""),X_(s.type,s.name)&&(s.name=""),s.type=pE(s.type);let o=i(s.parent);s.parent.components.push(o),delete s.parent,s=o;break;case" ":s.state.allowType&&""!==s.type&&(s.type=pE(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(t||n(a),s.indexed&&n(a),s.indexed=!0,s.name=""):X_(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(a),s.type+=r,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(a),s.type+=r,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=r,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=r,delete s.state.allowArray):s.state.readArray?s.type+=r:n(a)}}return s.parent&&K_.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(t||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):X_(s.type,s.name)&&(s.name=""),o.type=pE(o.type),o}(e,!!t),nE.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}static isParamType(e){return!(null==e||!e._isParamType)}}function iE(e,t){return function(e){e=e.trim();let t=[],r="",n=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===n?(t.push(r),r=""):(r+=o,"("===o?n++:")"===o&&(n--,-1===n&&K_.throwArgumentError("unbalanced parenthesis","value",e)))}r&&t.push(r);return t}(e).map(e=>nE.fromString(e,t))}class oE{constructor(e,t){e!==J_&&K_.throwError("use a static from method",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),eE(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return oE.isFragment(e)?e:"string"==typeof e?oE.fromString(e):oE.fromObject(e)}static fromObject(e){if(oE.isFragment(e))return e;switch(e.type){case"function":return hE.fromObject(e);case"event":return sE.fromObject(e);case"constructor":return uE.fromObject(e);case"error":return fE.fromObject(e);case"fallback":case"receive":return null}return K_.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?sE.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?hE.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?uE.fromString(e.trim()):"error"===e.split(" ")[0]?fE.fromString(e.substring(5).trim()):K_.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class sE extends oE{format(e){if(e||(e=tE.sighash),tE[e]||K_.throwArgumentError("invalid format type","format",e),e===tE.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==tE.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===tE.full?", ":",")+") ",e!==tE.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?sE.fromString(e):sE.fromObject(e)}static fromObject(e){if(sE.isEventFragment(e))return e;"event"!==e.type&&K_.throwArgumentError("invalid event object","value",e);const t={name:gE(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(nE.fromObject):[],type:"event"};return new sE(J_,t)}static fromString(e){let t=e.match(bE);t||K_.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:K_.warn("unknown modifier: "+e)}}),sE.fromObject({name:t[1].trim(),anonymous:r,inputs:iE(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function aE(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&K_.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||K_.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=v_.from(r[1]),r[0]):e}function lE(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view"}})}function cE(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&K_.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&K_.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||K_.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&K_.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&K_.throwArgumentError("unable to determine stateMutability","value",e),t}class uE extends oE{format(e){if(e||(e=tE.sighash),tE[e]||K_.throwArgumentError("invalid format type","format",e),e===tE.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===tE.sighash&&K_.throwError("cannot format a constructor for sighash",Zw.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===tE.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?uE.fromString(e):uE.fromObject(e)}static fromObject(e){if(uE.isConstructorFragment(e))return e;"constructor"!==e.type&&K_.throwArgumentError("invalid constructor object","value",e);let t=cE(e);t.constant&&K_.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(nE.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?v_.from(e.gas):null};return new uE(J_,r)}static fromString(e){let t={type:"constructor"},r=(e=aE(e,t)).match(bE);return r&&"constructor"===r[1].trim()||K_.throwArgumentError("invalid constructor string","value",e),t.inputs=iE(r[2].trim(),!1),lE(r[3].trim(),t),uE.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class hE extends uE{format(e){if(e||(e=tE.sighash),tE[e]||K_.throwArgumentError("invalid format type","format",e),e===tE.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==tE.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===tE.full?", ":",")+") ",e!==tE.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?hE.fromString(e):hE.fromObject(e)}static fromObject(e){if(hE.isFunctionFragment(e))return e;"function"!==e.type&&K_.throwArgumentError("invalid function object","value",e);let t=cE(e);const r={type:e.type,name:gE(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(nE.fromObject):[],outputs:e.outputs?e.outputs.map(nE.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?v_.from(e.gas):null};return new hE(J_,r)}static fromString(e){let t={type:"function"},r=(e=aE(e,t)).split(" returns ");r.length>2&&K_.throwArgumentError("invalid function string","value",e);let n=r[0].match(bE);if(n||K_.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&gE(t.name),t.inputs=iE(n[2],!1),lE(n[3].trim(),t),r.length>1){let n=r[1].match(bE);""==n[1].trim()&&""==n[3].trim()||K_.throwArgumentError("unexpected tokens","value",e),t.outputs=iE(n[2],!1)}else t.outputs=[];return hE.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function dE(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||K_.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class fE extends oE{format(e){if(e||(e=tE.sighash),tE[e]||K_.throwArgumentError("invalid format type","format",e),e===tE.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==tE.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===tE.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?fE.fromString(e):fE.fromObject(e)}static fromObject(e){if(fE.isErrorFragment(e))return e;"error"!==e.type&&K_.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:gE(e.name),inputs:e.inputs?e.inputs.map(nE.fromObject):[]};return dE(new fE(J_,t))}static fromString(e){let t={type:"error"},r=e.match(bE);return r||K_.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&gE(t.name),t.inputs=iE(r[2],!1),dE(fE.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function pE(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const mE=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function gE(e){return e&&e.match(mE)||K_.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const bE=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const yE=new Zw(Z_);class vE{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){yE.throwArgumentError(e,this.localName,t)}}class wE{constructor(e){F_(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return c_(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(r_(e._data))}writeBytes(e){let t=t_(e);const r=t.length%this.wordSize;return r&&(t=r_([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=t_(v_.from(e));return t.length>this.wordSize&&yE.throwError("value out-of-bounds",Zw.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=r_([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class _E{constructor(e,t,r,n){F_(this,"_data",t_(e)),F_(this,"wordSize",t||32),F_(this,"_coerceFunc",r),F_(this,"allowLoose",n),this._offset=0}get data(){return s_(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):_E.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:yE.throwError("data out-of-bounds",Zw.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new _E(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return v_.from(this.readBytes(this.wordSize))}}var EE,AE={exports:{}};
19/**
20 * [js-sha3]{@link https://github.com/emn178/js-sha3}
21 *
22 * @version 0.8.0
23 * @author Chen, Yi-Cyuan [[email protected]]
24 * @copyright Chen, Yi-Cyuan 2015-2018
25 * @license MIT
26 */var xE,kE=(EE||(EE=1,xE=AE,function(){var e="input is invalid type",t="object"==typeof window,n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var i=!t&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?n=r:i&&(n=self);var o=!n.JS_SHA3_NO_COMMON_JS&&xE.exports,s=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[4,1024,262144,67108864],c=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!s||!n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var m=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},g=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},b=function(e,t,r){return function(t,n,i,o){return E["cshake"+e].update(t,n,i,o)[r]()}},y=function(e,t,r){return function(t,n,i,o){return E["kmac"+e].update(t,n,i,o)[r]()}},v=function(e,t,r,n){for(var i=0;i<f.length;++i){var o=f[i];e[o]=t(r,n,o)}return e},w=function(e,t){var r=m(e,t,"hex");return r.create=function(){return new O(e,t,e)},r.update=function(e){return r.create().update(e)},v(r,m,e,t)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:h,createMethod:w},{name:"sha3",padding:[6,1536,393216,100663296],bits:h,createMethod:w},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(e,t){var r=g(e,t,"hex");return r.create=function(r){return new O(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},v(r,g,e,t)}},{name:"cshake",padding:l,bits:d,createMethod:function(e,t){var r=p[e],n=b(e,0,"hex");return n.create=function(n,i,o){return i||o?new O(e,t,n).bytepad([i,o],r):E["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},v(n,b,e,t)}},{name:"kmac",padding:l,bits:d,createMethod:function(e,t){var r=p[e],n=y(e,0,"hex");return n.create=function(n,i,o){return new M(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},v(n,y,e,t)}}],E={},A=[],x=0;x<_.length;++x)for(var k=_[x],C=k.bits,P=0;P<C.length;++P){var I=k.name+"_"+C[P];if(A.push(I),E[I]=k.createMethod(C[P],k.padding),"sha3"!==k.name){var S=k.name+C[P];A.push(S),E[S]=E[I]}}function O(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function M(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);
vendor: 5,142 bytes, line 26
26if(null===t)throw new Error(e);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,o,a=this.blocks,l=this.byteCount,u=t.length,h=this.blockCount,d=0,f=this.s;d<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,i=1;i<h+1;++i)a[i]=0;if(r)for(i=this.start;d<u&&i<l;++d)a[i>>2]|=t[d]<<c[3&i++];else for(i=this.start;d<u&&i<l;++d)(o=t.charCodeAt(d))<128?a[i>>2]|=o<<c[3&i++]:o<2048?(a[i>>2]|=(192|o>>6)<<c[3&i++],a[i>>2]|=(128|63&o)<<c[3&i++]):o<55296||o>=57344?(a[i>>2]|=(224|o>>12)<<c[3&i++],a[i>>2]|=(128|o>>6&63)<<c[3&i++],a[i>>2]|=(128|63&o)<<c[3&i++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++d)),a[i>>2]|=(240|o>>18)<<c[3&i++],a[i>>2]|=(128|o>>12&63)<<c[3&i++],a[i>>2]|=(128|o>>6&63)<<c[3&i++],a[i>>2]|=(128|63&o)<<c[3&i++]);if(this.lastByteIndex=i,i>=l){for(this.start=i-l,this.block=a[h],i=0;i<h;++i)f[i]^=a[i];T(f),this.reset=!0}else this.start=i}return this},O.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,o=t.length;if(r)i=o;else for(var a=0;a<t.length;++a){var l=t.charCodeAt(a);l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},O.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];T(n)}},O.prototype.toString=O.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,l="";s<n;){for(o=0;o<t&&s<n;++o,++s)e=r[o],l+=a[e>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t===0&&(T(r),o=0)}return i&&(e=r[o],l+=a[e>>4&15]+a[15&e],i>1&&(l+=a[e>>12&15]+a[e>>8&15]),i>2&&(l+=a[e>>20&15]+a[e>>16&15])),l},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,a=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var l=new Uint32Array(e);s<n;){for(o=0;o<t&&s<n;++o,++s)l[s]=r[o];s%t===0&&T(r)}return i&&(l[o]=r[o],e=e.slice(0,a)),e},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.digest=O.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,a=0,l=[];a<i;){for(s=0;s<r&&a<i;++s,++a)e=a<<2,t=n[s],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%r===0&&T(n)}return o&&(e=a<<2,t=n[s],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},M.prototype=new O,M.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var T=function(e){var t,r,n,i,o,s,a,l,c,h,d,f,p,m,g,b,y,v,w,_,E,A,x,k,C,P,I,S,O,M,T,N,R,j,B,$,L,F,D,U,H,z,q,G,W,V,Z,K,J,Y,Q,X,ee,te,re,ne,ie,oe,se,ae,le,ce,ue;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],h=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|a>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(a<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(h<<1|d>>>31),r=a^(d<<1|h>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(f<<1|p>>>31),r=c^(p<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=h^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],g=e[1],V=e[11]<<4|e[10]>>>28,Z=e[10]<<4|e[11]>>>28,S=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,M=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,$=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,N=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,C=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>
vendor: 5,149 bytes, line 26
269,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,D=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,se=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=m^~b&v,e[1]=g^~y&w,e[10]=k^~P&S,e[11]=C^~I&O,e[20]=j^~$&F,e[21]=B^~L&D,e[30]=G^~V&K,e[31]=W^~Z&J,e[40]=te^~ne&oe,e[41]=re^~ie&se,e[2]=b^~v&_,e[3]=y^~w&E,e[12]=P^~S&M,e[13]=I^~O&T,e[22]=$^~F&U,e[23]=L^~D&H,e[32]=V^~K&Y,e[33]=Z^~J&Q,e[42]=ne^~oe&ae,e[43]=ie^~se&le,e[4]=v^~_&A,e[5]=w^~E&x,e[14]=S^~M&N,e[15]=O^~T&R,e[24]=F^~U&z,e[25]=D^~H&q,e[34]=K^~Y&X,e[35]=J^~Q&ee,e[44]=oe^~ae&ce,e[45]=se^~le&ue,e[6]=_^~A&m,e[7]=E^~x&g,e[16]=M^~N&k,e[17]=T^~R&C,e[26]=U^~z&j,e[27]=H^~q&B,e[36]=Y^~X&G,e[37]=Q^~ee&W,e[46]=ae^~ce&te,e[47]=le^~ue&re,e[8]=A^~m&b,e[9]=x^~g&y,e[18]=N^~k&P,e[19]=R^~C&I,e[28]=z^~j&$,e[29]=q^~B&L,e[38]=X^~G&V,e[39]=ee^~W&Z,e[48]=ce^~te&ne,e[49]=ue^~re&ie,e[0]^=u[n],e[1]^=u[n+1]};if(o)xE.exports=E;else for(x=0;x<A.length;++x)n[A[x]]=E[A[x]]}()),AE.exports);const CE=t(kE);function PE(e){return"0x"+CE.keccak_256(t_(e))}const IE=new Zw("rlp/5.8.0");function SE(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function OE(e,t,r){let n=0;for(let i=0;i<r;i++)n=256*n+e[t+i];return n}function ME(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(ME(e))}),t.length<=55)return t.unshift(192+t.length),t;const r=SE(t.length);return r.unshift(247+r.length),r.concat(t)}Qw(e)||IE.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(t_(e));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=SE(t.length);return r.unshift(183+r.length),r.concat(t)}function TE(e){return s_(ME(e))}function NE(e,t,r,n){const i=[];for(;r<t+1+n;){const o=RE(e,r);i.push(o.result),(r+=o.consumed)>t+1+n&&IE.throwError("child data too short",Zw.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function RE(e,t){if(0===e.length&&IE.throwError("data too short",Zw.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&IE.throwError("data short segment too short",Zw.errors.BUFFER_OVERRUN,{});const n=OE(e,t+1,r);return t+1+r+n>e.length&&IE.throwError("data long segment too short",Zw.errors.BUFFER_OVERRUN,{}),NE(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&IE.throwError("data array too short",Zw.errors.BUFFER_OVERRUN,{}),NE(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&IE.throwError("data array too short",Zw.errors.BUFFER_OVERRUN,{});const n=OE(e,t+1,r);t+1+r+n>e.length&&IE.throwError("data array too short",Zw.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:s_(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&IE.throwError("data too short",Zw.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:s_(e.slice(t+1,t+1+r))}}return{consumed:1,result:s_(e[t])}}function jE(e){const t=t_(e),r=RE(t,0);return r.consumed!==t.length&&IE.throwArgumentError("invalid rlp data","data",e),r.result}const BE=new Zw("address/5.8.0");function $E(e){i_(e,20)||BE.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=t_(PE(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&n[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const LE={};for(let gS=0;gS<10;gS++)LE[String(gS)]=String(gS);for(let gS=0;gS<26;gS++)LE[String.fromCharCode(65+gS)]=String(10+gS);const FE=Math.floor((DE=9007199254740991,Math.log10?Math.log10(DE):Math.log(DE)/Math.LN10));var DE;function UE(e){let t=null;if("string"!=typeof e&&BE.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=$E(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&BE.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>LE[e]).join("");for(;t.length>=FE;){let e=t.substring(0,FE);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&BE.throwArgumentError("bad icap checksum","address",e),r=e.substring(4),t=new p_(r,36).toString(16);t.length<40;)t="0"+t;t=$E("0x"+t)}else BE.throwArgumentError("invalid address","address",e);var r;return t}function HE(e){let t=null;try{t=UE(e.from)}catch(r){BE.throwArgumentError("missing from address","transaction",e)}return UE(l_(PE(TE([t,n_(t_(v_.from(e.nonce).toHexString()))])),12))}class zE extends vE{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=UE(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}decode(e){return UE(h_(e.readValue().toHexString(),20))}}class qE extends vE{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}
26defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const GE=new Zw(Z_);function WE(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{const n=t.localName;return n||GE.throwError("cannot encode object for signature with missing names",Zw.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&GE.throwError("cannot encode object for signature with duplicate names",Zw.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]})}else GE.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&GE.throwArgumentError("types/value length mismatch","tuple",r);let i=new wE(e.wordSize),o=new wE(e.wordSize),s=[];t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();s.push(e=>{n(e+t)})}else e.encode(i,r)}),s.forEach(e=>{e(i.length)});let a=e.appendWriter(i);return a+=e.appendWriter(o),a}function VE(e,t){let r=[],n=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let r=e.readValue(),s=n.subReader(r.toNumber());try{i=t.decode(s)}catch(o){if(o.code===Zw.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(o){if(o.code===Zw.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)});const i=t.reduce((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o});for(let o=0;o<r.length;o++){const e=r[o];e instanceof Error&&Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw e}})}return Object.freeze(r)}class ZE extends vE{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;r<this.length;r++)t.push(e);return t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),GE.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<t.length;i++)n.push(this.coder);return WE(e,n,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber(),32*t>e._data.length&&GE.throwError("insufficient data length",Zw.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n<t;n++)r.push(new qE(this.coder));return e.coerce(this.name,VE(e,r))}}class KE extends vE{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class JE extends vE{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=t_(t);let r=e.writeValue(t.length);return r+=e.writeBytes(t),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class YE extends JE{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,s_(super.decode(e)))}}class QE extends vE{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=t_(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,s_(e.readBytes(this.size)))}}class XE extends vE{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const eA=v_.from(-1),tA=v_.from(0),rA=v_.from(1),nA=v_.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class iA extends vE{constructor(e,t,r){const n=(t?"int":"uint")+8*e;super(n,n,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=v_.from(t),n=nA.mask(8*e.wordSize);if(this.signed){let e=n.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(rA).mul(eA)))&&this._throwError("value out-of-bounds",t)}else(r.lt(tA)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}const oA=new Zw("strings/5.8.0");var sA,aA,lA,cA;function uA(e,t,r,n,i){if(e===lA.BAD_PREFIX||e===lA.UNEXPECTED_CONTINUE){let e=0;
vendor: 5,391 bytes, line 26
26for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===lA.OVERRUN?r.length-t-1:0}(aA=sA||(sA={})).current="",aA.NFC="NFC",aA.NFD="NFD",aA.NFKC="NFKC",aA.NFKD="NFKD",(cA=lA||(lA={})).UNEXPECTED_CONTINUE="unexpected continuation byte",cA.BAD_PREFIX="bad codepoint prefix",cA.OVERRUN="string overrun",cA.MISSING_CONTINUE="missing continuation byte",cA.OUT_OF_RANGE="out of UTF-8 range",cA.UTF16_SURROGATE="UTF-16 surrogate",cA.OVERLONG="overlong representation";const hA=Object.freeze({error:function(e,t,r,n,i){return oA.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:uA,replace:function(e,t,r,n,i){return e===lA.OVERLONG?(n.push(i),0):(n.push(65533),uA(e,t,r))}});function dA(e,t){null==t&&(t=hA.error),e=t_(e);const r=[];let n=0;for(;n<e.length;){const i=e[n++];if(!(i>>7)){r.push(i);continue}let o=null,s=null;if(192==(224&i))o=1,s=127;else if(224==(240&i))o=2,s=2047;else{if(240!=(248&i)){n+=t(128==(192&i)?lA.UNEXPECTED_CONTINUE:lA.BAD_PREFIX,n-1,e,r);continue}o=3,s=65535}if(n-1+o>=e.length){n+=t(lA.OVERRUN,n-1,e,r);continue}let a=i&(1<<8-o-1)-1;for(let l=0;l<o;l++){let i=e[n];if(128!=(192&i)){n+=t(lA.MISSING_CONTINUE,n,e,r),a=null;break}a=a<<6|63&i,n++}null!==a&&(a>1114111?n+=t(lA.OUT_OF_RANGE,n-1-o,e,r,a):a>=55296&&a<=57343?n+=t(lA.UTF16_SURROGATE,n-1-o,e,r,a):a<=s?n+=t(lA.OVERLONG,n-1-o,e,r,a):r.push(a))}return r}function fA(e,t=sA.current){t!=sA.current&&(oA.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){const t=e.charCodeAt(n);if(t<128)r.push(t);else if(t<2048)r.push(t>>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return t_(r)}function pA(e,t){return dA(e,t).map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}class mA extends JE{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,fA(t))}decode(e){return pA(super.decode(e))}}class gA extends vE{constructor(e,t){let r=!1;const n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)});super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});const t=this.coders.reduce((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))}),Object.freeze(e)}encode(e,t){return WE(e,this.coders,t)}decode(e){return e.coerce(this.name,VE(e,this.coders))}}const bA=new Zw(Z_),yA=new RegExp(/^bytes([0-9]*)$/),vA=new RegExp(/^(u?int)([0-9]*)$/);const wA=new class{constructor(e){F_(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new zE(e.name);case"bool":return new KE(e.name);case"string":return new mA(e.name);case"bytes":return new YE(e.name);case"array":return new ZE(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new gA((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new XE(e.name)}let t=e.type.match(vA);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&bA.throwArgumentError("invalid "+t[1]+" bit length","param",e),new iA(r/8,"int"===t[1],e.name)}if(t=e.type.match(yA),t){let r=parseInt(t[1]);return(0===r||r>32)&&bA.throwArgumentError("invalid bytes length","param",e),new QE(r,e.name)}return bA.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new _E(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new wE(this._getWordSize())}getDefaultValue(e){const t=e.map(e=>this._getCoder(nE.from(e)));return new gA(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&bA.throwError("types/values length mismatch",Zw.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map(e=>this._getCoder(nE.from(e))),n=new gA(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const n=e.map(e=>this._getCoder(nE.from(e)));return new gA(n,"_").decode(this._getReader(t_(t),r))}};function _A(e){return PE(fA(e))}const EA="hash/5.8.0";function AA(e){e=atob(e);const t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return t_(t)}function xA(e){e=t_(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function kA(e,t){null==t&&(t=1);const r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function CA(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w<n;w++)o.push(i+=r());let s=r(),a=t;t+=s;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let w=0;w<31;w++)m=m<<1|u();let g=[],b=0,y=h;for(;;){let e=Math.floor(((m-b+1)*i-1)/y),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;g.push(t);let s=b+Math.floor(y*o[t]/i),a=b+Math.floor(y*o[t+1]/i)-1;for(;0==((s^a)&d);)m=m<<1&p|u(),s=s<<1&p,a=a<<1&p|1;for(;s&~a&f;)m=m&d|m<<1&p>>>1|u(),s=s<<1^d,a=(a^d)<<1|d|1;b=s,y=1+a-s}let v=n-4;return g.map(t=>
26{switch(t-v){case 3:return v+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return v+256+(e[a++]<<8|e[a++]);case 1:return v+e[a++];default:return t-1}})}(e))}function PA(e){return 1&e?~e>>1:e>>1}function IA(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function SA(e,t){let r=Array(e);for(let n=0,i=0;n<e;n++)r[n]=i+=PA(t());return r}function OA(e,t){let r=IA(e(),e),n=e(),i=IA(n,e),o=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let s=0;s<n;s++)for(let e=0;e<o[s];e++)r.push(i[s]+e);return t?r.map(e=>t[e]):r}function MA(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)SA(e,r).forEach((e,t)=>n[t].push(e));return n}function TA(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return kA(MA(i.length,1+e,t).map((e,t)=>{const o=e[0],s=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[o+t*r,s.map(e=>e+i)]})}))}function NA(e,t){return MA(1+t(),1+e,t).map(e=>[e[0],e.slice(1)])}const RA=CA(AA
vendor: 14,758 bytes, line 26
26("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),
26jA=new Set(OA(RA)),BA=new Set(OA(RA)),$A=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(TA(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(NA(r,e))}return function(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[n[0]]=n[1]}return t}(kA(t))}(RA),LA=function(e){let t=OA(e).sort((e,t)=>e-t);return function r(){let n=[];for(;;){let i=OA(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((e,t)=>t.set.size-e.set.size);let i=e(),o=i%3;i=i/3|0;let s=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:s,save:1==i,check:2==i}}()}(RA);function FA(e){return function(e,t=sA.current){return dA(fA(e,t))}(e)}function DA(e){return e.filter(e=>65039!=e)}function UA(e){for(let r of e.split(".")){let e=FA(r);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw new Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${r}": ${t.message}`)}}return e}function HA(e){return UA(function(e,t){let r=FA(e).reverse(),n=[];for(;r.length;){let e=zA(r);if(e){n.push(...t(e));continue}let i=r.pop();if(jA.has(i)){n.push(i);continue}if(BA.has(i))continue;let o=$A[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);n.push(...o)}return UA((i=String.fromCodePoint(...n),i.normalize("NFC")));var i}(e,DA))}function zA(e,t){var r;let n,i,o=LA,s=[],a=e.length;for(;a;){let t=e[--a];if(o=null===(r=o.branches.find(e=>e.set.has(t)))||void 0===r?void 0:r.node,!o)break;if(o.save)i=t;else if(o.check&&t===i)break;s.push(t),o.fe0f&&(s.push(65039),a>0&&65039==e[a-1]&&a--),o.valid&&(n=s.slice(),2==o.valid&&n.splice(1,1),e.length=a)}return n}const qA=new Zw(EA),GA=new Uint8Array(32);function WA(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function VA(e){const t=fA(HA(e)),r=[];if(0===e.length)return r;let n=0;for(let i=0;i<t.length;i++){46===t[i]&&(r.push(WA(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(WA(t.slice(n))),r}function ZA(e){"string"!=typeof e&&qA.throwArgumentError("invalid ENS name; not a string","name",e);let t=GA;const r=VA(e);for(;r.length;)t=PE(r_([t,PE(r.pop())]));return s_(t)}GA.fill(0);var KA=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const JA=new Zw(EA),YA=new Uint8Array(32);YA.fill(0);const QA=v_.from(-1),XA=v_.from(0),ex=v_.from(1),tx=v_.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const rx=h_(ex.toHexString(),32),nx=h_(XA.toHexString(),32),ix={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ox=["name","version","chainId","verifyingContract","salt"];function sx(e){return function(t){return"string"!=typeof t&&JA.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const ax={name:sx("name"),version:sx("version"),chainId:function(e){try{return v_.from(e).toString()}catch(t){}return JA.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return UE(e).toLowerCase()}catch(t){}return JA.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=t_(e);if(32!==t.length)throw new Error("bad length");return s_(t)}catch(t){}return JA.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function lx(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&JA.throwArgumentError("invalid numeric width","type",e);const i=tx.mask(r?n-1:n),o=r?i.add(ex).mul(QA):XA;return function(t){const r=v_.from(t);return(r.lt(o)||r.gt(i))&&JA.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),h_(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&JA.throwArgumentError("invalid bytes width","type",e),function(t){return t_(t).length!==r&&JA.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=t_(e),r=t.length%32;return r?c_([t,YA.slice(r)]):s_(t)}(t)}}}switch(e){case"address":return function(e){return h_(UE(e),32)};case"bool":return function(e){return e?rx:nx};case"bytes":return function(e){return PE(e)};case"string":return function(e){return _A(e)}}return null}function cx(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class ux{constructor(e){F_(this,"types",Object.freeze(W_(e))),F_(this,"_encoderCache",{}),F_(this,"_types",{});const t={},r={},n={};
26Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}});for(const o in e){const n={};e[o].forEach(i=>{n[i.name]&&JA.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(o)}`,"types",e),n[i.name]=!0;const s=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===o&&JA.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);lx(s)||(r[s]||JA.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(o),t[o][s]=!0)})}const i=Object.keys(r).filter(e=>0===r[e].length);0===i.length?JA.throwArgumentError("missing primary type","types",e):i.length>1&&JA.throwArgumentError(`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),F_(this,"primaryType",i[0]),function i(o,s){s[o]&&JA.throwArgumentError(`circular type reference to ${JSON.stringify(o)}
26`,"types",e),s[o]=!0,Object.keys(t[o]).forEach(e=>{r[e]&&(i(e,s),Object.keys(s).forEach(t=>{n[t][e]=!0}))}),delete s[o]}(this.primaryType,{});for(const o in n){const t=Object.keys(n[o]);t.sort(),this._types[o]=cx(o,e[o])+t.map(t=>cx(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=lx(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&JA.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(PE)),PE(c_(i))}}const r=this.types[e];if(r){const t=_A(this._types[e]);return e=>{const n=r.map(({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?PE(n):n});return n.unshift(t),c_(n)}}return JA.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||JA.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return PE(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(lx(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&JA.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}const i=this.types[e];return i?i.reduce((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e),{}):JA.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new ux(e)}static getPrimaryType(e){return ux.from(e).primaryType}static hashStruct(e,t,r){return ux.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=ix[r];n||JA.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>ox.indexOf(e.name)-ox.indexOf(t.name)),ux.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return c_(["0x1901",ux.hashDomain(e),ux.from(t).hash(r)])}static hash(e,t,r){return PE(ux.encode(e,t,r))}static resolveNames(e,t,r,n){return KA(this,void 0,void 0,function*(){e=H_(e);const i={};e.verifyingContract&&!i_(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=ux.from(t);o.visit(r,(e,t)=>("address"!==e||i_(t,20)||(i[t]="0x"),t));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,(e,t)=>"address"===e&&i[t]?i[t]:t),{domain:e,value:r}})}static getPayload(e,t,r){ux.hashDomain(e);const n={},i=[];ox.forEach(t=>{const r=e[t];null!=r&&(n[t]=ax[t](r),i.push({name:t,type:ix[t]}))});const o=ux.from(t),s=H_(t);return s.EIP712Domain?JA.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return s_(t_(t));if(e.match(/^u?int/))return v_.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&JA.throwArgumentError("invalid string","value",t),t}return JA.throwArgumentError("unsupported type","type",e)})}}}const hx=new Zw(Z_);class dx extends V_{}class fx extends V_{}class px extends V_{}class mx extends V_{static isIndexed(e){return!(!e||!e._isIndexed)}}const gx={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function bx(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class yx{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,F_(this,"fragments",t.map(e=>oE.from(e)).filter(e=>null!=e)),F_(this,"_abiCoder",D_(new.target,"getAbiCoder")()),F_(this,"functions",{}),F_(this,"errors",{}),F_(this,"events",{}),F_(this,"structs",{}
vendor: 4,777 bytes, line 26
26),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void hx.warn("duplicate definition - constructor"):void F_(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?hx.warn("duplicate definition - "+r):t[r]=e}),this.deploy||F_(this,"deploy",uE.from({payable:!1,type:"constructor"})),F_(this,"_isInterface",!0)}format(e){e||(e=tE.full),e===tE.sighash&&hx.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map(t=>t.format(e));return e===tE.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return wA}static getAddress(e){return UE(e)}static getSighash(e){return l_(_A(e.format()),0,4)}static getEventTopic(e){return _A(e.format())}getFunction(e){if(i_(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];hx.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?hx.throwArgumentError("no matching function","name",t):r.length>1&&hx.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[hE.fromString(e).format()];return t||hx.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(i_(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];hx.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?hx.throwArgumentError("no matching event","name",t):r.length>1&&hx.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[sE.fromString(e).format()];return t||hx.throwArgumentError("no matching event","signature",e),t}getError(e){if(i_(e)){const t=D_(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}hx.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?hx.throwArgumentError("no matching error","name",t):r.length>1&&hx.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[hE.fromString(e).format()];return t||hx.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(mS){throw t}}return D_(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),D_(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const r=t_(t);return s_(r.slice(0,4))!==this.getSighash(e)&&hx.throwArgumentError(`data signature does not match error ${e.name}.`,"data",s_(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),s_(r_([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const r=t_(t);return s_(r.slice(0,4))!==this.getSighash(e)&&hx.throwArgumentError(`data signature does not match function ${e.name}.`,"data",s_(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),s_(r_([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=t_(t),n=null,i="",o=null,s=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(l){}break;case 4:{const e=s_(r.slice(0,4)),t=gx[e];if(t)o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.signature,t.reason&&(n=o[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.format()}catch(l){}break}}return hx.throwError("call revert exception"+i,Zw.errors.CALL_EXCEPTION,{method:e.format(),data:s_(t),errorArgs:o,errorName:s,errorSignature:a,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),s_(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>
26e.inputs.length&&hx.throwError("too many arguments for "+e.format(),Zw.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?_A(t):"bytes"===e.type?PE(s_(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=v_.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),h_(s_(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?hx.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map(e=>n(o,e))):r.push(n(o,t)):null!=t&&hx.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&hx.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{const s=t[o];if(e.indexed)if("string"===e.type)r.push(_A(s));else if("bytes"===e.type)r.push(PE(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[s]))}else n.push(e),i.push(s)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);i_(r[0],32)&&r[0].toLowerCase()===t||hx.throwError("fragment/topic mismatch",Zw.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(nE.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))});let s=null!=r?this._abiCoder.decode(n,r_(r)):null,a=this._abiCoder.decode(i,t,!0),l=[],c=0,u=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==s)l[t]=new mx({_isIndexed:!0,hash:null});else if(o[t])l[t]=new mx({_isIndexed:!0,hash:s[u++]});else try{l[t]=s[u++]}catch(r){l[t]=r}else try{l[t]=a[c++]}catch(r){l[t]=r}if(e.name&&null==l[e.name]){const r=l[t];r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:()=>{throw bx(`property ${JSON.stringify(e.name)}`,r)}}):l[e.name]=r}});for(let h=0;h<l.length;h++){const e=l[h];e instanceof Error&&Object.defineProperty(l,h,{enumerable:!0,get:()=>{throw bx(`index ${h}`,e)}})}return Object.freeze(l)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new fx({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:v_.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new dx({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=s_(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new px({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var vx=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const wx=new Zw("abstract-provider/5.8.0");class _x extends V_{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class Ex{constructor(){wx.checkAbstract(new.target,Ex),F_(this,"_isProvider",!0)}getFeeData(){return vx(this,void 0,void 0,function*(){const{block:e,gasPrice:t}=yield U_({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)});let r=null,n=null,i=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,i=v_.from("1500000000"),n=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:t}})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}var Ax=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const xx=new Zw("abstract-signer/5.8.0"),kx=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","
26nonce","to","type","value"],Cx=[Zw.errors.INSUFFICIENT_FUNDS,Zw.errors.NONCE_EXPIRED,Zw.errors.REPLACEMENT_UNDERPRICED];class Px{constructor(){xx.checkAbstract(new.target,Px),F_(this,"_isSigner",!0)}getBalance(e){return Ax(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Ax(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Ax(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const t=yield U_(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return Ax(this,void 0,void 0,function*(){this._checkProvider("call");const r=yield U_(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return Ax(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return Ax(this,void 0,void 0,function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Ax(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Ax(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Ax(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const r in e)-1===kx.indexOf(r)&&xx.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=H_(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&xx.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return Ax(this,void 0,void 0,function*(){const t=yield U_(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>Ax(this,void 0,void 0,function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&xx.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||xx.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):xx.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&xx.throwError("network does not support EIP-1559",Zw.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):xx.throwError("failed to get consistent fee data",Zw.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(Cx.indexOf(e.code)>=0)throw e;return xx.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Zw.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&xx.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield U_(t)})}_checkProvider(e){this.provider||xx.throwError("missing provider",Zw.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class Ix extends Px{constructor(e,t){super(),F_(this,"address",e),F_(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{xx.throwError(e,Zw.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Ix(this.address,e)}}var Sx,Ox,Mx={},Tx={};function Nx(){if(Ox)return Sx;function e(e,t){if(!e)throw new Error(t||"Assertion failed")}return Ox=1,Sx=e,e.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)},Sx}
vendor: 5,378 bytes, line 26
26var Rx,jx,Bx={exports:{}};function $x(){if(jx)return Tx;jx=1;var e=Nx(),t=(Rx||(Rx=1,"function"==typeof Object.create?Bx.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Bx.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Bx.exports);function r(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function n(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}return Tx.inherits=t,Tx.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var i=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?n[i++]=s:s<2048?(n[i++]=s>>6|192,n[i++]=63&s|128):r(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[i++]=s>>18|240,n[i++]=s>>12&63|128,n[i++]=s>>6&63|128,n[i++]=63&s|128):(n[i++]=s>>12|224,n[i++]=s>>6&63|128,n[i++]=63&s|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},Tx.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},Tx.htonl=n,Tx.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var s=e[i];"little"===t&&(s=n(s)),r+=o(s.toString(16))}return r},Tx.zero2=i,Tx.zero8=o,Tx.join32=function(t,r,n,i){var o=n-r;e(o%4==0);for(var s=new Array(o/4),a=0,l=r;a<s.length;a++,l+=4){var c;c="big"===i?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],s[a]=c>>>0}return s},Tx.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},Tx.rotr32=function(e,t){return e>>>t|e<<32-t},Tx.rotl32=function(e,t){return e<<t|e>>>32-t},Tx.sum32=function(e,t){return e+t>>>0},Tx.sum32_3=function(e,t,r){return e+t+r>>>0},Tx.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},Tx.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},Tx.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+r+i;e[t]=s>>>0,e[t+1]=o},Tx.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},Tx.sum64_lo=function(e,t,r,n){return t+n>>>0},Tx.sum64_4_hi=function(e,t,r,n,i,o,s,a){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+r+i+s+(l+=(c=c+a>>>0)<a?1:0)>>>0},Tx.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},Tx.sum64_5_hi=function(e,t,r,n,i,o,s,a,l,c){var u=0,h=t;return u+=(h=h+n>>>0)<t?1:0,u+=(h=h+o>>>0)<o?1:0,u+=(h=h+a>>>0)<a?1:0,e+r+i+s+l+(u+=(h=h+c>>>0)<c?1:0)>>>0},Tx.sum64_5_lo=function(e,t,r,n,i,o,s,a,l,c){return t+n+o+a+c>>>0},Tx.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},Tx.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},Tx.shr64_hi=function(e,t,r){return e>>>r},Tx.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},Tx}var Lx,Fx={};function Dx(){if(Lx)return Fx;Lx=1;var e=$x(),t=Nx();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Fx.BlockHash=r,r.prototype.update=function(t,r){if(t=e.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=e.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),t(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n},Fx}var Ux,Hx,zx,qx,Gx,Wx,Vx,Zx,Kx,Jx,Yx,Qx,Xx={},ek={};function tk(){if(Ux)return ek;Ux=1;var e=$x().rotr32;function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(e,t,r){return e^t^r}return ek.ft_1=function(e,i,o,s){return 0===e?t(i,o,s):1===e||3===e?n(i,o,s):2===e?r(i,o,s):void 0},ek.ch32=t,ek.maj32=r,ek.p32=n,ek.s0_256=function(t){return e(t,2)^e(t,13)^e(t,22)},ek.s1_256=function(t){return e(t,6)^e(t,11)^e(t,25)},ek.g0_256=function(t){return e(t,7)^e(t,18)^t>>>3},ek.g1_256=function(t){return e(t,17)^e(t,19)^t>>>10},ek}function rk(){if(Gx)return qx;Gx=1;var e=$x(),t=Dx(),r=tk(),n=Nx(),i=e.sum32,o=e.sum32_4,s=e.sum32_5,a=r.ch32,l=r.maj32,c=r.s0_256,u=r.s1_256,h=r.g0_256,d=r.g1_256,f=t.BlockH
26ash,p=[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];function m(){if(!(this instanceof m))return new m;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=p,this.W=new Array(64)}return e.inherits(m,f),qx=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,f=0;f<16;f++)r[f]=e[t+f];for(;f<r.length;f++)r[f]=o(d(r[f-2]),r[f-7],h(r[f-15]),r[f-16]);var p=this.h[0],m=this.h[1],g=this.h[2],b=this.h[3],y=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(n(this.k.length===r.length),f=0;f<r.length;f++){var E=s(_,u(y),a(y,v,w),this.k[f],r[f]),A=i(c(p),l(p,m,g));_=w,w=v,v=y,y=i(b,E),b=g,g=m,m=p,p=i(E,A)}this.h[0]=i(this.h[0],p),this.h[1]=i(this.h[1],m),this.h[2]=i(this.h[2],g),this.h[3]=i(this.h[3],b),this.h[4]=i(this.h[4],y),this.h[5]=i(this.h[5],v),this.h[6]=i(this.h[6],w),this.h[7]=i(this.h[7],_)},m.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},qx}function nk(){if(Kx)return Zx;Kx=1;var e=$x(),t=Dx(),r=Nx(),n=e.rotr64_hi,i=e.rotr64_lo,o=e.shr64_hi,s=e.shr64_lo,a=e.sum64,l=e.sum64_hi,c=e.sum64_lo,u=e.sum64_4_hi,h=e.sum64_4_lo,d=e.sum64_5_hi,f=e.sum64_5_lo,p=t.BlockHash,m=[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,
261126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;p.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function b(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function y(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function v(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function _(e,t){var r=n(e,t,28)^n(t,e,2)^n(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=i(e,t,28)^i(t,e,2)^i(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=n(e,t,14)^n(e,t,18)^n(t,e,9);return r<0&&(r+=4294967296),r}function x(e,t){var r=i(e,t,14)^i(e,t,18)^i(t,e,9);return r<0&&(r+=4294967296),r}function k(e,t){var r=n(e,t,1)^n(e,t,8)^o(e,t,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=i(e,t,1)^i(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=n(e,t,19)^n(t,e,29)^o(e,t,6);return r<0&&(r+=4294967296),r}function I(e,t){var r=i(e,t,19)^i(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}return e.inherits(g,p),Zx=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],l=k(r[n-30],r[n-29]),c=C(r[n-30],r[n-29]),d=r[n-32],f=r[n-31];r[n]=u(i,o,s,a,l,c,d,f),r[n+1]=h(i,o,s,a,l,c,d,f)}},g.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,i=this.h[0],o=this.h[1],s=this.h[2],u=this.h[3],h=this.h[4],p=this.h[5],m=this.h[6],g=this.h[7],k=this.h[8],C=this.h[9],P=this.h[10],I=this.h[11],S=this.h[12],O=this.h[13],M=this.h[14],T=this.h[15];r(this.k.length===n.length);for(var N=0;N<n.length;N+=2){var R=M,j=T,B=A(k,C),$=x(k,C),L=b(k,C,P,I,S),F=y(k,C,P,I,S,O),D=this.k[N],U=this.k[N+1],H=n[N],z=n[N+1],q=d(R,j,B,$,L,F,D,U,H,z),G=f(R,j,B,$,L,F,D,U,H,z);R=_(i,o),j=E(i,o),B=v(i,o,s,u,h),$=w(i,o,s,u,h,p);var W=l(R,j,B,$),V=c(R,j,B,$);M=S,T=O,S=P,O=I,P=k,I=C,k=l(m,g,q,G),C=c(g,g,q,G),m=h,g=p,h=s,p=u,s=i,u=o,i=l(q,G,W,V),o=c(q,G,W,V)}a(this.h,0,i,o),a(this.h,2,s,u),a(this.h,4,h,p),a(this.h,6,m,g),a(this.h,8,k,C),a(this.h,10,P,I),a(this.h,12,S,O),a(this.h,14,M,T)},g.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Zx}function ik(){return Qx||(Qx=1,Xx.sha1=function(){if(zx)return Hx;zx=1;var e=$x(),t=Dx(),r=tk(),n=e.rotl32,i=e.sum32,o=e.sum32_5,s=r.ft_1,a=t.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(c,a),Hx=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.W,a=0;a<16;a++)r[a]=e[t+a];for(;a<r.length;a++)r[a]=n(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var c=this.h[0],u=this.h[1],h=this.h[2],d=this.h[3],f=this.h[4];for(a=0;a<r.length;a++){var p=~~(a/20),m=o(n(c,5),s(p,u,h,d),f,r[a],l[p]);f=d,d=h,h=n(u,30),u=c,c=m}this.h[0]=i(this.h[0],c),this.h[1]=i(this.h[1],u),this.h[2]=i(this.h[2],h),this.h[3]=i(this.h[3],d),this.h[4]=i(this.h[4],f)},c.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Hx}(),Xx.sha224=function(){if(Vx)return Wx;Vx=1;var e=$x(),t=rk();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(r,t),Wx=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},Wx}(),Xx.sha256=rk(),Xx.sha384=function(){if(Yx)return Jx;Yx=1;var e=$x(),t=nk();function r(){if(!(this instanceof r))return new r;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(r,t),Jx=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},Jx}(),Xx.sha512=nk()),Xx}var ok,sk,ak,lk,ck={};var uk,hk=(lk||(lk=1,(uk=Mx).utils=$x(),uk.common=Dx(),uk.sha=ik(),uk.ripemd=function(){if(ok)return ck;ok=1;var e=$x(),t=Dx(),r=e.rotl32,n=e.sum32,i=e.sum32_3,o=e.sum32_4,s=t.BlockH
26ash;function a(){if(!(this instanceof a))return new a;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function c(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function u(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}e.inherits(a,s),ck.ripemd160=a,a.blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(e,t){for(var s=this.h[0],a=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=s,v=a,w=m,_=g,E=b,A=0;A<80;A++){var x=n(r(o(s,l(A,a,m,g),e[h[A]+t],c(A)),f[A]),b);s=b,b=g,g=r(m,10),m=a,a=x,x=n(r(o(y,l(79-A,v,w,_),e[d[A]+t],u(A)),p[A]),E),y=E,E=_,_=r(w,10),w=v,v=x}x=i(this.h[1],m,_),this.h[1]=i(this.h[2],g,E),this.h[2]=i(this.h[3],b,y),this.h[3]=i(this.h[4],s,v),this.h[4]=i(this.h[0],a,w),this.h[0]=x},a.prototype._digest=function(t){return"hex"===t?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return ck}(),uk.hmac=function(){if(ak)return sk;ak=1;var e=$x(),t=Nx();function r(t,n,i){if(!(this instanceof r))return new r(t,n,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(n,i))}return sk=r,r.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),t(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=(new this.Hash).update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=(new this.Hash).update(e)},r.prototype.update=function(e,t){return this.inner.update(e,t),this},r.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},sk}(),uk.sha1=uk.sha.sha1,uk.sha256=uk.sha.sha256,uk.sha224=uk.sha.sha224,uk.sha384=uk.sha.sha384,uk.sha512=uk.sha.sha512,uk.ripemd160=uk.ripemd.ripemd160),Mx);const dk=t(hk);function fk(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var pk=mk;function mk(e,t){if(!e)throw new Error(t||"Assertion failed")}mk.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var gk=fk(function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}}),bk=fk(function(e,t){var r=t;r.assert=pk,r.toArray=gk.toArray,r.zero2=gk.zero2,r.toHex=gk.toHex,r.encode=gk.encode,r.getNAF=function(e,t,r){var n,i=new Array(Math.max(e.bitLength(),r)+1);for(n=0;n<i.length;n+=1)i[n]=0;var o=1<<t+1,s=e.clone();for(n=0;n<i.length;n++){var a,l=s.andln(o-1);s.isOdd()?(a=l>(o>>1)-1?(o>>1)-l:l,s.isubn(a)):a=0,i[n]=a,s.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),s=1&l?3!==(n=e.andln(7)+i&7)&&5!==n||2!==c?l:-l:0,r[0].push(s),a=1&c?3!==(n=t.andln(7)+o&7)&&5!==n||2!==l?c:-c:0,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new $w(e,"hex","le")}}),yk=bk.getNAF,vk=bk.getJSF,wk=bk.assert;function _k(e,t){this.type=e,this.p=new $w(t.p,16),this.red=t.prime?$w.red(t.prime):$w.mont(this.p),this.zero=new $w(0).toRed(this.red),this.one=new $w(1).toRed(this.red),this.two=new $w(2).toRed(this.red),this.n=t.n&&new $w(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Ek=_k;
vendor: 6,460 bytes, line 26
26function Ak(e,t){this.curve=e,this.type=t,this.precomputed=null}_k.prototype.point=function(){throw new Error("Not implemented")},_k.prototype.validate=function(){throw new Error("Not implemented")},_k.prototype._fixedNafMul=function(e,t){wk(e.precomputed);var r=e._getDoubles(),n=yk(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,s,a=[];for(o=0;o<n.length;o+=r.step){s=0;for(var l=o+r.step-1;l>=o;l--)s=(s<<1)+n[l];a.push(s)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<a.length;o++)(s=a[o])===h?u=u.mixedAdd(r.points[o]):s===-h&&(u=u.mixedAdd(r.points[o].neg()));c=c.add(u)}return c.toP()},_k.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=yk(t,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var l=0;a>=0&&0===o[a];a--)l++;if(a>=0&&l++,s=s.dblp(l),a<0)break;var c=o[a];wk(0!==c),s="affine"===e.type?c>0?s.mixedAdd(i[c-1>>1]):s.mixedAdd(i[-c-1>>1].neg()):c>0?s.add(i[c-1>>1]):s.add(i[-c-1>>1].neg())}return"affine"===e.type?s.toP():s},_k.prototype._wnafMulAdd=function(e,t,r,n,i){var o,s,a,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,h=0;for(o=0;o<n;o++){var d=(a=t[o])._getNAFPoints(e);l[o]=d.wnd,c[o]=d.points}for(o=n-1;o>=1;o-=2){var f=o-1,p=o;if(1===l[f]&&1===l[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=vk(r[f],r[p]);for(h=Math.max(b[0].length,h),u[f]=new Array(h),u[p]=new Array(h),s=0;s<h;s++){var y=0|b[0][s],v=0|b[1][s];u[f][s]=g[3*(y+1)+(v+1)],u[p][s]=0,c[f]=m}}else u[f]=yk(r[f],l[f],this._bitLength),u[p]=yk(r[p],l[p],this._bitLength),h=Math.max(u[f].length,h),h=Math.max(u[p].length,h)}var w=this.jpoint(null,null,null),_=this._wnafT4;for(o=h;o>=0;o--){for(var E=0;o>=0;){var A=!0;for(s=0;s<n;s++)_[s]=0|u[s][o],0!==_[s]&&(A=!1);if(!A)break;E++,o--}if(o>=0&&E++,w=w.dblp(E),o<0)break;for(s=0;s<n;s++){var x=_[s];0!==x&&(x>0?a=c[s][x-1>>1]:x<0&&(a=c[s][-x-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(o=0;o<n;o++)c[o]=null;return i?w:w.toP()},_k.BasePoint=Ak,Ak.prototype.eq=function(){throw new Error("Not implemented")},Ak.prototype.validate=function(){return this.curve.validate(this)},_k.prototype.decodePoint=function(e,t){e=bk.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?wk(e[e.length-1]%2==0):7===e[0]&&wk(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},Ak.prototype.encodeCompressed=function(e){return this.encode(e,!0)},Ak.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},Ak.prototype.encode=function(e,t){return bk.encode(this._encode(t),e)},Ak.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},Ak.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},Ak.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},Ak.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},Ak.prototype._getBeta=function(){return null},Ak.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var xk=fk(function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),kk=bk.assert;function Ck(e){Ek.call(this,"short",e),this.a=new $w(e.a,16).toRed(this.red),this.b=new $w(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}xk(Ck,Ek);var Pk=Ck;function Ik(e,t,r,n){Ek.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new $w(t,16),this.y=new $w(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Sk(e,t,r,n){Ek.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new $w(0)):(this.x=new $w(t,16),this.y=new $w(r,16),this.z=new $w(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Ck.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new $w(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new $w(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],kk(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new $w(e.a,16),b:new $w(e.b,16)}}):this._getEndoBasis(r)}}},Ck.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:$w.mont(e),r=new $w(2).toRed(t).redInvm(),n=r.redNeg(),i=new $w(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},Ck.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,a,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),f=new $w(1),p=new $w(0),m=new $w(0),g=new $w(1),b=0;
vendor: 4,560 bytes, line 26
260!==h.cmpn(0);){var y=d.div(h);l=d.sub(y.mul(h)),c=m.sub(y.mul(f));var v=g.sub(y.mul(p));if(!n&&l.cmp(u)<0)t=a.neg(),r=f,n=l.neg(),i=c;else if(n&&2===++b)break;a=l,d=h,h=l,m=f,f=c,g=p,p=v}o=l.neg(),s=c;var w=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},Ck.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:l.add(c).neg()}},Ck.prototype.pointFromX=function(e,t){(e=new $w(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},Ck.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Ck.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*o]=a,n[2*o+1]=l,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},xk(Ik,Ek.BasePoint),Ck.prototype.point=function(e,t,r){return new Ik(this,e,t,r)},Ck.prototype.pointFromJSON=function(e,t){return Ik.fromJSON(this,e,t)},Ik.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},Ik.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Ik.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},Ik.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Ik.prototype.isInfinity=function(){return this.inf},Ik.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Ik.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},Ik.prototype.getX=function(){return this.x.fromRed()},Ik.prototype.getY=function(){return this.y.fromRed()},Ik.prototype.mul=function(e){return e=new $w(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Ik.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Ik.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Ik.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Ik.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());
vendor: 4,429 bytes, line 26
26if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Ik.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},xk(Sk,Ek.BasePoint),Ck.prototype.jpoint=function(e,t,r){return new Sk(this,e,t,r)},Sk.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},Sk.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Sk.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),l=o.redSub(s);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),h=n.redMul(c),d=l.redSqr().redIAdd(u).redISub(h).redISub(h),f=l.redMul(h.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},Sk.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=r.redMul(l),h=a.redSqr().redIAdd(c).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},Sk.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),c=s.redAdd(s);for(t=0;t<e;t++){var u=o.redSqr(),h=c.redSqr(),d=h.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(h),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=f.redMul(g);b=b.redIAdd(b).redISub(d);var y=c.redMul(a);t+1<e&&(l=l.redMul(d)),o=m,a=y,c=b}return this.curve.jpoint(o,c.redMul(i),a)},Sk.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Sk.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),f=this.x.redAdd(h).redSqr().redISub(u).redISub(d);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},Sk.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var g=h.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},Sk.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=a.redSqr().redISub(c.redAdd(c)),h=c.redISub(u),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=a.redMul(h).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,f,p)},Sk.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 11,234 bytes, line 26
26var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var h=this.x.redMul(a).redISub(u);h=(h=h.redIAdd(h)).redIAdd(h);var d=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,d,f)},Sk.prototype.mul=function(e,t){return e=new $w(e,t),this.curve._wnafMul(this,e)},Sk.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},Sk.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Sk.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Sk.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Ok=fk(function(e,t){var r=t;r.base=Ek,r.short=Pk,r.mont=null,r.edwards=null}),Mk=fk(function(e,t){var r,n=t,i=bk.assert;function o(e){"short"===e.type?this.curve=new Ok.short(e):"edwards"===e.type?this.curve=new Ok.edwards(e):this.curve=new Ok.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:dk.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:dk.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:dk.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:dk.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:dk.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:dk.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:dk.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(a){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:dk.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function Tk(e){if(!(this instanceof Tk))return new Tk(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=gk.toArray(e.entropy,e.entropyEnc||"hex"),r=gk.toArray(e.nonce,e.nonceEnc||"hex"),n=gk.toArray(e.pers,e.persEnc||"hex");pk(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var Nk=Tk;Tk.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Tk.prototype._hmac=function(){return new dk.hmac(this.hash,this.K)},Tk.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},Tk.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=gk.toArray(e,t),r=gk.toArray(r,n),pk(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},Tk.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=gk.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,gk.encode(o,t)};var Rk=bk.assert;function jk(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var Bk=jk;jk.fromPublic=function(e,t,r){return t instanceof jk?t:new jk(e,{pub:t,pubEnc:r})},jk.fromPrivate=function(e,t,r){return t instanceof jk?t:new jk(e,{priv:t,privEnc:r})},jk.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},jk.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},jk.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},jk.prototype._importPrivate=function(e,t){this.priv=new $w(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},jk.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?Rk(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Rk(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},jk.prototype.derive=function(e){return e.validate()||Rk(e.validate(),"public point not validated"),e.mul(this.priv).getX()},jk.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},jk.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},jk.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var $k=bk.assert;function Lk(e,t){if(e instanceof Lk)return e;this._importDER(e,t)||($k(e.r&&e.s,"Signature without r or s"),this.r=new $w(e.r,16),this.s=new $w(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var Fk=Lk;function Dk(){this.place=0}function Uk(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===e[t.place])return!1;for(var i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function Hk(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function zk(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}Lk.prototype._importDER=function(e,t){e=bk.toArray(e,t);var r=new Dk;if(48!==e[r.place++])return!1;var n=Uk(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=Uk(e,r);if(!1===i)return!1;if(128&e[r.place])return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var s=Uk(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;if(128&e[r.place])return!1;var a=e.slice(r.place,s+r.place);
26if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new $w(o),this.s=new $w(a),this.recoveryParam=null,!0},Lk.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=Hk(t),r=Hk(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];zk(n,t.length),(n=n.concat(t)).push(2),zk(n,r.length);var i=n.concat(r),o=[48];return zk(o,i.length),o=o.concat(i),bk.encode(o,e)};var qk=function(){throw new Error("unsupported")},Gk=bk.assert;function Wk(e){if(!(this instanceof Wk))return new Wk(e);"string"==typeof e&&(Gk(Object.prototype.hasOwnProperty.call(Mk,e),"Unknown curve "+e),e=Mk[e]),e instanceof Mk.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Vk=Wk;Wk.prototype.keyPair=function(e){return new Bk(this,e)},Wk.prototype.keyFromPrivate=function(e,t){return Bk.fromPrivate(this,e,t)},Wk.prototype.keyFromPublic=function(e,t){return Bk.fromPublic(this,e,t)},Wk.prototype.genKeyPair=function(e){e||(e={});for(var t=new Nk({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||qk(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new $w(2));;){var i=new $w(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Wk.prototype._truncateToN=function(e,t,r){var n;if($w.isBN(e)||"number"==typeof e)n=(e=new $w(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new $w(e,16);else{var i=e.toString();n=i.length+1>>>1,e=new $w(i,16)}"number"!=typeof r&&(r=8*n);var o=r-this.n.bitLength();return o>0&&(e=e.ushrn(o)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},Wk.prototype.sign=function(e,t,r,n){if("object"==typeof r&&(n=r,r=null),n||(n={}),"string"!=typeof e&&"number"!=typeof e&&!$w.isBN(e)){Gk("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),Gk(e.length>>>0===e.length);for(var i=0;i<e.length;i++)Gk((255&e[i])===e[i])}t=this.keyFromPrivate(t,r),e=this._truncateToN(e,!1,n.msgBitLength),Gk(!e.isNeg(),"Can not sign a negative message");var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),a=e.toArray("be",o);Gk(new $w(a).eq(e),"Can not sign message");for(var l=new Nk({hash:this.hash,entropy:s,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new $w(1)),u=0;;u++){var h=n.k?n.k(u):new $w(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(c)>=0)){var d=this.g.mul(h);if(!d.isInfinity()){var f=d.getX(),p=f.umod(this.n);if(0!==p.cmpn(0)){var m=h.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==f.cmp(p)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new Fk({r:p,s:m,recoveryParam:g})}}}}}},Wk.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(t=new Fk(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,l=s.invm(this.n),c=l.mul(e).umod(this.n),u=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,r.getPublic(),u)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(c,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},Wk.prototype.recoverPubKey=function(e,t,r,n){Gk((3&r)===r,"The recovery param is more than two bits"),t=new Fk(t,n);var i=this.n,o=new $w(e),s=t.r,a=t.s,l=1&r,c=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var u=t.r.invm(i),h=i.sub(o).mul(u).umod(i),d=a.mul(u).umod(i);return this.g.mulAdd(h,s,d)},Wk.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new Fk(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(s){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Zk=fk(function(e,t){var r=t;r.version="6.6.1",r.utils=bk,r.rand=function(){throw new Error("unsupported")},r.curve=Ok,r.curves=Mk,r.ec=Vk,r.eddsa=null}).ec;const Kk=new Zw("signing-key/5.8.0");let Jk=null;function Yk(){return Jk||(Jk=new Zk("secp256k1")),Jk}class Qk{constructor(e){F_(this,"curve","secp256k1"),F_(this,"privateKey",s_(e)),32!==a_(this.privateKey)&&Kk.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=Yk().keyFromPrivate(t_(this.privateKey));F_(this,"publicKey","0x"+t.getPublic(!1,"hex")),F_(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),F_(this,"_isSigningKey",!0)}_addPoint(e){const t=Yk().keyFromPublic(t_(this.publicKey)),r=Yk().keyFromPublic(t_(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}
26signDigest(e){const t=Yk().keyFromPrivate(t_(this.privateKey)),r=t_(e);32!==r.length&&Kk.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return d_({recoveryParam:n.recoveryParam,r:h_("0x"+n.r.toString(16),32),s:h_("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=Yk().keyFromPrivate(t_(this.privateKey)),r=Yk().keyFromPublic(t_(Xk(e)));return h_("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function Xk(e,t){const r=t_(e);if(32===r.length){return new Qk(r).publicKey}return 33===r.length?"0x"+Yk().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?s_(r):Kk.throwArgumentError("invalid public or private key","key","[REDACTED]")}const eC=new Zw("transactions/5.8.0");var tC,rC;function nC(e){return"0x"===e?null:UE(e)}function iC(e){return"0x"===e?tA:v_.from(e)}function oC(e,t){return r=function(e,t){const r=d_(t),n={r:t_(r.r),s:t_(r.s)};return"0x"+Yk().recoverPubKey(t_(e),n,r.recoveryParam).encode("hex",!1)}(t_(e),t),UE(l_(PE(l_(Xk(r),1)),12));var r}function sC(e,t){const r=n_(v_.from(e).toHexString());return r.length>32&&eC.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function aC(e,t){return{address:UE(e),storageKeys:(t||[]).map((t,r)=>(32!==a_(t)&&eC.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function lC(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&eC.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),aC(e[0],e[1])):aC(e.address,e.storageKeys));const t=Object.keys(e).map(t=>{const r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return aC(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function cC(e){return lC(e).map(e=>[e.address,e.storageKeys])}function uC(e,t){if(null!=e.gasPrice){const t=v_.from(e.gasPrice),r=v_.from(e.maxFeePerGas||0);t.eq(r)||eC.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[sC(e.chainId||0,"chainId"),sC(e.nonce||0,"nonce"),sC(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sC(e.maxFeePerGas||0,"maxFeePerGas"),sC(e.gasLimit||0,"gasLimit"),null!=e.to?UE(e.to):"0x",sC(e.value||0,"value"),e.data||"0x",cC(e.accessList||[])];if(t){const e=d_(t);r.push(sC(e.recoveryParam,"recoveryParam")),r.push(n_(e.r)),r.push(n_(e.s))}return c_(["0x02",TE(r)])}function hC(e,t){const r=[sC(e.chainId||0,"chainId"),sC(e.nonce||0,"nonce"),sC(e.gasPrice||0,"gasPrice"),sC(e.gasLimit||0,"gasLimit"),null!=e.to?UE(e.to):"0x",sC(e.value||0,"value"),e.data||"0x",cC(e.accessList||[])];if(t){const e=d_(t);r.push(sC(e.recoveryParam,"recoveryParam")),r.push(n_(e.r)),r.push(n_(e.s))}return c_(["0x01",TE(r)])}function dC(e,t,r){try{const r=iC(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(n){eC.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=h_(t[1],32),e.s=h_(t[2],32);try{const t=PE(r(e));e.from=oC(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(n){}}function fC(e){const t=t_(e);if(t[0]>127)return function(e){const t=jE(e);9!==t.length&&6!==t.length&&eC.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:iC(t[0]).toNumber(),gasPrice:iC(t[1]),gasLimit:iC(t[2]),to:nC(t[3]),value:iC(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=v_.from(t[6]).toNumber()}catch(n){return r}if(r.r=h_(t[7],32),r.s=h_(t[8],32),v_.from(r.r).isZero()&&v_.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27;const o=t.slice(0,6);0!==r.chainId&&(o.push(s_(r.chainId)),o.push("0x"),o.push("0x"),i-=2*r.chainId+8);const s=PE(TE(o));try{r.from=oC(s,{r:s_(r.r),s:s_(r.s),recoveryParam:i})}catch(n){}r.hash=PE(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=jE(e.slice(1));8!==t.length&&11!==t.length&&eC.throwArgumentError("invalid component count for transaction type: 1","payload",s_(e));const r={type:1,chainId:iC(t[0]).toNumber(),nonce:iC(t[1]).toNumber(),gasPrice:iC(t[2]),gasLimit:iC(t[3]),to:nC(t[4]),value:iC(t[5]),data:t[6],accessList:lC(t[7])};return 8===t.length||(r.hash=PE(e),dC(r,t.slice(8),hC)),r}(t);case 2:return function(e){const t=jE(e.slice(1));9!==t.length&&12!==t.length&&eC.throwArgumentError("invalid component count for transaction type: 2","payload",s_(e));const r=iC(t[2]),n=iC(t[3]),i={type:2,chainId:iC(t[0]).toNumber(),nonce:iC(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:iC(t[4]),to:nC(t[5]),value:iC(t[6]),data:t[7],accessList:lC(t[8])};return 9===t.length||(i.hash=PE(e),dC(i,t.slice(9),uC)),i}(t)}return eC.throwError(`unsupported transaction type: ${t[0]}`,Zw.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}(rC=tC||(tC={}))[rC.legacy=0]="legacy",rC[rC.eip2930=1]="eip2930",rC[rC.eip1559=2]="eip1559";var pC=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const mC=new Zw("contracts/5.8.0");function gC(e,t){return pC(this,void 0,void 0,function*(){const r=yield t;"string"!=typeof r&&mC.throwArgumentError("invalid address or ENS name","name",r);try{return UE(r)}catch(i){}e||mC.throwError("a provider or signer is needed to resolve ENS names",Zw.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&mC.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function bC(e,t,r){return pC(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,n)=>bC(e,Array.isArray(t)?t[n]:t[r.name],r))):"address"===r.type?yield gC(e,t):"tuple"===r.type?yield bC(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>bC(e,t,r.arrayChildren))):Promise.reject(mC.makeError("invalid value for array",Zw.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function yC(e,t,r){return pC(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=H_(r.pop())
26),mC.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=U_({override:gC(e.signer,n.from),signer:e.signer.getAddress()}).then(e=>pC(this,void 0,void 0,function*(){return UE(e.signer)!==e.override&&mC.throwError("Contract with a Signer cannot override from",Zw.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):n.from=e.signer.getAddress():n.from&&(n.from=gC(e.provider,n.from));const i=yield U_({args:bC(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:U_(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=v_.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=v_.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=v_.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=v_.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=v_.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=lC(a.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3;const r=t_(o);for(let t=0;t<r.length;t++)e+=4,r[t]&&(e+=64);s.gasLimit=v_.from(t.gas).add(e)}if(a.value){const e=v_.from(a.value);e.isZero()||t.payable||mC.throwError("non-payable method cannot override value",Zw.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=e}a.customData&&(s.customData=H_(a.customData)),a.ccipReadEnabled&&(s.ccipReadEnabled=!!a.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;const l=Object.keys(n).filter(e=>null!=n[e]);return l.length&&mC.throwError(`cannot override ${l.map(e=>JSON.stringify(e)).join(",")}`,Zw.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),s})}function vC(e,t,r){const n=e.signer||e.provider;return function(...i){return pC(this,void 0,void 0,function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=H_(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const s=yield yC(e,t,i),a=yield n.call(s,o);try{let n=e.interface.decodeFunctionResult(t,a);return r&&1===t.outputs.length&&(n=n[0]),n}catch(l){throw l.code===Zw.errors.CALL_EXCEPTION&&(l.address=e.address,l.args=i,l.transaction=s),l}})}}function wC(e,t){return function(...r){return pC(this,void 0,void 0,function*(){e.signer||mC.throwError("sending a transaction requires a signer",Zw.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield yC(e,t,r),i=yield e.signer.sendTransaction(n);return function(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let n=W_(r),i=null;try{i=e.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n}),t))}(e,i),i})}}function _C(e,t,r){return t.constant?vC(e,t,r):wC(e,t)}function EC(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):""):"*"}class AC{constructor(e,t){F_(this,"tag",e),F_(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!(!t&&r.listener===e)||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{const r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class xC extends AC{constructor(){super("error",null)}}class kC extends AC{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&mC.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(EC(i),i),F_(this,"address",e),F_(this,"interface",t),F_(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=function(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let o in n){const s=e.slice();s.push(o);try{r(s,n[o])}catch(i){t.push({path:s,error:i})}}};return r([],e),t}(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class CC extends AC{constructor(e,t){super("*",{address:e}),F_(this,"address",e),F_(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(t){}}}class PC{constructor(e,t,r){F_(this,"interface",D_(new.target,"getInterface")(t)),null==r?(F_(this,"provider",null),F_(this,"signer",null)):Px.isSigner(r)?(F_(this,"provider",r.provider||null),F_(this,"signer",r)):Ex.isProvider(r)?(F_(this,"provider",r),F_(this,"signer",null)):mC.throwArgumentError("invalid signer or provider","signerOrProvider",r),F_(this,"callStatic",{}),F_(this,"estimateGas",{}),F_(this,"functions",{}),F_(this,"populateTransaction",{}),F_(this,"filters",{});{const e={};
26Object.keys(this.interface.events).forEach(t=>{const r=this.interface.events[t];F_(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{const r=e[t];1===r.length?F_(this.filters,t,this.filters[r[0]]):mC.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if(F_(this,"_runningEvents",{}),F_(this,"_wrappedEmits",{}),null==e&&mC.throwArgumentError("invalid contract address or ENS name","addressOrName",e),F_(this,"address",e),this.provider)F_(this,"resolvedAddress",gC(this.provider,e));else try{F_(this,"resolvedAddress",Promise.resolve(UE(e)))}catch(o){mC.throwError("provider is required to use ENS name as contract address",Zw.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});const n={},i={};Object.keys(this.interface.functions).forEach(e=>{const t=this.interface.functions[e];if(i[e])mC.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&F_(this,e,_C(this,t,!0)),null==this.functions[e]&&F_(this.functions,e,_C(this,t,!1)),null==this.callStatic[e]&&F_(this.callStatic,e,vC(this,t,!0)),null==this.populateTransaction[e]&&F_(this.populateTransaction,e,function(e,t){return function(...r){return yC(e,t,r)}}(this,t)),null==this.estimateGas[e]&&F_(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return pC(this,void 0,void 0,function*(){r||mC.throwError("estimate require a provider or signer",Zw.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield yC(e,t,n);return yield r.estimateGas(i)})}}(this,t))}}),Object.keys(n).forEach(e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&F_(this,e,this[r])}catch(i){}null==this.functions[e]&&F_(this.functions,e,this.functions[r]),null==this.callStatic[e]&&F_(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&F_(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&F_(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return HE(e)}static getInterface(e){return yx.isInterface(e)?e:new yx(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&mC.throwError("contract not deployed",Zw.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||mC.throwError("sending a transactions require a signer",Zw.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=H_(e||{});return["from","to"].forEach(function(e){null!=t[e]&&mC.throwError("cannot override "+e,Zw.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new Ix(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&F_(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return mx.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new xC);if("event"===e)return this._normalizeRunningEvent(new AC("event",null));if("*"===e)return this._normalizeRunningEvent(new CC(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new kC(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new kC(this.address,this.interface,r,e.topics))}catch(t){}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new AC(EC(r),r))}return this._normalizeRunningEvent(new CC(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=W_(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||mC.throwError("events require a provider or a signer with a provider",Zw.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);
vendor: 4,603 bytes, line 26
26this.emit(e.filter,...t)}catch(i){n.decodeError=i.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=H_(n.filter);return"string"==typeof t&&i_(t,32)?(null!=r&&mC.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then(e=>e.map(e=>this._wrapEvent(n,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class IC extends PC{}class SC{constructor(e){F_(this,"alphabet",e),F_(this,"base",e.length),F_(this,"_alphabetMap",{}),F_(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=t_(e);if(0===t.length)return"";let r=[0];for(let i=0;i<t.length;++i){let e=t[i];for(let t=0;t<r.length;++t)e+=r[t]<<8,r[t]=e%this.base,e=e/this.base|0;for(;e>0;)r.push(e%this.base),e=e/this.base|0}let n="";for(let i=0;0===t[i]&&i<t.length-1;++i)n+=this._leader;for(let i=r.length-1;i>=0;--i)n+=this.alphabet[r[i]];return n}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");let i=n;for(let e=0;e<t.length;++e)i+=t[e]*this.base,t[e]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return t_(new Uint8Array(t.reverse()))}}new SC("abcdefghijklmnopqrstuvwxyz234567");const OC=new SC("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function MC(e){return"0x"+dk.sha256().update(t_(e)).digest("hex")}const TC=new Zw("networks/5.8.0");function NC(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(i){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(i){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(i){}if(t.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new t.PocketProvider(e,r.pocket);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(i){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(i){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(i){}if(t.QuickNodeProvider&&"-"!==r.quicknode)try{n.push(new t.QuickNodeProvider(e,r.quicknode))}catch(i){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return NC(e)},t}function RC(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return RC(e,t)},r}const jC={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:NC("homestead")},BC={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:NC("ropsten")},$C={chainId:63,name:"classicMordor",_defaultProvider:RC("https://www.ethercluster.com/mordor","classicMordor")},LC={unspecified:{chainId:0,name:"unspecified"},homestead:jC,mainnet:jC,morden:{chainId:2,name:"morden"}
26,ropsten:BC,testnet:BC,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:NC("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:NC("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:NC("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"sepolia",_defaultProvider:NC("sepolia")},holesky:{chainId:17e3,name:"holesky",_defaultProvider:NC("holesky")},classic:{chainId:61,name:"classic",_defaultProvider:RC("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:$C,classicTestnet:$C,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:RC("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:NC("matic")},maticmum:{chainId:80001,name:"maticmum",_defaultProvider:NC("maticmum")},optimism:{chainId:10,name:"optimism",_defaultProvider:NC("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},"optimism-sepolia":{chainId:11155420,name:"optimism-sepolia"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},"arbitrum-sepolia":{chainId:421614,name:"arbitrum-sepolia"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};var FC=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function DC(e,t){return FC(this,void 0,void 0,function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};
26if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach((e,t)=>{o[t.toLowerCase()]=e}):n.headers.keys().forEach(e=>{o[e.toLowerCase()]=n.headers.get(e)}),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:t_(new Uint8Array(i))}})}var UC=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const HC=new Zw("web/5.8.0");function zC(e){return new Promise(t=>{setTimeout(t,e)})}function qC(e,t){if(null==e)return null;if("string"==typeof e)return e;
26if(Qw(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return pA(e)}catch(r){}return s_(e)}return e}function GC(e,t,r){let n=null;if(null!=t){n=fA(t);const r="string"==typeof e?{url:e}:H_(e);if(r.headers){0!==Object.keys(r.headers).filter(e=>"content-type"===e.toLowerCase()).length||(r.headers=H_(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return function(e,t,r){const n="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;HC.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"==typeof e?e.throttleCallback:null,o="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;HC.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s="object"==typeof e&&!!e.errorPassThrough,a={};let l=null;const c={method:"GET"};let u=!1,h=12e4;if("string"==typeof e)l=e;else if("object"==typeof e){if(null!=e&&null!=e.url||HC.throwArgumentError("missing URL","connection.url",e),l=e.url,"number"==typeof e.timeout&&e.timeout>0&&(h=e.timeout),e.headers)for(const t in e.headers)a[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(u=!0);if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==l.substring(0,6)&&!0!==e.allowInsecureAuthentication&&HC.throwError("basic authentication requires a secure https url",Zw.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;a.authorization={key:"Authorization",value:"Basic "+xA(fA(t))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(c.fetchOptions=H_(e.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=l?l.match(d):null;if(f)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?AA(f[3]):(p=f[3],fA(p.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(y){HC.throwError("processing response error",Zw.errors.SERVER_ERROR,{body:qC(f[1],f[2]),error:y,requestBody:null,requestMethod:"GET",url:l})}var p;t&&(c.method="POST",c.body=t,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(t.length)}));const m={};Object.keys(a).forEach(e=>{const t=a[e];m[t.key]=t.value}),c.headers=m;const g=function(){let e=null;return{promise:new Promise(function(t,r){h&&(e=setTimeout(()=>{null!=e&&(e=null,r(HC.makeError("timeout",Zw.errors.TIMEOUT,{requestBody:qC(c.body,m["content-type"]),requestMethod:c.method,timeout:h,url:l})))},h))}),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),b=function(){return UC(this,void 0,void 0,function*(){for(let e=0;e<n;e++){let t=null;try{if(t=yield DC(l,c),e<n)if(301===t.statusCode||302===t.statusCode){const e=t.headers.location||"";if("GET"===c.method&&e.match(/^https:/)){l=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(i&&(r=yield i(e,l)),r){let r=0;const n=t.headers["retry-after"];r="string"==typeof n&&n.match(/^[1-9][0-9]*$/)?1e3*parseInt(n):o*parseInt(String(Math.random()*Math.pow(2,e))),yield zC(r);continue}}}catch(y){t=y.response,null==t&&(g.cancel(),HC.throwError("missing response",Zw.errors.SERVER_ERROR,{requestBody:qC(c.body,m["content-type"]),requestMethod:c.method,serverError:y,url:l}))}let a=t.body;if(u&&304===t.statusCode?a=null:!s&&(t.statusCode<200||t.statusCode>=300)&&(g.cancel(),HC.throwError("bad response",Zw.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:qC(a,t.headers?t.headers["content-type"]:null),requestBody:qC(c.body,m["content-type"]),requestMethod:c.method,url:l})),r)try{const e=yield r(a,t);return g.cancel(),e}catch(y){if(y.throttleRetry&&e<n){let t=!0;if(i&&(t=yield i(e,l)),t){const t=o*parseInt(String(Math.random()*Math.pow(2,e)));yield zC(t);continue}}g.cancel(),HC.throwError("processing response error",Zw.errors.SERVER_ERROR,{body:qC(a,t.headers?t.headers["content-type"]:null),error:y,requestBody:qC(c.body,m["content-type"]),requestMethod:c.method,url:l})}return g.cancel(),a}return HC.throwError("failed response",Zw.errors.SERVER_ERROR,{requestBody:qC(c.body,m["content-type"]),requestMethod:c.method,url:l})})}();return Promise.race([g.promise,b])}(e,n,(e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(pA(e))}catch(i){HC.throwError("invalid JSON",Zw.errors.SERVER_ERROR,{body:e,error:i})}return r&&(n=r(n,t)),n})}function WC(e,t){return t||(t={}),null==(t=H_(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,n){let i=null,o=!1;const s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{s()&&n(new Error("timeout"))},t.timeout));const a=t.retryLimit;let l=0;!function i(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(l++,l>a)return void(s()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null},function(e){s()&&n(e)})}()})}var VC,ZC;var KC=function(){if(ZC)return VC;ZC=1;
vendor: 8,882 bytes, line 26
26for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",t={},r=0;r<32;r++){var n=e.charAt(r);if(void 0!==t[n])throw new TypeError(n+" is ambiguous");t[n]=r}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}for(t=i(t),r=0;r<e.length;++r){var o=e.charCodeAt(r);t=i(t)^31&o}return t}function s(e,r){if(r=r||90,e.length<8)return e+" too short";if(e.length>r)return"Exceeds length limit";var n=e.toLowerCase(),s=e.toUpperCase();if(e!==n&&e!==s)return"Mixed-case string "+e;var a=(e=n).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var l=e.slice(0,a),c=e.slice(a+1);if(c.length<6)return"Data too short";var u=o(l);if("string"==typeof u)return u;for(var h=[],d=0;d<c.length;++d){var f=c.charAt(d),p=t[f];if(void 0===p)return"Unknown character "+f;u=i(u)^p,d+6>=c.length||h.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:l,words:h}}function a(e,t,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],l=0;l<e.length;++l)for(i=i<<t|e[l],o+=t;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=t)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}return VC={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(t,r,n){if(n=n||90,t.length+7+r.length>n)throw new TypeError("Exceeds length limit");var s=o(t=t.toLowerCase());if("string"==typeof s)throw new Error(s);for(var a=t+"1",l=0;l<r.length;++l){var c=r[l];if(c>>5)throw new Error("Non 5-bit word");s=i(s)^c,a+=e.charAt(c)}for(l=0;l<6;++l)s=i(s);for(s^=1,l=0;l<6;++l){a+=e.charAt(s>>5*(5-l)&31)}return a},toWordsUnsafe:function(e){var t=a(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=a(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=a(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=a(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}}();const JC=t(KC),YC="providers/5.8.0",QC=new Zw(YC);class XC{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),l=this.type.bind(this);return e.transaction={hash:o,type:l,accessList:XC.allowNull(this.accessList.bind(this),null),blockHash:XC.allowNull(o,null),blockNumber:XC.allowNull(a,null),transactionIndex:XC.allowNull(a,null),confirmations:XC.allowNull(a,null),from:t,gasPrice:XC.allowNull(r),maxPriorityFeePerGas:XC.allowNull(r),maxFeePerGas:XC.allowNull(r),gasLimit:r,to:XC.allowNull(t,null),value:r,nonce:a,data:i,r:XC.allowNull(this.uint256),s:XC.allowNull(this.uint256),v:XC.allowNull(a),creates:XC.allowNull(t,null),raw:XC.allowNull(i)},e.transactionRequest={from:XC.allowNull(t),nonce:XC.allowNull(a),gasLimit:XC.allowNull(r),gasPrice:XC.allowNull(r),maxPriorityFeePerGas:XC.allowNull(r),maxFeePerGas:XC.allowNull(r),to:XC.allowNull(t),value:XC.allowNull(r),data:XC.allowNull(e=>this.data(e,!0)),type:XC.allowNull(a),accessList:XC.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:t,topics:XC.arrayOf(o),data:i,logIndex:a,blockHash:o},e.receipt={to:XC.allowNull(this.address,null),from:XC.allowNull(this.address,null),contractAddress:XC.allowNull(t,null),transactionIndex:a,root:XC.allowNull(s),gasUsed:r,logsBloom:XC.allowNull(i),blockHash:o,transactionHash:o,logs:XC.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:XC.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:XC.allowNull(r),status:XC.allowNull(a),type:l},e.block={hash:XC.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:XC.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:XC.allowNull(t),extraData:i,transactions:XC.allowNull(XC.arrayOf(o)),baseFeePerGas:XC.allowNull(r)},e.blockWithTransactions=H_(e.block),e.blockWithTransactions.transactions=XC.allowNull(XC.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:XC.allowNull(n,void 0),toBlock:XC.allowNull(n,void 0),blockHash:XC.allowNull(o,void 0),address:XC.allowNull(t,void 0),topics:XC.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:XC.allowNull(a),blockHash:XC.allowNull(o),transactionIndex:a,removed:XC.allowNull(this.boolean.bind(this)),address:t,data:XC.allowFalsish(i,"0x"),topics:XC.arrayOf(o),transactionHash:o,logIndex:a},e}accessList(e){return lC(e||[])}number(e){return"0x"===e?0:v_.from(e).toNumber()}type(e){return"0x"===e||null==e?0:v_.from(e).toNumber()}bigNumber(e){return v_.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),i_(e))?e.toLowerCase():QC.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return UE(e)}callAddress(e){if(!i_(e,32))return null;const t=UE(l_(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return HE(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||i_(e))return u_(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==a_(r)?QC.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=v_.from(e);try{return t.toNumber()}catch(r){}return null}uint256(e){if(!i_(e))throw new Error("invalid uint256");return h_(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=XC.check(t,e);return n._difficulty=null==r?null:v_.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return XC.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&v_.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=XC.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;i_(r)&&(r=v_.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),i_(r)&&(r=v_.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return fC(e)}receiptLog(e){return XC.check(this.formats.receiptLog,e)}receipt(e){const t=XC.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=v_.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&QC.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):QC.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&QC.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return XC.check(this.formats.filter,e)}filterLog(e){return XC.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const i in e)try{const n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(n){throw n.checkKey=i,n.checkValue=t[i],n}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach(function(t){r.push(e(t))}),r}}}var eP=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const tP=new Zw(YC);function rP(e){return null==e?"null":(32!==a_(e)&&tP.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function nP(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(Array.isArray(e)){const t={};
26e.forEach(e=>{t[rP(e)]=!0});const r=Object.keys(t);return r.sort(),r.join("|")}return rP(e)}).join("&")}function iP(e){if("string"==typeof e){if(32===a_(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+nP(e);if(_x.isForkEvent(e))throw tP.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+nP(e.topics||[])}throw new Error("invalid event - "+e)}function oP(){return(new Date).getTime()}function sP(e){return new Promise(t=>{setTimeout(t,e)})}const aP=["block","network","pending","poll"];let lP=class{constructor(e,t,r){F_(this,"tag",e),F_(this,"listener",t),F_(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=""===(n=e[2])?[]:n.split(/&/g).map(e=>{if(""===e)return[];const t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t});var n;const i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||aP.indexOf(this.tag)>=0}};const cP={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function uP(e){return h_(v_.from(e).toHexString(),32)}function hP(e){return OC.encode(r_([e,l_(MC(MC(e)),0,4)]))}const dP=new RegExp("^(ipfs)://(.*)$","i"),fP=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),dP,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function pP(e,t){try{return pA(mP(e,t))}catch(r){}return null}function mP(e,t){if("0x"===e)return null;const r=v_.from(l_(e,t,t+32)).toNumber(),n=v_.from(l_(e,r,r+32)).toNumber();return l_(e,r+32,r+32+n)}function gP(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):tP.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function bP(e){const t=t_(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function yP(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function vP(e){const t=[];let r=0;for(let n=0;n<e.length;n++)t.push(null),r+=32;for(let n=0;n<e.length;n++){const i=t_(e[n]);t[n]=bP(r),t.push(bP(i.length)),t.push(yP(i)),r+=32+32*Math.ceil(i.length/32)}return c_(t)}class wP{constructor(e,t,r,n){F_(this,"provider",e),F_(this,"name",r),F_(this,"address",e.formatter.address(t)),F_(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>v_.from(e).eq(1)).catch(e=>{if(e.code===Zw.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return eP(this,void 0,void 0,function*(){const r={to:this.address,ccipReadEnabled:!0,data:c_([e,ZA(this.name),t||"0x"])};let n=!1;var i;(yield this.supportsWildcard())&&(n=!0,r.data=c_(["0x9061b923",vP([(i=this.name,s_(r_(VA(i).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"),r.data])]));try{let e=yield this.provider.call(r);return t_(e).length%32==4&&tP.throwError("resolver threw error",Zw.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=mP(e,0)),e}catch(o){if(o.code===Zw.errors.CALL_EXCEPTION)return null;throw o}})}_fetchBytes(e,t){return eP(this,void 0,void 0,function*(){const r=yield this._fetch(e,t);return null!=r?mP(r,0):null})}_getAddress(e,t){const r=cP[String(e)];if(null==r&&tP.throwError(`unsupported coin type: ${e}`,Zw.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=t_(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return hP(r_([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return hP(r_([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=JC.toWords(n.slice(2));return e.unshift(t),JC.encode(r.prefix,e)}}return null}getAddress(e){return eP(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e?null:this.provider.formatter.callAddress(e)}catch(n){if(n.code===Zw.errors.CALL_EXCEPTION)return null;throw n}const t=yield this._fetchBytes("0xf1cb7e06",uP(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&tP.throwError("invalid or unsupported coin data",Zw.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return eP(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<fP.length;r++){const n=t.match(fP[r]);if(null==n)continue;const i=n[1].toLowerCase();switch(i){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:gP(t)};case"erc721":case"erc1155":{const r="erc721"===i?"0xc87b56dd":"0x0e89341c";e.push({type:i,content:t});const o=this._resolvedAddress||(yield this.getAddress()),s=(n[2]||"").split("/");if(2!==s.length)return null;const a=yield this.provider.formatter.address(s[0]),l=h_(v_.from(s[1]).toHexString(),32);if("erc721"===i){const t=this.provider.formatter.callAddress(yield this.provider.call({to:a,data:c_(["0x6352211e",l])}));if(o!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===i){const t=v_.from(yield this.provider.call({to:a,data:c_(["0x00fdd58e",h_(o,32),l])}));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}const c={to:this.provider.formatter.address(s[0]),data:c_([r,l])};let u=pP(yield this.provider.call(c),0);if(null==u)return null;e.push({type:"metadata-url-base",content:u}),"erc1155"===i&&(u=u.replace("{id}",l.substring(2)),e.push({type:"metadata-url-expanded",content:u})),u.match(/^ipfs:/i)&&(u=gP(u)),e.push({type:"metadata-url",content:u});const h=yield GC(u);if(!h)return null;e.push({type:"metadata",content:JSON.stringify(h)});let d=h.image;if("string"!=typeof d)return null;if(d.match(/^(https:\/\/|data:)/i));else{if(null==d.match(dP))return null;e.push({type:"url-ipfs",content:d}),d=gP(d)}return e.push({type:"url",content:d}),{linkage:e,url:d}}}}}catch(t){}return null})}getContentHash(){return eP(this,void 0,void 0,function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;const t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e=parseInt(t[3],16);
26if(t[4].length===2*e)return"ipfs://"+OC.encode("0x"+t[1])}const r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+OC.encode("0x"+r[1])}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return"bzz://"+n[1];const i=e.match(/^0x90b2c605([0-9a-f]*)$/);if(i&&68===i[1].length){const e={"=":"","+":"-","/":"_"},t=xA("0x"+i[1]).replace(/[=+\/]/g,t=>e[t]);return"sia://"+t}return tP.throwError("invalid or unsupported content hash data",Zw.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return eP(this,void 0,void 0,function*(){let t=fA(e);t=r_([uP(64),uP(t.length),t]),t.length%32!=0&&(t=r_([t,h_("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",s_(t));return null==r||"0x"===r?null:pA(r)})}}let _P=null,EP=1;class AP extends Ex{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),F_(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{const t=D_(new.target,"getNetwork")(e);t?(F_(this,"_network",t),this.emit("network",t,null)):tP.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return eP(this,void 0,void 0,function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(e){}null==t&&(t=yield this.detectNetwork()),t||tP.throwError("no network detected",Zw.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:F_(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return WC(()=>this._ready().then(e=>e,e=>{if(e.code!==Zw.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==_P&&(_P=new XC),_P}static getNetwork(e){return function(e){if(null==e)return null;if("number"==typeof e){for(const t in LC){const r=LC[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=LC[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=LC[e.name];if(!t)return"number"!=typeof e.chainId&&TC.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&TC.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var n;return null==r&&t._defaultProvider&&(r=(n=t._defaultProvider)&&"function"==typeof n.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}(null==e?"homestead":e)}ccipReadFetch(e,t,r){return eP(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e<r.length;e++){const t=r[e],s=t.replace("{sender}",n).replace("{data}",i),a=t.indexOf("{data}")>=0?null:JSON.stringify({data:i,sender:n}),l=yield GC({url:s,errorPassThrough:!0},a,(e,t)=>(e.status=t.statusCode,e));if(l.data)return l.data;const c=l.message||"unknown error";if(l.status>=400&&l.status<500)return tP.throwError(`response not found during CCIP fetch: ${c}`,Zw.errors.SERVER_ERROR,{url:t,errorMessage:c});o.push(c)}return tP.throwError(`error encountered during CCIP fetch: ${o.map(e=>JSON.stringify(e)).join(", ")}`,Zw.errors.SERVER_ERROR,{urls:r,errorMessages:o})})}_getInternalBlockNumber(e){return eP(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(oP()-r.respTime<=e)return r.blockNumber;break}catch(n){if(this._internalBlockNumber===t)break}}const t=oP(),r=U_({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=oP();return(e=v_.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:i}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return eP(this,void 0,void 0,function*(){const e=EP++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}
26catch(n){return void this.emit("error",n)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)tP.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",tP.makeError("network block skew detected",Zw.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then(e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null).catch(e=>{this.emit("error",e)});t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(o)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})}else this.emit("didPoll",e)})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return eP(this,void 0,void 0,function*(){return tP.throwError("provider does not support network detection",Zw.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return eP(this,void 0,void 0,function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield sP(0),this._network;const r=tP.makeError("underlying network changed",Zw.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=oP();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=oP(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return eP(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,n){return eP(this,void 0,void 0,function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise((i,o)=>{const s=[];let a=!1;
26const l=function(){return!!a||(a=!0,s.forEach(e=>{e()}),!1)},c=e=>{e.confirmations<t||l()||i(e)};if(this.on(e,c),s.push(()=>{this.removeListener(e,c)}),n){let r=n.startBlock,i=null;const c=s=>eP(this,void 0,void 0,function*(){a||(yield sP(1e3),this.getTransactionCount(n.from).then(u=>eP(this,void 0,void 0,function*(){if(!a){if(u<=n.nonce)r=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i<n.startBlock&&(i=n.startBlock));i<=s;){if(a)return;const r=yield this.getBlockWithTransactions(i);for(let i=0;i<r.transactions.length;i++){const s=r.transactions[i];if(s.hash===e)return;if(s.from===n.from&&s.nonce===n.nonce){if(a)return;const r=yield this.waitForTransaction(s.hash,t);if(l())return;let i="replaced";return s.data===n.data&&s.to===n.to&&s.value.eq(n.value)?i="repriced":"0x"===s.data&&s.from===s.to&&s.value.isZero()&&(i="cancelled"),void o(tP.makeError("transaction was replaced",Zw.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===i||"cancelled"===i,reason:i,replacement:this._wrapTransaction(s),hash:e,receipt:r}))}}i++}}a||this.once("block",c)}}),e=>{a||this.once("block",c)}))});if(a)return;this.once("block",c),s.push(()=>{this.removeListener("block",c)})}if("number"==typeof r&&r>0){const e=setTimeout(()=>{l()||o(tP.makeError("timeout exceeded",Zw.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return eP(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return v_.from(e)}catch(t){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield U_({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return v_.from(n)}catch(i){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:i})}})}getTransactionCount(e,t){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield U_({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return v_.from(n).toNumber()}catch(i){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:i})}})}getCode(e,t){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield U_({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return s_(n)}catch(i){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:i})}})}getStorageAt(e,t,r){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield U_({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>u_(e))}),i=yield this.perform("getStorageAt",n);try{return s_(i)}catch(o){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:o})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==a_(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&tP.throwError("Transaction hash mismatch from Provider.sendTransaction.",Zw.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>eP(this,void 0,void 0,function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&tP.throwError("transaction failed",Zw.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)}),n}sendTransaction(e){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then(e=>s_(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(i){throw i.transaction=r,i.transactionHash=r.hash,i}})}_getTransactionRequest(e){return eP(this,void 0,void 0,function*(){const t=yield e,r={};
26return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?v_.from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?s_(e):null))}),this.formatter.transactionRequest(yield U_(r))})}_getFilter(e){return eP(this,void 0,void 0,function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter(yield U_(t))})}_call(e,t,r){return eP(this,void 0,void 0,function*(){r>=10&&tP.throwError("CCIP read exceeded maximum redirections",Zw.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&a_(i)%32==4)try{const o=l_(i,4),s=l_(o,0,32);v_.from(s).eq(n)||tP.throwError("CCIP Read sender did not match",Zw.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const a=[],l=v_.from(l_(o,32,64)).toNumber(),c=v_.from(l_(o,l,l+32)).toNumber(),u=l_(o,l+32);for(let t=0;t<c;t++){const r=pP(u,32*t);null==r&&tP.throwError("CCIP Read contained corrupt URL string",Zw.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),a.push(r)}const h=mP(o,64);v_.from(l_(o,100,128)).isZero()||tP.throwError("CCIP Read callback selector included junk",Zw.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const d=l_(o,96,100),f=mP(o,128),p=yield this.ccipReadFetch(e,h,a);null==p&&tP.throwError("CCIP Read disabled or provided no URLs",Zw.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const m={to:n,data:c_([d,vP([p,f])])};return this._call(m,t,r+1)}catch(o){if(o.code===Zw.errors.SERVER_ERROR)throw o}try{return s_(i)}catch(o){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:i,error:o})}})}call(e,t){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield U_({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield U_({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return v_.from(r)}catch(n){return tP.throwError("bad result from backend",Zw.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:n})}})}_getAddress(e){return eP(this,void 0,void 0,function*(){"string"!=typeof(e=yield e)&&tP.throwArgumentError("invalid address or ENS name","name",e);const t=yield this.resolveName(e);return null==t&&tP.throwError("ENS name not configured",Zw.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return eP(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128;const n={includeTransactions:!!t};if(i_(e,32))n.blockHash=e;else try{n.blockTag=yield this._getBlockTag(e),i_(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(i){tP.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return WC(()=>eP(this,void 0,void 0,function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;n<e.transactions.length;n++){const r=e.transactions[n];if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}}const r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return eP(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return WC(()=>eP(this,void 0,void 0,function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}),{oncePoll:this})})}getTransactionReceipt(e){return eP(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return WC(()=>eP(this,void 0,void 0,function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}),{oncePoll:this})})}getLogs(e){return eP(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield U_({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);
26return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),XC.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return eP(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return eP(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&tP.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return eP(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new wP(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return eP(this,void 0,void 0,function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||tP.throwError("network does not support ENS",Zw.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+ZA(e).substring(2)});return this.formatter.callAddress(t)}catch(n){}return null})}resolveName(e){return eP(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(r){if(i_(e))throw r}"string"!=typeof e&&tP.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return eP(this,void 0,void 0,function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=pP(yield this.call({to:r,data:"0x691f3431"+ZA(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n})}getAvatar(e){return eP(this,void 0,void 0,function*(){let t=null;if(i_(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(r,"getAvatar");if(!i)return null;t=new wP(this,i,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(n){if(n.code!==Zw.errors.CALL_EXCEPTION)throw n}try{const e=pP(yield this.call({to:i,data:"0x691f3431"+ZA(r).substring(2)}),0);t=yield this.getResolver(e)}catch(n){if(n.code!==Zw.errors.CALL_EXCEPTION)throw n;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return tP.throwError(e+" not implemented",Zw.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){const n=new lP(iP(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=iP(e);return this._events=this._events.filter(e=>e.tag!==i||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(n.push(e),!1))),n.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=iP(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=iP(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=iP(e);return this._events=this._events.filter(e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1))),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=iP(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var xP=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};const kP=new Zw(YC),CP=["call","estimateGas"];function PP(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=i_(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=PP(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return PP(JSON.parse(e),t)}catch(r){}return null}function IP(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=PP(t,!0);if(e)return e.data;kP.throwError("missing revert data in call exception; Transaction reverted without a reason string",Zw.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=PP(t.body,!1);null==r&&(r=PP(t,!1)),r&&kP.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Zw.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===Zw.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&kP.throwError("insufficient funds for intrinsic transaction cost",Zw.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&kP.throwError("nonce has already been used",Zw.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&kP.throwError("replacement fee too low",Zw.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&kP.throwError("legacy pre-eip-155 transactions not supported",Zw.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),CP.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&kP.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Zw.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function SP(e){return new Promise(function(t){setTimeout(t,e)})}function OP(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function MP(e){return e?e.toLowerCase():e}const TP={};class NP extends Px{constructor(e,t,r){if(super(),e!==TP)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");F_(this,"provider",t),null==r&&(r=0),"string"==typeof r?(F_(this,"_address",this.provider.formatter.address(r)),F_(this,"_index",null)):"number"==typeof r?(F_(this,"_index",r),F_(this,"_address",null)):kP.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return kP.throwError("cannot alter JSON-RPC Signer connection",Zw.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new RP(TP,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&kP.throwError("unknown account #"+this._index,Zw.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=H_(e);const t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));
26if(null==e.gasLimit){const r=H_(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>xP(this,void 0,void 0,function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&kP.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),U_({tx:U_(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&kP.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&kP.throwError("user rejected transaction",Zw.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),IP("sendTransaction",e,n)))})}signTransaction(e){return kP.throwError("signing transactions is unsupported",Zw.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return xP(this,void 0,void 0,function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield WC(()=>xP(this,void 0,void 0,function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}})}signMessage(e){return xP(this,void 0,void 0,function*(){const t="string"==typeof e?fA(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[s_(t),r.toLowerCase()])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&kP.throwError("user rejected signing",Zw.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n}})}_legacySignMessage(e){return xP(this,void 0,void 0,function*(){const t="string"==typeof e?fA(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),s_(t)])}catch(n){throw"string"==typeof n.message&&n.message.match(/user denied/i)&&kP.throwError("user rejected signing",Zw.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n}})}_signTypedData(e,t,r){return xP(this,void 0,void 0,function*(){const n=yield ux.resolveNames(e,t,r,e=>this.provider.resolveName(e)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(ux.getPayload(n.domain,t,n.value))])}catch(o){throw"string"==typeof o.message&&o.message.match(/user denied/i)&&kP.throwError("user rejected signing",Zw.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),o}})}unlock(e){return xP(this,void 0,void 0,function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class RP extends NP{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}const jP={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class BP extends AP{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=D_(this.constructor,"defaultUrl")()),F_(this,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(H_(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return xP(this,void 0,void 0,function*(){yield SP(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(r){}}if(null!=e){const r=D_(this.constructor,"getNetwork");try{return r(v_.from(e).toNumber())}catch(t){return kP.throwError("could not detect network",Zw.errors.NETWORK_E
26RROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return kP.throwError("could not detect network",Zw.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new NP(TP,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:W_(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=GC(this.connection,JSON.stringify(r),OP).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=i,setTimeout(()=>{this._cache[e]=null},0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[MP(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[MP(t.address),t.blockTag]];case"getCode":return["eth_getCode",[MP(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[MP(t.address),h_(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[D_(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[D_(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=MP(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return xP(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&v_.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=H_(t)).transaction=H_(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&kP.throwError(e+" not implemented",Zw.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(n){return IP(e,n,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return function n(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),n.then(function(){return SP(1e3)})}).then(function(){if(e._pendingFilter==t)return setTimeout(function(){n()},0),null;e.send("eth_uninstallFilter",[r])}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=H_(jP);if(t)for(const s in t)t[s]&&(r[s]=!0);var n,i;i=r,(n=e)&&"object"==typeof n||L_.throwArgumentError("invalid object","object",n),Object.keys(n).forEach(e=>{i[e]||L_.throwArgumentError("invalid object key - "+e,"transaction:"+e,n)});const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;const r=u_(v_.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(o[t]=s_(e[t]))}),e.accessList&&(o.accessList=lC(e.accessList)),o}}const $P=new Zw(YC);let LP=1;function FP(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:LP++,jsonrpc:"2.0"};
26return new Promise((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:W_(i),provider:this}),t(i,(t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)})})}}class DP extends BP{constructor(e,t){null==e&&$P.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:W_(n),provider:this}),e.request(n).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e})}}(e)):e.sendAsync?n=FP(0,e.sendAsync.bind(e)):e.send?n=FP(0,e.send.bind(e)):$P.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),F_(this,"jsonRpcFetchFunc",n),F_(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const UP=new Zw("units/5.8.0"),HP=["wei","kwei","mwei","gwei","szabo","finney","ether"];function zP(e,t){if("string"==typeof t){const e=HP.indexOf(t);-1!==e&&(t=3*e)}return M_(e,null!=t?t:18)}function qP(e,t){return"string"!=typeof e&&UP.throwArgumentError("value must be a string","value",e),T_(e,t)}var GP,WP={exports:{}};var VP=(GP||(GP=1,function(e,t){var n="__lodash_hash_undefined__",i=1/0,o=9007199254740991,s="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",h="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",b="[object Set]",y="[object String]",v="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,k=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[s]=O[a]=O[_]=O[l]=O[E]=O[c]=O[u]=O[h]=O[d]=O[f]=O[p]=O[g]=O[b]=O[y]=O[w]=!1;var M="object"==typeof r&&r&&r.Object===Object&&r,T="object"==typeof self&&self&&self.Object===Object&&self,N=M||T||Function("return this")(),R=t&&!t.nodeType&&t,j=R&&e&&!e.nodeType&&e,B=j&&j.exports===R&&M.process,$=function(){try{return B&&B.binding("util")}catch(e){}}(),L=$&&$.isTypedArray;function F(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r){for(var n=e.length,i=r+-1;++i<n;)if(t(e[i],i,e))return i;return-1}(e,U,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function D(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function U(e){return e!=e}function H(e,t){return e.has(t)}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W,V,Z,K=Array.prototype,J=Function.prototype,Y=Object.prototype,Q=N["__core-js_shared__"],X=(W=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",ee=J.toString,te=Y.hasOwnProperty,re=Y.toString,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=N.Symbol,oe=N.Uint8Array,se=Y.propertyIsEnumerable,ae=K.splice,le=(V=Object.keys,Z=Object,function(e){return V(Z(e))}),ce=De(N,"DataView"),ue=De(N,"Map"),he=De(N,"Promise"),de=De(N,"Set"),fe=De(N,"WeakMap"),pe=De(Object,"create"),me=Ze(ce),ge=Ze(ue),be=Ze(he),ye=Ze(de),ve=Ze(fe),we=ie?ie.prototype:void 0,_e=we?we.valueOf:void 0,Ee=we?we.toString:void 0;function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ce(e){var t=-1,r=e?e.length:0;for(this.__data__=new ke;++t<r;)this.add(e[t])}function Pe(e){this.__data__=new xe(e)}function Ie(e,t){var r=Qe(e)||Ye(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!te.call(e,o)||i&&("length"==o||He(o,n))||r.push(o);return r}function Se(e,t){for(var r=e.length;r--;)if(Je(e[r][0],t))return r;return-1}function Oe(e,t){for(var r=0,n=(t=ze(t,e)?[t]:Be(t)).length;null!=e&&r<n;)e=e[Ve(t[r++])];return r&&r==n?e:void 0}function Me(e,t){return null!=e&&t in Object(e)}function Te(e,t,r,n,i){return e===t||(null==e||null==t||!rt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var h=Qe(e),m=Qe(t),w=a,A=a;h||(w=(w=Ue(e))==s?p:w),m||(A=(A=Ue(t))==s?p:A);var x=w==p&&!z(e),k=A==p&&!z(t),C=w==A;if(C&&!x)return o||(o=new Pe),h||ot(e)?Le(e,t,r,n,i,o):function(e,t,r,n,i,o,s){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!n(new oe(e),new oe(t)));case l:case c:case f:return Je(+e,+t);case u:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case d:var a=q;case b:var h=2&o;if(a||(a=G),e.size!=t.size&&!h)return!1;var p=s.get(e);if(p)return p==t;o|=1,s.set(e,t);var m=Le(a(e),a(t),n,i,o,s);return s.delete(e),m;case v:if(_e)return _e.call(e)==_e.call(t)}return!1}(e,t,w,r,n,i,o);if(!(2&i)){var P=x&&te.call(e,"__wrapped__"),I=k&&te.call(t,"__wrapped__");
26if(P||I){var S=P?e.value():e,O=I?t.value():t;return o||(o=new Pe),r(S,O,n,i,o)}}return!!C&&(o||(o=new Pe),function(e,t,r,n,i,o){var s=2&i,a=st(e),l=a.length,c=st(t),u=c.length;if(l!=u&&!s)return!1;for(var h=l;h--;){var d=a[h];if(!(s?d in t:te.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=s;++h<l;){var g=e[d=a[h]],b=t[d];if(n)var y=s?n(b,g,d,t,e,o):n(g,b,d,e,t,o);if(!(void 0===y?g===b||r(g,b,n,i,o):y)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o))}(e,t,Te,r,n,i))}function Ne(e){return!(!rt(e)||function(e){return!!X&&X in e}(e))&&(et(e)||z(e)?ne:I).test(Ze(e))}function Re(e){return"function"==typeof e?e:null==e?at:"object"==typeof e?Qe(e)?function(e,t){return ze(e)&&qe(t)?Ge(Ve(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:Oe(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=ze(t,e)?[t]:Be(t);for(var n,i=-1,o=t.length;++i<o;){var s=Ve(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(o=e?e.length:0)&&tt(o)&&He(s,o)&&(Qe(e)||Ye(e))}(e,t,Me)}(r,e):Te(t,n,void 0,3)}}(e[0],e[1]):(r=function(e){for(var t=st(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,qe(i)]}return t}(t=e),1==r.length&&r[0][2]?Ge(r[0][0],r[0][1]):function(e){return e===t||function(e,t,r,n){var i=r.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var a=(s=r[i])[0],l=e[a],c=s[1];if(s[2]){if(void 0===l&&!(a in e))return!1}else if(!Te(c,l,n,3,new Pe))return!1}return!0}(e,0,r)}):ze(n=e)?(i=Ve(n),function(e){return null==e?void 0:e[i]}):function(e){return function(t){return Oe(t,e)}}(n);var t,r,n,i}function je(e){if(r=(t=e)&&t.constructor,n="function"==typeof r&&r.prototype||Y,t!==n)return le(e);var t,r,n,i=[];for(var o in Object(e))te.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Be(e){return Qe(e)?e:We(e)}Ae.prototype.clear=function(){this.__data__=pe?pe(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(pe){var r=t[e];return r===n?void 0:r}return te.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return pe?void 0!==t[e]:te.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=pe&&void 0===t?n:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():ae.call(t,r,1),0))},xe.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},xe.prototype.has=function(e){return Se(this.__data__,e)>-1},xe.prototype.set=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ke.prototype.clear=function(){this.__data__={hash:new Ae,map:new(ue||xe),string:new Ae}},ke.prototype.delete=function(e){return Fe(this,e).delete(e)},ke.prototype.get=function(e){return Fe(this,e).get(e)},ke.prototype.has=function(e){return Fe(this,e).has(e)},ke.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,n),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new xe},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof xe){var n=r.__data__;if(!ue||n.length<199)return n.push([e,t]),this;r=this.__data__=new ke(n)}return r.set(e,t),this};var $e=de&&1/G(new de([,-0]))[1]==i?function(e){return new de(e)}:function(){};function Le(e,t,r,n,i,o){var s=2&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,h=!0,d=1&i?new Ce:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var f=e[u],p=t[u];
26if(n)var m=s?n(p,f,u,t,e,o):n(f,p,u,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(d){if(!D(t,function(e,t){if(!d.has(t)&&(f===e||r(f,e,n,i,o)))return d.add(t)})){h=!1;break}}else if(f!==p&&!r(f,p,n,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Fe(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function De(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(r)?r:void 0}var Ue=function(e){return re.call(e)};function He(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t){if(Qe(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!it(e))||x.test(e)||!A.test(e)||null!=t&&e in Object(t)}function qe(e){return e==e&&!rt(e)}function Ge(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(ce&&Ue(new ce(new ArrayBuffer(1)))!=E||ue&&Ue(new ue)!=d||he&&Ue(he.resolve())!=m||de&&Ue(new de)!=b||fe&&Ue(new fe)!=w)&&(Ue=function(e){var t=re.call(e),r=t==p?e.constructor:void 0,n=r?Ze(r):void 0;if(n)switch(n){case me:return E;case ge:return d;case be:return m;case ye:return b;case ve:return w}return t});var We=Ke(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(it(e))return Ee?Ee.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return k.test(e)&&r.push(""),e.replace(C,function(e,t,n,i){r.push(n?i.replace(P,"$1"):t||e)}),r});function Ve(e){if("string"==typeof e||it(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return ee.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ke(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(Ke.Cache||ke),r}function Je(e,t){return e===t||e!=e&&t!=t}function Ye(e){return function(e){return nt(e)&&Xe(e)}(e)&&te.call(e,"callee")&&(!se.call(e,"callee")||re.call(e)==s)}Ke.Cache=ke;var Qe=Array.isArray;function Xe(e){return null!=e&&tt(e.length)&&!et(e)}function et(e){var t=rt(e)?re.call(e):"";return t==h||"[object GeneratorFunction]"==t}function tt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function rt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==typeof e}function it(e){return"symbol"==typeof e||nt(e)&&re.call(e)==v}var ot=L?function(e){return function(t){return e(t)}}(L):function(e){return nt(e)&&tt(e.length)&&!!O[re.call(e)]};function st(e){return Xe(e)?Ie(e):je(e)}function at(e){return e}e.exports=function(e,t){return e&&e.length?function(e,t,r){var n=-1,i=F,o=e.length,s=!0,a=[],l=a;if(o>=200){var c=t?null:$e(e);if(c)return G(c);s=!1,i=H,l=new Ce}else l=t?[]:a;e:for(;++n<o;){var u=e[n],h=t?t(u):u;if(u=0!==u?u:0,s&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),a.push(u)}else i(l,h,r)||(l!==a&&l.push(h),a.push(u))}return a}(e,Re(t)):[]}}(WP,WP.exports)),WP.exports);const ZP=t(VP);var KP,JP,YP,QP,XP,eI,tI,rI;(JP=KP||(KP={}
26)).AlphaWallet="isAlphaWallet",JP.ApexWallet="isApexWallet",JP.AToken="isAToken",JP.BifrostWallet="isBifrost",JP.Binance="bbcSignTx",JP.Bitpie="isBitpie",JP.BlockWallet="isBlockWallet",JP.Coinbase="isToshi",JP.CoinbaseExtension="isCoinbaseWallet",JP.Detected="request",JP.Dcent="isDcentWallet",JP.Exodus="isExodus",JP.Frontier="isFrontier",JP.Frame="isFrame",JP.HuobiWallet="isHbWallet",JP.HyperPay="isHyperPay",JP.ImToken="isImToken",JP.InfinityWallet="isInfinityWallet",JP.Liquality="isLiquality",JP.MeetOne="wallet",JP.MetaMask="isMetaMask",JP.MyKey="isMYKEY",JP.OwnBit="isOwnbit",JP.Status="isStatus",JP.Trust="isTrust",JP.TokenPocket="isTokenPocket",JP.TP="isTp",JP.WalletIo="isWalletIO",JP.XDEFI="isXDEFI",JP.OneInch="isOneInchIOSWallet",JP.Tokenary="isTokenary",JP.Tally="isTally",JP.BraveWallet="isBraveWallet",JP.Rabby="isRabby",JP.MathWallet="isMathWallet",JP.Bitget="isBitKeep",JP.Sequence="isSequence",JP.Core="isAvalanche",JP.Opera="isOpera",JP.Bitski="isBitski",JP.Enkrypt="isEnkrypt",JP.Phantom="isPhantom",JP.OKXWallet="isOkxWallet",JP.Zeal="isZeal",JP.Zerion="isZerion",JP.Rainbow="isRainbow",JP.SafePal="isSafePal",JP.DeFiWallet="isDeficonnectProvider",JP.Safeheron="isSafeheron",JP.Talisman="isTalisman",JP.OneKey="isOneKey",JP.Fordefi="isFordefi",JP.Coin98Wallet="isCoin98",JP.SubWallet="isSubWallet",JP.Kayros="isKayros",JP.FoxWallet="isFoxWallet",JP.Lif3Wallet="isLif3Wallet",JP.ZodiacPilot="isZodiacPilot",JP.StableWallet="isStableWallet",JP.Echooo="isEchooo",JP.Keplr="keplr",(QP=YP||(YP={})).Binance="https://www.bnbchain.org/ru/blog/binance-extension-wallet/",QP.Bitget="https://web3.bitget.com/en/wallet-download",QP.Coinbase="https://www.coinbase.com/wallet/downloads",QP.MetaMask="https://metamask.io/download/",QP.OKXWallet="https://okx.com/download",QP.Phantom="https://phantom.app/ul/v1/connect",QP.Talisman="https://www.talisman.xyz/",QP.Trust="https://link.trustwallet.com",QP.OneKey="https://onekey.so/download/",QP.RoninWallet="https://wallet.skymavis.com/",QP.Coin98Wallet="https://coin98.com/wallet/",QP.SubWallet="https://www.subwallet.app/",QP.Kayros="https://www.kayros.games/wallet/",QP.XDEFI="https://xdefi.io/",QP.FoxWallet="https://foxwallet.com/download",QP.Lif3Wallet="https://lif3.com",QP.Rabby="https://rabby.io",QP.ZodiacPilot="https://pilot.gnosisguild.org/",QP.Echooo="https://www.echooo.xyz",QP.Keplr="https://www.keplr.app/download",(eI=XP||(XP={})).AlphaWallet="AlphaWallet",eI.ApexWallet="Apex Wallet",eI.AToken="AToken",eI.BifrostWallet="Bifrost Wallet",eI.Binance="Binance Smart Wallet",eI.Bitpie="Bitpie",eI.Bitski="Bitski",eI.BlockWallet="BlockWallet",eI.Brave="Brave Wallet",eI.Coinbase="Coinbase Wallet",eI.Dcent="D'CENT",eI.Detected="Detected Wallet",eI.Exodus="Exodus",eI.Frame="Frame",eI.Frontier="Frontier",eI.HuobiWallet="Huobi Wallet",eI.HyperPay="HyperPay",eI.ImToken="imToken",eI.InfinityWallet="Infinity Wallet",eI.Liquality="Liquality",eI.MeetOne="MeetOne",eI.MetaMask="MetaMask",eI.MyKey="MyKey",eI.Opera="Opera Wallet",eI.OwnBit="OwnBit",eI.Status="Status Wallet",eI.Trust="Trust Wallet",eI.TokenPocket="TokenPocket",eI.TP="TP Wallet",eI.WalletIo="Wallet.io",eI.XDEFI="XDEFI Wallet",eI.OneInch="1inch Wallet",eI.Tokenary="Tokenary Wallet",eI.Tally="Taho",eI.Rabby="Rabby Wallet",eI.MathWallet="MathWallet",eI.Bitget="Bitget Wallet",eI.Sequence="Sequence",eI.Core="Core",eI.Enkrypt="Enkrypt",eI.Zeal="Zeal",eI.Phantom="Phantom",eI.OKXWallet="OKX Wallet",eI.Zerion="Zerion",eI.Rainbow="Rainbow",eI.SafePal="SafePal",eI.DeFiWallet="DeFi Wallet",eI.Safeheron="Safeheron",eI.Talisman="Talisman",eI.OneKey="OneKey",eI.Fordefi="Fordefi",eI.RoninWallet="Ronin Wallet",eI.Coin98Wallet="Coin98 Wallet",eI.SubWallet="SubWallet",eI.Kayros="Kayros",eI.FoxWallet="FoxWallet",eI.Lif3Wallet="Lif3 Wallet",eI.ZodiacPilot="Zodiac Pilot",eI.StableWallet="StableWallet",eI.Echooo="Echooo",eI.Keplr="Keplr",(rI=tI||(tI={})).Ethereum="ethereum",rI.Binance="BinanceChain",rI.Tally="tally",rI.Web3="web3",rI.Arbitrum="arbitrum",rI.XFI="xfi",rI.Bitget="bitkeep",rI.Avalanche="avalanche",rI.Bitski="Bitski",rI.Enkrypt="enkrypt",rI.Zeal="zeal",rI.Phantom="phantom",rI.OKXWallet="okxwallet",rI.Trust="trustwallet",rI.Frontier="frontier",rI.DeFiConnectProvider="deficonnectProvider",rI.Safeheron="safeheron",rI.Talisman="talismanEth",rI.OneKey="$onekey",rI.RoninWallet="ronin",rI.Coin98Wallet="coin98",rI.SubWallet="SubWallet",rI.Kayros="kayros",rI.FoxWallet="foxwallet",rI.Echooo="echo
26oo";const nI=null;function iI(e,t){return async()=>({provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?oI(e,t):window.ethereum})}function oI(e,t){return window.ethereum.providers.find(r=>t?!!r[e]&&!sI(e,r):!!r[e])}function sI(e,t){return Object.values(KP).filter(t=>t!==e&&t!==KP.Detected).some(e=>!!t[e])}const aI={label:XP.MetaMask,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.MetaMask]&&!sI(KP.MetaMask,e),getIcon:async()=>(await s(async()=>{const{default:e}=await import("./metamask.js-2f2KUeTc.js");return{default:e}},[])).default,getInterface:iI(KP.MetaMask,!0),platforms:["all"],externalUrl:YP.MetaMask},lI={label:XP.InfinityWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.InfinityWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./infinitywallet.js-gfFxBP6w.js");return{default:e}},[])).default,getInterface:iI(KP.InfinityWallet),platforms:["desktop"]},cI={label:XP.Exodus,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Exodus],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./exodus.js-CokzJYSo.js");return{default:e}},[])).default,getInterface:iI(KP.Exodus),platforms:["all"]},uI={label:XP.Frontier,injectedNamespace:tI.Frontier,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KP.Frontier],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./frontier.js-pp1M0Ep1.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.frontier.ethereum)}),platforms:["all"]},hI={label:XP.Brave,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.BraveWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./brave.js-COnsMRSe.js");return{default:e}},[])).default,getInterface:iI(KP.BraveWallet),platforms:["all"]},dI={label:XP.Binance,injectedNamespace:tI.Binance,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Binance],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./binance.js-GEfPipbx.js");return{default:e}},[])).default,getInterface:async()=>{let e={...window.BinanceChain};window.BinanceChain=e;const t=window.BinanceChain.on.bind(window.BinanceChain);window.BinanceChain.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const r=hi(window.BinanceChain,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then(e=>`0x${parseInt(e).toString(16)}`),eth_selectAccounts:nI,wallet_switchEthereumChain:nI});return r.removeListener=(e,t)=>{},{provider:r}},platforms:["desktop"],externalUrl:YP.Binance},fI={label:XP.Coinbase,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Coinbase]||!!e&&!!e[KP.CoinbaseExtension],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./coinbase.js-nx9WzATX.js");return{default:e}},[])).default,getInterface:async()=>{const{provider:e}=await iI(KP.CoinbaseExtension)(),t=e.on.bind(e);return e.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)},{provider:e}}
26,platforms:["all"],externalUrl:YP.Coinbase},pI={label:XP.Detected,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Detected],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./detected.js-CXNCFt-l.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},mI={label:XP.Trust,injectedNamespace:tI.Trust,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Trust],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./trust.js-DCUM3oX2.js");return{default:e}},[])).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(tI.Ethereum)&&window[tI.Ethereum].isTrust?window[tI.Ethereum]:window[tI.Trust],{provider:e}},platforms:["all"],externalUrl:YP.Trust},gI={label:XP.Opera,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Opera],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./opera.js-BgrfWfjB.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{eth_requestAccounts:async({baseRequest:e})=>e({method:"eth_accounts"}),eth_selectAccounts:nI})}),platforms:["all"]},bI={label:XP.Status,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Status],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./status.js-DEbRpCSZ.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},yI={label:XP.AlphaWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.AlphaWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./alphawallet.js-DDGqoAMX.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},vI={label:XP.ApexWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.ApexWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./apexwallet.js-ClxzXof4.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},wI={label:XP.AToken,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.AToken],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./atoken.js-DG5ZqNiJ.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},_I={label:XP.BifrostWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.BifrostWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./bifrostwallet.js-BN2G_0aE.js");return{default:e}},[])).default,getInterface:iI(KP.BifrostWallet),platforms:["all"]},EI={label:XP.Bitpie,injectedNamespace:tI.Ethereum,checkProviderIdentity:()=>!!window.Bitpie,getIcon:async()=>(await s(async()=>{const{default:e}=await import("./bitpie.js-URLewS8C.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},AI={label:XP.BlockWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.BlockWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./blockwallet.js-Cs5M7-5w.js");return{default:e}},[])).default,getInterface:iI(KP.BlockWallet),platforms:["desktop"]},xI={label:XP.Frame,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Frame],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./frame.js-BsC1Ye0K.js");return{default:e}},[])).default,getInterface:async()=>{const e=window.ethereum;if(!e||!e.connected)throw new Error("Frame App must be open with a hot wallet connected. If not installed first download the Frame App.");return{provider:e}},platforms:["desktop"]},kI={label:XP.HuobiWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.HuobiWallet],getIcon:async()=>(await s(async()=>{const{default:e}
26=await import("./huobiwallet.js-w3alwy5n.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},CI={label:XP.HyperPay,injectedNamespace:tI.Ethereum,checkProviderIdentity:()=>!!window.hiWallet,getIcon:async()=>(await s(async()=>{const{default:e}=await import("./hyperpay.js-AkXxfXft.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},PI={label:XP.ImToken,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.ImToken],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./imtoken.js-DFAW873f.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{eth_selectAccounts:nI})}),platforms:["mobile"]},II={label:XP.Liquality,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Liquality],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./liquality.js-CQ_ZtmPM.js");return{default:e}},[])).default,getInterface:async()=>{const e=hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI});return e.removeListener=(e,t)=>{},{provider:e}}
26,platforms:["desktop"]},SI={label:XP.MeetOne,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&"MEETONE"===e[KP.MeetOne],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./meetone.js-Cag_bWkO.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},OI={label:XP.MyKey,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.MyKey],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./mykey.js-DNePBAVw.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},MI={label:XP.OwnBit,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.OwnBit],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./ownbit.js-BLoiVM6j.js");return{default:e}},[])).default,getInterface:async()=>{const e=hi(window.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then(e=>`0x${parseInt(e).toString(16)}`),wallet_switchEthereumChain:nI,eth_selectAccounts:nI});return e.removeListener=(e,t)=>{},e.on=(e,t)=>{},{provider:e}}
26,platforms:["mobile"]},TI={label:XP.TokenPocket,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.TokenPocket]&&!e[KP.TP],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./tokenpocket.js-CzNPANTU.js");return{default:e}},[])).default,getInterface:iI(KP.TokenPocket),platforms:["all"]},NI={label:XP.TP,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.TP],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./tp.js-6kPEdZBv.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},RI={label:XP.XDEFI,injectedNamespace:tI.XFI,checkProviderIdentity:({provider:e})=>e&&e.ethereum&&e.ethereum[KP.XDEFI],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./xdefi.js-BxjnZgnn.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.xfi&&window.xfi.ethereum}),platforms:["all"],externalUrl:YP.XDEFI},jI={label:XP.OneInch,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.OneInch],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./oneInch.js-B7iBSV4X.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["mobile"]},BI={label:XP.Tokenary,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Tokenary],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./tokenary.js-DOhWyebD.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["all"]},$I={label:XP.Tally,injectedNamespace:tI.Tally,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Tally],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./tallywallet.js-B-PvILbQ.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.tally)}),platforms:["desktop"]},LI={label:XP.Zeal,injectedNamespace:tI.Zeal,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Zeal],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./zeal.js-DfuGIw_I.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.zeal)}),platforms:["desktop"]},FI={label:XP.Rabby,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Rabby],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./rabby.js-Cjzjgpxv.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["desktop","mobile"]},DI={label:XP.MathWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.MathWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./mathwallet.js-Bt0Tsmap.js");return{default:e}},[])).default,getInterface:iI(KP.MathWallet),platforms:["all"]},UI={label:XP.Bitget,injectedNamespace:tI.Bitget,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KP.Bitget],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./bitget.js-CGoh9UgG.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.bitkeep&&window.bitkeep.ethereum}),platforms:["all"],externalUrl:YP.Bitget},HI={label:XP.Sequence,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Sequence],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./sequence.js-DTlB_NhP.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},zI={label:XP.Core,injectedNamespace:tI.Avalanche,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Core],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./core.js--gtwoTTK.js");return{default:e}},[])).default,getInterface:iI(KP.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},qI={label:XP.Bitski,injectedNamespace:tI.Bitski,checkProviderIdentity:({provider:e})=>!!e&&!!e.getProvider&&!!e.getProvider().isBitski,getIcon:async()=>(await s(async()=>{const{default:e}=await import("./bitski.js-SmR6xDPs.js");return{default:e}},[])).default,getInterface:async()=>({provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()}),platforms:["all"]},GI={label:XP.Zerion,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Zerion],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./zerion.js-BjopJh5c.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["all"]},WI={label:XP.Enkrypt,injectedNamespace:tI.Enkrypt,checkProviderIdentity:({provider:e})=>!!e&&!!e.providers&&!!e.providers.ethereum,getIcon:async()=>(await s(async()=>{const{default:e}=await import("./enkrypt.js-CscaWzeK.js");return{default:e}},[])).default,getInterface:async()=>{const e=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum);window.enkrypt.providers.ethereum.on=(t,r)=>
26{e(t,"chainChanged"===t?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const t=hi(window.enkrypt.providers.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then(e=>`0x${parseInt(e).toString(16)}`)});return t.removeListener=(e,t)=>{},{provider:t}},platforms:["all"]},VI={label:XP.Phantom,injectedNamespace:tI.Phantom,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KP.Phantom],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./phantom.js-CSi5eDM6.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.phantom.ethereum)}),platforms:["all"],externalUrl:YP.Phantom},ZI={label:XP.SafePal,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.SafePal],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./safepal.js-C5j6LLFS.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["all"]},KI={label:XP.Rainbow,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Rainbow],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./rainbow.js-B9nbFmgm.js");return{default:e}},[])).default,getInterface:iI(KP.Rainbow),platforms:["all"]},JI={label:XP.OKXWallet,injectedNamespace:tI.OKXWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.OKXWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./okxwallet.js-DyCWl_5v.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.okxwallet)}),platforms:["all"],externalUrl:YP.OKXWallet},YI={label:XP.DeFiWallet,injectedNamespace:tI.DeFiConnectProvider,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.DeFiWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./defiwallet.js-B6qDvAH-.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.deficonnectProvider)}),platforms:["all"]},QI={label:XP.Safeheron,injectedNamespace:tI.Safeheron,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Safeheron],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./safeheron.js-DELDsIKZ.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.safeheron)}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},XI={label:XP.Talisman,injectedNamespace:tI.Talisman,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Talisman],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./talisman.js-B0ZZJM94.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.talismanEth)}),platforms:["desktop"],externalUrl:YP.Talisman},eS={label:XP.RoninWallet,injectedNamespace:tI.RoninWallet,checkProviderIdentity:({provider:e})=>!!e,getIcon:async()=>(await s(async()=>{const{default:e}=await import("./roninwallet.js-BuA6hniA.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ronin.provider)}),platforms:["all"],externalUrl:YP.RoninWallet},tS=[LI,cI,uI,aI,_I,dI,fI,pI,mI,gI,bI,yI,vI,wI,UI,EI,AI,hI,xI,kI,CI,PI,II,SI,OI,MI,TI,NI,RI,jI,BI,$I,FI,DI,HI,zI,qI,WI,VI,JI,GI,KI,ZI,YI,lI,QI,XI,{label:XP.OneKey,injectedNamespace:tI.OneKey,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[KP.OneKey],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./onekey.js-CLInUiqA.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.$onekey.ethereum)}),platforms:["all"],externalUrl:YP.OneKey},{label:XP.Fordefi,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Fordefi],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./fordefi.js-CVVKuHzZ.js");return{default:e}},[])).default,getInterface:iI(KP.Fordefi,!0),platforms:["desktop"]},eS,{label:XP.Coin98Wallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Coin98Wallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./coin98wallet.js-BPH2yV6a.js");return{default:e}},[])).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(tI.Ethereum)&&window[tI.Ethereum].isCoin98?window[tI.Ethereum]:window[tI.Coin98Wallet].provider,{provider:e}}
26,platforms:["all"],externalUrl:YP.Coin98Wallet},{label:XP.SubWallet,injectedNamespace:tI.SubWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.SubWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./subwallet.js-BrCktkYs.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.SubWallet)}),platforms:["all"],externalUrl:YP.SubWallet},{label:XP.Kayros,injectedNamespace:tI.Kayros,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Kayros],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./kayros.js-DvuQyfd6.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.kayros)}),platforms:["desktop"]},{label:XP.FoxWallet,injectedNamespace:tI.FoxWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.FoxWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./foxwallet.js-BQ8XEHp4.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.foxwallet)}),platforms:["mobile"]},{label:XP.Lif3Wallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Lif3Wallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./lif3wallet.js-BkKaKBsD.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum,{wallet_switchEthereumChain:nI,eth_selectAccounts:nI})}),platforms:["mobile"]},{label:XP.ZodiacPilot,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.ZodiacPilot],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./zodiacpilot.js-CozppZuu.js");return{default:e}},[])).default,getInterface:async()=>({provider:hi(window.ethereum)}),platforms:["desktop"],externalUrl:YP.ZodiacPilot},{label:XP.StableWallet,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.StableWallet],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./stablewallet.js-D3fFDTkG.js");return{default:e}},[])).default,getInterface:iI(KP.StableWallet),platforms:["mobile"]},{label:XP.Echooo,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Echooo],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./echooo.js-DVY8aLji.js");return{default:e}},[])).default,getInterface:iI(KP.Echooo),platforms:["all"],externalUrl:YP.Echooo},{label:XP.Keplr,injectedNamespace:tI.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[KP.Keplr],getIcon:async()=>(await s(async()=>{const{default:e}=await import("./keplr.js-BcK9FEKR.js");return{default:e}},[])).default,getInterface:iI(KP.Keplr),platforms:["all"],externalUrl:YP.Keplr}],rS=ci.object({label:ci.string().required(),getIcon:ci.function().arity(0).required(),getInterface:ci.function().maxArity(1).required(),injectedNamespace:ci.string().required(),checkProviderIdentity:ci.function().arity(1).required(),platforms:ci.array().items(ci.string()),externalUrl:ci.string()}),nS=ci.array().items(rS),iS=ci.object().pattern(/\w+/,ci.any().allow(ci.boolean(),ci.array().items(ci.string()))),oS=ci.object({custom:nS,filter:iS,displayUnavailable:[ci.boolean(),ci.array().items(ci.string())],walletUnavailableMessage:ci.function(),sort:ci.function(),externalUrl:ci.string(),disable6963Support:ci.boolean()}),sS=ci.object({uuid:ci.string().required(),name:ci.string().required(),icon:ci.string().required(),rdns:ci.string().required()}),aS=ci.object({info:sS.required(),provider:ci.object().required()});const lS=[];function cS(){window.addEventListener("eip6963:announceProvider",e=>{const t=e,{detail:r}=t;if(!r)return;if(t){const e=Td(aS,r);if(e&&e.error)throw e.error}const{info:n,provider:i}=r,{name:o,icon:s}=n;var a;(a=s)&&(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi.test(a)||/\bon[a-z]+\s*=\s*["']?(?:javascript:)?/gi.test(a)||/\b(href|xlink:href)\s*=\s*["']?javascript:/gi.test(a))||lS.push({label:o,getIcon:async()=>s,getInterface:async()=>({provider:i}),platforms:["all"],eip6963Provider:i,checkProviderIdentity:({provider:e})=>!!e})}),window.dispatchEvent(new CustomEvent("eip6963:requestProvider"))}function uS(e){if("undefined"==typeof window)return()=>null;if(e){const t=Td(oS,e);if(t&&t.error)throw t.error}return!(null==e?void 0:e.disable6963Support)&&cS(),t=>{const{device:r}=t,{custom:n=[],filter:i={},displayUnavailable:o,sort:s,walletUnavailableMessage:a}=e||{},l=ZP([...n,...lS,...tS],({label:e})=>e).reduce((e,t)=>
26{const{label:n,platforms:s,injectedNamespace:l,checkProviderIdentity:c,eip6963Provider:u}=t,h=i[n],d=!1===h,f=((e,t,r)=>{var n;return!!e&&(!!t({provider:e,device:r})||Array.isArray(e.providers)&&!!(null==(n=e.providers)?void 0:n.some(e=>t({provider:e,device:r}))))})(u||window[l],c,r);let p=!1;Array.isArray(h)&&(h.includes(r.type)||r.os&&h.includes(r.os.name))&&(p=!0),"unavailable"!==h||f||(p=!0);const m=!s.includes("all")&&null!==r.type&&!s.includes(r.type)&&!s.includes(r.os.name);return!d&&!p&&!m&&(f||!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&e.push((!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&!f?{...t,getInterface:async()=>{throw new Error(a?a(t):(({label:e,externalUrl:t})=>t?`Please <a href="${t}" target="_blank">install or switch to</a> ${e} to continue`:`Please install or enable ${e} to continue`)(t))}}:t),e},[]);if(l.length){const e=l.length>1,t=l.filter(t=>{const{label:r}=t;return!(r===XP.Detected&&e)}).map(({label:e,getIcon:t,getInterface:r})=>({label:e,getIcon:t,getInterface:r})).sort((e,t)=>e.label<t.label?-1:e.label>t.label?1:0);return s?s(t):t}return[]}}const hS=ci.object({handleUri:ci.func().optional(),version:ci.number().optional().custom((e,t)=>{if(1===e);else if(2!==e&&void 0!==e)return t.error("any.invalid",{message:"Invalid version number. This version of @web3-onboard/walletconnect only supports version 2"});return e},"Custom version validation"),projectId:ci.string().messages({"any.required":"WalletConnect version 2 requires a projectId. Please visit https://cloud.walletconnect.com to get one."}),dappUrl:ci.string().optional().custom((e,t)=>e||t.message({message:"It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.",type:"any.custom"}),"Custom dappUrl validation"),requiredChains:ci.array().items(ci.number()).optional(),optionalChains:ci.array().items(ci.number()).optional(),qrModalOptions:ci.object().optional(),additionalRequiredMethods:ci.array().items(ci.string()).optional(),additionalOptionalMethods:ci.array().items(ci.string()).optional()}),dS=["eth_sendTransaction","eth_signTransaction","personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","wallet_addEthereumChain","wallet_switchEthereumChain"];const fS=e=>!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/));function pS(e){if(!e)throw new Error("WalletConnect requires an initialization object to be passed - see the official docs for an example: https://onboard.blocknative.com/docs/wallets/walletconnect");if(e){const t=((e,t)=>{const r=hS.validate(t);return r.error?r:null})(0,e);if(t)throw t}return function(e){if(!e.projectId)throw new Error("WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.");e.dappUrl;const{projectId:t,handleUri:r,requiredChains:n,optionalChains:i,qrModalOptions:o,additionalRequiredMethods:a,additionalOptionalMethods:l,dappUrl:c}=e;let u;return()=>({label:"WalletConnect",getIcon:async()=>(await s(async()=>{const{default:e}=await import("./icon.js-PTTWqe_R.js");return{default:e}},[])).default,getInterface:async({chains:h,EventEmitter:d,appMetadata:f})=>{const{ProviderRpcError:p,ProviderRpcErrorCode:m}=await s(async()=>{const{ProviderRpcError:e,ProviderRpcErrorCode:t}=await Promise.resolve().then(()=>$d);return{ProviderRpcError:e,ProviderRpcErrorCode:t}},void 0),{default:g,REQUIRED_METHODS:b}=await s(async()=>{const{default:e,REQUIRED_METHODS:t}=await import("./chunk-CdSArBFG.js").then(e=>e.X);return{default:e,REQUIRED_METHODS:t}},__vite__mapDeps([8,2])),{Subject:y,fromEvent:v}=await s(async()=>{const{Subject:e,fromEvent:t}=await Promise.resolve().then(()=>Xe);return{Subject:e,fromEvent:t}},void 0),{takeUntil:w,take:_}=await s(async()=>{const{takeUntil:e,take:t}=await Promise.resolve().then(()=>et);return{takeUntil:e,take:t}},void 0),E=Array.isArray(n)&&n.length&&n.every(e=>!isNaN(e))?n.map(e=>parseInt(e)):[],A=Array.isArray(i)&&i.length&&i.every(e=>!isNaN(e))?i.map(e=>parseInt(e)):h.map(({id:e})=>parseInt(e,16)),x=new Set(a&&Array.isArray(a)?[...a,...b]:b),k=Array.from(x),C=l&&Array.isArray(l)?[...l,...dS]:dS,P=await g.init({projectId:t,chains:E,methods:k,optionalChains:A,optionalMethods:C,showQrModal:!0,rpcMap:h.map(({id:e,rpcUrl:t})=>({id:e,rpcUrl:t})).reduce((e,{id:t,rpcUrl:r})=>(e[parseInt(t,16)]=r||"",e),{}),metadata:(()=>
26{if(!f)return;const e=c||f.explore||"";!e&&e.length;const t={name:f.name,description:f.description||"",url:e,icons:[]};return void 0!==f.icon&&f.icon.length&&(t.icons=[f.icon]),void 0!==f.logo&&f.logo.length&&(t.icons=t.icons.length?[...t.icons,f.logo]:[f.logo]),t})(),qrModalOptions:o}),I=new d;return{provider:new class{constructor({connector:t,chains:n}){this.emit=I.emit.bind(I),this.on=I.on.bind(I),this.removeListener=I.removeListener.bind(I),this.connector=t,this.chains=n,this.disconnected$=new y,v(this.connector,"accountsChanged",e=>e).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=Array.isArray(e)?e:[e];this.emit("accountsChanged",t)},error:console.warn}),v(this.connector,"chainChanged",e=>e).pipe(w(this.disconnected$)).subscribe({next:e=>{const t=fS(e)?e:`0x${e.toString(16)}`;this.emit("chainChanged",t)},error:console.warn}),v(this.connector,"session_delete",e=>e).pipe(w(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")},error:console.warn}),this.disconnect=()=>{this.connector.session&&(this.connector.disconnect(),u=null)},e&&r&&v(this.connector,"display_uri",e=>e).pipe(w(this.disconnected$)).subscribe(async e=>{try{r&&await r(e)}catch(t){throw`An error occurred when handling the URI. Error: ${t}`}}),(()=>{const e=this.connector.session;
26u=e,e&&(this.emit("accountsChanged",this.connector.accounts),this.emit("chainChanged",this.connector.chainId))})(),this.request=async({method:e,params:t})=>{if("eth_chainId"===e)return fS(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if("eth_requestAccounts"===e)return new Promise(async(e,t)=>{if(v(this.connector,"connect",e=>e).pipe(_(1)).subscribe({next:({chainId:t})=>{this.emit("accountsChanged",this.connector.accounts);const r=fS(t)?t:`0x${t.toString(16)}`;this.emit("chainChanged",r),e(this.connector.accounts)},error:t}),this.connector.session){const t=this.connector.accounts,r=this.connector.chainId;u=this.connector.session;const n=`0x${r.toString(16)}`;return this.emit("chainChanged",n),e(t)}await this.connector.connect().catch(e=>{t(new p({code:4001,message:"User rejected the request."}))})});if("eth_selectAccounts"===e)throw new p({code:m.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${e}`});if("wallet_switchEthereumChain"==e){if(!t)throw new p({code:m.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const e=t[0];if(!e.hasOwnProperty("chainId")||void 0===e.chainId)throw new p({code:m.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:e.chainId}]})}return this.connector.request({method:e,params:t})}}}({chains:h,connector:P}),instance:u}}})}(e)}export{Dp as $,tm as A,$m as B,IC as C,Bm as D,jm as E,tp as F,qg as G,jp as H,Cf as I,wf as J,eb as K,cy as L,of as M,qb as N,$p as O,XP as P,hf as Q,vf as R,Dm as S,op as T,Cm as U,cm as V,DP as W,km as X,Fp as Y,Np as Z,s as _,Tw as a,Il as a$,uf as a0,Nf as a1,vb as a2,Pm as a3,xb as a4,Cb as a5,Nm as a6,Mm as a7,Hp as a8,Qd as a9,Up as aA,mf as aB,Im as aC,Sm as aD,cf as aE,zp as aF,cp as aG,ii as aH,Yp as aI,Qp as aJ,yf as aK,bf as aL,Wm as aM,Zg as aN,Vm as aO,Vg as aP,pf as aQ,ff as aR,Id as aS,Ef as aT,Tm as aU,Ab as aV,Jp as aW,Ln as aX,Nu as aY,Qu as aZ,Cl as a_,sp as aa,tb as ab,mb as ac,Tf as ad,rm as ae,kb as af,im as ag,Rm as ah,um as ai,G as aj,Be as ak,Ze as al,Gm as am,Le as an,Ue as ao,Mb as ap,bb as aq,Mp as ar,Hg as as,sb as at,Od as au,zm as av,df as aw,gp as ax,_f as ay,Om as az,pS as b,io as b0,kl as b1,oh as b2,co as b3,ms as b4,Vu as b5,ds as b6,ss as b7,to as b8,ml as b9,ih as ba,sh as bb,Cc as bc,_i as bd,Xa as be,ll as bf,Ad as bg,_o as bh,so as bi,hc as bj,bo as bk,ql as bl,Zi as bm,_w as c,Aw as d,Fm as e,zP as f,kp as g,Op as h,uS as i,Em as j,wm as k,_m as l,Sp as m,xp as n,Bp as o,qP as p,Tp as q,Rp as r,ap as s,Am as t,Mw as u,Lp as v,ep as w,Ke as x,Ve as y,up as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.