@worldcoin/idkit 0.4.0-alpha.1 → 0.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/idkit-js.js
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
var IDKit=(()=>{var ML=Object.create;var xc=Object.defineProperty,NL=Object.defineProperties,kL=Object.getOwnPropertyDescriptor,FL=Object.getOwnPropertyDescriptors,LL=Object.getOwnPropertyNames,Wd=Object.getOwnPropertySymbols,$L=Object.getPrototypeOf,By=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable;var OE=(e,t,r)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ne=(e,t)=>{for(var r in t||(t={}))By.call(t,r)&&OE(e,r,t[r]);if(Wd)for(var r of Wd(t))IE.call(t,r)&&OE(e,r,t[r]);return e},_e=(e,t)=>NL(e,FL(t));var RE=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Le=(e,t)=>{var r={};for(var n in e)By.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wd)for(var n of Wd(e))t.indexOf(n)<0&&IE.call(e,n)&&(r[n]=e[n]);return r};var Ka=(e,t)=>()=>(e&&(t=e(e=0)),t);var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ar=(e,t)=>{for(var r in t)xc(e,r,{get:t[r],enumerable:!0})},Gd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LL(t))!By.call(e,i)&&i!==r&&xc(e,i,{get:()=>t[i],enumerable:!(n=kL(t,i))||n.enumerable});return e},lr=(e,t,r)=>(Gd(e,t,"default"),r&&Gd(r,t,"default")),me=(e,t,r)=>(r=e!=null?ML($L(e)):{},Gd(t||!e||!e.__esModule?xc(r,"default",{value:e,enumerable:!0}):r,e)),AE=e=>Gd(xc({},"__esModule",{value:!0}),e);var UL,O,c=Ka(()=>{UL="production",O={MODE:UL}});function LE(){Hy=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Si[t]=e[t],Hn[e.charCodeAt(t)]=t;Hn["-".charCodeAt(0)]=62,Hn["_".charCodeAt(0)]=63}function jL(e){Hy||LE();var t,r,n,i,o,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new VL(a*3/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=Hn[e.charCodeAt(t)]<<18|Hn[e.charCodeAt(t+1)]<<12|Hn[e.charCodeAt(t+2)]<<6|Hn[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=i&255;return o===2?(i=Hn[e.charCodeAt(t)]<<2|Hn[e.charCodeAt(t+1)]>>4,s[u++]=i&255):o===1&&(i=Hn[e.charCodeAt(t)]<<10|Hn[e.charCodeAt(t+1)]<<4|Hn[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=i&255),s}function BL(e){return Si[e>>18&63]+Si[e>>12&63]+Si[e>>6&63]+Si[e&63]}function zL(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(BL(n));return i.join("")}function NE(e){Hy||LE();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(zL(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],i+=Si[t>>2],i+=Si[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Si[t>>10],i+=Si[t>>4&63],i+=Si[t<<2&63],i+="="),o.push(i),o.join("")}function Yd(){return _.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wi(e,t){if(Yd()<t)throw new RangeError("Invalid typed array length");return _.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=_.prototype):(e===null&&(e=new _(t)),e.length=t),e}function _(e,t,r){if(!_.TYPED_ARRAY_SUPPORT&&!(this instanceof _))return new _(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return qy(this,e)}return $E(this,e,t,r)}function $E(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?KL(e,t,r,n):typeof t=="string"?qL(e,t,r):WL(e,t)}function UE(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function HL(e,t,r,n){return UE(t),t<=0?Wi(e,t):r!==void 0?typeof n=="string"?Wi(e,t).fill(r,n):Wi(e,t).fill(r):Wi(e,t)}function qy(e,t){if(UE(t),e=Wi(e,t<0?0:Ky(t)|0),!_.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function qL(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!_.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=VE(t,r)|0;e=Wi(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function zy(e,t){var r=t.length<0?0:Ky(t.length)|0;e=Wi(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function KL(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),_.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=_.prototype):e=zy(e,t),e}function WL(e,t){if(Ci(t)){var r=Ky(t.length)|0;return e=Wi(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||d$(t.length)?Wi(e,0):zy(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return zy(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ky(e){if(e>=Yd())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Yd().toString(16)+" bytes");return e|0}function Ci(e){return!!(e!=null&&e._isBuffer)}function VE(e,t){if(Ci(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Xd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return WE(e).length;default:if(n)return Xd(e).length;t=(""+t).toLowerCase(),n=!0}}function GL(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return i$(this,t,r);case"utf8":case"utf-8":return zE(this,t,r);case"ascii":return r$(this,t,r);case"latin1":case"binary":return n$(this,t,r);case"base64":return e$(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o$(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ks(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function jE(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=_.from(t,n)),Ci(t))return t.length===0?-1:kE(e,t,r,n,i);if(typeof t=="number")return t=t&255,_.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):kE(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function kE(e,t,r,n,i){var o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function u(v,w){return o===1?v[w]:v.readUInt16BE(w*o)}var l;if(i){var p=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*o}else p!==-1&&(l-=l-p),p=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var h=!0,y=0;y<a;y++)if(u(e,l+y)!==u(t,y)){h=!1;break}if(h)return l}return-1}function YL(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(s*2,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function XL(e,t,r,n){return Jd(Xd(t,e.length-r),e,r,n)}function BE(e,t,r,n){return Jd(c$(t),e,r,n)}function ZL(e,t,r,n){return BE(e,t,r,n)}function QL(e,t,r,n){return Jd(WE(t),e,r,n)}function JL(e,t,r,n){return Jd(f$(t,e.length-r),e,r,n)}function e$(e,t,r){return t===0&&r===e.length?NE(e):NE(e.slice(t,r))}function zE(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,l,p,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],(u&192)===128&&(h=(o&31)<<6|u&63,h>127&&(s=h));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(h=(o&15)<<12|(u&63)<<6|l&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=e[i+1],l=e[i+2],p=e[i+3],(u&192)===128&&(l&192)===128&&(p&192)===128&&(h=(o&15)<<18|(u&63)<<12|(l&63)<<6|p&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return t$(n)}function t$(e){var t=e.length;if(t<=FE)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=FE));return r}function r$(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function n$(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function i$(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=l$(e[o]);return i}function o$(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function mr(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function sn(e,t,r,n,i,o){if(!Ci(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Zd(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Qd(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function HE(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qE(e,t,r,n,i){return i||HE(e,t,r,4,34028234663852886e22,-34028234663852886e22),YE(e,t,r,n,23,4),r+4}function KE(e,t,r,n,i){return i||HE(e,t,r,8,17976931348623157e292,-17976931348623157e292),YE(e,t,r,n,52,8),r+8}function a$(e){if(e=u$(e).replace(s$,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function u$(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function l$(e){return e<16?"0"+e.toString(16):e.toString(16)}function Xd(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function c$(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function f$(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function WE(e){return jL(a$(e))}function Jd(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function d$(e){return e!==e}function h$(e){return e!=null&&(!!e._isBuffer||GE(e)||p$(e))}function GE(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function p$(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&GE(e.slice(0,0))}function eh(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,l=u>>1,p=-7,h=r?i-1:0,y=r?-1:1,v=e[t+h];for(h+=y,o=v&(1<<-p)-1,v>>=-p,p+=a;p>0;o=o*256+e[t+h],h+=y,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=y,p-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(v?-1:1)*s*Math.pow(2,o-n)}function YE(e,t,r,n,i,o){var s,a,u,l=o*8-i-1,p=(1<<l)-1,h=p>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,w=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=y/u:t+=y*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=p?(a=0,s=p):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+v]=a&255,v+=w,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+v]=s&255,v+=w,s/=256,l-=8);e[r+v-w]|=C*128}var Si,Hn,VL,Hy,FE,s$,XE=Ka(()=>{c();d();f();Si=[],Hn=[],VL=typeof Uint8Array<"u"?Uint8Array:Array,Hy=!1;_.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;_.poolSize=8192;_._augment=function(e){return e.__proto__=_.prototype,e};_.from=function(e,t,r){return $E(null,e,t,r)};_.kMaxLength=Yd();_.TYPED_ARRAY_SUPPORT&&(_.prototype.__proto__=Uint8Array.prototype,_.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&_[Symbol.species]);_.alloc=function(e,t,r){return HL(null,e,t,r)};_.allocUnsafe=function(e){return qy(null,e)};_.allocUnsafeSlow=function(e){return qy(null,e)};_.isBuffer=h$;_.compare=function(t,r){if(!Ci(t)||!Ci(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};_.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};_.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return _.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=_.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!Ci(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};_.byteLength=VE;_.prototype._isBuffer=!0;_.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ks(this,r,r+1);return this};_.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ks(this,r,r+3),ks(this,r+1,r+2);return this};_.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ks(this,r,r+7),ks(this,r+1,r+6),ks(this,r+2,r+5),ks(this,r+3,r+4);return this};_.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?zE(this,0,t):GL.apply(this,arguments)};_.prototype.equals=function(t){if(!Ci(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:_.compare(this,t)===0};_.prototype.compare=function(t,r,n,i,o){if(!Ci(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,a=n-r,u=Math.min(s,a),l=this.slice(i,o),p=t.slice(r,n),h=0;h<u;++h)if(l[h]!==p[h]){s=l[h],a=p[h];break}return s<a?-1:a<s?1:0};_.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};_.prototype.indexOf=function(t,r,n){return jE(this,t,r,n,!0)};_.prototype.lastIndexOf=function(t,r,n){return jE(this,t,r,n,!1)};_.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return YL(this,t,r,n);case"utf8":case"utf-8":return XL(this,t,r,n);case"ascii":return BE(this,t,r,n);case"latin1":case"binary":return ZL(this,t,r,n);case"base64":return QL(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JL(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};FE=4096;_.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(_.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=_.prototype;else{var o=r-t;i=new _(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};_.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||mr(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return i};_.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||mr(t,r,this.length);for(var i=this[t+--r],o=1;r>0&&(o*=256);)i+=this[t+--r]*o;return i};_.prototype.readUInt8=function(t,r){return r||mr(t,1,this.length),this[t]};_.prototype.readUInt16LE=function(t,r){return r||mr(t,2,this.length),this[t]|this[t+1]<<8};_.prototype.readUInt16BE=function(t,r){return r||mr(t,2,this.length),this[t]<<8|this[t+1]};_.prototype.readUInt32LE=function(t,r){return r||mr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};_.prototype.readUInt32BE=function(t,r){return r||mr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};_.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||mr(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};_.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||mr(t,r,this.length);for(var i=r,o=1,s=this[t+--i];i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};_.prototype.readInt8=function(t,r){return r||mr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};_.prototype.readInt16LE=function(t,r){r||mr(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};_.prototype.readInt16BE=function(t,r){r||mr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};_.prototype.readInt32LE=function(t,r){return r||mr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};_.prototype.readInt32BE=function(t,r){return r||mr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};_.prototype.readFloatLE=function(t,r){return r||mr(t,4,this.length),eh(this,t,!0,23,4)};_.prototype.readFloatBE=function(t,r){return r||mr(t,4,this.length),eh(this,t,!1,23,4)};_.prototype.readDoubleLE=function(t,r){return r||mr(t,8,this.length),eh(this,t,!0,52,8)};_.prototype.readDoubleBE=function(t,r){return r||mr(t,8,this.length),eh(this,t,!1,52,8)};_.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;sn(this,t,r,n,o,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};_.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;sn(this,t,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};_.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,1,255,0),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};_.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Zd(this,t,r,!0),r+2};_.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Zd(this,t,r,!1),r+2};_.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Qd(this,t,r,!0),r+4};_.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Qd(this,t,r,!1),r+4};_.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);sn(this,t,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};_.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);sn(this,t,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};_.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,1,127,-128),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};_.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Zd(this,t,r,!0),r+2};_.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Zd(this,t,r,!1),r+2};_.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,4,2147483647,-2147483648),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Qd(this,t,r,!0),r+4};_.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||sn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Qd(this,t,r,!1),r+4};_.prototype.writeFloatLE=function(t,r,n){return qE(this,t,r,!0,n)};_.prototype.writeFloatBE=function(t,r,n){return qE(this,t,r,!1,n)};_.prototype.writeDoubleLE=function(t,r,n){return KE(this,t,r,!0,n)};_.prototype.writeDoubleBE=function(t,r,n){return KE(this,t,r,!1,n)};_.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var o=i-n,s;if(this===t&&n<r&&r<i)for(s=o-1;s>=0;--s)t[s+r]=this[s+n];else if(o<1e3||!_.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o};_.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!_.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var a=Ci(t)?t:Xd(new _(t,i).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};s$=/[^+\/0-9A-Za-z-_]/g});var f=Ka(()=>{XE()});var a3=we(lt=>{"use strict";c();d();f();var bc=Symbol.for("react.element"),m$=Symbol.for("react.portal"),g$=Symbol.for("react.fragment"),y$=Symbol.for("react.strict_mode"),v$=Symbol.for("react.profiler"),w$=Symbol.for("react.provider"),x$=Symbol.for("react.context"),b$=Symbol.for("react.forward_ref"),_$=Symbol.for("react.suspense"),E$=Symbol.for("react.memo"),S$=Symbol.for("react.lazy"),ZE=Symbol.iterator;function C$(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var e3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t3=Object.assign,r3={};function Wa(e,t,r){this.props=e,this.context=t,this.refs=r3,this.updater=r||e3}Wa.prototype.isReactComponent={};Wa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function n3(){}n3.prototype=Wa.prototype;function Gy(e,t,r){this.props=e,this.context=t,this.refs=r3,this.updater=r||e3}var Yy=Gy.prototype=new n3;Yy.constructor=Gy;t3(Yy,Wa.prototype);Yy.isPureReactComponent=!0;var QE=Array.isArray,i3=Object.prototype.hasOwnProperty,Xy={current:null},o3={key:!0,ref:!0,__self:!0,__source:!0};function s3(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)i3.call(t,n)&&!o3.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:bc,type:e,key:o,ref:s,props:i,_owner:Xy.current}}function P$(e,t){return{$$typeof:bc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zy(e){return typeof e=="object"&&e!==null&&e.$$typeof===bc}function T$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var JE=/\/+/g;function Wy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?T$(""+e.key):t.toString(36)}function rh(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case bc:case m$:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+Wy(s,0):n,QE(i)?(r="",e!=null&&(r=e.replace(JE,"$&/")+"/"),rh(i,t,r,"",function(l){return l})):i!=null&&(Zy(i)&&(i=P$(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(JE,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",QE(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+Wy(o,a);s+=rh(o,t,r,u,i)}else if(u=C$(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+Wy(o,a++),s+=rh(o,t,r,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function th(e,t,r){if(e==null)return e;var n=[],i=0;return rh(e,n,"","",function(o){return t.call(r,o,i++)}),n}function D$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Kr={current:null},nh={transition:null},O$={ReactCurrentDispatcher:Kr,ReactCurrentBatchConfig:nh,ReactCurrentOwner:Xy};lt.Children={map:th,forEach:function(e,t,r){th(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return th(e,function(){t++}),t},toArray:function(e){return th(e,function(t){return t})||[]},only:function(e){if(!Zy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};lt.Component=Wa;lt.Fragment=g$;lt.Profiler=v$;lt.PureComponent=Gy;lt.StrictMode=y$;lt.Suspense=_$;lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O$;lt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=t3({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Xy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)i3.call(t,u)&&!o3.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:bc,type:e.type,key:i,ref:o,props:n,_owner:s}};lt.createContext=function(e){return e={$$typeof:x$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:w$,_context:e},e.Consumer=e};lt.createElement=s3;lt.createFactory=function(e){var t=s3.bind(null,e);return t.type=e,t};lt.createRef=function(){return{current:null}};lt.forwardRef=function(e){return{$$typeof:b$,render:e}};lt.isValidElement=Zy;lt.lazy=function(e){return{$$typeof:S$,_payload:{_status:-1,_result:e},_init:D$}};lt.memo=function(e,t){return{$$typeof:E$,type:e,compare:t===void 0?null:t}};lt.startTransition=function(e){var t=nh.transition;nh.transition={};try{e()}finally{nh.transition=t}};lt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};lt.useCallback=function(e,t){return Kr.current.useCallback(e,t)};lt.useContext=function(e){return Kr.current.useContext(e)};lt.useDebugValue=function(){};lt.useDeferredValue=function(e){return Kr.current.useDeferredValue(e)};lt.useEffect=function(e,t){return Kr.current.useEffect(e,t)};lt.useId=function(){return Kr.current.useId()};lt.useImperativeHandle=function(e,t,r){return Kr.current.useImperativeHandle(e,t,r)};lt.useInsertionEffect=function(e,t){return Kr.current.useInsertionEffect(e,t)};lt.useLayoutEffect=function(e,t){return Kr.current.useLayoutEffect(e,t)};lt.useMemo=function(e,t){return Kr.current.useMemo(e,t)};lt.useReducer=function(e,t,r){return Kr.current.useReducer(e,t,r)};lt.useRef=function(e){return Kr.current.useRef(e)};lt.useState=function(e){return Kr.current.useState(e)};lt.useSyncExternalStore=function(e,t,r){return Kr.current.useSyncExternalStore(e,t,r)};lt.useTransition=function(){return Kr.current.useTransition()};lt.version="18.2.0"});var Pe=we((eie,u3)=>{"use strict";c();d();f();u3.exports=a3()});var x,d=Ka(()=>{x=me(Pe(),1)});var d3=we(f3=>{"use strict";c();d();f();var Ga=Pe();function I$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var R$=typeof Object.is=="function"?Object.is:I$,A$=Ga.useState,M$=Ga.useEffect,N$=Ga.useLayoutEffect,k$=Ga.useDebugValue;function F$(e,t){var r=t(),n=A$({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return N$(function(){i.value=r,i.getSnapshot=t,Qy(i)&&o({inst:i})},[e,r,t]),M$(function(){return Qy(i)&&o({inst:i}),e(function(){Qy(i)&&o({inst:i})})},[e]),k$(r),r}function Qy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!R$(e,r)}catch(n){return!0}}function L$(e,t){return t()}var $$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?L$:F$;f3.useSyncExternalStore=Ga.useSyncExternalStore!==void 0?Ga.useSyncExternalStore:$$});var p3=we((iie,h3)=>{"use strict";c();d();f();h3.exports=d3()});var g3=we(m3=>{"use strict";c();d();f();var ih=Pe(),U$=p3();function V$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var j$=typeof Object.is=="function"?Object.is:V$,B$=U$.useSyncExternalStore,z$=ih.useRef,H$=ih.useEffect,q$=ih.useMemo,K$=ih.useDebugValue;m3.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=z$(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=q$(function(){function u(v){if(!l){if(l=!0,p=v,v=n(v),i!==void 0&&s.hasValue){var w=s.value;if(i(w,v))return h=w}return h=v}if(w=h,j$(p,v))return w;var C=n(v);return i!==void 0&&i(w,C)?w:(p=v,h=C)}var l=!1,p,h,y=r===void 0?null:r;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,r,n,i]);var a=B$(e,o[0],o[1]);return H$(function(){s.hasValue=!0,s.value=a},[a]),K$(a),a}});var v3=we((sie,y3)=>{"use strict";c();d();f();y3.exports=g3()});var W3=we(Dt=>{"use strict";c();d();f();function iv(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<ah(i,t))e[n]=t,e[r]=i,r=n;else break e}}function fi(e){return e.length===0?null:e[0]}function lh(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,a=e[s],u=s+1,l=e[u];if(0>ah(a,r))u<i&&0>ah(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<i&&0>ah(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function ah(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?($3=performance,Dt.unstable_now=function(){return $3.now()}):(tv=Date,U3=tv.now(),Dt.unstable_now=function(){return tv.now()-U3});var $3,tv,U3,Pi=[],ko=[],hU=1,qn=null,Mr=3,ch=!1,$s=!1,Tc=!1,B3=typeof setTimeout=="function"?setTimeout:null,z3=typeof clearTimeout=="function"?clearTimeout:null,V3=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ov(e){for(var t=fi(ko);t!==null;){if(t.callback===null)lh(ko);else if(t.startTime<=e)lh(ko),t.sortIndex=t.expirationTime,iv(Pi,t);else break;t=fi(ko)}}function sv(e){if(Tc=!1,ov(e),!$s)if(fi(Pi)!==null)$s=!0,uv(av);else{var t=fi(ko);t!==null&&lv(sv,t.startTime-e)}}function av(e,t){$s=!1,Tc&&(Tc=!1,z3(Dc),Dc=-1),ch=!0;var r=Mr;try{for(ov(t),qn=fi(Pi);qn!==null&&(!(qn.expirationTime>t)||e&&!K3());){var n=qn.callback;if(typeof n=="function"){qn.callback=null,Mr=qn.priorityLevel;var i=n(qn.expirationTime<=t);t=Dt.unstable_now(),typeof i=="function"?qn.callback=i:qn===fi(Pi)&&lh(Pi),ov(t)}else lh(Pi);qn=fi(Pi)}if(qn!==null)var o=!0;else{var s=fi(ko);s!==null&&lv(sv,s.startTime-t),o=!1}return o}finally{qn=null,Mr=r,ch=!1}}var fh=!1,uh=null,Dc=-1,H3=5,q3=-1;function K3(){return!(Dt.unstable_now()-q3<H3)}function rv(){if(uh!==null){var e=Dt.unstable_now();q3=e;var t=!0;try{t=uh(!0,e)}finally{t?Pc():(fh=!1,uh=null)}}else fh=!1}var Pc;typeof V3=="function"?Pc=function(){V3(rv)}:typeof MessageChannel<"u"?(nv=new MessageChannel,j3=nv.port2,nv.port1.onmessage=rv,Pc=function(){j3.postMessage(null)}):Pc=function(){B3(rv,0)};var nv,j3;function uv(e){uh=e,fh||(fh=!0,Pc())}function lv(e,t){Dc=B3(function(){e(Dt.unstable_now())},t)}Dt.unstable_IdlePriority=5;Dt.unstable_ImmediatePriority=1;Dt.unstable_LowPriority=4;Dt.unstable_NormalPriority=3;Dt.unstable_Profiling=null;Dt.unstable_UserBlockingPriority=2;Dt.unstable_cancelCallback=function(e){e.callback=null};Dt.unstable_continueExecution=function(){$s||ch||($s=!0,uv(av))};Dt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H3=0<e?Math.floor(1e3/e):5};Dt.unstable_getCurrentPriorityLevel=function(){return Mr};Dt.unstable_getFirstCallbackNode=function(){return fi(Pi)};Dt.unstable_next=function(e){switch(Mr){case 1:case 2:case 3:var t=3;break;default:t=Mr}var r=Mr;Mr=t;try{return e()}finally{Mr=r}};Dt.unstable_pauseExecution=function(){};Dt.unstable_requestPaint=function(){};Dt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Mr;Mr=e;try{return t()}finally{Mr=r}};Dt.unstable_scheduleCallback=function(e,t,r){var n=Dt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:hU++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,iv(ko,e),fi(Pi)===null&&e===fi(ko)&&(Tc?(z3(Dc),Dc=-1):Tc=!0,lv(sv,r-n))):(e.sortIndex=i,iv(Pi,e),$s||ch||($s=!0,uv(av))),e};Dt.unstable_shouldYield=K3;Dt.unstable_wrapCallback=function(e){var t=Mr;return function(){var r=Mr;Mr=t;try{return e.apply(this,arguments)}finally{Mr=r}}}});var Y3=we((xie,G3)=>{"use strict";c();d();f();G3.exports=W3()});var tC=we(In=>{"use strict";c();d();f();var r6=Pe(),Dn=Y3();function xe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n6=new Set,Xc={};function Zs(e,t){mu(e,t),mu(e+"Capture",t)}function mu(e,t){for(Xc[e]=t,e=0;e<t.length;e++)n6.add(t[e])}var Ji=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Av=Object.prototype.hasOwnProperty,pU=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,X3={},Z3={};function mU(e){return Av.call(Z3,e)?!0:Av.call(X3,e)?!1:pU.test(e)?Z3[e]=!0:(X3[e]=!0,!1)}function gU(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yU(e,t,r,n){if(t===null||typeof t>"u"||gU(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yr(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new Yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new Yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new Yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new Yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Er[e]=new Yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new Yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new Yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new Yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new Yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var S1=/[\-:]([a-z])/g;function C1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(S1,C1);Er[t]=new Yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(S1,C1);Er[t]=new Yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(S1,C1);Er[t]=new Yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new Yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new Yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function P1(e,t,r,n){var i=Er.hasOwnProperty(t)?Er[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(yU(t,r,i,n)&&(r=null),n||i===null?mU(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var no=r6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,dh=Symbol.for("react.element"),Za=Symbol.for("react.portal"),Qa=Symbol.for("react.fragment"),T1=Symbol.for("react.strict_mode"),Mv=Symbol.for("react.profiler"),i6=Symbol.for("react.provider"),o6=Symbol.for("react.context"),D1=Symbol.for("react.forward_ref"),Nv=Symbol.for("react.suspense"),kv=Symbol.for("react.suspense_list"),O1=Symbol.for("react.memo"),Lo=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var s6=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Q3=Symbol.iterator;function Oc(e){return e===null||typeof e!="object"?null:(e=Q3&&e[Q3]||e["@@iterator"],typeof e=="function"?e:null)}var Kt=Object.assign,cv;function Lc(e){if(cv===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);cv=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var IDKit=(()=>{var kL=Object.create;var Jl=Object.defineProperty,LL=Object.defineProperties,FL=Object.getOwnPropertyDescriptor,$L=Object.getOwnPropertyDescriptors,UL=Object.getOwnPropertyNames,xd=Object.getOwnPropertySymbols,VL=Object.getPrototypeOf,Jg=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable;var _2=(e,t,r)=>t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t)=>{for(var r in t||(t={}))Jg.call(t,r)&&_2(e,r,t[r]);if(xd)for(var r of xd(t))S2.call(t,r)&&_2(e,r,t[r]);return e},se=(e,t)=>LL(e,$L(t));var C2=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var de=(e,t)=>{var r={};for(var n in e)Jg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xd)for(var n of xd(e))t.indexOf(n)<0&&S2.call(e,n)&&(r[n]=e[n]);return r};var ba=(e,t)=>()=>(e&&(t=e(e=0)),t);var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fr=(e,t)=>{for(var r in t)Jl(e,r,{get:t[r],enumerable:!0})},bd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UL(t))!Jg.call(e,i)&&i!==r&&Jl(e,i,{get:()=>t[i],enumerable:!(n=FL(t,i))||n.enumerable});return e},Kt=(e,t,r)=>(bd(e,t,"default"),r&&bd(r,t,"default")),Y=(e,t,r)=>(r=e!=null?kL(VL(e)):{},bd(t||!e||!e.__esModule?Jl(r,"default",{value:e,enumerable:!0}):r,e)),T2=e=>bd(Jl({},"__esModule",{value:!0}),e);var BL,S,c=ba(()=>{BL="production",S={MODE:BL}});function A2(){Qg=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Hn[t]=e[t],ln[e.charCodeAt(t)]=t;ln["-".charCodeAt(0)]=62,ln["_".charCodeAt(0)]=63}function zL(e){Qg||A2();var t,r,n,i,o,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new jL(a*3/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=ln[e.charCodeAt(t)]<<18|ln[e.charCodeAt(t+1)]<<12|ln[e.charCodeAt(t+2)]<<6|ln[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=i&255;return o===2?(i=ln[e.charCodeAt(t)]<<2|ln[e.charCodeAt(t+1)]>>4,s[u++]=i&255):o===1&&(i=ln[e.charCodeAt(t)]<<10|ln[e.charCodeAt(t+1)]<<4|ln[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=i&255),s}function HL(e){return Hn[e>>18&63]+Hn[e>>12&63]+Hn[e>>6&63]+Hn[e&63]}function KL(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(HL(n));return i.join("")}function D2(e){Qg||A2();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(KL(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],i+=Hn[t>>2],i+=Hn[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Hn[t>>10],i+=Hn[t>>4&63],i+=Hn[t<<2&63],i+="="),o.push(i),o.join("")}function Ed(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ci(e,t){if(Ed()<t)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=x.prototype):(e===null&&(e=new x(t)),e.length=t),e}function x(e,t,r){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return ey(this,e)}return R2(this,e,t,r)}function R2(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?GL(e,t,r,n):typeof t=="string"?WL(e,t,r):YL(e,t)}function N2(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function qL(e,t,r,n){return N2(t),t<=0?ci(e,t):r!==void 0?typeof n=="string"?ci(e,t).fill(r,n):ci(e,t).fill(r):ci(e,t)}function ey(e,t){if(N2(t),e=ci(e,t<0?0:ty(t)|0),!x.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function WL(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!x.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=M2(t,r)|0;e=ci(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Zg(e,t){var r=t.length<0?0:ty(t.length)|0;e=ci(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function GL(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),x.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=x.prototype):e=Zg(e,t),e}function YL(e,t){if(Kn(t)){var r=ty(t.length)|0;return e=ci(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||pF(t.length)?ci(e,0):Zg(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Zg(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ty(e){if(e>=Ed())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ed().toString(16)+" bytes");return e|0}function Kn(e){return!!(e!=null&&e._isBuffer)}function M2(e,t){if(Kn(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return _d(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return B2(e).length;default:if(n)return _d(e).length;t=(""+t).toLowerCase(),n=!0}}function XL(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sF(this,t,r);case"utf8":case"utf-8":return F2(this,t,r);case"ascii":return iF(this,t,r);case"latin1":case"binary":return oF(this,t,r);case"base64":return rF(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aF(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ds(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function k2(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=x.from(t,n)),Kn(t))return t.length===0?-1:I2(e,t,r,n,i);if(typeof t=="number")return t=t&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):I2(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function I2(e,t,r,n,i){var o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function u(v,w){return o===1?v[w]:v.readUInt16BE(w*o)}var l;if(i){var p=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*o}else p!==-1&&(l-=l-p),p=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var h=!0,y=0;y<a;y++)if(u(e,l+y)!==u(t,y)){h=!1;break}if(h)return l}return-1}function JL(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(s*2,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function ZL(e,t,r,n){return Td(_d(t,e.length-r),e,r,n)}function L2(e,t,r,n){return Td(dF(t),e,r,n)}function QL(e,t,r,n){return L2(e,t,r,n)}function eF(e,t,r,n){return Td(B2(t),e,r,n)}function tF(e,t,r,n){return Td(hF(t,e.length-r),e,r,n)}function rF(e,t,r){return t===0&&r===e.length?D2(e):D2(e.slice(t,r))}function F2(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,l,p,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],(u&192)===128&&(h=(o&31)<<6|u&63,h>127&&(s=h));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(h=(o&15)<<12|(u&63)<<6|l&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=e[i+1],l=e[i+2],p=e[i+3],(u&192)===128&&(l&192)===128&&(p&192)===128&&(h=(o&15)<<18|(u&63)<<12|(l&63)<<6|p&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return nF(n)}function nF(e){var t=e.length;if(t<=O2)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O2));return r}function iF(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function oF(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function sF(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=fF(e[o]);return i}function aF(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function Jt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Nr(e,t,r,n,i,o){if(!Kn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Sd(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Cd(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function $2(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U2(e,t,r,n,i){return i||$2(e,t,r,4,34028234663852886e22,-34028234663852886e22),z2(e,t,r,n,23,4),r+4}function V2(e,t,r,n,i){return i||$2(e,t,r,8,17976931348623157e292,-17976931348623157e292),z2(e,t,r,n,52,8),r+8}function lF(e){if(e=cF(e).replace(uF,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function cF(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function fF(e){return e<16?"0"+e.toString(16):e.toString(16)}function _d(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function dF(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function hF(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function B2(e){return zL(lF(e))}function Td(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function pF(e){return e!==e}function mF(e){return e!=null&&(!!e._isBuffer||j2(e)||gF(e))}function j2(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function gF(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&j2(e.slice(0,0))}function Pd(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,l=u>>1,p=-7,h=r?i-1:0,y=r?-1:1,v=e[t+h];for(h+=y,o=v&(1<<-p)-1,v>>=-p,p+=a;p>0;o=o*256+e[t+h],h+=y,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=y,p-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(v?-1:1)*s*Math.pow(2,o-n)}function z2(e,t,r,n,i,o){var s,a,u,l=o*8-i-1,p=(1<<l)-1,h=p>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,w=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=y/u:t+=y*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=p?(a=0,s=p):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+v]=a&255,v+=w,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+v]=s&255,v+=w,s/=256,l-=8);e[r+v-w]|=_*128}var Hn,ln,jL,Qg,O2,uF,H2=ba(()=>{c();d();f();Hn=[],ln=[],jL=typeof Uint8Array<"u"?Uint8Array:Array,Qg=!1;x.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;x.poolSize=8192;x._augment=function(e){return e.__proto__=x.prototype,e};x.from=function(e,t,r){return R2(null,e,t,r)};x.kMaxLength=Ed();x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&x[Symbol.species]);x.alloc=function(e,t,r){return qL(null,e,t,r)};x.allocUnsafe=function(e){return ey(null,e)};x.allocUnsafeSlow=function(e){return ey(null,e)};x.isBuffer=mF;x.compare=function(t,r){if(!Kn(t)||!Kn(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};x.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return x.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=x.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!Kn(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};x.byteLength=M2;x.prototype._isBuffer=!0;x.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ds(this,r,r+1);return this};x.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ds(this,r,r+3),ds(this,r+1,r+2);return this};x.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ds(this,r,r+7),ds(this,r+1,r+6),ds(this,r+2,r+5),ds(this,r+3,r+4);return this};x.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?F2(this,0,t):XL.apply(this,arguments)};x.prototype.equals=function(t){if(!Kn(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:x.compare(this,t)===0};x.prototype.compare=function(t,r,n,i,o){if(!Kn(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,a=n-r,u=Math.min(s,a),l=this.slice(i,o),p=t.slice(r,n),h=0;h<u;++h)if(l[h]!==p[h]){s=l[h],a=p[h];break}return s<a?-1:a<s?1:0};x.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};x.prototype.indexOf=function(t,r,n){return k2(this,t,r,n,!0)};x.prototype.lastIndexOf=function(t,r,n){return k2(this,t,r,n,!1)};x.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return JL(this,t,r,n);case"utf8":case"utf-8":return ZL(this,t,r,n);case"ascii":return L2(this,t,r,n);case"latin1":case"binary":return QL(this,t,r,n);case"base64":return eF(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tF(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};O2=4096;x.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(x.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=x.prototype;else{var o=r-t;i=new x(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};x.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return i};x.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t+--r],o=1;r>0&&(o*=256);)i+=this[t+--r]*o;return i};x.prototype.readUInt8=function(t,r){return r||Jt(t,1,this.length),this[t]};x.prototype.readUInt16LE=function(t,r){return r||Jt(t,2,this.length),this[t]|this[t+1]<<8};x.prototype.readUInt16BE=function(t,r){return r||Jt(t,2,this.length),this[t]<<8|this[t+1]};x.prototype.readUInt32LE=function(t,r){return r||Jt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};x.prototype.readUInt32BE=function(t,r){return r||Jt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};x.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};x.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=r,o=1,s=this[t+--i];i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(t,r){return r||Jt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};x.prototype.readInt16LE=function(t,r){r||Jt(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(t,r){r||Jt(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(t,r){return r||Jt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};x.prototype.readInt32BE=function(t,r){return r||Jt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};x.prototype.readFloatLE=function(t,r){return r||Jt(t,4,this.length),Pd(this,t,!0,23,4)};x.prototype.readFloatBE=function(t,r){return r||Jt(t,4,this.length),Pd(this,t,!1,23,4)};x.prototype.readDoubleLE=function(t,r){return r||Jt(t,8,this.length),Pd(this,t,!0,52,8)};x.prototype.readDoubleBE=function(t,r){return r||Jt(t,8,this.length),Pd(this,t,!1,52,8)};x.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Nr(this,t,r,n,o,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};x.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Nr(this,t,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};x.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,1,255,0),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};x.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Sd(this,t,r,!0),r+2};x.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Sd(this,t,r,!1),r+2};x.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Cd(this,t,r,!0),r+4};x.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Cd(this,t,r,!1),r+4};x.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Nr(this,t,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Nr(this,t,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,1,127,-128),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};x.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Sd(this,t,r,!0),r+2};x.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Sd(this,t,r,!1),r+2};x.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Cd(this,t,r,!0),r+4};x.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Cd(this,t,r,!1),r+4};x.prototype.writeFloatLE=function(t,r,n){return U2(this,t,r,!0,n)};x.prototype.writeFloatBE=function(t,r,n){return U2(this,t,r,!1,n)};x.prototype.writeDoubleLE=function(t,r,n){return V2(this,t,r,!0,n)};x.prototype.writeDoubleBE=function(t,r,n){return V2(this,t,r,!1,n)};x.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var o=i-n,s;if(this===t&&n<r&&r<i)for(s=o-1;s>=0;--s)t[s+r]=this[s+n];else if(o<1e3||!x.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o};x.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!x.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var a=Kn(t)?t:_d(new x(t,i).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};uF=/[^+\/0-9A-Za-z-_]/g});var f=ba(()=>{H2()});var t_=ee(xe=>{"use strict";c();d();f();var Zl=Symbol.for("react.element"),yF=Symbol.for("react.portal"),vF=Symbol.for("react.fragment"),wF=Symbol.for("react.strict_mode"),xF=Symbol.for("react.profiler"),bF=Symbol.for("react.provider"),EF=Symbol.for("react.context"),_F=Symbol.for("react.forward_ref"),SF=Symbol.for("react.suspense"),CF=Symbol.for("react.memo"),TF=Symbol.for("react.lazy"),K2=Symbol.iterator;function PF(e){return e===null||typeof e!="object"?null:(e=K2&&e[K2]||e["@@iterator"],typeof e=="function"?e:null)}var G2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y2=Object.assign,X2={};function Ea(e,t,r){this.props=e,this.context=t,this.refs=X2,this.updater=r||G2}Ea.prototype.isReactComponent={};Ea.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function J2(){}J2.prototype=Ea.prototype;function ny(e,t,r){this.props=e,this.context=t,this.refs=X2,this.updater=r||G2}var iy=ny.prototype=new J2;iy.constructor=ny;Y2(iy,Ea.prototype);iy.isPureReactComponent=!0;var q2=Array.isArray,Z2=Object.prototype.hasOwnProperty,oy={current:null},Q2={key:!0,ref:!0,__self:!0,__source:!0};function e_(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Z2.call(t,n)&&!Q2.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Zl,type:e,key:o,ref:s,props:i,_owner:oy.current}}function DF(e,t){return{$$typeof:Zl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sy(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zl}function IF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var W2=/\/+/g;function ry(e,t){return typeof e=="object"&&e!==null&&e.key!=null?IF(""+e.key):t.toString(36)}function Id(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Zl:case yF:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+ry(s,0):n,q2(i)?(r="",e!=null&&(r=e.replace(W2,"$&/")+"/"),Id(i,t,r,"",function(l){return l})):i!=null&&(sy(i)&&(i=DF(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(W2,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",q2(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+ry(o,a);s+=Id(o,t,r,u,i)}else if(u=PF(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+ry(o,a++),s+=Id(o,t,r,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Dd(e,t,r){if(e==null)return e;var n=[],i=0;return Id(e,n,"","",function(o){return t.call(r,o,i++)}),n}function OF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _r={current:null},Od={transition:null},AF={ReactCurrentDispatcher:_r,ReactCurrentBatchConfig:Od,ReactCurrentOwner:oy};xe.Children={map:Dd,forEach:function(e,t,r){Dd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Dd(e,function(){t++}),t},toArray:function(e){return Dd(e,function(t){return t})||[]},only:function(e){if(!sy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=Ea;xe.Fragment=vF;xe.Profiler=xF;xe.PureComponent=ny;xe.StrictMode=wF;xe.Suspense=SF;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AF;xe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Y2({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=oy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Z2.call(t,u)&&!Q2.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:Zl,type:e.type,key:i,ref:o,props:n,_owner:s}};xe.createContext=function(e){return e={$$typeof:EF,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bF,_context:e},e.Consumer=e};xe.createElement=e_;xe.createFactory=function(e){var t=e_.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:_F,render:e}};xe.isValidElement=sy;xe.lazy=function(e){return{$$typeof:TF,_payload:{_status:-1,_result:e},_init:OF}};xe.memo=function(e,t){return{$$typeof:CF,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=Od.transition;Od.transition={};try{e()}finally{Od.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return _r.current.useCallback(e,t)};xe.useContext=function(e){return _r.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return _r.current.useDeferredValue(e)};xe.useEffect=function(e,t){return _r.current.useEffect(e,t)};xe.useId=function(){return _r.current.useId()};xe.useImperativeHandle=function(e,t,r){return _r.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return _r.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return _r.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return _r.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return _r.current.useReducer(e,t,r)};xe.useRef=function(e){return _r.current.useRef(e)};xe.useState=function(e){return _r.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return _r.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return _r.current.useTransition()};xe.version="18.2.0"});var ue=ee((zee,r_)=>{"use strict";c();d();f();r_.exports=t_()});var g,d=ba(()=>{g=Y(ue(),1)});var s_=ee(o_=>{"use strict";c();d();f();var _a=ue();function RF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var NF=typeof Object.is=="function"?Object.is:RF,MF=_a.useState,kF=_a.useEffect,LF=_a.useLayoutEffect,FF=_a.useDebugValue;function $F(e,t){var r=t(),n=MF({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return LF(function(){i.value=r,i.getSnapshot=t,ay(i)&&o({inst:i})},[e,r,t]),kF(function(){return ay(i)&&o({inst:i}),e(function(){ay(i)&&o({inst:i})})},[e]),FF(r),r}function ay(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!NF(e,r)}catch(n){return!0}}function UF(e,t){return t()}var VF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UF:$F;o_.useSyncExternalStore=_a.useSyncExternalStore!==void 0?_a.useSyncExternalStore:VF});var u_=ee((Wee,a_)=>{"use strict";c();d();f();a_.exports=s_()});var c_=ee(l_=>{"use strict";c();d();f();var Ad=ue(),BF=u_();function jF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zF=typeof Object.is=="function"?Object.is:jF,HF=BF.useSyncExternalStore,KF=Ad.useRef,qF=Ad.useEffect,WF=Ad.useMemo,GF=Ad.useDebugValue;l_.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=KF(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=WF(function(){function u(v){if(!l){if(l=!0,p=v,v=n(v),i!==void 0&&s.hasValue){var w=s.value;if(i(w,v))return h=w}return h=v}if(w=h,zF(p,v))return w;var _=n(v);return i!==void 0&&i(w,_)?w:(p=v,h=_)}var l=!1,p,h,y=r===void 0?null:r;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,r,n,i]);var a=HF(e,o[0],o[1]);return qF(function(){s.hasValue=!0,s.value=a},[a]),GF(a),a}});var d_=ee((Yee,f_)=>{"use strict";c();d();f();f_.exports=c_()});var B_=ee(ke=>{"use strict";c();d();f();function hy(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<Md(i,t))e[n]=t,e[r]=i,r=n;else break e}}function On(e){return e.length===0?null:e[0]}function Ld(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,a=e[s],u=s+1,l=e[u];if(0>Md(a,r))u<i&&0>Md(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<i&&0>Md(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function Md(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(R_=performance,ke.unstable_now=function(){return R_.now()}):(cy=Date,N_=cy.now(),ke.unstable_now=function(){return cy.now()-N_});var R_,cy,N_,qn=[],Yi=[],m9=1,cn=null,dr=3,Fd=!1,ms=!1,ic=!1,L_=typeof setTimeout=="function"?setTimeout:null,F_=typeof clearTimeout=="function"?clearTimeout:null,M_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function py(e){for(var t=On(Yi);t!==null;){if(t.callback===null)Ld(Yi);else if(t.startTime<=e)Ld(Yi),t.sortIndex=t.expirationTime,hy(qn,t);else break;t=On(Yi)}}function my(e){if(ic=!1,py(e),!ms)if(On(qn)!==null)ms=!0,yy(gy);else{var t=On(Yi);t!==null&&vy(my,t.startTime-e)}}function gy(e,t){ms=!1,ic&&(ic=!1,F_(oc),oc=-1),Fd=!0;var r=dr;try{for(py(t),cn=On(qn);cn!==null&&(!(cn.expirationTime>t)||e&&!V_());){var n=cn.callback;if(typeof n=="function"){cn.callback=null,dr=cn.priorityLevel;var i=n(cn.expirationTime<=t);t=ke.unstable_now(),typeof i=="function"?cn.callback=i:cn===On(qn)&&Ld(qn),py(t)}else Ld(qn);cn=On(qn)}if(cn!==null)var o=!0;else{var s=On(Yi);s!==null&&vy(my,s.startTime-t),o=!1}return o}finally{cn=null,dr=r,Fd=!1}}var $d=!1,kd=null,oc=-1,$_=5,U_=-1;function V_(){return!(ke.unstable_now()-U_<$_)}function fy(){if(kd!==null){var e=ke.unstable_now();U_=e;var t=!0;try{t=kd(!0,e)}finally{t?nc():($d=!1,kd=null)}}else $d=!1}var nc;typeof M_=="function"?nc=function(){M_(fy)}:typeof MessageChannel<"u"?(dy=new MessageChannel,k_=dy.port2,dy.port1.onmessage=fy,nc=function(){k_.postMessage(null)}):nc=function(){L_(fy,0)};var dy,k_;function yy(e){kd=e,$d||($d=!0,nc())}function vy(e,t){oc=L_(function(){e(ke.unstable_now())},t)}ke.unstable_IdlePriority=5;ke.unstable_ImmediatePriority=1;ke.unstable_LowPriority=4;ke.unstable_NormalPriority=3;ke.unstable_Profiling=null;ke.unstable_UserBlockingPriority=2;ke.unstable_cancelCallback=function(e){e.callback=null};ke.unstable_continueExecution=function(){ms||Fd||(ms=!0,yy(gy))};ke.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$_=0<e?Math.floor(1e3/e):5};ke.unstable_getCurrentPriorityLevel=function(){return dr};ke.unstable_getFirstCallbackNode=function(){return On(qn)};ke.unstable_next=function(e){switch(dr){case 1:case 2:case 3:var t=3;break;default:t=dr}var r=dr;dr=t;try{return e()}finally{dr=r}};ke.unstable_pauseExecution=function(){};ke.unstable_requestPaint=function(){};ke.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dr;dr=e;try{return t()}finally{dr=r}};ke.unstable_scheduleCallback=function(e,t,r){var n=ke.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:m9++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,hy(Yi,e),On(qn)===null&&e===On(Yi)&&(ic?(F_(oc),oc=-1):ic=!0,vy(my,r-n))):(e.sortIndex=i,hy(qn,e),ms||Fd||(ms=!0,yy(gy))),e};ke.unstable_shouldYield=V_;ke.unstable_wrapCallback=function(e){var t=dr;return function(){var r=dr;dr=t;try{return e.apply(this,arguments)}finally{dr=r}}}});var z_=ee((lte,j_)=>{"use strict";c();d();f();j_.exports=B_()});var Y6=ee(tn=>{"use strict";c();d();f();var X3=ue(),Qr=z_();function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var J3=new Set,Pc={};function Ds(e,t){Ha(e,t),Ha(e+"Capture",t)}function Ha(e,t){for(Pc[e]=t,e=0;e<t.length;e++)J3.add(t[e])}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),By=Object.prototype.hasOwnProperty,g9=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H_={},K_={};function y9(e){return By.call(K_,e)?!0:By.call(H_,e)?!1:g9.test(e)?K_[e]=!0:(H_[e]=!0,!1)}function v9(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function w9(e,t,r,n){if(t===null||typeof t>"u"||v9(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tr(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){or[e]=new Tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];or[t]=new Tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){or[e]=new Tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){or[e]=new Tr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){or[e]=new Tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){or[e]=new Tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){or[e]=new Tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){or[e]=new Tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){or[e]=new Tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var N1=/[\-:]([a-z])/g;function M1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(N1,M1);or[t]=new Tr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(N1,M1);or[t]=new Tr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(N1,M1);or[t]=new Tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){or[e]=new Tr(e,1,!1,e.toLowerCase(),null,!1,!1)});or.xlinkHref=new Tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){or[e]=new Tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function k1(e,t,r,n){var i=or.hasOwnProperty(t)?or[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(w9(t,r,i,n)&&(r=null),n||i===null?y9(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var xi=X3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ud=Symbol.for("react.element"),Ta=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),L1=Symbol.for("react.strict_mode"),jy=Symbol.for("react.profiler"),Z3=Symbol.for("react.provider"),Q3=Symbol.for("react.context"),F1=Symbol.for("react.forward_ref"),zy=Symbol.for("react.suspense"),Hy=Symbol.for("react.suspense_list"),$1=Symbol.for("react.memo"),Ji=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var eS=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var q_=Symbol.iterator;function sc(e){return e===null||typeof e!="object"?null:(e=q_&&e[q_]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,wy;function pc(e){if(wy===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);wy=t&&t[1]||""}return`
|
|
2
|
+
`+wy+e}var xy=!1;function by(e,t){if(!e||xy)return"";xy=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
|
|
3
3
|
`),o=n.stack.split(`
|
|
4
4
|
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var u=`
|
|
5
|
-
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{fv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Lc(e):""}function vU(e){switch(e.tag){case 5:return Lc(e.type);case 16:return Lc("Lazy");case 13:return Lc("Suspense");case 19:return Lc("SuspenseList");case 0:case 2:case 15:return e=dv(e.type,!1),e;case 11:return e=dv(e.type.render,!1),e;case 1:return e=dv(e.type,!0),e;default:return""}}function Fv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qa:return"Fragment";case Za:return"Portal";case Mv:return"Profiler";case T1:return"StrictMode";case Nv:return"Suspense";case kv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o6:return(e.displayName||"Context")+".Consumer";case i6:return(e._context.displayName||"Context")+".Provider";case D1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case O1:return t=e.displayName||null,t!==null?t:Fv(e.type)||"Memo";case Lo:t=e._payload,e=e._init;try{return Fv(e(t))}catch(r){}}return null}function wU(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fv(t);case 8:return t===T1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function a6(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xU(e){var t=a6(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hh(e){e._valueTracker||(e._valueTracker=xU(e))}function u6(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=a6(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function jh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Lv(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function J3(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function l6(e,t){t=t.checked,t!=null&&P1(e,"checked",t,!1)}function $v(e,t){l6(e,t);var r=Zo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Uv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Uv(e,t.type,Zo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eS(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Uv(e,t,r){(t!=="number"||jh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $c=Array.isArray;function lu(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Zo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(xe(91));return Kt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tS(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(xe(92));if($c(r)){if(1<r.length)throw Error(xe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zo(r)}}function c6(e,t){var r=Zo(t.value),n=Zo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function rS(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function f6(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?f6(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ph,d6=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ph=ph||document.createElement("div"),ph.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ph.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var jc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bU=["Webkit","ms","Moz","O"];Object.keys(jc).forEach(function(e){bU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jc[t]=jc[e]})});function h6(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||jc.hasOwnProperty(e)&&jc[e]?(""+t).trim():t+"px"}function p6(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=h6(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var _U=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bv(e,t){if(t){if(_U[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(xe(62))}}function zv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hv=null;function I1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qv=null,cu=null,fu=null;function nS(e){if(e=gf(e)){if(typeof qv!="function")throw Error(xe(280));var t=e.stateNode;t&&(t=mp(t),qv(e.stateNode,e.type,t))}}function m6(e){cu?fu?fu.push(e):fu=[e]:cu=e}function g6(){if(cu){var e=cu,t=fu;if(fu=cu=null,nS(e),t)for(e=0;e<t.length;e++)nS(t[e])}}function y6(e,t){return e(t)}function v6(){}var hv=!1;function w6(e,t,r){if(hv)return e(t,r);hv=!0;try{return y6(e,t,r)}finally{hv=!1,(cu!==null||fu!==null)&&(v6(),g6())}}function Qc(e,t){var r=e.stateNode;if(r===null)return null;var n=mp(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(xe(231,t,typeof r));return r}var Kv=!1;if(Ji)try{Ya={},Object.defineProperty(Ya,"passive",{get:function(){Kv=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch(e){Kv=!1}var Ya;function EU(e,t,r,n,i,o,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(p){this.onError(p)}}var Bc=!1,Bh=null,zh=!1,Wv=null,SU={onError:function(e){Bc=!0,Bh=e}};function CU(e,t,r,n,i,o,s,a,u){Bc=!1,Bh=null,EU.apply(SU,arguments)}function PU(e,t,r,n,i,o,s,a,u){if(CU.apply(this,arguments),Bc){if(Bc){var l=Bh;Bc=!1,Bh=null}else throw Error(xe(198));zh||(zh=!0,Wv=l)}}function Qs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function x6(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function iS(e){if(Qs(e)!==e)throw Error(xe(188))}function TU(e){var t=e.alternate;if(!t){if(t=Qs(e),t===null)throw Error(xe(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return iS(i),e;if(o===n)return iS(i),t;o=o.sibling}throw Error(xe(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(xe(189))}}if(r.alternate!==n)throw Error(xe(190))}if(r.tag!==3)throw Error(xe(188));return r.stateNode.current===r?e:t}function b6(e){return e=TU(e),e!==null?_6(e):null}function _6(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_6(e);if(t!==null)return t;e=e.sibling}return null}var E6=Dn.unstable_scheduleCallback,oS=Dn.unstable_cancelCallback,DU=Dn.unstable_shouldYield,OU=Dn.unstable_requestPaint,Jt=Dn.unstable_now,IU=Dn.unstable_getCurrentPriorityLevel,R1=Dn.unstable_ImmediatePriority,S6=Dn.unstable_UserBlockingPriority,Hh=Dn.unstable_NormalPriority,RU=Dn.unstable_LowPriority,C6=Dn.unstable_IdlePriority,fp=null,Ii=null;function AU(e){if(Ii&&typeof Ii.onCommitFiberRoot=="function")try{Ii.onCommitFiberRoot(fp,e,void 0,(e.current.flags&128)===128)}catch(t){}}var gi=Math.clz32?Math.clz32:kU,MU=Math.log,NU=Math.LN2;function kU(e){return e>>>=0,e===0?32:31-(MU(e)/NU|0)|0}var mh=64,gh=4194304;function Uc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=Uc(a):(o&=s,o!==0&&(n=Uc(o)))}else s=r&~i,s!==0?n=Uc(s):o!==0&&(n=Uc(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-gi(t),i=1<<r,n|=e[r],t&=~i;return n}function FU(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function LU(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-gi(o),a=1<<s,u=i[s];u===-1?((a&r)===0||(a&n)!==0)&&(i[s]=FU(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Gv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function P6(){var e=mh;return mh<<=1,(mh&4194240)===0&&(mh=64),e}function pv(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function pf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gi(t),e[t]=r}function $U(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-gi(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function A1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-gi(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Et=0;function T6(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var D6,M1,O6,I6,R6,Yv=!1,yh=[],zo=null,Ho=null,qo=null,Jc=new Map,ef=new Map,Uo=[],UU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function sS(e,t){switch(e){case"focusin":case"focusout":zo=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":qo=null;break;case"pointerover":case"pointerout":Jc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ef.delete(t.pointerId)}}function Ic(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=gf(t),t!==null&&M1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function VU(e,t,r,n,i){switch(t){case"focusin":return zo=Ic(zo,e,t,r,n,i),!0;case"dragenter":return Ho=Ic(Ho,e,t,r,n,i),!0;case"mouseover":return qo=Ic(qo,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Jc.set(o,Ic(Jc.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,ef.set(o,Ic(ef.get(o)||null,e,t,r,n,i)),!0}return!1}function A6(e){var t=js(e.target);if(t!==null){var r=Qs(t);if(r!==null){if(t=r.tag,t===13){if(t=x6(r),t!==null){e.blockedOn=t,R6(e.priority,function(){O6(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Hv=n,r.target.dispatchEvent(n),Hv=null}else return t=gf(r),t!==null&&M1(t),e.blockedOn=r,!1;t.shift()}return!0}function aS(e,t,r){Rh(e)&&r.delete(t)}function jU(){Yv=!1,zo!==null&&Rh(zo)&&(zo=null),Ho!==null&&Rh(Ho)&&(Ho=null),qo!==null&&Rh(qo)&&(qo=null),Jc.forEach(aS),ef.forEach(aS)}function Rc(e,t){e.blockedOn===t&&(e.blockedOn=null,Yv||(Yv=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,jU)))}function tf(e){function t(i){return Rc(i,e)}if(0<yh.length){Rc(yh[0],e);for(var r=1;r<yh.length;r++){var n=yh[r];n.blockedOn===e&&(n.blockedOn=null)}}for(zo!==null&&Rc(zo,e),Ho!==null&&Rc(Ho,e),qo!==null&&Rc(qo,e),Jc.forEach(t),ef.forEach(t),r=0;r<Uo.length;r++)n=Uo[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Uo.length&&(r=Uo[0],r.blockedOn===null);)A6(r),r.blockedOn===null&&Uo.shift()}var du=no.ReactCurrentBatchConfig,Kh=!0;function BU(e,t,r,n){var i=Et,o=du.transition;du.transition=null;try{Et=1,N1(e,t,r,n)}finally{Et=i,du.transition=o}}function zU(e,t,r,n){var i=Et,o=du.transition;du.transition=null;try{Et=4,N1(e,t,r,n)}finally{Et=i,du.transition=o}}function N1(e,t,r,n){if(Kh){var i=Xv(e,t,r,n);if(i===null)bv(e,t,n,Wh,r),sS(e,n);else if(VU(i,e,t,r,n))n.stopPropagation();else if(sS(e,n),t&4&&-1<UU.indexOf(e)){for(;i!==null;){var o=gf(i);if(o!==null&&D6(o),o=Xv(e,t,r,n),o===null&&bv(e,t,n,Wh,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else bv(e,t,n,null,r)}}var Wh=null;function Xv(e,t,r,n){if(Wh=null,e=I1(n),e=js(e),e!==null)if(t=Qs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=x6(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wh=e,null}function M6(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(IU()){case R1:return 1;case S6:return 4;case Hh:case RU:return 16;case C6:return 536870912;default:return 16}default:return 16}}var jo=null,k1=null,Ah=null;function N6(){if(Ah)return Ah;var e,t=k1,r=t.length,n,i="value"in jo?jo.value:jo.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return Ah=i.slice(e,1<n?1-n:void 0)}function Mh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vh(){return!0}function uS(){return!1}function On(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?vh:uS,this.isPropagationStopped=uS,this}return Kt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=vh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=vh)},persist:function(){},isPersistent:vh}),t}var _u={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},F1=On(_u),mf=Kt({},_u,{view:0,detail:0}),HU=On(mf),mv,gv,Ac,dp=Kt({},mf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ac&&(Ac&&e.type==="mousemove"?(mv=e.screenX-Ac.screenX,gv=e.screenY-Ac.screenY):gv=mv=0,Ac=e),mv)},movementY:function(e){return"movementY"in e?e.movementY:gv}}),lS=On(dp),qU=Kt({},dp,{dataTransfer:0}),KU=On(qU),WU=Kt({},mf,{relatedTarget:0}),yv=On(WU),GU=Kt({},_u,{animationName:0,elapsedTime:0,pseudoElement:0}),YU=On(GU),XU=Kt({},_u,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ZU=On(XU),QU=Kt({},_u,{data:0}),cS=On(QU),JU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eV={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tV[e])?!!t[e]:!1}function L1(){return rV}var nV=Kt({},mf,{key:function(e){if(e.key){var t=JU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:L1,charCode:function(e){return e.type==="keypress"?Mh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iV=On(nV),oV=Kt({},dp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fS=On(oV),sV=Kt({},mf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:L1}),aV=On(sV),uV=Kt({},_u,{propertyName:0,elapsedTime:0,pseudoElement:0}),lV=On(uV),cV=Kt({},dp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fV=On(cV),dV=[9,13,27,32],$1=Ji&&"CompositionEvent"in window,zc=null;Ji&&"documentMode"in document&&(zc=document.documentMode);var hV=Ji&&"TextEvent"in window&&!zc,k6=Ji&&(!$1||zc&&8<zc&&11>=zc),dS=String.fromCharCode(32),hS=!1;function F6(e,t){switch(e){case"keyup":return dV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L6(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function pV(e,t){switch(e){case"compositionend":return L6(t);case"keypress":return t.which!==32?null:(hS=!0,dS);case"textInput":return e=t.data,e===dS&&hS?null:e;default:return null}}function mV(e,t){if(Ja)return e==="compositionend"||!$1&&F6(e,t)?(e=N6(),Ah=k1=jo=null,Ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return k6&&t.locale!=="ko"?null:t.data;default:return null}}var gV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gV[e.type]:t==="textarea"}function $6(e,t,r,n){m6(n),t=Gh(t,"onChange"),0<t.length&&(r=new F1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hc=null,rf=null;function yV(e){Y6(e,0)}function hp(e){var t=ru(e);if(u6(t))return e}function vV(e,t){if(e==="change")return t}var U6=!1;Ji&&(Ji?(xh="oninput"in document,xh||(vv=document.createElement("div"),vv.setAttribute("oninput","return;"),xh=typeof vv.oninput=="function"),wh=xh):wh=!1,U6=wh&&(!document.documentMode||9<document.documentMode));var wh,xh,vv;function mS(){Hc&&(Hc.detachEvent("onpropertychange",V6),rf=Hc=null)}function V6(e){if(e.propertyName==="value"&&hp(rf)){var t=[];$6(t,rf,e,I1(e)),w6(yV,t)}}function wV(e,t,r){e==="focusin"?(mS(),Hc=t,rf=r,Hc.attachEvent("onpropertychange",V6)):e==="focusout"&&mS()}function xV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hp(rf)}function bV(e,t){if(e==="click")return hp(t)}function _V(e,t){if(e==="input"||e==="change")return hp(t)}function EV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vi=typeof Object.is=="function"?Object.is:EV;function nf(e,t){if(vi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Av.call(t,i)||!vi(e[i],t[i]))return!1}return!0}function gS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yS(e,t){var r=gS(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gS(r)}}function j6(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j6(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function B6(){for(var e=window,t=jh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=jh(e.document)}return t}function U1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function SV(e){var t=B6(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&j6(r.ownerDocument.documentElement,r)){if(n!==null&&U1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=yS(r,o);var s=yS(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var CV=Ji&&"documentMode"in document&&11>=document.documentMode,eu=null,Zv=null,qc=null,Qv=!1;function vS(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qv||eu==null||eu!==jh(n)||(n=eu,"selectionStart"in n&&U1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),qc&&nf(qc,n)||(qc=n,n=Gh(Zv,"onSelect"),0<n.length&&(t=new F1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=eu)))}function bh(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var tu={animationend:bh("Animation","AnimationEnd"),animationiteration:bh("Animation","AnimationIteration"),animationstart:bh("Animation","AnimationStart"),transitionend:bh("Transition","TransitionEnd")},wv={},z6={};Ji&&(z6=document.createElement("div").style,"AnimationEvent"in window||(delete tu.animationend.animation,delete tu.animationiteration.animation,delete tu.animationstart.animation),"TransitionEvent"in window||delete tu.transitionend.transition);function pp(e){if(wv[e])return wv[e];if(!tu[e])return e;var t=tu[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in z6)return wv[e]=t[r];return e}var H6=pp("animationend"),q6=pp("animationiteration"),K6=pp("animationstart"),W6=pp("transitionend"),G6=new Map,wS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jo(e,t){G6.set(e,t),Zs(t,[e])}for(_h=0;_h<wS.length;_h++)Eh=wS[_h],xS=Eh.toLowerCase(),bS=Eh[0].toUpperCase()+Eh.slice(1),Jo(xS,"on"+bS);var Eh,xS,bS,_h;Jo(H6,"onAnimationEnd");Jo(q6,"onAnimationIteration");Jo(K6,"onAnimationStart");Jo("dblclick","onDoubleClick");Jo("focusin","onFocus");Jo("focusout","onBlur");Jo(W6,"onTransitionEnd");mu("onMouseEnter",["mouseout","mouseover"]);mu("onMouseLeave",["mouseout","mouseover"]);mu("onPointerEnter",["pointerout","pointerover"]);mu("onPointerLeave",["pointerout","pointerover"]);Zs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),PV=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vc));function _S(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,PU(n,t,void 0,e),e.currentTarget=null}function Y6(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;_S(i,a,l),o=u}else for(s=0;s<n.length;s++){if(a=n[s],u=a.instance,l=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;_S(i,a,l),o=u}}}if(zh)throw e=Wv,zh=!1,Wv=null,e}function kt(e,t){var r=t[n1];r===void 0&&(r=t[n1]=new Set);var n=e+"__bubble";r.has(n)||(X6(t,e,2,!1),r.add(n))}function xv(e,t,r){var n=0;t&&(n|=4),X6(r,e,n,t)}var Sh="_reactListening"+Math.random().toString(36).slice(2);function of(e){if(!e[Sh]){e[Sh]=!0,n6.forEach(function(r){r!=="selectionchange"&&(PV.has(r)||xv(r,!1,e),xv(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sh]||(t[Sh]=!0,xv("selectionchange",!1,t))}}function X6(e,t,r,n){switch(M6(t)){case 1:var i=BU;break;case 4:i=zU;break;default:i=N1}r=i.bind(null,t,r,e),i=void 0,!Kv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function bv(e,t,r,n,i){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;a!==null;){if(s=js(a),s===null)return;if(u=s.tag,u===5||u===6){n=o=s;continue e}a=a.parentNode}}n=n.return}w6(function(){var l=o,p=I1(r),h=[];e:{var y=G6.get(e);if(y!==void 0){var v=F1,w=e;switch(e){case"keypress":if(Mh(r)===0)break e;case"keydown":case"keyup":v=iV;break;case"focusin":w="focus",v=yv;break;case"focusout":w="blur",v=yv;break;case"beforeblur":case"afterblur":v=yv;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=lS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=KU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=aV;break;case H6:case q6:case K6:v=YU;break;case W6:v=lV;break;case"scroll":v=HU;break;case"wheel":v=fV;break;case"copy":case"cut":case"paste":v=ZU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=fS}var C=(t&4)!==0,R=!C&&e==="scroll",P=C?y!==null?y+"Capture":null:y;C=[];for(var M=l,A;M!==null;){A=M;var $=A.stateNode;if(A.tag===5&&$!==null&&(A=$,P!==null&&($=Qc(M,P),$!=null&&C.push(sf(M,$,A)))),R)break;M=M.return}0<C.length&&(y=new v(y,w,null,r,p),h.push({event:y,listeners:C}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&r!==Hv&&(w=r.relatedTarget||r.fromElement)&&(js(w)||w[eo]))break e;if((v||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,v?(w=r.relatedTarget||r.toElement,v=l,w=w?js(w):null,w!==null&&(R=Qs(w),w!==R||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=l),v!==w)){if(C=lS,$="onMouseLeave",P="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(C=fS,$="onPointerLeave",P="onPointerEnter",M="pointer"),R=v==null?y:ru(v),A=w==null?y:ru(w),y=new C($,M+"leave",v,r,p),y.target=R,y.relatedTarget=A,$=null,js(p)===l&&(C=new C(P,M+"enter",w,r,p),C.target=A,C.relatedTarget=R,$=C),R=$,v&&w)t:{for(C=v,P=w,M=0,A=C;A;A=Xa(A))M++;for(A=0,$=P;$;$=Xa($))A++;for(;0<M-A;)C=Xa(C),M--;for(;0<A-M;)P=Xa(P),A--;for(;M--;){if(C===P||P!==null&&C===P.alternate)break t;C=Xa(C),P=Xa(P)}C=null}else C=null;v!==null&&ES(h,y,v,C,!1),w!==null&&R!==null&&ES(h,R,w,C,!0)}}e:{if(y=l?ru(l):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var W=vV;else if(pS(y))if(U6)W=_V;else{W=xV;var ee=wV}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(W=bV);if(W&&(W=W(e,l))){$6(h,W,r,p);break e}ee&&ee(e,y,l),e==="focusout"&&(ee=y._wrapperState)&&ee.controlled&&y.type==="number"&&Uv(y,"number",y.value)}switch(ee=l?ru(l):window,e){case"focusin":(pS(ee)||ee.contentEditable==="true")&&(eu=ee,Zv=l,qc=null);break;case"focusout":qc=Zv=eu=null;break;case"mousedown":Qv=!0;break;case"contextmenu":case"mouseup":case"dragend":Qv=!1,vS(h,r,p);break;case"selectionchange":if(CV)break;case"keydown":case"keyup":vS(h,r,p)}var q;if($1)e:{switch(e){case"compositionstart":var K="onCompositionStart";break e;case"compositionend":K="onCompositionEnd";break e;case"compositionupdate":K="onCompositionUpdate";break e}K=void 0}else Ja?F6(e,r)&&(K="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(K="onCompositionStart");K&&(k6&&r.locale!=="ko"&&(Ja||K!=="onCompositionStart"?K==="onCompositionEnd"&&Ja&&(q=N6()):(jo=p,k1="value"in jo?jo.value:jo.textContent,Ja=!0)),ee=Gh(l,K),0<ee.length&&(K=new cS(K,e,null,r,p),h.push({event:K,listeners:ee}),q?K.data=q:(q=L6(r),q!==null&&(K.data=q)))),(q=hV?pV(e,r):mV(e,r))&&(l=Gh(l,"onBeforeInput"),0<l.length&&(p=new cS("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=q))}Y6(h,t)})}function sf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Qc(e,r),o!=null&&n.unshift(sf(e,o,i)),o=Qc(e,t),o!=null&&n.push(sf(e,o,i))),e=e.return}return n}function Xa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ES(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=Qc(r,o),u!=null&&s.unshift(sf(r,u,a))):i||(u=Qc(r,o),u!=null&&s.push(sf(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var TV=/\r\n?/g,DV=/\u0000|\uFFFD/g;function SS(e){return(typeof e=="string"?e:""+e).replace(TV,`
|
|
6
|
-
`).replace(DV,"")}function Ch(e,t,r){if(t=SS(t),SS(e)!==t&&r)throw Error(xe(425))}function Yh(){}var Jv=null,e1=null;function t1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var r1=typeof setTimeout=="function"?setTimeout:void 0,OV=typeof clearTimeout=="function"?clearTimeout:void 0,CS=typeof Promise=="function"?Promise:void 0,IV=typeof queueMicrotask=="function"?queueMicrotask:typeof CS<"u"?function(e){return CS.resolve(null).then(e).catch(RV)}:r1;function RV(e){setTimeout(function(){throw e})}function _v(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),tf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);tf(t)}function Ko(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function PS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Eu=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Eu,af="__reactProps$"+Eu,eo="__reactContainer$"+Eu,n1="__reactEvents$"+Eu,AV="__reactListeners$"+Eu,MV="__reactHandles$"+Eu;function js(e){var t=e[Oi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[eo]||r[Oi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=PS(e);e!==null;){if(r=e[Oi])return r;e=PS(e)}return t}e=r,r=e.parentNode}return null}function gf(e){return e=e[Oi]||e[eo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ru(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(xe(33))}function mp(e){return e[af]||null}var i1=[],nu=-1;function es(e){return{current:e}}function Ft(e){0>nu||(e.current=i1[nu],i1[nu]=null,nu--)}function Ot(e,t){nu++,i1[nu]=e.current,e.current=t}var Qo={},Lr=es(Qo),ln=es(!1),Ks=Qo;function gu(e,t){var r=e.type.contextTypes;if(!r)return Qo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function cn(e){return e=e.childContextTypes,e!=null}function Xh(){Ft(ln),Ft(Lr)}function TS(e,t,r){if(Lr.current!==Qo)throw Error(xe(168));Ot(Lr,t),Ot(ln,r)}function Z6(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(xe(108,wU(e)||"Unknown",i));return Kt({},r,n)}function Zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qo,Ks=Lr.current,Ot(Lr,e),Ot(ln,ln.current),!0}function DS(e,t,r){var n=e.stateNode;if(!n)throw Error(xe(169));r?(e=Z6(e,t,Ks),n.__reactInternalMemoizedMergedChildContext=e,Ft(ln),Ft(Lr),Ot(Lr,e)):Ft(ln),Ot(ln,r)}var Yi=null,gp=!1,Ev=!1;function Q6(e){Yi===null?Yi=[e]:Yi.push(e)}function NV(e){gp=!0,Q6(e)}function ts(){if(!Ev&&Yi!==null){Ev=!0;var e=0,t=Et;try{var r=Yi;for(Et=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Yi=null,gp=!1}catch(i){throw Yi!==null&&(Yi=Yi.slice(e+1)),E6(R1,ts),i}finally{Et=t,Ev=!1}}return null}var iu=[],ou=0,Qh=null,Jh=0,Kn=[],Wn=0,Ws=null,Xi=1,Zi="";function Us(e,t){iu[ou++]=Jh,iu[ou++]=Qh,Qh=e,Jh=t}function J6(e,t,r){Kn[Wn++]=Xi,Kn[Wn++]=Zi,Kn[Wn++]=Ws,Ws=e;var n=Xi;e=Zi;var i=32-gi(n)-1;n&=~(1<<i),r+=1;var o=32-gi(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,Xi=1<<32-gi(t)+i|r<<i|n,Zi=o+e}else Xi=1<<o|r<<i|n,Zi=e}function V1(e){e.return!==null&&(Us(e,1),J6(e,1,0))}function j1(e){for(;e===Qh;)Qh=iu[--ou],iu[ou]=null,Jh=iu[--ou],iu[ou]=null;for(;e===Ws;)Ws=Kn[--Wn],Kn[Wn]=null,Zi=Kn[--Wn],Kn[Wn]=null,Xi=Kn[--Wn],Kn[Wn]=null}var Tn=null,Pn=null,jt=!1,mi=null;function e5(e,t){var r=Gn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function OS(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tn=e,Pn=Ko(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tn=e,Pn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ws!==null?{id:Xi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Gn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Tn=e,Pn=null,!0):!1;default:return!1}}function o1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function s1(e){if(jt){var t=Pn;if(t){var r=t;if(!OS(e,t)){if(o1(e))throw Error(xe(418));t=Ko(r.nextSibling);var n=Tn;t&&OS(e,t)?e5(n,r):(e.flags=e.flags&-4097|2,jt=!1,Tn=e)}}else{if(o1(e))throw Error(xe(418));e.flags=e.flags&-4097|2,jt=!1,Tn=e}}}function IS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tn=e}function Ph(e){if(e!==Tn)return!1;if(!jt)return IS(e),jt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!t1(e.type,e.memoizedProps)),t&&(t=Pn)){if(o1(e))throw t5(),Error(xe(418));for(;t;)e5(e,t),t=Ko(t.nextSibling)}if(IS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(xe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Pn=Ko(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Pn=null}}else Pn=Tn?Ko(e.stateNode.nextSibling):null;return!0}function t5(){for(var e=Pn;e;)e=Ko(e.nextSibling)}function yu(){Pn=Tn=null,jt=!1}function B1(e){mi===null?mi=[e]:mi.push(e)}var kV=no.ReactCurrentBatchConfig;function hi(e,t){if(e&&e.defaultProps){t=Kt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ep=es(null),tp=null,su=null,z1=null;function H1(){z1=su=tp=null}function q1(e){var t=ep.current;Ft(ep),e._currentValue=t}function a1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function hu(e,t){tp=e,z1=su=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(un=!0),e.firstContext=null)}function Xn(e){var t=e._currentValue;if(z1!==e)if(e={context:e,memoizedValue:t,next:null},su===null){if(tp===null)throw Error(xe(308));su=e,tp.dependencies={lanes:0,firstContext:e}}else su=su.next=e;return t}var Bs=null;function K1(e){Bs===null?Bs=[e]:Bs.push(e)}function r5(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,K1(t)):(r.next=i.next,i.next=r),t.interleaved=r,to(e,n)}function to(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var $o=!1;function W1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n5(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(gt&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,to(e,r)}return i=n.interleaved,i===null?(t.next=t,K1(n)):(t.next=i.next,i.next=t),n.interleaved=t,to(e,r)}function Nh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,A1(e,r)}}function RS(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function rp(e,t,r,n){var i=e.updateQueue;$o=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?o=l:s.next=l,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,p=l=u=null,a=o;do{var y=a.lane,v=a.eventTime;if((n&y)===y){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,C=a;switch(y=t,v=r,C.tag){case 1:if(w=C.payload,typeof w=="function"){h=w.call(v,h,y);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=C.payload,y=typeof w=="function"?w.call(v,h,y):w,y==null)break e;h=Kt({},h,y);break e;case 2:$o=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else v={eventTime:v,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=v,u=h):p=p.next=v,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(1);if(p===null&&(u=h),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ys|=s,e.lanes=s,e.memoizedState=h}}function AS(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(xe(191,i));i.call(n)}}}var i5=new r6.Component().refs;function u1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Kt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var yp={isMounted:function(e){return(e=e._reactInternals)?Qs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Gr(),i=Yo(e),o=Qi(n,i);o.payload=t,r!=null&&(o.callback=r),t=Wo(e,o,i),t!==null&&(yi(t,e,i,n),Nh(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Gr(),i=Yo(e),o=Qi(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Wo(e,o,i),t!==null&&(yi(t,e,i,n),Nh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Gr(),n=Yo(e),i=Qi(r,n);i.tag=2,t!=null&&(i.callback=t),t=Wo(e,i,n),t!==null&&(yi(t,e,n,r),Nh(t,e,n))}};function MS(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!nf(r,n)||!nf(i,o):!0}function o5(e,t,r){var n=!1,i=Qo,o=t.contextType;return typeof o=="object"&&o!==null?o=Xn(o):(i=cn(t)?Ks:Lr.current,n=t.contextTypes,o=(n=n!=null)?gu(e,i):Qo),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yp,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function NS(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&yp.enqueueReplaceState(t,t.state,null)}function l1(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=i5,W1(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Xn(o):(o=cn(t)?Ks:Lr.current,i.context=gu(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(u1(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&yp.enqueueReplaceState(i,i.state,null),rp(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Mc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(xe(309));var n=r.stateNode}if(!n)throw Error(xe(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===i5&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(xe(284));if(!r._owner)throw Error(xe(290,e))}return e}function Th(e,t){throw e=Object.prototype.toString.call(t),Error(xe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kS(e){var t=e._init;return t(e._payload)}function s5(e){function t(P,M){if(e){var A=P.deletions;A===null?(P.deletions=[M],P.flags|=16):A.push(M)}}function r(P,M){if(!e)return null;for(;M!==null;)t(P,M),M=M.sibling;return null}function n(P,M){for(P=new Map;M!==null;)M.key!==null?P.set(M.key,M):P.set(M.index,M),M=M.sibling;return P}function i(P,M){return P=Xo(P,M),P.index=0,P.sibling=null,P}function o(P,M,A){return P.index=A,e?(A=P.alternate,A!==null?(A=A.index,A<M?(P.flags|=2,M):A):(P.flags|=2,M)):(P.flags|=1048576,M)}function s(P){return e&&P.alternate===null&&(P.flags|=2),P}function a(P,M,A,$){return M===null||M.tag!==6?(M=Iv(A,P.mode,$),M.return=P,M):(M=i(M,A),M.return=P,M)}function u(P,M,A,$){var W=A.type;return W===Qa?p(P,M,A.props.children,$,A.key):M!==null&&(M.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Lo&&kS(W)===M.type)?($=i(M,A.props),$.ref=Mc(P,M,A),$.return=P,$):($=Vh(A.type,A.key,A.props,null,P.mode,$),$.ref=Mc(P,M,A),$.return=P,$)}function l(P,M,A,$){return M===null||M.tag!==4||M.stateNode.containerInfo!==A.containerInfo||M.stateNode.implementation!==A.implementation?(M=Rv(A,P.mode,$),M.return=P,M):(M=i(M,A.children||[]),M.return=P,M)}function p(P,M,A,$,W){return M===null||M.tag!==7?(M=qs(A,P.mode,$,W),M.return=P,M):(M=i(M,A),M.return=P,M)}function h(P,M,A){if(typeof M=="string"&&M!==""||typeof M=="number")return M=Iv(""+M,P.mode,A),M.return=P,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case dh:return A=Vh(M.type,M.key,M.props,null,P.mode,A),A.ref=Mc(P,null,M),A.return=P,A;case Za:return M=Rv(M,P.mode,A),M.return=P,M;case Lo:var $=M._init;return h(P,$(M._payload),A)}if($c(M)||Oc(M))return M=qs(M,P.mode,A,null),M.return=P,M;Th(P,M)}return null}function y(P,M,A,$){var W=M!==null?M.key:null;if(typeof A=="string"&&A!==""||typeof A=="number")return W!==null?null:a(P,M,""+A,$);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case dh:return A.key===W?u(P,M,A,$):null;case Za:return A.key===W?l(P,M,A,$):null;case Lo:return W=A._init,y(P,M,W(A._payload),$)}if($c(A)||Oc(A))return W!==null?null:p(P,M,A,$,null);Th(P,A)}return null}function v(P,M,A,$,W){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(A)||null,a(M,P,""+$,W);if(typeof $=="object"&&$!==null){switch($.$$typeof){case dh:return P=P.get($.key===null?A:$.key)||null,u(M,P,$,W);case Za:return P=P.get($.key===null?A:$.key)||null,l(M,P,$,W);case Lo:var ee=$._init;return v(P,M,A,ee($._payload),W)}if($c($)||Oc($))return P=P.get(A)||null,p(M,P,$,W,null);Th(M,$)}return null}function w(P,M,A,$){for(var W=null,ee=null,q=M,K=M=0,ue=null;q!==null&&K<A.length;K++){q.index>K?(ue=q,q=null):ue=q.sibling;var pe=y(P,q,A[K],$);if(pe===null){q===null&&(q=ue);break}e&&q&&pe.alternate===null&&t(P,q),M=o(pe,M,K),ee===null?W=pe:ee.sibling=pe,ee=pe,q=ue}if(K===A.length)return r(P,q),jt&&Us(P,K),W;if(q===null){for(;K<A.length;K++)q=h(P,A[K],$),q!==null&&(M=o(q,M,K),ee===null?W=q:ee.sibling=q,ee=q);return jt&&Us(P,K),W}for(q=n(P,q);K<A.length;K++)ue=v(q,P,K,A[K],$),ue!==null&&(e&&ue.alternate!==null&&q.delete(ue.key===null?K:ue.key),M=o(ue,M,K),ee===null?W=ue:ee.sibling=ue,ee=ue);return e&&q.forEach(function(fe){return t(P,fe)}),jt&&Us(P,K),W}function C(P,M,A,$){var W=Oc(A);if(typeof W!="function")throw Error(xe(150));if(A=W.call(A),A==null)throw Error(xe(151));for(var ee=W=null,q=M,K=M=0,ue=null,pe=A.next();q!==null&&!pe.done;K++,pe=A.next()){q.index>K?(ue=q,q=null):ue=q.sibling;var fe=y(P,q,pe.value,$);if(fe===null){q===null&&(q=ue);break}e&&q&&fe.alternate===null&&t(P,q),M=o(fe,M,K),ee===null?W=fe:ee.sibling=fe,ee=fe,q=ue}if(pe.done)return r(P,q),jt&&Us(P,K),W;if(q===null){for(;!pe.done;K++,pe=A.next())pe=h(P,pe.value,$),pe!==null&&(M=o(pe,M,K),ee===null?W=pe:ee.sibling=pe,ee=pe);return jt&&Us(P,K),W}for(q=n(P,q);!pe.done;K++,pe=A.next())pe=v(q,P,K,pe.value,$),pe!==null&&(e&&pe.alternate!==null&&q.delete(pe.key===null?K:pe.key),M=o(pe,M,K),ee===null?W=pe:ee.sibling=pe,ee=pe);return e&&q.forEach(function(X){return t(P,X)}),jt&&Us(P,K),W}function R(P,M,A,$){if(typeof A=="object"&&A!==null&&A.type===Qa&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case dh:e:{for(var W=A.key,ee=M;ee!==null;){if(ee.key===W){if(W=A.type,W===Qa){if(ee.tag===7){r(P,ee.sibling),M=i(ee,A.props.children),M.return=P,P=M;break e}}else if(ee.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Lo&&kS(W)===ee.type){r(P,ee.sibling),M=i(ee,A.props),M.ref=Mc(P,ee,A),M.return=P,P=M;break e}r(P,ee);break}else t(P,ee);ee=ee.sibling}A.type===Qa?(M=qs(A.props.children,P.mode,$,A.key),M.return=P,P=M):($=Vh(A.type,A.key,A.props,null,P.mode,$),$.ref=Mc(P,M,A),$.return=P,P=$)}return s(P);case Za:e:{for(ee=A.key;M!==null;){if(M.key===ee)if(M.tag===4&&M.stateNode.containerInfo===A.containerInfo&&M.stateNode.implementation===A.implementation){r(P,M.sibling),M=i(M,A.children||[]),M.return=P,P=M;break e}else{r(P,M);break}else t(P,M);M=M.sibling}M=Rv(A,P.mode,$),M.return=P,P=M}return s(P);case Lo:return ee=A._init,R(P,M,ee(A._payload),$)}if($c(A))return w(P,M,A,$);if(Oc(A))return C(P,M,A,$);Th(P,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,M!==null&&M.tag===6?(r(P,M.sibling),M=i(M,A),M.return=P,P=M):(r(P,M),M=Iv(A,P.mode,$),M.return=P,P=M),s(P)):r(P,M)}return R}var vu=s5(!0),a5=s5(!1),yf={},Ri=es(yf),uf=es(yf),lf=es(yf);function zs(e){if(e===yf)throw Error(xe(174));return e}function G1(e,t){switch(Ot(lf,t),Ot(uf,e),Ot(Ri,yf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jv(t,e)}Ft(Ri),Ot(Ri,t)}function wu(){Ft(Ri),Ft(uf),Ft(lf)}function u5(e){zs(lf.current);var t=zs(Ri.current),r=jv(t,e.type);t!==r&&(Ot(uf,e),Ot(Ri,r))}function Y1(e){uf.current===e&&(Ft(Ri),Ft(uf))}var Ht=es(0);function np(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Sv=[];function X1(){for(var e=0;e<Sv.length;e++)Sv[e]._workInProgressVersionPrimary=null;Sv.length=0}var kh=no.ReactCurrentDispatcher,Cv=no.ReactCurrentBatchConfig,Gs=0,qt=null,cr=null,gr=null,ip=!1,Kc=!1,cf=0,FV=0;function Nr(){throw Error(xe(321))}function Z1(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!vi(e[r],t[r]))return!1;return!0}function Q1(e,t,r,n,i,o){if(Gs=o,qt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kh.current=e===null||e.memoizedState===null?VV:jV,e=r(n,i),Kc){o=0;do{if(Kc=!1,cf=0,25<=o)throw Error(xe(301));o+=1,gr=cr=null,t.updateQueue=null,kh.current=BV,e=r(n,i)}while(Kc)}if(kh.current=op,t=cr!==null&&cr.next!==null,Gs=0,gr=cr=qt=null,ip=!1,t)throw Error(xe(300));return e}function J1(){var e=cf!==0;return cf=0,e}function Di(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gr===null?qt.memoizedState=gr=e:gr=gr.next=e,gr}function Zn(){if(cr===null){var e=qt.alternate;e=e!==null?e.memoizedState:null}else e=cr.next;var t=gr===null?qt.memoizedState:gr.next;if(t!==null)gr=t,cr=e;else{if(e===null)throw Error(xe(310));cr=e,e={memoizedState:cr.memoizedState,baseState:cr.baseState,baseQueue:cr.baseQueue,queue:cr.queue,next:null},gr===null?qt.memoizedState=gr=e:gr=gr.next=e}return gr}function ff(e,t){return typeof t=="function"?t(e):t}function Pv(e){var t=Zn(),r=t.queue;if(r===null)throw Error(xe(311));r.lastRenderedReducer=e;var n=cr,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,u=null,l=o;do{var p=l.lane;if((Gs&p)===p)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var h={lane:p,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=h,s=n):u=u.next=h,qt.lanes|=p,Ys|=p}l=l.next}while(l!==null&&l!==o);u===null?s=n:u.next=a,vi(n,t.memoizedState)||(un=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,qt.lanes|=o,Ys|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Tv(e){var t=Zn(),r=t.queue;if(r===null)throw Error(xe(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);vi(o,t.memoizedState)||(un=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function l5(){}function c5(e,t){var r=qt,n=Zn(),i=t(),o=!vi(n.memoizedState,i);if(o&&(n.memoizedState=i,un=!0),n=n.queue,ew(h5.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||gr!==null&&gr.memoizedState.tag&1){if(r.flags|=2048,df(9,d5.bind(null,r,n,i,t),void 0,null),yr===null)throw Error(xe(349));(Gs&30)!==0||f5(r,t,i)}return i}function f5(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qt.updateQueue,t===null?(t={lastEffect:null,stores:null},qt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function d5(e,t,r,n){t.value=r,t.getSnapshot=n,p5(t)&&m5(e)}function h5(e,t,r){return r(function(){p5(t)&&m5(e)})}function p5(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vi(e,r)}catch(n){return!0}}function m5(e){var t=to(e,1);t!==null&&yi(t,e,1,-1)}function FS(e){var t=Di();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ff,lastRenderedState:e},t.queue=e,e=e.dispatch=UV.bind(null,qt,e),[t.memoizedState,e]}function df(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=qt.updateQueue,t===null?(t={lastEffect:null,stores:null},qt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function g5(){return Zn().memoizedState}function Fh(e,t,r,n){var i=Di();qt.flags|=e,i.memoizedState=df(1|t,r,void 0,n===void 0?null:n)}function vp(e,t,r,n){var i=Zn();n=n===void 0?null:n;var o=void 0;if(cr!==null){var s=cr.memoizedState;if(o=s.destroy,n!==null&&Z1(n,s.deps)){i.memoizedState=df(t,r,o,n);return}}qt.flags|=e,i.memoizedState=df(1|t,r,o,n)}function LS(e,t){return Fh(8390656,8,e,t)}function ew(e,t){return vp(2048,8,e,t)}function y5(e,t){return vp(4,2,e,t)}function v5(e,t){return vp(4,4,e,t)}function w5(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x5(e,t,r){return r=r!=null?r.concat([e]):null,vp(4,4,w5.bind(null,t,e),r)}function tw(){}function b5(e,t){var r=Zn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z1(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function _5(e,t){var r=Zn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z1(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function E5(e,t,r){return(Gs&21)===0?(e.baseState&&(e.baseState=!1,un=!0),e.memoizedState=r):(vi(r,t)||(r=P6(),qt.lanes|=r,Ys|=r,e.baseState=!0),t)}function LV(e,t){var r=Et;Et=r!==0&&4>r?r:4,e(!0);var n=Cv.transition;Cv.transition={};try{e(!1),t()}finally{Et=r,Cv.transition=n}}function S5(){return Zn().memoizedState}function $V(e,t,r){var n=Yo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},C5(e))P5(t,r);else if(r=r5(e,t,r,n),r!==null){var i=Gr();yi(r,e,n,i),T5(r,t,n)}}function UV(e,t,r){var n=Yo(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(C5(e))P5(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,vi(a,s)){var u=t.interleaved;u===null?(i.next=i,K1(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch(l){}finally{}r=r5(e,t,i,n),r!==null&&(i=Gr(),yi(r,e,n,i),T5(r,t,n))}}function C5(e){var t=e.alternate;return e===qt||t!==null&&t===qt}function P5(e,t){Kc=ip=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function T5(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,A1(e,r)}}var op={readContext:Xn,useCallback:Nr,useContext:Nr,useEffect:Nr,useImperativeHandle:Nr,useInsertionEffect:Nr,useLayoutEffect:Nr,useMemo:Nr,useReducer:Nr,useRef:Nr,useState:Nr,useDebugValue:Nr,useDeferredValue:Nr,useTransition:Nr,useMutableSource:Nr,useSyncExternalStore:Nr,useId:Nr,unstable_isNewReconciler:!1},VV={readContext:Xn,useCallback:function(e,t){return Di().memoizedState=[e,t===void 0?null:t],e},useContext:Xn,useEffect:LS,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Fh(4194308,4,w5.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fh(4,2,e,t)},useMemo:function(e,t){var r=Di();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Di();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$V.bind(null,qt,e),[n.memoizedState,e]},useRef:function(e){var t=Di();return e={current:e},t.memoizedState=e},useState:FS,useDebugValue:tw,useDeferredValue:function(e){return Di().memoizedState=e},useTransition:function(){var e=FS(!1),t=e[0];return e=LV.bind(null,e[1]),Di().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qt,i=Di();if(jt){if(r===void 0)throw Error(xe(407));r=r()}else{if(r=t(),yr===null)throw Error(xe(349));(Gs&30)!==0||f5(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,LS(h5.bind(null,n,o,e),[e]),n.flags|=2048,df(9,d5.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Di(),t=yr.identifierPrefix;if(jt){var r=Zi,n=Xi;r=(n&~(1<<32-gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=cf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=FV++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jV={readContext:Xn,useCallback:b5,useContext:Xn,useEffect:ew,useImperativeHandle:x5,useInsertionEffect:y5,useLayoutEffect:v5,useMemo:_5,useReducer:Pv,useRef:g5,useState:function(){return Pv(ff)},useDebugValue:tw,useDeferredValue:function(e){var t=Zn();return E5(t,cr.memoizedState,e)},useTransition:function(){var e=Pv(ff)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:l5,useSyncExternalStore:c5,useId:S5,unstable_isNewReconciler:!1},BV={readContext:Xn,useCallback:b5,useContext:Xn,useEffect:ew,useImperativeHandle:x5,useInsertionEffect:y5,useLayoutEffect:v5,useMemo:_5,useReducer:Tv,useRef:g5,useState:function(){return Tv(ff)},useDebugValue:tw,useDeferredValue:function(e){var t=Zn();return cr===null?t.memoizedState=e:E5(t,cr.memoizedState,e)},useTransition:function(){var e=Tv(ff)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:l5,useSyncExternalStore:c5,useId:S5,unstable_isNewReconciler:!1};function xu(e,t){try{var r="",n=t;do r+=vU(n),n=n.return;while(n);var i=r}catch(o){i=`
|
|
5
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{xy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?pc(e):""}function x9(e){switch(e.tag){case 5:return pc(e.type);case 16:return pc("Lazy");case 13:return pc("Suspense");case 19:return pc("SuspenseList");case 0:case 2:case 15:return e=by(e.type,!1),e;case 11:return e=by(e.type.render,!1),e;case 1:return e=by(e.type,!0),e;default:return""}}function Ky(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pa:return"Fragment";case Ta:return"Portal";case jy:return"Profiler";case L1:return"StrictMode";case zy:return"Suspense";case Hy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q3:return(e.displayName||"Context")+".Consumer";case Z3:return(e._context.displayName||"Context")+".Provider";case F1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $1:return t=e.displayName||null,t!==null?t:Ky(e.type)||"Memo";case Ji:t=e._payload,e=e._init;try{return Ky(e(t))}catch(r){}}return null}function b9(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ky(t);case 8:return t===L1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E9(e){var t=tS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vd(e){e._valueTracker||(e._valueTracker=E9(e))}function rS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=tS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ph(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function qy(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function W_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=fo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nS(e,t){t=t.checked,t!=null&&k1(e,"checked",t,!1)}function Wy(e,t){nS(e,t);var r=fo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gy(e,t.type,r):t.hasOwnProperty("defaultValue")&&Gy(e,t.type,fo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function G_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Gy(e,t,r){(t!=="number"||ph(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var mc=Array.isArray;function $a(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+fo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Y_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(oe(92));if(mc(r)){if(1<r.length)throw Error(oe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fo(r)}}function iS(e,t){var r=fo(t.value),n=fo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function X_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function oS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?oS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bd,sS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bd=Bd||document.createElement("div"),Bd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_9=["Webkit","ms","Moz","O"];Object.keys(vc).forEach(function(e){_9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vc[t]=vc[e]})});function aS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vc.hasOwnProperty(e)&&vc[e]?(""+t).trim():t+"px"}function uS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=aS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var S9=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jy(e,t){if(t){if(S9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function Zy(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qy=null;function U1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var e1=null,Ua=null,Va=null;function J_(e){if(e=qc(e)){if(typeof e1!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=jh(t),e1(e.stateNode,e.type,t))}}function lS(e){Ua?Va?Va.push(e):Va=[e]:Ua=e}function cS(){if(Ua){var e=Ua,t=Va;if(Va=Ua=null,J_(e),t)for(e=0;e<t.length;e++)J_(t[e])}}function fS(e,t){return e(t)}function dS(){}var Ey=!1;function hS(e,t,r){if(Ey)return e(t,r);Ey=!0;try{return fS(e,t,r)}finally{Ey=!1,(Ua!==null||Va!==null)&&(dS(),cS())}}function Ic(e,t){var r=e.stateNode;if(r===null)return null;var n=jh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(oe(231,t,typeof r));return r}var t1=!1;if(gi)try{Sa={},Object.defineProperty(Sa,"passive",{get:function(){t1=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch(e){t1=!1}var Sa;function C9(e,t,r,n,i,o,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(p){this.onError(p)}}var wc=!1,mh=null,gh=!1,r1=null,T9={onError:function(e){wc=!0,mh=e}};function P9(e,t,r,n,i,o,s,a,u){wc=!1,mh=null,C9.apply(T9,arguments)}function D9(e,t,r,n,i,o,s,a,u){if(P9.apply(this,arguments),wc){if(wc){var l=mh;wc=!1,mh=null}else throw Error(oe(198));gh||(gh=!0,r1=l)}}function Is(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function pS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Z_(e){if(Is(e)!==e)throw Error(oe(188))}function I9(e){var t=e.alternate;if(!t){if(t=Is(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Z_(i),e;if(o===n)return Z_(i),t;o=o.sibling}throw Error(oe(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(oe(189))}}if(r.alternate!==n)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?e:t}function mS(e){return e=I9(e),e!==null?gS(e):null}function gS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gS(e);if(t!==null)return t;e=e.sibling}return null}var yS=Qr.unstable_scheduleCallback,Q_=Qr.unstable_cancelCallback,O9=Qr.unstable_shouldYield,A9=Qr.unstable_requestPaint,kt=Qr.unstable_now,R9=Qr.unstable_getCurrentPriorityLevel,V1=Qr.unstable_ImmediatePriority,vS=Qr.unstable_UserBlockingPriority,yh=Qr.unstable_NormalPriority,N9=Qr.unstable_LowPriority,wS=Qr.unstable_IdlePriority,$h=null,Xn=null;function M9(e){if(Xn&&typeof Xn.onCommitFiberRoot=="function")try{Xn.onCommitFiberRoot($h,e,void 0,(e.current.flags&128)===128)}catch(t){}}var kn=Math.clz32?Math.clz32:F9,k9=Math.log,L9=Math.LN2;function F9(e){return e>>>=0,e===0?32:31-(k9(e)/L9|0)|0}var jd=64,zd=4194304;function gc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=gc(a):(o&=s,o!==0&&(n=gc(o)))}else s=r&~i,s!==0?n=gc(s):o!==0&&(n=gc(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-kn(t),i=1<<r,n|=e[r],t&=~i;return n}function $9(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function U9(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-kn(o),a=1<<s,u=i[s];u===-1?((a&r)===0||(a&n)!==0)&&(i[s]=$9(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function n1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xS(){var e=jd;return jd<<=1,(jd&4194240)===0&&(jd=64),e}function _y(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Hc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kn(t),e[t]=r}function V9(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-kn(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function B1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-kn(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Oe=0;function bS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ES,j1,_S,SS,CS,i1=!1,Hd=[],no=null,io=null,oo=null,Oc=new Map,Ac=new Map,Qi=[],B9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function e3(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":oo=null;break;case"pointerover":case"pointerout":Oc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ac.delete(t.pointerId)}}function ac(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=qc(t),t!==null&&j1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function j9(e,t,r,n,i){switch(t){case"focusin":return no=ac(no,e,t,r,n,i),!0;case"dragenter":return io=ac(io,e,t,r,n,i),!0;case"mouseover":return oo=ac(oo,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Oc.set(o,ac(Oc.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ac.set(o,ac(Ac.get(o)||null,e,t,r,n,i)),!0}return!1}function TS(e){var t=vs(e.target);if(t!==null){var r=Is(t);if(r!==null){if(t=r.tag,t===13){if(t=pS(r),t!==null){e.blockedOn=t,CS(e.priority,function(){_S(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=o1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Qy=n,r.target.dispatchEvent(n),Qy=null}else return t=qc(r),t!==null&&j1(t),e.blockedOn=r,!1;t.shift()}return!0}function t3(e,t,r){ih(e)&&r.delete(t)}function z9(){i1=!1,no!==null&&ih(no)&&(no=null),io!==null&&ih(io)&&(io=null),oo!==null&&ih(oo)&&(oo=null),Oc.forEach(t3),Ac.forEach(t3)}function uc(e,t){e.blockedOn===t&&(e.blockedOn=null,i1||(i1=!0,Qr.unstable_scheduleCallback(Qr.unstable_NormalPriority,z9)))}function Rc(e){function t(i){return uc(i,e)}if(0<Hd.length){uc(Hd[0],e);for(var r=1;r<Hd.length;r++){var n=Hd[r];n.blockedOn===e&&(n.blockedOn=null)}}for(no!==null&&uc(no,e),io!==null&&uc(io,e),oo!==null&&uc(oo,e),Oc.forEach(t),Ac.forEach(t),r=0;r<Qi.length;r++)n=Qi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Qi.length&&(r=Qi[0],r.blockedOn===null);)TS(r),r.blockedOn===null&&Qi.shift()}var Ba=xi.ReactCurrentBatchConfig,wh=!0;function H9(e,t,r,n){var i=Oe,o=Ba.transition;Ba.transition=null;try{Oe=1,z1(e,t,r,n)}finally{Oe=i,Ba.transition=o}}function K9(e,t,r,n){var i=Oe,o=Ba.transition;Ba.transition=null;try{Oe=4,z1(e,t,r,n)}finally{Oe=i,Ba.transition=o}}function z1(e,t,r,n){if(wh){var i=o1(e,t,r,n);if(i===null)Oy(e,t,n,xh,r),e3(e,n);else if(j9(i,e,t,r,n))n.stopPropagation();else if(e3(e,n),t&4&&-1<B9.indexOf(e)){for(;i!==null;){var o=qc(i);if(o!==null&&ES(o),o=o1(e,t,r,n),o===null&&Oy(e,t,n,xh,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Oy(e,t,n,null,r)}}var xh=null;function o1(e,t,r,n){if(xh=null,e=U1(n),e=vs(e),e!==null)if(t=Is(e),t===null)e=null;else if(r=t.tag,r===13){if(e=pS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xh=e,null}function PS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(R9()){case V1:return 1;case vS:return 4;case yh:case N9:return 16;case wS:return 536870912;default:return 16}default:return 16}}var to=null,H1=null,oh=null;function DS(){if(oh)return oh;var e,t=H1,r=t.length,n,i="value"in to?to.value:to.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return oh=i.slice(e,1<n?1-n:void 0)}function sh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kd(){return!0}function r3(){return!1}function en(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Kd:r3,this.isPropagationStopped=r3,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Kd)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Kd)},persist:function(){},isPersistent:Kd}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},K1=en(Ja),Kc=Dt({},Ja,{view:0,detail:0}),q9=en(Kc),Sy,Cy,lc,Uh=Dt({},Kc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:q1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lc&&(lc&&e.type==="mousemove"?(Sy=e.screenX-lc.screenX,Cy=e.screenY-lc.screenY):Cy=Sy=0,lc=e),Sy)},movementY:function(e){return"movementY"in e?e.movementY:Cy}}),n3=en(Uh),W9=Dt({},Uh,{dataTransfer:0}),G9=en(W9),Y9=Dt({},Kc,{relatedTarget:0}),Ty=en(Y9),X9=Dt({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),J9=en(X9),Z9=Dt({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q9=en(Z9),e$=Dt({},Ja,{data:0}),i3=en(e$),t$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n$[e])?!!t[e]:!1}function q1(){return i$}var o$=Dt({},Kc,{key:function(e){if(e.key){var t=t$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=sh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:q1,charCode:function(e){return e.type==="keypress"?sh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s$=en(o$),a$=Dt({},Uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o3=en(a$),u$=Dt({},Kc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:q1}),l$=en(u$),c$=Dt({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),f$=en(c$),d$=Dt({},Uh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),h$=en(d$),p$=[9,13,27,32],W1=gi&&"CompositionEvent"in window,xc=null;gi&&"documentMode"in document&&(xc=document.documentMode);var m$=gi&&"TextEvent"in window&&!xc,IS=gi&&(!W1||xc&&8<xc&&11>=xc),s3=String.fromCharCode(32),a3=!1;function OS(e,t){switch(e){case"keyup":return p$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Da=!1;function g$(e,t){switch(e){case"compositionend":return AS(t);case"keypress":return t.which!==32?null:(a3=!0,s3);case"textInput":return e=t.data,e===s3&&a3?null:e;default:return null}}function y$(e,t){if(Da)return e==="compositionend"||!W1&&OS(e,t)?(e=DS(),oh=H1=to=null,Da=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return IS&&t.locale!=="ko"?null:t.data;default:return null}}var v$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v$[e.type]:t==="textarea"}function RS(e,t,r,n){lS(n),t=bh(t,"onChange"),0<t.length&&(r=new K1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var bc=null,Nc=null;function w$(e){zS(e,0)}function Vh(e){var t=Aa(e);if(rS(t))return e}function x$(e,t){if(e==="change")return t}var NS=!1;gi&&(gi?(Wd="oninput"in document,Wd||(Py=document.createElement("div"),Py.setAttribute("oninput","return;"),Wd=typeof Py.oninput=="function"),qd=Wd):qd=!1,NS=qd&&(!document.documentMode||9<document.documentMode));var qd,Wd,Py;function l3(){bc&&(bc.detachEvent("onpropertychange",MS),Nc=bc=null)}function MS(e){if(e.propertyName==="value"&&Vh(Nc)){var t=[];RS(t,Nc,e,U1(e)),hS(w$,t)}}function b$(e,t,r){e==="focusin"?(l3(),bc=t,Nc=r,bc.attachEvent("onpropertychange",MS)):e==="focusout"&&l3()}function E$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vh(Nc)}function _$(e,t){if(e==="click")return Vh(t)}function S$(e,t){if(e==="input"||e==="change")return Vh(t)}function C$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:C$;function Mc(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!By.call(t,i)||!Fn(e[i],t[i]))return!1}return!0}function c3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function f3(e,t){var r=c3(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=c3(r)}}function kS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function LS(){for(var e=window,t=ph();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=ph(e.document)}return t}function G1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function T$(e){var t=LS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kS(r.ownerDocument.documentElement,r)){if(n!==null&&G1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=f3(r,o);var s=f3(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var P$=gi&&"documentMode"in document&&11>=document.documentMode,Ia=null,s1=null,Ec=null,a1=!1;function d3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;a1||Ia==null||Ia!==ph(n)||(n=Ia,"selectionStart"in n&&G1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ec&&Mc(Ec,n)||(Ec=n,n=bh(s1,"onSelect"),0<n.length&&(t=new K1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ia)))}function Gd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Oa={animationend:Gd("Animation","AnimationEnd"),animationiteration:Gd("Animation","AnimationIteration"),animationstart:Gd("Animation","AnimationStart"),transitionend:Gd("Transition","TransitionEnd")},Dy={},FS={};gi&&(FS=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function Bh(e){if(Dy[e])return Dy[e];if(!Oa[e])return e;var t=Oa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in FS)return Dy[e]=t[r];return e}var $S=Bh("animationend"),US=Bh("animationiteration"),VS=Bh("animationstart"),BS=Bh("transitionend"),jS=new Map,h3="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function po(e,t){jS.set(e,t),Ds(t,[e])}for(Yd=0;Yd<h3.length;Yd++)Xd=h3[Yd],p3=Xd.toLowerCase(),m3=Xd[0].toUpperCase()+Xd.slice(1),po(p3,"on"+m3);var Xd,p3,m3,Yd;po($S,"onAnimationEnd");po(US,"onAnimationIteration");po(VS,"onAnimationStart");po("dblclick","onDoubleClick");po("focusin","onFocus");po("focusout","onBlur");po(BS,"onTransitionEnd");Ha("onMouseEnter",["mouseout","mouseover"]);Ha("onMouseLeave",["mouseout","mouseover"]);Ha("onPointerEnter",["pointerout","pointerover"]);Ha("onPointerLeave",["pointerout","pointerover"]);Ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),D$=new Set("cancel close invalid load scroll toggle".split(" ").concat(yc));function g3(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,D9(n,t,void 0,e),e.currentTarget=null}function zS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;g3(i,a,l),o=u}else for(s=0;s<n.length;s++){if(a=n[s],u=a.instance,l=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;g3(i,a,l),o=u}}}if(gh)throw e=r1,gh=!1,r1=null,e}function wt(e,t){var r=t[d1];r===void 0&&(r=t[d1]=new Set);var n=e+"__bubble";r.has(n)||(HS(t,e,2,!1),r.add(n))}function Iy(e,t,r){var n=0;t&&(n|=4),HS(r,e,n,t)}var Jd="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[Jd]){e[Jd]=!0,J3.forEach(function(r){r!=="selectionchange"&&(D$.has(r)||Iy(r,!1,e),Iy(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jd]||(t[Jd]=!0,Iy("selectionchange",!1,t))}}function HS(e,t,r,n){switch(PS(t)){case 1:var i=H9;break;case 4:i=K9;break;default:i=z1}r=i.bind(null,t,r,e),i=void 0,!t1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Oy(e,t,r,n,i){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;a!==null;){if(s=vs(a),s===null)return;if(u=s.tag,u===5||u===6){n=o=s;continue e}a=a.parentNode}}n=n.return}hS(function(){var l=o,p=U1(r),h=[];e:{var y=jS.get(e);if(y!==void 0){var v=K1,w=e;switch(e){case"keypress":if(sh(r)===0)break e;case"keydown":case"keyup":v=s$;break;case"focusin":w="focus",v=Ty;break;case"focusout":w="blur",v=Ty;break;case"beforeblur":case"afterblur":v=Ty;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=n3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=G9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=l$;break;case $S:case US:case VS:v=J9;break;case BS:v=f$;break;case"scroll":v=q9;break;case"wheel":v=h$;break;case"copy":case"cut":case"paste":v=Q9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=o3}var _=(t&4)!==0,D=!_&&e==="scroll",C=_?y!==null?y+"Capture":null:y;_=[];for(var I=l,P;I!==null;){P=I;var R=P.stateNode;if(P.tag===5&&R!==null&&(P=R,C!==null&&(R=Ic(I,C),R!=null&&_.push(Lc(I,R,P)))),D)break;I=I.return}0<_.length&&(y=new v(y,w,null,r,p),h.push({event:y,listeners:_}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&r!==Qy&&(w=r.relatedTarget||r.fromElement)&&(vs(w)||w[yi]))break e;if((v||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,v?(w=r.relatedTarget||r.toElement,v=l,w=w?vs(w):null,w!==null&&(D=Is(w),w!==D||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=l),v!==w)){if(_=n3,R="onMouseLeave",C="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(_=o3,R="onPointerLeave",C="onPointerEnter",I="pointer"),D=v==null?y:Aa(v),P=w==null?y:Aa(w),y=new _(R,I+"leave",v,r,p),y.target=D,y.relatedTarget=P,R=null,vs(p)===l&&(_=new _(C,I+"enter",w,r,p),_.target=P,_.relatedTarget=D,R=_),D=R,v&&w)t:{for(_=v,C=w,I=0,P=_;P;P=Ca(P))I++;for(P=0,R=C;R;R=Ca(R))P++;for(;0<I-P;)_=Ca(_),I--;for(;0<P-I;)C=Ca(C),P--;for(;I--;){if(_===C||C!==null&&_===C.alternate)break t;_=Ca(_),C=Ca(C)}_=null}else _=null;v!==null&&y3(h,y,v,_,!1),w!==null&&D!==null&&y3(h,D,w,_,!0)}}e:{if(y=l?Aa(l):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var U=x$;else if(u3(y))if(NS)U=S$;else{U=E$;var j=b$}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(U=_$);if(U&&(U=U(e,l))){RS(h,U,r,p);break e}j&&j(e,y,l),e==="focusout"&&(j=y._wrapperState)&&j.controlled&&y.type==="number"&&Gy(y,"number",y.value)}switch(j=l?Aa(l):window,e){case"focusin":(u3(j)||j.contentEditable==="true")&&(Ia=j,s1=l,Ec=null);break;case"focusout":Ec=s1=Ia=null;break;case"mousedown":a1=!0;break;case"contextmenu":case"mouseup":case"dragend":a1=!1,d3(h,r,p);break;case"selectionchange":if(P$)break;case"keydown":case"keyup":d3(h,r,p)}var F;if(W1)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Da?OS(e,r)&&($="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&($="onCompositionStart");$&&(IS&&r.locale!=="ko"&&(Da||$!=="onCompositionStart"?$==="onCompositionEnd"&&Da&&(F=DS()):(to=p,H1="value"in to?to.value:to.textContent,Da=!0)),j=bh(l,$),0<j.length&&($=new i3($,e,null,r,p),h.push({event:$,listeners:j}),F?$.data=F:(F=AS(r),F!==null&&($.data=F)))),(F=m$?g$(e,r):y$(e,r))&&(l=bh(l,"onBeforeInput"),0<l.length&&(p=new i3("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=F))}zS(h,t)})}function Lc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function bh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ic(e,r),o!=null&&n.unshift(Lc(e,o,i)),o=Ic(e,t),o!=null&&n.push(Lc(e,o,i))),e=e.return}return n}function Ca(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function y3(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=Ic(r,o),u!=null&&s.unshift(Lc(r,u,a))):i||(u=Ic(r,o),u!=null&&s.push(Lc(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var I$=/\r\n?/g,O$=/\u0000|\uFFFD/g;function v3(e){return(typeof e=="string"?e:""+e).replace(I$,`
|
|
6
|
+
`).replace(O$,"")}function Zd(e,t,r){if(t=v3(t),v3(e)!==t&&r)throw Error(oe(425))}function Eh(){}var u1=null,l1=null;function c1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var f1=typeof setTimeout=="function"?setTimeout:void 0,A$=typeof clearTimeout=="function"?clearTimeout:void 0,w3=typeof Promise=="function"?Promise:void 0,R$=typeof queueMicrotask=="function"?queueMicrotask:typeof w3<"u"?function(e){return w3.resolve(null).then(e).catch(N$)}:f1;function N$(e){setTimeout(function(){throw e})}function Ay(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Rc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Rc(t)}function so(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function x3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Za=Math.random().toString(36).slice(2),Yn="__reactFiber$"+Za,Fc="__reactProps$"+Za,yi="__reactContainer$"+Za,d1="__reactEvents$"+Za,M$="__reactListeners$"+Za,k$="__reactHandles$"+Za;function vs(e){var t=e[Yn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yi]||r[Yn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=x3(e);e!==null;){if(r=e[Yn])return r;e=x3(e)}return t}e=r,r=e.parentNode}return null}function qc(e){return e=e[Yn]||e[yi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Aa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function jh(e){return e[Fc]||null}var h1=[],Ra=-1;function mo(e){return{current:e}}function xt(e){0>Ra||(e.current=h1[Ra],h1[Ra]=null,Ra--)}function Le(e,t){Ra++,h1[Ra]=e.current,e.current=t}var ho={},gr=mo(ho),Lr=mo(!1),_s=ho;function Ka(e,t){var r=e.type.contextTypes;if(!r)return ho;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fr(e){return e=e.childContextTypes,e!=null}function _h(){xt(Lr),xt(gr)}function b3(e,t,r){if(gr.current!==ho)throw Error(oe(168));Le(gr,t),Le(Lr,r)}function KS(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(oe(108,b9(e)||"Unknown",i));return Dt({},r,n)}function Sh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,_s=gr.current,Le(gr,e),Le(Lr,Lr.current),!0}function E3(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=KS(e,t,_s),n.__reactInternalMemoizedMergedChildContext=e,xt(Lr),xt(gr),Le(gr,e)):xt(Lr),Le(Lr,r)}var di=null,zh=!1,Ry=!1;function qS(e){di===null?di=[e]:di.push(e)}function L$(e){zh=!0,qS(e)}function go(){if(!Ry&&di!==null){Ry=!0;var e=0,t=Oe;try{var r=di;for(Oe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}di=null,zh=!1}catch(i){throw di!==null&&(di=di.slice(e+1)),yS(V1,go),i}finally{Oe=t,Ry=!1}}return null}var Na=[],Ma=0,Ch=null,Th=0,fn=[],dn=0,Ss=null,hi=1,pi="";function gs(e,t){Na[Ma++]=Th,Na[Ma++]=Ch,Ch=e,Th=t}function WS(e,t,r){fn[dn++]=hi,fn[dn++]=pi,fn[dn++]=Ss,Ss=e;var n=hi;e=pi;var i=32-kn(n)-1;n&=~(1<<i),r+=1;var o=32-kn(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,hi=1<<32-kn(t)+i|r<<i|n,pi=o+e}else hi=1<<o|r<<i|n,pi=e}function Y1(e){e.return!==null&&(gs(e,1),WS(e,1,0))}function X1(e){for(;e===Ch;)Ch=Na[--Ma],Na[Ma]=null,Th=Na[--Ma],Na[Ma]=null;for(;e===Ss;)Ss=fn[--dn],fn[dn]=null,pi=fn[--dn],fn[dn]=null,hi=fn[--dn],fn[dn]=null}var Zr=null,Jr=null,St=!1,Mn=null;function GS(e,t){var r=hn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function _3(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zr=e,Jr=so(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zr=e,Jr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ss!==null?{id:hi,overflow:pi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=hn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Zr=e,Jr=null,!0):!1;default:return!1}}function p1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function m1(e){if(St){var t=Jr;if(t){var r=t;if(!_3(e,t)){if(p1(e))throw Error(oe(418));t=so(r.nextSibling);var n=Zr;t&&_3(e,t)?GS(n,r):(e.flags=e.flags&-4097|2,St=!1,Zr=e)}}else{if(p1(e))throw Error(oe(418));e.flags=e.flags&-4097|2,St=!1,Zr=e}}}function S3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Zr=e}function Qd(e){if(e!==Zr)return!1;if(!St)return S3(e),St=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!c1(e.type,e.memoizedProps)),t&&(t=Jr)){if(p1(e))throw YS(),Error(oe(418));for(;t;)GS(e,t),t=so(t.nextSibling)}if(S3(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Jr=so(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Jr=null}}else Jr=Zr?so(e.stateNode.nextSibling):null;return!0}function YS(){for(var e=Jr;e;)e=so(e.nextSibling)}function qa(){Jr=Zr=null,St=!1}function J1(e){Mn===null?Mn=[e]:Mn.push(e)}var F$=xi.ReactCurrentBatchConfig;function Rn(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Ph=mo(null),Dh=null,ka=null,Z1=null;function Q1(){Z1=ka=Dh=null}function ev(e){var t=Ph.current;xt(Ph),e._currentValue=t}function g1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ja(e,t){Dh=e,Z1=ka=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(kr=!0),e.firstContext=null)}function mn(e){var t=e._currentValue;if(Z1!==e)if(e={context:e,memoizedValue:t,next:null},ka===null){if(Dh===null)throw Error(oe(308));ka=e,Dh.dependencies={lanes:0,firstContext:e}}else ka=ka.next=e;return t}var ws=null;function tv(e){ws===null?ws=[e]:ws.push(e)}function XS(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,tv(t)):(r.next=i.next,i.next=r),t.interleaved=r,vi(e,n)}function vi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zi=!1;function rv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,vi(e,r)}return i=n.interleaved,i===null?(t.next=t,tv(n)):(t.next=i.next,i.next=t),n.interleaved=t,vi(e,r)}function ah(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,B1(e,r)}}function C3(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ih(e,t,r,n){var i=e.updateQueue;Zi=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?o=l:s.next=l,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,p=l=u=null,a=o;do{var y=a.lane,v=a.eventTime;if((n&y)===y){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,_=a;switch(y=t,v=r,_.tag){case 1:if(w=_.payload,typeof w=="function"){h=w.call(v,h,y);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,y=typeof w=="function"?w.call(v,h,y):w,y==null)break e;h=Dt({},h,y);break e;case 2:Zi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else v={eventTime:v,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=v,u=h):p=p.next=v,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(1);if(p===null&&(u=h),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ts|=s,e.lanes=s,e.memoizedState=h}}function T3(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(oe(191,i));i.call(n)}}}var ZS=new X3.Component().refs;function y1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Hh={isMounted:function(e){return(e=e._reactInternals)?Is(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=lo(e),o=mi(n,i);o.payload=t,r!=null&&(o.callback=r),t=ao(e,o,i),t!==null&&(Ln(t,e,i,n),ah(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=lo(e),o=mi(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=ao(e,o,i),t!==null&&(Ln(t,e,i,n),ah(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Cr(),n=lo(e),i=mi(r,n);i.tag=2,t!=null&&(i.callback=t),t=ao(e,i,n),t!==null&&(Ln(t,e,n,r),ah(t,e,n))}};function P3(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!Mc(r,n)||!Mc(i,o):!0}function QS(e,t,r){var n=!1,i=ho,o=t.contextType;return typeof o=="object"&&o!==null?o=mn(o):(i=Fr(t)?_s:gr.current,n=t.contextTypes,o=(n=n!=null)?Ka(e,i):ho),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function D3(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Hh.enqueueReplaceState(t,t.state,null)}function v1(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=ZS,rv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=mn(o):(o=Fr(t)?_s:gr.current,i.context=Ka(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(y1(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Hh.enqueueReplaceState(i,i.state,null),Ih(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function cc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(oe(309));var n=r.stateNode}if(!n)throw Error(oe(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===ZS&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(oe(284));if(!r._owner)throw Error(oe(290,e))}return e}function eh(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function I3(e){var t=e._init;return t(e._payload)}function e6(e){function t(C,I){if(e){var P=C.deletions;P===null?(C.deletions=[I],C.flags|=16):P.push(I)}}function r(C,I){if(!e)return null;for(;I!==null;)t(C,I),I=I.sibling;return null}function n(C,I){for(C=new Map;I!==null;)I.key!==null?C.set(I.key,I):C.set(I.index,I),I=I.sibling;return C}function i(C,I){return C=co(C,I),C.index=0,C.sibling=null,C}function o(C,I,P){return C.index=P,e?(P=C.alternate,P!==null?(P=P.index,P<I?(C.flags|=2,I):P):(C.flags|=2,I)):(C.flags|=1048576,I)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,I,P,R){return I===null||I.tag!==6?(I=Uy(P,C.mode,R),I.return=C,I):(I=i(I,P),I.return=C,I)}function u(C,I,P,R){var U=P.type;return U===Pa?p(C,I,P.props.children,R,P.key):I!==null&&(I.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Ji&&I3(U)===I.type)?(R=i(I,P.props),R.ref=cc(C,I,P),R.return=C,R):(R=hh(P.type,P.key,P.props,null,C.mode,R),R.ref=cc(C,I,P),R.return=C,R)}function l(C,I,P,R){return I===null||I.tag!==4||I.stateNode.containerInfo!==P.containerInfo||I.stateNode.implementation!==P.implementation?(I=Vy(P,C.mode,R),I.return=C,I):(I=i(I,P.children||[]),I.return=C,I)}function p(C,I,P,R,U){return I===null||I.tag!==7?(I=Es(P,C.mode,R,U),I.return=C,I):(I=i(I,P),I.return=C,I)}function h(C,I,P){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Uy(""+I,C.mode,P),I.return=C,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Ud:return P=hh(I.type,I.key,I.props,null,C.mode,P),P.ref=cc(C,null,I),P.return=C,P;case Ta:return I=Vy(I,C.mode,P),I.return=C,I;case Ji:var R=I._init;return h(C,R(I._payload),P)}if(mc(I)||sc(I))return I=Es(I,C.mode,P,null),I.return=C,I;eh(C,I)}return null}function y(C,I,P,R){var U=I!==null?I.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return U!==null?null:a(C,I,""+P,R);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Ud:return P.key===U?u(C,I,P,R):null;case Ta:return P.key===U?l(C,I,P,R):null;case Ji:return U=P._init,y(C,I,U(P._payload),R)}if(mc(P)||sc(P))return U!==null?null:p(C,I,P,R,null);eh(C,P)}return null}function v(C,I,P,R,U){if(typeof R=="string"&&R!==""||typeof R=="number")return C=C.get(P)||null,a(I,C,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Ud:return C=C.get(R.key===null?P:R.key)||null,u(I,C,R,U);case Ta:return C=C.get(R.key===null?P:R.key)||null,l(I,C,R,U);case Ji:var j=R._init;return v(C,I,P,j(R._payload),U)}if(mc(R)||sc(R))return C=C.get(P)||null,p(I,C,R,U,null);eh(I,R)}return null}function w(C,I,P,R){for(var U=null,j=null,F=I,$=I=0,G=null;F!==null&&$<P.length;$++){F.index>$?(G=F,F=null):G=F.sibling;var X=y(C,F,P[$],R);if(X===null){F===null&&(F=G);break}e&&F&&X.alternate===null&&t(C,F),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X,F=G}if($===P.length)return r(C,F),St&&gs(C,$),U;if(F===null){for(;$<P.length;$++)F=h(C,P[$],R),F!==null&&(I=o(F,I,$),j===null?U=F:j.sibling=F,j=F);return St&&gs(C,$),U}for(F=n(C,F);$<P.length;$++)G=v(F,C,$,P[$],R),G!==null&&(e&&G.alternate!==null&&F.delete(G.key===null?$:G.key),I=o(G,I,$),j===null?U=G:j.sibling=G,j=G);return e&&F.forEach(function(W){return t(C,W)}),St&&gs(C,$),U}function _(C,I,P,R){var U=sc(P);if(typeof U!="function")throw Error(oe(150));if(P=U.call(P),P==null)throw Error(oe(151));for(var j=U=null,F=I,$=I=0,G=null,X=P.next();F!==null&&!X.done;$++,X=P.next()){F.index>$?(G=F,F=null):G=F.sibling;var W=y(C,F,X.value,R);if(W===null){F===null&&(F=G);break}e&&F&&W.alternate===null&&t(C,F),I=o(W,I,$),j===null?U=W:j.sibling=W,j=W,F=G}if(X.done)return r(C,F),St&&gs(C,$),U;if(F===null){for(;!X.done;$++,X=P.next())X=h(C,X.value,R),X!==null&&(I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return St&&gs(C,$),U}for(F=n(C,F);!X.done;$++,X=P.next())X=v(F,C,$,X.value,R),X!==null&&(e&&X.alternate!==null&&F.delete(X.key===null?$:X.key),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return e&&F.forEach(function(J){return t(C,J)}),St&&gs(C,$),U}function D(C,I,P,R){if(typeof P=="object"&&P!==null&&P.type===Pa&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Ud:e:{for(var U=P.key,j=I;j!==null;){if(j.key===U){if(U=P.type,U===Pa){if(j.tag===7){r(C,j.sibling),I=i(j,P.props.children),I.return=C,C=I;break e}}else if(j.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Ji&&I3(U)===j.type){r(C,j.sibling),I=i(j,P.props),I.ref=cc(C,j,P),I.return=C,C=I;break e}r(C,j);break}else t(C,j);j=j.sibling}P.type===Pa?(I=Es(P.props.children,C.mode,R,P.key),I.return=C,C=I):(R=hh(P.type,P.key,P.props,null,C.mode,R),R.ref=cc(C,I,P),R.return=C,C=R)}return s(C);case Ta:e:{for(j=P.key;I!==null;){if(I.key===j)if(I.tag===4&&I.stateNode.containerInfo===P.containerInfo&&I.stateNode.implementation===P.implementation){r(C,I.sibling),I=i(I,P.children||[]),I.return=C,C=I;break e}else{r(C,I);break}else t(C,I);I=I.sibling}I=Vy(P,C.mode,R),I.return=C,C=I}return s(C);case Ji:return j=P._init,D(C,I,j(P._payload),R)}if(mc(P))return w(C,I,P,R);if(sc(P))return _(C,I,P,R);eh(C,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,I!==null&&I.tag===6?(r(C,I.sibling),I=i(I,P),I.return=C,C=I):(r(C,I),I=Uy(P,C.mode,R),I.return=C,C=I),s(C)):r(C,I)}return D}var Wa=e6(!0),t6=e6(!1),Wc={},Jn=mo(Wc),$c=mo(Wc),Uc=mo(Wc);function xs(e){if(e===Wc)throw Error(oe(174));return e}function nv(e,t){switch(Le(Uc,t),Le($c,e),Le(Jn,Wc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xy(t,e)}xt(Jn),Le(Jn,t)}function Ga(){xt(Jn),xt($c),xt(Uc)}function r6(e){xs(Uc.current);var t=xs(Jn.current),r=Xy(t,e.type);t!==r&&(Le($c,e),Le(Jn,r))}function iv(e){$c.current===e&&(xt(Jn),xt($c))}var Tt=mo(0);function Oh(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ny=[];function ov(){for(var e=0;e<Ny.length;e++)Ny[e]._workInProgressVersionPrimary=null;Ny.length=0}var uh=xi.ReactCurrentDispatcher,My=xi.ReactCurrentBatchConfig,Cs=0,Pt=null,qt=null,Zt=null,Ah=!1,_c=!1,Vc=0,$$=0;function hr(){throw Error(oe(321))}function sv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Fn(e[r],t[r]))return!1;return!0}function av(e,t,r,n,i,o){if(Cs=o,Pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uh.current=e===null||e.memoizedState===null?j$:z$,e=r(n,i),_c){o=0;do{if(_c=!1,Vc=0,25<=o)throw Error(oe(301));o+=1,Zt=qt=null,t.updateQueue=null,uh.current=H$,e=r(n,i)}while(_c)}if(uh.current=Rh,t=qt!==null&&qt.next!==null,Cs=0,Zt=qt=Pt=null,Ah=!1,t)throw Error(oe(300));return e}function uv(){var e=Vc!==0;return Vc=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?Pt.memoizedState=Zt=e:Zt=Zt.next=e,Zt}function gn(){if(qt===null){var e=Pt.alternate;e=e!==null?e.memoizedState:null}else e=qt.next;var t=Zt===null?Pt.memoizedState:Zt.next;if(t!==null)Zt=t,qt=e;else{if(e===null)throw Error(oe(310));qt=e,e={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Zt===null?Pt.memoizedState=Zt=e:Zt=Zt.next=e}return Zt}function Bc(e,t){return typeof t=="function"?t(e):t}function ky(e){var t=gn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=qt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,u=null,l=o;do{var p=l.lane;if((Cs&p)===p)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var h={lane:p,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=h,s=n):u=u.next=h,Pt.lanes|=p,Ts|=p}l=l.next}while(l!==null&&l!==o);u===null?s=n:u.next=a,Fn(n,t.memoizedState)||(kr=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,Pt.lanes|=o,Ts|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ly(e){var t=gn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Fn(o,t.memoizedState)||(kr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function n6(){}function i6(e,t){var r=Pt,n=gn(),i=t(),o=!Fn(n.memoizedState,i);if(o&&(n.memoizedState=i,kr=!0),n=n.queue,lv(a6.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Zt!==null&&Zt.memoizedState.tag&1){if(r.flags|=2048,jc(9,s6.bind(null,r,n,i,t),void 0,null),Qt===null)throw Error(oe(349));(Cs&30)!==0||o6(r,t,i)}return i}function o6(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function s6(e,t,r,n){t.value=r,t.getSnapshot=n,u6(t)&&l6(e)}function a6(e,t,r){return r(function(){u6(t)&&l6(e)})}function u6(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Fn(e,r)}catch(n){return!0}}function l6(e){var t=vi(e,1);t!==null&&Ln(t,e,1,-1)}function O3(e){var t=Gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bc,lastRenderedState:e},t.queue=e,e=e.dispatch=B$.bind(null,Pt,e),[t.memoizedState,e]}function jc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function c6(){return gn().memoizedState}function lh(e,t,r,n){var i=Gn();Pt.flags|=e,i.memoizedState=jc(1|t,r,void 0,n===void 0?null:n)}function Kh(e,t,r,n){var i=gn();n=n===void 0?null:n;var o=void 0;if(qt!==null){var s=qt.memoizedState;if(o=s.destroy,n!==null&&sv(n,s.deps)){i.memoizedState=jc(t,r,o,n);return}}Pt.flags|=e,i.memoizedState=jc(1|t,r,o,n)}function A3(e,t){return lh(8390656,8,e,t)}function lv(e,t){return Kh(2048,8,e,t)}function f6(e,t){return Kh(4,2,e,t)}function d6(e,t){return Kh(4,4,e,t)}function h6(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function p6(e,t,r){return r=r!=null?r.concat([e]):null,Kh(4,4,h6.bind(null,t,e),r)}function cv(){}function m6(e,t){var r=gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&sv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function g6(e,t){var r=gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&sv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function y6(e,t,r){return(Cs&21)===0?(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=r):(Fn(r,t)||(r=xS(),Pt.lanes|=r,Ts|=r,e.baseState=!0),t)}function U$(e,t){var r=Oe;Oe=r!==0&&4>r?r:4,e(!0);var n=My.transition;My.transition={};try{e(!1),t()}finally{Oe=r,My.transition=n}}function v6(){return gn().memoizedState}function V$(e,t,r){var n=lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},w6(e))x6(t,r);else if(r=XS(e,t,r,n),r!==null){var i=Cr();Ln(r,e,n,i),b6(r,t,n)}}function B$(e,t,r){var n=lo(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(w6(e))x6(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,Fn(a,s)){var u=t.interleaved;u===null?(i.next=i,tv(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch(l){}finally{}r=XS(e,t,i,n),r!==null&&(i=Cr(),Ln(r,e,n,i),b6(r,t,n))}}function w6(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function x6(e,t){_c=Ah=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function b6(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,B1(e,r)}}var Rh={readContext:mn,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},j$={readContext:mn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:mn,useEffect:A3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,lh(4194308,4,h6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return lh(4194308,4,e,t)},useInsertionEffect:function(e,t){return lh(4,2,e,t)},useMemo:function(e,t){var r=Gn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Gn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=V$.bind(null,Pt,e),[n.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:O3,useDebugValue:cv,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=O3(!1),t=e[0];return e=U$.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pt,i=Gn();if(St){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Qt===null)throw Error(oe(349));(Cs&30)!==0||o6(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,A3(a6.bind(null,n,o,e),[e]),n.flags|=2048,jc(9,s6.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Gn(),t=Qt.identifierPrefix;if(St){var r=pi,n=hi;r=(n&~(1<<32-kn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Vc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=$$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},z$={readContext:mn,useCallback:m6,useContext:mn,useEffect:lv,useImperativeHandle:p6,useInsertionEffect:f6,useLayoutEffect:d6,useMemo:g6,useReducer:ky,useRef:c6,useState:function(){return ky(Bc)},useDebugValue:cv,useDeferredValue:function(e){var t=gn();return y6(t,qt.memoizedState,e)},useTransition:function(){var e=ky(Bc)[0],t=gn().memoizedState;return[e,t]},useMutableSource:n6,useSyncExternalStore:i6,useId:v6,unstable_isNewReconciler:!1},H$={readContext:mn,useCallback:m6,useContext:mn,useEffect:lv,useImperativeHandle:p6,useInsertionEffect:f6,useLayoutEffect:d6,useMemo:g6,useReducer:Ly,useRef:c6,useState:function(){return Ly(Bc)},useDebugValue:cv,useDeferredValue:function(e){var t=gn();return qt===null?t.memoizedState=e:y6(t,qt.memoizedState,e)},useTransition:function(){var e=Ly(Bc)[0],t=gn().memoizedState;return[e,t]},useMutableSource:n6,useSyncExternalStore:i6,useId:v6,unstable_isNewReconciler:!1};function Ya(e,t){try{var r="",n=t;do r+=x9(n),n=n.return;while(n);var i=r}catch(o){i=`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Dv(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function c1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var zV=typeof WeakMap=="function"?WeakMap:Map;function D5(e,t,r){r=Qi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ap||(ap=!0,x1=n),c1(e,t)},r}function O5(e,t,r){r=Qi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){c1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){c1(e,t),typeof n!="function"&&(Go===null?Go=new Set([this]):Go.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function $S(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new zV;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=nj.bind(null,e,t,r),t.then(e,e))}function US(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function VS(e,t,r,n,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Qi(-1,1),t.tag=2,Wo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var HV=no.ReactCurrentOwner,un=!1;function Wr(e,t,r,n){t.child=e===null?a5(t,null,r,n):vu(t,e.child,r,n)}function jS(e,t,r,n,i){r=r.render;var o=t.ref;return hu(t,i),n=Q1(e,t,r,n,o,i),r=J1(),e!==null&&!un?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ro(e,t,i)):(jt&&r&&V1(t),t.flags|=1,Wr(e,t,n,i),t.child)}function BS(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!lw(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,I5(e,t,o,n,i)):(e=Vh(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:nf,r(s,n)&&e.ref===t.ref)return ro(e,t,i)}return t.flags|=1,e=Xo(o,n),e.ref=t.ref,e.return=t,t.child=e}function I5(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(nf(o,n)&&e.ref===t.ref)if(un=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(un=!0);else return t.lanes=e.lanes,ro(e,t,i)}return f1(e,t,r,n,i)}function R5(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(uu,Cn),Cn|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(uu,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ot(uu,Cn),Cn|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ot(uu,Cn),Cn|=n;return Wr(e,t,i,r),t.child}function A5(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function f1(e,t,r,n,i){var o=cn(r)?Ks:Lr.current;return o=gu(t,o),hu(t,i),r=Q1(e,t,r,n,o,i),n=J1(),e!==null&&!un?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ro(e,t,i)):(jt&&n&&V1(t),t.flags|=1,Wr(e,t,r,i),t.child)}function zS(e,t,r,n,i){if(cn(r)){var o=!0;Zh(t)}else o=!1;if(hu(t,i),t.stateNode===null)Lh(e,t),o5(t,r,n),l1(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xn(l):(l=cn(r)?Ks:Lr.current,l=gu(t,l));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&NS(t,s,n,l),$o=!1;var y=t.memoizedState;s.state=y,rp(t,n,s,i),u=t.memoizedState,a!==n||y!==u||ln.current||$o?(typeof p=="function"&&(u1(t,r,p,n),u=t.memoizedState),(a=$o||MS(t,r,a,n,y,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,n5(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:hi(t.type,a),s.props=l,h=t.pendingProps,y=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=Xn(u):(u=cn(r)?Ks:Lr.current,u=gu(t,u));var v=r.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||y!==u)&&NS(t,s,n,u),$o=!1,y=t.memoizedState,s.state=y,rp(t,n,s,i);var w=t.memoizedState;a!==h||y!==w||ln.current||$o?(typeof v=="function"&&(u1(t,r,v,n),w=t.memoizedState),(l=$o||MS(t,r,l,n,y,w,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),s.props=n,s.state=w,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),n=!1)}return d1(e,t,r,n,o,i)}function d1(e,t,r,n,i,o){A5(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&DS(t,r,!1),ro(e,t,o);n=t.stateNode,HV.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=vu(t,e.child,null,o),t.child=vu(t,null,a,o)):Wr(e,t,a,o),t.memoizedState=n.state,i&&DS(t,r,!0),t.child}function M5(e){var t=e.stateNode;t.pendingContext?TS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&TS(e,t.context,!1),G1(e,t.containerInfo)}function HS(e,t,r,n,i){return yu(),B1(i),t.flags|=256,Wr(e,t,r,n),t.child}var h1={dehydrated:null,treeContext:null,retryLane:0};function p1(e){return{baseLanes:e,cachePool:null,transitions:null}}function N5(e,t,r){var n=t.pendingProps,i=Ht.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(Ht,i&1),e===null)return s1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=bp(s,n,0,null),e=qs(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=p1(r),t.memoizedState=h1,e):rw(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return qV(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Xo(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Xo(a,o):(o=qs(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?p1(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=h1,n}return o=e.child,e=o.sibling,n=Xo(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function rw(e,t){return t=bp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dh(e,t,r,n){return n!==null&&B1(n),vu(t,e.child,null,r),e=rw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qV(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=Dv(Error(xe(422))),Dh(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=bp({mode:"visible",children:n.children},i,0,null),o=qs(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&vu(t,e.child,null,s),t.child.memoizedState=p1(s),t.memoizedState=h1,o);if((t.mode&1)===0)return Dh(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(xe(419)),n=Dv(o,n,void 0),Dh(e,t,s,n)}if(a=(s&e.childLanes)!==0,un||a){if(n=yr,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(n.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,to(e,i),yi(n,e,i,-1))}return uw(),n=Dv(Error(xe(421))),Dh(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ij.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pn=Ko(i.nextSibling),Tn=t,jt=!0,mi=null,e!==null&&(Kn[Wn++]=Xi,Kn[Wn++]=Zi,Kn[Wn++]=Ws,Xi=e.id,Zi=e.overflow,Ws=t),t=rw(t,n.children),t.flags|=4096,t)}function qS(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),a1(e.return,t,r)}function Ov(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function k5(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Wr(e,t,n.children,r),n=Ht.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qS(e,r,t);else if(e.tag===19)qS(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(Ht,n),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&np(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ov(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&np(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ov(t,!0,r,null,o);break;case"together":Ov(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lh(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ro(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ys|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(xe(153));if(t.child!==null){for(e=t.child,r=Xo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Xo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function KV(e,t,r){switch(t.tag){case 3:M5(t),yu();break;case 5:u5(t);break;case 1:cn(t.type)&&Zh(t);break;case 4:G1(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ot(ep,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(Ht,Ht.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?N5(e,t,r):(Ot(Ht,Ht.current&1),e=ro(e,t,r),e!==null?e.sibling:null);Ot(Ht,Ht.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return k5(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(Ht,Ht.current),n)break;return null;case 22:case 23:return t.lanes=0,R5(e,t,r)}return ro(e,t,r)}var F5,m1,L5,$5;F5=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};m1=function(){};L5=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,zs(Ri.current);var o=null;switch(r){case"input":i=Lv(e,i),n=Lv(e,n),o=[];break;case"select":i=Kt({},i,{value:void 0}),n=Kt({},n,{value:void 0}),o=[];break;case"textarea":i=Vv(e,i),n=Vv(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Yh)}Bv(r,n);var s;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Xc.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(a=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Xc.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&kt("scroll",e),o||a===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};$5=function(e,t,r,n){r!==n&&(t.flags|=4)};function Nc(e,t){if(!jt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function kr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function WV(e,t,r){var n=t.pendingProps;switch(j1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kr(t),null;case 1:return cn(t.type)&&Xh(),kr(t),null;case 3:return n=t.stateNode,wu(),Ft(ln),Ft(Lr),X1(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ph(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,mi!==null&&(E1(mi),mi=null))),m1(e,t),kr(t),null;case 5:Y1(t);var i=zs(lf.current);if(r=t.type,e!==null&&t.stateNode!=null)L5(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(xe(166));return kr(t),null}if(e=zs(Ri.current),Ph(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Oi]=t,n[af]=o,e=(t.mode&1)!==0,r){case"dialog":kt("cancel",n),kt("close",n);break;case"iframe":case"object":case"embed":kt("load",n);break;case"video":case"audio":for(i=0;i<Vc.length;i++)kt(Vc[i],n);break;case"source":kt("error",n);break;case"img":case"image":case"link":kt("error",n),kt("load",n);break;case"details":kt("toggle",n);break;case"input":J3(n,o),kt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},kt("invalid",n);break;case"textarea":tS(n,o),kt("invalid",n)}Bv(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ch(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ch(n.textContent,a,e),i=["children",""+a]):Xc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&kt("scroll",n)}switch(r){case"input":hh(n),eS(n,o,!0);break;case"textarea":hh(n),rS(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Yh)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=f6(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Oi]=t,e[af]=n,F5(e,t,!1,!1),t.stateNode=e;e:{switch(s=zv(r,n),r){case"dialog":kt("cancel",e),kt("close",e),i=n;break;case"iframe":case"object":case"embed":kt("load",e),i=n;break;case"video":case"audio":for(i=0;i<Vc.length;i++)kt(Vc[i],e);i=n;break;case"source":kt("error",e),i=n;break;case"img":case"image":case"link":kt("error",e),kt("load",e),i=n;break;case"details":kt("toggle",e),i=n;break;case"input":J3(e,n),i=Lv(e,n),kt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Kt({},n,{value:void 0}),kt("invalid",e);break;case"textarea":tS(e,n),i=Vv(e,n),kt("invalid",e);break;default:i=n}Bv(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?p6(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&d6(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Zc(e,u):typeof u=="number"&&Zc(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xc.hasOwnProperty(o)?u!=null&&o==="onScroll"&&kt("scroll",e):u!=null&&P1(e,o,u,s))}switch(r){case"input":hh(e),eS(e,n,!1);break;case"textarea":hh(e),rS(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Zo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?lu(e,!!n.multiple,o,!1):n.defaultValue!=null&&lu(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yh)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return kr(t),null;case 6:if(e&&t.stateNode!=null)$5(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(xe(166));if(r=zs(lf.current),zs(Ri.current),Ph(t)){if(n=t.stateNode,r=t.memoizedProps,n[Oi]=t,(o=n.nodeValue!==r)&&(e=Tn,e!==null))switch(e.tag){case 3:Ch(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ch(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Oi]=t,t.stateNode=n}return kr(t),null;case 13:if(Ft(Ht),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jt&&Pn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)t5(),yu(),t.flags|=98560,o=!1;else if(o=Ph(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(xe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(xe(317));o[Oi]=t}else yu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;kr(t),o=!1}else mi!==null&&(E1(mi),mi=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ht.current&1)!==0?fr===0&&(fr=3):uw())),t.updateQueue!==null&&(t.flags|=4),kr(t),null);case 4:return wu(),m1(e,t),e===null&&of(t.stateNode.containerInfo),kr(t),null;case 10:return q1(t.type._context),kr(t),null;case 17:return cn(t.type)&&Xh(),kr(t),null;case 19:if(Ft(Ht),o=t.memoizedState,o===null)return kr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Nc(o,!1);else{if(fr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=np(e),s!==null){for(t.flags|=128,Nc(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ot(Ht,Ht.current&1|2),t.child}e=e.sibling}o.tail!==null&&Jt()>bu&&(t.flags|=128,n=!0,Nc(o,!1),t.lanes=4194304)}else{if(!n)if(e=np(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Nc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return kr(t),null}else 2*Jt()-o.renderingStartTime>bu&&r!==1073741824&&(t.flags|=128,n=!0,Nc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Jt(),t.sibling=null,r=Ht.current,Ot(Ht,n?r&1|2:r&1),t):(kr(t),null);case 22:case 23:return aw(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Cn&1073741824)!==0&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(xe(156,t.tag))}function GV(e,t){switch(j1(t),t.tag){case 1:return cn(t.type)&&Xh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wu(),Ft(ln),Ft(Lr),X1(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y1(t),null;case 13:if(Ft(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(xe(340));yu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Ht),null;case 4:return wu(),null;case 10:return q1(t.type._context),null;case 22:case 23:return aw(),null;case 24:return null;default:return null}}var Oh=!1,Fr=!1,YV=typeof WeakSet=="function"?WeakSet:Set,Me=null;function au(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Yt(e,t,n)}else r.current=null}function g1(e,t,r){try{r()}catch(n){Yt(e,t,n)}}var KS=!1;function XV(e,t){if(Jv=Kh,e=B6(),U1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch($){r=null;break e}var s=0,a=-1,u=-1,l=0,p=0,h=e,y=null;t:for(;;){for(var v;h!==r||i!==0&&h.nodeType!==3||(a=s+i),h!==o||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)y=h,h=v;for(;;){if(h===e)break t;if(y===r&&++l===i&&(a=s),y===o&&++p===n&&(u=s),(v=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=v}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(e1={focusedElem:e,selectionRange:r},Kh=!1,Me=t;Me!==null;)if(t=Me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Me=e;else for(;Me!==null;){t=Me;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var C=w.memoizedProps,R=w.memoizedState,P=t.stateNode,M=P.getSnapshotBeforeUpdate(t.elementType===t.type?C:hi(t.type,C),R);P.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var A=t.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(xe(163))}}catch($){Yt(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Me=e;break}Me=t.return}return w=KS,KS=!1,w}function Wc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&g1(t,r,o)}i=i.next}while(i!==n)}}function wp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function y1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function U5(e){var t=e.alternate;t!==null&&(e.alternate=null,U5(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Oi],delete t[af],delete t[n1],delete t[AV],delete t[MV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function V5(e){return e.tag===5||e.tag===3||e.tag===4}function WS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V5(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function v1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Yh));else if(n!==4&&(e=e.child,e!==null))for(v1(e,t,r),e=e.sibling;e!==null;)v1(e,t,r),e=e.sibling}function w1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}var br=null,pi=!1;function Fo(e,t,r){for(r=r.child;r!==null;)j5(e,t,r),r=r.sibling}function j5(e,t,r){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(fp,r)}catch(a){}switch(r.tag){case 5:Fr||au(r,t);case 6:var n=br,i=pi;br=null,Fo(e,t,r),br=n,pi=i,br!==null&&(pi?(e=br,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):br.removeChild(r.stateNode));break;case 18:br!==null&&(pi?(e=br,r=r.stateNode,e.nodeType===8?_v(e.parentNode,r):e.nodeType===1&&_v(e,r),tf(e)):_v(br,r.stateNode));break;case 4:n=br,i=pi,br=r.stateNode.containerInfo,pi=!0,Fo(e,t,r),br=n,pi=i;break;case 0:case 11:case 14:case 15:if(!Fr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&g1(r,t,s),i=i.next}while(i!==n)}Fo(e,t,r);break;case 1:if(!Fr&&(au(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Yt(r,t,a)}Fo(e,t,r);break;case 21:Fo(e,t,r);break;case 22:r.mode&1?(Fr=(n=Fr)||r.memoizedState!==null,Fo(e,t,r),Fr=n):Fo(e,t,r);break;default:Fo(e,t,r)}}function GS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new YV),t.forEach(function(n){var i=oj.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function di(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:br=a.stateNode,pi=!1;break e;case 3:br=a.stateNode.containerInfo,pi=!0;break e;case 4:br=a.stateNode.containerInfo,pi=!0;break e}a=a.return}if(br===null)throw Error(xe(160));j5(o,s,i),br=null,pi=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Yt(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B5(t,e),t=t.sibling}function B5(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(di(t,e),Ti(e),n&4){try{Wc(3,e,e.return),wp(3,e)}catch(C){Yt(e,e.return,C)}try{Wc(5,e,e.return)}catch(C){Yt(e,e.return,C)}}break;case 1:di(t,e),Ti(e),n&512&&r!==null&&au(r,r.return);break;case 5:if(di(t,e),Ti(e),n&512&&r!==null&&au(r,r.return),e.flags&32){var i=e.stateNode;try{Zc(i,"")}catch(C){Yt(e,e.return,C)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&l6(i,o),zv(a,s);var l=zv(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?p6(i,h):p==="dangerouslySetInnerHTML"?d6(i,h):p==="children"?Zc(i,h):P1(i,p,h,l)}switch(a){case"input":$v(i,o);break;case"textarea":c6(i,o);break;case"select":var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?lu(i,!!o.multiple,v,!1):y!==!!o.multiple&&(o.defaultValue!=null?lu(i,!!o.multiple,o.defaultValue,!0):lu(i,!!o.multiple,o.multiple?[]:"",!1))}i[af]=o}catch(C){Yt(e,e.return,C)}}break;case 6:if(di(t,e),Ti(e),n&4){if(e.stateNode===null)throw Error(xe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(C){Yt(e,e.return,C)}}break;case 3:if(di(t,e),Ti(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{tf(t.containerInfo)}catch(C){Yt(e,e.return,C)}break;case 4:di(t,e),Ti(e);break;case 13:di(t,e),Ti(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ow=Jt())),n&4&&GS(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(Fr=(l=Fr)||p,di(t,e),Fr=l):di(t,e),Ti(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!p&&(e.mode&1)!==0)for(Me=e,p=e.child;p!==null;){for(h=Me=p;Me!==null;){switch(y=Me,v=y.child,y.tag){case 0:case 11:case 14:case 15:Wc(4,y,y.return);break;case 1:au(y,y.return);var w=y.stateNode;if(typeof w.componentWillUnmount=="function"){n=y,r=y.return;try{t=n,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(C){Yt(n,r,C)}}break;case 5:au(y,y.return);break;case 22:if(y.memoizedState!==null){XS(h);continue}}v!==null?(v.return=y,Me=v):XS(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=h6("display",s))}catch(C){Yt(e,e.return,C)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(C){Yt(e,e.return,C)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:di(t,e),Ti(e),n&4&&GS(e);break;case 21:break;default:di(t,e),Ti(e)}}function Ti(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(V5(r)){var n=r;break e}r=r.return}throw Error(xe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Zc(i,""),n.flags&=-33);var o=WS(e);w1(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=WS(e);v1(e,a,s);break;default:throw Error(xe(161))}}catch(u){Yt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ZV(e,t,r){Me=e,z5(e,t,r)}function z5(e,t,r){for(var n=(e.mode&1)!==0;Me!==null;){var i=Me,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||Oh;if(!s){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Fr;a=Oh;var l=Fr;if(Oh=s,(Fr=u)&&!l)for(Me=i;Me!==null;)s=Me,u=s.child,s.tag===22&&s.memoizedState!==null?ZS(i):u!==null?(u.return=s,Me=u):ZS(i);for(;o!==null;)Me=o,z5(o,t,r),o=o.sibling;Me=i,Oh=a,Fr=l}YS(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,Me=o):YS(e,t,r)}}function YS(e){for(;Me!==null;){var t=Me;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Fr||wp(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Fr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:hi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&AS(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}AS(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&tf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(xe(163))}Fr||t.flags&512&&y1(t)}catch(y){Yt(t,t.return,y)}}if(t===e){Me=null;break}if(r=t.sibling,r!==null){r.return=t.return,Me=r;break}Me=t.return}}function XS(e){for(;Me!==null;){var t=Me;if(t===e){Me=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Me=r;break}Me=t.return}}function ZS(e){for(;Me!==null;){var t=Me;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{wp(4,t)}catch(u){Yt(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Yt(t,i,u)}}var o=t.return;try{y1(t)}catch(u){Yt(t,o,u)}break;case 5:var s=t.return;try{y1(t)}catch(u){Yt(t,s,u)}}}catch(u){Yt(t,t.return,u)}if(t===e){Me=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Me=a;break}Me=t.return}}var QV=Math.ceil,sp=no.ReactCurrentDispatcher,nw=no.ReactCurrentOwner,Yn=no.ReactCurrentBatchConfig,gt=0,yr=null,or=null,_r=0,Cn=0,uu=es(0),fr=0,hf=null,Ys=0,xp=0,iw=0,Gc=null,an=null,ow=0,bu=1/0,Gi=null,ap=!1,x1=null,Go=null,Ih=!1,Bo=null,up=0,Yc=0,b1=null,$h=-1,Uh=0;function Gr(){return(gt&6)!==0?Jt():$h!==-1?$h:$h=Jt()}function Yo(e){return(e.mode&1)===0?1:(gt&2)!==0&&_r!==0?_r&-_r:kV.transition!==null?(Uh===0&&(Uh=P6()),Uh):(e=Et,e!==0||(e=window.event,e=e===void 0?16:M6(e.type)),e)}function yi(e,t,r,n){if(50<Yc)throw Yc=0,b1=null,Error(xe(185));pf(e,r,n),((gt&2)===0||e!==yr)&&(e===yr&&((gt&2)===0&&(xp|=r),fr===4&&Vo(e,_r)),fn(e,n),r===1&>===0&&(t.mode&1)===0&&(bu=Jt()+500,gp&&ts()))}function fn(e,t){var r=e.callbackNode;LU(e,t);var n=qh(e,e===yr?_r:0);if(n===0)r!==null&&oS(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&oS(r),t===1)e.tag===0?NV(QS.bind(null,e)):Q6(QS.bind(null,e)),IV(function(){(gt&6)===0&&ts()}),r=null;else{switch(T6(n)){case 1:r=R1;break;case 4:r=S6;break;case 16:r=Hh;break;case 536870912:r=C6;break;default:r=Hh}r=Z5(r,H5.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function H5(e,t){if($h=-1,Uh=0,(gt&6)!==0)throw Error(xe(327));var r=e.callbackNode;if(pu()&&e.callbackNode!==r)return null;var n=qh(e,e===yr?_r:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=lp(e,n);else{t=n;var i=gt;gt|=2;var o=K5();(yr!==e||_r!==t)&&(Gi=null,bu=Jt()+500,Hs(e,t));do try{tj();break}catch(a){q5(e,a)}while(1);H1(),sp.current=o,gt=i,or!==null?t=0:(yr=null,_r=0,t=fr)}if(t!==0){if(t===2&&(i=Gv(e),i!==0&&(n=i,t=_1(e,i))),t===1)throw r=hf,Hs(e,0),Vo(e,n),fn(e,Jt()),r;if(t===6)Vo(e,n);else{if(i=e.current.alternate,(n&30)===0&&!JV(i)&&(t=lp(e,n),t===2&&(o=Gv(e),o!==0&&(n=o,t=_1(e,o))),t===1))throw r=hf,Hs(e,0),Vo(e,n),fn(e,Jt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(xe(345));case 2:Vs(e,an,Gi);break;case 3:if(Vo(e,n),(n&130023424)===n&&(t=ow+500-Jt(),10<t)){if(qh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Gr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=r1(Vs.bind(null,e,an,Gi),t);break}Vs(e,an,Gi);break;case 4:if(Vo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-gi(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=Jt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QV(n/1960))-n,10<n){e.timeoutHandle=r1(Vs.bind(null,e,an,Gi),n);break}Vs(e,an,Gi);break;case 5:Vs(e,an,Gi);break;default:throw Error(xe(329))}}}return fn(e,Jt()),e.callbackNode===r?H5.bind(null,e):null}function _1(e,t){var r=Gc;return e.current.memoizedState.isDehydrated&&(Hs(e,t).flags|=256),e=lp(e,t),e!==2&&(t=an,an=r,t!==null&&E1(t)),e}function E1(e){an===null?an=e:an.push.apply(an,e)}function JV(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!vi(o(),i))return!1}catch(s){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vo(e,t){for(t&=~iw,t&=~xp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-gi(t),n=1<<r;e[r]=-1,t&=~n}}function QS(e){if((gt&6)!==0)throw Error(xe(327));pu();var t=qh(e,0);if((t&1)===0)return fn(e,Jt()),null;var r=lp(e,t);if(e.tag!==0&&r===2){var n=Gv(e);n!==0&&(t=n,r=_1(e,n))}if(r===1)throw r=hf,Hs(e,0),Vo(e,t),fn(e,Jt()),r;if(r===6)throw Error(xe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vs(e,an,Gi),fn(e,Jt()),null}function sw(e,t){var r=gt;gt|=1;try{return e(t)}finally{gt=r,gt===0&&(bu=Jt()+500,gp&&ts())}}function Xs(e){Bo!==null&&Bo.tag===0&&(gt&6)===0&&pu();var t=gt;gt|=1;var r=Yn.transition,n=Et;try{if(Yn.transition=null,Et=1,e)return e()}finally{Et=n,Yn.transition=r,gt=t,(gt&6)===0&&ts()}}function aw(){Cn=uu.current,Ft(uu)}function Hs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,OV(r)),or!==null)for(r=or.return;r!==null;){var n=r;switch(j1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Xh();break;case 3:wu(),Ft(ln),Ft(Lr),X1();break;case 5:Y1(n);break;case 4:wu();break;case 13:Ft(Ht);break;case 19:Ft(Ht);break;case 10:q1(n.type._context);break;case 22:case 23:aw()}r=r.return}if(yr=e,or=e=Xo(e.current,null),_r=Cn=t,fr=0,hf=null,iw=xp=Ys=0,an=Gc=null,Bs!==null){for(t=0;t<Bs.length;t++)if(r=Bs[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}Bs=null}return e}function q5(e,t){do{var r=or;try{if(H1(),kh.current=op,ip){for(var n=qt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ip=!1}if(Gs=0,gr=cr=qt=null,Kc=!1,cf=0,nw.current=null,r===null||r.return===null){fr=1,hf=t,or=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=_r,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,p=a,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var y=p.alternate;y?(p.updateQueue=y.updateQueue,p.memoizedState=y.memoizedState,p.lanes=y.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=US(s);if(v!==null){v.flags&=-257,VS(v,s,a,o,t),v.mode&1&&$S(o,l,t),t=v,u=l;var w=t.updateQueue;if(w===null){var C=new Set;C.add(u),t.updateQueue=C}else w.add(u);break e}else{if((t&1)===0){$S(o,l,t),uw();break e}u=Error(xe(426))}}else if(jt&&a.mode&1){var R=US(s);if(R!==null){(R.flags&65536)===0&&(R.flags|=256),VS(R,s,a,o,t),B1(xu(u,a));break e}}o=u=xu(u,a),fr!==4&&(fr=2),Gc===null?Gc=[o]:Gc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var P=D5(o,u,t);RS(o,P);break e;case 1:a=u;var M=o.type,A=o.stateNode;if((o.flags&128)===0&&(typeof M.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Go===null||!Go.has(A)))){o.flags|=65536,t&=-t,o.lanes|=t;var $=O5(o,a,t);RS(o,$);break e}}o=o.return}while(o!==null)}G5(r)}catch(W){t=W,or===r&&r!==null&&(or=r=r.return);continue}break}while(1)}function K5(){var e=sp.current;return sp.current=op,e===null?op:e}function uw(){(fr===0||fr===3||fr===2)&&(fr=4),yr===null||(Ys&268435455)===0&&(xp&268435455)===0||Vo(yr,_r)}function lp(e,t){var r=gt;gt|=2;var n=K5();(yr!==e||_r!==t)&&(Gi=null,Hs(e,t));do try{ej();break}catch(i){q5(e,i)}while(1);if(H1(),gt=r,sp.current=n,or!==null)throw Error(xe(261));return yr=null,_r=0,fr}function ej(){for(;or!==null;)W5(or)}function tj(){for(;or!==null&&!DU();)W5(or)}function W5(e){var t=X5(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?G5(e):or=t,nw.current=null}function G5(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=WV(r,t,Cn),r!==null){or=r;return}}else{if(r=GV(r,t),r!==null){r.flags&=32767,or=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{fr=6,or=null;return}}if(t=t.sibling,t!==null){or=t;return}or=t=e}while(t!==null);fr===0&&(fr=5)}function Vs(e,t,r){var n=Et,i=Yn.transition;try{Yn.transition=null,Et=1,rj(e,t,r,n)}finally{Yn.transition=i,Et=n}return null}function rj(e,t,r,n){do pu();while(Bo!==null);if((gt&6)!==0)throw Error(xe(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(xe(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if($U(e,o),e===yr&&(or=yr=null,_r=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ih||(Ih=!0,Z5(Hh,function(){return pu(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Yn.transition,Yn.transition=null;var s=Et;Et=1;var a=gt;gt|=4,nw.current=null,XV(e,r),B5(r,e),SV(e1),Kh=!!Jv,e1=Jv=null,e.current=r,ZV(r,e,i),OU(),gt=a,Et=s,Yn.transition=o}else e.current=r;if(Ih&&(Ih=!1,Bo=e,up=i),o=e.pendingLanes,o===0&&(Go=null),AU(r.stateNode,n),fn(e,Jt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ap)throw ap=!1,e=x1,x1=null,e;return(up&1)!==0&&e.tag!==0&&pu(),o=e.pendingLanes,(o&1)!==0?e===b1?Yc++:(Yc=0,b1=e):Yc=0,ts(),null}function pu(){if(Bo!==null){var e=T6(up),t=Yn.transition,r=Et;try{if(Yn.transition=null,Et=16>e?16:e,Bo===null)var n=!1;else{if(e=Bo,Bo=null,up=0,(gt&6)!==0)throw Error(xe(331));var i=gt;for(gt|=4,Me=e.current;Me!==null;){var o=Me,s=o.child;if((Me.flags&16)!==0){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(Me=l;Me!==null;){var p=Me;switch(p.tag){case 0:case 11:case 15:Wc(8,p,o)}var h=p.child;if(h!==null)h.return=p,Me=h;else for(;Me!==null;){p=Me;var y=p.sibling,v=p.return;if(U5(p),p===l){Me=null;break}if(y!==null){y.return=v,Me=y;break}Me=v}}}var w=o.alternate;if(w!==null){var C=w.child;if(C!==null){w.child=null;do{var R=C.sibling;C.sibling=null,C=R}while(C!==null)}}Me=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,Me=s;else e:for(;Me!==null;){if(o=Me,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Wc(9,o,o.return)}var P=o.sibling;if(P!==null){P.return=o.return,Me=P;break e}Me=o.return}}var M=e.current;for(Me=M;Me!==null;){s=Me;var A=s.child;if((s.subtreeFlags&2064)!==0&&A!==null)A.return=s,Me=A;else e:for(s=M;Me!==null;){if(a=Me,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:wp(9,a)}}catch(W){Yt(a,a.return,W)}if(a===s){Me=null;break e}var $=a.sibling;if($!==null){$.return=a.return,Me=$;break e}Me=a.return}}if(gt=i,ts(),Ii&&typeof Ii.onPostCommitFiberRoot=="function")try{Ii.onPostCommitFiberRoot(fp,e)}catch(W){}n=!0}return n}finally{Et=r,Yn.transition=t}}return!1}function JS(e,t,r){t=xu(r,t),t=D5(e,t,1),e=Wo(e,t,1),t=Gr(),e!==null&&(pf(e,1,t),fn(e,t))}function Yt(e,t,r){if(e.tag===3)JS(e,e,r);else for(;t!==null;){if(t.tag===3){JS(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Go===null||!Go.has(n))){e=xu(r,e),e=O5(t,e,1),t=Wo(t,e,1),e=Gr(),t!==null&&(pf(t,1,e),fn(t,e));break}}t=t.return}}function nj(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Gr(),e.pingedLanes|=e.suspendedLanes&r,yr===e&&(_r&r)===r&&(fr===4||fr===3&&(_r&130023424)===_r&&500>Jt()-ow?Hs(e,0):iw|=r),fn(e,t)}function Y5(e,t){t===0&&((e.mode&1)===0?t=1:(t=gh,gh<<=1,(gh&130023424)===0&&(gh=4194304)));var r=Gr();e=to(e,t),e!==null&&(pf(e,t,r),fn(e,r))}function ij(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Y5(e,r)}function oj(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(xe(314))}n!==null&&n.delete(t),Y5(e,r)}var X5;X5=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ln.current)un=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return un=!1,KV(e,t,r);un=(e.flags&131072)!==0}else un=!1,jt&&(t.flags&1048576)!==0&&J6(t,Jh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Lh(e,t),e=t.pendingProps;var i=gu(t,Lr.current);hu(t,r),i=Q1(null,t,n,e,i,r);var o=J1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,cn(n)?(o=!0,Zh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,W1(t),i.updater=yp,t.stateNode=i,i._reactInternals=t,l1(t,n,e,r),t=d1(null,t,n,!0,o,r)):(t.tag=0,jt&&o&&V1(t),Wr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Lh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=aj(n),e=hi(n,e),i){case 0:t=f1(null,t,n,e,r);break e;case 1:t=zS(null,t,n,e,r);break e;case 11:t=jS(null,t,n,e,r);break e;case 14:t=BS(null,t,n,hi(n.type,e),r);break e}throw Error(xe(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:hi(n,i),f1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:hi(n,i),zS(e,t,n,i,r);case 3:e:{if(M5(t),e===null)throw Error(xe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,n5(e,t),rp(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=xu(Error(xe(423)),t),t=HS(e,t,n,r,i);break e}else if(n!==i){i=xu(Error(xe(424)),t),t=HS(e,t,n,r,i);break e}else for(Pn=Ko(t.stateNode.containerInfo.firstChild),Tn=t,jt=!0,mi=null,r=a5(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yu(),n===i){t=ro(e,t,r);break e}Wr(e,t,n,r)}t=t.child}return t;case 5:return u5(t),e===null&&s1(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,t1(n,i)?s=null:o!==null&&t1(n,o)&&(t.flags|=32),A5(e,t),Wr(e,t,s,r),t.child;case 6:return e===null&&s1(t),null;case 13:return N5(e,t,r);case 4:return G1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vu(t,null,n,r):Wr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:hi(n,i),jS(e,t,n,i,r);case 7:return Wr(e,t,t.pendingProps,r),t.child;case 8:return Wr(e,t,t.pendingProps.children,r),t.child;case 12:return Wr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ot(ep,n._currentValue),n._currentValue=s,o!==null)if(vi(o.value,s)){if(o.children===i.children&&!ln.current){t=ro(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Qi(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),a1(o.return,r,t),a.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(xe(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),a1(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Wr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,hu(t,r),i=Xn(i),n=n(i),t.flags|=1,Wr(e,t,n,r),t.child;case 14:return n=t.type,i=hi(n,t.pendingProps),i=hi(n.type,i),BS(e,t,n,i,r);case 15:return I5(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:hi(n,i),Lh(e,t),t.tag=1,cn(n)?(e=!0,Zh(t)):e=!1,hu(t,r),o5(t,n,i),l1(t,n,i,r),d1(null,t,n,!0,e,r);case 19:return k5(e,t,r);case 22:return R5(e,t,r)}throw Error(xe(156,t.tag))};function Z5(e,t){return E6(e,t)}function sj(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(e,t,r,n){return new sj(e,t,r,n)}function lw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aj(e){if(typeof e=="function")return lw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===D1)return 11;if(e===O1)return 14}return 2}function Xo(e,t){var r=e.alternate;return r===null?(r=Gn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vh(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")lw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qa:return qs(r.children,i,o,t);case T1:s=8,i|=8;break;case Mv:return e=Gn(12,r,t,i|2),e.elementType=Mv,e.lanes=o,e;case Nv:return e=Gn(13,r,t,i),e.elementType=Nv,e.lanes=o,e;case kv:return e=Gn(19,r,t,i),e.elementType=kv,e.lanes=o,e;case s6:return bp(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case i6:s=10;break e;case o6:s=9;break e;case D1:s=11;break e;case O1:s=14;break e;case Lo:s=16,n=null;break e}throw Error(xe(130,e==null?e:typeof e,""))}return t=Gn(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function qs(e,t,r,n){return e=Gn(7,e,n,t),e.lanes=r,e}function bp(e,t,r,n){return e=Gn(22,e,n,t),e.elementType=s6,e.lanes=r,e.stateNode={isHidden:!1},e}function Iv(e,t,r){return e=Gn(6,e,null,t),e.lanes=r,e}function Rv(e,t,r){return t=Gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uj(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pv(0),this.expirationTimes=pv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pv(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cw(e,t,r,n,i,o,s,a,u){return e=new uj(e,t,r,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},W1(o),e}function lj(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Za,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Q5(e){if(!e)return Qo;e=e._reactInternals;e:{if(Qs(e)!==e||e.tag!==1)throw Error(xe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(cn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(xe(171))}if(e.tag===1){var r=e.type;if(cn(r))return Z6(e,r,t)}return t}function J5(e,t,r,n,i,o,s,a,u){return e=cw(r,n,!0,e,i,o,s,a,u),e.context=Q5(null),r=e.current,n=Gr(),i=Yo(r),o=Qi(n,i),o.callback=t!=null?t:null,Wo(r,o,i),e.current.lanes=i,pf(e,i,n),fn(e,n),e}function _p(e,t,r,n){var i=t.current,o=Gr(),s=Yo(i);return r=Q5(r),t.context===null?t.context=r:t.pendingContext=r,t=Qi(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Wo(i,t,s),e!==null&&(yi(e,i,s,o),Nh(e,i,s)),s}function cp(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function e6(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function fw(e,t){e6(e,t),(e=e.alternate)&&e6(e,t)}function cj(){return null}var eC=typeof reportError=="function"?reportError:function(e){console.error(e)};function dw(e){this._internalRoot=e}Ep.prototype.render=dw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(xe(409));_p(e,t,null,null)};Ep.prototype.unmount=dw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xs(function(){_p(null,e,null,null)}),t[eo]=null}};function Ep(e){this._internalRoot=e}Ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=I6();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Uo.length&&t!==0&&t<Uo[r].priority;r++);Uo.splice(r,0,e),r===0&&A6(e)}};function hw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t6(){}function fj(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=cp(s);o.call(l)}}var s=J5(t,n,e,0,null,!1,!1,"",t6);return e._reactRootContainer=s,e[eo]=s.current,of(e.nodeType===8?e.parentNode:e),Xs(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=cp(u);a.call(l)}}var u=cw(e,0,!1,null,null,!1,!1,"",t6);return e._reactRootContainer=u,e[eo]=u.current,of(e.nodeType===8?e.parentNode:e),Xs(function(){_p(t,u,r,n)}),u}function Cp(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var u=cp(s);a.call(u)}}_p(t,s,e,i)}else s=fj(r,t,e,i,n);return cp(s)}D6=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Uc(t.pendingLanes);r!==0&&(A1(t,r|1),fn(t,Jt()),(gt&6)===0&&(bu=Jt()+500,ts()))}break;case 13:Xs(function(){var n=to(e,1);if(n!==null){var i=Gr();yi(n,e,1,i)}}),fw(e,1)}};M1=function(e){if(e.tag===13){var t=to(e,134217728);if(t!==null){var r=Gr();yi(t,e,134217728,r)}fw(e,134217728)}};O6=function(e){if(e.tag===13){var t=Yo(e),r=to(e,t);if(r!==null){var n=Gr();yi(r,e,t,n)}fw(e,t)}};I6=function(){return Et};R6=function(e,t){var r=Et;try{return Et=e,t()}finally{Et=r}};qv=function(e,t,r){switch(t){case"input":if($v(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=mp(n);if(!i)throw Error(xe(90));u6(n),$v(n,i)}}}break;case"textarea":c6(e,r);break;case"select":t=r.value,t!=null&&lu(e,!!r.multiple,t,!1)}};y6=sw;v6=Xs;var dj={usingClientEntryPoint:!1,Events:[gf,ru,mp,m6,g6,sw]},kc={findFiberByHostInstance:js,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hj={bundleType:kc.bundleType,version:kc.version,rendererPackageName:kc.rendererPackageName,rendererConfig:kc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:no.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=b6(e),e===null?null:e.stateNode},findFiberByHostInstance:kc.findFiberByHostInstance||cj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Fc.isDisabled&&Fc.supportsFiber))try{fp=Fc.inject(hj),Ii=Fc}catch(e){}var Fc;In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dj;In.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hw(t))throw Error(xe(200));return lj(e,t,null,r)};In.createRoot=function(e,t){if(!hw(e))throw Error(xe(299));var r=!1,n="",i=eC;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=cw(e,1,!1,null,null,r,!1,n,i),e[eo]=t.current,of(e.nodeType===8?e.parentNode:e),new dw(t)};In.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(xe(188)):(e=Object.keys(e).join(","),Error(xe(268,e)));return e=b6(t),e=e===null?null:e.stateNode,e};In.flushSync=function(e){return Xs(e)};In.hydrate=function(e,t,r){if(!Sp(t))throw Error(xe(200));return Cp(null,e,t,!0,r)};In.hydrateRoot=function(e,t,r){if(!hw(e))throw Error(xe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=eC;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=J5(t,null,e,1,r!=null?r:null,i,!1,o,s),e[eo]=t.current,of(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Ep(t)};In.render=function(e,t,r){if(!Sp(t))throw Error(xe(200));return Cp(null,e,t,!1,r)};In.unmountComponentAtNode=function(e){if(!Sp(e))throw Error(xe(40));return e._reactRootContainer?(Xs(function(){Cp(null,null,e,!1,function(){e._reactRootContainer=null,e[eo]=null})}),!0):!1};In.unstable_batchedUpdates=sw;In.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sp(r))throw Error(xe(200));if(e==null||e._reactInternals===void 0)throw Error(xe(38));return Cp(e,t,r,!1,n)};In.version="18.2.0-next-9e3b772b8-20220608"});var Js=we((_ie,nC)=>{"use strict";c();d();f();function rC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rC)}catch(e){console.error(e)}}rC(),nC.exports=tC()});var oC=we(pw=>{"use strict";c();d();f();var iC=Js();pw.createRoot=iC.createRoot,pw.hydrateRoot=iC.hydrateRoot;var Eie});var aC=we((Cie,sC)=>{"use strict";c();d();f();var pj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";sC.exports=pj});var fC=we((Pie,cC)=>{"use strict";c();d();f();var mj=aC();function uC(){}function lC(){}lC.resetWarningCache=uC;cC.exports=function(){function e(n,i,o,s,a,u){if(u!==mj){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:lC,resetWarningCache:uC};return r.PropTypes=r,r}});var hC=we((Oie,dC)=>{c();d();f();dC.exports=fC()();var Tie,Die});var WC=we(bw=>{"use strict";c();d();f();Object.defineProperty(bw,"__esModule",{value:!0});function qj(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}bw.default=qj});var GC=we(_w=>{"use strict";c();d();f();Object.defineProperty(_w,"__esModule",{value:!0});function Kj(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Wj=Kj(WC()),Gj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Yj=Wj(function(e){return Gj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});_w.default=Yj});var gT=we(($me,D0)=>{c();d();f();var qP,KP,WP,GP,YP,XP,ZP,QP,JP,eT,tT,rT,nT,P0,vx,iT,oT,sT,dl,aT,uT,lT,cT,fT,dT,hT,pT,mT,T0;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof D0=="object"&&typeof D0.exports=="object"?e(r(t,r(D0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])};qP=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},KP=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},WP=function(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o},GP=function(n,i,o,s){var a=arguments.length,u=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,i,o,s);else for(var p=n.length-1;p>=0;p--)(l=n[p])&&(u=(a<3?l(u):a>3?l(i,o,u):l(i,o))||u);return a>3&&u&&Object.defineProperty(i,o,u),u},YP=function(n,i){return function(o,s){i(o,s,n)}},XP=function(n,i,o,s,a,u){function l($){if($!==void 0&&typeof $!="function")throw new TypeError("Function expected");return $}for(var p=s.kind,h=p==="getter"?"get":p==="setter"?"set":"value",y=!i&&n?s.static?n:n.prototype:null,v=i||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),w,C=!1,R=o.length-1;R>=0;R--){var P={};for(var M in s)P[M]=M==="access"?{}:s[M];for(var M in s.access)P.access[M]=s.access[M];P.addInitializer=function($){if(C)throw new TypeError("Cannot add initializers after decoration has completed");u.push(l($||null))};var A=(0,o[R])(p==="accessor"?{get:v.get,set:v.set}:v[h],P);if(p==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(w=l(A.get))&&(v.get=w),(w=l(A.set))&&(v.set=w),(w=l(A.init))&&a.push(w)}else(w=l(A))&&(p==="field"?a.push(w):v[h]=w)}y&&Object.defineProperty(y,s.name,v),C=!0},ZP=function(n,i,o){for(var s=arguments.length>2,a=0;a<i.length;a++)o=s?i[a].call(n,o):i[a].call(n);return s?o:void 0},QP=function(n){return typeof n=="symbol"?n:"".concat(n)},JP=function(n,i,o){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:o?"".concat(o," ",i):i})},eT=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},tT=function(n,i,o,s){function a(u){return u instanceof o?u:new o(function(l){l(u)})}return new(o||(o=Promise))(function(u,l){function p(v){try{y(s.next(v))}catch(w){l(w)}}function h(v){try{y(s.throw(v))}catch(w){l(w)}}function y(v){v.done?u(v.value):a(v.value).then(p,h)}y((s=s.apply(n,i||[])).next())})},rT=function(n,i){var o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(y){return function(v){return h([y,v])}}function h(y){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,y[0]&&(o=0)),o;)try{if(s=1,a&&(u=y[0]&2?a.return:y[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,y[1])).done)return u;switch(a=0,u&&(y=[y[0]&2,u.value]),y[0]){case 0:case 1:u=y;break;case 4:return o.label++,{value:y[1],done:!1};case 5:o.label++,a=y[1],y=[0];continue;case 7:y=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(y[0]===6||y[0]===2)){o=0;continue}if(y[0]===3&&(!u||y[1]>u[0]&&y[1]<u[3])){o.label=y[1];break}if(y[0]===6&&o.label<u[1]){o.label=u[1],u=y;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(y);break}u[2]&&o.ops.pop(),o.trys.pop();continue}y=i.call(n,o)}catch(v){y=[6,v],a=0}finally{s=u=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},nT=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&T0(i,n,o)},T0=Object.create?function(n,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,a)}:function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]},P0=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],s=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},vx=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,u=[],l;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(p){l={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(l)throw l.error}}return u},iT=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(vx(arguments[i]));return n},oT=function(){for(var n=0,i=0,o=arguments.length;i<o;i++)n+=arguments[i].length;for(var s=Array(n),a=0,i=0;i<o;i++)for(var u=arguments[i],l=0,p=u.length;l<p;l++,a++)s[a]=u[l];return s},sT=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))},dl=function(n){return this instanceof dl?(this.v=n,this):new dl(n)},aT=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,u=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(C){s[C]&&(a[C]=function(R){return new Promise(function(P,M){u.push([C,R,P,M])>1||p(C,R)})})}function p(C,R){try{h(s[C](R))}catch(P){w(u[0][3],P)}}function h(C){C.value instanceof dl?Promise.resolve(C.value.v).then(y,v):w(u[0][2],C)}function y(C){p("next",C)}function v(C){p("throw",C)}function w(C,R){C(R),u.shift(),u.length&&p(u[0][0],u[0][1])}},uT=function(n){var i,o;return i={},s("next"),s("throw",function(a){throw a}),s("return"),i[Symbol.iterator]=function(){return this},i;function s(a,u){i[a]=n[a]?function(l){return(o=!o)?{value:dl(n[a](l)),done:!1}:u?u(l):l}:u}},lT=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],o;return i?i.call(n):(n=typeof P0=="function"?P0(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(u){o[u]=n[u]&&function(l){return new Promise(function(p,h){l=n[u](l),a(p,h,l.done,l.value)})}}function a(u,l,p,h){Promise.resolve(h).then(function(y){u({value:y,done:p})},l)}},cT=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};fT=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var o in n)o!=="default"&&Object.prototype.hasOwnProperty.call(n,o)&&T0(i,n,o);return r(i,n),i},dT=function(n){return n&&n.__esModule?n:{default:n}},hT=function(n,i,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(n):s?s.value:i.get(n)},pT=function(n,i,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,o):a?a.value=o:i.set(n,o),o},mT=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",qP),e("__assign",KP),e("__rest",WP),e("__decorate",GP),e("__param",YP),e("__esDecorate",XP),e("__runInitializers",ZP),e("__propKey",QP),e("__setFunctionName",JP),e("__metadata",eT),e("__awaiter",tT),e("__generator",rT),e("__exportStar",nT),e("__createBinding",T0),e("__values",P0),e("__read",vx),e("__spread",iT),e("__spreadArrays",oT),e("__spreadArray",sT),e("__await",dl),e("__asyncGenerator",aT),e("__asyncDelegator",uT),e("__asyncValues",lT),e("__makeTemplateObject",cT),e("__importStar",fT),e("__importDefault",dT),e("__classPrivateFieldGet",hT),e("__classPrivateFieldSet",pT),e("__classPrivateFieldIn",mT)})});var tD=we((Nye,eD)=>{c();d();f();eD.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}});var iD=we((kye,nD)=>{"use strict";c();d();f();var eq=tD(),rD={"text/plain":"Text","text/html":"Url",default:"Text"},tq="Copy to clipboard: #{key}, Enter";function rq(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function nq(e,t){var r,n,i,o,s,a,u=!1;t||(t={}),r=t.debug||!1;try{i=eq(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=rD[t.format]||rD.default;window.clipboardData.setData(h,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(h){r&&console.error("unable to copy using clipboardData: ",h),r&&console.error("falling back to prompt"),n=rq("message"in t?t.message:tq),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return u}nD.exports=nq});var oD=we((Bf,Dx)=>{c();d();f();(function(e,t){typeof Bf=="object"&&typeof Dx=="object"?Dx.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Bf=="object"?Bf.QRCodeStyling=t():e.QRCodeStyling=t()})(Bf,function(){return(()=>{var e={192:(i,o)=>{var s,a,u=function(){var l=function(X,I){var m=X,g=C[I],E=null,T=0,k=null,V=[],H={},U=function(Y,Q){E=function(G){for(var se=new Array(G),te=0;te<G;te+=1){se[te]=new Array(G);for(var ge=0;ge<G;ge+=1)se[te][ge]=null}return se}(T=4*m+17),b(0,0),b(T-7,0),b(0,T-7),he(),j(),Z(Y,Q),m>=7&&D(Y),k==null&&(k=ae(m,g,V)),re(k,Q)},b=function(Y,Q){for(var G=-1;G<=7;G+=1)if(!(Y+G<=-1||T<=Y+G))for(var se=-1;se<=7;se+=1)Q+se<=-1||T<=Q+se||(E[Y+G][Q+se]=0<=G&&G<=6&&(se==0||se==6)||0<=se&&se<=6&&(G==0||G==6)||2<=G&&G<=4&&2<=se&&se<=4)},j=function(){for(var Y=8;Y<T-8;Y+=1)E[Y][6]==null&&(E[Y][6]=Y%2==0);for(var Q=8;Q<T-8;Q+=1)E[6][Q]==null&&(E[6][Q]=Q%2==0)},he=function(){for(var Y=R.getPatternPosition(m),Q=0;Q<Y.length;Q+=1)for(var G=0;G<Y.length;G+=1){var se=Y[Q],te=Y[G];if(E[se][te]==null)for(var ge=-2;ge<=2;ge+=1)for(var Ge=-2;Ge<=2;Ge+=1)E[se+ge][te+Ge]=ge==-2||ge==2||Ge==-2||Ge==2||ge==0&&Ge==0}},D=function(Y){for(var Q=R.getBCHTypeNumber(m),G=0;G<18;G+=1){var se=!Y&&(Q>>G&1)==1;E[Math.floor(G/3)][G%3+T-8-3]=se}for(G=0;G<18;G+=1)se=!Y&&(Q>>G&1)==1,E[G%3+T-8-3][Math.floor(G/3)]=se},Z=function(Y,Q){for(var G=g<<3|Q,se=R.getBCHTypeInfo(G),te=0;te<15;te+=1){var ge=!Y&&(se>>te&1)==1;te<6?E[te][8]=ge:te<8?E[te+1][8]=ge:E[T-15+te][8]=ge}for(te=0;te<15;te+=1)ge=!Y&&(se>>te&1)==1,te<8?E[8][T-te-1]=ge:te<9?E[8][15-te-1+1]=ge:E[8][15-te-1]=ge;E[T-8][8]=!Y},re=function(Y,Q){for(var G=-1,se=T-1,te=7,ge=0,Ge=R.getMaskFunction(Q),Re=T-1;Re>0;Re-=2)for(Re==6&&(Re-=1);;){for(var $e=0;$e<2;$e+=1)if(E[se][Re-$e]==null){var ot=!1;ge<Y.length&&(ot=(Y[ge]>>>te&1)==1),Ge(se,Re-$e)&&(ot=!ot),E[se][Re-$e]=ot,(te-=1)==-1&&(ge+=1,te=7)}if((se+=G)<0||T<=se){se-=G,G=-G;break}}},ae=function(Y,Q,G){for(var se=A.getRSBlocks(Y,Q),te=$(),ge=0;ge<G.length;ge+=1){var Ge=G[ge];te.put(Ge.getMode(),4),te.put(Ge.getLength(),R.getLengthInBits(Ge.getMode(),Y)),Ge.write(te)}var Re=0;for(ge=0;ge<se.length;ge+=1)Re+=se[ge].dataCount;if(te.getLengthInBits()>8*Re)throw"code length overflow. ("+te.getLengthInBits()+">"+8*Re+")";for(te.getLengthInBits()+4<=8*Re&&te.put(0,4);te.getLengthInBits()%8!=0;)te.putBit(!1);for(;!(te.getLengthInBits()>=8*Re||(te.put(236,8),te.getLengthInBits()>=8*Re));)te.put(17,8);return function($e,ot){for(var J=0,S=0,L=0,N=new Array(ot.length),F=new Array(ot.length),B=0;B<ot.length;B+=1){var z=ot[B].dataCount,ie=ot[B].totalCount-z;S=Math.max(S,z),L=Math.max(L,ie),N[B]=new Array(z);for(var oe=0;oe<N[B].length;oe+=1)N[B][oe]=255&$e.getBuffer()[oe+J];J+=z;var de=R.getErrorCorrectPolynomial(ie),le=M(N[B],de.getLength()-1).mod(de);for(F[B]=new Array(de.getLength()-1),oe=0;oe<F[B].length;oe+=1){var ve=oe+le.getLength()-F[B].length;F[B][oe]=ve>=0?le.getAt(ve):0}}var ye=0;for(oe=0;oe<ot.length;oe+=1)ye+=ot[oe].totalCount;var Ee=new Array(ye),ke=0;for(oe=0;oe<S;oe+=1)for(B=0;B<ot.length;B+=1)oe<N[B].length&&(Ee[ke]=N[B][oe],ke+=1);for(oe=0;oe<L;oe+=1)for(B=0;B<ot.length;B+=1)oe<F[B].length&&(Ee[ke]=F[B][oe],ke+=1);return Ee}(te,se)};H.addData=function(Y,Q){var G=null;switch(Q=Q||"Byte"){case"Numeric":G=W(Y);break;case"Alphanumeric":G=ee(Y);break;case"Byte":G=q(Y);break;case"Kanji":G=K(Y);break;default:throw"mode:"+Q}V.push(G),k=null},H.isDark=function(Y,Q){if(Y<0||T<=Y||Q<0||T<=Q)throw Y+","+Q;return E[Y][Q]},H.getModuleCount=function(){return T},H.make=function(){if(m<1){for(var Y=1;Y<40;Y++){for(var Q=A.getRSBlocks(Y,g),G=$(),se=0;se<V.length;se++){var te=V[se];G.put(te.getMode(),4),G.put(te.getLength(),R.getLengthInBits(te.getMode(),Y)),te.write(G)}var ge=0;for(se=0;se<Q.length;se++)ge+=Q[se].dataCount;if(G.getLengthInBits()<=8*ge)break}m=Y}U(!1,function(){for(var Ge=0,Re=0,$e=0;$e<8;$e+=1){U(!0,$e);var ot=R.getLostPoint(H);($e==0||Ge>ot)&&(Ge=ot,Re=$e)}return Re}())},H.createTableTag=function(Y,Q){Y=Y||2;var G="";G+='<table style="',G+=" border-width: 0px; border-style: none;",G+=" border-collapse: collapse;",G+=" padding: 0px; margin: "+(Q=Q===void 0?4*Y:Q)+"px;",G+='">',G+="<tbody>";for(var se=0;se<H.getModuleCount();se+=1){G+="<tr>";for(var te=0;te<H.getModuleCount();te+=1)G+='<td style="',G+=" border-width: 0px; border-style: none;",G+=" border-collapse: collapse;",G+=" padding: 0px; margin: 0px;",G+=" width: "+Y+"px;",G+=" height: "+Y+"px;",G+=" background-color: ",G+=H.isDark(se,te)?"#000000":"#ffffff",G+=";",G+='"/>';G+="</tr>"}return(G+="</tbody>")+"</table>"},H.createSvgTag=function(Y,Q,G,se){var te={};typeof arguments[0]=="object"&&(Y=(te=arguments[0]).cellSize,Q=te.margin,G=te.alt,se=te.title),Y=Y||2,Q=Q===void 0?4*Y:Q,(G=typeof G=="string"?{text:G}:G||{}).text=G.text||null,G.id=G.text?G.id||"qrcode-description":null,(se=typeof se=="string"?{text:se}:se||{}).text=se.text||null,se.id=se.text?se.id||"qrcode-title":null;var ge,Ge,Re,$e,ot=H.getModuleCount()*Y+2*Q,J="";for($e="l"+Y+",0 0,"+Y+" -"+Y+",0 0,-"+Y+"z ",J+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',J+=te.scalable?"":' width="'+ot+'px" height="'+ot+'px"',J+=' viewBox="0 0 '+ot+" "+ot+'" ',J+=' preserveAspectRatio="xMinYMin meet"',J+=se.text||G.text?' role="img" aria-labelledby="'+ce([se.id,G.id].join(" ").trim())+'"':"",J+=">",J+=se.text?'<title id="'+ce(se.id)+'">'+ce(se.text)+"</title>":"",J+=G.text?'<description id="'+ce(G.id)+'">'+ce(G.text)+"</description>":"",J+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',J+='<path d="',Ge=0;Ge<H.getModuleCount();Ge+=1)for(Re=Ge*Y+Q,ge=0;ge<H.getModuleCount();ge+=1)H.isDark(Ge,ge)&&(J+="M"+(ge*Y+Q)+","+Re+$e);return(J+='" stroke="transparent" fill="black"/>')+"</svg>"},H.createDataURL=function(Y,Q){Y=Y||2,Q=Q===void 0?4*Y:Q;var G=H.getModuleCount()*Y+2*Q,se=Q,te=G-Q;return fe(G,G,function(ge,Ge){if(se<=ge&&ge<te&&se<=Ge&&Ge<te){var Re=Math.floor((ge-se)/Y),$e=Math.floor((Ge-se)/Y);return H.isDark($e,Re)?0:1}return 1})},H.createImgTag=function(Y,Q,G){Y=Y||2,Q=Q===void 0?4*Y:Q;var se=H.getModuleCount()*Y+2*Q,te="";return te+="<img",te+=' src="',te+=H.createDataURL(Y,Q),te+='"',te+=' width="',te+=se,te+='"',te+=' height="',te+=se,te+='"',G&&(te+=' alt="',te+=ce(G),te+='"'),te+"/>"};var ce=function(Y){for(var Q="",G=0;G<Y.length;G+=1){var se=Y.charAt(G);switch(se){case"<":Q+="<";break;case">":Q+=">";break;case"&":Q+="&";break;case'"':Q+=""";break;default:Q+=se}}return Q};return H.createASCII=function(Y,Q){if((Y=Y||1)<2)return function(N){N=N===void 0?2:N;var F,B,z,ie,oe,de=1*H.getModuleCount()+2*N,le=N,ve=de-N,ye={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Ee={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ke="";for(F=0;F<de;F+=2){for(z=Math.floor((F-le)/1),ie=Math.floor((F+1-le)/1),B=0;B<de;B+=1)oe="\u2588",le<=B&&B<ve&&le<=F&&F<ve&&H.isDark(z,Math.floor((B-le)/1))&&(oe=" "),le<=B&&B<ve&&le<=F+1&&F+1<ve&&H.isDark(ie,Math.floor((B-le)/1))?oe+=" ":oe+="\u2588",ke+=N<1&&F+1>=ve?Ee[oe]:ye[oe];ke+=`
|
|
9
|
-
|
|
10
|
-
`}return S.substring(0,S.length-1)},H.renderTo2dContext=function(Y,Q){Q=Q||2;for(var G=H.getModuleCount(),se=0;se<G;se++)for(var te=0;te<G;te++)Y.fillStyle=H.isDark(se,te)?"black":"white",Y.fillRect(se*Q,te*Q,Q,Q)},H};l.stringToBytes=(l.stringToBytesFuncs={default:function(X){for(var I=[],m=0;m<X.length;m+=1){var g=X.charCodeAt(m);I.push(255&g)}return I}}).default,l.createStringToBytes=function(X,I){var m=function(){for(var E=pe(X),T=function(){var j=E.read();if(j==-1)throw"eof";return j},k=0,V={};;){var H=E.read();if(H==-1)break;var U=T(),b=T()<<8|T();V[String.fromCharCode(H<<8|U)]=b,k+=1}if(k!=I)throw k+" != "+I;return V}(),g="?".charCodeAt(0);return function(E){for(var T=[],k=0;k<E.length;k+=1){var V=E.charCodeAt(k);if(V<128)T.push(V);else{var H=m[E.charAt(k)];typeof H=="number"?(255&H)==H?T.push(H):(T.push(H>>>8),T.push(255&H)):T.push(g)}}return T}};var p,h,y,v,w,C={L:1,M:0,Q:3,H:2},R=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],h=1335,y=7973,w=function(X){for(var I=0;X!=0;)I+=1,X>>>=1;return I},(v={}).getBCHTypeInfo=function(X){for(var I=X<<10;w(I)-w(h)>=0;)I^=h<<w(I)-w(h);return 21522^(X<<10|I)},v.getBCHTypeNumber=function(X){for(var I=X<<12;w(I)-w(y)>=0;)I^=y<<w(I)-w(y);return X<<12|I},v.getPatternPosition=function(X){return p[X-1]},v.getMaskFunction=function(X){switch(X){case 0:return function(I,m){return(I+m)%2==0};case 1:return function(I,m){return I%2==0};case 2:return function(I,m){return m%3==0};case 3:return function(I,m){return(I+m)%3==0};case 4:return function(I,m){return(Math.floor(I/2)+Math.floor(m/3))%2==0};case 5:return function(I,m){return I*m%2+I*m%3==0};case 6:return function(I,m){return(I*m%2+I*m%3)%2==0};case 7:return function(I,m){return(I*m%3+(I+m)%2)%2==0};default:throw"bad maskPattern:"+X}},v.getErrorCorrectPolynomial=function(X){for(var I=M([1],0),m=0;m<X;m+=1)I=I.multiply(M([1,P.gexp(m)],0));return I},v.getLengthInBits=function(X,I){if(1<=I&&I<10)switch(X){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+X}else if(I<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+X}else{if(!(I<41))throw"type:"+I;switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+X}}},v.getLostPoint=function(X){for(var I=X.getModuleCount(),m=0,g=0;g<I;g+=1)for(var E=0;E<I;E+=1){for(var T=0,k=X.isDark(g,E),V=-1;V<=1;V+=1)if(!(g+V<0||I<=g+V))for(var H=-1;H<=1;H+=1)E+H<0||I<=E+H||V==0&&H==0||k==X.isDark(g+V,E+H)&&(T+=1);T>5&&(m+=3+T-5)}for(g=0;g<I-1;g+=1)for(E=0;E<I-1;E+=1){var U=0;X.isDark(g,E)&&(U+=1),X.isDark(g+1,E)&&(U+=1),X.isDark(g,E+1)&&(U+=1),X.isDark(g+1,E+1)&&(U+=1),U!=0&&U!=4||(m+=3)}for(g=0;g<I;g+=1)for(E=0;E<I-6;E+=1)X.isDark(g,E)&&!X.isDark(g,E+1)&&X.isDark(g,E+2)&&X.isDark(g,E+3)&&X.isDark(g,E+4)&&!X.isDark(g,E+5)&&X.isDark(g,E+6)&&(m+=40);for(E=0;E<I;E+=1)for(g=0;g<I-6;g+=1)X.isDark(g,E)&&!X.isDark(g+1,E)&&X.isDark(g+2,E)&&X.isDark(g+3,E)&&X.isDark(g+4,E)&&!X.isDark(g+5,E)&&X.isDark(g+6,E)&&(m+=40);var b=0;for(E=0;E<I;E+=1)for(g=0;g<I;g+=1)X.isDark(g,E)&&(b+=1);return m+Math.abs(100*b/I/I-50)/5*10},v),P=function(){for(var X=new Array(256),I=new Array(256),m=0;m<8;m+=1)X[m]=1<<m;for(m=8;m<256;m+=1)X[m]=X[m-4]^X[m-5]^X[m-6]^X[m-8];for(m=0;m<255;m+=1)I[X[m]]=m;return{glog:function(g){if(g<1)throw"glog("+g+")";return I[g]},gexp:function(g){for(;g<0;)g+=255;for(;g>=256;)g-=255;return X[g]}}}();function M(X,I){if(X.length===void 0)throw X.length+"/"+I;var m=function(){for(var E=0;E<X.length&&X[E]==0;)E+=1;for(var T=new Array(X.length-E+I),k=0;k<X.length-E;k+=1)T[k]=X[k+E];return T}(),g={getAt:function(E){return m[E]},getLength:function(){return m.length},multiply:function(E){for(var T=new Array(g.getLength()+E.getLength()-1),k=0;k<g.getLength();k+=1)for(var V=0;V<E.getLength();V+=1)T[k+V]^=P.gexp(P.glog(g.getAt(k))+P.glog(E.getAt(V)));return M(T,0)},mod:function(E){if(g.getLength()-E.getLength()<0)return g;for(var T=P.glog(g.getAt(0))-P.glog(E.getAt(0)),k=new Array(g.getLength()),V=0;V<g.getLength();V+=1)k[V]=g.getAt(V);for(V=0;V<E.getLength();V+=1)k[V]^=P.gexp(P.glog(E.getAt(V))+T);return M(k,0).mod(E)}};return g}var A=function(){var X=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],I=function(g,E){var T={};return T.totalCount=g,T.dataCount=E,T},m={getRSBlocks:function(g,E){var T=function(D,Z){switch(Z){case C.L:return X[4*(D-1)+0];case C.M:return X[4*(D-1)+1];case C.Q:return X[4*(D-1)+2];case C.H:return X[4*(D-1)+3];default:return}}(g,E);if(T===void 0)throw"bad rs block @ typeNumber:"+g+"/errorCorrectionLevel:"+E;for(var k=T.length/3,V=[],H=0;H<k;H+=1)for(var U=T[3*H+0],b=T[3*H+1],j=T[3*H+2],he=0;he<U;he+=1)V.push(I(b,j));return V}};return m}(),$=function(){var X=[],I=0,m={getBuffer:function(){return X},getAt:function(g){var E=Math.floor(g/8);return(X[E]>>>7-g%8&1)==1},put:function(g,E){for(var T=0;T<E;T+=1)m.putBit((g>>>E-T-1&1)==1)},getLengthInBits:function(){return I},putBit:function(g){var E=Math.floor(I/8);X.length<=E&&X.push(0),g&&(X[E]|=128>>>I%8),I+=1}};return m},W=function(X){var I=X,m={getMode:function(){return 1},getLength:function(T){return I.length},write:function(T){for(var k=I,V=0;V+2<k.length;)T.put(g(k.substring(V,V+3)),10),V+=3;V<k.length&&(k.length-V==1?T.put(g(k.substring(V,V+1)),4):k.length-V==2&&T.put(g(k.substring(V,V+2)),7))}},g=function(T){for(var k=0,V=0;V<T.length;V+=1)k=10*k+E(T.charAt(V));return k},E=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+T};return m},ee=function(X){var I=X,m={getMode:function(){return 2},getLength:function(E){return I.length},write:function(E){for(var T=I,k=0;k+1<T.length;)E.put(45*g(T.charAt(k))+g(T.charAt(k+1)),11),k+=2;k<T.length&&E.put(g(T.charAt(k)),6)}},g=function(E){if("0"<=E&&E<="9")return E.charCodeAt(0)-"0".charCodeAt(0);if("A"<=E&&E<="Z")return E.charCodeAt(0)-"A".charCodeAt(0)+10;switch(E){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+E}};return m},q=function(X){var I=l.stringToBytes(X);return{getMode:function(){return 4},getLength:function(m){return I.length},write:function(m){for(var g=0;g<I.length;g+=1)m.put(I[g],8)}}},K=function(X){var I=l.stringToBytesFuncs.SJIS;if(!I)throw"sjis not supported.";(function(E,T){var k=I("\u53CB");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var m=I(X),g={getMode:function(){return 8},getLength:function(E){return~~(m.length/2)},write:function(E){for(var T=m,k=0;k+1<T.length;){var V=(255&T[k])<<8|255&T[k+1];if(33088<=V&&V<=40956)V-=33088;else{if(!(57408<=V&&V<=60351))throw"illegal char at "+(k+1)+"/"+V;V-=49472}V=192*(V>>>8&255)+(255&V),E.put(V,13),k+=2}if(k<T.length)throw"illegal char at "+(k+1)}};return g},ue=function(){var X=[],I={writeByte:function(m){X.push(255&m)},writeShort:function(m){I.writeByte(m),I.writeByte(m>>>8)},writeBytes:function(m,g,E){g=g||0,E=E||m.length;for(var T=0;T<E;T+=1)I.writeByte(m[T+g])},writeString:function(m){for(var g=0;g<m.length;g+=1)I.writeByte(m.charCodeAt(g))},toByteArray:function(){return X},toString:function(){var m="";m+="[";for(var g=0;g<X.length;g+=1)g>0&&(m+=","),m+=X[g];return m+"]"}};return I},pe=function(X){var I=X,m=0,g=0,E=0,T={read:function(){for(;E<8;){if(m>=I.length){if(E==0)return-1;throw"unexpected end of file./"+E}var V=I.charAt(m);if(m+=1,V=="=")return E=0,-1;V.match(/^\s$/)||(g=g<<6|k(V.charCodeAt(0)),E+=6)}var H=g>>>E-8&255;return E-=8,H}},k=function(V){if(65<=V&&V<=90)return V-65;if(97<=V&&V<=122)return V-97+26;if(48<=V&&V<=57)return V-48+52;if(V==43)return 62;if(V==47)return 63;throw"c:"+V};return T},fe=function(X,I,m){for(var g=function(b,j){var he=b,D=j,Z=new Array(b*j),re={setPixel:function(Y,Q,G){Z[Q*he+Y]=G},write:function(Y){Y.writeString("GIF87a"),Y.writeShort(he),Y.writeShort(D),Y.writeByte(128),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(0),Y.writeByte(255),Y.writeByte(255),Y.writeByte(255),Y.writeString(","),Y.writeShort(0),Y.writeShort(0),Y.writeShort(he),Y.writeShort(D),Y.writeByte(0);var Q=ae(2);Y.writeByte(2);for(var G=0;Q.length-G>255;)Y.writeByte(255),Y.writeBytes(Q,G,255),G+=255;Y.writeByte(Q.length-G),Y.writeBytes(Q,G,Q.length-G),Y.writeByte(0),Y.writeString(";")}},ae=function(Y){for(var Q=1<<Y,G=1+(1<<Y),se=Y+1,te=ce(),ge=0;ge<Q;ge+=1)te.add(String.fromCharCode(ge));te.add(String.fromCharCode(Q)),te.add(String.fromCharCode(G));var Ge,Re,$e,ot=ue(),J=(Ge=ot,Re=0,$e=0,{write:function(F,B){if(F>>>B!=0)throw"length over";for(;Re+B>=8;)Ge.writeByte(255&(F<<Re|$e)),B-=8-Re,F>>>=8-Re,$e=0,Re=0;$e|=F<<Re,Re+=B},flush:function(){Re>0&&Ge.writeByte($e)}});J.write(Q,se);var S=0,L=String.fromCharCode(Z[S]);for(S+=1;S<Z.length;){var N=String.fromCharCode(Z[S]);S+=1,te.contains(L+N)?L+=N:(J.write(te.indexOf(L),se),te.size()<4095&&(te.size()==1<<se&&(se+=1),te.add(L+N)),L=N)}return J.write(te.indexOf(L),se),J.write(G,se),J.flush(),ot.toByteArray()},ce=function(){var Y={},Q=0,G={add:function(se){if(G.contains(se))throw"dup key:"+se;Y[se]=Q,Q+=1},size:function(){return Q},indexOf:function(se){return Y[se]},contains:function(se){return Y[se]!==void 0}};return G};return re}(X,I),E=0;E<I;E+=1)for(var T=0;T<X;T+=1)g.setPixel(T,E,m(T,E));var k=ue();g.write(k);for(var V=function(){var b=0,j=0,he=0,D="",Z={},re=function(ce){D+=String.fromCharCode(ae(63&ce))},ae=function(ce){if(!(ce<0)){if(ce<26)return 65+ce;if(ce<52)return ce-26+97;if(ce<62)return ce-52+48;if(ce==62)return 43;if(ce==63)return 47}throw"n:"+ce};return Z.writeByte=function(ce){for(b=b<<8|255&ce,j+=8,he+=1;j>=6;)re(b>>>j-6),j-=6},Z.flush=function(){if(j>0&&(re(b<<6-j),b=0,j=0),he%3!=0)for(var ce=3-he%3,Y=0;Y<ce;Y+=1)D+="="},Z.toString=function(){return D},Z}(),H=k.toByteArray(),U=0;U<H.length;U+=1)V.writeByte(H[U]);return V.flush(),"data:image/gif;base64,"+V};return l}();u.stringToBytesFuncs["UTF-8"]=function(l){return function(p){for(var h=[],y=0;y<p.length;y++){var v=p.charCodeAt(y);v<128?h.push(v):v<2048?h.push(192|v>>6,128|63&v):v<55296||v>=57344?h.push(224|v>>12,128|v>>6&63,128|63&v):(y++,v=65536+((1023&v)<<10|1023&p.charCodeAt(y)),h.push(240|v>>18,128|v>>12&63,128|v>>6&63,128|63&v))}return h}(l)},(a=typeof(s=function(){return u})=="function"?s.apply(o,[]):s)===void 0||(i.exports=a)}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}r.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return r.d(o,{a:o}),o},r.d=(i,o)=>{for(var s in o)r.o(o,s)&&!r.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o);var n={};return(()=>{"use strict";r.d(n,{default:()=>ot});var i=function(){return i=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},i.apply(this,arguments)},o=function(J,S,L){if(L||arguments.length===2)for(var N,F=0,B=S.length;F<B;F++)!N&&F in S||(N||(N=Array.prototype.slice.call(S,0,F)),N[F]=S[F]);return J.concat(N||Array.prototype.slice.call(S))},s=function(J){return!!J&&typeof J=="object"&&!Array.isArray(J)};function a(J){for(var S=[],L=1;L<arguments.length;L++)S[L-1]=arguments[L];if(!S.length)return J;var N=S.shift();return N!==void 0&&s(J)&&s(N)?(J=i({},J),Object.keys(N).forEach(function(F){var B=J[F],z=N[F];Array.isArray(B)&&Array.isArray(z)?J[F]=z:s(B)&&s(z)?J[F]=a(Object.assign({},B),z):J[F]=z}),a.apply(void 0,o([J],S,!1))):J}function u(J,S){var L=document.createElement("a");L.download=S,L.href=J,document.body.appendChild(L),L.click(),document.body.removeChild(L)}function l(J){var S=J.originalHeight,L=J.originalWidth,N=J.maxHiddenDots,F=J.maxHiddenAxisDots,B=J.dotSize,z={x:0,y:0},ie={x:0,y:0};if(S<=0||L<=0||N<=0||B<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var oe=S/L;return z.x=Math.floor(Math.sqrt(N/oe)),z.x<=0&&(z.x=1),F&&F<z.x&&(z.x=F),z.x%2==0&&z.x--,ie.x=z.x*B,z.y=1+2*Math.ceil((z.x*oe-1)/2),ie.y=Math.round(ie.x*oe),(z.y*z.x>N||F&&F<z.y)&&(F&&F<z.y?(z.y=F,z.y%2==0&&z.x--):z.y-=2,ie.y=z.y*B,z.x=1+2*Math.ceil((z.y/oe-1)/2),ie.x=Math.round(ie.y/oe)),{height:ie.y,width:ie.x,hideYDots:z.y,hideXDots:z.x}}let p={L:.07,M:.15,Q:.25,H:.3},h="dots",y="rounded",v="classy",w="classy-rounded",C="extra-rounded";var R=function(){return R=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},R.apply(this,arguments)},P=function(){function J(S){var L=S.context,N=S.type;this._context=L,this._type=N}return J.prototype.draw=function(S,L,N,F){var B,z=this._context;switch(this._type){case h:B=this._drawDot;break;case v:B=this._drawClassy;break;case w:B=this._drawClassyRounded;break;case y:B=this._drawRounded;break;case C:B=this._drawExtraRounded;break;default:B=this._drawSquare}B.call(this,{x:S,y:L,size:N,context:z,getNeighbor:F})},J.prototype._rotateFigure=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation,ie=z===void 0?0:z,oe=S.draw,de=L+F/2,le=N+F/2;B.translate(de,le),ie&&B.rotate(ie),oe(),B.closePath(),ie&&B.rotate(-ie),B.translate(-de,-le)},J.prototype._basicDot=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(0,0,L/2,0,2*Math.PI)}}))},J.prototype._basicSquare=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.rect(-L/2,-L/2,L,L)}}))},J.prototype._basicSideRounded=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(0,0,L/2,-Math.PI/2,Math.PI/2),N.lineTo(-L/2,L/2),N.lineTo(-L/2,-L/2),N.lineTo(0,-L/2)}}))},J.prototype._basicCornerRounded=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(0,0,L/2,-Math.PI/2,0),N.lineTo(L/2,L/2),N.lineTo(-L/2,L/2),N.lineTo(-L/2,-L/2),N.lineTo(0,-L/2)}}))},J.prototype._basicCornerExtraRounded=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(-L/2,L/2,L,-Math.PI/2,0),N.lineTo(-L/2,L/2),N.lineTo(-L/2,-L/2)}}))},J.prototype._basicCornersRounded=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(0,0,L/2,-Math.PI/2,0),N.lineTo(L/2,L/2),N.lineTo(0,L/2),N.arc(0,0,L/2,Math.PI/2,Math.PI),N.lineTo(-L/2,-L/2),N.lineTo(0,-L/2)}}))},J.prototype._basicCornersExtraRounded=function(S){var L=S.size,N=S.context;this._rotateFigure(R(R({},S),{draw:function(){N.arc(-L/2,L/2,L,-Math.PI/2,0),N.arc(L/2,-L/2,L,Math.PI/2,Math.PI)}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size,B=S.context;this._basicDot({x:L,y:N,size:F,context:B,rotation:0})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size,B=S.context;this._basicSquare({x:L,y:N,size:F,context:B,rotation:0})},J.prototype._drawRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.getNeighbor,ie=z?+z(-1,0):0,oe=z?+z(1,0):0,de=z?+z(0,-1):0,le=z?+z(0,1):0,ve=ie+oe+de+le;if(ve!==0)if(ve>2||ie&&oe||de&&le)this._basicSquare({x:L,y:N,size:F,context:B,rotation:0});else{if(ve===2){var ye=0;return ie&&de?ye=Math.PI/2:de&&oe?ye=Math.PI:oe&&le&&(ye=-Math.PI/2),void this._basicCornerRounded({x:L,y:N,size:F,context:B,rotation:ye})}if(ve===1)return ye=0,de?ye=Math.PI/2:oe?ye=Math.PI:le&&(ye=-Math.PI/2),void this._basicSideRounded({x:L,y:N,size:F,context:B,rotation:ye})}else this._basicDot({x:L,y:N,size:F,context:B,rotation:0})},J.prototype._drawExtraRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.getNeighbor,ie=z?+z(-1,0):0,oe=z?+z(1,0):0,de=z?+z(0,-1):0,le=z?+z(0,1):0,ve=ie+oe+de+le;if(ve!==0)if(ve>2||ie&&oe||de&&le)this._basicSquare({x:L,y:N,size:F,context:B,rotation:0});else{if(ve===2){var ye=0;return ie&&de?ye=Math.PI/2:de&&oe?ye=Math.PI:oe&&le&&(ye=-Math.PI/2),void this._basicCornerExtraRounded({x:L,y:N,size:F,context:B,rotation:ye})}if(ve===1)return ye=0,de?ye=Math.PI/2:oe?ye=Math.PI:le&&(ye=-Math.PI/2),void this._basicSideRounded({x:L,y:N,size:F,context:B,rotation:ye})}else this._basicDot({x:L,y:N,size:F,context:B,rotation:0})},J.prototype._drawClassy=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.getNeighbor,ie=z?+z(-1,0):0,oe=z?+z(1,0):0,de=z?+z(0,-1):0,le=z?+z(0,1):0;ie+oe+de+le!==0?ie||de?oe||le?this._basicSquare({x:L,y:N,size:F,context:B,rotation:0}):this._basicCornerRounded({x:L,y:N,size:F,context:B,rotation:Math.PI/2}):this._basicCornerRounded({x:L,y:N,size:F,context:B,rotation:-Math.PI/2}):this._basicCornersRounded({x:L,y:N,size:F,context:B,rotation:Math.PI/2})},J.prototype._drawClassyRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.getNeighbor,ie=z?+z(-1,0):0,oe=z?+z(1,0):0,de=z?+z(0,-1):0,le=z?+z(0,1):0;ie+oe+de+le!==0?ie||de?oe||le?this._basicSquare({x:L,y:N,size:F,context:B,rotation:0}):this._basicCornerExtraRounded({x:L,y:N,size:F,context:B,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:L,y:N,size:F,context:B,rotation:-Math.PI/2}):this._basicCornersRounded({x:L,y:N,size:F,context:B,rotation:Math.PI/2})},J}();let M=P,A="square",$="extra-rounded";var W=function(){return W=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},W.apply(this,arguments)},ee=function(){function J(S){var L=S.context,N=S.type;this._context=L,this._type=N}return J.prototype.draw=function(S,L,N,F){var B,z=this._context;switch(this._type){case A:B=this._drawSquare;break;case $:B=this._drawExtraRounded;break;default:B=this._drawDot}B.call(this,{x:S,y:L,size:N,context:z,rotation:F})},J.prototype._rotateFigure=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation,ie=z===void 0?0:z,oe=S.draw,de=L+F/2,le=N+F/2;B.translate(de,le),ie&&B.rotate(ie),oe(),B.closePath(),ie&&B.rotate(-ie),B.translate(-de,-le)},J.prototype._basicDot=function(S){var L=S.size,N=S.context,F=L/7;this._rotateFigure(W(W({},S),{draw:function(){N.arc(0,0,L/2,0,2*Math.PI),N.arc(0,0,L/2-F,0,2*Math.PI)}}))},J.prototype._basicSquare=function(S){var L=S.size,N=S.context,F=L/7;this._rotateFigure(W(W({},S),{draw:function(){N.rect(-L/2,-L/2,L,L),N.rect(-L/2+F,-L/2+F,L-2*F,L-2*F)}}))},J.prototype._basicExtraRounded=function(S){var L=S.size,N=S.context,F=L/7;this._rotateFigure(W(W({},S),{draw:function(){N.arc(-F,-F,2.5*F,Math.PI,-Math.PI/2),N.lineTo(F,-3.5*F),N.arc(F,-F,2.5*F,-Math.PI/2,0),N.lineTo(3.5*F,-F),N.arc(F,F,2.5*F,0,Math.PI/2),N.lineTo(-F,3.5*F),N.arc(-F,F,2.5*F,Math.PI/2,Math.PI),N.lineTo(-3.5*F,-F),N.arc(-F,-F,1.5*F,Math.PI,-Math.PI/2),N.lineTo(F,-2.5*F),N.arc(F,-F,1.5*F,-Math.PI/2,0),N.lineTo(2.5*F,-F),N.arc(F,F,1.5*F,0,Math.PI/2),N.lineTo(-F,2.5*F),N.arc(-F,F,1.5*F,Math.PI/2,Math.PI),N.lineTo(-2.5*F,-F)}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation;this._basicDot({x:L,y:N,size:F,context:B,rotation:z})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation;this._basicSquare({x:L,y:N,size:F,context:B,rotation:z})},J.prototype._drawExtraRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation;this._basicExtraRounded({x:L,y:N,size:F,context:B,rotation:z})},J}();let q=ee,K="square";var ue=function(){return ue=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},ue.apply(this,arguments)},pe=function(){function J(S){var L=S.context,N=S.type;this._context=L,this._type=N}return J.prototype.draw=function(S,L,N,F){var B=this._context;(this._type===K?this._drawSquare:this._drawDot).call(this,{x:S,y:L,size:N,context:B,rotation:F})},J.prototype._rotateFigure=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation,ie=z===void 0?0:z,oe=S.draw,de=L+F/2,le=N+F/2;B.translate(de,le),ie&&B.rotate(ie),oe(),B.closePath(),ie&&B.rotate(-ie),B.translate(-de,-le)},J.prototype._basicDot=function(S){var L=S.size,N=S.context;this._rotateFigure(ue(ue({},S),{draw:function(){N.arc(0,0,L/2,0,2*Math.PI)}}))},J.prototype._basicSquare=function(S){var L=S.size,N=S.context;this._rotateFigure(ue(ue({},S),{draw:function(){N.rect(-L/2,-L/2,L,L)}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation;this._basicDot({x:L,y:N,size:F,context:B,rotation:z})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size,B=S.context,z=S.rotation;this._basicSquare({x:L,y:N,size:F,context:B,rotation:z})},J}();let fe=pe,X="radial";var I=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],m=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let g=function(){function J(S){this._canvas=document.createElement("canvas"),this._canvas.width=S.width,this._canvas.height=S.height,this._options=S}return Object.defineProperty(J.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),J.prototype.getCanvas=function(){return this._canvas},J.prototype.clear=function(){var S=this.context;S&&S.clearRect(0,0,this._canvas.width,this._canvas.height)},J.prototype.drawQR=function(S){return L=this,N=void 0,B=function(){var z,ie,oe,de,le,ve,ye,Ee,ke,ze=this;return function(Ae,Be){var Te,Se,be,Ue,Ce={label:0,sent:function(){if(1&be[0])throw be[1];return be[1]},trys:[],ops:[]};return Ue={next:wt(0),throw:wt(1),return:wt(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function wt(qe){return function(Je){return function(De){if(Te)throw new TypeError("Generator is already executing.");for(;Ce;)try{if(Te=1,Se&&(be=2&De[0]?Se.return:De[0]?Se.throw||((be=Se.return)&&be.call(Se),0):Se.next)&&!(be=be.call(Se,De[1])).done)return be;switch(Se=0,be&&(De=[2&De[0],be.value]),De[0]){case 0:case 1:be=De;break;case 4:return Ce.label++,{value:De[1],done:!1};case 5:Ce.label++,Se=De[1],De=[0];continue;case 7:De=Ce.ops.pop(),Ce.trys.pop();continue;default:if(!((be=(be=Ce.trys).length>0&&be[be.length-1])||De[0]!==6&&De[0]!==2)){Ce=0;continue}if(De[0]===3&&(!be||De[1]>be[0]&&De[1]<be[3])){Ce.label=De[1];break}if(De[0]===6&&Ce.label<be[1]){Ce.label=be[1],be=De;break}if(be&&Ce.label<be[2]){Ce.label=be[2],Ce.ops.push(De);break}be[2]&&Ce.ops.pop(),Ce.trys.pop();continue}De=Be.call(Ae,Ce)}catch(Ye){De=[6,Ye],Se=0}finally{Te=be=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([qe,Je])}}}(this,function(Ae){switch(Ae.label){case 0:return z=S.getModuleCount(),ie=Math.min(this._options.width,this._options.height)-2*this._options.margin,oe=Math.floor(ie/z),de={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=S,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ae.sent(),!this._image)return[2];le=this._options,ve=le.imageOptions,ye=le.qrOptions,Ee=ve.imageSize*p[ye.errorCorrectionLevel],ke=Math.floor(Ee*z*z),de=l({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:z-14,dotSize:oe}),Ae.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Be,Te){var Se,be,Ue,Ce,wt,qe;return!(ze._options.imageOptions.hideBackgroundDots&&Be>=(z-de.hideXDots)/2&&Be<(z+de.hideXDots)/2&&Te>=(z-de.hideYDots)/2&&Te<(z+de.hideYDots)/2||((Se=I[Be])===null||Se===void 0?void 0:Se[Te])||((be=I[Be-z+7])===null||be===void 0?void 0:be[Te])||((Ue=I[Be])===null||Ue===void 0?void 0:Ue[Te-z+7])||((Ce=m[Be])===null||Ce===void 0?void 0:Ce[Te])||((wt=m[Be-z+7])===null||wt===void 0?void 0:wt[Te])||((qe=m[Be])===null||qe===void 0?void 0:qe[Te-z+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:de.width,height:de.height,count:z,dotSize:oe}),[2]}})},new((F=void 0)||(F=Promise))(function(z,ie){function oe(ve){try{le(B.next(ve))}catch(ye){ie(ye)}}function de(ve){try{le(B.throw(ve))}catch(ye){ie(ye)}}function le(ve){var ye;ve.done?z(ve.value):(ye=ve.value,ye instanceof F?ye:new F(function(Ee){Ee(ye)})).then(oe,de)}le((B=B.apply(L,N||[])).next())});var L,N,F,B},J.prototype.drawBackground=function(){var S=this.context,L=this._options;if(S){if(L.backgroundOptions.gradient){var N=L.backgroundOptions.gradient,F=this._createGradient({context:S,options:N,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});N.colorStops.forEach(function(B){var z=B.offset,ie=B.color;F.addColorStop(z,ie)}),S.fillStyle=F}else L.backgroundOptions.color&&(S.fillStyle=L.backgroundOptions.color);S.fillRect(0,0,this._canvas.width,this._canvas.height)}},J.prototype.drawDots=function(S){var L=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var F=this._options,B=this._qr.getModuleCount();if(B>F.width||B>F.height)throw"The canvas is too small.";var z=Math.min(F.width,F.height)-2*F.margin,ie=Math.floor(z/B),oe=Math.floor((F.width-B*ie)/2),de=Math.floor((F.height-B*ie)/2),le=new M({context:N,type:F.dotsOptions.type});N.beginPath();for(var ve=function(Ae){for(var Be=function(Se){return S&&!S(Ae,Se)?"continue":ye._qr.isDark(Ae,Se)?void le.draw(oe+Ae*ie,de+Se*ie,ie,function(be,Ue){return!(Ae+be<0||Se+Ue<0||Ae+be>=B||Se+Ue>=B)&&!(S&&!S(Ae+be,Se+Ue))&&!!L._qr&&L._qr.isDark(Ae+be,Se+Ue)}):"continue"},Te=0;Te<B;Te++)Be(Te)},ye=this,Ee=0;Ee<B;Ee++)ve(Ee);if(F.dotsOptions.gradient){var ke=F.dotsOptions.gradient,ze=this._createGradient({context:N,options:ke,additionalRotation:0,x:oe,y:de,size:B*ie});ke.colorStops.forEach(function(Ae){var Be=Ae.offset,Te=Ae.color;ze.addColorStop(Be,Te)}),N.fillStyle=N.strokeStyle=ze}else F.dotsOptions.color&&(N.fillStyle=N.strokeStyle=F.dotsOptions.color);N.fill("evenodd")},J.prototype.drawCorners=function(S){var L=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var F=this._options,B=this._qr.getModuleCount(),z=Math.min(F.width,F.height)-2*F.margin,ie=Math.floor(z/B),oe=7*ie,de=3*ie,le=Math.floor((F.width-B*ie)/2),ve=Math.floor((F.height-B*ie)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(ye){var Ee,ke,ze,Ae,Be,Te,Se,be,Ue,Ce,wt=ye[0],qe=ye[1],Je=ye[2];if(!S||S(wt,qe)){var De=le+wt*ie*(B-7),Ye=ve+qe*ie*(B-7);if(!((Ee=F.cornersSquareOptions)===null||Ee===void 0)&&Ee.type){var dt=new q({context:N,type:(ke=F.cornersSquareOptions)===null||ke===void 0?void 0:ke.type});N.beginPath(),dt.draw(De,Ye,oe,Je)}else{var ir=new M({context:N,type:F.dotsOptions.type});N.beginPath();for(var xt=function(Ke){for(var zt=function(st){if(!(!((ze=I[Ke])===null||ze===void 0)&&ze[st]))return"continue";ir.draw(De+Ke*ie,Ye+st*ie,ie,function(qr,at){var pt;return!!(!((pt=I[Ke+qr])===null||pt===void 0)&&pt[st+at])})},We=0;We<I[Ke].length;We++)zt(We)},Qe=0;Qe<I.length;Qe++)xt(Qe)}if(!((Ae=F.cornersSquareOptions)===null||Ae===void 0)&&Ae.gradient){var Hr=F.cornersSquareOptions.gradient,ut=L._createGradient({context:N,options:Hr,additionalRotation:Je,x:De,y:Ye,size:oe});Hr.colorStops.forEach(function(Ke){var zt=Ke.offset,We=Ke.color;ut.addColorStop(zt,We)}),N.fillStyle=N.strokeStyle=ut}else!((Be=F.cornersSquareOptions)===null||Be===void 0)&&Be.color&&(N.fillStyle=N.strokeStyle=F.cornersSquareOptions.color);if(N.fill("evenodd"),(Te=F.cornersDotOptions)===null||Te===void 0?void 0:Te.type){var bt=new fe({context:N,type:(Se=F.cornersDotOptions)===null||Se===void 0?void 0:Se.type});N.beginPath(),bt.draw(De+2*ie,Ye+2*ie,de,Je)}else{ir=new M({context:N,type:F.dotsOptions.type}),N.beginPath();var li=function(Ke){for(var zt=function(st){if(!(!((be=m[Ke])===null||be===void 0)&&be[st]))return"continue";ir.draw(De+Ke*ie,Ye+st*ie,ie,function(qr,at){var pt;return!!(!((pt=m[Ke+qr])===null||pt===void 0)&&pt[st+at])})},We=0;We<m[Ke].length;We++)zt(We)};for(Qe=0;Qe<m.length;Qe++)li(Qe)}if(!((Ue=F.cornersDotOptions)===null||Ue===void 0)&&Ue.gradient){Hr=F.cornersDotOptions.gradient;var rt=L._createGradient({context:N,options:Hr,additionalRotation:Je,x:De+2*ie,y:Ye+2*ie,size:de});Hr.colorStops.forEach(function(Ke){var zt=Ke.offset,We=Ke.color;rt.addColorStop(zt,We)}),N.fillStyle=N.strokeStyle=rt}else!((Ce=F.cornersDotOptions)===null||Ce===void 0)&&Ce.color&&(N.fillStyle=N.strokeStyle=F.cornersDotOptions.color);N.fill("evenodd")}})},J.prototype.loadImage=function(){var S=this;return new Promise(function(L,N){var F=S._options,B=new Image;if(!F.image)return N("Image is not defined");typeof F.imageOptions.crossOrigin=="string"&&(B.crossOrigin=F.imageOptions.crossOrigin),S._image=B,B.onload=function(){L()},B.src=F.image})},J.prototype.drawImage=function(S){var L=S.width,N=S.height,F=S.count,B=S.dotSize,z=this.context;if(!z)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var ie=this._options,oe=Math.floor((ie.width-F*B)/2),de=Math.floor((ie.height-F*B)/2),le=oe+ie.imageOptions.margin+(F*B-L)/2,ve=de+ie.imageOptions.margin+(F*B-N)/2,ye=L-2*ie.imageOptions.margin,Ee=N-2*ie.imageOptions.margin;z.drawImage(this._image,le,ve,ye<0?0:ye,Ee<0?0:Ee)},J.prototype._createGradient=function(S){var L,N=S.context,F=S.options,B=S.additionalRotation,z=S.x,ie=S.y,oe=S.size;if(F.type===X)L=N.createRadialGradient(z+oe/2,ie+oe/2,0,z+oe/2,ie+oe/2,oe/2);else{var de=((F.rotation||0)+B)%(2*Math.PI),le=(de+2*Math.PI)%(2*Math.PI),ve=z+oe/2,ye=ie+oe/2,Ee=z+oe/2,ke=ie+oe/2;le>=0&&le<=.25*Math.PI||le>1.75*Math.PI&&le<=2*Math.PI?(ve-=oe/2,ye-=oe/2*Math.tan(de),Ee+=oe/2,ke+=oe/2*Math.tan(de)):le>.25*Math.PI&&le<=.75*Math.PI?(ye-=oe/2,ve-=oe/2/Math.tan(de),ke+=oe/2,Ee+=oe/2/Math.tan(de)):le>.75*Math.PI&&le<=1.25*Math.PI?(ve+=oe/2,ye+=oe/2*Math.tan(de),Ee-=oe/2,ke-=oe/2*Math.tan(de)):le>1.25*Math.PI&&le<=1.75*Math.PI&&(ye+=oe/2,ve+=oe/2/Math.tan(de),ke-=oe/2,Ee-=oe/2/Math.tan(de)),L=N.createLinearGradient(Math.round(ve),Math.round(ye),Math.round(Ee),Math.round(ke))}return L},J}();var E=function(){return E=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},E.apply(this,arguments)},T=function(){function J(S){var L=S.svg,N=S.type;this._svg=L,this._type=N}return J.prototype.draw=function(S,L,N,F){var B;switch(this._type){case h:B=this._drawDot;break;case v:B=this._drawClassy;break;case w:B=this._drawClassyRounded;break;case y:B=this._drawRounded;break;case C:B=this._drawExtraRounded;break;default:B=this._drawSquare}B.call(this,{x:S,y:L,size:N,getNeighbor:F})},J.prototype._rotateFigure=function(S){var L,N=S.x,F=S.y,B=S.size,z=S.rotation,ie=z===void 0?0:z,oe=N+B/2,de=F+B/2;(0,S.draw)(),(L=this._element)===null||L===void 0||L.setAttribute("transform","rotate(".concat(180*ie/Math.PI,",").concat(oe,",").concat(de,")"))},J.prototype._basicDot=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),L._element.setAttribute("cx",String(F+N/2)),L._element.setAttribute("cy",String(B+N/2)),L._element.setAttribute("r",String(N/2))}}))},J.prototype._basicSquare=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),L._element.setAttribute("x",String(F)),L._element.setAttribute("y",String(B)),L._element.setAttribute("width",String(N)),L._element.setAttribute("height",String(N))}}))},J.prototype._basicSideRounded=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("d","M ".concat(F," ").concat(B)+"v ".concat(N)+"h ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, 0 ").concat(-N))}}))},J.prototype._basicCornerRounded=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("d","M ".concat(F," ").concat(B)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},J.prototype._basicCornerExtraRounded=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("d","M ".concat(F," ").concat(B)+"v ".concat(N)+"h ".concat(N)+"a ".concat(N," ").concat(N,", 0, 0, 0, ").concat(-N," ").concat(-N))}}))},J.prototype._basicCornersRounded=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(E(E({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("d","M ".concat(F," ").concat(B)+"v ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(N/2," ").concat(N/2)+"h ".concat(N/2)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size;this._basicDot({x:L,y:N,size:F,rotation:0})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size;this._basicSquare({x:L,y:N,size:F,rotation:0})},J.prototype._drawRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.getNeighbor,z=B?+B(-1,0):0,ie=B?+B(1,0):0,oe=B?+B(0,-1):0,de=B?+B(0,1):0,le=z+ie+oe+de;if(le!==0)if(le>2||z&&ie||oe&&de)this._basicSquare({x:L,y:N,size:F,rotation:0});else{if(le===2){var ve=0;return z&&oe?ve=Math.PI/2:oe&&ie?ve=Math.PI:ie&&de&&(ve=-Math.PI/2),void this._basicCornerRounded({x:L,y:N,size:F,rotation:ve})}if(le===1)return ve=0,oe?ve=Math.PI/2:ie?ve=Math.PI:de&&(ve=-Math.PI/2),void this._basicSideRounded({x:L,y:N,size:F,rotation:ve})}else this._basicDot({x:L,y:N,size:F,rotation:0})},J.prototype._drawExtraRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.getNeighbor,z=B?+B(-1,0):0,ie=B?+B(1,0):0,oe=B?+B(0,-1):0,de=B?+B(0,1):0,le=z+ie+oe+de;if(le!==0)if(le>2||z&&ie||oe&&de)this._basicSquare({x:L,y:N,size:F,rotation:0});else{if(le===2){var ve=0;return z&&oe?ve=Math.PI/2:oe&&ie?ve=Math.PI:ie&&de&&(ve=-Math.PI/2),void this._basicCornerExtraRounded({x:L,y:N,size:F,rotation:ve})}if(le===1)return ve=0,oe?ve=Math.PI/2:ie?ve=Math.PI:de&&(ve=-Math.PI/2),void this._basicSideRounded({x:L,y:N,size:F,rotation:ve})}else this._basicDot({x:L,y:N,size:F,rotation:0})},J.prototype._drawClassy=function(S){var L=S.x,N=S.y,F=S.size,B=S.getNeighbor,z=B?+B(-1,0):0,ie=B?+B(1,0):0,oe=B?+B(0,-1):0,de=B?+B(0,1):0;z+ie+oe+de!==0?z||oe?ie||de?this._basicSquare({x:L,y:N,size:F,rotation:0}):this._basicCornerRounded({x:L,y:N,size:F,rotation:Math.PI/2}):this._basicCornerRounded({x:L,y:N,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:L,y:N,size:F,rotation:Math.PI/2})},J.prototype._drawClassyRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.getNeighbor,z=B?+B(-1,0):0,ie=B?+B(1,0):0,oe=B?+B(0,-1):0,de=B?+B(0,1):0;z+ie+oe+de!==0?z||oe?ie||de?this._basicSquare({x:L,y:N,size:F,rotation:0}):this._basicCornerExtraRounded({x:L,y:N,size:F,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:L,y:N,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:L,y:N,size:F,rotation:Math.PI/2})},J}();let k=T;var V=function(){return V=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},V.apply(this,arguments)},H=function(){function J(S){var L=S.svg,N=S.type;this._svg=L,this._type=N}return J.prototype.draw=function(S,L,N,F){var B;switch(this._type){case A:B=this._drawSquare;break;case $:B=this._drawExtraRounded;break;default:B=this._drawDot}B.call(this,{x:S,y:L,size:N,rotation:F})},J.prototype._rotateFigure=function(S){var L,N=S.x,F=S.y,B=S.size,z=S.rotation,ie=z===void 0?0:z,oe=N+B/2,de=F+B/2;(0,S.draw)(),(L=this._element)===null||L===void 0||L.setAttribute("transform","rotate(".concat(180*ie/Math.PI,",").concat(oe,",").concat(de,")"))},J.prototype._basicDot=function(S){var L=this,N=S.size,F=S.x,B=S.y,z=N/7;this._rotateFigure(V(V({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("clip-rule","evenodd"),L._element.setAttribute("d","M ".concat(F+N/2," ").concat(B)+"a ".concat(N/2," ").concat(N/2," 0 1 0 0.1 0")+"z"+"m 0 ".concat(z)+"a ".concat(N/2-z," ").concat(N/2-z," 0 1 1 -0.1 0")+"Z")}}))},J.prototype._basicSquare=function(S){var L=this,N=S.size,F=S.x,B=S.y,z=N/7;this._rotateFigure(V(V({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("clip-rule","evenodd"),L._element.setAttribute("d","M ".concat(F," ").concat(B)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N)+"z"+"M ".concat(F+z," ").concat(B+z)+"h ".concat(N-2*z)+"v ".concat(N-2*z)+"h ".concat(2*z-N)+"z")}}))},J.prototype._basicExtraRounded=function(S){var L=this,N=S.size,F=S.x,B=S.y,z=N/7;this._rotateFigure(V(V({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","path"),L._element.setAttribute("clip-rule","evenodd"),L._element.setAttribute("d","M ".concat(F," ").concat(B+2.5*z)+"v ".concat(2*z)+"a ".concat(2.5*z," ").concat(2.5*z,", 0, 0, 0, ").concat(2.5*z," ").concat(2.5*z)+"h ".concat(2*z)+"a ".concat(2.5*z," ").concat(2.5*z,", 0, 0, 0, ").concat(2.5*z," ").concat(2.5*-z)+"v ".concat(-2*z)+"a ".concat(2.5*z," ").concat(2.5*z,", 0, 0, 0, ").concat(2.5*-z," ").concat(2.5*-z)+"h ".concat(-2*z)+"a ".concat(2.5*z," ").concat(2.5*z,", 0, 0, 0, ").concat(2.5*-z," ").concat(2.5*z)+"M ".concat(F+2.5*z," ").concat(B+z)+"h ".concat(2*z)+"a ".concat(1.5*z," ").concat(1.5*z,", 0, 0, 1, ").concat(1.5*z," ").concat(1.5*z)+"v ".concat(2*z)+"a ".concat(1.5*z," ").concat(1.5*z,", 0, 0, 1, ").concat(1.5*-z," ").concat(1.5*z)+"h ".concat(-2*z)+"a ".concat(1.5*z," ").concat(1.5*z,", 0, 0, 1, ").concat(1.5*-z," ").concat(1.5*-z)+"v ".concat(-2*z)+"a ".concat(1.5*z," ").concat(1.5*z,", 0, 0, 1, ").concat(1.5*z," ").concat(1.5*-z))}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size,B=S.rotation;this._basicDot({x:L,y:N,size:F,rotation:B})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size,B=S.rotation;this._basicSquare({x:L,y:N,size:F,rotation:B})},J.prototype._drawExtraRounded=function(S){var L=S.x,N=S.y,F=S.size,B=S.rotation;this._basicExtraRounded({x:L,y:N,size:F,rotation:B})},J}();let U=H;var b=function(){return b=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},b.apply(this,arguments)},j=function(){function J(S){var L=S.svg,N=S.type;this._svg=L,this._type=N}return J.prototype.draw=function(S,L,N,F){(this._type===K?this._drawSquare:this._drawDot).call(this,{x:S,y:L,size:N,rotation:F})},J.prototype._rotateFigure=function(S){var L,N=S.x,F=S.y,B=S.size,z=S.rotation,ie=z===void 0?0:z,oe=N+B/2,de=F+B/2;(0,S.draw)(),(L=this._element)===null||L===void 0||L.setAttribute("transform","rotate(".concat(180*ie/Math.PI,",").concat(oe,",").concat(de,")"))},J.prototype._basicDot=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(b(b({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),L._element.setAttribute("cx",String(F+N/2)),L._element.setAttribute("cy",String(B+N/2)),L._element.setAttribute("r",String(N/2))}}))},J.prototype._basicSquare=function(S){var L=this,N=S.size,F=S.x,B=S.y;this._rotateFigure(b(b({},S),{draw:function(){L._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),L._element.setAttribute("x",String(F)),L._element.setAttribute("y",String(B)),L._element.setAttribute("width",String(N)),L._element.setAttribute("height",String(N))}}))},J.prototype._drawDot=function(S){var L=S.x,N=S.y,F=S.size,B=S.rotation;this._basicDot({x:L,y:N,size:F,rotation:B})},J.prototype._drawSquare=function(S){var L=S.x,N=S.y,F=S.size,B=S.rotation;this._basicSquare({x:L,y:N,size:F,rotation:B})},J}();let he=j;var D=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],Z=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let re=function(){function J(S){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(S.width)),this._element.setAttribute("height",String(S.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=S}return Object.defineProperty(J.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),J.prototype.getElement=function(){return this._element},J.prototype.clear=function(){var S,L=this._element;this._element=L.cloneNode(!1),(S=L==null?void 0:L.parentNode)===null||S===void 0||S.replaceChild(this._element,L),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},J.prototype.drawQR=function(S){return L=this,N=void 0,B=function(){var z,ie,oe,de,le,ve,ye,Ee,ke,ze=this;return function(Ae,Be){var Te,Se,be,Ue,Ce={label:0,sent:function(){if(1&be[0])throw be[1];return be[1]},trys:[],ops:[]};return Ue={next:wt(0),throw:wt(1),return:wt(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function wt(qe){return function(Je){return function(De){if(Te)throw new TypeError("Generator is already executing.");for(;Ce;)try{if(Te=1,Se&&(be=2&De[0]?Se.return:De[0]?Se.throw||((be=Se.return)&&be.call(Se),0):Se.next)&&!(be=be.call(Se,De[1])).done)return be;switch(Se=0,be&&(De=[2&De[0],be.value]),De[0]){case 0:case 1:be=De;break;case 4:return Ce.label++,{value:De[1],done:!1};case 5:Ce.label++,Se=De[1],De=[0];continue;case 7:De=Ce.ops.pop(),Ce.trys.pop();continue;default:if(!((be=(be=Ce.trys).length>0&&be[be.length-1])||De[0]!==6&&De[0]!==2)){Ce=0;continue}if(De[0]===3&&(!be||De[1]>be[0]&&De[1]<be[3])){Ce.label=De[1];break}if(De[0]===6&&Ce.label<be[1]){Ce.label=be[1],be=De;break}if(be&&Ce.label<be[2]){Ce.label=be[2],Ce.ops.push(De);break}be[2]&&Ce.ops.pop(),Ce.trys.pop();continue}De=Be.call(Ae,Ce)}catch(Ye){De=[6,Ye],Se=0}finally{Te=be=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([qe,Je])}}}(this,function(Ae){switch(Ae.label){case 0:return z=S.getModuleCount(),ie=Math.min(this._options.width,this._options.height)-2*this._options.margin,oe=ie/z,de={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=S,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ae.sent(),!this._image)return[2];le=this._options,ve=le.imageOptions,ye=le.qrOptions,Ee=ve.imageSize*p[ye.errorCorrectionLevel],ke=Math.floor(Ee*z*z),de=l({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:z-14,dotSize:oe}),Ae.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Be,Te){var Se,be,Ue,Ce,wt,qe;return!(ze._options.imageOptions.hideBackgroundDots&&Be>=(z-de.hideXDots)/2&&Be<(z+de.hideXDots)/2&&Te>=(z-de.hideYDots)/2&&Te<(z+de.hideYDots)/2||((Se=D[Be])===null||Se===void 0?void 0:Se[Te])||((be=D[Be-z+7])===null||be===void 0?void 0:be[Te])||((Ue=D[Be])===null||Ue===void 0?void 0:Ue[Te-z+7])||((Ce=Z[Be])===null||Ce===void 0?void 0:Ce[Te])||((wt=Z[Be-z+7])===null||wt===void 0?void 0:wt[Te])||((qe=Z[Be])===null||qe===void 0?void 0:qe[Te-z+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:de.width,height:de.height,count:z,dotSize:oe}),[2]}})},new((F=void 0)||(F=Promise))(function(z,ie){function oe(ve){try{le(B.next(ve))}catch(ye){ie(ye)}}function de(ve){try{le(B.throw(ve))}catch(ye){ie(ye)}}function le(ve){var ye;ve.done?z(ve.value):(ye=ve.value,ye instanceof F?ye:new F(function(Ee){Ee(ye)})).then(oe,de)}le((B=B.apply(L,N||[])).next())});var L,N,F,B},J.prototype.drawBackground=function(){var S,L,N=this._element,F=this._options;if(N){var B=(S=F.backgroundOptions)===null||S===void 0?void 0:S.gradient,z=(L=F.backgroundOptions)===null||L===void 0?void 0:L.color;(B||z)&&this._createColor({options:B,color:z,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:"background-color"})}},J.prototype.drawDots=function(S){var L,N,F=this;if(!this._qr)throw"QR code is not defined";var B=this._options,z=this._qr.getModuleCount();if(z>B.width||z>B.height)throw"The canvas is too small.";var ie=(Math.min(B.width,B.height)-2*B.margin)/z,oe=(B.width-z*ie)/2,de=(B.height-z*ie)/2,le=new k({svg:this._element,type:B.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._dotsClipPath.style.transformOrigin="center",this._dotsClipPath.style.transform="rotate(90deg) scale(1, -1)",this._defs.appendChild(this._dotsClipPath),this._createColor({options:(L=B.dotsOptions)===null||L===void 0?void 0:L.gradient,color:B.dotsOptions.color,additionalRotation:0,x:oe,y:de,height:z*ie,width:z*ie,name:"dot-color"});for(var ve=function(ke){for(var ze=function(Be){return S&&!S(ke,Be)?"continue":!((N=ye._qr)===null||N===void 0)&&N.isDark(ke,Be)?(le.draw(oe+ke*ie,de+Be*ie,ie,function(Te,Se){return!(ke+Te<0||Be+Se<0||ke+Te>=z||Be+Se>=z)&&!(S&&!S(ke+Te,Be+Se))&&!!F._qr&&F._qr.isDark(ke+Te,Be+Se)}),void(le._element&&ye._dotsClipPath&&ye._dotsClipPath.appendChild(le._element))):"continue"},Ae=0;Ae<z;Ae++)ze(Ae)},ye=this,Ee=0;Ee<z;Ee++)ve(Ee)},J.prototype.drawCorners=function(){var S=this;if(!this._qr)throw"QR code is not defined";var L=this._element,N=this._options;if(!L)throw"Element code is not defined";var F=this._qr.getModuleCount(),B=(Math.min(N.width,N.height)-2*N.margin)/F,z=7*B,ie=3*B,oe=(N.width-F*B)/2,de=(N.height-F*B)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(le){var ve,ye,Ee,ke,ze,Ae,Be,Te,Se,be,Ue,Ce,wt=le[0],qe=le[1],Je=le[2],De=oe+wt*B*(F-7),Ye=de+qe*B*(F-7),dt=S._dotsClipPath,ir=S._dotsClipPath;if((((ve=N.cornersSquareOptions)===null||ve===void 0?void 0:ve.gradient)||((ye=N.cornersSquareOptions)===null||ye===void 0?void 0:ye.color))&&((dt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-".concat(wt,"-").concat(qe)),S._defs.appendChild(dt),S._cornersSquareClipPath=S._cornersDotClipPath=ir=dt,S._createColor({options:(Ee=N.cornersSquareOptions)===null||Ee===void 0?void 0:Ee.gradient,color:(ke=N.cornersSquareOptions)===null||ke===void 0?void 0:ke.color,additionalRotation:Je,x:De,y:Ye,height:z,width:z,name:"corners-square-color-".concat(wt,"-").concat(qe)})),(ze=N.cornersSquareOptions)===null||ze===void 0?void 0:ze.type){var xt=new U({svg:S._element,type:N.cornersSquareOptions.type});xt.draw(De,Ye,z,Je),xt._element&&dt&&dt.appendChild(xt._element)}else for(var Qe=new k({svg:S._element,type:N.dotsOptions.type}),Hr=function(rt){for(var Ke=function(We){if(!(!((Ae=D[rt])===null||Ae===void 0)&&Ae[We]))return"continue";Qe.draw(De+rt*B,Ye+We*B,B,function(st,qr){var at;return!!(!((at=D[rt+st])===null||at===void 0)&&at[We+qr])}),Qe._element&&dt&&dt.appendChild(Qe._element)},zt=0;zt<D[rt].length;zt++)Ke(zt)},ut=0;ut<D.length;ut++)Hr(ut);if((((Be=N.cornersDotOptions)===null||Be===void 0?void 0:Be.gradient)||((Te=N.cornersDotOptions)===null||Te===void 0?void 0:Te.color))&&((ir=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-".concat(wt,"-").concat(qe)),S._defs.appendChild(ir),S._cornersDotClipPath=ir,S._createColor({options:(Se=N.cornersDotOptions)===null||Se===void 0?void 0:Se.gradient,color:(be=N.cornersDotOptions)===null||be===void 0?void 0:be.color,additionalRotation:Je,x:De+2*B,y:Ye+2*B,height:ie,width:ie,name:"corners-dot-color-".concat(wt,"-").concat(qe)})),(Ue=N.cornersDotOptions)===null||Ue===void 0?void 0:Ue.type){var bt=new he({svg:S._element,type:N.cornersDotOptions.type});bt.draw(De+2*B,Ye+2*B,ie,Je),bt._element&&ir&&ir.appendChild(bt._element)}else{Qe=new k({svg:S._element,type:N.dotsOptions.type});var li=function(rt){for(var Ke=function(We){if(!(!((Ce=Z[rt])===null||Ce===void 0)&&Ce[We]))return"continue";Qe.draw(De+rt*B,Ye+We*B,B,function(st,qr){var at;return!!(!((at=Z[rt+st])===null||at===void 0)&&at[We+qr])}),Qe._element&&ir&&ir.appendChild(Qe._element)},zt=0;zt<Z[rt].length;zt++)Ke(zt)};for(ut=0;ut<Z.length;ut++)li(ut)}})},J.prototype.loadImage=function(){var S=this;return new Promise(function(L,N){var F=S._options,B=new Image;if(!F.image)return N("Image is not defined");typeof F.imageOptions.crossOrigin=="string"&&(B.crossOrigin=F.imageOptions.crossOrigin),S._image=B,B.onload=function(){L()},B.src=F.image})},J.prototype.drawImage=function(S){var L=S.width,N=S.height,F=S.count,B=S.dotSize,z=this._options,ie=(z.width-F*B)/2,oe=(z.height-F*B)/2,de=ie+z.imageOptions.margin+(F*B-L)/2,le=oe+z.imageOptions.margin+(F*B-N)/2,ve=L-2*z.imageOptions.margin,ye=N-2*z.imageOptions.margin,Ee=document.createElementNS("http://www.w3.org/2000/svg","image");Ee.setAttribute("href",z.image||""),Ee.setAttribute("x",String(de)),Ee.setAttribute("y",String(le)),Ee.setAttribute("width","".concat(ve,"px")),Ee.setAttribute("height","".concat(ye,"px")),this._element.appendChild(Ee)},J.prototype._createColor=function(S){var L=S.options,N=S.color,F=S.additionalRotation,B=S.x,z=S.y,ie=S.height,oe=S.width,de=S.name,le=oe>ie?oe:ie,ve=document.createElementNS("http://www.w3.org/2000/svg","rect");if(ve.setAttribute("x",String(B)),ve.setAttribute("y",String(z)),ve.setAttribute("height",String(ie)),ve.setAttribute("width",String(oe)),ve.setAttribute("clip-path","url('#clip-path-".concat(de,"')")),L){var ye;if(L.type===X)(ye=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",de),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("fx",String(B+oe/2)),ye.setAttribute("fy",String(z+ie/2)),ye.setAttribute("cx",String(B+oe/2)),ye.setAttribute("cy",String(z+ie/2)),ye.setAttribute("r",String(le/2));else{var Ee=((L.rotation||0)+F)%(2*Math.PI),ke=(Ee+2*Math.PI)%(2*Math.PI),ze=B+oe/2,Ae=z+ie/2,Be=B+oe/2,Te=z+ie/2;ke>=0&&ke<=.25*Math.PI||ke>1.75*Math.PI&&ke<=2*Math.PI?(ze-=oe/2,Ae-=ie/2*Math.tan(Ee),Be+=oe/2,Te+=ie/2*Math.tan(Ee)):ke>.25*Math.PI&&ke<=.75*Math.PI?(Ae-=ie/2,ze-=oe/2/Math.tan(Ee),Te+=ie/2,Be+=oe/2/Math.tan(Ee)):ke>.75*Math.PI&&ke<=1.25*Math.PI?(ze+=oe/2,Ae+=ie/2*Math.tan(Ee),Be-=oe/2,Te-=ie/2*Math.tan(Ee)):ke>1.25*Math.PI&&ke<=1.75*Math.PI&&(Ae+=ie/2,ze+=oe/2/Math.tan(Ee),Te-=ie/2,Be-=oe/2/Math.tan(Ee)),(ye=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",de),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("x1",String(Math.round(ze))),ye.setAttribute("y1",String(Math.round(Ae))),ye.setAttribute("x2",String(Math.round(Be))),ye.setAttribute("y2",String(Math.round(Te)))}L.colorStops.forEach(function(Se){var be=Se.offset,Ue=Se.color,Ce=document.createElementNS("http://www.w3.org/2000/svg","stop");Ce.setAttribute("offset","".concat(100*be,"%")),Ce.setAttribute("stop-color",Ue),ye.appendChild(Ce)}),ve.setAttribute("fill","url('#".concat(de,"')")),this._defs.appendChild(ye)}else N&&ve.setAttribute("fill",N);this._element.appendChild(ve)},J}(),ae="canvas";for(var ce={},Y=0;Y<=40;Y++)ce[Y]=Y;let Q={type:ae,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ce[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var G=function(){return G=Object.assign||function(J){for(var S,L=1,N=arguments.length;L<N;L++)for(var F in S=arguments[L])Object.prototype.hasOwnProperty.call(S,F)&&(J[F]=S[F]);return J},G.apply(this,arguments)};function se(J){var S=G({},J);if(!S.colorStops||!S.colorStops.length)throw"Field 'colorStops' is required in gradient";return S.rotation?S.rotation=Number(S.rotation):S.rotation=0,S.colorStops=S.colorStops.map(function(L){return G(G({},L),{offset:Number(L.offset)})}),S}function te(J){var S=G({},J);return S.width=Number(S.width),S.height=Number(S.height),S.margin=Number(S.margin),S.imageOptions=G(G({},S.imageOptions),{hideBackgroundDots:Boolean(S.imageOptions.hideBackgroundDots),imageSize:Number(S.imageOptions.imageSize),margin:Number(S.imageOptions.margin)}),S.margin>Math.min(S.width,S.height)&&(S.margin=Math.min(S.width,S.height)),S.dotsOptions=G({},S.dotsOptions),S.dotsOptions.gradient&&(S.dotsOptions.gradient=se(S.dotsOptions.gradient)),S.cornersSquareOptions&&(S.cornersSquareOptions=G({},S.cornersSquareOptions),S.cornersSquareOptions.gradient&&(S.cornersSquareOptions.gradient=se(S.cornersSquareOptions.gradient))),S.cornersDotOptions&&(S.cornersDotOptions=G({},S.cornersDotOptions),S.cornersDotOptions.gradient&&(S.cornersDotOptions.gradient=se(S.cornersDotOptions.gradient))),S.backgroundOptions&&(S.backgroundOptions=G({},S.backgroundOptions),S.backgroundOptions.gradient&&(S.backgroundOptions.gradient=se(S.backgroundOptions.gradient))),S}var ge=r(192),Ge=r.n(ge),Re=function(J,S,L,N){return new(L||(L=Promise))(function(F,B){function z(de){try{oe(N.next(de))}catch(le){B(le)}}function ie(de){try{oe(N.throw(de))}catch(le){B(le)}}function oe(de){var le;de.done?F(de.value):(le=de.value,le instanceof L?le:new L(function(ve){ve(le)})).then(z,ie)}oe((N=N.apply(J,S||[])).next())})},$e=function(J,S){var L,N,F,B,z={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return B={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(B[Symbol.iterator]=function(){return this}),B;function ie(oe){return function(de){return function(le){if(L)throw new TypeError("Generator is already executing.");for(;z;)try{if(L=1,N&&(F=2&le[0]?N.return:le[0]?N.throw||((F=N.return)&&F.call(N),0):N.next)&&!(F=F.call(N,le[1])).done)return F;switch(N=0,F&&(le=[2&le[0],F.value]),le[0]){case 0:case 1:F=le;break;case 4:return z.label++,{value:le[1],done:!1};case 5:z.label++,N=le[1],le=[0];continue;case 7:le=z.ops.pop(),z.trys.pop();continue;default:if(!((F=(F=z.trys).length>0&&F[F.length-1])||le[0]!==6&&le[0]!==2)){z=0;continue}if(le[0]===3&&(!F||le[1]>F[0]&&le[1]<F[3])){z.label=le[1];break}if(le[0]===6&&z.label<F[1]){z.label=F[1],F=le;break}if(F&&z.label<F[2]){z.label=F[2],z.ops.push(le);break}F[2]&&z.ops.pop(),z.trys.pop();continue}le=S.call(J,z)}catch(ve){le=[6,ve],N=0}finally{L=F=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([oe,de])}}};let ot=function(){function J(S){this._options=S?te(a(Q,S)):Q,this.update()}return J._clearContainer=function(S){S&&(S.innerHTML="")},J.prototype._getQRStylingElement=function(S){return S===void 0&&(S="png"),Re(this,void 0,void 0,function(){var L,N,F;return $e(this,function(B){switch(B.label){case 0:if(!this._qr)throw"QR code is empty";return S.toLowerCase()!=="svg"?[3,2]:(N=void 0,L=void 0,this._svg&&this._svgDrawingPromise?(L=this._svg,N=this._svgDrawingPromise):(L=new re(this._options),N=L.drawQR(this._qr)),[4,N]);case 1:return B.sent(),[2,L];case 2:return N=void 0,F=void 0,this._canvas&&this._canvasDrawingPromise?(F=this._canvas,N=this._canvasDrawingPromise):(F=new g(this._options),N=F.drawQR(this._qr)),[4,N];case 3:return B.sent(),[2,F]}})})},J.prototype.update=function(S){J._clearContainer(this._container),this._options=S?te(a(this._options,S)):this._options,this._options.data&&(this._qr=Ge()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(L){switch(!0){case/^[0-9]*$/.test(L):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(L):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ae?(this._canvas=new g(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new re(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},J.prototype.append=function(S){if(S){if(typeof S.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ae?this._canvas&&S.appendChild(this._canvas.getCanvas()):this._svg&&S.appendChild(this._svg.getElement()),this._container=S}},J.prototype.getRawData=function(S){return S===void 0&&(S="png"),Re(this,void 0,void 0,function(){var L,N,F;return $e(this,function(B){switch(B.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(S)];case 1:return L=B.sent(),S.toLowerCase()==="svg"?(N=new XMLSerializer,F=N.serializeToString(L.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
11
|
-
`+
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
`),
|
|
15
|
-
`?e.push(`
|
|
16
|
-
|
|
17
|
-
`&&e.push(`
|
|
18
|
-
`),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Li(t));for(var v in r)if(pn.call(r,v)&&(o=r[v],o!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(Xe(399,t));default:Nn(e,n,v,o)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ox(e,r,t,n);case"html":return i.insertionMode===0&&e.push("<!DOCTYPE html>"),Ox(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return Ox(e,r,t,n);e.push(Li(t)),s=o=null;for(l in r)if(pn.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":DD(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:TD(l)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",l,'="',Jr(a),'"')}return e.push(">"),j0(e,s,o),o}}function cD(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(Xe(395));return e.push(r),e.push('"></template>')}function hq(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(Xe(397))}}function pq(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Xe(397))}}var mq=/[<\u2028\u2029]/g;function Ix(e){return JSON.stringify(e).replace(mq,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function gq(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function fD(e,t,r,n){return r.generateStaticMarkup?(e.push(Jr(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(Jr(t)),e=!0),e)}var qf=Object.assign,yq=Symbol.for("react.element"),OD=Symbol.for("react.portal"),ID=Symbol.for("react.fragment"),RD=Symbol.for("react.strict_mode"),AD=Symbol.for("react.profiler"),MD=Symbol.for("react.provider"),ND=Symbol.for("react.context"),kD=Symbol.for("react.forward_ref"),FD=Symbol.for("react.suspense"),LD=Symbol.for("react.suspense_list"),$D=Symbol.for("react.memo"),Ux=Symbol.for("react.lazy"),vq=Symbol.for("react.scope"),wq=Symbol.for("react.debug_trace_mode"),xq=Symbol.for("react.legacy_hidden"),bq=Symbol.for("react.default_value"),dD=Symbol.iterator;function Mx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ID:return"Fragment";case OD:return"Portal";case AD:return"Profiler";case RD:return"StrictMode";case FD:return"Suspense";case LD:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ND:return(e.displayName||"Context")+".Consumer";case MD:return(e._context.displayName||"Context")+".Provider";case kD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $D:return t=e.displayName||null,t!==null?t:Mx(e.type)||"Memo";case Ux:t=e._payload,e=e._init;try{return Mx(e(t))}catch(r){}}return null}var UD={};function hD(e,t){if(e=e.contextTypes,!e)return UD;var r={},n;for(n in e)r[n]=t[n];return r}var ya=null;function X0(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(Xe(401))}else{if(r===null)throw Error(Xe(401));X0(e,r)}t.context._currentValue2=t.value}}function VD(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&VD(e)}function jD(e){var t=e.parent;t!==null&&jD(t),e.context._currentValue2=e.value}function BD(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(Xe(402));e.depth===t.depth?X0(e,t):BD(e,t)}function zD(e,t){var r=t.parent;if(r===null)throw Error(Xe(402));e.depth===r.depth?X0(e,r):zD(e,r),t.context._currentValue2=t.value}function q0(e){var t=ya;t!==e&&(t===null?jD(e):e===null?VD(t):t.depth===e.depth?X0(t,e):t.depth>e.depth?BD(t,e):zD(t,e),ya=e)}var pD={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function mD(e,t,r,n){var i=e.state!==void 0?e.state:null;e.updater=pD,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue2:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,i),i=s==null?i:qf({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&pD.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,o,r,n):a,a!=null&&(i?(i=!1,o=qf({},o,a)):qf(o,a))}e.state=o}else o.queue=null}var _q={id:1,overflow:""};function Nx(e,t,r){var n=e.id;e=e.overflow;var i=32-B0(n)-1;n&=~(1<<i),r+=1;var o=32-B0(t)+i;if(30<o){var s=i-i%5;return o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,{id:1<<32-B0(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var B0=Math.clz32?Math.clz32:Cq,Eq=Math.log,Sq=Math.LN2;function Cq(e){return e>>>=0,e===0?32:31-(Eq(e)/Sq|0)|0}function Pq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tq=typeof Object.is=="function"?Object.is:Pq,po=null,Vx=null,z0=null,Rt=null,zf=!1,K0=!1,Kf=0,gs=null,Z0=0;function ga(){if(po===null)throw Error(Xe(321));return po}function gD(){if(0<Z0)throw Error(Xe(312));return{memoizedState:null,queue:null,next:null}}function jx(){return Rt===null?z0===null?(zf=!1,z0=Rt=gD()):(zf=!0,Rt=z0):Rt.next===null?(zf=!1,Rt=Rt.next=gD()):(zf=!0,Rt=Rt.next),Rt}function Bx(){Vx=po=null,K0=!1,z0=null,Z0=0,Rt=gs=null}function HD(e,t){return typeof t=="function"?t(e):t}function yD(e,t,r){if(po=ga(),Rt=jx(),zf){var n=Rt.queue;if(t=n.dispatch,gs!==null&&(r=gs.get(n),r!==void 0)){gs.delete(n),n=Rt.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Rt.memoizedState=n,[n,t]}return[Rt.memoizedState,t]}return e=e===HD?typeof t=="function"?t():t:r!==void 0?r(t):t,Rt.memoizedState=e,e=Rt.queue={last:null,dispatch:null},e=e.dispatch=Dq.bind(null,po,e),[Rt.memoizedState,e]}function vD(e,t){if(po=ga(),Rt=jx(),t=t===void 0?null:t,Rt!==null){var r=Rt.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!Tq(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Rt.memoizedState=[e,t],e}function Dq(e,t,r){if(25<=Z0)throw Error(Xe(301));if(e===po)if(K0=!0,e={action:r,next:null},gs===null&&(gs=new Map),r=gs.get(t),r===void 0)gs.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function Oq(){throw Error(Xe(394))}function $0(){}var wD={readContext:function(e){return e._currentValue2},useContext:function(e){return ga(),e._currentValue2},useMemo:vD,useReducer:yD,useRef:function(e){po=ga(),Rt=jx();var t=Rt.memoizedState;return t===null?(e={current:e},Rt.memoizedState=e):t},useState:function(e){return yD(HD,e)},useInsertionEffect:$0,useLayoutEffect:function(){},useCallback:function(e,t){return vD(function(){return e},t)},useImperativeHandle:$0,useEffect:$0,useDebugValue:$0,useDeferredValue:function(e){return ga(),e},useTransition:function(){return ga(),[!1,Oq]},useId:function(){var e=Vx.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-B0(e)-1)).toString(32)+t;var r=H0;if(r===null)throw Error(Xe(404));return t=Kf++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return ga(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(Xe(407));return r()}},H0=null,Rx=PD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Iq(e){return console.error(e),null}function Hf(){}function Rq(e,t,r,n,i,o,s,a,u){var l=[],p=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:p,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?Iq:i,onAllReady:o===void 0?Hf:o,onShellReady:s===void 0?Hf:s,onShellError:a===void 0?Hf:a,onFatalError:u===void 0?Hf:u},r=W0(t,0,null,r,!1,!1),r.parentFlushed=!0,e=zx(t,e,null,r,p,UD,null,_q),l.push(e),t}function zx(e,t,r,n,i,o,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var u={node:t,ping:function(){var l=e.pingedTasks;l.push(u),l.length===1&&WD(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(u),u}function W0(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function Wf(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function G0(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function xD(e,t,r,n,i){for(po={},Vx=t,Kf=0,e=r(n,i);K0;)K0=!1,Kf=0,Z0+=1,Rt=null,e=r(n,i);return Bx(),e}function bD(e,t,r,n){var i=r.render(),o=n.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in o))throw Error(Xe(108,Mx(n)||"Unknown",a));n=qf({},s,r)}t.legacyContext=n,kn(e,t,i),t.legacyContext=s}else kn(e,t,i)}function _D(e,t){if(e&&e.defaultProps){t=qf({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function kx(e,t,r,n,i){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){i=hD(r,t.legacyContext);var o=r.contextType;o=new r(n,typeof o=="object"&&o!==null?o._currentValue2:i),mD(o,r,n,i),bD(e,t,o,r)}else{o=hD(r,t.legacyContext),i=xD(e,t,r,n,o);var s=Kf!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)mD(i,r,n,o),bD(e,t,i,r);else if(s){n=t.treeContext,t.treeContext=Nx(n,1,0);try{kn(e,t,i)}finally{t.treeContext=n}}else kn(e,t,i)}else if(typeof r=="string"){switch(i=t.blockedSegment,o=dq(i.chunks,r,n,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=lq(s,r,n),Fx(e,t,o),i.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",r,">")}i.lastPushedText=!1}else{switch(r){case xq:case wq:case RD:case AD:case ID:kn(e,t,n.children);return;case LD:kn(e,t,n.children);return;case vq:throw Error(Xe(343));case FD:e:{r=t.blockedBoundary,i=t.blockedSegment,o=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},u=W0(e,i.chunks.length,a,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var l=W0(e,0,null,i.formatContext,!1,!1);l.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=l;try{if(Fx(e,t,n),e.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),l.status=1,Y0(a,l),a.pendingTasks===0)break e}catch(p){l.status=4,a.forceClientRender=!0,a.errorDigest=Wf(e,p)}finally{t.blockedBoundary=r,t.blockedSegment=i}t=zx(e,o,r,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case kD:if(n=xD(e,t,r.render,n,i),Kf!==0){r=t.treeContext,t.treeContext=Nx(r,1,0);try{kn(e,t,n)}finally{t.treeContext=r}}else kn(e,t,n);return;case $D:r=r.type,n=_D(r,n),kx(e,t,r,n,i);return;case MD:if(i=n.children,r=r._context,n=n.value,o=r._currentValue2,r._currentValue2=n,s=ya,ya=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:o,value:n},t.context=n,kn(e,t,i),e=ya,e===null)throw Error(Xe(403));n=e.parentValue,e.context._currentValue2=n===bq?e.context._defaultValue:n,e=ya=e.parent,t.context=e;return;case ND:n=n.children,n=n(r._currentValue2),kn(e,t,n);return;case Ux:i=r._init,r=i(r._payload),n=_D(r,n),kx(e,t,r,n,void 0);return}throw Error(Xe(130,r==null?r:typeof r,""))}}function kn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case yq:kx(e,t,r.type,r.props,r.ref);return;case OD:throw Error(Xe(257));case Ux:var n=r._init;r=n(r._payload),kn(e,t,r);return}if(Ax(r)){ED(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=dD&&r[dD]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var i=[];do i.push(r.value),r=n.next();while(!r.done);ED(e,t,i)}return}throw e=Object.prototype.toString.call(r),Error(Xe(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=fD(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=fD(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function ED(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=Nx(o,n,i);try{Fx(e,t,r[i])}finally{t.treeContext=o}}}function Fx(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return kn(e,t,r)}catch(u){if(Bx(),typeof u=="object"&&u!==null&&typeof u.then=="function"){r=u;var s=t.blockedSegment,a=W0(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=zx(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,q0(o)}else throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,q0(o),u}}function Aq(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,KD(this,t,e)}function qD(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(Xe(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(i){return qD(i,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Y0(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Y0(e,r)}else e.completedSegments.push(t)}function KD(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(Xe(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Hf,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Y0(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Aq,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Y0(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function WD(e){if(e.status!==2){var t=ya,r=Rx.current;Rx.current=wD;var n=H0;H0=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],a=e,u=s.blockedSegment;if(u.status===0){q0(s.context);try{kn(a,s,s.node),a.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),s.abortSet.delete(s),u.status=1,KD(a,s.blockedBoundary,u)}catch(w){if(Bx(),typeof w=="object"&&w!==null&&typeof w.then=="function"){var l=s.ping;w.then(l,l)}else{s.abortSet.delete(s),u.status=4;var p=s.blockedBoundary,h=w,y=Wf(a,h);if(p===null?G0(a,h):(p.pendingTasks--,p.forceClientRender||(p.forceClientRender=!0,p.errorDigest=y,p.parentFlushed&&a.clientRenderedBoundaries.push(p))),a.allPendingTasks--,a.allPendingTasks===0){var v=a.onAllReady;v()}}}finally{}}}i.splice(0,o),e.destination!==null&&Hx(e,e.destination)}catch(w){Wf(e,w),G0(e,w)}finally{H0=n,Rx.current=r,r===wD&&q0(t)}}}function U0(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var i=!0;n=r.chunks;var o=0;r=r.children;for(var s=0;s<r.length;s++){for(i=r[s];o<i.index;o++)t.push(n[o]);i=Q0(e,t,i)}for(;o<n.length-1;o++)t.push(n[o]);return o<n.length&&(i=t.push(n[o])),i;default:throw Error(Xe(390))}}function Q0(e,t,r){var n=r.boundary;if(n===null)return U0(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("<!--$!-->"),t.push("<template"),n&&(t.push(' data-dgst="'),n=Jr(n),t.push(n),t.push('"')),t.push("></template>")),U0(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var i=e.responseState,o=i.nextSuspenseID++;return i=i.boundaryPrefix+o.toString(16),n=n.id=i,cD(t,e.responseState,n),U0(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),cD(t,e.responseState,n.id),U0(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(Xe(391));return Q0(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function SD(e,t,r){return hq(t,e.responseState,r.formatContext,r.id),Q0(e,t,r),pq(t,r.formatContext)}function CD(e,t,r){for(var n=r.completedSegments,i=0;i<n.length;i++)GD(e,t,r,n[i]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),n===null)throw Error(Xe(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function GD(e,t,r,n){if(n.status===2)return!0;var i=n.id;if(i===-1){if((n.id=r.rootSegmentID)===-1)throw Error(Xe(392));return SD(e,t,n)}return SD(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function Hx(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){Q0(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];n=t;var a=e.responseState,u=s.id,l=s.errorDigest,p=s.errorMessage,h=s.errorComponentStack;if(n.push(a.startInlineScript),a.sentClientRenderFunction?n.push('$RX("'):(a.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),u===null)throw Error(Xe(395));if(n.push(u),n.push('"'),l||p||h){n.push(",");var y=Ix(l||"");n.push(y)}if(p||h){n.push(",");var v=Ix(p||"");n.push(v)}if(h){n.push(",");var w=Ix(h);n.push(w)}if(!n.push(")<\/script>")){e.destination=null,o++,i.splice(0,o);return}}i.splice(0,o);var C=e.completedBoundaries;for(o=0;o<C.length;o++)if(!CD(e,t,C[o])){e.destination=null,o++,C.splice(0,o);return}C.splice(0,o);var R=e.partialBoundaries;for(o=0;o<R.length;o++){var P=R[o];e:{i=e,s=t;var M=P.completedSegments;for(a=0;a<M.length;a++)if(!GD(i,s,P,M[a])){a++,M.splice(0,a);var A=!1;break e}M.splice(0,a),A=!0}if(!A){e.destination=null,o++,R.splice(0,o);return}}R.splice(0,o);var $=e.completedBoundaries;for(o=0;o<$.length;o++)if(!CD(e,t,$[o])){e.destination=null,o++,$.splice(0,o);return}$.splice(0,o)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function Mq(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return qD(n,e,t)}),r.clear(),e.destination!==null&&Hx(e,e.destination)}catch(n){Wf(e,n),G0(e,n)}}function Nq(){}function YD(e,t,r,n){var i=!1,o=null,s="",a={push:function(l){return l!==null&&(s+=l),!0},destroy:function(l){i=!0,o=l}},u=!1;if(e=Rq(e,gq(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Nq,void 0,function(){u=!0},void 0,void 0),WD(e),Mq(e,n),e.status===1)e.status=2,a.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=a;try{Hx(e,a)}catch(l){Wf(e,l),G0(e,l)}}if(i)throw o;if(!u)throw Error(Xe(426));return s}vl.renderToNodeStream=function(){throw Error(Xe(207))};vl.renderToStaticMarkup=function(e,t){return YD(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};vl.renderToStaticNodeStream=function(){throw Error(Xe(208))};vl.renderToString=function(e,t){return YD(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};vl.version="18.2.0"});var GO=we(f2=>{"use strict";c();d();f();var EO=Pe();function tt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ln=null,$n=0;function Fe(e,t){if(t.length!==0)if(512<t.length)0<$n&&(e.enqueue(new Uint8Array(Ln.buffer,0,$n)),Ln=new Uint8Array(512),$n=0),e.enqueue(t);else{var r=Ln.length-$n;r<t.length&&(r===0?e.enqueue(Ln):(Ln.set(t.subarray(0,r),$n),e.enqueue(Ln),t=t.subarray(r)),Ln=new Uint8Array(512),$n=0),Ln.set(t,$n),$n+=t.length}}function Lt(e,t){return Fe(e,t),!0}function ZD(e){Ln&&0<$n&&(e.enqueue(new Uint8Array(Ln.buffer,0,$n)),Ln=null,$n=0)}var SO=new TextEncoder;function nt(e){return SO.encode(e)}function Oe(e){return SO.encode(e)}function CO(e,t){typeof e.error=="function"?e.error(t):e.close()}var mn=Object.prototype.hasOwnProperty,kq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,QD={},JD={};function PO(e){return mn.call(JD,e)?!0:mn.call(QD,e)?!1:kq.test(e)?JD[e]=!0:(QD[e]=!0,!1)}function tn(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Dr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Dr[e]=new tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Dr[t]=new tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dr[e]=new tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dr[e]=new tn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Dr[e]=new tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Dr[e]=new tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Dr[e]=new tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Dr[e]=new tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Dr[e]=new tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var r2=/[\-:]([a-z])/g;function n2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(r2,n2);Dr[t]=new tn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r2,n2);Dr[t]=new tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r2,n2);Dr[t]=new tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Dr[e]=new tn(e,1,!1,e.toLowerCase(),null,!1,!1)});Dr.xlinkHref=new tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Dr[e]=new tn(e,1,!1,e.toLowerCase(),null,!0,!0)});var tm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fq=["Webkit","ms","Moz","O"];Object.keys(tm).forEach(function(e){Fq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tm[t]=tm[e]})});var Lq=/["'&<>]/;function Tr(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=Lq.exec(e);if(t){var r="",n,i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var $q=/([A-Z])/g,Uq=/^ms-/,Zx=Array.isArray,Vq=Oe("<script>"),jq=Oe("<\/script>"),Bq=Oe('<script src="'),zq=Oe('<script type="module" src="'),eO=Oe('" async=""><\/script>'),Hq=/(<\/|<)(s)(cript)/gi;function qq(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function Kq(e,t,r,n,i){e=e===void 0?"":e,t=t===void 0?Vq:Oe('<script nonce="'+Tr(t)+'">');var o=[];if(r!==void 0&&o.push(t,nt((""+r).replace(Hq,qq)),jq),n!==void 0)for(r=0;r<n.length;r++)o.push(Bq,nt(Tr(n[r])),eO);if(i!==void 0)for(n=0;n<i.length;n++)o.push(zq,nt(Tr(i[n])),eO);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:Oe(e+"P:"),segmentPrefix:Oe(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function $i(e,t){return{insertionMode:e,selectedValue:t}}function Wq(e){return $i(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Gq(e,t,r){switch(t){case"select":return $i(1,r.value!=null?r.value:r.defaultValue);case"svg":return $i(2,null);case"math":return $i(3,null);case"foreignObject":return $i(1,null);case"table":return $i(4,null);case"thead":case"tbody":case"tfoot":return $i(5,null);case"colgroup":return $i(7,null);case"tr":return $i(6,null)}return 4<=e.insertionMode||e.insertionMode===0?$i(1,null):e}var i2=Oe("<!-- -->");function tO(e,t,r,n){return t===""?n:(n&&e.push(i2),e.push(nt(Tr(t))),!0)}var rO=new Map,Yq=Oe(' style="'),nO=Oe(":"),Xq=Oe(";");function TO(e,t,r){if(typeof r!="object")throw Error(tt(62));t=!0;for(var n in r)if(mn.call(r,n)){var i=r[n];if(i!=null&&typeof i!="boolean"&&i!==""){if(n.indexOf("--")===0){var o=nt(Tr(n));i=nt(Tr((""+i).trim()))}else{o=n;var s=rO.get(o);s!==void 0||(s=Oe(Tr(o.replace($q,"-$1").toLowerCase().replace(Uq,"-ms-"))),rO.set(o,s)),o=s,i=typeof i=="number"?i===0||mn.call(tm,n)?nt(""+i):nt(i+"px"):nt(Tr((""+i).trim()))}t?(t=!1,e.push(Yq,o,nO,i)):e.push(Xq,o,nO,i)}}t||e.push(va)}var ys=Oe(" "),wl=Oe('="'),va=Oe('"'),iO=Oe('=""');function Fn(e,t,r,n){switch(r){case"style":TO(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Dr.hasOwnProperty(r)?Dr[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=nt(t.attributeName),t.type){case 3:n&&e.push(ys,r,iO);break;case 4:n===!0?e.push(ys,r,iO):n!==!1&&e.push(ys,r,wl,nt(Tr(n)),va);break;case 5:isNaN(n)||e.push(ys,r,wl,nt(Tr(n)),va);break;case 6:!isNaN(n)&&1<=n&&e.push(ys,r,wl,nt(Tr(n)),va);break;default:t.sanitizeURL&&(n=""+n),e.push(ys,r,wl,nt(Tr(n)),va)}}else if(PO(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(ys,nt(r),wl,nt(Tr(n)),va)}}}var vs=Oe(">"),oO=Oe("/>");function rm(e,t,r){if(t!=null){if(r!=null)throw Error(tt(60));if(typeof t!="object"||!("__html"in t))throw Error(tt(61));t=t.__html,t!=null&&e.push(nt(""+t))}}function Zq(e){var t="";return EO.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var qx=Oe(' selected=""');function Kx(e,t,r,n){e.push(Ui(r));var i=r=null,o;for(o in t)if(mn.call(t,o)){var s=t[o];if(s!=null)switch(o){case"children":r=s;break;case"dangerouslySetInnerHTML":i=s;break;default:Fn(e,n,o,s)}}return e.push(vs),rm(e,i,r),typeof r=="string"?(e.push(nt(Tr(r))),null):r}var Wx=Oe(`
|
|
19
|
-
`),Qq=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sO=new Map;function Ui(e){var t=sO.get(e);if(t===void 0){if(!Qq.test(e))throw Error(tt(65,e));t=Oe("<"+e),sO.set(e,t)}return t}var Jq=Oe("<!DOCTYPE html>");function eK(e,t,r,n,i){switch(t){case"select":e.push(Ui("select"));var o=null,s=null;for(p in r)if(mn.call(r,p)){var a=r[p];if(a!=null)switch(p){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Fn(e,n,p,a)}}return e.push(vs),rm(e,s,o),o;case"option":s=i.selectedValue,e.push(Ui("option"));var u=a=null,l=null,p=null;for(o in r)if(mn.call(r,o)){var h=r[o];if(h!=null)switch(o){case"children":a=h;break;case"selected":l=h;break;case"dangerouslySetInnerHTML":p=h;break;case"value":u=h;default:Fn(e,n,o,h)}}if(s!=null)if(r=u!==null?""+u:Zq(a),Zx(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(qx);break}}else""+s===r&&e.push(qx);else l&&e.push(qx);return e.push(vs),rm(e,p,a),a;case"textarea":e.push(Ui("textarea")),p=s=o=null;for(a in r)if(mn.call(r,a)&&(u=r[a],u!=null))switch(a){case"children":p=u;break;case"value":o=u;break;case"defaultValue":s=u;break;case"dangerouslySetInnerHTML":throw Error(tt(91));default:Fn(e,n,a,u)}if(o===null&&s!==null&&(o=s),e.push(vs),p!=null){if(o!=null)throw Error(tt(92));if(Zx(p)&&1<p.length)throw Error(tt(93));o=""+p}return typeof o=="string"&&o[0]===`
|
|
20
|
-
`&&e.push(Wx),o!==null&&e.push(nt(Tr(""+o))),null;case"input":e.push(Ui("input")),u=p=a=o=null;for(s in r)if(mn.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(tt(399,"input"));case"defaultChecked":u=l;break;case"defaultValue":a=l;break;case"checked":p=l;break;case"value":o=l;break;default:Fn(e,n,s,l)}return p!==null?Fn(e,n,"checked",p):u!==null&&Fn(e,n,"checked",u),o!==null?Fn(e,n,"value",o):a!==null&&Fn(e,n,"value",a),e.push(oO),null;case"menuitem":e.push(Ui("menuitem"));for(var y in r)if(mn.call(r,y)&&(o=r[y],o!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(tt(400));default:Fn(e,n,y,o)}return e.push(vs),null;case"title":e.push(Ui("title")),o=null;for(h in r)if(mn.call(r,h)&&(s=r[h],s!=null))switch(h){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(tt(434));default:Fn(e,n,h,s)}return e.push(vs),o;case"listing":case"pre":e.push(Ui(t)),s=o=null;for(u in r)if(mn.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Fn(e,n,u,a)}if(e.push(vs),s!=null){if(o!=null)throw Error(tt(60));if(typeof s!="object"||!("__html"in s))throw Error(tt(61));r=s.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
|
|
21
|
-
`?e.push(Wx,nt(r)):e.push(nt(""+r)))}return typeof o=="string"&&o[0]===`
|
|
22
|
-
`&&e.push(Wx),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Ui(t));for(var v in r)if(mn.call(r,v)&&(o=r[v],o!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(tt(399,t));default:Fn(e,n,v,o)}return e.push(oO),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Kx(e,r,t,n);case"html":return i.insertionMode===0&&e.push(Jq),Kx(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return Kx(e,r,t,n);e.push(Ui(t)),s=o=null;for(l in r)if(mn.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":TO(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:PO(l)&&typeof a!="function"&&typeof a!="symbol"&&e.push(ys,nt(l),wl,nt(Tr(a)),va)}return e.push(vs),rm(e,s,o),o}}var tK=Oe("</"),rK=Oe(">"),nK=Oe('<template id="'),iK=Oe('"></template>'),oK=Oe("<!--$-->"),sK=Oe('<!--$?--><template id="'),aK=Oe('"></template>'),uK=Oe("<!--$!-->"),lK=Oe("<!--/$-->"),cK=Oe("<template"),fK=Oe('"'),dK=Oe(' data-dgst="');Oe(' data-msg="');Oe(' data-stck="');var hK=Oe("></template>");function aO(e,t,r){if(Fe(e,sK),r===null)throw Error(tt(395));return Fe(e,r),Lt(e,aK)}var pK=Oe('<div hidden id="'),mK=Oe('">'),gK=Oe("</div>"),yK=Oe('<svg aria-hidden="true" style="display:none" id="'),vK=Oe('">'),wK=Oe("</svg>"),xK=Oe('<math aria-hidden="true" style="display:none" id="'),bK=Oe('">'),_K=Oe("</math>"),EK=Oe('<table hidden id="'),SK=Oe('">'),CK=Oe("</table>"),PK=Oe('<table hidden><tbody id="'),TK=Oe('">'),DK=Oe("</tbody></table>"),OK=Oe('<table hidden><tr id="'),IK=Oe('">'),RK=Oe("</tr></table>"),AK=Oe('<table hidden><colgroup id="'),MK=Oe('">'),NK=Oe("</colgroup></table>");function kK(e,t,r,n){switch(r.insertionMode){case 0:case 1:return Fe(e,pK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,mK);case 2:return Fe(e,yK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,vK);case 3:return Fe(e,xK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,bK);case 4:return Fe(e,EK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,SK);case 5:return Fe(e,PK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,TK);case 6:return Fe(e,OK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,IK);case 7:return Fe(e,AK),Fe(e,t.segmentPrefix),Fe(e,nt(n.toString(16))),Lt(e,MK);default:throw Error(tt(397))}}function FK(e,t){switch(t.insertionMode){case 0:case 1:return Lt(e,gK);case 2:return Lt(e,wK);case 3:return Lt(e,_K);case 4:return Lt(e,CK);case 5:return Lt(e,DK);case 6:return Lt(e,RK);case 7:return Lt(e,NK);default:throw Error(tt(397))}}var LK=Oe('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),$K=Oe('$RS("'),UK=Oe('","'),VK=Oe('")<\/script>'),jK=Oe('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),BK=Oe('$RC("'),zK=Oe('","'),HK=Oe('")<\/script>'),qK=Oe('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),KK=Oe('$RX("'),WK=Oe('"'),GK=Oe(")<\/script>"),Gx=Oe(","),YK=/[<\u2028\u2029]/g;function Yx(e){return JSON.stringify(e).replace(YK,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Xf=Object.assign,XK=Symbol.for("react.element"),DO=Symbol.for("react.portal"),OO=Symbol.for("react.fragment"),IO=Symbol.for("react.strict_mode"),RO=Symbol.for("react.profiler"),AO=Symbol.for("react.provider"),MO=Symbol.for("react.context"),NO=Symbol.for("react.forward_ref"),kO=Symbol.for("react.suspense"),FO=Symbol.for("react.suspense_list"),LO=Symbol.for("react.memo"),o2=Symbol.for("react.lazy"),ZK=Symbol.for("react.scope"),QK=Symbol.for("react.debug_trace_mode"),JK=Symbol.for("react.legacy_hidden"),eW=Symbol.for("react.default_value"),uO=Symbol.iterator;function Qx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case OO:return"Fragment";case DO:return"Portal";case RO:return"Profiler";case IO:return"StrictMode";case kO:return"Suspense";case FO:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MO:return(e.displayName||"Context")+".Consumer";case AO:return(e._context.displayName||"Context")+".Provider";case NO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LO:return t=e.displayName||null,t!==null?t:Qx(e.type)||"Memo";case o2:t=e._payload,e=e._init;try{return Qx(e(t))}catch(r){}}return null}var $O={};function lO(e,t){if(e=e.contextTypes,!e)return $O;var r={},n;for(n in e)r[n]=t[n];return r}var xa=null;function fm(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(tt(401))}else{if(r===null)throw Error(tt(401));fm(e,r)}t.context._currentValue=t.value}}function UO(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&UO(e)}function VO(e){var t=e.parent;t!==null&&VO(t),e.context._currentValue=e.value}function jO(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(tt(402));e.depth===t.depth?fm(e,t):jO(e,t)}function BO(e,t){var r=t.parent;if(r===null)throw Error(tt(402));e.depth===r.depth?fm(e,r):BO(e,r),t.context._currentValue=t.value}function sm(e){var t=xa;t!==e&&(t===null?VO(e):e===null?UO(t):t.depth===e.depth?fm(t,e):t.depth>e.depth?jO(t,e):BO(t,e),xa=e)}var cO={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function fO(e,t,r,n){var i=e.state!==void 0?e.state:null;e.updater=cO,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,i),i=s==null?i:Xf({},i,s),e.state=i),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&cO.enqueueReplaceState(e,e.state,null),o.queue!==null&&0<o.queue.length)if(t=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&t.length===1)e.state=t[0];else{for(o=s?t[0]:e.state,i=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,o,r,n):a,a!=null&&(i?(i=!1,o=Xf({},o,a)):Xf(o,a))}e.state=o}else o.queue=null}var tW={id:1,overflow:""};function Jx(e,t,r){var n=e.id;e=e.overflow;var i=32-nm(n)-1;n&=~(1<<i),r+=1;var o=32-nm(t)+i;if(30<o){var s=i-i%5;return o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,{id:1<<32-nm(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var nm=Math.clz32?Math.clz32:iW,rW=Math.log,nW=Math.LN2;function iW(e){return e>>>=0,e===0?32:31-(rW(e)/nW|0)|0}function oW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sW=typeof Object.is=="function"?Object.is:oW,mo=null,s2=null,im=null,At=null,Gf=!1,am=!1,Zf=0,ws=null,dm=0;function wa(){if(mo===null)throw Error(tt(321));return mo}function dO(){if(0<dm)throw Error(tt(312));return{memoizedState:null,queue:null,next:null}}function a2(){return At===null?im===null?(Gf=!1,im=At=dO()):(Gf=!0,At=im):At.next===null?(Gf=!1,At=At.next=dO()):(Gf=!0,At=At.next),At}function u2(){s2=mo=null,am=!1,im=null,dm=0,At=ws=null}function zO(e,t){return typeof t=="function"?t(e):t}function hO(e,t,r){if(mo=wa(),At=a2(),Gf){var n=At.queue;if(t=n.dispatch,ws!==null&&(r=ws.get(n),r!==void 0)){ws.delete(n),n=At.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return At.memoizedState=n,[n,t]}return[At.memoizedState,t]}return e=e===zO?typeof t=="function"?t():t:r!==void 0?r(t):t,At.memoizedState=e,e=At.queue={last:null,dispatch:null},e=e.dispatch=aW.bind(null,mo,e),[At.memoizedState,e]}function pO(e,t){if(mo=wa(),At=a2(),t=t===void 0?null:t,At!==null){var r=At.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!sW(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),At.memoizedState=[e,t],e}function aW(e,t,r){if(25<=dm)throw Error(tt(301));if(e===mo)if(am=!0,e={action:r,next:null},ws===null&&(ws=new Map),r=ws.get(t),r===void 0)ws.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function uW(){throw Error(tt(394))}function J0(){}var mO={readContext:function(e){return e._currentValue},useContext:function(e){return wa(),e._currentValue},useMemo:pO,useReducer:hO,useRef:function(e){mo=wa(),At=a2();var t=At.memoizedState;return t===null?(e={current:e},At.memoizedState=e):t},useState:function(e){return hO(zO,e)},useInsertionEffect:J0,useLayoutEffect:function(){},useCallback:function(e,t){return pO(function(){return e},t)},useImperativeHandle:J0,useEffect:J0,useDebugValue:J0,useDeferredValue:function(e){return wa(),e},useTransition:function(){return wa(),[!1,uW]},useId:function(){var e=s2.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-nm(e)-1)).toString(32)+t;var r=om;if(r===null)throw Error(tt(404));return t=Zf++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return wa(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(tt(407));return r()}},om=null,Xx=EO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function lW(e){return console.error(e),null}function Yf(){}function cW(e,t,r,n,i,o,s,a,u){var l=[],p=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:p,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:i===void 0?lW:i,onAllReady:o===void 0?Yf:o,onShellReady:s===void 0?Yf:s,onShellError:a===void 0?Yf:a,onFatalError:u===void 0?Yf:u},r=um(t,0,null,r,!1,!1),r.parentFlushed=!0,e=l2(t,e,null,r,p,$O,null,tW),l.push(e),t}function l2(e,t,r,n,i,o,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var u={node:t,ping:function(){var l=e.pingedTasks;l.push(u),l.length===1&&KO(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:s,treeContext:a};return i.add(u),u}function um(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function Qf(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function lm(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,CO(e.destination,t)):(e.status=1,e.fatalError=t)}function gO(e,t,r,n,i){for(mo={},s2=t,Zf=0,e=r(n,i);am;)am=!1,Zf=0,dm+=1,At=null,e=r(n,i);return u2(),e}function yO(e,t,r,n){var i=r.render(),o=n.childContextTypes;if(o!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in o))throw Error(tt(108,Qx(n)||"Unknown",a));n=Xf({},s,r)}t.legacyContext=n,Un(e,t,i),t.legacyContext=s}else Un(e,t,i)}function vO(e,t){if(e&&e.defaultProps){t=Xf({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function e2(e,t,r,n,i){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){i=lO(r,t.legacyContext);var o=r.contextType;o=new r(n,typeof o=="object"&&o!==null?o._currentValue:i),fO(o,r,n,i),yO(e,t,o,r)}else{o=lO(r,t.legacyContext),i=gO(e,t,r,n,o);var s=Zf!==0;if(typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0)fO(i,r,n,o),yO(e,t,i,r);else if(s){n=t.treeContext,t.treeContext=Jx(n,1,0);try{Un(e,t,i)}finally{t.treeContext=n}}else Un(e,t,i)}else if(typeof r=="string"){switch(i=t.blockedSegment,o=eK(i.chunks,r,n,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=Gq(s,r,n),t2(e,t,o),i.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(tK,nt(r),rK)}i.lastPushedText=!1}else{switch(r){case JK:case QK:case IO:case RO:case OO:Un(e,t,n.children);return;case FO:Un(e,t,n.children);return;case ZK:throw Error(tt(343));case kO:e:{r=t.blockedBoundary,i=t.blockedSegment,o=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},u=um(e,i.chunks.length,a,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var l=um(e,0,null,i.formatContext,!1,!1);l.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=l;try{if(t2(e,t,n),l.lastPushedText&&l.textEmbedded&&l.chunks.push(i2),l.status=1,cm(a,l),a.pendingTasks===0)break e}catch(p){l.status=4,a.forceClientRender=!0,a.errorDigest=Qf(e,p)}finally{t.blockedBoundary=r,t.blockedSegment=i}t=l2(e,o,r,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case NO:if(n=gO(e,t,r.render,n,i),Zf!==0){r=t.treeContext,t.treeContext=Jx(r,1,0);try{Un(e,t,n)}finally{t.treeContext=r}}else Un(e,t,n);return;case LO:r=r.type,n=vO(r,n),e2(e,t,r,n,i);return;case AO:if(i=n.children,r=r._context,n=n.value,o=r._currentValue,r._currentValue=n,s=xa,xa=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:o,value:n},t.context=n,Un(e,t,i),e=xa,e===null)throw Error(tt(403));n=e.parentValue,e.context._currentValue=n===eW?e.context._defaultValue:n,e=xa=e.parent,t.context=e;return;case MO:n=n.children,n=n(r._currentValue),Un(e,t,n);return;case o2:i=r._init,r=i(r._payload),n=vO(r,n),e2(e,t,r,n,void 0);return}throw Error(tt(130,r==null?r:typeof r,""))}}function Un(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case XK:e2(e,t,r.type,r.props,r.ref);return;case DO:throw Error(tt(257));case o2:var n=r._init;r=n(r._payload),Un(e,t,r);return}if(Zx(r)){wO(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=uO&&r[uO]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var i=[];do i.push(r.value),r=n.next();while(!r.done);wO(e,t,i)}return}throw e=Object.prototype.toString.call(r),Error(tt(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=tO(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=tO(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function wO(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=Jx(o,n,i);try{t2(e,t,r[i])}finally{t.treeContext=o}}}function t2(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Un(e,t,r)}catch(u){if(u2(),typeof u=="object"&&u!==null&&typeof u.then=="function"){r=u;var s=t.blockedSegment,a=um(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=l2(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,sm(o)}else throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,sm(o),u}}function fW(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,qO(this,t,e)}function HO(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(tt(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(i){return HO(i,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function cm(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&cm(e,r)}else e.completedSegments.push(t)}function qO(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(tt(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Yf,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&cm(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(fW,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(cm(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function KO(e){if(e.status!==2){var t=xa,r=Xx.current;Xx.current=mO;var n=om;om=e.responseState;try{var i=e.pingedTasks,o;for(o=0;o<i.length;o++){var s=i[o],a=e,u=s.blockedSegment;if(u.status===0){sm(s.context);try{Un(a,s,s.node),u.lastPushedText&&u.textEmbedded&&u.chunks.push(i2),s.abortSet.delete(s),u.status=1,qO(a,s.blockedBoundary,u)}catch(w){if(u2(),typeof w=="object"&&w!==null&&typeof w.then=="function"){var l=s.ping;w.then(l,l)}else{s.abortSet.delete(s),u.status=4;var p=s.blockedBoundary,h=w,y=Qf(a,h);if(p===null?lm(a,h):(p.pendingTasks--,p.forceClientRender||(p.forceClientRender=!0,p.errorDigest=y,p.parentFlushed&&a.clientRenderedBoundaries.push(p))),a.allPendingTasks--,a.allPendingTasks===0){var v=a.onAllReady;v()}}}finally{}}}i.splice(0,o),e.destination!==null&&c2(e,e.destination)}catch(w){Qf(e,w),lm(e,w)}finally{om=n,Xx.current=r,r===mO&&sm(t)}}}function em(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,Fe(t,nK),Fe(t,e.placeholderPrefix),e=nt(n.toString(16)),Fe(t,e),Lt(t,iK);case 1:r.status=2;var i=!0;n=r.chunks;var o=0;r=r.children;for(var s=0;s<r.length;s++){for(i=r[s];o<i.index;o++)Fe(t,n[o]);i=hm(e,t,i)}for(;o<n.length-1;o++)Fe(t,n[o]);return o<n.length&&(i=Lt(t,n[o])),i;default:throw Error(tt(390))}}function hm(e,t,r){var n=r.boundary;if(n===null)return em(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Lt(t,uK),Fe(t,cK),n&&(Fe(t,dK),Fe(t,nt(Tr(n))),Fe(t,fK)),Lt(t,hK),em(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var i=e.responseState,o=i.nextSuspenseID++;i=Oe(i.boundaryPrefix+o.toString(16)),n=n.id=i,aO(t,e.responseState,n),em(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),aO(t,e.responseState,n.id),em(e,t,r);else{if(Lt(t,oK),r=n.completedSegments,r.length!==1)throw Error(tt(391));hm(e,t,r[0])}return Lt(t,lK)}function xO(e,t,r){return kK(t,e.responseState,r.formatContext,r.id),hm(e,t,r),FK(t,r.formatContext)}function bO(e,t,r){for(var n=r.completedSegments,i=0;i<n.length;i++)WO(e,t,r,n[i]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,Fe(t,e.startInlineScript),e.sentCompleteBoundaryFunction?Fe(t,BK):(e.sentCompleteBoundaryFunction=!0,Fe(t,jK)),n===null)throw Error(tt(395));return r=nt(r.toString(16)),Fe(t,n),Fe(t,zK),Fe(t,e.segmentPrefix),Fe(t,r),Lt(t,HK)}function WO(e,t,r,n){if(n.status===2)return!0;var i=n.id;if(i===-1){if((n.id=r.rootSegmentID)===-1)throw Error(tt(392));return xO(e,t,n)}return xO(e,t,n),e=e.responseState,Fe(t,e.startInlineScript),e.sentCompleteSegmentFunction?Fe(t,$K):(e.sentCompleteSegmentFunction=!0,Fe(t,LK)),Fe(t,e.segmentPrefix),i=nt(i.toString(16)),Fe(t,i),Fe(t,UK),Fe(t,e.placeholderPrefix),Fe(t,i),Lt(t,VK)}function c2(e,t){Ln=new Uint8Array(512),$n=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){hm(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)Fe(t,n[r]);r<n.length&&Lt(t,n[r])}var i=e.clientRenderedBoundaries,o;for(o=0;o<i.length;o++){var s=i[o];n=t;var a=e.responseState,u=s.id,l=s.errorDigest,p=s.errorMessage,h=s.errorComponentStack;if(Fe(n,a.startInlineScript),a.sentClientRenderFunction?Fe(n,KK):(a.sentClientRenderFunction=!0,Fe(n,qK)),u===null)throw Error(tt(395));if(Fe(n,u),Fe(n,WK),(l||p||h)&&(Fe(n,Gx),Fe(n,nt(Yx(l||"")))),(p||h)&&(Fe(n,Gx),Fe(n,nt(Yx(p||"")))),h&&(Fe(n,Gx),Fe(n,nt(Yx(h)))),!Lt(n,GK)){e.destination=null,o++,i.splice(0,o);return}}i.splice(0,o);var y=e.completedBoundaries;for(o=0;o<y.length;o++)if(!bO(e,t,y[o])){e.destination=null,o++,y.splice(0,o);return}y.splice(0,o),ZD(t),Ln=new Uint8Array(512),$n=0;var v=e.partialBoundaries;for(o=0;o<v.length;o++){var w=v[o];e:{i=e,s=t;var C=w.completedSegments;for(a=0;a<C.length;a++)if(!WO(i,s,w,C[a])){a++,C.splice(0,a);var R=!1;break e}C.splice(0,a),R=!0}if(!R){e.destination=null,o++,v.splice(0,o);return}}v.splice(0,o);var P=e.completedBoundaries;for(o=0;o<P.length;o++)if(!bO(e,t,P[o])){e.destination=null,o++,P.splice(0,o);return}P.splice(0,o)}finally{ZD(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function _O(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return HO(n,e,t)}),r.clear(),e.destination!==null&&c2(e,e.destination)}catch(n){Qf(e,n),lm(e,n)}}f2.renderToReadableStream=function(e,t){return new Promise(function(r,n){var i,o,s=new Promise(function(p,h){o=p,i=h}),a=cW(e,Kq(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),Wq(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var p=new ReadableStream({type:"bytes",pull:function(h){if(a.status===1)a.status=2,CO(h,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=h;try{c2(a,h)}catch(y){Qf(a,y),lm(a,y)}}},cancel:function(){_O(a)}},{highWaterMark:0});p.allReady=s,r(p)},function(p){s.catch(function(){}),n(p)},i);if(t&&t.signal){var u=t.signal,l=function(){_O(a,u.reason),u.removeEventListener("abort",l)};u.addEventListener("abort",l)}KO(a)})};f2.version="18.2.0"});var XO=we(ba=>{"use strict";c();d();f();var xl,YO;xl=XD(),YO=GO();ba.version=xl.version;ba.renderToString=xl.renderToString;ba.renderToStaticMarkup=xl.renderToStaticMarkup;ba.renderToNodeStream=xl.renderToNodeStream;ba.renderToStaticNodeStream=xl.renderToStaticNodeStream;ba.renderToReadableStream=YO.renderToReadableStream});var lI=we((eve,uI)=>{"use strict";c();d();f();function gW(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}uI.exports=yW;function yW(e,t,r){var n=r&&r.stringify||gW,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,y=e&&e.length||0,v=0;v<y;){if(e.charCodeAt(v)===37&&v+1<y){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Number(t[p]),h=v+2,v++;break;case 105:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Math.floor(Number(t[p])),h=v+2,v++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<v&&(l+=e.slice(h,v));var w=typeof t[p];if(w==="string"){l+="'"+t[p]+"'",h=v+2,v++;break}if(w==="function"){l+=t[p].name||"<anonymous>",h=v+2,v++;break}l+=n(t[p]),h=v+2,v++;break;case 115:if(p>=u)break;h<v&&(l+=e.slice(h,v)),l+=String(t[p]),h=v+2,v++;break;case 37:h<v&&(l+=e.slice(h,v)),l+="%",h=v+2,v++,p--;break}++p}++v}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var gm=we((tve,hI)=>{"use strict";c();d();f();var cI=lI();hI.exports=Vi;var ed=TW().console||{},vW={mapHttpRequest:pm,mapHttpResponse:pm,wrapRequestSerializer:p2,wrapResponseSerializer:p2,wrapErrorSerializer:p2,req:pm,res:pm,err:EW};function wW(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Vi(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||ed;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=wW(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=td),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:SW(e)};u.levels=Vi.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=td,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=v,t&&(u._logEvent=m2());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,bl(l,u,"error","log"),bl(l,u,"fatal","error"),bl(l,u,"warn","error"),bl(l,u,"info","log"),bl(l,u,"debug","log"),bl(l,u,"trace","log")}function v(w,C){if(!w)throw new Error("missing bindings for child Pino");C=C||{},i&&w.serializers&&(C.serializers=w.serializers);let R=C.serializers;if(i&&R){var P=Object.assign({},n,R),M=e.browser.serialize===!0?Object.keys(P):i;delete w.serializers,mm([w],M,P,this._stdErrSerialize)}function A($){this._childLevel=($._childLevel|0)+1,this.error=_l($,w,"error"),this.fatal=_l($,w,"fatal"),this.warn=_l($,w,"warn"),this.info=_l($,w,"info"),this.debug=_l($,w,"debug"),this.trace=_l($,w,"trace"),P&&(this.serializers=P,this._serialize=M),t&&(this._logEvent=m2([].concat($._logEvent.bindings,w)))}return A.prototype=this,new A(this)}return u}Vi.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Vi.stdSerializers=vW;Vi.stdTimeFunctions=Object.assign({},{nullTime:fI,epochTime:dI,unixTime:CW,isoTime:PW});function bl(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?td:i[r]?i[r]:ed[r]||ed[n]||td,xW(e,t,r)}function xW(e,t,r){!e.transmit&&t[r]===td||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===ed?ed:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&mm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,bW(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=Vi.levels.values[l],h=Vi.levels.values[r];if(h<p)return;_W(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:Vi.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function bW(e,t,r,n){e._serialize&&mm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=Vi.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?cI(i.shift(),i):void 0}else typeof o=="string"&&(o=cI(i.shift(),i));return o!==void 0&&(s.msg=o),s}function mm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Vi.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function _l(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function _W(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;mm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=m2(u)}function m2(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function EW(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function SW(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?fI:dI}function pm(){return{}}function p2(e){return e}function td(){}function fI(){return!1}function dI(){return Date.now()}function CW(){return Math.round(Date.now()/1e3)}function PW(){return new Date(Date.now()).toISOString()}function TW(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var xs=we((rve,g2)=>{"use strict";c();d();f();var El=typeof Reflect=="object"?Reflect:null,pI=El&&typeof El.apply=="function"?El.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},ym;El&&typeof El.ownKeys=="function"?ym=El.ownKeys:Object.getOwnPropertySymbols?ym=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:ym=function(t){return Object.getOwnPropertyNames(t)};function DW(e){console&&console.warn&&console.warn(e)}var gI=Number.isNaN||function(t){return t!==t};function St(){St.init.call(this)}g2.exports=St;g2.exports.once=AW;St.EventEmitter=St;St.prototype._events=void 0;St.prototype._eventsCount=0;St.prototype._maxListeners=void 0;var mI=10;function vm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(St,"defaultMaxListeners",{enumerable:!0,get:function(){return mI},set:function(e){if(typeof e!="number"||e<0||gI(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mI=e}});St.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};St.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gI(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function yI(e){return e._maxListeners===void 0?St.defaultMaxListeners:e._maxListeners}St.prototype.getMaxListeners=function(){return yI(this)};St.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")pI(u,this,r);else for(var l=u.length,p=_I(u,l),n=0;n<l;++n)pI(p[n],this,r);return!0};function vI(e,t,r,n){var i,o,s;if(vm(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=yI(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,DW(a)}return e}St.prototype.addListener=function(t,r){return vI(this,t,r,!1)};St.prototype.on=St.prototype.addListener;St.prototype.prependListener=function(t,r){return vI(this,t,r,!0)};function OW(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wI(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=OW.bind(n);return i.listener=r,n.wrapFn=i,i}St.prototype.once=function(t,r){return vm(r),this.on(t,wI(this,t,r)),this};St.prototype.prependOnceListener=function(t,r){return vm(r),this.prependListener(t,wI(this,t,r)),this};St.prototype.removeListener=function(t,r){var n,i,o,s,a;if(vm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():IW(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};St.prototype.off=St.prototype.removeListener;St.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function xI(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?RW(i):_I(i,i.length)}St.prototype.listeners=function(t){return xI(this,t,!0)};St.prototype.rawListeners=function(t){return xI(this,t,!1)};St.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bI.call(e,t)};St.prototype.listenerCount=bI;function bI(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}St.prototype.eventNames=function(){return this._eventsCount>0?ym(this._events):[]};function _I(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function IW(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function RW(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function AW(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}EI(e,t,o,{once:!0}),t!=="error"&&MW(e,i,{once:!0})})}function MW(e,t,r){typeof e.on=="function"&&EI(e,"error",t,r)}function EI(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var v2=we((nve,xm)=>{c();d();f();var SI,CI,PI,TI,DI,OI,II,RI,AI,wm,y2,MI,NI,Sl,kI,FI,LI,$I,UI,VI,jI,BI,zI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof xm=="object"&&typeof xm.exports=="object"?e(r(t,r(xm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};SI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},CI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},PI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},TI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},DI=function(r,n){return function(i,o){n(i,o,r)}},OI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},II=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},RI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},zI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},AI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},wm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},y2=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},MI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(y2(arguments[n]));return r},NI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Sl=function(r){return this instanceof Sl?(this.v=r,this):new Sl(r)},kI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(C){return new Promise(function(R,P){a.push([w,C,R,P])>1||l(w,C)})})}function l(w,C){try{p(o[w](C))}catch(R){v(a[0][3],R)}}function p(w){w.value instanceof Sl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,C){w(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},FI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Sl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},LI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof wm=="function"?wm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},$I=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},UI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},VI=function(r){return r&&r.__esModule?r:{default:r}},jI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},BI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",SI),e("__assign",CI),e("__rest",PI),e("__decorate",TI),e("__param",DI),e("__metadata",OI),e("__awaiter",II),e("__generator",RI),e("__exportStar",AI),e("__createBinding",zI),e("__values",wm),e("__read",y2),e("__spread",MI),e("__spreadArrays",NI),e("__await",Sl),e("__asyncGenerator",kI),e("__asyncDelegator",FI),e("__asyncValues",LI),e("__makeTemplateObject",$I),e("__importStar",UI),e("__importDefault",VI),e("__classPrivateFieldGet",jI),e("__classPrivateFieldSet",BI)})});var w2=we(bm=>{"use strict";c();d();f();Object.defineProperty(bm,"__esModule",{value:!0});function NW(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}bm.safeJsonParse=NW;function kW(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}bm.safeJsonStringify=kW});var HI=we((ove,_m)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?_m.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?_m.exports=window.localStorage:_m.exports=new t})()});var qI=we(Em=>{"use strict";c();d();f();Object.defineProperty(Em,"__esModule",{value:!0});Em.IKeyValueStorage=void 0;var x2=class{};Em.IKeyValueStorage=x2});var KI=we(Sm=>{"use strict";c();d();f();Object.defineProperty(Sm,"__esModule",{value:!0});Sm.parseEntry=void 0;var FW=w2();function LW(e){var t;return[e[0],FW.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Sm.parseEntry=LW});var GI=we(Cm=>{"use strict";c();d();f();Object.defineProperty(Cm,"__esModule",{value:!0});var WI=v2();WI.__exportStar(qI(),Cm);WI.__exportStar(KI(),Cm)});var XI=we(rd=>{"use strict";c();d();f();Object.defineProperty(rd,"__esModule",{value:!0});rd.KeyValueStorage=void 0;var Cl=v2(),YI=w2(),$W=Cl.__importDefault(HI()),UW=GI(),Pm=class{constructor(){this.localStorage=$W.default}getKeys(){return Cl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return Cl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(UW.parseEntry)})}getItem(t){return Cl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return YI.safeJsonParse(r)})}setItem(t,r){return Cl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,YI.safeJsonStringify(r))})}removeItem(t){return Cl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};rd.KeyValueStorage=Pm;rd.default=Pm});var nd=we((cve,Dm)=>{c();d();f();var ZI,QI,JI,eR,tR,rR,nR,iR,oR,Tm,b2,sR,aR,Pl,uR,lR,cR,fR,dR,hR,pR,mR,gR;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Dm=="object"&&typeof Dm.exports=="object"?e(r(t,r(Dm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};ZI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},QI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},JI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},eR=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},tR=function(r,n){return function(i,o){n(i,o,r)}},rR=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},nR=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},iR=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},gR=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},oR=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Tm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},b2=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},sR=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(b2(arguments[n]));return r},aR=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Pl=function(r){return this instanceof Pl?(this.v=r,this):new Pl(r)},uR=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(C){return new Promise(function(R,P){a.push([w,C,R,P])>1||l(w,C)})})}function l(w,C){try{p(o[w](C))}catch(R){v(a[0][3],R)}}function p(w){w.value instanceof Pl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,C){w(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},lR=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Pl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},cR=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Tm=="function"?Tm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},fR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},dR=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},hR=function(r){return r&&r.__esModule?r:{default:r}},pR=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},mR=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",ZI),e("__assign",QI),e("__rest",JI),e("__decorate",eR),e("__param",tR),e("__metadata",rR),e("__awaiter",nR),e("__generator",iR),e("__exportStar",oR),e("__createBinding",gR),e("__values",Tm),e("__read",b2),e("__spread",sR),e("__spreadArrays",aR),e("__await",Pl),e("__asyncGenerator",uR),e("__asyncDelegator",lR),e("__asyncValues",cR),e("__makeTemplateObject",fR),e("__importStar",dR),e("__importDefault",hR),e("__classPrivateFieldGet",pR),e("__classPrivateFieldSet",mR)})});var id=we((fve,Im)=>{c();d();f();var yR,vR,wR,xR,bR,_R,ER,SR,CR,Om,_2,PR,TR,Tl,DR,OR,IR,RR,AR,MR,NR,kR,FR;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Im=="object"&&typeof Im.exports=="object"?e(r(t,r(Im.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};yR=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},vR=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},wR=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},xR=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},bR=function(r,n){return function(i,o){n(i,o,r)}},_R=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},ER=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},SR=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},FR=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},CR=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Om=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},_2=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},PR=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(_2(arguments[n]));return r},TR=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Tl=function(r){return this instanceof Tl?(this.v=r,this):new Tl(r)},DR=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(C){return new Promise(function(R,P){a.push([w,C,R,P])>1||l(w,C)})})}function l(w,C){try{p(o[w](C))}catch(R){v(a[0][3],R)}}function p(w){w.value instanceof Tl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,C){w(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},OR=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Tl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},IR=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Om=="function"?Om(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},RR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},AR=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},MR=function(r){return r&&r.__esModule?r:{default:r}},NR=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},kR=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",yR),e("__assign",vR),e("__rest",wR),e("__decorate",xR),e("__param",bR),e("__metadata",_R),e("__awaiter",ER),e("__generator",SR),e("__exportStar",CR),e("__createBinding",FR),e("__values",Om),e("__read",_2),e("__spread",PR),e("__spreadArrays",TR),e("__await",Tl),e("__asyncGenerator",DR),e("__asyncDelegator",OR),e("__asyncValues",IR),e("__makeTemplateObject",RR),e("__importStar",AR),e("__importDefault",MR),e("__classPrivateFieldGet",NR),e("__classPrivateFieldSet",kR)})});var LR=we(Rm=>{"use strict";c();d();f();Object.defineProperty(Rm,"__esModule",{value:!0});Rm.delay=void 0;function VW(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Rm.delay=VW});var $R=we(Dl=>{"use strict";c();d();f();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.ONE_THOUSAND=Dl.ONE_HUNDRED=void 0;Dl.ONE_HUNDRED=100;Dl.ONE_THOUSAND=1e3});var UR=we(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ONE_YEAR=Ie.FOUR_WEEKS=Ie.THREE_WEEKS=Ie.TWO_WEEKS=Ie.ONE_WEEK=Ie.THIRTY_DAYS=Ie.SEVEN_DAYS=Ie.FIVE_DAYS=Ie.THREE_DAYS=Ie.ONE_DAY=Ie.TWENTY_FOUR_HOURS=Ie.TWELVE_HOURS=Ie.SIX_HOURS=Ie.THREE_HOURS=Ie.ONE_HOUR=Ie.SIXTY_MINUTES=Ie.THIRTY_MINUTES=Ie.TEN_MINUTES=Ie.FIVE_MINUTES=Ie.ONE_MINUTE=Ie.SIXTY_SECONDS=Ie.THIRTY_SECONDS=Ie.TEN_SECONDS=Ie.FIVE_SECONDS=Ie.ONE_SECOND=void 0;Ie.ONE_SECOND=1;Ie.FIVE_SECONDS=5;Ie.TEN_SECONDS=10;Ie.THIRTY_SECONDS=30;Ie.SIXTY_SECONDS=60;Ie.ONE_MINUTE=Ie.SIXTY_SECONDS;Ie.FIVE_MINUTES=Ie.ONE_MINUTE*5;Ie.TEN_MINUTES=Ie.ONE_MINUTE*10;Ie.THIRTY_MINUTES=Ie.ONE_MINUTE*30;Ie.SIXTY_MINUTES=Ie.ONE_MINUTE*60;Ie.ONE_HOUR=Ie.SIXTY_MINUTES;Ie.THREE_HOURS=Ie.ONE_HOUR*3;Ie.SIX_HOURS=Ie.ONE_HOUR*6;Ie.TWELVE_HOURS=Ie.ONE_HOUR*12;Ie.TWENTY_FOUR_HOURS=Ie.ONE_HOUR*24;Ie.ONE_DAY=Ie.TWENTY_FOUR_HOURS;Ie.THREE_DAYS=Ie.ONE_DAY*3;Ie.FIVE_DAYS=Ie.ONE_DAY*5;Ie.SEVEN_DAYS=Ie.ONE_DAY*7;Ie.THIRTY_DAYS=Ie.ONE_DAY*30;Ie.ONE_WEEK=Ie.SEVEN_DAYS;Ie.TWO_WEEKS=Ie.ONE_WEEK*2;Ie.THREE_WEEKS=Ie.ONE_WEEK*3;Ie.FOUR_WEEKS=Ie.ONE_WEEK*4;Ie.ONE_YEAR=Ie.ONE_DAY*365});var E2=we(Am=>{"use strict";c();d();f();Object.defineProperty(Am,"__esModule",{value:!0});var VR=id();VR.__exportStar($R(),Am);VR.__exportStar(UR(),Am)});var BR=we(Ol=>{"use strict";c();d();f();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.fromMiliseconds=Ol.toMiliseconds=void 0;var jR=E2();function jW(e){return e*jR.ONE_THOUSAND}Ol.toMiliseconds=jW;function BW(e){return Math.floor(e/jR.ONE_THOUSAND)}Ol.fromMiliseconds=BW});var HR=we(Mm=>{"use strict";c();d();f();Object.defineProperty(Mm,"__esModule",{value:!0});var zR=id();zR.__exportStar(LR(),Mm);zR.__exportStar(BR(),Mm)});var qR=we(od=>{"use strict";c();d();f();Object.defineProperty(od,"__esModule",{value:!0});od.Watch=void 0;var Nm=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};od.Watch=Nm;od.default=Nm});var KR=we(km=>{"use strict";c();d();f();Object.defineProperty(km,"__esModule",{value:!0});km.IWatch=void 0;var S2=class{};km.IWatch=S2});var WR=we(C2=>{"use strict";c();d();f();Object.defineProperty(C2,"__esModule",{value:!0});var zW=id();zW.__exportStar(KR(),C2)});var go=we(Il=>{"use strict";c();d();f();Object.defineProperty(Il,"__esModule",{value:!0});var Fm=id();Fm.__exportStar(HR(),Il);Fm.__exportStar(qR(),Il);Fm.__exportStar(WR(),Il);Fm.__exportStar(E2(),Il)});var _i,GR=Ka(()=>{c();d();f();_i=class{}});var YR={};Ar(YR,{IEvents:()=>_i});var Lm=Ka(()=>{c();d();f();GR()});var XR=we($m=>{"use strict";c();d();f();Object.defineProperty($m,"__esModule",{value:!0});$m.IHeartBeat=void 0;var HW=(Lm(),AE(YR)),P2=class extends HW.IEvents{constructor(t){super()}};$m.IHeartBeat=P2});var D2=we(T2=>{"use strict";c();d();f();Object.defineProperty(T2,"__esModule",{value:!0});var qW=nd();qW.__exportStar(XR(),T2)});var ZR=we(Rl=>{"use strict";c();d();f();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.HEARTBEAT_EVENTS=Rl.HEARTBEAT_INTERVAL=void 0;var KW=go();Rl.HEARTBEAT_INTERVAL=KW.FIVE_SECONDS;Rl.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var I2=we(O2=>{"use strict";c();d();f();Object.defineProperty(O2,"__esModule",{value:!0});var WW=nd();WW.__exportStar(ZR(),O2)});var QR=we(Um=>{"use strict";c();d();f();Object.defineProperty(Um,"__esModule",{value:!0});Um.HeartBeat=void 0;var R2=nd(),GW=xs(),YW=go(),XW=D2(),A2=I2(),sd=class extends XW.IHeartBeat{constructor(t){super(t),this.events=new GW.EventEmitter,this.interval=A2.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||A2.HEARTBEAT_INTERVAL}static init(t){return R2.__awaiter(this,void 0,void 0,function*(){let r=new sd(t);return yield r.init(),r})}init(){return R2.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return R2.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),YW.toMiliseconds(this.interval))})}pulse(){this.events.emit(A2.HEARTBEAT_EVENTS.pulse)}};Um.HeartBeat=sd});var JR=we(ad=>{"use strict";c();d();f();Object.defineProperty(ad,"__esModule",{value:!0});var M2=nd();M2.__exportStar(QR(),ad);M2.__exportStar(D2(),ad);M2.__exportStar(I2(),ad)});var xA=we((Ive,jm)=>{c();d();f();var eA,tA,rA,nA,iA,oA,sA,aA,uA,Vm,N2,lA,cA,Al,fA,dA,hA,pA,mA,gA,yA,vA,wA;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof jm=="object"&&typeof jm.exports=="object"?e(r(t,r(jm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};eA=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},tA=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},rA=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},nA=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},iA=function(r,n){return function(i,o){n(i,o,r)}},oA=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},sA=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},aA=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},wA=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},uA=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Vm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},N2=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},lA=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(N2(arguments[n]));return r},cA=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Al=function(r){return this instanceof Al?(this.v=r,this):new Al(r)},fA=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(C){return new Promise(function(R,P){a.push([w,C,R,P])>1||l(w,C)})})}function l(w,C){try{p(o[w](C))}catch(R){v(a[0][3],R)}}function p(w){w.value instanceof Al?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,C){w(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},dA=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Al(r[s](u)),done:s==="return"}:a?a(u):u}:a}},hA=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Vm=="function"?Vm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},pA=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},mA=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},gA=function(r){return r&&r.__esModule?r:{default:r}},yA=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},vA=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",eA),e("__assign",tA),e("__rest",rA),e("__decorate",nA),e("__param",iA),e("__metadata",oA),e("__awaiter",sA),e("__generator",aA),e("__exportStar",uA),e("__createBinding",wA),e("__values",Vm),e("__read",N2),e("__spread",lA),e("__spreadArrays",cA),e("__await",Al),e("__asyncGenerator",fA),e("__asyncDelegator",dA),e("__asyncValues",hA),e("__makeTemplateObject",pA),e("__importStar",mA),e("__importDefault",gA),e("__classPrivateFieldGet",yA),e("__classPrivateFieldSet",vA)})});var k2=we(Ml=>{"use strict";c();d();f();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.PINO_CUSTOM_CONTEXT_KEY=Ml.PINO_LOGGER_DEFAULTS=void 0;Ml.PINO_LOGGER_DEFAULTS={level:"info"};Ml.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var CA=we(gn=>{"use strict";c();d();f();Object.defineProperty(gn,"__esModule",{value:!0});gn.generateChildLogger=gn.formatChildLoggerContext=gn.getLoggerContext=gn.setBrowserLoggerContext=gn.getBrowserLoggerContext=gn.getDefaultLoggerOptions=void 0;var Nl=k2();function ZW(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||Nl.PINO_LOGGER_DEFAULTS.level})}gn.getDefaultLoggerOptions=ZW;function bA(e,t=Nl.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}gn.getBrowserLoggerContext=bA;function _A(e,t,r=Nl.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}gn.setBrowserLoggerContext=_A;function EA(e,t=Nl.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=bA(e,t):r=e.bindings().context||"",r}gn.getLoggerContext=EA;function SA(e,t,r=Nl.PINO_CUSTOM_CONTEXT_KEY){let n=EA(e,r);return n.trim()?`${n}/${t}`:t}gn.formatChildLoggerContext=SA;function QW(e,t,r=Nl.PINO_CUSTOM_CONTEXT_KEY){let n=SA(e,t,r),i=e.child({context:n});return _A(i,n,r)}gn.generateChildLogger=QW});var L2=we(kl=>{"use strict";c();d();f();Object.defineProperty(kl,"__esModule",{value:!0});kl.pino=void 0;var F2=xA(),JW=F2.__importDefault(gm());Object.defineProperty(kl,"pino",{enumerable:!0,get:function(){return JW.default}});F2.__exportStar(k2(),kl);F2.__exportStar(CA(),kl)});var DA=we(Xm=>{"use strict";c();d();f();Object.defineProperty(Xm,"__esModule",{value:!0});Xm.BrowserRandomSource=void 0;var TA=65536,$2=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=TA)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,TA)));return r}};Xm.BrowserRandomSource=$2});var ii=we(U2=>{"use strict";c();d();f();Object.defineProperty(U2,"__esModule",{value:!0});function eG(e){for(var t=0;t<e.length;t++)e[t]=0;return e}U2.wipe=eG});var OA=we(()=>{c();d();f()});var IA=we(Zm=>{"use strict";c();d();f();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.NodeRandomSource=void 0;var tG=ii(),V2=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof RE<"u"){let t=OA();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,tG.wipe)(r),n}};Zm.NodeRandomSource=V2});var RA=we(Qm=>{"use strict";c();d();f();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.SystemRandomSource=void 0;var rG=DA(),nG=IA(),j2=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new rG.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new nG.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};Qm.SystemRandomSource=j2});var AA=we(Vn=>{"use strict";c();d();f();Object.defineProperty(Vn,"__esModule",{value:!0});function iG(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}Vn.mul=Math.imul||iG;function oG(e,t){return e+t|0}Vn.add=oG;function sG(e,t){return e-t|0}Vn.sub=sG;function aG(e,t){return e<<t|e>>>32-t}Vn.rotl=aG;function uG(e,t){return e<<32-t|e>>>t}Vn.rotr=uG;function lG(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}Vn.isInteger=Number.isInteger||lG;Vn.MAX_SAFE_INTEGER=9007199254740991;Vn.isSafeInteger=function(e){return Vn.isInteger(e)&&e>=-Vn.MAX_SAFE_INTEGER&&e<=Vn.MAX_SAFE_INTEGER}});var Ll=we(it=>{"use strict";c();d();f();Object.defineProperty(it,"__esModule",{value:!0});var MA=AA();function cG(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}it.readInt16BE=cG;function fG(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}it.readUint16BE=fG;function dG(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}it.readInt16LE=dG;function hG(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}it.readUint16LE=hG;function NA(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}it.writeUint16BE=NA;it.writeInt16BE=NA;function kA(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}it.writeUint16LE=kA;it.writeInt16LE=kA;function B2(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}it.readInt32BE=B2;function z2(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}it.readUint32BE=z2;function H2(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}it.readInt32LE=H2;function q2(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}it.readUint32LE=q2;function Jm(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}it.writeUint32BE=Jm;it.writeInt32BE=Jm;function eg(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}it.writeUint32LE=eg;it.writeInt32LE=eg;function pG(e,t){t===void 0&&(t=0);var r=B2(e,t),n=B2(e,t+4);return r*4294967296+n-(n>>31)*4294967296}it.readInt64BE=pG;function mG(e,t){t===void 0&&(t=0);var r=z2(e,t),n=z2(e,t+4);return r*4294967296+n}it.readUint64BE=mG;function gG(e,t){t===void 0&&(t=0);var r=H2(e,t),n=H2(e,t+4);return n*4294967296+r-(r>>31)*4294967296}it.readInt64LE=gG;function yG(e,t){t===void 0&&(t=0);var r=q2(e,t),n=q2(e,t+4);return n*4294967296+r}it.readUint64LE=yG;function FA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),Jm(e/4294967296>>>0,t,r),Jm(e>>>0,t,r+4),t}it.writeUint64BE=FA;it.writeInt64BE=FA;function LA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),eg(e>>>0,t,r),eg(e/4294967296>>>0,t,r+4),t}it.writeUint64LE=LA;it.writeInt64LE=LA;function vG(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}it.readUintBE=vG;function wG(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}it.readUintLE=wG;function xG(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!MA.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}it.writeUintBE=xG;function bG(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!MA.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}it.writeUintLE=bG;function _G(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}it.readFloat32BE=_G;function EG(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}it.readFloat32LE=EG;function SG(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}it.readFloat64BE=SG;function CG(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}it.readFloat64LE=CG;function PG(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}it.writeFloat32BE=PG;function TG(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}it.writeFloat32LE=TG;function DG(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}it.writeFloat64BE=DG;function OG(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}it.writeFloat64LE=OG});var _a=we(jr=>{"use strict";c();d();f();Object.defineProperty(jr,"__esModule",{value:!0});jr.randomStringForEntropy=jr.randomString=jr.randomUint32=jr.randomBytes=jr.defaultRandomSource=void 0;var IG=RA(),RG=Ll(),$A=ii();jr.defaultRandomSource=new IG.SystemRandomSource;function K2(e,t=jr.defaultRandomSource){return t.randomBytes(e)}jr.randomBytes=K2;function AG(e=jr.defaultRandomSource){let t=K2(4,e),r=(0,RG.readUint32LE)(t);return(0,$A.wipe)(t),r}jr.randomUint32=AG;var UA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function VA(e,t=UA,r=jr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=K2(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,$A.wipe)(s)}return n}jr.randomString=VA;function MG(e,t=UA,r=jr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return VA(n,t,r)}jr.randomStringForEntropy=MG});var zA=we(yo=>{"use strict";c();d();f();Object.defineProperty(yo,"__esModule",{value:!0});var Ul=Ll(),$l=ii();yo.DIGEST_LENGTH=64;yo.BLOCK_SIZE=128;var BA=function(){function e(){this.digestLength=yo.DIGEST_LENGTH,this.blockSize=yo.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){$l.wipe(this._buffer),$l.wipe(this._tempHi),$l.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<yo.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(W2(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=W2(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;Ul.writeUint32BE(i,this._buffer,s-8),Ul.writeUint32BE(o,this._buffer,s-4),W2(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)Ul.writeUint32BE(this._stateHi[a],t,a*8),Ul.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){$l.wipe(t.stateHi),$l.wipe(t.stateLo),t.buffer&&$l.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();yo.SHA512=BA;var jA=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function W2(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],v=r[6],w=r[7],C=n[0],R=n[1],P=n[2],M=n[3],A=n[4],$=n[5],W=n[6],ee=n[7],q,K,ue,pe,fe,X,I,m;s>=128;){for(var g=0;g<16;g++){var E=8*g+o;e[g]=Ul.readUint32BE(i,E),t[g]=Ul.readUint32BE(i,E+4)}for(var g=0;g<80;g++){var T=a,k=u,V=l,H=p,U=h,b=y,j=v,he=w,D=C,Z=R,re=P,ae=M,ce=A,Y=$,Q=W,G=ee;if(q=w,K=ee,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=(h>>>14|A<<32-14)^(h>>>18|A<<32-18)^(A>>>41-32|h<<32-(41-32)),K=(A>>>14|h<<32-14)^(A>>>18|h<<32-18)^(h>>>41-32|A<<32-(41-32)),fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,q=h&y^~h&v,K=A&$^~A&W,fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,q=jA[g*2],K=jA[g*2+1],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,q=e[g%16],K=t[g%16],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,ue=I&65535|m<<16,pe=fe&65535|X<<16,q=ue,K=pe,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=(a>>>28|C<<32-28)^(C>>>34-32|a<<32-(34-32))^(C>>>39-32|a<<32-(39-32)),K=(C>>>28|a<<32-28)^(a>>>34-32|C<<32-(34-32))^(a>>>39-32|C<<32-(39-32)),fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,q=a&u^a&l^u&l,K=C&R^C&P^R&P,fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,he=I&65535|m<<16,G=fe&65535|X<<16,q=H,K=ae,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=ue,K=pe,fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,H=I&65535|m<<16,ae=fe&65535|X<<16,u=T,l=k,p=V,h=H,y=U,v=b,w=j,a=he,R=D,P=Z,M=re,A=ae,$=ce,W=Y,ee=Q,C=G,g%16===15)for(var E=0;E<16;E++)q=e[E],K=t[E],fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=e[(E+9)%16],K=t[(E+9)%16],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,ue=e[(E+1)%16],pe=t[(E+1)%16],q=(ue>>>1|pe<<32-1)^(ue>>>8|pe<<32-8)^ue>>>7,K=(pe>>>1|ue<<32-1)^(pe>>>8|ue<<32-8)^(pe>>>7|ue<<32-7),fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,ue=e[(E+14)%16],pe=t[(E+14)%16],q=(ue>>>19|pe<<32-19)^(pe>>>61-32|ue<<32-(61-32))^ue>>>6,K=(pe>>>19|ue<<32-19)^(ue>>>61-32|pe<<32-(61-32))^(pe>>>6|ue<<32-6),fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,e[E]=I&65535|m<<16,t[E]=fe&65535|X<<16}q=a,K=C,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[0],K=n[0],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[0]=a=I&65535|m<<16,n[0]=C=fe&65535|X<<16,q=u,K=R,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[1],K=n[1],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[1]=u=I&65535|m<<16,n[1]=R=fe&65535|X<<16,q=l,K=P,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[2],K=n[2],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[2]=l=I&65535|m<<16,n[2]=P=fe&65535|X<<16,q=p,K=M,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[3],K=n[3],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[3]=p=I&65535|m<<16,n[3]=M=fe&65535|X<<16,q=h,K=A,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[4],K=n[4],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[4]=h=I&65535|m<<16,n[4]=A=fe&65535|X<<16,q=y,K=$,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[5],K=n[5],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[5]=y=I&65535|m<<16,n[5]=$=fe&65535|X<<16,q=v,K=W,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[6],K=n[6],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[6]=v=I&65535|m<<16,n[6]=W=fe&65535|X<<16,q=w,K=ee,fe=K&65535,X=K>>>16,I=q&65535,m=q>>>16,q=r[7],K=n[7],fe+=K&65535,X+=K>>>16,I+=q&65535,m+=q>>>16,X+=fe>>>16,I+=X>>>16,m+=I>>>16,r[7]=w=I&65535|m<<16,n[7]=ee=fe&65535|X<<16,o+=128,s-=128}return o}function NG(e){var t=new BA;t.update(e);var r=t.digest();return t.clean(),r}yo.hash=NG});var nM=we(_t=>{"use strict";c();d();f();Object.defineProperty(_t,"__esModule",{value:!0});_t.convertSecretKeyToX25519=_t.convertPublicKeyToX25519=_t.verify=_t.sign=_t.extractPublicKeyFromSecretKey=_t.generateKeyPair=_t.generateKeyPairFromSeed=_t.SEED_LENGTH=_t.SECRET_KEY_LENGTH=_t.PUBLIC_KEY_LENGTH=_t.SIGNATURE_LENGTH=void 0;var kG=_a(),ld=zA(),GA=ii();_t.SIGNATURE_LENGTH=64;_t.PUBLIC_KEY_LENGTH=32;_t.SECRET_KEY_LENGTH=64;_t.SEED_LENGTH=32;function je(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var FG=new Uint8Array(32);FG[0]=9;var X2=je(),Vl=je([1]),LG=je([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),$G=je([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),HA=je([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),qA=je([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),UG=je([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function bs(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function G2(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function YA(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function cd(e,t){let r=je(),n=je();for(let i=0;i<16;i++)n[i]=t[i];G2(n),G2(n),G2(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,YA(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function XA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function KA(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return cd(r,e),cd(n,t),XA(r,n)}function ZA(e){let t=new Uint8Array(32);return cd(t,e),t[0]&1}function VG(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Ea(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function Ca(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Ct(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,C=0,R=0,P=0,M=0,A=0,$=0,W=0,ee=0,q=0,K=0,ue=0,pe=0,fe=0,X=0,I=0,m=0,g=0,E=0,T=0,k=0,V=0,H=r[0],U=r[1],b=r[2],j=r[3],he=r[4],D=r[5],Z=r[6],re=r[7],ae=r[8],ce=r[9],Y=r[10],Q=r[11],G=r[12],se=r[13],te=r[14],ge=r[15];n=t[0],o+=n*H,s+=n*U,a+=n*b,u+=n*j,l+=n*he,p+=n*D,h+=n*Z,y+=n*re,v+=n*ae,w+=n*ce,C+=n*Y,R+=n*Q,P+=n*G,M+=n*se,A+=n*te,$+=n*ge,n=t[1],s+=n*H,a+=n*U,u+=n*b,l+=n*j,p+=n*he,h+=n*D,y+=n*Z,v+=n*re,w+=n*ae,C+=n*ce,R+=n*Y,P+=n*Q,M+=n*G,A+=n*se,$+=n*te,W+=n*ge,n=t[2],a+=n*H,u+=n*U,l+=n*b,p+=n*j,h+=n*he,y+=n*D,v+=n*Z,w+=n*re,C+=n*ae,R+=n*ce,P+=n*Y,M+=n*Q,A+=n*G,$+=n*se,W+=n*te,ee+=n*ge,n=t[3],u+=n*H,l+=n*U,p+=n*b,h+=n*j,y+=n*he,v+=n*D,w+=n*Z,C+=n*re,R+=n*ae,P+=n*ce,M+=n*Y,A+=n*Q,$+=n*G,W+=n*se,ee+=n*te,q+=n*ge,n=t[4],l+=n*H,p+=n*U,h+=n*b,y+=n*j,v+=n*he,w+=n*D,C+=n*Z,R+=n*re,P+=n*ae,M+=n*ce,A+=n*Y,$+=n*Q,W+=n*G,ee+=n*se,q+=n*te,K+=n*ge,n=t[5],p+=n*H,h+=n*U,y+=n*b,v+=n*j,w+=n*he,C+=n*D,R+=n*Z,P+=n*re,M+=n*ae,A+=n*ce,$+=n*Y,W+=n*Q,ee+=n*G,q+=n*se,K+=n*te,ue+=n*ge,n=t[6],h+=n*H,y+=n*U,v+=n*b,w+=n*j,C+=n*he,R+=n*D,P+=n*Z,M+=n*re,A+=n*ae,$+=n*ce,W+=n*Y,ee+=n*Q,q+=n*G,K+=n*se,ue+=n*te,pe+=n*ge,n=t[7],y+=n*H,v+=n*U,w+=n*b,C+=n*j,R+=n*he,P+=n*D,M+=n*Z,A+=n*re,$+=n*ae,W+=n*ce,ee+=n*Y,q+=n*Q,K+=n*G,ue+=n*se,pe+=n*te,fe+=n*ge,n=t[8],v+=n*H,w+=n*U,C+=n*b,R+=n*j,P+=n*he,M+=n*D,A+=n*Z,$+=n*re,W+=n*ae,ee+=n*ce,q+=n*Y,K+=n*Q,ue+=n*G,pe+=n*se,fe+=n*te,X+=n*ge,n=t[9],w+=n*H,C+=n*U,R+=n*b,P+=n*j,M+=n*he,A+=n*D,$+=n*Z,W+=n*re,ee+=n*ae,q+=n*ce,K+=n*Y,ue+=n*Q,pe+=n*G,fe+=n*se,X+=n*te,I+=n*ge,n=t[10],C+=n*H,R+=n*U,P+=n*b,M+=n*j,A+=n*he,$+=n*D,W+=n*Z,ee+=n*re,q+=n*ae,K+=n*ce,ue+=n*Y,pe+=n*Q,fe+=n*G,X+=n*se,I+=n*te,m+=n*ge,n=t[11],R+=n*H,P+=n*U,M+=n*b,A+=n*j,$+=n*he,W+=n*D,ee+=n*Z,q+=n*re,K+=n*ae,ue+=n*ce,pe+=n*Y,fe+=n*Q,X+=n*G,I+=n*se,m+=n*te,g+=n*ge,n=t[12],P+=n*H,M+=n*U,A+=n*b,$+=n*j,W+=n*he,ee+=n*D,q+=n*Z,K+=n*re,ue+=n*ae,pe+=n*ce,fe+=n*Y,X+=n*Q,I+=n*G,m+=n*se,g+=n*te,E+=n*ge,n=t[13],M+=n*H,A+=n*U,$+=n*b,W+=n*j,ee+=n*he,q+=n*D,K+=n*Z,ue+=n*re,pe+=n*ae,fe+=n*ce,X+=n*Y,I+=n*Q,m+=n*G,g+=n*se,E+=n*te,T+=n*ge,n=t[14],A+=n*H,$+=n*U,W+=n*b,ee+=n*j,q+=n*he,K+=n*D,ue+=n*Z,pe+=n*re,fe+=n*ae,X+=n*ce,I+=n*Y,m+=n*Q,g+=n*G,E+=n*se,T+=n*te,k+=n*ge,n=t[15],$+=n*H,W+=n*U,ee+=n*b,q+=n*j,K+=n*he,ue+=n*D,pe+=n*Z,fe+=n*re,X+=n*ae,I+=n*ce,m+=n*Y,g+=n*Q,E+=n*G,T+=n*se,k+=n*te,V+=n*ge,o+=38*W,s+=38*ee,a+=38*q,u+=38*K,l+=38*ue,p+=38*pe,h+=38*fe,y+=38*X,v+=38*I,w+=38*m,C+=38*g,R+=38*E,P+=38*T,M+=38*k,A+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=M+i+65535,i=Math.floor(n/65536),M=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=$+i+65535,i=Math.floor(n/65536),$=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=M+i+65535,i=Math.floor(n/65536),M=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=$+i+65535,i=Math.floor(n/65536),$=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=C,e[11]=R,e[12]=P,e[13]=M,e[14]=A,e[15]=$}function Sa(e,t){Ct(e,t,t)}function QA(e,t){let r=je(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Sa(r,r),n!==2&&n!==4&&Ct(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function jG(e,t){let r=je(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Sa(r,r),n!==1&&Ct(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function Z2(e,t){let r=je(),n=je(),i=je(),o=je(),s=je(),a=je(),u=je(),l=je(),p=je();Ca(r,e[1],e[0]),Ca(p,t[1],t[0]),Ct(r,r,p),Ea(n,e[0],e[1]),Ea(p,t[0],t[1]),Ct(n,n,p),Ct(i,e[3],t[3]),Ct(i,i,$G),Ct(o,e[2],t[2]),Ea(o,o,o),Ca(s,n,r),Ca(a,o,i),Ea(u,o,i),Ea(l,n,r),Ct(e[0],s,a),Ct(e[1],l,u),Ct(e[2],u,a),Ct(e[3],s,l)}function WA(e,t,r){for(let n=0;n<4;n++)YA(e[n],t[n],r)}function J2(e,t){let r=je(),n=je(),i=je();QA(i,t[2]),Ct(r,t[0],i),Ct(n,t[1],i),cd(e,n),e[31]^=ZA(r)<<7}function JA(e,t,r){bs(e[0],X2),bs(e[1],Vl),bs(e[2],Vl),bs(e[3],X2);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;WA(e,t,i),Z2(t,e),Z2(e,e),WA(e,t,i)}}function eb(e,t){let r=[je(),je(),je(),je()];bs(r[0],HA),bs(r[1],qA),bs(r[2],Vl),Ct(r[3],HA,qA),JA(e,r,t)}function eM(e){if(e.length!==_t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${_t.SEED_LENGTH} bytes`);let t=(0,ld.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[je(),je(),je(),je()];eb(n,t),J2(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}_t.generateKeyPairFromSeed=eM;function BG(e){let t=(0,kG.randomBytes)(32,e),r=eM(t);return(0,GA.wipe)(t),r}_t.generateKeyPair=BG;function zG(e){if(e.length!==_t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${_t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}_t.extractPublicKeyFromSecretKey=zG;var Y2=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function tM(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*Y2[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*Y2[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Y2[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Q2(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;tM(e,t)}function HG(e,t){let r=new Float64Array(64),n=[je(),je(),je(),je()],i=(0,ld.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new ld.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),Q2(a),eb(n,a),J2(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();Q2(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return tM(o.subarray(32),r),o}_t.sign=HG;function rM(e,t){let r=je(),n=je(),i=je(),o=je(),s=je(),a=je(),u=je();return bs(e[2],Vl),VG(e[1],t),Sa(i,e[1]),Ct(o,i,LG),Ca(i,i,e[2]),Ea(o,e[2],o),Sa(s,o),Sa(a,s),Ct(u,a,s),Ct(r,u,i),Ct(r,r,o),jG(r,r),Ct(r,r,i),Ct(r,r,o),Ct(r,r,o),Ct(e[0],r,o),Sa(n,e[0]),Ct(n,n,o),KA(n,i)&&Ct(e[0],e[0],UG),Sa(n,e[0]),Ct(n,n,o),KA(n,i)?-1:(ZA(e[0])===t[31]>>7&&Ca(e[0],X2,e[0]),Ct(e[3],e[0],e[1]),0)}function qG(e,t,r){let n=new Uint8Array(32),i=[je(),je(),je(),je()],o=[je(),je(),je(),je()];if(r.length!==_t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${_t.SIGNATURE_LENGTH} bytes`);if(rM(o,e))return!1;let s=new ld.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Q2(a),JA(i,o,a),eb(o,r.subarray(32)),Z2(i,o),J2(n,i),!XA(r,n)}_t.verify=qG;function KG(e){let t=[je(),je(),je(),je()];if(rM(t,e))throw new Error("Ed25519: invalid public key");let r=je(),n=je(),i=t[1];Ea(r,Vl,i),Ca(n,Vl,i),QA(n,n),Ct(r,r,n);let o=new Uint8Array(32);return cd(o,r),o}_t.convertPublicKeyToX25519=KG;function WG(e){let t=(0,ld.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,GA.wipe)(t),r}_t.convertSecretKeyToX25519=WG});var VM=we(cg=>{"use strict";c();d();f();Object.defineProperty(cg,"__esModule",{value:!0});var Br=Ll(),Cb=ii(),aX=20;function uX(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],C=t[3]<<24|t[2]<<16|t[1]<<8|t[0],R=t[7]<<24|t[6]<<16|t[5]<<8|t[4],P=t[11]<<24|t[10]<<16|t[9]<<8|t[8],M=t[15]<<24|t[14]<<16|t[13]<<8|t[12],A=n,$=i,W=o,ee=s,q=a,K=u,ue=l,pe=p,fe=h,X=y,I=v,m=w,g=C,E=R,T=P,k=M,V=0;V<aX;V+=2)A=A+q|0,g^=A,g=g>>>32-16|g<<16,fe=fe+g|0,q^=fe,q=q>>>32-12|q<<12,$=$+K|0,E^=$,E=E>>>32-16|E<<16,X=X+E|0,K^=X,K=K>>>32-12|K<<12,W=W+ue|0,T^=W,T=T>>>32-16|T<<16,I=I+T|0,ue^=I,ue=ue>>>32-12|ue<<12,ee=ee+pe|0,k^=ee,k=k>>>32-16|k<<16,m=m+k|0,pe^=m,pe=pe>>>32-12|pe<<12,W=W+ue|0,T^=W,T=T>>>32-8|T<<8,I=I+T|0,ue^=I,ue=ue>>>32-7|ue<<7,ee=ee+pe|0,k^=ee,k=k>>>32-8|k<<8,m=m+k|0,pe^=m,pe=pe>>>32-7|pe<<7,$=$+K|0,E^=$,E=E>>>32-8|E<<8,X=X+E|0,K^=X,K=K>>>32-7|K<<7,A=A+q|0,g^=A,g=g>>>32-8|g<<8,fe=fe+g|0,q^=fe,q=q>>>32-7|q<<7,A=A+K|0,k^=A,k=k>>>32-16|k<<16,I=I+k|0,K^=I,K=K>>>32-12|K<<12,$=$+ue|0,g^=$,g=g>>>32-16|g<<16,m=m+g|0,ue^=m,ue=ue>>>32-12|ue<<12,W=W+pe|0,E^=W,E=E>>>32-16|E<<16,fe=fe+E|0,pe^=fe,pe=pe>>>32-12|pe<<12,ee=ee+q|0,T^=ee,T=T>>>32-16|T<<16,X=X+T|0,q^=X,q=q>>>32-12|q<<12,W=W+pe|0,E^=W,E=E>>>32-8|E<<8,fe=fe+E|0,pe^=fe,pe=pe>>>32-7|pe<<7,ee=ee+q|0,T^=ee,T=T>>>32-8|T<<8,X=X+T|0,q^=X,q=q>>>32-7|q<<7,$=$+ue|0,g^=$,g=g>>>32-8|g<<8,m=m+g|0,ue^=m,ue=ue>>>32-7|ue<<7,A=A+K|0,k^=A,k=k>>>32-8|k<<8,I=I+k|0,K^=I,K=K>>>32-7|K<<7;Br.writeUint32LE(A+n|0,e,0),Br.writeUint32LE($+i|0,e,4),Br.writeUint32LE(W+o|0,e,8),Br.writeUint32LE(ee+s|0,e,12),Br.writeUint32LE(q+a|0,e,16),Br.writeUint32LE(K+u|0,e,20),Br.writeUint32LE(ue+l|0,e,24),Br.writeUint32LE(pe+p|0,e,28),Br.writeUint32LE(fe+h|0,e,32),Br.writeUint32LE(X+y|0,e,36),Br.writeUint32LE(I+v|0,e,40),Br.writeUint32LE(m+w|0,e,44),Br.writeUint32LE(g+C|0,e,48),Br.writeUint32LE(E+R|0,e,52),Br.writeUint32LE(T+P|0,e,56),Br.writeUint32LE(k+M|0,e,60)}function UM(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){uX(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];cX(o,0,s)}return Cb.wipe(a),i===0&&Cb.wipe(o),n}cg.streamXOR=UM;function lX(e,t,r,n){return n===void 0&&(n=0),Cb.wipe(r),UM(e,t,r,r,n)}cg.stream=lX;function cX(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var fg=we(Gl=>{"use strict";c();d();f();Object.defineProperty(Gl,"__esModule",{value:!0});function fX(e,t,r){return~(e-1)&t|e-1&r}Gl.select=fX;function dX(e,t){return(e|0)-(t|0)-1>>>31&1}Gl.lessOrEqual=dX;function jM(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Gl.compare=jM;function hX(e,t){return e.length===0||t.length===0?!1:jM(e,t)!==0}Gl.equal=hX});var zM=we(wo=>{"use strict";c();d();f();Object.defineProperty(wo,"__esModule",{value:!0});var pX=fg(),dg=ii();wo.DIGEST_LENGTH=16;var BM=function(){function e(t){this.digestLength=wo.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],v=this._h[8],w=this._h[9],C=this._r[0],R=this._r[1],P=this._r[2],M=this._r[3],A=this._r[4],$=this._r[5],W=this._r[6],ee=this._r[7],q=this._r[8],K=this._r[9];n>=16;){var ue=t[r+0]|t[r+1]<<8;o+=ue&8191;var pe=t[r+2]|t[r+3]<<8;s+=(ue>>>13|pe<<3)&8191;var fe=t[r+4]|t[r+5]<<8;a+=(pe>>>10|fe<<6)&8191;var X=t[r+6]|t[r+7]<<8;u+=(fe>>>7|X<<9)&8191;var I=t[r+8]|t[r+9]<<8;l+=(X>>>4|I<<12)&8191,p+=I>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(I>>>14|m<<2)&8191;var g=t[r+12]|t[r+13]<<8;y+=(m>>>11|g<<5)&8191;var E=t[r+14]|t[r+15]<<8;v+=(g>>>8|E<<8)&8191,w+=E>>>5|i;var T=0,k=T;k+=o*C,k+=s*(5*K),k+=a*(5*q),k+=u*(5*ee),k+=l*(5*W),T=k>>>13,k&=8191,k+=p*(5*$),k+=h*(5*A),k+=y*(5*M),k+=v*(5*P),k+=w*(5*R),T+=k>>>13,k&=8191;var V=T;V+=o*R,V+=s*C,V+=a*(5*K),V+=u*(5*q),V+=l*(5*ee),T=V>>>13,V&=8191,V+=p*(5*W),V+=h*(5*$),V+=y*(5*A),V+=v*(5*M),V+=w*(5*P),T+=V>>>13,V&=8191;var H=T;H+=o*P,H+=s*R,H+=a*C,H+=u*(5*K),H+=l*(5*q),T=H>>>13,H&=8191,H+=p*(5*ee),H+=h*(5*W),H+=y*(5*$),H+=v*(5*A),H+=w*(5*M),T+=H>>>13,H&=8191;var U=T;U+=o*M,U+=s*P,U+=a*R,U+=u*C,U+=l*(5*K),T=U>>>13,U&=8191,U+=p*(5*q),U+=h*(5*ee),U+=y*(5*W),U+=v*(5*$),U+=w*(5*A),T+=U>>>13,U&=8191;var b=T;b+=o*A,b+=s*M,b+=a*P,b+=u*R,b+=l*C,T=b>>>13,b&=8191,b+=p*(5*K),b+=h*(5*q),b+=y*(5*ee),b+=v*(5*W),b+=w*(5*$),T+=b>>>13,b&=8191;var j=T;j+=o*$,j+=s*A,j+=a*M,j+=u*P,j+=l*R,T=j>>>13,j&=8191,j+=p*C,j+=h*(5*K),j+=y*(5*q),j+=v*(5*ee),j+=w*(5*W),T+=j>>>13,j&=8191;var he=T;he+=o*W,he+=s*$,he+=a*A,he+=u*M,he+=l*P,T=he>>>13,he&=8191,he+=p*R,he+=h*C,he+=y*(5*K),he+=v*(5*q),he+=w*(5*ee),T+=he>>>13,he&=8191;var D=T;D+=o*ee,D+=s*W,D+=a*$,D+=u*A,D+=l*M,T=D>>>13,D&=8191,D+=p*P,D+=h*R,D+=y*C,D+=v*(5*K),D+=w*(5*q),T+=D>>>13,D&=8191;var Z=T;Z+=o*q,Z+=s*ee,Z+=a*W,Z+=u*$,Z+=l*A,T=Z>>>13,Z&=8191,Z+=p*M,Z+=h*P,Z+=y*R,Z+=v*C,Z+=w*(5*K),T+=Z>>>13,Z&=8191;var re=T;re+=o*K,re+=s*q,re+=a*ee,re+=u*W,re+=l*$,T=re>>>13,re&=8191,re+=p*A,re+=h*M,re+=y*P,re+=v*R,re+=w*C,T+=re>>>13,re&=8191,T=(T<<2)+T|0,T=T+k|0,k=T&8191,T=T>>>13,V+=T,o=k,s=V,a=H,u=U,l=b,p=j,h=he,y=D,v=Z,w=re,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=v,this._h[9]=w},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return dg.wipe(this._buffer),dg.wipe(this._r),dg.wipe(this._h),dg.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();wo.Poly1305=BM;function mX(e,t){var r=new BM(e);r.update(t);var n=r.digest();return r.clean(),n}wo.oneTimeAuth=mX;function gX(e,t){return e.length!==wo.DIGEST_LENGTH||t.length!==wo.DIGEST_LENGTH?!1:pX.equal(e,t)}wo.equal=gX});var pg=we(xo=>{"use strict";c();d();f();Object.defineProperty(xo,"__esModule",{value:!0});var hg=VM(),yX=zM(),gd=ii(),HM=Ll(),vX=fg();xo.KEY_LENGTH=32;xo.NONCE_LENGTH=12;xo.TAG_LENGTH=16;var qM=new Uint8Array(16),wX=function(){function e(t){if(this.nonceLength=xo.NONCE_LENGTH,this.tagLength=xo.TAG_LENGTH,t.length!==xo.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);hg.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return hg.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),gd.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);hg.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!vX.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return hg.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),gd.wipe(o),l},e.prototype.clean=function(){return gd.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new yX.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(qM.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(qM.subarray(n.length%16));var s=new Uint8Array(8);i&&HM.writeUint64LE(i.length,s),o.update(s),HM.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),gd.wipe(a),gd.wipe(s)},e}();xo.ChaCha20Poly1305=wX});var KM=we(Pb=>{"use strict";c();d();f();Object.defineProperty(Pb,"__esModule",{value:!0});function xX(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}Pb.isSerializableHash=xX});var GM=we(yd=>{"use strict";c();d();f();Object.defineProperty(yd,"__esModule",{value:!0});var Bi=KM(),bX=fg(),_X=ii(),WM=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),Bi.isSerializableHash(this._inner)&&Bi.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),_X.wipe(n)}return e.prototype.reset=function(){if(!Bi.isSerializableHash(this._inner)||!Bi.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){Bi.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),Bi.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!Bi.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!Bi.isSerializableHash(this._inner)||!Bi.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!Bi.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();yd.HMAC=WM;function EX(e,t,r){var n=new WM(e,t);n.update(r);var i=n.digest();return n.clean(),i}yd.hmac=EX;yd.equal=bX.equal});var mg=we(Tb=>{"use strict";c();d();f();Object.defineProperty(Tb,"__esModule",{value:!0});var YM=GM(),XM=ii(),SX=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=YM.hmac(this._hash,n,r);this._hmac=new YM.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),XM.wipe(this._buffer),XM.wipe(this._counter),this._bufpos=0},e}();Tb.HKDF=SX});var vg=we(Es=>{"use strict";c();d();f();Object.defineProperty(Es,"__esModule",{value:!0});var yg=Ll(),gg=ii();Es.DIGEST_LENGTH=32;Es.BLOCK_SIZE=64;var ZM=function(){function e(){this.digestLength=Es.DIGEST_LENGTH,this.blockSize=Es.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){gg.wipe(this._buffer),gg.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Db(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Db(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;yg.writeUint32BE(i,this._buffer,s-8),yg.writeUint32BE(o,this._buffer,s-4),Db(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)yg.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){gg.wipe(t.state),t.buffer&&gg.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Es.SHA256=ZM;var CX=new Int32Array([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 Db(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],v=0;v<16;v++){var w=n+v*4;e[v]=yg.readUint32BE(r,w)}for(var v=16;v<64;v++){var C=e[v-2],R=(C>>>17|C<<32-17)^(C>>>19|C<<32-19)^C>>>10;C=e[v-15];var P=(C>>>7|C<<32-7)^(C>>>18|C<<32-18)^C>>>3;e[v]=(R+e[v-7]|0)+(P+e[v-16]|0)}for(var v=0;v<64;v++){var R=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(CX[v]+e[v]|0)|0)|0,P=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;y=h,h=p,p=l,l=u+R|0,u=a,a=s,s=o,o=R+P|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,i-=64}return n}function PX(e){var t=new ZM;t.update(e);var r=t.digest();return t.clean(),r}Es.hash=PX});var bg=we(Zt=>{"use strict";c();d();f();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.sharedKey=Zt.generateKeyPair=Zt.generateKeyPairFromSeed=Zt.scalarMultBase=Zt.scalarMult=Zt.SHARED_KEY_LENGTH=Zt.SECRET_KEY_LENGTH=Zt.PUBLIC_KEY_LENGTH=void 0;var TX=_a(),DX=ii();Zt.PUBLIC_KEY_LENGTH=32;Zt.SECRET_KEY_LENGTH=32;Zt.SHARED_KEY_LENGTH=32;function zi(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var QM=new Uint8Array(32);QM[0]=9;var OX=zi([56129,1]);function Ob(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function vd(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function IX(e,t){let r=zi(),n=zi();for(let i=0;i<16;i++)n[i]=t[i];Ob(n),Ob(n),Ob(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,vd(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function RX(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function wg(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function xg(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function bo(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,C=0,R=0,P=0,M=0,A=0,$=0,W=0,ee=0,q=0,K=0,ue=0,pe=0,fe=0,X=0,I=0,m=0,g=0,E=0,T=0,k=0,V=0,H=r[0],U=r[1],b=r[2],j=r[3],he=r[4],D=r[5],Z=r[6],re=r[7],ae=r[8],ce=r[9],Y=r[10],Q=r[11],G=r[12],se=r[13],te=r[14],ge=r[15];n=t[0],o+=n*H,s+=n*U,a+=n*b,u+=n*j,l+=n*he,p+=n*D,h+=n*Z,y+=n*re,v+=n*ae,w+=n*ce,C+=n*Y,R+=n*Q,P+=n*G,M+=n*se,A+=n*te,$+=n*ge,n=t[1],s+=n*H,a+=n*U,u+=n*b,l+=n*j,p+=n*he,h+=n*D,y+=n*Z,v+=n*re,w+=n*ae,C+=n*ce,R+=n*Y,P+=n*Q,M+=n*G,A+=n*se,$+=n*te,W+=n*ge,n=t[2],a+=n*H,u+=n*U,l+=n*b,p+=n*j,h+=n*he,y+=n*D,v+=n*Z,w+=n*re,C+=n*ae,R+=n*ce,P+=n*Y,M+=n*Q,A+=n*G,$+=n*se,W+=n*te,ee+=n*ge,n=t[3],u+=n*H,l+=n*U,p+=n*b,h+=n*j,y+=n*he,v+=n*D,w+=n*Z,C+=n*re,R+=n*ae,P+=n*ce,M+=n*Y,A+=n*Q,$+=n*G,W+=n*se,ee+=n*te,q+=n*ge,n=t[4],l+=n*H,p+=n*U,h+=n*b,y+=n*j,v+=n*he,w+=n*D,C+=n*Z,R+=n*re,P+=n*ae,M+=n*ce,A+=n*Y,$+=n*Q,W+=n*G,ee+=n*se,q+=n*te,K+=n*ge,n=t[5],p+=n*H,h+=n*U,y+=n*b,v+=n*j,w+=n*he,C+=n*D,R+=n*Z,P+=n*re,M+=n*ae,A+=n*ce,$+=n*Y,W+=n*Q,ee+=n*G,q+=n*se,K+=n*te,ue+=n*ge,n=t[6],h+=n*H,y+=n*U,v+=n*b,w+=n*j,C+=n*he,R+=n*D,P+=n*Z,M+=n*re,A+=n*ae,$+=n*ce,W+=n*Y,ee+=n*Q,q+=n*G,K+=n*se,ue+=n*te,pe+=n*ge,n=t[7],y+=n*H,v+=n*U,w+=n*b,C+=n*j,R+=n*he,P+=n*D,M+=n*Z,A+=n*re,$+=n*ae,W+=n*ce,ee+=n*Y,q+=n*Q,K+=n*G,ue+=n*se,pe+=n*te,fe+=n*ge,n=t[8],v+=n*H,w+=n*U,C+=n*b,R+=n*j,P+=n*he,M+=n*D,A+=n*Z,$+=n*re,W+=n*ae,ee+=n*ce,q+=n*Y,K+=n*Q,ue+=n*G,pe+=n*se,fe+=n*te,X+=n*ge,n=t[9],w+=n*H,C+=n*U,R+=n*b,P+=n*j,M+=n*he,A+=n*D,$+=n*Z,W+=n*re,ee+=n*ae,q+=n*ce,K+=n*Y,ue+=n*Q,pe+=n*G,fe+=n*se,X+=n*te,I+=n*ge,n=t[10],C+=n*H,R+=n*U,P+=n*b,M+=n*j,A+=n*he,$+=n*D,W+=n*Z,ee+=n*re,q+=n*ae,K+=n*ce,ue+=n*Y,pe+=n*Q,fe+=n*G,X+=n*se,I+=n*te,m+=n*ge,n=t[11],R+=n*H,P+=n*U,M+=n*b,A+=n*j,$+=n*he,W+=n*D,ee+=n*Z,q+=n*re,K+=n*ae,ue+=n*ce,pe+=n*Y,fe+=n*Q,X+=n*G,I+=n*se,m+=n*te,g+=n*ge,n=t[12],P+=n*H,M+=n*U,A+=n*b,$+=n*j,W+=n*he,ee+=n*D,q+=n*Z,K+=n*re,ue+=n*ae,pe+=n*ce,fe+=n*Y,X+=n*Q,I+=n*G,m+=n*se,g+=n*te,E+=n*ge,n=t[13],M+=n*H,A+=n*U,$+=n*b,W+=n*j,ee+=n*he,q+=n*D,K+=n*Z,ue+=n*re,pe+=n*ae,fe+=n*ce,X+=n*Y,I+=n*Q,m+=n*G,g+=n*se,E+=n*te,T+=n*ge,n=t[14],A+=n*H,$+=n*U,W+=n*b,ee+=n*j,q+=n*he,K+=n*D,ue+=n*Z,pe+=n*re,fe+=n*ae,X+=n*ce,I+=n*Y,m+=n*Q,g+=n*G,E+=n*se,T+=n*te,k+=n*ge,n=t[15],$+=n*H,W+=n*U,ee+=n*b,q+=n*j,K+=n*he,ue+=n*D,pe+=n*Z,fe+=n*re,X+=n*ae,I+=n*ce,m+=n*Y,g+=n*Q,E+=n*G,T+=n*se,k+=n*te,V+=n*ge,o+=38*W,s+=38*ee,a+=38*q,u+=38*K,l+=38*ue,p+=38*pe,h+=38*fe,y+=38*X,v+=38*I,w+=38*m,C+=38*g,R+=38*E,P+=38*T,M+=38*k,A+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=M+i+65535,i=Math.floor(n/65536),M=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=$+i+65535,i=Math.floor(n/65536),$=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=M+i+65535,i=Math.floor(n/65536),M=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=$+i+65535,i=Math.floor(n/65536),$=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=C,e[11]=R,e[12]=P,e[13]=M,e[14]=A,e[15]=$}function wd(e,t){bo(e,t,t)}function AX(e,t){let r=zi();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)wd(r,r),n!==2&&n!==4&&bo(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function Ib(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=zi(),o=zi(),s=zi(),a=zi(),u=zi(),l=zi();for(let v=0;v<31;v++)r[v]=e[v];r[31]=e[31]&127|64,r[0]&=248,RX(n,t);for(let v=0;v<16;v++)o[v]=n[v];i[0]=a[0]=1;for(let v=254;v>=0;--v){let w=r[v>>>3]>>>(v&7)&1;vd(i,o,w),vd(s,a,w),wg(u,i,s),xg(i,i,s),wg(s,o,a),xg(o,o,a),wd(a,u),wd(l,i),bo(i,s,i),bo(s,o,u),wg(u,i,s),xg(i,i,s),wd(o,i),xg(s,a,l),bo(i,s,OX),wg(i,i,a),bo(s,s,i),bo(i,a,l),bo(a,o,n),wd(o,u),vd(i,o,w),vd(s,a,w)}for(let v=0;v<16;v++)n[v+16]=i[v],n[v+32]=s[v],n[v+48]=o[v],n[v+64]=a[v];let p=n.subarray(32),h=n.subarray(16);AX(p,p),bo(h,h,p);let y=new Uint8Array(32);return IX(y,h),y}Zt.scalarMult=Ib;function JM(e){return Ib(e,QM)}Zt.scalarMultBase=JM;function eN(e){if(e.length!==Zt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Zt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:JM(t),secretKey:t}}Zt.generateKeyPairFromSeed=eN;function MX(e){let t=(0,TX.randomBytes)(32,e),r=eN(t);return(0,DX.wipe)(t),r}Zt.generateKeyPair=MX;function NX(e,t,r=!1){if(e.length!==Zt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Zt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Ib(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Zt.sharedKey=NX});var Da=we(Mt=>{"use strict";c();d();f();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getLocalStorage=Mt.getLocalStorageOrThrow=Mt.getCrypto=Mt.getCryptoOrThrow=Mt.getLocation=Mt.getLocationOrThrow=Mt.getNavigator=Mt.getNavigatorOrThrow=Mt.getDocument=Mt.getDocumentOrThrow=Mt.getFromWindowOrThrow=Mt.getFromWindow=void 0;function Ta(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Mt.getFromWindow=Ta;function Xl(e){let t=Ta(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Mt.getFromWindowOrThrow=Xl;function GX(){return Xl("document")}Mt.getDocumentOrThrow=GX;function YX(){return Ta("document")}Mt.getDocument=YX;function XX(){return Xl("navigator")}Mt.getNavigatorOrThrow=XX;function ZX(){return Ta("navigator")}Mt.getNavigator=ZX;function QX(){return Xl("location")}Mt.getLocationOrThrow=QX;function JX(){return Ta("location")}Mt.getLocation=JX;function eZ(){return Xl("crypto")}Mt.getCryptoOrThrow=eZ;function tZ(){return Ta("crypto")}Mt.getCrypto=tZ;function rZ(){return Xl("localStorage")}Mt.getLocalStorageOrThrow=rZ;function nZ(){return Ta("localStorage")}Mt.getLocalStorage=nZ});var lN=we(Eg=>{"use strict";c();d();f();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getWindowMetadata=void 0;var uN=Da();function iZ(){let e,t;try{e=uN.getDocumentOrThrow(),t=uN.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],C=w.getAttribute("rel");if(C&&C.toLowerCase().indexOf("icon")>-1){let R=w.getAttribute("href");if(R)if(R.toLowerCase().indexOf("https:")===-1&&R.toLowerCase().indexOf("http:")===-1&&R.indexOf("//")!==0){let P=t.protocol+"//"+t.host;if(R.indexOf("/")===0)P+=R;else{let M=t.pathname.split("/");M.pop(),P+=M.join("/")+"/"+R}y.push(P)}else if(R.indexOf("//")===0){let P=t.protocol+R;y.push(P)}else y.push(R)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],C=["itemprop","property","name"].map(R=>w.getAttribute(R)).filter(R=>R?h.includes(R):!1);if(C.length&&C){let R=w.getAttribute("content");if(R)return R}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Eg.getWindowMetadata=iZ});var Sg=we((Vwe,cN)=>{"use strict";c();d();f();cN.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Cg=we((jwe,pN)=>{"use strict";c();d();f();var hN="%[a-f0-9]{2}",fN=new RegExp("("+hN+")|([^%]+?)","gi"),dN=new RegExp("("+hN+")+","gi");function Ab(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Ab(r),Ab(n))}function oZ(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(fN)||[],r=1;r<t.length;r++)e=Ab(t,r).join(""),t=e.match(fN)||[];return e}}function sZ(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=dN.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=oZ(r[0]);n!==r[0]&&(t[r[0]]=n)}r=dN.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}pN.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return sZ(e)}}});var Pg=we((Bwe,mN)=>{"use strict";c();d();f();mN.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var Tg=we((zwe,gN)=>{"use strict";c();d();f();gN.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var SN=we(yn=>{"use strict";c();d();f();var aZ=Sg(),uZ=Cg(),vN=Pg(),lZ=Tg(),cZ=e=>e==null,Mb=Symbol("encodeFragmentIdentifier");function fZ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[er(t,e),"[",i,"]"].join("")]:[...r,[er(t,e),"[",er(i,e),"]=",er(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[er(t,e),"[]"].join("")]:[...r,[er(t,e),"[]=",er(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[er(t,e),":list="].join("")]:[...r,[er(t,e),":list=",er(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[er(r,e),t,er(i,e)].join("")]:[[n,er(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,er(t,e)]:[...r,[er(t,e),"=",er(n,e)].join("")]}}function dZ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&_o(n,e).includes(e.arrayFormatSeparator);n=s?_o(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>_o(u,e)):n===null?n:_o(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&_o(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>_o(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function wN(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function er(e,t){return t.encode?t.strict?aZ(e):encodeURIComponent(e):e}function _o(e,t){return t.decode?uZ(e):e}function xN(e){return Array.isArray(e)?e.sort():typeof e=="object"?xN(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function bN(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function hZ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function _N(e){e=bN(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function yN(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function EN(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),wN(t.arrayFormatSeparator);let r=dZ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=vN(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:_o(s,t),r(_o(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=yN(o[s],t);else n[i]=yN(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=xN(s):i[o]=s,i},Object.create(null))}yn.extract=_N;yn.parse=EN;yn.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),wN(t.arrayFormatSeparator);let r=s=>t.skipNull&&cZ(e[s])||t.skipEmptyString&&e[s]==="",n=fZ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?er(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?er(s,t)+"[]":a.reduce(n(s),[]).join("&"):er(s,t)+"="+er(a,t)}).filter(s=>s.length>0).join("&")};yn.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=vN(e,"#");return Object.assign({url:r.split("?")[0]||"",query:EN(_N(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:_o(n,t)}:{})};yn.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Mb]:!0},t);let r=bN(e.url).split("?")[0]||"",n=yn.extract(e.url),i=yn.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=yn.stringify(o,t);s&&(s=`?${s}`);let a=hZ(e.url);return e.fragmentIdentifier&&(a=`#${t[Mb]?er(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};yn.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Mb]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=yn.parseUrl(e,r);return yn.stringifyUrl({url:n,query:lZ(i,t),fragmentIdentifier:o},r)};yn.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return yn.pick(e,n,r)}});var Ek=we((bxe,zg)=>{c();d();f();var nk,ik,ok,sk,ak,uk,lk,ck,fk,Bg,Yb,dk,hk,ec,pk,mk,gk,yk,vk,wk,xk,bk,_k;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof zg=="object"&&typeof zg.exports=="object"?e(r(t,r(zg.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};nk=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},ik=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},ok=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},sk=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},ak=function(r,n){return function(i,o){n(i,o,r)}},uk=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},lk=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},ck=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},_k=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},fk=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Bg=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Yb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},dk=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Yb(arguments[n]));return r},hk=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},ec=function(r){return this instanceof ec?(this.v=r,this):new ec(r)},pk=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(C){return new Promise(function(R,P){a.push([w,C,R,P])>1||l(w,C)})})}function l(w,C){try{p(o[w](C))}catch(R){v(a[0][3],R)}}function p(w){w.value instanceof ec?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,C){w(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},mk=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:ec(r[s](u)),done:s==="return"}:a?a(u):u}:a}},gk=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Bg=="function"?Bg(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},yk=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},vk=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},wk=function(r){return r&&r.__esModule?r:{default:r}},xk=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},bk=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",nk),e("__assign",ik),e("__rest",ok),e("__decorate",sk),e("__param",ak),e("__metadata",uk),e("__awaiter",lk),e("__generator",ck),e("__exportStar",fk),e("__createBinding",_k),e("__values",Bg),e("__read",Yb),e("__spread",dk),e("__spreadArrays",hk),e("__await",ec),e("__asyncGenerator",pk),e("__asyncDelegator",mk),e("__asyncValues",gk),e("__makeTemplateObject",yk),e("__importStar",vk),e("__importDefault",wk),e("__classPrivateFieldGet",xk),e("__classPrivateFieldSet",bk)})});var Ck=we(Ps=>{"use strict";c();d();f();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.isBrowserCryptoAvailable=Ps.getSubtleCrypto=Ps.getBrowerCrypto=void 0;function Xb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Ps.getBrowerCrypto=Xb;function Sk(){let e=Xb();return e.subtle||e.webkitSubtle}Ps.getSubtleCrypto=Sk;function jZ(){return!!Xb()&&!!Sk()}Ps.isBrowserCryptoAvailable=jZ});var Dk=we(Ts=>{"use strict";c();d();f();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.isBrowser=Ts.isNode=Ts.isReactNative=void 0;function Pk(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Ts.isReactNative=Pk;function Tk(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Ts.isNode=Tk;function BZ(){return!Pk()&&!Tk()}Ts.isBrowser=BZ});var Zb=we(Hg=>{"use strict";c();d();f();Object.defineProperty(Hg,"__esModule",{value:!0});var Ok=Ek();Ok.__exportStar(Ck(),Hg);Ok.__exportStar(Dk(),Hg)});var Lk=we((r2e,Fk)=>{"use strict";c();d();f();Fk.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var _7=we((Dd,oc)=>{c();d();f();var eQ=200,d_="__lodash_hash_undefined__",ny=1,Jk=2,e7=9007199254740991,Xg="[object Arguments]",o_="[object Array]",tQ="[object AsyncFunction]",t7="[object Boolean]",r7="[object Date]",n7="[object Error]",i7="[object Function]",rQ="[object GeneratorFunction]",Zg="[object Map]",o7="[object Number]",nQ="[object Null]",ic="[object Object]",Bk="[object Promise]",iQ="[object Proxy]",s7="[object RegExp]",Qg="[object Set]",a7="[object String]",oQ="[object Symbol]",sQ="[object Undefined]",s_="[object WeakMap]",u7="[object ArrayBuffer]",Jg="[object DataView]",aQ="[object Float32Array]",uQ="[object Float64Array]",lQ="[object Int8Array]",cQ="[object Int16Array]",fQ="[object Int32Array]",dQ="[object Uint8Array]",hQ="[object Uint8ClampedArray]",pQ="[object Uint16Array]",mQ="[object Uint32Array]",gQ=/[\\^$.*+?()[\]{}|]/g,yQ=/^\[object .+?Constructor\]$/,vQ=/^(?:0|[1-9]\d*)$/,$t={};$t[aQ]=$t[uQ]=$t[lQ]=$t[cQ]=$t[fQ]=$t[dQ]=$t[hQ]=$t[pQ]=$t[mQ]=!0;$t[Xg]=$t[o_]=$t[u7]=$t[t7]=$t[Jg]=$t[r7]=$t[n7]=$t[i7]=$t[Zg]=$t[o7]=$t[ic]=$t[s7]=$t[Qg]=$t[a7]=$t[s_]=!1;var l7=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,wQ=typeof self=="object"&&self&&self.Object===Object&&self,Eo=l7||wQ||Function("return this")(),c7=typeof Dd=="object"&&Dd&&!Dd.nodeType&&Dd,zk=c7&&typeof oc=="object"&&oc&&!oc.nodeType&&oc,f7=zk&&zk.exports===c7,r_=f7&&l7.process,Hk=function(){try{return r_&&r_.binding&&r_.binding("util")}catch(e){}}(),qk=Hk&&Hk.isTypedArray;function xQ(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function bQ(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function _Q(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function EQ(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function SQ(e){return function(t){return e(t)}}function CQ(e,t){return e.has(t)}function PQ(e,t){return e==null?void 0:e[t]}function TQ(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function DQ(e,t){return function(r){return e(t(r))}}function OQ(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var IQ=Array.prototype,RQ=Function.prototype,iy=Object.prototype,n_=Eo["__core-js_shared__"],d7=RQ.toString,Hi=iy.hasOwnProperty,Kk=function(){var e=/[^.]+$/.exec(n_&&n_.keys&&n_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),h7=iy.toString,AQ=RegExp("^"+d7.call(Hi).replace(gQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wk=f7?Eo.Buffer:void 0,ey=Eo.Symbol,Gk=Eo.Uint8Array,p7=iy.propertyIsEnumerable,MQ=IQ.splice,Ma=ey?ey.toStringTag:void 0,Yk=Object.getOwnPropertySymbols,NQ=Wk?Wk.isBuffer:void 0,kQ=DQ(Object.keys,Object),a_=sc(Eo,"DataView"),Od=sc(Eo,"Map"),u_=sc(Eo,"Promise"),l_=sc(Eo,"Set"),c_=sc(Eo,"WeakMap"),Id=sc(Object,"create"),FQ=Fa(a_),LQ=Fa(Od),$Q=Fa(u_),UQ=Fa(l_),VQ=Fa(c_),Xk=ey?ey.prototype:void 0,i_=Xk?Xk.valueOf:void 0;function Na(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jQ(){this.__data__=Id?Id(null):{},this.size=0}function BQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function zQ(e){var t=this.__data__;if(Id){var r=t[e];return r===d_?void 0:r}return Hi.call(t,e)?t[e]:void 0}function HQ(e){var t=this.__data__;return Id?t[e]!==void 0:Hi.call(t,e)}function qQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Id&&t===void 0?d_:t,this}Na.prototype.clear=jQ;Na.prototype.delete=BQ;Na.prototype.get=zQ;Na.prototype.has=HQ;Na.prototype.set=qQ;function So(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function KQ(){this.__data__=[],this.size=0}function WQ(e){var t=this.__data__,r=oy(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():MQ.call(t,r,1),--this.size,!0}function GQ(e){var t=this.__data__,r=oy(t,e);return r<0?void 0:t[r][1]}function YQ(e){return oy(this.__data__,e)>-1}function XQ(e,t){var r=this.__data__,n=oy(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}So.prototype.clear=KQ;So.prototype.delete=WQ;So.prototype.get=GQ;So.prototype.has=YQ;So.prototype.set=XQ;function ka(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ZQ(){this.size=0,this.__data__={hash:new Na,map:new(Od||So),string:new Na}}function QQ(e){var t=sy(this,e).delete(e);return this.size-=t?1:0,t}function JQ(e){return sy(this,e).get(e)}function eJ(e){return sy(this,e).has(e)}function tJ(e,t){var r=sy(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ka.prototype.clear=ZQ;ka.prototype.delete=QQ;ka.prototype.get=JQ;ka.prototype.has=eJ;ka.prototype.set=tJ;function ty(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ka;++t<r;)this.add(e[t])}function rJ(e){return this.__data__.set(e,d_),this}function nJ(e){return this.__data__.has(e)}ty.prototype.add=ty.prototype.push=rJ;ty.prototype.has=nJ;function Is(e){var t=this.__data__=new So(e);this.size=t.size}function iJ(){this.__data__=new So,this.size=0}function oJ(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function sJ(e){return this.__data__.get(e)}function aJ(e){return this.__data__.has(e)}function uJ(e,t){var r=this.__data__;if(r instanceof So){var n=r.__data__;if(!Od||n.length<eQ-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ka(n)}return r.set(e,t),this.size=r.size,this}Is.prototype.clear=iJ;Is.prototype.delete=oJ;Is.prototype.get=sJ;Is.prototype.has=aJ;Is.prototype.set=uJ;function lJ(e,t){var r=ry(e),n=!r&&SJ(e),i=!r&&!n&&f_(e),o=!r&&!n&&!i&&b7(e),s=r||n||i||o,a=s?EQ(e.length,String):[],u=a.length;for(var l in e)(t||Hi.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||wJ(l,u)))&&a.push(l);return a}function oy(e,t){for(var r=e.length;r--;)if(y7(e[r][0],t))return r;return-1}function cJ(e,t,r){var n=t(e);return ry(e)?n:bQ(n,r(e))}function Ad(e){return e==null?e===void 0?sQ:nQ:Ma&&Ma in Object(e)?yJ(e):EJ(e)}function Zk(e){return Rd(e)&&Ad(e)==Xg}function m7(e,t,r,n,i){return e===t?!0:e==null||t==null||!Rd(e)&&!Rd(t)?e!==e&&t!==t:fJ(e,t,r,n,m7,i)}function fJ(e,t,r,n,i,o){var s=ry(e),a=ry(t),u=s?o_:Os(e),l=a?o_:Os(t);u=u==Xg?ic:u,l=l==Xg?ic:l;var p=u==ic,h=l==ic,y=u==l;if(y&&f_(e)){if(!f_(t))return!1;s=!0,p=!1}if(y&&!p)return o||(o=new Is),s||b7(e)?g7(e,t,r,n,i,o):mJ(e,t,u,r,n,i,o);if(!(r&ny)){var v=p&&Hi.call(e,"__wrapped__"),w=h&&Hi.call(t,"__wrapped__");if(v||w){var C=v?e.value():e,R=w?t.value():t;return o||(o=new Is),i(C,R,r,n,o)}}return y?(o||(o=new Is),gJ(e,t,r,n,i,o)):!1}function dJ(e){if(!x7(e)||bJ(e))return!1;var t=v7(e)?AQ:yQ;return t.test(Fa(e))}function hJ(e){return Rd(e)&&w7(e.length)&&!!$t[Ad(e)]}function pJ(e){if(!_J(e))return kQ(e);var t=[];for(var r in Object(e))Hi.call(e,r)&&r!="constructor"&&t.push(r);return t}function g7(e,t,r,n,i,o){var s=r&ny,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,y=r&Jk?new ty:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var v=e[p],w=t[p];if(n)var C=s?n(w,v,p,t,e,o):n(v,w,p,e,t,o);if(C!==void 0){if(C)continue;h=!1;break}if(y){if(!_Q(t,function(R,P){if(!CQ(y,P)&&(v===R||i(v,R,r,n,o)))return y.push(P)})){h=!1;break}}else if(!(v===w||i(v,w,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function mJ(e,t,r,n,i,o,s){switch(r){case Jg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case u7:return!(e.byteLength!=t.byteLength||!o(new Gk(e),new Gk(t)));case t7:case r7:case o7:return y7(+e,+t);case n7:return e.name==t.name&&e.message==t.message;case s7:case a7:return e==t+"";case Zg:var a=TQ;case Qg:var u=n&ny;if(a||(a=OQ),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=Jk,s.set(e,t);var p=g7(a(e),a(t),n,i,o,s);return s.delete(e),p;case oQ:if(i_)return i_.call(e)==i_.call(t)}return!1}function gJ(e,t,r,n,i,o){var s=r&ny,a=Qk(e),u=a.length,l=Qk(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:Hi.call(t,y)))return!1}var v=o.get(e);if(v&&o.get(t))return v==t;var w=!0;o.set(e,t),o.set(t,e);for(var C=s;++h<u;){y=a[h];var R=e[y],P=t[y];if(n)var M=s?n(P,R,y,t,e,o):n(R,P,y,e,t,o);if(!(M===void 0?R===P||i(R,P,r,n,o):M)){w=!1;break}C||(C=y=="constructor")}if(w&&!C){var A=e.constructor,$=t.constructor;A!=$&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof $=="function"&&$ instanceof $)&&(w=!1)}return o.delete(e),o.delete(t),w}function Qk(e){return cJ(e,TJ,vJ)}function sy(e,t){var r=e.__data__;return xJ(t)?r[typeof t=="string"?"string":"hash"]:r.map}function sc(e,t){var r=PQ(e,t);return dJ(r)?r:void 0}function yJ(e){var t=Hi.call(e,Ma),r=e[Ma];try{e[Ma]=void 0;var n=!0}catch(o){}var i=h7.call(e);return n&&(t?e[Ma]=r:delete e[Ma]),i}var vJ=Yk?function(e){return e==null?[]:(e=Object(e),xQ(Yk(e),function(t){return p7.call(e,t)}))}:DJ,Os=Ad;(a_&&Os(new a_(new ArrayBuffer(1)))!=Jg||Od&&Os(new Od)!=Zg||u_&&Os(u_.resolve())!=Bk||l_&&Os(new l_)!=Qg||c_&&Os(new c_)!=s_)&&(Os=function(e){var t=Ad(e),r=t==ic?e.constructor:void 0,n=r?Fa(r):"";if(n)switch(n){case FQ:return Jg;case LQ:return Zg;case $Q:return Bk;case UQ:return Qg;case VQ:return s_}return t});function wJ(e,t){return t=t==null?e7:t,!!t&&(typeof e=="number"||vQ.test(e))&&e>-1&&e%1==0&&e<t}function xJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bJ(e){return!!Kk&&Kk in e}function _J(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||iy;return e===r}function EJ(e){return h7.call(e)}function Fa(e){if(e!=null){try{return d7.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function y7(e,t){return e===t||e!==e&&t!==t}var SJ=Zk(function(){return arguments}())?Zk:function(e){return Rd(e)&&Hi.call(e,"callee")&&!p7.call(e,"callee")},ry=Array.isArray;function CJ(e){return e!=null&&w7(e.length)&&!v7(e)}var f_=NQ||OJ;function PJ(e,t){return m7(e,t)}function v7(e){if(!x7(e))return!1;var t=Ad(e);return t==i7||t==rQ||t==tQ||t==iQ}function w7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e7}function x7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Rd(e){return e!=null&&typeof e=="object"}var b7=qk?SQ(qk):hJ;function TJ(e){return CJ(e)?lJ(e):pJ(e)}function DJ(){return[]}function OJ(){return!1}oc.exports=PJ});var nF=we(dy=>{"use strict";c();d();f();Object.defineProperty(dy,"__esModule",{value:!0});dy.getWindowMetadata=void 0;var rF=Da();function kte(){let e,t;try{e=rF.getDocumentOrThrow(),t=rF.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],C=w.getAttribute("rel");if(C&&C.toLowerCase().indexOf("icon")>-1){let R=w.getAttribute("href");if(R)if(R.toLowerCase().indexOf("https:")===-1&&R.toLowerCase().indexOf("http:")===-1&&R.indexOf("//")!==0){let P=t.protocol+"//"+t.host;if(R.indexOf("/")===0)P+=R;else{let M=t.pathname.split("/");M.pop(),P+=M.join("/")+"/"+R}y.push(P)}else if(R.indexOf("//")===0){let P=t.protocol+R;y.push(P)}else y.push(R)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],C=["itemprop","property","name"].map(R=>w.getAttribute(R)).filter(R=>R?h.includes(R):!1);if(C.length&&C){let R=w.getAttribute("content");if(R)return R}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}dy.getWindowMetadata=kte});var fF=we(wn=>{"use strict";c();d();f();var Fte=Sg(),Lte=Cg(),oF=Pg(),$te=Tg(),Ute=e=>e==null,F_=Symbol("encodeFragmentIdentifier");function Vte(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[rr(t,e),"[",i,"]"].join("")]:[...r,[rr(t,e),"[",rr(i,e),"]=",rr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[rr(t,e),"[]"].join("")]:[...r,[rr(t,e),"[]=",rr(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[rr(t,e),":list="].join("")]:[...r,[rr(t,e),":list=",rr(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[rr(r,e),t,rr(i,e)].join("")]:[[n,rr(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,rr(t,e)]:[...r,[rr(t,e),"=",rr(n,e)].join("")]}}function jte(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Po(n,e).includes(e.arrayFormatSeparator);n=s?Po(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Po(u,e)):n===null?n:Po(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Po(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Po(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function sF(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function rr(e,t){return t.encode?t.strict?Fte(e):encodeURIComponent(e):e}function Po(e,t){return t.decode?Lte(e):e}function aF(e){return Array.isArray(e)?e.sort():typeof e=="object"?aF(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function uF(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Bte(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function lF(e){e=uF(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function iF(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function cF(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),sF(t.arrayFormatSeparator);let r=jte(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=oF(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Po(s,t),r(Po(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=iF(o[s],t);else n[i]=iF(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=aF(s):i[o]=s,i},Object.create(null))}wn.extract=lF;wn.parse=cF;wn.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),sF(t.arrayFormatSeparator);let r=s=>t.skipNull&&Ute(e[s])||t.skipEmptyString&&e[s]==="",n=Vte(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?rr(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?rr(s,t)+"[]":a.reduce(n(s),[]).join("&"):rr(s,t)+"="+rr(a,t)}).filter(s=>s.length>0).join("&")};wn.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=oF(e,"#");return Object.assign({url:r.split("?")[0]||"",query:cF(lF(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Po(n,t)}:{})};wn.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[F_]:!0},t);let r=uF(e.url).split("?")[0]||"",n=wn.extract(e.url),i=wn.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=wn.stringify(o,t);s&&(s=`?${s}`);let a=Bte(e.url);return e.fragmentIdentifier&&(a=`#${t[F_]?rr(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};wn.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[F_]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=wn.parseUrl(e,r);return wn.stringifyUrl({url:n,query:$te(i,t),fragmentIdentifier:o},r)};wn.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return wn.pick(e,n,r)}});var jF=we(yy=>{"use strict";c();d();f();Object.defineProperty(yy,"__esModule",{value:!0});yy.getWindowMetadata=void 0;var VF=Da();function dre(){let e,t;try{e=VF.getDocumentOrThrow(),t=VF.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],C=w.getAttribute("rel");if(C&&C.toLowerCase().indexOf("icon")>-1){let R=w.getAttribute("href");if(R)if(R.toLowerCase().indexOf("https:")===-1&&R.toLowerCase().indexOf("http:")===-1&&R.indexOf("//")!==0){let P=t.protocol+"//"+t.host;if(R.indexOf("/")===0)P+=R;else{let M=t.pathname.split("/");M.pop(),P+=M.join("/")+"/"+R}y.push(P)}else if(R.indexOf("//")===0){let P=t.protocol+R;y.push(P)}else y.push(R)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],C=["itemprop","property","name"].map(R=>w.getAttribute(R)).filter(R=>R?h.includes(R):!1);if(C.length&&C){let R=w.getAttribute("content");if(R)return R}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}yy.getWindowMetadata=dre});var YF=we(bn=>{"use strict";c();d();f();var hre=Sg(),pre=Cg(),zF=Pg(),mre=Tg(),gre=e=>e==null,Z_=Symbol("encodeFragmentIdentifier");function yre(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[nr(t,e),"[",i,"]"].join("")]:[...r,[nr(t,e),"[",nr(i,e),"]=",nr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[nr(t,e),"[]"].join("")]:[...r,[nr(t,e),"[]=",nr(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[nr(t,e),":list="].join("")]:[...r,[nr(t,e),":list=",nr(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[nr(r,e),t,nr(i,e)].join("")]:[[n,nr(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,nr(t,e)]:[...r,[nr(t,e),"=",nr(n,e)].join("")]}}function vre(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&To(n,e).includes(e.arrayFormatSeparator);n=s?To(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>To(u,e)):n===null?n:To(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&To(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>To(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function HF(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function nr(e,t){return t.encode?t.strict?hre(e):encodeURIComponent(e):e}function To(e,t){return t.decode?pre(e):e}function qF(e){return Array.isArray(e)?e.sort():typeof e=="object"?qF(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function KF(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function wre(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function WF(e){e=KF(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function BF(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function GF(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),HF(t.arrayFormatSeparator);let r=vre(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=zF(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:To(s,t),r(To(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=BF(o[s],t);else n[i]=BF(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=qF(s):i[o]=s,i},Object.create(null))}bn.extract=WF;bn.parse=GF;bn.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),HF(t.arrayFormatSeparator);let r=s=>t.skipNull&&gre(e[s])||t.skipEmptyString&&e[s]==="",n=yre(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?nr(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?nr(s,t)+"[]":a.reduce(n(s),[]).join("&"):nr(s,t)+"="+nr(a,t)}).filter(s=>s.length>0).join("&")};bn.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=zF(e,"#");return Object.assign({url:r.split("?")[0]||"",query:GF(WF(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:To(n,t)}:{})};bn.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Z_]:!0},t);let r=KF(e.url).split("?")[0]||"",n=bn.extract(e.url),i=bn.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=bn.stringify(o,t);s&&(s=`?${s}`);let a=wre(e.url);return e.fragmentIdentifier&&(a=`#${t[Z_]?nr(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};bn.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Z_]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=bn.parseUrl(e,r);return bn.stringifyUrl({url:n,query:mre(i,t),fragmentIdentifier:o},r)};bn.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return bn.pick(e,n,r)}});var e9=we((M2e,vy)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof vy=="object"&&vy.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],v=[6,1536,393216,100663296],w=[0,8,16,24],C=[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],R=[224,256,384,512],P=[128,256],M=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(D){return Object.prototype.toString.call(D)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(D){return typeof D=="object"&&D.buffer&&D.buffer.constructor===ArrayBuffer});for(var $=function(D,Z,re){return function(ae){return new b(D,Z,D).update(ae)[re]()}},W=function(D,Z,re){return function(ae,ce){return new b(D,Z,ce).update(ae)[re]()}},ee=function(D,Z,re){return function(ae,ce,Y,Q){return m["cshake"+D].update(ae,ce,Y,Q)[re]()}},q=function(D,Z,re){return function(ae,ce,Y,Q){return m["kmac"+D].update(ae,ce,Y,Q)[re]()}},K=function(D,Z,re,ae){for(var ce=0;ce<M.length;++ce){var Y=M[ce];D[Y]=Z(re,ae,Y)}return D},ue=function(D,Z){var re=$(D,Z,"hex");return re.create=function(){return new b(D,Z,D)},re.update=function(ae){return re.create().update(ae)},K(re,$,D,Z)},pe=function(D,Z){var re=W(D,Z,"hex");return re.create=function(ae){return new b(D,Z,ae)},re.update=function(ae,ce){return re.create(ce).update(ae)},K(re,W,D,Z)},fe=function(D,Z){var re=A[D],ae=ee(D,Z,"hex");return ae.create=function(ce,Y,Q){return!Y&&!Q?m["shake"+D].create(ce):new b(D,Z,ce).bytepad([Y,Q],re)},ae.update=function(ce,Y,Q,G){return ae.create(Y,Q,G).update(ce)},K(ae,ee,D,Z)},X=function(D,Z){var re=A[D],ae=q(D,Z,"hex");return ae.create=function(ce,Y,Q){return new j(D,Z,Y).bytepad(["KMAC",Q],re).bytepad([ce],re)},ae.update=function(ce,Y,Q,G){return ae.create(ce,Q,G).update(Y)},K(ae,q,D,Z)},I=[{name:"keccak",padding:y,bits:R,createMethod:ue},{name:"sha3",padding:v,bits:R,createMethod:ue},{name:"shake",padding:p,bits:P,createMethod:pe},{name:"cshake",padding:h,bits:P,createMethod:fe},{name:"kmac",padding:h,bits:P,createMethod:X}],m={},g=[],E=0;E<I.length;++E)for(var T=I[E],k=T.bits,V=0;V<k.length;++V){var H=T.name+"_"+k[V];if(g.push(H),m[H]=T.createMethod(k[V],T.padding),T.name!=="sha3"){var U=T.name+k[V];g.push(U),m[U]=m[H]}}function b(D,Z,re){this.blocks=[],this.s=[],this.padding=Z,this.outputBits=re,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(D<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=re>>5,this.extraBytes=(re&31)>>3;for(var ae=0;ae<50;++ae)this.s[ae]=0}b.prototype.update=function(D){if(this.finalized)throw new Error(t);var Z,re=typeof D;if(re!=="string"){if(re==="object"){if(D===null)throw new Error(e);if(u&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!Array.isArray(D)&&(!u||!ArrayBuffer.isView(D)))throw new Error(e)}else throw new Error(e);Z=!0}for(var ae=this.blocks,ce=this.byteCount,Y=D.length,Q=this.blockCount,G=0,se=this.s,te,ge;G<Y;){if(this.reset)for(this.reset=!1,ae[0]=this.block,te=1;te<Q+1;++te)ae[te]=0;if(Z)for(te=this.start;G<Y&&te<ce;++G)ae[te>>2]|=D[G]<<w[te++&3];else for(te=this.start;G<Y&&te<ce;++G)ge=D.charCodeAt(G),ge<128?ae[te>>2]|=ge<<w[te++&3]:ge<2048?(ae[te>>2]|=(192|ge>>6)<<w[te++&3],ae[te>>2]|=(128|ge&63)<<w[te++&3]):ge<55296||ge>=57344?(ae[te>>2]|=(224|ge>>12)<<w[te++&3],ae[te>>2]|=(128|ge>>6&63)<<w[te++&3],ae[te>>2]|=(128|ge&63)<<w[te++&3]):(ge=65536+((ge&1023)<<10|D.charCodeAt(++G)&1023),ae[te>>2]|=(240|ge>>18)<<w[te++&3],ae[te>>2]|=(128|ge>>12&63)<<w[te++&3],ae[te>>2]|=(128|ge>>6&63)<<w[te++&3],ae[te>>2]|=(128|ge&63)<<w[te++&3]);if(this.lastByteIndex=te,te>=ce){for(this.start=te-ce,this.block=ae[Q],te=0;te<Q;++te)se[te]^=ae[te];he(se),this.reset=!0}else this.start=te}return this},b.prototype.encode=function(D,Z){var re=D&255,ae=1,ce=[re];for(D=D>>8,re=D&255;re>0;)ce.unshift(re),D=D>>8,re=D&255,++ae;return Z?ce.push(ae):ce.unshift(ae),this.update(ce),ce.length},b.prototype.encodeString=function(D){var Z,re=typeof D;if(re!=="string"){if(re==="object"){if(D===null)throw new Error(e);if(u&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!Array.isArray(D)&&(!u||!ArrayBuffer.isView(D)))throw new Error(e)}else throw new Error(e);Z=!0}var ae=0,ce=D.length;if(Z)ae=ce;else for(var Y=0;Y<D.length;++Y){var Q=D.charCodeAt(Y);Q<128?ae+=1:Q<2048?ae+=2:Q<55296||Q>=57344?ae+=3:(Q=65536+((Q&1023)<<10|D.charCodeAt(++Y)&1023),ae+=4)}return ae+=this.encode(ae*8),this.update(D),ae},b.prototype.bytepad=function(D,Z){for(var re=this.encode(Z),ae=0;ae<D.length;++ae)re+=this.encodeString(D[ae]);var ce=Z-re%Z,Y=[];return Y.length=ce,this.update(Y),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var D=this.blocks,Z=this.lastByteIndex,re=this.blockCount,ae=this.s;if(D[Z>>2]|=this.padding[Z&3],this.lastByteIndex===this.byteCount)for(D[0]=D[re],Z=1;Z<re+1;++Z)D[Z]=0;for(D[re-1]|=2147483648,Z=0;Z<re;++Z)ae[Z]^=D[Z];he(ae)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var D=this.blockCount,Z=this.s,re=this.outputBlocks,ae=this.extraBytes,ce=0,Y=0,Q="",G;Y<re;){for(ce=0;ce<D&&Y<re;++ce,++Y)G=Z[ce],Q+=l[G>>4&15]+l[G&15]+l[G>>12&15]+l[G>>8&15]+l[G>>20&15]+l[G>>16&15]+l[G>>28&15]+l[G>>24&15];Y%D===0&&(he(Z),ce=0)}return ae&&(G=Z[ce],Q+=l[G>>4&15]+l[G&15],ae>1&&(Q+=l[G>>12&15]+l[G>>8&15]),ae>2&&(Q+=l[G>>20&15]+l[G>>16&15])),Q},b.prototype.arrayBuffer=function(){this.finalize();var D=this.blockCount,Z=this.s,re=this.outputBlocks,ae=this.extraBytes,ce=0,Y=0,Q=this.outputBits>>3,G;ae?G=new ArrayBuffer(re+1<<2):G=new ArrayBuffer(Q);for(var se=new Uint32Array(G);Y<re;){for(ce=0;ce<D&&Y<re;++ce,++Y)se[Y]=Z[ce];Y%D===0&&he(Z)}return ae&&(se[ce]=Z[ce],G=G.slice(0,Q)),G},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var D=this.blockCount,Z=this.s,re=this.outputBlocks,ae=this.extraBytes,ce=0,Y=0,Q=[],G,se;Y<re;){for(ce=0;ce<D&&Y<re;++ce,++Y)G=Y<<2,se=Z[ce],Q[G]=se&255,Q[G+1]=se>>8&255,Q[G+2]=se>>16&255,Q[G+3]=se>>24&255;Y%D===0&&he(Z)}return ae&&(G=Y<<2,se=Z[ce],Q[G]=se&255,ae>1&&(Q[G+1]=se>>8&255),ae>2&&(Q[G+2]=se>>16&255)),Q};function j(D,Z,re){b.call(this,D,Z,re)}j.prototype=new b,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var he=function(D){var Z,re,ae,ce,Y,Q,G,se,te,ge,Ge,Re,$e,ot,J,S,L,N,F,B,z,ie,oe,de,le,ve,ye,Ee,ke,ze,Ae,Be,Te,Se,be,Ue,Ce,wt,qe,Je,De,Ye,dt,ir,xt,Qe,Hr,ut,bt,li,rt,Ke,zt,We,st,qr,at,pt,Io,Ro,Ao,Mo,No;for(ae=0;ae<48;ae+=2)ce=D[0]^D[10]^D[20]^D[30]^D[40],Y=D[1]^D[11]^D[21]^D[31]^D[41],Q=D[2]^D[12]^D[22]^D[32]^D[42],G=D[3]^D[13]^D[23]^D[33]^D[43],se=D[4]^D[14]^D[24]^D[34]^D[44],te=D[5]^D[15]^D[25]^D[35]^D[45],ge=D[6]^D[16]^D[26]^D[36]^D[46],Ge=D[7]^D[17]^D[27]^D[37]^D[47],Re=D[8]^D[18]^D[28]^D[38]^D[48],$e=D[9]^D[19]^D[29]^D[39]^D[49],Z=Re^(Q<<1|G>>>31),re=$e^(G<<1|Q>>>31),D[0]^=Z,D[1]^=re,D[10]^=Z,D[11]^=re,D[20]^=Z,D[21]^=re,D[30]^=Z,D[31]^=re,D[40]^=Z,D[41]^=re,Z=ce^(se<<1|te>>>31),re=Y^(te<<1|se>>>31),D[2]^=Z,D[3]^=re,D[12]^=Z,D[13]^=re,D[22]^=Z,D[23]^=re,D[32]^=Z,D[33]^=re,D[42]^=Z,D[43]^=re,Z=Q^(ge<<1|Ge>>>31),re=G^(Ge<<1|ge>>>31),D[4]^=Z,D[5]^=re,D[14]^=Z,D[15]^=re,D[24]^=Z,D[25]^=re,D[34]^=Z,D[35]^=re,D[44]^=Z,D[45]^=re,Z=se^(Re<<1|$e>>>31),re=te^($e<<1|Re>>>31),D[6]^=Z,D[7]^=re,D[16]^=Z,D[17]^=re,D[26]^=Z,D[27]^=re,D[36]^=Z,D[37]^=re,D[46]^=Z,D[47]^=re,Z=ge^(ce<<1|Y>>>31),re=Ge^(Y<<1|ce>>>31),D[8]^=Z,D[9]^=re,D[18]^=Z,D[19]^=re,D[28]^=Z,D[29]^=re,D[38]^=Z,D[39]^=re,D[48]^=Z,D[49]^=re,ot=D[0],J=D[1],Qe=D[11]<<4|D[10]>>>28,Hr=D[10]<<4|D[11]>>>28,Ee=D[20]<<3|D[21]>>>29,ke=D[21]<<3|D[20]>>>29,Ro=D[31]<<9|D[30]>>>23,Ao=D[30]<<9|D[31]>>>23,Ye=D[40]<<18|D[41]>>>14,dt=D[41]<<18|D[40]>>>14,Se=D[2]<<1|D[3]>>>31,be=D[3]<<1|D[2]>>>31,S=D[13]<<12|D[12]>>>20,L=D[12]<<12|D[13]>>>20,ut=D[22]<<10|D[23]>>>22,bt=D[23]<<10|D[22]>>>22,ze=D[33]<<13|D[32]>>>19,Ae=D[32]<<13|D[33]>>>19,Mo=D[42]<<2|D[43]>>>30,No=D[43]<<2|D[42]>>>30,We=D[5]<<30|D[4]>>>2,st=D[4]<<30|D[5]>>>2,Ue=D[14]<<6|D[15]>>>26,Ce=D[15]<<6|D[14]>>>26,N=D[25]<<11|D[24]>>>21,F=D[24]<<11|D[25]>>>21,li=D[34]<<15|D[35]>>>17,rt=D[35]<<15|D[34]>>>17,Be=D[45]<<29|D[44]>>>3,Te=D[44]<<29|D[45]>>>3,de=D[6]<<28|D[7]>>>4,le=D[7]<<28|D[6]>>>4,qr=D[17]<<23|D[16]>>>9,at=D[16]<<23|D[17]>>>9,wt=D[26]<<25|D[27]>>>7,qe=D[27]<<25|D[26]>>>7,B=D[36]<<21|D[37]>>>11,z=D[37]<<21|D[36]>>>11,Ke=D[47]<<24|D[46]>>>8,zt=D[46]<<24|D[47]>>>8,ir=D[8]<<27|D[9]>>>5,xt=D[9]<<27|D[8]>>>5,ve=D[18]<<20|D[19]>>>12,ye=D[19]<<20|D[18]>>>12,pt=D[29]<<7|D[28]>>>25,Io=D[28]<<7|D[29]>>>25,Je=D[38]<<8|D[39]>>>24,De=D[39]<<8|D[38]>>>24,ie=D[48]<<14|D[49]>>>18,oe=D[49]<<14|D[48]>>>18,D[0]=ot^~S&N,D[1]=J^~L&F,D[10]=de^~ve&Ee,D[11]=le^~ye&ke,D[20]=Se^~Ue&wt,D[21]=be^~Ce&qe,D[30]=ir^~Qe&ut,D[31]=xt^~Hr&bt,D[40]=We^~qr&pt,D[41]=st^~at&Io,D[2]=S^~N&B,D[3]=L^~F&z,D[12]=ve^~Ee&ze,D[13]=ye^~ke&Ae,D[22]=Ue^~wt&Je,D[23]=Ce^~qe&De,D[32]=Qe^~ut&li,D[33]=Hr^~bt&rt,D[42]=qr^~pt&Ro,D[43]=at^~Io&Ao,D[4]=N^~B&ie,D[5]=F^~z&oe,D[14]=Ee^~ze&Be,D[15]=ke^~Ae&Te,D[24]=wt^~Je&Ye,D[25]=qe^~De&dt,D[34]=ut^~li&Ke,D[35]=bt^~rt&zt,D[44]=pt^~Ro&Mo,D[45]=Io^~Ao&No,D[6]=B^~ie&ot,D[7]=z^~oe&J,D[16]=ze^~Be&de,D[17]=Ae^~Te&le,D[26]=Je^~Ye&Se,D[27]=De^~dt&be,D[36]=li^~Ke&ir,D[37]=rt^~zt&xt,D[46]=Ro^~Mo&We,D[47]=Ao^~No&st,D[8]=ie^~ot&S,D[9]=oe^~J&L,D[18]=Be^~de&ve,D[19]=Te^~le&ye,D[28]=Ye^~Se&Ue,D[29]=dt^~be&Ce,D[38]=Ke^~ir&Qe,D[39]=zt^~xt&Hr,D[48]=Mo^~We&qr,D[49]=No^~st&at,D[0]^=C[ae],D[1]^=C[ae+1]};if(s)vy.exports=m;else{for(E=0;E<g.length;++E)n[g[E]]=m[g[E]];a&&define(function(){return m})}})()});var t9=we(()=>{c();d();f()});var n9=we((r9,eE)=>{c();d();f();(function(e,t){"use strict";function r(I,m){if(!I)throw new Error(m||"Assertion failed")}function n(I,m){I.super_=m;var g=function(){};g.prototype=m.prototype,I.prototype=new g,I.prototype.constructor=I}function i(I,m,g){if(i.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((m==="le"||m==="be")&&(g=m,m=10),this._init(I||0,m||10,g||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=t9().Buffer}catch(I){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,g){return m.cmp(g)>0?m:g},i.min=function(m,g){return m.cmp(g)<0?m:g},i.prototype._init=function(m,g,E){if(typeof m=="number")return this._initNumber(m,g,E);if(typeof m=="object")return this._initArray(m,g,E);g==="hex"&&(g=16),r(g===(g|0)&&g>=2&&g<=36),m=m.toString().replace(/\s+/g,"");var T=0;m[0]==="-"&&(T++,this.negative=1),T<m.length&&(g===16?this._parseHex(m,T,E):(this._parseBase(m,g,T),E==="le"&&this._initArray(this.toArray(),g,E)))},i.prototype._initNumber=function(m,g,E){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),g,E)},i.prototype._initArray=function(m,g,E){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var k,V,H=0;if(E==="be")for(T=m.length-1,k=0;T>=0;T-=3)V=m[T]|m[T-1]<<8|m[T-2]<<16,this.words[k]|=V<<H&67108863,this.words[k+1]=V>>>26-H&67108863,H+=24,H>=26&&(H-=26,k++);else if(E==="le")for(T=0,k=0;T<m.length;T+=3)V=m[T]|m[T+1]<<8|m[T+2]<<16,this.words[k]|=V<<H&67108863,this.words[k+1]=V>>>26-H&67108863,H+=24,H>=26&&(H-=26,k++);return this._strip()};function s(I,m){var g=I.charCodeAt(m);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;r(!1,"Invalid character in "+I)}function a(I,m,g){var E=s(I,g);return g-1>=m&&(E|=s(I,g-1)<<4),E}i.prototype._parseHex=function(m,g,E){this.length=Math.ceil((m.length-g)/6),this.words=new Array(this.length);for(var T=0;T<this.length;T++)this.words[T]=0;var k=0,V=0,H;if(E==="be")for(T=m.length-1;T>=g;T-=2)H=a(m,g,T)<<k,this.words[V]|=H&67108863,k>=18?(k-=18,V+=1,this.words[V]|=H>>>26):k+=8;else{var U=m.length-g;for(T=U%2===0?g+1:g;T<m.length;T+=2)H=a(m,g,T)<<k,this.words[V]|=H&67108863,k>=18?(k-=18,V+=1,this.words[V]|=H>>>26):k+=8}this._strip()};function u(I,m,g,E){for(var T=0,k=0,V=Math.min(I.length,g),H=m;H<V;H++){var U=I.charCodeAt(H)-48;T*=E,U>=49?k=U-49+10:U>=17?k=U-17+10:k=U,r(U>=0&&k<E,"Invalid character"),T+=k}return T}i.prototype._parseBase=function(m,g,E){this.words=[0],this.length=1;for(var T=0,k=1;k<=67108863;k*=g)T++;T--,k=k/g|0;for(var V=m.length-E,H=V%T,U=Math.min(V,V-H)+E,b=0,j=E;j<U;j+=T)b=u(m,j,j+T,g),this.imuln(k),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(H!==0){var he=1;for(b=u(m,j,m.length,g),j=0;j<H;j++)he*=g;this.imuln(he),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var g=0;g<this.length;g++)m.words[g]=this.words[g];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(I,m){I.words=m.words,I.length=m.length,I.negative=m.negative,I.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(I){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){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"],y=[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],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,g){m=m||10,g=g|0||1;var E;if(m===16||m==="hex"){E="";for(var T=0,k=0,V=0;V<this.length;V++){var H=this.words[V],U=((H<<T|k)&16777215).toString(16);k=H>>>24-T&16777215,T+=2,T>=26&&(T-=26,V--),k!==0||V!==this.length-1?E=h[6-U.length]+U+E:E=U+E}for(k!==0&&(E=k.toString(16)+E);E.length%g!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(m===(m|0)&&m>=2&&m<=36){var b=y[m],j=v[m];E="";var he=this.clone();for(he.negative=0;!he.isZero();){var D=he.modrn(j).toString(m);he=he.idivn(j),he.isZero()?E=D+E:E=h[b-D.length]+D+E}for(this.isZero()&&(E="0"+E);E.length%g!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,g){return this.toArrayLike(o,m,g)}),i.prototype.toArray=function(m,g){return this.toArrayLike(Array,m,g)};var w=function(m,g){return m.allocUnsafe?m.allocUnsafe(g):new m(g)};i.prototype.toArrayLike=function(m,g,E){this._strip();var T=this.byteLength(),k=E||Math.max(1,T);r(T<=k,"byte array longer than desired length"),r(k>0,"Requested array length <= 0");var V=w(m,k),H=g==="le"?"LE":"BE";return this["_toArrayLike"+H](V,T),V},i.prototype._toArrayLikeLE=function(m,g){for(var E=0,T=0,k=0,V=0;k<this.length;k++){var H=this.words[k]<<V|T;m[E++]=H&255,E<m.length&&(m[E++]=H>>8&255),E<m.length&&(m[E++]=H>>16&255),V===6?(E<m.length&&(m[E++]=H>>24&255),T=0,V=0):(T=H>>>24,V+=2)}if(E<m.length)for(m[E++]=T;E<m.length;)m[E++]=0},i.prototype._toArrayLikeBE=function(m,g){for(var E=m.length-1,T=0,k=0,V=0;k<this.length;k++){var H=this.words[k]<<V|T;m[E--]=H&255,E>=0&&(m[E--]=H>>8&255),E>=0&&(m[E--]=H>>16&255),V===6?(E>=0&&(m[E--]=H>>24&255),T=0,V=0):(T=H>>>24,V+=2)}if(E>=0)for(m[E--]=T;E>=0;)m[E--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var g=m,E=0;return g>=4096&&(E+=13,g>>>=13),g>=64&&(E+=7,g>>>=7),g>=8&&(E+=4,g>>>=4),g>=2&&(E+=2,g>>>=2),E+g},i.prototype._zeroBits=function(m){if(m===0)return 26;var g=m,E=0;return(g&8191)===0&&(E+=13,g>>>=13),(g&127)===0&&(E+=7,g>>>=7),(g&15)===0&&(E+=4,g>>>=4),(g&3)===0&&(E+=2,g>>>=2),(g&1)===0&&E++,E},i.prototype.bitLength=function(){var m=this.words[this.length-1],g=this._countBits(m);return(this.length-1)*26+g};function C(I){for(var m=new Array(I.bitLength()),g=0;g<m.length;g++){var E=g/26|0,T=g%26;m[g]=I.words[E]>>>T&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,g=0;g<this.length;g++){var E=this._zeroBits(this.words[g]);if(m+=E,E!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var g=0;g<m.length;g++)this.words[g]=this.words[g]|m.words[g];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var g;this.length>m.length?g=m:g=this;for(var E=0;E<g.length;E++)this.words[E]=this.words[E]&m.words[E];return this.length=g.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var g,E;this.length>m.length?(g=this,E=m):(g=m,E=this);for(var T=0;T<E.length;T++)this.words[T]=g.words[T]^E.words[T];if(this!==g)for(;T<g.length;T++)this.words[T]=g.words[T];return this.length=g.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var g=Math.ceil(m/26)|0,E=m%26;this._expand(g),E>0&&g--;for(var T=0;T<g;T++)this.words[T]=~this.words[T]&67108863;return E>0&&(this.words[T]=~this.words[T]&67108863>>26-E),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,g){r(typeof m=="number"&&m>=0);var E=m/26|0,T=m%26;return this._expand(E+1),g?this.words[E]=this.words[E]|1<<T:this.words[E]=this.words[E]&~(1<<T),this._strip()},i.prototype.iadd=function(m){var g;if(this.negative!==0&&m.negative===0)return this.negative=0,g=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,g=this.isub(m),m.negative=1,g._normSign();var E,T;this.length>m.length?(E=this,T=m):(E=m,T=this);for(var k=0,V=0;V<T.length;V++)g=(E.words[V]|0)+(T.words[V]|0)+k,this.words[V]=g&67108863,k=g>>>26;for(;k!==0&&V<E.length;V++)g=(E.words[V]|0)+k,this.words[V]=g&67108863,k=g>>>26;if(this.length=E.length,k!==0)this.words[this.length]=k,this.length++;else if(E!==this)for(;V<E.length;V++)this.words[V]=E.words[V];return this},i.prototype.add=function(m){var g;return m.negative!==0&&this.negative===0?(m.negative=0,g=this.sub(m),m.negative^=1,g):m.negative===0&&this.negative!==0?(this.negative=0,g=m.sub(this),this.negative=1,g):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var g=this.iadd(m);return m.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var E=this.cmp(m);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;var T,k;E>0?(T=this,k=m):(T=m,k=this);for(var V=0,H=0;H<k.length;H++)g=(T.words[H]|0)-(k.words[H]|0)+V,V=g>>26,this.words[H]=g&67108863;for(;V!==0&&H<T.length;H++)g=(T.words[H]|0)+V,V=g>>26,this.words[H]=g&67108863;if(V===0&&H<T.length&&T!==this)for(;H<T.length;H++)this.words[H]=T.words[H];return this.length=Math.max(this.length,H),T!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function R(I,m,g){g.negative=m.negative^I.negative;var E=I.length+m.length|0;g.length=E,E=E-1|0;var T=I.words[0]|0,k=m.words[0]|0,V=T*k,H=V&67108863,U=V/67108864|0;g.words[0]=H;for(var b=1;b<E;b++){for(var j=U>>>26,he=U&67108863,D=Math.min(b,m.length-1),Z=Math.max(0,b-I.length+1);Z<=D;Z++){var re=b-Z|0;T=I.words[re]|0,k=m.words[Z]|0,V=T*k+he,j+=V/67108864|0,he=V&67108863}g.words[b]=he|0,U=j|0}return U!==0?g.words[b]=U|0:g.length--,g._strip()}var P=function(m,g,E){var T=m.words,k=g.words,V=E.words,H=0,U,b,j,he=T[0]|0,D=he&8191,Z=he>>>13,re=T[1]|0,ae=re&8191,ce=re>>>13,Y=T[2]|0,Q=Y&8191,G=Y>>>13,se=T[3]|0,te=se&8191,ge=se>>>13,Ge=T[4]|0,Re=Ge&8191,$e=Ge>>>13,ot=T[5]|0,J=ot&8191,S=ot>>>13,L=T[6]|0,N=L&8191,F=L>>>13,B=T[7]|0,z=B&8191,ie=B>>>13,oe=T[8]|0,de=oe&8191,le=oe>>>13,ve=T[9]|0,ye=ve&8191,Ee=ve>>>13,ke=k[0]|0,ze=ke&8191,Ae=ke>>>13,Be=k[1]|0,Te=Be&8191,Se=Be>>>13,be=k[2]|0,Ue=be&8191,Ce=be>>>13,wt=k[3]|0,qe=wt&8191,Je=wt>>>13,De=k[4]|0,Ye=De&8191,dt=De>>>13,ir=k[5]|0,xt=ir&8191,Qe=ir>>>13,Hr=k[6]|0,ut=Hr&8191,bt=Hr>>>13,li=k[7]|0,rt=li&8191,Ke=li>>>13,zt=k[8]|0,We=zt&8191,st=zt>>>13,qr=k[9]|0,at=qr&8191,pt=qr>>>13;E.negative=m.negative^g.negative,E.length=19,U=Math.imul(D,ze),b=Math.imul(D,Ae),b=b+Math.imul(Z,ze)|0,j=Math.imul(Z,Ae);var Io=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Io>>>26)|0,Io&=67108863,U=Math.imul(ae,ze),b=Math.imul(ae,Ae),b=b+Math.imul(ce,ze)|0,j=Math.imul(ce,Ae),U=U+Math.imul(D,Te)|0,b=b+Math.imul(D,Se)|0,b=b+Math.imul(Z,Te)|0,j=j+Math.imul(Z,Se)|0;var Ro=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ro>>>26)|0,Ro&=67108863,U=Math.imul(Q,ze),b=Math.imul(Q,Ae),b=b+Math.imul(G,ze)|0,j=Math.imul(G,Ae),U=U+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Se)|0,b=b+Math.imul(ce,Te)|0,j=j+Math.imul(ce,Se)|0,U=U+Math.imul(D,Ue)|0,b=b+Math.imul(D,Ce)|0,b=b+Math.imul(Z,Ue)|0,j=j+Math.imul(Z,Ce)|0;var Ao=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,U=Math.imul(te,ze),b=Math.imul(te,Ae),b=b+Math.imul(ge,ze)|0,j=Math.imul(ge,Ae),U=U+Math.imul(Q,Te)|0,b=b+Math.imul(Q,Se)|0,b=b+Math.imul(G,Te)|0,j=j+Math.imul(G,Se)|0,U=U+Math.imul(ae,Ue)|0,b=b+Math.imul(ae,Ce)|0,b=b+Math.imul(ce,Ue)|0,j=j+Math.imul(ce,Ce)|0,U=U+Math.imul(D,qe)|0,b=b+Math.imul(D,Je)|0,b=b+Math.imul(Z,qe)|0,j=j+Math.imul(Z,Je)|0;var Mo=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Mo>>>26)|0,Mo&=67108863,U=Math.imul(Re,ze),b=Math.imul(Re,Ae),b=b+Math.imul($e,ze)|0,j=Math.imul($e,Ae),U=U+Math.imul(te,Te)|0,b=b+Math.imul(te,Se)|0,b=b+Math.imul(ge,Te)|0,j=j+Math.imul(ge,Se)|0,U=U+Math.imul(Q,Ue)|0,b=b+Math.imul(Q,Ce)|0,b=b+Math.imul(G,Ue)|0,j=j+Math.imul(G,Ce)|0,U=U+Math.imul(ae,qe)|0,b=b+Math.imul(ae,Je)|0,b=b+Math.imul(ce,qe)|0,j=j+Math.imul(ce,Je)|0,U=U+Math.imul(D,Ye)|0,b=b+Math.imul(D,dt)|0,b=b+Math.imul(Z,Ye)|0,j=j+Math.imul(Z,dt)|0;var No=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(No>>>26)|0,No&=67108863,U=Math.imul(J,ze),b=Math.imul(J,Ae),b=b+Math.imul(S,ze)|0,j=Math.imul(S,Ae),U=U+Math.imul(Re,Te)|0,b=b+Math.imul(Re,Se)|0,b=b+Math.imul($e,Te)|0,j=j+Math.imul($e,Se)|0,U=U+Math.imul(te,Ue)|0,b=b+Math.imul(te,Ce)|0,b=b+Math.imul(ge,Ue)|0,j=j+Math.imul(ge,Ce)|0,U=U+Math.imul(Q,qe)|0,b=b+Math.imul(Q,Je)|0,b=b+Math.imul(G,qe)|0,j=j+Math.imul(G,Je)|0,U=U+Math.imul(ae,Ye)|0,b=b+Math.imul(ae,dt)|0,b=b+Math.imul(ce,Ye)|0,j=j+Math.imul(ce,dt)|0,U=U+Math.imul(D,xt)|0,b=b+Math.imul(D,Qe)|0,b=b+Math.imul(Z,xt)|0,j=j+Math.imul(Z,Qe)|0;var Dy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Dy>>>26)|0,Dy&=67108863,U=Math.imul(N,ze),b=Math.imul(N,Ae),b=b+Math.imul(F,ze)|0,j=Math.imul(F,Ae),U=U+Math.imul(J,Te)|0,b=b+Math.imul(J,Se)|0,b=b+Math.imul(S,Te)|0,j=j+Math.imul(S,Se)|0,U=U+Math.imul(Re,Ue)|0,b=b+Math.imul(Re,Ce)|0,b=b+Math.imul($e,Ue)|0,j=j+Math.imul($e,Ce)|0,U=U+Math.imul(te,qe)|0,b=b+Math.imul(te,Je)|0,b=b+Math.imul(ge,qe)|0,j=j+Math.imul(ge,Je)|0,U=U+Math.imul(Q,Ye)|0,b=b+Math.imul(Q,dt)|0,b=b+Math.imul(G,Ye)|0,j=j+Math.imul(G,dt)|0,U=U+Math.imul(ae,xt)|0,b=b+Math.imul(ae,Qe)|0,b=b+Math.imul(ce,xt)|0,j=j+Math.imul(ce,Qe)|0,U=U+Math.imul(D,ut)|0,b=b+Math.imul(D,bt)|0,b=b+Math.imul(Z,ut)|0,j=j+Math.imul(Z,bt)|0;var Oy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Oy>>>26)|0,Oy&=67108863,U=Math.imul(z,ze),b=Math.imul(z,Ae),b=b+Math.imul(ie,ze)|0,j=Math.imul(ie,Ae),U=U+Math.imul(N,Te)|0,b=b+Math.imul(N,Se)|0,b=b+Math.imul(F,Te)|0,j=j+Math.imul(F,Se)|0,U=U+Math.imul(J,Ue)|0,b=b+Math.imul(J,Ce)|0,b=b+Math.imul(S,Ue)|0,j=j+Math.imul(S,Ce)|0,U=U+Math.imul(Re,qe)|0,b=b+Math.imul(Re,Je)|0,b=b+Math.imul($e,qe)|0,j=j+Math.imul($e,Je)|0,U=U+Math.imul(te,Ye)|0,b=b+Math.imul(te,dt)|0,b=b+Math.imul(ge,Ye)|0,j=j+Math.imul(ge,dt)|0,U=U+Math.imul(Q,xt)|0,b=b+Math.imul(Q,Qe)|0,b=b+Math.imul(G,xt)|0,j=j+Math.imul(G,Qe)|0,U=U+Math.imul(ae,ut)|0,b=b+Math.imul(ae,bt)|0,b=b+Math.imul(ce,ut)|0,j=j+Math.imul(ce,bt)|0,U=U+Math.imul(D,rt)|0,b=b+Math.imul(D,Ke)|0,b=b+Math.imul(Z,rt)|0,j=j+Math.imul(Z,Ke)|0;var Iy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Iy>>>26)|0,Iy&=67108863,U=Math.imul(de,ze),b=Math.imul(de,Ae),b=b+Math.imul(le,ze)|0,j=Math.imul(le,Ae),U=U+Math.imul(z,Te)|0,b=b+Math.imul(z,Se)|0,b=b+Math.imul(ie,Te)|0,j=j+Math.imul(ie,Se)|0,U=U+Math.imul(N,Ue)|0,b=b+Math.imul(N,Ce)|0,b=b+Math.imul(F,Ue)|0,j=j+Math.imul(F,Ce)|0,U=U+Math.imul(J,qe)|0,b=b+Math.imul(J,Je)|0,b=b+Math.imul(S,qe)|0,j=j+Math.imul(S,Je)|0,U=U+Math.imul(Re,Ye)|0,b=b+Math.imul(Re,dt)|0,b=b+Math.imul($e,Ye)|0,j=j+Math.imul($e,dt)|0,U=U+Math.imul(te,xt)|0,b=b+Math.imul(te,Qe)|0,b=b+Math.imul(ge,xt)|0,j=j+Math.imul(ge,Qe)|0,U=U+Math.imul(Q,ut)|0,b=b+Math.imul(Q,bt)|0,b=b+Math.imul(G,ut)|0,j=j+Math.imul(G,bt)|0,U=U+Math.imul(ae,rt)|0,b=b+Math.imul(ae,Ke)|0,b=b+Math.imul(ce,rt)|0,j=j+Math.imul(ce,Ke)|0,U=U+Math.imul(D,We)|0,b=b+Math.imul(D,st)|0,b=b+Math.imul(Z,We)|0,j=j+Math.imul(Z,st)|0;var Ry=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ry>>>26)|0,Ry&=67108863,U=Math.imul(ye,ze),b=Math.imul(ye,Ae),b=b+Math.imul(Ee,ze)|0,j=Math.imul(Ee,Ae),U=U+Math.imul(de,Te)|0,b=b+Math.imul(de,Se)|0,b=b+Math.imul(le,Te)|0,j=j+Math.imul(le,Se)|0,U=U+Math.imul(z,Ue)|0,b=b+Math.imul(z,Ce)|0,b=b+Math.imul(ie,Ue)|0,j=j+Math.imul(ie,Ce)|0,U=U+Math.imul(N,qe)|0,b=b+Math.imul(N,Je)|0,b=b+Math.imul(F,qe)|0,j=j+Math.imul(F,Je)|0,U=U+Math.imul(J,Ye)|0,b=b+Math.imul(J,dt)|0,b=b+Math.imul(S,Ye)|0,j=j+Math.imul(S,dt)|0,U=U+Math.imul(Re,xt)|0,b=b+Math.imul(Re,Qe)|0,b=b+Math.imul($e,xt)|0,j=j+Math.imul($e,Qe)|0,U=U+Math.imul(te,ut)|0,b=b+Math.imul(te,bt)|0,b=b+Math.imul(ge,ut)|0,j=j+Math.imul(ge,bt)|0,U=U+Math.imul(Q,rt)|0,b=b+Math.imul(Q,Ke)|0,b=b+Math.imul(G,rt)|0,j=j+Math.imul(G,Ke)|0,U=U+Math.imul(ae,We)|0,b=b+Math.imul(ae,st)|0,b=b+Math.imul(ce,We)|0,j=j+Math.imul(ce,st)|0,U=U+Math.imul(D,at)|0,b=b+Math.imul(D,pt)|0,b=b+Math.imul(Z,at)|0,j=j+Math.imul(Z,pt)|0;var Ay=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ay>>>26)|0,Ay&=67108863,U=Math.imul(ye,Te),b=Math.imul(ye,Se),b=b+Math.imul(Ee,Te)|0,j=Math.imul(Ee,Se),U=U+Math.imul(de,Ue)|0,b=b+Math.imul(de,Ce)|0,b=b+Math.imul(le,Ue)|0,j=j+Math.imul(le,Ce)|0,U=U+Math.imul(z,qe)|0,b=b+Math.imul(z,Je)|0,b=b+Math.imul(ie,qe)|0,j=j+Math.imul(ie,Je)|0,U=U+Math.imul(N,Ye)|0,b=b+Math.imul(N,dt)|0,b=b+Math.imul(F,Ye)|0,j=j+Math.imul(F,dt)|0,U=U+Math.imul(J,xt)|0,b=b+Math.imul(J,Qe)|0,b=b+Math.imul(S,xt)|0,j=j+Math.imul(S,Qe)|0,U=U+Math.imul(Re,ut)|0,b=b+Math.imul(Re,bt)|0,b=b+Math.imul($e,ut)|0,j=j+Math.imul($e,bt)|0,U=U+Math.imul(te,rt)|0,b=b+Math.imul(te,Ke)|0,b=b+Math.imul(ge,rt)|0,j=j+Math.imul(ge,Ke)|0,U=U+Math.imul(Q,We)|0,b=b+Math.imul(Q,st)|0,b=b+Math.imul(G,We)|0,j=j+Math.imul(G,st)|0,U=U+Math.imul(ae,at)|0,b=b+Math.imul(ae,pt)|0,b=b+Math.imul(ce,at)|0,j=j+Math.imul(ce,pt)|0;var My=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(My>>>26)|0,My&=67108863,U=Math.imul(ye,Ue),b=Math.imul(ye,Ce),b=b+Math.imul(Ee,Ue)|0,j=Math.imul(Ee,Ce),U=U+Math.imul(de,qe)|0,b=b+Math.imul(de,Je)|0,b=b+Math.imul(le,qe)|0,j=j+Math.imul(le,Je)|0,U=U+Math.imul(z,Ye)|0,b=b+Math.imul(z,dt)|0,b=b+Math.imul(ie,Ye)|0,j=j+Math.imul(ie,dt)|0,U=U+Math.imul(N,xt)|0,b=b+Math.imul(N,Qe)|0,b=b+Math.imul(F,xt)|0,j=j+Math.imul(F,Qe)|0,U=U+Math.imul(J,ut)|0,b=b+Math.imul(J,bt)|0,b=b+Math.imul(S,ut)|0,j=j+Math.imul(S,bt)|0,U=U+Math.imul(Re,rt)|0,b=b+Math.imul(Re,Ke)|0,b=b+Math.imul($e,rt)|0,j=j+Math.imul($e,Ke)|0,U=U+Math.imul(te,We)|0,b=b+Math.imul(te,st)|0,b=b+Math.imul(ge,We)|0,j=j+Math.imul(ge,st)|0,U=U+Math.imul(Q,at)|0,b=b+Math.imul(Q,pt)|0,b=b+Math.imul(G,at)|0,j=j+Math.imul(G,pt)|0;var Ny=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ny>>>26)|0,Ny&=67108863,U=Math.imul(ye,qe),b=Math.imul(ye,Je),b=b+Math.imul(Ee,qe)|0,j=Math.imul(Ee,Je),U=U+Math.imul(de,Ye)|0,b=b+Math.imul(de,dt)|0,b=b+Math.imul(le,Ye)|0,j=j+Math.imul(le,dt)|0,U=U+Math.imul(z,xt)|0,b=b+Math.imul(z,Qe)|0,b=b+Math.imul(ie,xt)|0,j=j+Math.imul(ie,Qe)|0,U=U+Math.imul(N,ut)|0,b=b+Math.imul(N,bt)|0,b=b+Math.imul(F,ut)|0,j=j+Math.imul(F,bt)|0,U=U+Math.imul(J,rt)|0,b=b+Math.imul(J,Ke)|0,b=b+Math.imul(S,rt)|0,j=j+Math.imul(S,Ke)|0,U=U+Math.imul(Re,We)|0,b=b+Math.imul(Re,st)|0,b=b+Math.imul($e,We)|0,j=j+Math.imul($e,st)|0,U=U+Math.imul(te,at)|0,b=b+Math.imul(te,pt)|0,b=b+Math.imul(ge,at)|0,j=j+Math.imul(ge,pt)|0;var ky=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(ky>>>26)|0,ky&=67108863,U=Math.imul(ye,Ye),b=Math.imul(ye,dt),b=b+Math.imul(Ee,Ye)|0,j=Math.imul(Ee,dt),U=U+Math.imul(de,xt)|0,b=b+Math.imul(de,Qe)|0,b=b+Math.imul(le,xt)|0,j=j+Math.imul(le,Qe)|0,U=U+Math.imul(z,ut)|0,b=b+Math.imul(z,bt)|0,b=b+Math.imul(ie,ut)|0,j=j+Math.imul(ie,bt)|0,U=U+Math.imul(N,rt)|0,b=b+Math.imul(N,Ke)|0,b=b+Math.imul(F,rt)|0,j=j+Math.imul(F,Ke)|0,U=U+Math.imul(J,We)|0,b=b+Math.imul(J,st)|0,b=b+Math.imul(S,We)|0,j=j+Math.imul(S,st)|0,U=U+Math.imul(Re,at)|0,b=b+Math.imul(Re,pt)|0,b=b+Math.imul($e,at)|0,j=j+Math.imul($e,pt)|0;var Fy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Fy>>>26)|0,Fy&=67108863,U=Math.imul(ye,xt),b=Math.imul(ye,Qe),b=b+Math.imul(Ee,xt)|0,j=Math.imul(Ee,Qe),U=U+Math.imul(de,ut)|0,b=b+Math.imul(de,bt)|0,b=b+Math.imul(le,ut)|0,j=j+Math.imul(le,bt)|0,U=U+Math.imul(z,rt)|0,b=b+Math.imul(z,Ke)|0,b=b+Math.imul(ie,rt)|0,j=j+Math.imul(ie,Ke)|0,U=U+Math.imul(N,We)|0,b=b+Math.imul(N,st)|0,b=b+Math.imul(F,We)|0,j=j+Math.imul(F,st)|0,U=U+Math.imul(J,at)|0,b=b+Math.imul(J,pt)|0,b=b+Math.imul(S,at)|0,j=j+Math.imul(S,pt)|0;var Ly=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Ly>>>26)|0,Ly&=67108863,U=Math.imul(ye,ut),b=Math.imul(ye,bt),b=b+Math.imul(Ee,ut)|0,j=Math.imul(Ee,bt),U=U+Math.imul(de,rt)|0,b=b+Math.imul(de,Ke)|0,b=b+Math.imul(le,rt)|0,j=j+Math.imul(le,Ke)|0,U=U+Math.imul(z,We)|0,b=b+Math.imul(z,st)|0,b=b+Math.imul(ie,We)|0,j=j+Math.imul(ie,st)|0,U=U+Math.imul(N,at)|0,b=b+Math.imul(N,pt)|0,b=b+Math.imul(F,at)|0,j=j+Math.imul(F,pt)|0;var $y=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+($y>>>26)|0,$y&=67108863,U=Math.imul(ye,rt),b=Math.imul(ye,Ke),b=b+Math.imul(Ee,rt)|0,j=Math.imul(Ee,Ke),U=U+Math.imul(de,We)|0,b=b+Math.imul(de,st)|0,b=b+Math.imul(le,We)|0,j=j+Math.imul(le,st)|0,U=U+Math.imul(z,at)|0,b=b+Math.imul(z,pt)|0,b=b+Math.imul(ie,at)|0,j=j+Math.imul(ie,pt)|0;var Uy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Uy>>>26)|0,Uy&=67108863,U=Math.imul(ye,We),b=Math.imul(ye,st),b=b+Math.imul(Ee,We)|0,j=Math.imul(Ee,st),U=U+Math.imul(de,at)|0,b=b+Math.imul(de,pt)|0,b=b+Math.imul(le,at)|0,j=j+Math.imul(le,pt)|0;var Vy=(H+U|0)+((b&8191)<<13)|0;H=(j+(b>>>13)|0)+(Vy>>>26)|0,Vy&=67108863,U=Math.imul(ye,at),b=Math.imul(ye,pt),b=b+Math.imul(Ee,at)|0,j=Math.imul(Ee,pt);var jy=(H+U|0)+((b&8191)<<13)|0;return H=(j+(b>>>13)|0)+(jy>>>26)|0,jy&=67108863,V[0]=Io,V[1]=Ro,V[2]=Ao,V[3]=Mo,V[4]=No,V[5]=Dy,V[6]=Oy,V[7]=Iy,V[8]=Ry,V[9]=Ay,V[10]=My,V[11]=Ny,V[12]=ky,V[13]=Fy,V[14]=Ly,V[15]=$y,V[16]=Uy,V[17]=Vy,V[18]=jy,H!==0&&(V[19]=H,E.length++),E};Math.imul||(P=R);function M(I,m,g){g.negative=m.negative^I.negative,g.length=I.length+m.length;for(var E=0,T=0,k=0;k<g.length-1;k++){var V=T;T=0;for(var H=E&67108863,U=Math.min(k,m.length-1),b=Math.max(0,k-I.length+1);b<=U;b++){var j=k-b,he=I.words[j]|0,D=m.words[b]|0,Z=he*D,re=Z&67108863;V=V+(Z/67108864|0)|0,re=re+H|0,H=re&67108863,V=V+(re>>>26)|0,T+=V>>>26,V&=67108863}g.words[k]=H,E=V,V=T}return E!==0?g.words[k]=E:g.length--,g._strip()}function A(I,m,g){return M(I,m,g)}i.prototype.mulTo=function(m,g){var E,T=this.length+m.length;return this.length===10&&m.length===10?E=P(this,m,g):T<63?E=R(this,m,g):T<1024?E=M(this,m,g):E=A(this,m,g),E};function $(I,m){this.x=I,this.y=m}$.prototype.makeRBT=function(m){for(var g=new Array(m),E=i.prototype._countBits(m)-1,T=0;T<m;T++)g[T]=this.revBin(T,E,m);return g},$.prototype.revBin=function(m,g,E){if(m===0||m===E-1)return m;for(var T=0,k=0;k<g;k++)T|=(m&1)<<g-k-1,m>>=1;return T},$.prototype.permute=function(m,g,E,T,k,V){for(var H=0;H<V;H++)T[H]=g[m[H]],k[H]=E[m[H]]},$.prototype.transform=function(m,g,E,T,k,V){this.permute(V,m,g,E,T,k);for(var H=1;H<k;H<<=1)for(var U=H<<1,b=Math.cos(2*Math.PI/U),j=Math.sin(2*Math.PI/U),he=0;he<k;he+=U)for(var D=b,Z=j,re=0;re<H;re++){var ae=E[he+re],ce=T[he+re],Y=E[he+re+H],Q=T[he+re+H],G=D*Y-Z*Q;Q=D*Q+Z*Y,Y=G,E[he+re]=ae+Y,T[he+re]=ce+Q,E[he+re+H]=ae-Y,T[he+re+H]=ce-Q,re!==U&&(G=b*D-j*Z,Z=b*Z+j*D,D=G)}},$.prototype.guessLen13b=function(m,g){var E=Math.max(g,m)|1,T=E&1,k=0;for(E=E/2|0;E;E=E>>>1)k++;return 1<<k+1+T},$.prototype.conjugate=function(m,g,E){if(!(E<=1))for(var T=0;T<E/2;T++){var k=m[T];m[T]=m[E-T-1],m[E-T-1]=k,k=g[T],g[T]=-g[E-T-1],g[E-T-1]=-k}},$.prototype.normalize13b=function(m,g){for(var E=0,T=0;T<g/2;T++){var k=Math.round(m[2*T+1]/g)*8192+Math.round(m[2*T]/g)+E;m[T]=k&67108863,k<67108864?E=0:E=k/67108864|0}return m},$.prototype.convert13b=function(m,g,E,T){for(var k=0,V=0;V<g;V++)k=k+(m[V]|0),E[2*V]=k&8191,k=k>>>13,E[2*V+1]=k&8191,k=k>>>13;for(V=2*g;V<T;++V)E[V]=0;r(k===0),r((k&-8192)===0)},$.prototype.stub=function(m){for(var g=new Array(m),E=0;E<m;E++)g[E]=0;return g},$.prototype.mulp=function(m,g,E){var T=2*this.guessLen13b(m.length,g.length),k=this.makeRBT(T),V=this.stub(T),H=new Array(T),U=new Array(T),b=new Array(T),j=new Array(T),he=new Array(T),D=new Array(T),Z=E.words;Z.length=T,this.convert13b(m.words,m.length,H,T),this.convert13b(g.words,g.length,j,T),this.transform(H,V,U,b,T,k),this.transform(j,V,he,D,T,k);for(var re=0;re<T;re++){var ae=U[re]*he[re]-b[re]*D[re];b[re]=U[re]*D[re]+b[re]*he[re],U[re]=ae}return this.conjugate(U,b,T),this.transform(U,b,Z,V,T,k),this.conjugate(Z,V,T),this.normalize13b(Z,T),E.negative=m.negative^g.negative,E.length=m.length+g.length,E._strip()},i.prototype.mul=function(m){var g=new i(null);return g.words=new Array(this.length+m.length),this.mulTo(m,g)},i.prototype.mulf=function(m){var g=new i(null);return g.words=new Array(this.length+m.length),A(this,m,g)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var g=m<0;g&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var E=0,T=0;T<this.length;T++){var k=(this.words[T]|0)*m,V=(k&67108863)+(E&67108863);E>>=26,E+=k/67108864|0,E+=V>>>26,this.words[T]=V&67108863}return E!==0&&(this.words[T]=E,this.length++),g?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var g=C(m);if(g.length===0)return new i(1);for(var E=this,T=0;T<g.length&&g[T]===0;T++,E=E.sqr());if(++T<g.length)for(var k=E.sqr();T<g.length;T++,k=k.sqr())g[T]!==0&&(E=E.mul(k));return E},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var g=m%26,E=(m-g)/26,T=67108863>>>26-g<<26-g,k;if(g!==0){var V=0;for(k=0;k<this.length;k++){var H=this.words[k]&T,U=(this.words[k]|0)-H<<g;this.words[k]=U|V,V=H>>>26-g}V&&(this.words[k]=V,this.length++)}if(E!==0){for(k=this.length-1;k>=0;k--)this.words[k+E]=this.words[k];for(k=0;k<E;k++)this.words[k]=0;this.length+=E}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,g,E){r(typeof m=="number"&&m>=0);var T;g?T=(g-g%26)/26:T=0;var k=m%26,V=Math.min((m-k)/26,this.length),H=67108863^67108863>>>k<<k,U=E;if(T-=V,T=Math.max(0,T),U){for(var b=0;b<V;b++)U.words[b]=this.words[b];U.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var j=0;for(b=this.length-1;b>=0&&(j!==0||b>=T);b--){var he=this.words[b]|0;this.words[b]=j<<26-k|he>>>k,j=he&H}return U&&j!==0&&(U.words[U.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,g,E){return r(this.negative===0),this.iushrn(m,g,E)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var g=m%26,E=(m-g)/26,T=1<<g;if(this.length<=E)return!1;var k=this.words[E];return!!(k&T)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var g=m%26,E=(m-g)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(g!==0&&E++,this.length=Math.min(E,this.length),g!==0){var T=67108863^67108863>>>g<<g;this.words[this.length-1]&=T}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,g,E){var T=m.length+E,k;this._expand(T);var V,H=0;for(k=0;k<m.length;k++){V=(this.words[k+E]|0)+H;var U=(m.words[k]|0)*g;V-=U&67108863,H=(V>>26)-(U/67108864|0),this.words[k+E]=V&67108863}for(;k<this.length-E;k++)V=(this.words[k+E]|0)+H,H=V>>26,this.words[k+E]=V&67108863;if(H===0)return this._strip();for(r(H===-1),H=0,k=0;k<this.length;k++)V=-(this.words[k]|0)+H,H=V>>26,this.words[k]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,g){var E=this.length-m.length,T=this.clone(),k=m,V=k.words[k.length-1]|0,H=this._countBits(V);E=26-H,E!==0&&(k=k.ushln(E),T.iushln(E),V=k.words[k.length-1]|0);var U=T.length-k.length,b;if(g!=="mod"){b=new i(null),b.length=U+1,b.words=new Array(b.length);for(var j=0;j<b.length;j++)b.words[j]=0}var he=T.clone()._ishlnsubmul(k,1,U);he.negative===0&&(T=he,b&&(b.words[U]=1));for(var D=U-1;D>=0;D--){var Z=(T.words[k.length+D]|0)*67108864+(T.words[k.length+D-1]|0);for(Z=Math.min(Z/V|0,67108863),T._ishlnsubmul(k,Z,D);T.negative!==0;)Z--,T.negative=0,T._ishlnsubmul(k,1,D),T.isZero()||(T.negative^=1);b&&(b.words[D]=Z)}return b&&b._strip(),T._strip(),g!=="div"&&E!==0&&T.iushrn(E),{div:b||null,mod:T}},i.prototype.divmod=function(m,g,E){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var T,k,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,g),g!=="mod"&&(T=V.div.neg()),g!=="div"&&(k=V.mod.neg(),E&&k.negative!==0&&k.iadd(m)),{div:T,mod:k}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),g),g!=="mod"&&(T=V.div.neg()),{div:T,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),g),g!=="div"&&(k=V.mod.neg(),E&&k.negative!==0&&k.isub(m)),{div:V.div,mod:k}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?g==="div"?{div:this.divn(m.words[0]),mod:null}:g==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,g)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var g=this.divmod(m);if(g.mod.isZero())return g.div;var E=g.div.negative!==0?g.mod.isub(m):g.mod,T=m.ushrn(1),k=m.andln(1),V=E.cmp(T);return V<0||k===1&&V===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},i.prototype.modrn=function(m){var g=m<0;g&&(m=-m),r(m<=67108863);for(var E=(1<<26)%m,T=0,k=this.length-1;k>=0;k--)T=(E*T+(this.words[k]|0))%m;return g?-T:T},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var g=m<0;g&&(m=-m),r(m<=67108863);for(var E=0,T=this.length-1;T>=0;T--){var k=(this.words[T]|0)+E*67108864;this.words[T]=k/m|0,E=k%m}return this._strip(),g?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var g=this,E=m.clone();g.negative!==0?g=g.umod(m):g=g.clone();for(var T=new i(1),k=new i(0),V=new i(0),H=new i(1),U=0;g.isEven()&&E.isEven();)g.iushrn(1),E.iushrn(1),++U;for(var b=E.clone(),j=g.clone();!g.isZero();){for(var he=0,D=1;(g.words[0]&D)===0&&he<26;++he,D<<=1);if(he>0)for(g.iushrn(he);he-- >0;)(T.isOdd()||k.isOdd())&&(T.iadd(b),k.isub(j)),T.iushrn(1),k.iushrn(1);for(var Z=0,re=1;(E.words[0]&re)===0&&Z<26;++Z,re<<=1);if(Z>0)for(E.iushrn(Z);Z-- >0;)(V.isOdd()||H.isOdd())&&(V.iadd(b),H.isub(j)),V.iushrn(1),H.iushrn(1);g.cmp(E)>=0?(g.isub(E),T.isub(V),k.isub(H)):(E.isub(g),V.isub(T),H.isub(k))}return{a:V,b:H,gcd:E.iushln(U)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var g=this,E=m.clone();g.negative!==0?g=g.umod(m):g=g.clone();for(var T=new i(1),k=new i(0),V=E.clone();g.cmpn(1)>0&&E.cmpn(1)>0;){for(var H=0,U=1;(g.words[0]&U)===0&&H<26;++H,U<<=1);if(H>0)for(g.iushrn(H);H-- >0;)T.isOdd()&&T.iadd(V),T.iushrn(1);for(var b=0,j=1;(E.words[0]&j)===0&&b<26;++b,j<<=1);if(b>0)for(E.iushrn(b);b-- >0;)k.isOdd()&&k.iadd(V),k.iushrn(1);g.cmp(E)>=0?(g.isub(E),T.isub(k)):(E.isub(g),k.isub(T))}var he;return g.cmpn(1)===0?he=T:he=k,he.cmpn(0)<0&&he.iadd(m),he},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var g=this.clone(),E=m.clone();g.negative=0,E.negative=0;for(var T=0;g.isEven()&&E.isEven();T++)g.iushrn(1),E.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;E.isEven();)E.iushrn(1);var k=g.cmp(E);if(k<0){var V=g;g=E,E=V}else if(k===0||E.cmpn(1)===0)break;g.isub(E)}while(!0);return E.iushln(T)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var g=m%26,E=(m-g)/26,T=1<<g;if(this.length<=E)return this._expand(E+1),this.words[E]|=T,this;for(var k=T,V=E;k!==0&&V<this.length;V++){var H=this.words[V]|0;H+=k,k=H>>>26,H&=67108863,this.words[V]=H}return k!==0&&(this.words[V]=k,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var g=m<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var E;if(this.length>1)E=1;else{g&&(m=-m),r(m<=67108863,"Number is too big");var T=this.words[0]|0;E=T===m?0:T<m?-1:1}return this.negative!==0?-E|0:E},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var g=this.ucmp(m);return this.negative!==0?-g|0:g},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var g=0,E=this.length-1;E>=0;E--){var T=this.words[E]|0,k=m.words[E]|0;if(T!==k){T<k?g=-1:T>k&&(g=1);break}}return g},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new fe(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},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(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var W={k256:null,p224:null,p192:null,p25519:null};function ee(I,m){this.name=I,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ee.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},ee.prototype.ireduce=function(m){var g=m,E;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),E=g.bitLength();while(E>this.n);var T=E<this.n?-1:g.ucmp(this.p);return T===0?(g.words[0]=0,g.length=1):T>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},ee.prototype.split=function(m,g){m.iushrn(this.n,0,g)},ee.prototype.imulK=function(m){return m.imul(this.k)};function q(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(q,ee),q.prototype.split=function(m,g){for(var E=4194303,T=Math.min(m.length,9),k=0;k<T;k++)g.words[k]=m.words[k];if(g.length=T,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(g.words[g.length++]=V&E,k=10;k<m.length;k++){var H=m.words[k]|0;m.words[k-10]=(H&E)<<4|V>>>22,V=H}V>>>=22,m.words[k-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},q.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var g=0,E=0;E<m.length;E++){var T=m.words[E]|0;g+=T*977,m.words[E]=g&67108863,g=T*64+(g/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function K(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(K,ee);function ue(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(ue,ee);function pe(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(pe,ee),pe.prototype.imulK=function(m){for(var g=0,E=0;E<m.length;E++){var T=(m.words[E]|0)*19+g,k=T&67108863;T>>>=26,m.words[E]=k,g=T}return g!==0&&(m.words[m.length++]=g),m},i._prime=function(m){if(W[m])return W[m];var g;if(m==="k256")g=new q;else if(m==="p224")g=new K;else if(m==="p192")g=new ue;else if(m==="p25519")g=new pe;else throw new Error("Unknown prime "+m);return W[m]=g,g};function fe(I){if(typeof I=="string"){var m=i._prime(I);this.m=m.p,this.prime=m}else r(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}fe.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},fe.prototype._verify2=function(m,g){r((m.negative|g.negative)===0,"red works only with positives"),r(m.red&&m.red===g.red,"red works only with red numbers")},fe.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},fe.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},fe.prototype.add=function(m,g){this._verify2(m,g);var E=m.add(g);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},fe.prototype.iadd=function(m,g){this._verify2(m,g);var E=m.iadd(g);return E.cmp(this.m)>=0&&E.isub(this.m),E},fe.prototype.sub=function(m,g){this._verify2(m,g);var E=m.sub(g);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},fe.prototype.isub=function(m,g){this._verify2(m,g);var E=m.isub(g);return E.cmpn(0)<0&&E.iadd(this.m),E},fe.prototype.shl=function(m,g){return this._verify1(m),this.imod(m.ushln(g))},fe.prototype.imul=function(m,g){return this._verify2(m,g),this.imod(m.imul(g))},fe.prototype.mul=function(m,g){return this._verify2(m,g),this.imod(m.mul(g))},fe.prototype.isqr=function(m){return this.imul(m,m.clone())},fe.prototype.sqr=function(m){return this.mul(m,m)},fe.prototype.sqrt=function(m){if(m.isZero())return m.clone();var g=this.m.andln(3);if(r(g%2===1),g===3){var E=this.m.add(new i(1)).iushrn(2);return this.pow(m,E)}for(var T=this.m.subn(1),k=0;!T.isZero()&&T.andln(1)===0;)k++,T.iushrn(1);r(!T.isZero());var V=new i(1).toRed(this),H=V.redNeg(),U=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,U).cmp(H)!==0;)b.redIAdd(H);for(var j=this.pow(b,T),he=this.pow(m,T.addn(1).iushrn(1)),D=this.pow(m,T),Z=k;D.cmp(V)!==0;){for(var re=D,ae=0;re.cmp(V)!==0;ae++)re=re.redSqr();r(ae<Z);var ce=this.pow(j,new i(1).iushln(Z-ae-1));he=he.redMul(ce),j=ce.redSqr(),D=D.redMul(j),Z=ae}return he},fe.prototype.invm=function(m){var g=m._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},fe.prototype.pow=function(m,g){if(g.isZero())return new i(1).toRed(this);if(g.cmpn(1)===0)return m.clone();var E=4,T=new Array(1<<E);T[0]=new i(1).toRed(this),T[1]=m;for(var k=2;k<T.length;k++)T[k]=this.mul(T[k-1],m);var V=T[0],H=0,U=0,b=g.bitLength()%26;for(b===0&&(b=26),k=g.length-1;k>=0;k--){for(var j=g.words[k],he=b-1;he>=0;he--){var D=j>>he&1;if(V!==T[0]&&(V=this.sqr(V)),D===0&&H===0){U=0;continue}H<<=1,H|=D,U++,!(U!==E&&(k!==0||he!==0))&&(V=this.mul(V,T[H]),U=0,H=0)}b=26}return V},fe.prototype.convertTo=function(m){var g=m.umod(this.m);return g===m?g.clone():g},fe.prototype.convertFrom=function(m){var g=m.clone();return g.red=null,g},i.mont=function(m){return new X(m)};function X(I){fe.call(this,I),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)}n(X,fe),X.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},X.prototype.convertFrom=function(m){var g=this.imod(m.mul(this.rinv));return g.red=null,g},X.prototype.imul=function(m,g){if(m.isZero()||g.isZero())return m.words[0]=0,m.length=1,m;var E=m.imul(g),T=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(T).iushrn(this.shift),V=k;return k.cmp(this.m)>=0?V=k.isub(this.m):k.cmpn(0)<0&&(V=k.iadd(this.m)),V._forceRed(this)},X.prototype.mul=function(m,g){if(m.isZero()||g.isZero())return new i(0)._forceRed(this);var E=m.mul(g),T=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(T).iushrn(this.shift),V=k;return k.cmp(this.m)>=0?V=k.isub(this.m):k.cmpn(0)<0&&(V=k.iadd(this.m)),V._forceRed(this)},X.prototype.invm=function(m){var g=this.imod(m._invmp(this.m).mul(this.r2));return g._forceRed(this)}})(typeof eE>"u"||eE,r9)});var Wne={};Ar(Wne,{init:()=>zne,open:()=>qne,reset:()=>Kne,update:()=>Hne});c();d();f();c();d();f();c();d();f();c();d();f();var l3=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(O&&O.MODE)!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),r.clear()}};return t=e(n,i,a),a},c3=e=>e?l3(e):l3;var x3=me(Pe(),1),b3=me(v3(),1),{useSyncExternalStoreWithSelector:W$}=b3.default;function G$(e,t=e.getState,r){let n=W$(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,x3.useDebugValue)(n),n}var w3=e=>{(O&&O.MODE)!=="production"&&typeof e!="function"&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');let t=typeof e=="function"?c3(e):e,r=(n,i)=>G$(t,n,i);return Object.assign(r,t),r},oh=e=>e?w3(e):w3;c();d();f();c();d();f();c();d();f();var ev=function(e,t){return ev=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ev(e,t)};function Y$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ev(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mt=function(){return mt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},mt.apply(this,arguments)};function Fs(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function Ls(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function X$(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var et;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(et||(et={}));function Z$(e,t){if(!e)throw new Error(t)}function Q$(e){return e==null?void 0:e.replace(/\/+$/,"")}function J$(e,t){return t===void 0&&(t={}),Fs(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return Ls(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(v){return setTimeout(v,o)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function _3(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function D3(){return new Date().getTime()}function E3(){return new Date().toISOString()}function S3(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var _c=String.fromCharCode,C3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",sh={};function eU(e,t){if(!sh[e]){sh[e]={};for(var r=0;r<e.length;r++)sh[e][e.charAt(r)]=r}return sh[e][t]}var Cc={compressToBase64:function(e){if(e==null)return"";var t=Cc._compress(e,6,function(r){return C3.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:Cc._decompress(e.length,32,function(t){return eU(C3,e.charAt(t))})},compress:function(e){return Cc._compress(e,16,function(t){return _c(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,y=3,v=2,w=0,C=0,R;for(R=0;R<e.length;R+=1)if(u=e.charAt(R),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,C==t-1?(C=0,o.push(r(w)),w=0):C++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,C==t-1?(C=0,o.push(r(w)),w=0):C++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++)}for(a=2,s=0;s<v;s++)w=w<<1|a&1,C==t-1?(C=0,o.push(r(w)),w=0):C++,a=a>>1;for(;;)if(w=w<<1,C==t-1){o.push(r(w));break}else C++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:Cc._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,y,v,w,C,R;for(p=0;p<3;p+=1)n[p]=p;for(y=0,w=Math.pow(2,2),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;R=_c(y);break;case 1:for(y=0,w=Math.pow(2,16),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;R=_c(y);break;case 2:return""}for(n[3]=R,h=R,i.push(R);;){if(o.index>e)return"";for(y=0,w=Math.pow(2,u),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;switch(R=y){case 0:for(y=0,w=Math.pow(2,8),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;n[a++]=_c(y),R=a-1,s--;break;case 1:for(y=0,w=Math.pow(2,16),C=1;C!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*C,C<<=1;n[a++]=_c(y),R=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[R])l=n[R];else if(R===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},tU=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),rU=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new tU,Z$(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=Q$((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&S3(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return mt({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(et.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(et.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(et.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(et.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(et.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(et.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=X$([et.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(et);n<i.length;n++){var o=i[n];r.includes(et[o])||this.setPersistedProperty(et[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:mt(mt(mt(mt({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(et.SessionId),r=this.getPersistedProperty(et.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=_3(globalThis),this.setPersistedProperty(et.SessionId,t)),this.setPersistedProperty(et.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(et.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(et.AnonymousId);return t||(t=_3(globalThis),this.setPersistedProperty(et.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(et.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=mt(mt({},this.props),t),this.setPersistedProperty(et.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(et.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=mt(mt({},this.buildPayload({distinct_id:t,event:"$identify",properties:mt(mt({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(et.AnonymousId,n),this.setPersistedProperty(et.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:mt(mt({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:mt(mt({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:mt({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(et.PersonProperties)||{};return this.setPersistedProperty(et.PersonProperties,mt(mt({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(et.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=mt(mt({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(et.GroupProperties,mt(mt({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),Fs(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return Ls(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(et.PersonProperties)||{},s=this.getPersistedProperty(et.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(et.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(et.FeatureFlags),r=this.getPersistedProperty(et.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),Fs(this,void 0,void 0,function(){return Ls(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return Fs(r,void 0,void 0,function(){var n;return Ls(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return Fs(n,void 0,void 0,function(){var i;return Ls(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(et.OverrideFeatureFlags,null):this.setPersistedProperty(et.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=mt(mt({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:E3()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(et.Queue)||[];o.push({message:i}),this.setPersistedProperty(et.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=S3(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(et.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(et.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:E3()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(D3(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(Cc.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return Fs(this,void 0,void 0,function(){var s=this;return Ls(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,J$(function(){return s.fetch(t,mt({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return Fs(this,void 0,void 0,function(){return Ls(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),O3="2.0.0";function nU(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=mt(mt({},t),{$os:oU(e),$browser:I3(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:aU(e.document.referrer),$device:sU(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:iU(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=mt(mt({},t),{$lib:"js",$lib_version:O3,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:D3()/1e3}),t}function Qt(e,t){return e.indexOf(t)>=0}function I3(e,t,r){return t=t||"",r||Qt(e," OPR/")?Qt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Qt(e,"IEMobile")||Qt(e,"WPDesktop")?"Internet Explorer Mobile":Qt(e,"SamsungBrowser/")?"Samsung Internet":Qt(e,"Edge")||Qt(e,"Edg/")?"Microsoft Edge":Qt(e,"FBIOS")?"Facebook Mobile":Qt(e,"Chrome")?"Chrome":Qt(e,"CriOS")?"Chrome iOS":Qt(e,"UCWEB")||Qt(e,"UCBrowser")?"UC Browser":Qt(e,"FxiOS")?"Firefox iOS":Qt(t,"Apple")?Qt(e,"Mobile")?"Mobile Safari":"Safari":Qt(e,"Android")?"Android Mobile":Qt(e,"Konqueror")?"Konqueror":Qt(e,"Firefox")?"Firefox":Qt(e,"MSIE")||Qt(e,"Trident/")?"Internet Explorer":Qt(e,"Gecko")?"Mozilla":""}function iU(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=I3(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function oU(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function sU(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function aU(e){var t=e.split("/");return t.length>=3?t[2]:""}var R3={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{R3.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},P3=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},T3=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},Jy=void 0,Ec=void 0,Sc=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},uU=function(e,t){if(t){if(!localStorage){var r=P3(t.localStorage);Jy=T3(r)?r:void 0}if(!Ec){var n=P3(t.sessionStorage);Ec=T3(n)?n:void 0}}switch(e){case"cookie":return R3||Jy||Ec||Sc();case"localStorage":return Jy||Ec||Sc();case"sessionStorage":return Ec||Sc();case"memory":return Sc();default:return Sc()}},A3=function(e){Y$(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=uU((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return O3},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return mt(mt({},e.prototype.getCommonEventProperties.call(this)),nU(window))},t}(rU);function lU(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function cU(e,t){try{return await fetch(e,t)}catch(r){throw lU(r)}}var ci=null;typeof globalThis.window<"u"&&(ci=new A3("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),ci.fetch=cU);var M3={version:"0.4.0-alpha.0",package:"idkit-js"};var N3=e=>{e?ci==null||ci.capture("idkit loaded",M3):ci==null||ci.optOut()},k3=()=>{ci==null||ci.capture("idkit opened",M3)};var dU=oh()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,action_description:a,walletConnectProjectId:u,autoClose:l,copy:p,theme:h},y)=>{e(v=>({theme:h,signal:i,action:o,app_id:s,autoClose:l,action_description:a,walletConnectProjectId:u,copy:ne(ne({},v.copy),p)})),n&&t().addSuccessCallback(n,y),r&&t().addVerificationCallback(r,y)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:i}})})},onOpenChange:r=>{if(r)return k3(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result;n&&requestAnimationFrame(()=>Object.values(t().successCallbacks).map(i=>()=>i==null?void 0:i(n)))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:"WORLD_ID"})}})),Sn=dU;c();d();f();var L3={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var AL=me(oC(),1);c();d();f();var IL=me(Pe(),1);c();d();f();c();d();f();var sr=me(Pe()),mC=me(Js()),io=me(hC()),gj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function gC(e,t){return e(t={exports:{}},t.exports),t.exports}var yj=gC(function(e){(function(t){var r=function(R,P,M){if(!u(P)||p(P)||h(P)||y(P)||a(P))return P;var A,$=0,W=0;if(l(P))for(A=[],W=P.length;$<W;$++)A.push(r(R,P[$],M));else for(var ee in A={},P)Object.prototype.hasOwnProperty.call(P,ee)&&(A[R(ee,M)]=r(R,P[ee],M));return A},n=function(R){return v(R)?R:(R=R.replace(/[\-_\s]+(.)?/g,function(P,M){return M?M.toUpperCase():""})).substr(0,1).toLowerCase()+R.substr(1)},i=function(R){var P=n(R);return P.substr(0,1).toUpperCase()+P.substr(1)},o=function(R,P){return function(M,A){var $=(A=A||{}).separator||"_",W=A.split||/(?=[A-Z])/;return M.split(W).join($)}(R,P).toLowerCase()},s=Object.prototype.toString,a=function(R){return typeof R=="function"},u=function(R){return R===Object(R)},l=function(R){return s.call(R)=="[object Array]"},p=function(R){return s.call(R)=="[object Date]"},h=function(R){return s.call(R)=="[object RegExp]"},y=function(R){return s.call(R)=="[object Boolean]"},v=function(R){return(R-=0)==R},w=function(R,P){var M=P&&"process"in P?P.process:P;return typeof M!="function"?R:function(A,$){return M(A,R,$)}},C={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(R,P){return r(w(n,P),R)},decamelizeKeys:function(R,P){return r(w(o,P),R,P)},pascalizeKeys:function(R,P){return r(w(i,P),R)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=C:t.humps=C})(gj)}).decamelize,vj=gC(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),wj=function(e){if(Array.isArray(e))return e},xj=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},pC=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},bj=function(e,t){if(e){if(typeof e=="string")return pC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pC(e,t):void 0}},_j=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Ej=function(e,t){return wj(e)||xj(e,t)||bj(e,t)||_j()},Sj=function(e,t){if(e==null)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},Cj=function(e,t){if(e==null)return{};var r,n,i=Sj(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},Pj=(0,sr.createContext)(null);function gw(e){var t=e.root,r=e.children;return(0,mC.createPortal)(r,t)}function Tj(e){var t=(0,sr.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=Cj(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(o=(0,sr.useRef)((i=n)&&i.current),(0,sr.useEffect)(function(){i&&(i.current=o.current)},[i]),o),v=(0,sr.useState)(null),w=Ej(v,2),C=w[0],R=w[1],P="node_".concat(s).concat(a);return(0,sr.useLayoutEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),l){var M=y.current.shadowRoot;return void R(M)}var A=y.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(A.adoptedStyleSheets=u),R(A)}catch($){(function(W){var ee=W.error,q=W.styleSheets,K=W.root;switch(ee.name){case"NotSupportedError":q.length>0&&(K.adoptedStyleSheets=q);break;default:throw ee}})({error:$,styleSheets:u,root:C})}},[n,y,u]),sr.default.createElement(sr.default.Fragment,null,sr.default.createElement(e.tag,vj({key:P,ref:y},h),(C||l)&&sr.default.createElement(Pj.Provider,{value:C},l?sr.default.createElement("template",{shadowroot:"open"},e.render({root:C,ssr:l,children:p})):sr.default.createElement(gw,{root:C},e.render({root:C,ssr:l,children:p})))))});return t.propTypes={mode:io.default.oneOf(["open","closed"]),delegatesFocus:io.default.bool,styleSheets:io.default.arrayOf(io.default.instanceOf(globalThis.CSSStyleSheet)),ssr:io.default.bool,children:io.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}gw.propTypes={root:io.default.object.isRequired,children:io.default.node},gw.defaultProps={children:null};var mw=new Map;function Dj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var o=yj(i,{separator:"-"}),s="".concat(t,"-").concat(o);return mw.has(s)||mw.set(s,Tj({tag:o,render:r})),mw.get(s)}})}var Oj=Dj(),yC=Oj;c();d();f();var Ij=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
|
|
24
|
-
/*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\[2px\\]{margin-top:2px}.box-border{box-sizing:border-box}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[202px\\]{height:202px}.min-h-full{min-height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\\[202px\\]{width:202px}.w-\\[34px\\]{width:34px}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.overflow-y-hidden{overflow-y:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.dark .dark\\:border-black\\/10{border-color:rgba(0,0,0,.1)}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:hidden{display:none}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}.\\[\\&_\\*\\]\\:text-black *{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:\\[\\&_\\*\\]\\:text-white *{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}`,vC=()=>x.createElement("style",null,Ij);c();d();f();var Pp=me(Pe(),1),Rj=()=>{let[e,t]=(0,Pp.useState)("desktop");return(0,Pp.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=i=>t(i.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Su=Rj;c();d();f();var Aj=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),x.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),Tp=Aj;c();d();f();c();d();f();c();d();f();c();d();f();var yw=me(Pe(),1),ra=me(Pe(),1);c();d();f();var wC=me(Pe(),1),Cu=(0,wC.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var Dp=me(Pe(),1),ea=(0,Dp.createContext)({});function xC(){return(0,Dp.useContext)(ea).visualElement}c();d();f();var Pu=me(Pe(),1);c();d();f();var bC=me(Pe(),1),Ai=(0,bC.createContext)(null);c();d();f();var Op=me(Pe(),1);c();d();f();var Qn=typeof document<"u";var rs=Qn?Op.useLayoutEffect:Op.useEffect;c();d();f();var _C=me(Pe(),1),Ip=(0,_C.createContext)({strict:!1});function EC(e,t,r,n){let i=xC(),o=(0,Pu.useContext)(Ip),s=(0,Pu.useContext)(Ai),a=(0,Pu.useContext)(Cu).reducedMotion,u=(0,Pu.useRef)();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return rs(()=>{l&&l.render()}),rs(()=>{l&&l.animationState&&l.animationState.animateChanges()}),rs(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var SC=me(Pe(),1);c();d();f();function oo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CC(e,t,r){return(0,SC.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):oo(r)&&(r.current=n))},[t])}c();d();f();var Ap=me(Pe(),1);c();d();f();c();d();f();function so(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function ns(e){return typeof e=="object"&&typeof e.start=="function"}var Mj=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function ta(e){return ns(e.animate)||Mj.some(t=>so(e[t]))}function Rp(e){return Boolean(ta(e)||e.variants)}function PC(e,t){if(ta(e)){let{initial:r,animate:n}=e;return{initial:r===!1||so(r)?r:void 0,animate:so(n)?n:void 0}}return e.inherit!==!1?t:{}}function DC(e){let{initial:t,animate:r}=PC(e,(0,Ap.useContext)(ea));return(0,Ap.useMemo)(()=>({initial:t,animate:r}),[TC(t),TC(r)])}function TC(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var ao=e=>({isEnabled:t=>e.some(r=>!!t[r])}),is={measureLayout:ao(["layout","layoutId","drag"]),animation:ao(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ao(["exit"]),drag:ao(["drag","dragControls"]),focus:ao(["whileFocus"]),hover:ao(["whileHover","onHoverStart","onHoverEnd"]),tap:ao(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ao(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ao(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function OC(e){for(let t in e)t==="projectionNodeConstructor"?is.projectionNodeConstructor=e[t]:is[t].Component=e[t]}c();d();f();c();d();f();var IC=me(Pe(),1);function os(e){let t=(0,IC.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Nj=1;function RC(){return os(()=>{if(ss.hasEverUpdated)return Nj++})}c();d();f();var AC=me(Pe(),1),Tu=(0,AC.createContext)({});c();d();f();var MC=me(Pe(),1),Mp=class extends MC.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};c();d();f();var NC=me(Pe(),1),Np=(0,NC.createContext)({});c();d();f();var kC=Symbol.for("motionComponentSymbol");function FC({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&OC(e);function s(u,l){let p=_e(ne(ne({},(0,ra.useContext)(Cu)),u),{layoutId:kj(u)}),{isStatic:h}=p,y=null,v=DC(u),w=h?void 0:RC(),C=i(u,h);if(!h&&Qn){v.visualElement=EC(o,C,p,t);let R=(0,ra.useContext)(Ip).strict,P=(0,ra.useContext)(Np);v.visualElement&&(y=v.visualElement.loadFeatures(p,R,e,w,r||is.projectionNodeConstructor,P))}return yw.createElement(Mp,{visualElement:v.visualElement,props:p},y,yw.createElement(ea.Provider,{value:v},n(o,u,w,CC(C,v.visualElement,l),C,h,v.visualElement)))}let a=(0,ra.forwardRef)(s);return a[kC]=o,a}function kj({layoutId:e}){let t=(0,ra.useContext)(Tu).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function LC(e){function t(n,i={}){return FC(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}c();d();f();c();d();f();c();d();f();var $C=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Du(e){return typeof e!="string"||e.includes("-")?!1:!!($C.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var r4=me(Pe(),1);c();d();f();var qC=me(Pe(),1);c();d();f();c();d();f();var Ou={};function UC(e){Object.assign(Ou,e)}c();d();f();var Iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dn=new Set(Iu);function kp(e,{layout:t,layoutId:r}){return dn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ou[e]||e==="opacity")}c();d();f();var vr=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var Fj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lj=(e,t)=>Iu.indexOf(e)-Iu.indexOf(t);function VC({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(Lj);for(let a of t)s+=`${Fj[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,i?"":s):n&&i&&(s="none"),s}c();d();f();function Fp(e){return e.startsWith("--")}c();d();f();var jC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var wi=(e,t,r)=>Math.min(Math.max(r,e),t);var Jn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},as=_e(ne({},Jn),{transform:e=>wi(0,1,e)}),vf=_e(ne({},Jn),{default:1});c();d();f();c();d();f();var us=e=>Math.round(e*1e5)/1e5,ls=/(-)?([\d]*\.?[\d])+/g,Lp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,BC=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function uo(e){return typeof e=="string"}var wf=e=>({test:t=>uo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mi=wf("deg"),Xr=wf("%"),Ve=wf("px"),zC=wf("vh"),HC=wf("vw"),vw=_e(ne({},Xr),{parse:e=>Xr.parse(e)/100,transform:e=>Xr.transform(e*100)});c();d();f();var ww=_e(ne({},Jn),{transform:Math.round});var $p={borderWidth:Ve,borderTopWidth:Ve,borderRightWidth:Ve,borderBottomWidth:Ve,borderLeftWidth:Ve,borderRadius:Ve,radius:Ve,borderTopLeftRadius:Ve,borderTopRightRadius:Ve,borderBottomRightRadius:Ve,borderBottomLeftRadius:Ve,width:Ve,maxWidth:Ve,height:Ve,maxHeight:Ve,size:Ve,top:Ve,right:Ve,bottom:Ve,left:Ve,padding:Ve,paddingTop:Ve,paddingRight:Ve,paddingBottom:Ve,paddingLeft:Ve,margin:Ve,marginTop:Ve,marginRight:Ve,marginBottom:Ve,marginLeft:Ve,rotate:Mi,rotateX:Mi,rotateY:Mi,rotateZ:Mi,scale:vf,scaleX:vf,scaleY:vf,scaleZ:vf,skew:Mi,skewX:Mi,skewY:Mi,distance:Ve,translateX:Ve,translateY:Ve,translateZ:Ve,x:Ve,y:Ve,z:Ve,perspective:Ve,transformPerspective:Ve,opacity:as,originX:vw,originY:vw,originZ:Ve,zIndex:ww,fillOpacity:as,strokeOpacity:as,numOctaves:ww};function Ru(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let y in t){let v=t[y];if(Fp(y)){o[y]=v;continue}let w=$p[y],C=jC(v,w);if(dn.has(y)){if(l=!0,s[y]=C,a.push(y),!h)continue;v!==(w.default||0)&&(h=!1)}else y.startsWith("origin")?(p=!0,u[y]=C):i[y]=C}if(t.transform||(l||n?i.transform=VC(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:y="50%",originY:v="50%",originZ:w=0}=u;i.transformOrigin=`${y} ${v} ${w}`}}c();d();f();var Au=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function xw(e,t,r){for(let n in t)!vr(t[n])&&!kp(n,r)&&(e[n]=t[n])}function $j({transformTemplate:e},t,r){return(0,qC.useMemo)(()=>{let n=Au();return Ru(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Uj(e,t,r){let n=e.style||{},i={};return xw(i,n,e),Object.assign(i,$j(e,t,r)),e.transformValues?e.transformValues(i):i}function KC(e,t,r){let n={},i=Uj(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=i,n}c();d();f();c();d();f();var Vj=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],jj=["whileTap","onTap","onTapStart","onTapCancel"],Bj=["onPan","onPanStart","onPanSessionStart","onPanEnd"],zj=["whileInView","onViewportEnter","onViewportLeave","viewport"],Hj=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...zj,...jj,...Vj,...Bj]);function xf(e){return Hj.has(e)}var YC=e=>!xf(e);function Xj(e){!e||(YC=t=>t.startsWith("on")?!xf(t):e(t))}try{Xj(GC().default)}catch(e){}function XC(e,t,r){let n={};for(let i in e)(YC(i)||r===!0&&xf(i)||!t&&!xf(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var e4=me(Pe(),1);c();d();f();c();d();f();function ZC(e,t,r){return typeof e=="string"?e:Ve.transform(t+r*e)}function QC(e,t,r){let n=ZC(t,e.x,e.width),i=ZC(r,e.y,e.height);return`${n} ${i}`}c();d();f();var Zj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qj={offset:"strokeDashoffset",array:"strokeDasharray"};function JC(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?Zj:Qj;e[o.offset]=Ve.transform(-n);let s=Ve.transform(t),a=Ve.transform(r);e[o.array]=`${s} ${a}`}function Mu(e,y,l,p,h){var v=y,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=v,u=Le(v,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(Ru(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:w,style:C,dimensions:R}=e;w.transform&&(R&&(C.transform=w.transform),delete w.transform),R&&(n!==void 0||i!==void 0||C.transform)&&(C.transformOrigin=QC(R,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(w.x=t),r!==void 0&&(w.y=r),o!==void 0&&JC(w,o,s,a,!1)}c();d();f();var Up=()=>_e(ne({},Au()),{attrs:{}});c();d();f();var Nu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t4(e,t,r,n){let i=(0,e4.useMemo)(()=>{let o=Up();return Mu(o,t,{enableHardwareAcceleration:!1},Nu(n),e.transformTemplate),_e(ne({},o.attrs),{style:ne({},o.style)})},[t]);if(e.style){let o={};xw(o,e.style,e),i.style=ne(ne({},o),i.style)}return i}function n4(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(Du(r)?t4:KC)(n,s,a,r),p=XC(n,typeof r=="string",e),h=_e(ne(ne({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,r4.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var ku=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function Vp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}c();d();f();var jp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bp(e,t,r,n){Vp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(jp.has(i)?i:ku(i),t.attrs[i])}c();d();f();c();d();f();function Fu(e){let{style:t}=e,r={};for(let n in t)(vr(t[n])||kp(n,e))&&(r[n]=t[n]);return r}function zp(e){let t=Fu(e);for(let r in e)if(vr(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var Ew=me(Pe(),1);c();d();f();function Lu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}c();d();f();c();d();f();c();d();f();var na=e=>Array.isArray(e);var i4=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),o4=e=>na(e)?e[e.length-1]||0:e;function $u(e){let t=vr(e)?e.get():e;return i4(t)?t.toValue():t}function Jj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:eB(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var Hp=e=>(t,r)=>{let n=(0,Ew.useContext)(ea),i=(0,Ew.useContext)(Ai),o=()=>Jj(e,t,n,i);return r?o():os(o)};function eB(e,t,r,n){let i={},o=n(e);for(let y in o)i[y]=$u(o[y]);let{initial:s,animate:a}=e,u=ta(e),l=Rp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!ns(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{let w=Lu(e,v);if(!w)return;let M=w,{transitionEnd:C,transition:R}=M,P=Le(M,["transitionEnd","transition"]);for(let A in P){let $=P[A];if(Array.isArray($)){let W=p?$.length-1:0;$=$[W]}$!==null&&(i[A]=$)}for(let A in C)i[A]=C[A]}),i}var s4={useVisualState:Hp({scrapeMotionValuesFromProps:zp,createRenderState:Up,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}Mu(r,n,{enableHardwareAcceleration:!1},Nu(t.tagName),e.transformTemplate),Bp(t,r)}})};c();d();f();var a4={useVisualState:Hp({scrapeMotionValuesFromProps:Fu,createRenderState:Au})};function u4(e,{forwardMotionProps:t=!1},r,n,i){let o=Du(e)?s4:a4;return _e(ne({},o),{preloadedFeatures:r,useRender:n4(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var yt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(yt||(yt={}));c();d();f();var l4=me(Pe(),1);function ia(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function bf(e,t,r,n){(0,l4.useEffect)(()=>{let i=e.current;if(r&&i)return ia(i,t,r,n)},[e,t,r,n])}function c4({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(yt.Focus,!0)},i=()=>{r&&r.setActive(yt.Focus,!1)};bf(t,"focus",e?n:void 0),bf(t,"blur",e?i:void 0)}c();d();f();c();d();f();function qp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Kp(e){return!!e.touches}c();d();f();c();d();f();function tB(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var rB={pageX:0,pageY:0};function nB(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||rB;return{x:n[t+"X"],y:n[t+"Y"]}}function iB(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function _f(e,t="page"){return{point:Kp(e)?nB(e,t):iB(e,t)}}var Sw=(e,t=!1)=>{let r=n=>e(n,_f(n));return t?tB(r):r};c();d();f();var f4=()=>Qn&&window.onpointerdown===null,d4=()=>Qn&&window.ontouchstart===null,h4=()=>Qn&&window.onmousedown===null;var oB={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},sB={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function p4(e){return f4()?e:d4()?sB[e]:h4()?oB[e]:e}function lo(e,t,r,n){return ia(e,p4(t),Sw(r,t==="pointerdown"),n)}function oa(e,t,r,n){return bf(e,p4(t),r&&Sw(r,t==="pointerdown"),n)}c();d();f();function y4(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var m4=y4("dragHorizontal"),g4=y4("dragVertical");function Cw(e){let t=!1;if(e==="y")t=g4();else if(e==="x")t=m4();else{let r=m4(),n=g4();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Wp(){let e=Cw(!0);return e?(e(),!1):!0}function v4(e,t,r){return(n,i)=>{!qp(n)||Wp()||(e.animationState&&e.animationState.setActive(yt.Hover,t),r&&r(n,i))}}function w4({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){oa(n,"pointerenter",e||r?v4(n,!0,e):void 0,{passive:!e}),oa(n,"pointerleave",t||r?v4(n,!1,t):void 0,{passive:!t})}c();d();f();var Tw=me(Pe(),1);c();d();f();var Pw=(e,t)=>t?e===t?!0:Pw(e,t.parentElement):!1;c();d();f();var x4=me(Pe(),1);function Uu(e){return(0,x4.useEffect)(()=>()=>e(),[])}c();d();f();var aB=(e,t)=>r=>t(e(r)),cs=(...e)=>e.reduce(aB);function b4({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,Tw.useRef)(!1),a=(0,Tw.useRef)(null),u={passive:!(t||e||r||v)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(yt.Tap,!1),!Wp()}function h(w,C){!p()||(Pw(i.current,w.target)?e&&e(w,C):r&&r(w,C))}function y(w,C){!p()||r&&r(w,C)}function v(w,C){l(),!s.current&&(s.current=!0,a.current=cs(lo(window,"pointerup",h,u),lo(window,"pointercancel",y,u)),i.animationState&&i.animationState.setActive(yt.Tap,!0),t&&t(w,C))}oa(i,"pointerdown",o?v:void 0,u),Uu(l)}c();d();f();c();d();f();var uB="production",Vu=typeof process>"u"||process.env===void 0?uB:"production";var Ef=me(Pe(),1);c();d();f();var _4=new Set;function Gp(e,t,r){e||_4.has(t)||(console.warn(t),r&&console.warn(r),_4.add(t))}c();d();f();var Ow=new WeakMap,Dw=new WeakMap,lB=e=>{let t=Ow.get(e.target);t&&t(e)},cB=e=>{e.forEach(lB)};function fB(r){var n=r,{root:e}=n,t=Le(n,["root"]);let i=e||document;Dw.has(i)||Dw.set(i,{});let o=Dw.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(cB,ne({root:e},t))),o[s]}function E4(e,t,r){let n=fB(t);return Ow.set(e,r),n.observe(e),()=>{Ow.delete(e),n.unobserve(e)}}function S4({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,Ef.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?pB:hB)(s,o.current,e,i)}var dB={some:0,all:1};function hB(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,Ef.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:dB[o]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(yt.InView,p);let h=r.getProps(),y=p?h.onViewportEnter:h.onViewportLeave;y&&y(l)};return E4(r.current,a,u)},[e,n,i,o])}function pB(e,t,r,{fallback:n=!0}){(0,Ef.useEffect)(()=>{!e||!n||(Vu!=="production"&&Gp(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(yt.InView,!0)}))},[e])}c();d();f();var xi=e=>t=>(e(t),null);var C4={inView:xi(S4),tap:xi(b4),focus:xi(c4),hover:xi(w4)};c();d();f();var kf=me(Pe(),1);c();d();f();var ju=me(Pe(),1);function Yp(){let e=(0,ju.useContext)(Ai);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,ju.useId)();return(0,ju.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function Iw(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}c();d();f();c();d();f();c();d();f();var P4=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var T4=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var Rn={delta:0,timestamp:0};c();d();f();c();d();f();var Rw=16.666666666666668,mB=typeof performance<"u"?()=>performance.now():()=>Date.now(),Aw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(mB()),Rw);c();d();f();function D4(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,y=h?t:r;return l&&s.add(u),y.indexOf(u)===-1&&(y.push(u),h&&i&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}i=!1,o&&(o=!1,a.process(u))}};return a}var gB=40,Mw=!0,Sf=!1,Nw=!1,Cf=["read","update","preRender","render","postRender"],Xp=Cf.reduce((e,t)=>(e[t]=D4(()=>Sf=!0),e),{}),Bt=Cf.reduce((e,t)=>{let r=Xp[t];return e[t]=(n,i=!1,o=!1)=>(Sf||vB(),r.schedule(n,i,o)),e},{}),An=Cf.reduce((e,t)=>(e[t]=Xp[t].cancel,e),{}),Zp=Cf.reduce((e,t)=>(e[t]=()=>Xp[t].process(Rn),e),{}),yB=e=>Xp[e].process(Rn),O4=e=>{Sf=!1,Rn.delta=Mw?Rw:Math.max(Math.min(e-Rn.timestamp,gB),1),Rn.timestamp=e,Nw=!0,Cf.forEach(yB),Nw=!1,Sf&&(Mw=!1,Aw(O4))},vB=()=>{Sf=!0,Mw=!0,Nw||Aw(O4)};c();d();f();c();d();f();function Bu(e,t){e.indexOf(t)===-1&&e.push(t)}function zu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var fs=class{constructor(){this.subscriptions=[]}add(t){return Bu(this.subscriptions,t),()=>zu(this.subscriptions,t)}notify(t,r,n){let i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){let s=this.subscriptions[o];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function Hu(e,t){return t?e*(1e3/t):0}var wB=e=>!isNaN(parseFloat(e)),kw=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;let{delta:o,timestamp:s}=Rn;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Bt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Bt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=wB(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new fs),this.events[t].add(r)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Hu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}};function Ni(e,t){return new kw(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var qu=(e,t)=>r=>Boolean(uo(r)&&BC.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Qp=(e,t,r)=>n=>{if(!uo(n))return n;let[i,o,s,a]=n.match(ls);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var xB=e=>wi(0,255,e),Fw=_e(ne({},Jn),{transform:e=>Math.round(xB(e))}),ki={test:qu("rgb","red"),parse:Qp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Fw.transform(e)+", "+Fw.transform(t)+", "+Fw.transform(r)+", "+us(as.transform(n))+")"};function bB(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var Pf={test:qu("#"),parse:bB,transform:ki.transform};c();d();f();var ds={test:qu("hsl","hue"),parse:Qp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Xr.transform(us(t))+", "+Xr.transform(us(r))+", "+us(as.transform(n))+")"};var ar={test:e=>ki.test(e)||Pf.test(e)||ds.test(e),parse:e=>ki.test(e)?ki.parse(e):ds.test(e)?ds.parse(e):Pf.parse(e),transform:e=>uo(e)?e:e.hasOwnProperty("red")?ki.transform(e):ds.transform(e)};var I4="${c}",R4="${n}";function _B(e){var t,r;return isNaN(e)&&uo(e)&&(((t=e.match(ls))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Lp))===null||r===void 0?void 0:r.length)||0)>0}function Tf(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(Lp);i&&(r=i.length,e=e.replace(Lp,I4),t.push(...i.map(ar.parse)));let o=e.match(ls);return o&&(n=o.length,e=e.replace(ls,R4),t.push(...o.map(Jn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function A4(e){return Tf(e).values}function M4(e){let{values:t,numColors:r,tokenised:n}=Tf(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?I4:R4,a<r?ar.transform(o[a]):us(o[a]));return s}}var EB=e=>typeof e=="number"?0:e;function SB(e){let t=A4(e);return M4(e)(t.map(EB))}var Zr={test:_B,parse:A4,createTransformer:M4,getAnimatableNone:SB};c();d();f();c();d();f();var CB=new Set(["brightness","contrast","saturate","opacity"]);function PB(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(ls)||[];if(!n)return e;let i=r.replace(n,""),o=CB.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var TB=/([a-z-]*)\(.*?\)/g,Df=_e(ne({},Zr),{getAnimatableNone:e=>{let t=e.match(TB);return t?t.map(PB).join(" "):e}});c();d();f();var DB=_e(ne({},$p),{color:ar,backgroundColor:ar,outlineColor:ar,fill:ar,stroke:ar,borderColor:ar,borderTopColor:ar,borderRightColor:ar,borderBottomColor:ar,borderLeftColor:ar,filter:Df,WebkitFilter:Df}),Ku=e=>DB[e];function Wu(e,t){var r;let n=Ku(e);return n!==Df&&(n=Zr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Jp=e=>t=>t.test(e);c();d();f();var N4={test:e=>e==="auto",parse:e=>e};var Lw=[Jn,Ve,Xr,Mi,HC,zC,N4],Gu=e=>Lw.find(Jp(e));var OB=[...Lw,ar,Zr],k4=e=>OB.find(Jp(e));c();d();f();function IB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function RB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function sa(e,t,r){let n=e.getProps();return Lu(n,t,r!==void 0?r:n.custom,IB(e),RB(e))}function AB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ni(r))}function F4(e,t){let r=sa(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=Le(s,["transitionEnd","transition"]);o=ne(ne({},o),n);for(let a in o){let u=o4(o[a]);AB(e,a,u)}}function L4(e,t,r){var n,i;let o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(!!s)for(let a=0;a<s;a++){let u=o[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(P4(p)||T4(p))?p=parseFloat(p):!k4(p)&&Zr.test(l)&&(p=Wu(u,l)),e.addValue(u,Ni(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function MB(e,t){return t?(t[e]||t.default||t).from:void 0}function $4(e,t,r){var n;let i={};for(let o in e){let s=MB(o,t);i[o]=s!==void 0?s:(n=r.getValue(o))===null||n===void 0?void 0:n.get()}return i}c();d();f();function aa(e){return Boolean(vr(e)&&e.add)}c();d();f();c();d();f();var U4=(e,t)=>`${e}: ${t}`;function V4(e,t){let{MotionAppearAnimations:r}=window,n=U4(e,dn.has(t)?"transform":t),i=r&&r.get(n);return i?(Bt.render(()=>{try{i.cancel(),r.delete(n)}catch(o){}}),i.currentTime||0):0}c();d();f();var NB="framerAppearId",j4="data-"+ku(NB);c();d();f();c();d();f();var Yu=function(){},Sr=function(){};c();d();f();var Xu=e=>e*1e3;c();d();f();var B4={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Zu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Qu=e=>t=>1-e(1-t);var e0=e=>e*e,z4=Qu(e0),Of=Zu(e0);c();d();f();c();d();f();var vt=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function $w(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function H4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,u=2*r-a;i=$w(u,a,e+1/3),o=$w(u,a,e),s=$w(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var Uw=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},kB=[Pf,ki,ds],FB=e=>kB.find(t=>t.test(e));function q4(e){let t=FB(e);Sr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ds&&(r=H4(r)),r}var t0=(e,t)=>{let r=q4(e),n=q4(t),i=ne({},r);return o=>(i.red=Uw(r.red,n.red,o),i.green=Uw(r.green,n.green,o),i.blue=Uw(r.blue,n.blue,o),i.alpha=vt(r.alpha,n.alpha,o),ki.transform(i))};c();d();f();function K4(e,t){return typeof e=="number"?r=>vt(e,t,r):ar.test(e)?t0(e,t):jw(e,t)}var Vw=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>K4(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},W4=(e,t)=>{let r=ne(ne({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=K4(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},jw=(e,t)=>{let r=Zr.createTransformer(t),n=Tf(e),i=Tf(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?cs(Vw(n.values,i.values),r):(Yu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};c();d();f();var ua=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var G4=(e,t)=>r=>vt(e,t,r);function LB(e){return typeof e=="number"?G4:typeof e=="string"?ar.test(e)?t0:jw:Array.isArray(e)?Vw:typeof e=="object"?W4:G4}function $B(e,t,r){let n=[],i=r||LB(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=cs(u,a)}n.push(a)}return n}function r0(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;Sr(o===t.length,"Both input and output ranges must be the same length"),Sr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=$B(t,n,i),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=ua(e[p],e[p+1],l);return s[p](h)};return r?l=>u(wi(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Ju=e=>e;var Y4=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,UB=1e-7,VB=12;function jB(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=Y4(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>UB&&++a<VB);return s}function n0(e,t,r,n){if(e===t&&r===n)return Ju;let i=o=>jB(o,0,1,e,r);return o=>o===0||o===1?o:Y4(i(o),t,n)}c();d();f();var Bw=e=>1-Math.sin(Math.acos(e)),If=Qu(Bw),X4=Zu(If);c();d();f();var zw=n0(.33,1.53,.69,.99),Rf=Qu(zw),Z4=Zu(Rf);c();d();f();var Q4=e=>(e*=2)<1?.5*Rf(e):.5*(2-Math.pow(2,-10*(e-1)));var J4={linear:Ju,easeIn:e0,easeInOut:Of,easeOut:z4,circIn:Bw,circInOut:X4,circOut:If,backIn:Rf,backInOut:Z4,backOut:zw,anticipate:Q4},Hw=e=>{if(Array.isArray(e)){Sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return n0(t,r,n,i)}else if(typeof e=="string")return Sr(J4[e]!==void 0,`Invalid easing type '${e}'`),J4[e];return e},e8=e=>Array.isArray(e)&&typeof e[0]!="number";function BB(e,t){return e.map(()=>t||Of).splice(0,e.length-1)}function zB(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function HB(e,t){return e.map(r=>r*t)}function Af({keyframes:e,ease:t=Of,times:r,duration:n=300}){e=[...e];let i=Af[0],o=e8(t)?t.map(Hw):Hw(t),s={done:!1,value:i},a=HB(r&&r.length===Af.length?r:zB(e),n);function u(){return r0(a,e,{ease:Array.isArray(o)?o:BB(e,o)})}let l=u();return{next:p=>(s.value=l(p),s.done=p>=n,s),flipTarget:()=>{e.reverse(),l=u()}}}c();d();f();c();d();f();var qw=.001,qB=.01,t8=10,KB=.05,WB=1;function r8({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Yu(e<=t8*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=wi(KB,WB,s),e=wi(qB,t8,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,y=p-r,v=i0(l,s),w=Math.exp(-h);return qw-y/v*w},o=l=>{let h=l*s*e,y=h*r+r,v=Math.pow(s,2)*Math.pow(l,2)*e,w=Math.exp(-h),C=i0(Math.pow(l,2),s);return(-i(l)+qw>0?-1:1)*((y-v)*w)/C}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-qw+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=YB(i,o,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var GB=12;function YB(e,t,r){let n=r;for(let i=1;i<GB;i++)n=n-e(n)/t(n);return n}function i0(e,t){return e*Math.sqrt(1-t*t)}var XB=["duration","bounce"],ZB=["stiffness","damping","mass"];function n8(e,t){return t.some(r=>e[r]!==void 0)}function QB(e){let t=ne({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!n8(e,ZB)&&n8(e,XB)){let r=r8(e);t=_e(ne(ne({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var JB=5;function Kw(i){var o=i,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=o,n=Le(o,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],u={done:!1,value:s},{stiffness:l,damping:p,mass:h,velocity:y,duration:v,isResolvedFromDuration:w}=QB(n),C=ez,R=y?-(y/1e3):0,P=p/(2*Math.sqrt(l*h));function M(){let A=a-s,$=Math.sqrt(l/h)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),P<1){let W=i0($,P);C=ee=>{let q=Math.exp(-P*$*ee);return a-q*((R+P*$*A)/W*Math.sin(W*ee)+A*Math.cos(W*ee))}}else if(P===1)C=W=>a-Math.exp(-$*W)*(A+(R+$*A)*W);else{let W=$*Math.sqrt(P*P-1);C=ee=>{let q=Math.exp(-P*$*ee),K=Math.min(W*ee,300);return a-q*((R+P*$*A)*Math.sinh(K)+W*A*Math.cosh(K))/W}}}return M(),{next:A=>{let $=C(A);if(w)u.done=A>=v;else{let W=R;if(A!==0)if(P<1){let K=Math.max(0,A-JB);W=Hu($-C(K),A-K)}else W=0;let ee=Math.abs(W)<=t,q=Math.abs(a-$)<=r;u.done=ee&&q}return u.value=u.done?a:$,u},flipTarget:()=>{R=-R,[s,a]=[a,s],M()}}}Kw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var ez=e=>0;c();d();f();function i8({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s=e[0],a={done:!1,value:s},u=r*t,l=s+u,p=o===void 0?l:o(l);return p!==l&&(u=p-s),{next:h=>{let y=-u*Math.exp(-h/n);return a.done=!(y>i||y<-i),a.value=a.done?p:p+y,a},flipTarget:()=>{}}}var tz={decay:i8,keyframes:Af,tween:Af,spring:Kw};function o8(e,t,r=0){return e-t-r}function rz(e,t=0,r=0,n=!0){return n?o8(t+-e,t,r):t-(e-t)+r}function nz(e,t,r,n){return n?e>=t+r:e<=-r}var iz=e=>{let t=({delta:r})=>e(r);return{start:()=>Bt.update(t,!0),stop:()=>An.update(t)}};function la(C){var R=C,{duration:e,driver:t=iz,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:l,onComplete:p,onRepeat:h,onUpdate:y,type:v="keyframes"}=R,w=Le(R,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var P,M;let A,$=0,W=e,ee,q=!1,K=!0,ue,pe=tz[s.length>2?"keyframes":v],fe=s[0],X=s[s.length-1];!((M=(P=pe).needsInterpolation)===null||M===void 0)&&M.call(P,fe,X)&&(ue=r0([0,100],[fe,X],{clamp:!1}),s=[0,100]);let I=pe(_e(ne({},w),{duration:e,keyframes:s}));function m(){$++,i==="reverse"?(K=$%2===0,r=rz(r,W,o,K)):(r=o8(r,W,o),i==="mirror"&&I.flipTarget()),q=!1,h&&h()}function g(){A.stop(),p&&p()}function E(k){if(K||(k=-k),r+=k,!q){let V=I.next(Math.max(0,r));ee=V.value,ue&&(ee=ue(ee)),q=K?V.done:r<=0}y&&y(ee),q&&($===0&&(W=W!==void 0?W:r),$<n?nz(r,W,o,K)&&m():g())}function T(){u&&u(),A=t(E),A.start()}return a&&T(),{stop:()=>{l&&l(),A.stop()},sample:k=>I.next(Math.max(0,k))}}c();d();f();c();d();f();function s8(e){return!e||Array.isArray(e)||typeof e=="string"&&a8[e]}var Mf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,a8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mf([0,.65,.55,1]),circOut:Mf([.55,0,1,.45]),backIn:Mf([.31,.01,.66,-.59]),backOut:Mf([.33,1.53,.69,.99])};function u8(e){if(!!e)return Array.isArray(e)?Mf(e):a8[e]}function l8(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){return e.animate({[t]:r,offset:u},{delay:n,duration:i,easing:u8(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var o0=10;function c8(e,t,o){var s=o,{onUpdate:r,onComplete:n}=s,i=Le(s,["onUpdate","onComplete"]);let{keyframes:a,duration:u=.3,elapsed:l=0,ease:p}=i;if(i.type==="spring"||!s8(i.ease)){let y=la(i),v={done:!1,value:a[0]},w=[],C=0;for(;!v.done;)v=y.sample(C),w.push(v.value),C+=o0;a=w,u=C-o0,p="linear"}let h=l8(e.owner.current,t,a,_e(ne({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:y}=h;if(y){let v=la(i);e.setWithVelocity(v.sample(y-o0).value,v.sample(y).value,o0)}Bt.update(()=>h.cancel())}}c();d();f();c();d();f();function s0(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(An.read(n),e(o-t))};return Bt.read(n,!0),()=>An.read(n)}function f8({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?s0(i,-t):i()}c();d();f();function d8({keyframes:e,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:y,onStop:v}){let w=e[0],C;function R($){return r!==void 0&&$<r||n!==void 0&&$>n}function P($){return r===void 0?n:n===void 0||Math.abs(r-$)<Math.abs(n-$)?r:n}function M($){C==null||C.stop(),C=la(_e(ne({keyframes:[0,1],velocity:0},$),{driver:p,onUpdate:W=>{var ee;h==null||h(W),(ee=$.onUpdate)===null||ee===void 0||ee.call($,W)},onComplete:y,onStop:v}))}function A($){M(ne({type:"spring",stiffness:s,damping:a,restDelta:u},$))}if(R(w))A({velocity:t,keyframes:[w,P(w)]});else{let $=i*t+w;typeof l<"u"&&($=l($));let W=P($),ee=W===r?-1:1,q,K,ue=pe=>{q=K,K=pe,t=Hu(pe-q,Rn.delta),(ee===1&&pe>W||ee===-1&&pe<W)&&A({keyframes:[pe,W],velocity:t})};M({type:"decay",keyframes:[w,0],velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:R($)?ue:void 0})}return{stop:()=>C==null?void 0:C.stop()}}c();d();f();var ca=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),a0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ww=()=>({type:"keyframes",ease:"linear",duration:.3}),oz={type:"keyframes",duration:.8},h8={x:ca,y:ca,z:ca,rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scaleX:a0,scaleY:a0,scale:a0,opacity:Ww,backgroundColor:Ww,color:Ww,default:a0},p8=(e,{keyframes:t})=>t.length>2?oz:(h8[e]||h8.default)(t[1]);c();d();f();var Nf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Zr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function m8(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u}=h,l=Le(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}function Gw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Yw(e){return typeof e=="number"?0:Wu("",e)}function u0(e,t){return e[t]||e.default||e}function g8(e,t,r,n){let i=Nf(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=Wu(t,r):Gw(o)&&typeof r=="string"?o=Yw(r):!Array.isArray(r)&&Gw(r)&&typeof o=="string"&&(r=Yw(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var y8={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Xw={},Zw={};for(let e in y8)Zw[e]=()=>(Xw[e]===void 0&&(Xw[e]=y8[e]()),Xw[e]);var sz=new Set(["opacity"]),el=(e,t,r,n={})=>i=>{let o=u0(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Xu(s);let u=g8(t,e,r,o),l=u[0],p=u[u.length-1],h=Nf(e,l),y=Nf(e,p);Yu(h===y,`You are trying to animate ${e} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let v=_e(ne({keyframes:u,velocity:t.getVelocity()},o),{elapsed:a,onUpdate:P=>{t.set(P),o.onUpdate&&o.onUpdate(P)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}});if(!h||!y||B4.current||o.type===!1)return f8(v);if(o.type==="inertia"){let P=d8(v);return()=>P.stop()}m8(o)||(v=ne(ne({},v),p8(e,v))),v.duration&&(v.duration=Xu(v.duration)),v.repeatDelay&&(v.repeatDelay=Xu(v.repeatDelay));let w=t.owner,C=w&&w.current;if(Zw.waapi()&&sz.has(e)&&!v.repeatDelay&&v.repeatType!=="mirror"&&v.damping!==0&&w&&C instanceof HTMLElement&&!w.getProps().onUpdate)return c8(t,e,v);{let P=la(v);return()=>P.stop()}};function v8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>Qw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Qw(e,t,r);else{let i=typeof t=="function"?sa(e,t,r.custom):t;n=w8(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function Qw(e,t,r={}){var n;let i=sa(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>w8(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:y}=o;return az(e,t,p+l,h,y,r)}:()=>Promise.resolve(),{when:u}=o;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function w8(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,u=Le(y,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let v in u){let w=e.getValue(v),C=u[v];if(!w||C===void 0||h&&lz(h,v))continue;let R=ne({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&dn.has(v)&&(R=_e(ne({},R),{type:!1,delay:0})),!w.hasAnimated){let M=e.getProps()[j4];M&&(R.elapsed=V4(M,v))}let P=w.start(el(v,w,C,R));aa(l)&&(l.add(v),P=P.then(()=>l.remove(v))),p.push(P)}return Promise.all(p).then(()=>{a&&F4(e,a)})}function az(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(uz).forEach((l,p)=>{s.push(Qw(l,t,_e(ne({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function uz(e,t){return e.sortNodePosition(t)}function lz({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var l0=[yt.Animate,yt.InView,yt.Focus,yt.Hover,yt.Tap,yt.Drag,yt.Exit],cz=[...l0].reverse(),fz=l0.length;function dz(e){return t=>Promise.all(t.map(({animation:r,options:n})=>v8(e,r,n)))}function x8(e){let t=dz(e),r=pz(),n=!0,i=(u,l)=>{let p=sa(e,l);if(p){let h=p,{transition:y,transitionEnd:v}=h,w=Le(h,["transition","transitionEnd"]);u=ne(ne(ne({},u),w),v)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},y=[],v=new Set,w={},C=1/0;for(let P=0;P<fz;P++){let M=cz[P],A=r[M],$=p[M]!==void 0?p[M]:h[M],W=so($),ee=M===l?A.isActive:null;ee===!1&&(C=P);let q=$===h[M]&&$!==p[M]&&W;if(q&&n&&e.manuallyAnimateOnMount&&(q=!1),A.protectedKeys=ne({},w),!A.isActive&&ee===null||!$&&!A.prevProp||ns($)||typeof $=="boolean")continue;let K=hz(A.prevProp,$),ue=K||M===l&&A.isActive&&!q&&W||P>C&&W,pe=Array.isArray($)?$:[$],fe=pe.reduce(i,{});ee===!1&&(fe={});let{prevResolvedValues:X={}}=A,I=ne(ne({},X),fe),m=g=>{ue=!0,v.delete(g),A.needsAnimating[g]=!0};for(let g in I){let E=fe[g],T=X[g];w.hasOwnProperty(g)||(E!==T?na(E)&&na(T)?!Iw(E,T)||K?m(g):A.protectedKeys[g]=!0:E!==void 0?m(g):v.add(g):E!==void 0&&v.has(g)?m(g):A.protectedKeys[g]=!0)}A.prevProp=$,A.prevResolvedValues=fe,A.isActive&&(w=ne(ne({},w),fe)),n&&e.blockInitialAnimation&&(ue=!1),ue&&!q&&y.push(...pe.map(g=>({animation:g,options:ne({type:M},u)})))}if(v.size){let P={};v.forEach(M=>{let A=e.getBaseTarget(M);A!==void 0&&(P[M]=A)}),y.push({animation:P})}let R=Boolean(y.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(R=!1),n=!1,R?t(y):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(u,l)}),r[u].isActive=l;let y=s(p,u);for(let v in r)r[v].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function hz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Iw(t,e):!1}function fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pz(){return{[yt.Animate]:fa(!0),[yt.InView]:fa(),[yt.Hover]:fa(),[yt.Tap]:fa(),[yt.Drag]:fa(),[yt.Focus]:fa(),[yt.Exit]:fa()}}var b8={animation:xi(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=x8(e)),ns(t)&&(0,kf.useEffect)(()=>t.subscribe(e),[t])}),exit:xi(e=>{let{custom:t,visualElement:r}=e,[n,i]=Yp(),o=(0,kf.useContext)(Ai);(0,kf.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(yt.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var sx=me(Pe(),1);c();d();f();c();d();f();c();d();f();var _8=(e,t)=>Math.abs(e-t);function E8(e,t){let r=_8(e.x,t.x),n=_8(e.y,t.y);return Math.sqrt(r**2+n**2)}var tl=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=ex(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=E8(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:y}=l,{timestamp:v}=Rn;this.history.push(_e(ne({},y),{timestamp:v}));let{onStart:w,onMove:C}=this.handlers;p||(w&&w(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=Jw(p,this.transformPagePoint),qp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Bt.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:y}=this.handlers,v=ex(Jw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,v),y&&y(l,v)},Kp(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=_f(t),o=Jw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=Rn;this.history=[_e(ne({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,ex(o,this.history)),this.removeListeners=cs(lo(window,"pointermove",this.handlePointerMove),lo(window,"pointerup",this.handlePointerUp),lo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),An.update(this.updatePoint)}};function Jw(e,t){return t?{point:t(e.point)}:e}function S8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ex({point:e},t){return{point:e,delta:S8(e,C8(t)),offset:S8(e,mz(t)),velocity:gz(t,.1)}}function mz(e){return e[0]}function C8(e){return e[e.length-1]}function gz(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=C8(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Xu(t)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function Cr(e){return e.max-e.min}function c0(e,t=0,r=.01){return Math.abs(e-t)<=r}function P8(e,t,r,n=.5){e.origin=n,e.originPoint=vt(t.min,t.max,e.origin),e.scale=Cr(r)/Cr(t),(c0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=vt(r.min,r.max,e.origin)-e.originPoint,(c0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rl(e,t,r,n){P8(e.x,t.x,r.x,n==null?void 0:n.originX),P8(e.y,t.y,r.y,n==null?void 0:n.originY)}function T8(e,t,r){e.min=r.min+t.min,e.max=e.min+Cr(t)}function O8(e,t,r){T8(e.x,t.x,r.x),T8(e.y,t.y,r.y)}function D8(e,t,r){e.min=t.min-r.min,e.max=e.min+Cr(t)}function nl(e,t,r){D8(e.x,t.x,r.x),D8(e.y,t.y,r.y)}function N8(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?vt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?vt(r,e,n.max):Math.min(e,r)),e}function I8(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function k8(e,{top:t,left:r,bottom:n,right:i}){return{x:I8(e.x,r,i),y:I8(e.y,t,n)}}function R8(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function F8(e,t){return{x:R8(e.x,t.x),y:R8(e.y,t.y)}}function L8(e,t){let r=.5,n=Cr(e),i=Cr(t);return i>n?r=ua(t.min,t.max-n,e.min):n>i&&(r=ua(e.min,e.max-i,t.min)),wi(0,1,r)}function $8(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var f0=.35;function U8(e=f0){return e===!1?e=0:e===!0&&(e=f0),{x:A8(e,"left","right"),y:A8(e,"top","bottom")}}function A8(e,t,r){return{min:M8(e,t),max:M8(e,r)}}function M8(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var V8=()=>({translate:0,scale:1,origin:0,originPoint:0}),il=()=>({x:V8(),y:V8()}),j8=()=>({min:0,max:0}),Wt=()=>({x:j8(),y:j8()});c();d();f();function ei(e){return[e("x"),e("y")]}c();d();f();c();d();f();function d0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function B8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function z8(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}c();d();f();c();d();f();function tx(e){return e===void 0||e===1}function h0({scale:e,scaleX:t,scaleY:r}){return!tx(e)||!tx(t)||!tx(r)}function co(e){return h0(e)||rx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function rx(e){return H8(e.x)||H8(e.y)}function H8(e){return e&&e!=="0%"}function Ff(e,t,r){let n=e-r,i=t*n;return r+i}function q8(e,t,r,n,i){return i!==void 0&&(e=Ff(e,i,n)),Ff(e,r,n)+t}function nx(e,t=0,r=1,n,i){e.min=q8(e.min,t,r,n,i),e.max=q8(e.max,t,r,n,i)}function ix(e,{x:t,y:r}){nx(e.x,t.translate,t.scale,t.originPoint),nx(e.y,r.translate,r.scale,r.originPoint)}function G8(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&da(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,ix(e,u)),n&&co(a.latestValues)&&da(e,a.latestValues));t.x=K8(t.x),t.y=K8(t.y)}function K8(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Fi(e,t){e.min=e.min+t,e.max=e.max+t}function W8(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=vt(e.min,e.max,o);nx(e,t[r],t[n],s,t.scale)}var yz=["x","scaleX","originX"],vz=["y","scaleY","originY"];function da(e,t){W8(e.x,t,yz),W8(e.y,t,vz)}function ox(e,t){return d0(z8(e.getBoundingClientRect(),t))}function Y8(e,t,r){let n=ox(e,r),{scroll:i}=t;return i&&(Fi(n.x,i.offset.x),Fi(n.y,i.offset.y)),n}var wz=new WeakMap,m0=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(_f(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Cw(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ei(v=>{var w,C;let R=this.getAxisMotionValue(v).get()||0;if(Xr.test(R)){let P=(C=(w=this.visualElement.projection)===null||w===void 0?void 0:w.layout)===null||C===void 0?void 0:C.layoutBox[v];P&&(R=Cr(P)*(parseFloat(R)/100))}this.originPoint[v]=R}),y==null||y(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(yt.Drag,!0))},o=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:v}=u;if(p&&this.currentDirection===null){this.currentDirection=xz(v),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),y==null||y(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new tl(t,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o==null||o(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(yt.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!p0(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=N8(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&oo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=k8(n.layoutBox,t):this.constraints=!1,this.elastic=U8(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ei(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=$8(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!oo(t))return!1;let n=t.current;Sr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=Y8(n,i.root,this.visualElement.getTransformPagePoint()),s=F8(i.layout.layoutBox,o);if(r){let a=r(B8(s));this.hasMutatedConstraints=!!a,a&&(s=d0(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=ei(p=>{if(!p0(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let y=i?200:1e6,v=i?40:1e7,w=ne(ne({type:"inertia",velocity:n?t[p]:0,bounceStiffness:y,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,w)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(el(t,n,0,r))}stopAnimation(){ei(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){ei(r=>{let{drag:n}=this.getProps();if(!p0(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){let{min:s,max:a}=i.layout.layoutBox[r];o.set(t[r]-vt(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!oo(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};ei(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=L8({min:l,max:l},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),ei(a=>{if(!p0(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(vt(l,p,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;wz.set(this.visualElement,this);let r=this.visualElement.current,n=lo(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();oo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();let a=ia(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(ei(h=>{let y=this.getAxisMotionValue(h);!y||(this.originPoint[h]+=l[h].translate,y.set(y.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=f0,dragMomentum:a=!0}=t;return _e(ne({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function p0(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function xz(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function X8(e){let{dragControls:t,visualElement:r}=e,n=os(()=>new m0(r));(0,sx.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,sx.useEffect)(()=>n.addListeners(),[n])}c();d();f();var ol=me(Pe(),1);function Z8({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,ol.useRef)(null),{transformPagePoint:a}=(0,ol.useContext)(Cu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,ol.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new tl(p,u,{transformPagePoint:a})}oa(i,"pointerdown",o&&l),Uu(()=>s.current&&s.current.end())}var Q8={pan:xi(Z8),drag:xi(X8)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function ax(e){return typeof e=="string"&&e.startsWith("var(--")}var lx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bz(e){let t=lx.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var _z=4;function ux(e,t,r=1){Sr(r<=_z,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=bz(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():ax(i)?ux(i,t,r+1):i}function J8(e,n,r){var t=Le(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=ne({},r)),e.values.forEach(o=>{let s=o.get();if(!ax(s))return;let a=ux(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!ax(s))continue;let a=ux(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var Ez=new Set(["width","height","top","left","right","bottom","x","y"]),iP=e=>Ez.has(e),Sz=e=>Object.keys(e).some(iP),oP=(e,t)=>{e.set(t,!1),e.set(t)},g0=e=>e===Jn||e===Ve,eP;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(eP||(eP={}));var tP=(e,t)=>parseFloat(e.split(", ")[t]),rP=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return tP(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?tP(o[1],e):0}},Cz=new Set(["x","y","z"]),Pz=Iu.filter(e=>!Cz.has(e));function Tz(e){let t=[];return Pz.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var nP={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rP(4,13),y:rP(5,14)},Dz=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{a[l]=nP[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);oP(p,a[l]),e[l]=nP[l](u,o)}),e},Oz=(e,t,r={},n={})=>{t=ne({},t),n=ne({},n);let i=Object.keys(t).filter(iP),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Gu(p),y=t[u],v;if(na(y)){let w=y.length,C=y[0]===null?1:0;p=y[C],h=Gu(p);for(let R=C;R<w;R++)v?Sr(Gu(y[R])===v,"All keyframes must be of the same type"):(v=Gu(y[R]),Sr(v===h||g0(h)&&g0(v),"Keyframes must be of the same dimension as the current value"))}else v=Gu(y);if(h!==v)if(g0(h)&&g0(v)){let w=l.get();typeof w=="string"&&l.set(parseFloat(w)),typeof y=="string"?t[u]=parseFloat(y):Array.isArray(y)&&v===Ve&&(t[u]=y.map(parseFloat))}else(h==null?void 0:h.transform)&&(v==null?void 0:v.transform)&&(p===0||y===0)?p===0?l.set(v.transform(p)):t[u]=h.transform(y):(s||(o=Tz(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],oP(l,y))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=Dz(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),Qn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function sP(e,t,r,n){return Sz(t)?Oz(e,t,r,n):{target:t,transitionEnd:n}}var aP=(e,t,r,n)=>{let i=J8(e,t,n);return t=i.target,n=i.transitionEnd,sP(e,t,r,n)};c();d();f();var fP=me(Pe(),1);c();d();f();c();d();f();var Lf={current:null},y0={current:!1};function uP(){if(y0.current=!0,!!Qn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lf.current=e.matches;e.addListener(t),t()}else Lf.current=!1}c();d();f();function lP(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(vr(o))e.addValue(i,o),aa(n)&&n.add(i);else if(vr(s))e.addValue(i,Ni(o,{owner:e})),aa(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,Ni(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var dP=Object.keys(is),Iz=dP.length,cP=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],v0=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Bt.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=ne({},s),this.initialValues=r.initial?ne({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=ta(r),this.isVariantNode=Rp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=Le(p,["willChange"]);for(let h in l){let y=l[h];s[h]!==void 0&&vr(y)&&(y.set(s[h],!1),aa(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),y0.current||uP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lf.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),An.update(this.notifyUpdate),An.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,r){let n=dn.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Bt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,i,o,s){let a=[];Vu!=="production"&&n&&r&&Sr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<Iz;u++){let l=dP[u],{isEnabled:p,Component:h}=is[l];p(t)&&h&&a.push((0,fP.createElement)(h,_e(ne({key:l},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:y}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&oo(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<cP.length;r++){let n=cP[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=lP(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let o=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let i={};for(let o=0;o<Rz;o++){let s=hP[o],a=this.props[s];(so(a)||a===!1)&&(i[s]=a)}return i}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ni(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Lu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!vr(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new fs),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},hP=["initial",...l0],Rz=hP.length;var sl=class extends v0{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:i},o){var a=s,{transition:t,transitionEnd:r}=a,n=Le(a,["transition","transitionEnd"]);let u=$4(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){L4(this,n,u);let l=aP(this,n,u,r);r=l.transitionEnd,n=l.target}return ne({transition:t,transitionEnd:r},n)}};function Az(e){return window.getComputedStyle(e)}var w0=class extends sl{readValueFromInstance(t,r){if(dn.has(r)){let n=Ku(r);return n&&n.default||0}else{let n=Az(t),i=(Fp(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ox(t,r)}build(t,r,n,i){Ru(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return Fu(t)}renderInstance(t,r,n,i){Vp(t,r,n,i)}};c();d();f();var x0=class extends sl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return dn.has(r)?((n=Ku(r))===null||n===void 0?void 0:n.default)||0:(r=jp.has(r)?r:ku(r),t.getAttribute(r))}measureInstanceViewportBox(){return Wt()}scrapeMotionValuesFromProps(t){return zp(t)}build(t,r,n,i){Mu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Bp(t,r,n,i)}mount(t){this.isSVGTag=Nu(t.tagName),super.mount(t)}};var pP=(e,t)=>Du(e)?new x0(t,{enableHardwareAcceleration:!1}):new w0(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var ul=me(Pe(),1);c();d();f();function mP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var al={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ve.test(e))e=parseFloat(e);else return e;let r=mP(e,t.target.x),n=mP(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var gP="_$css",yP={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(lx,v=>(o.push(v),gP)));let s=Zr.parse(e);if(s.length>5)return n;let a=Zr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=vt(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let y=a(s);if(i){let v=0;y=y.replace(gP,()=>{let w=o[v];return v++,w})}return y}};var cx=class extends ul.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;UC(Mz),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(_e(ne({},o.options),{onExitComplete:()=>this.safeToRemove()}))),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Bt.postRender(()=>{var a;!((a=s.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function vP(e){let[t,r]=Yp(),n=(0,ul.useContext)(Tu);return ul.default.createElement(cx,_e(ne({},e),{layoutGroup:n,switchLayoutGroup:(0,ul.useContext)(Np),isPresent:t,safeToRemove:r}))}var Mz={borderRadius:_e(ne({},al),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:al,borderTopRightRadius:al,borderBottomLeftRadius:al,borderBottomRightRadius:al,boxShadow:yP};var wP={measureLayout:vP};c();d();f();c();d();f();c();d();f();function xP(e,t,r={}){let n=vr(e)?e:Ni(e);return n.start(el("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var SP=["TopLeft","TopRight","BottomLeft","BottomRight"],Nz=SP.length,bP=e=>typeof e=="string"?parseFloat(e):e,_P=e=>typeof e=="number"||Ve.test(e);function CP(e,t,r,n,i,o){i?(e.opacity=vt(0,r.opacity!==void 0?r.opacity:1,kz(n)),e.opacityExit=vt(t.opacity!==void 0?t.opacity:1,0,Fz(n))):o&&(e.opacity=vt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<Nz;s++){let a=`border${SP[s]}Radius`,u=EP(t,a),l=EP(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||_P(u)===_P(l)?(e[a]=Math.max(vt(bP(u),bP(l),n),0),(Xr.test(l)||Xr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=vt(t.rotate||0,r.rotate||0,n))}function EP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var kz=PP(0,.5,If),Fz=PP(.5,.95,Ju);function PP(e,t,r){return n=>n<e?0:n>t?1:r(ua(e,t,n))}c();d();f();function TP(e,t){e.min=t.min,e.max=t.max}function ti(e,t){TP(e.x,t.x),TP(e.y,t.y)}c();d();f();function DP(e,t,r,n,i){return e-=t,e=Ff(e,1/r,n),i!==void 0&&(e=Ff(e,1/i,n)),e}function Lz(e,t=0,r=1,n=.5,i,o=e,s=e){if(Xr.test(t)&&(t=parseFloat(t),t=vt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=vt(o.min,o.max,n);e===o&&(a-=t),e.min=DP(e.min,t,r,a,i),e.max=DP(e.max,t,r,a,i)}function OP(e,t,[r,n,i],o,s){Lz(e,t[r],t[n],t[i],t.scale,o,s)}var $z=["x","scaleX","originX"],Uz=["y","scaleY","originY"];function fx(e,t,r,n){OP(e.x,t,$z,r==null?void 0:r.x,n==null?void 0:n.x),OP(e.y,t,Uz,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function IP(e){return e.translate===0&&e.scale===1}function dx(e){return IP(e.x)&&IP(e.y)}function hx(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function px(e){return Cr(e.x)/Cr(e.y)}c();d();f();var b0=class{constructor(){this.members=[]}add(t){Bu(this.members,t),t.scheduleRender()}remove(t){if(zu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){let o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();d();f();function mx(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var RP=(e,t)=>e.depth-t.depth;var _0=class{constructor(){this.children=[],this.isDirty=!1}add(t){Bu(this.children,t),this.isDirty=!0}remove(t){zu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RP),this.isDirty=!1,this.children.forEach(t)}};var AP=["","X","Y","Z"],MP=1e3,Vz=0;function E0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=Vz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(zz),this.nodes.forEach(Kz),this.nodes.forEach(Wz)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new _0)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new fs),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let y,v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=s0(v,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(kP))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:C})=>{var R,P,M,A,$;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let W=(P=(R=this.options.transition)!==null&&R!==void 0?R:h.getDefaultTransition())!==null&&P!==void 0?P:Qz,{onLayoutAnimationStart:ee,onLayoutAnimationComplete:q}=h.getProps(),K=!this.targetLayout||!hx(this.targetLayout,C)||w,ue=!v&&w;if(((M=this.resumeFrom)===null||M===void 0?void 0:M.instance)||ue||v&&(K||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,ue);let pe=_e(ne({},u0(W,"layout")),{onPlay:ee,onComplete:q});h.shouldReduceMotion&&(pe.delay=0,pe.type=!1),this.startAnimation(pe)}else!v&&this.animationProgress===0&&kP(this),this.isLead()&&(($=(A=this.options).onExitComplete)===null||$===void 0||$.call(A));this.targetLayout=C})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,An.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(Gz),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){let w=this.path[v];w.shouldResetTransform=!0,w.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(NP);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Jz),this.potentialNodes.clear()),this.nodes.forEach(qz),this.nodes.forEach(jz),this.nodes.forEach(Bz),this.clearAllSnapshots(),Zp.update(),Zp.preRender(),Zp.render())}clearAllSnapshots(){this.nodes.forEach(Hz),this.sharedNodes.forEach(Yz)}scheduleUpdateProjection(){Bt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(s=this.options.visualElement)===null||s===void 0||s.notify("LayoutMeasure",this.layout.layoutBox,a==null?void 0:a.layoutBox)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!dx(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||co(this.latestValues)||h)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),eH(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Wt();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(Fi(a.x,u.offset.x),Fi(a.y,u.offset.y)),a}removeElementScroll(s){let a=Wt();ti(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){ti(a,s);let{scroll:y}=this.root;y&&(Fi(a.x,-y.offset.x),Fi(a.y,-y.offset.y))}Fi(a.x,p.offset.x),Fi(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=Wt();ti(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&da(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),co(p.latestValues)&&da(u,p.latestValues)}return co(this.latestValues)&&da(u,this.latestValues),u}removeTransform(s){var a;let u=Wt();ti(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!co(p.latestValues))continue;h0(p.latestValues)&&p.updateSnapshot();let h=Wt(),y=p.measurePageBox();ti(h,y),fx(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return co(this.latestValues)&&fx(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=_e(ne(ne({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),nl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),ti(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?O8(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ti(this.target,this.layout.layoutBox),ix(this.target,this.targetDelta)):ti(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),nl(this.relativeTargetOrigin,this.target,p.target),ti(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||h0(this.parent.latestValues)||rx(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;ti(this.layoutCorrected,this.layout.layoutBox),G8(this.layoutCorrected,this.treeScale,this.path,p);let{target:w}=l;if(!w)return;this.projectionDelta||(this.projectionDelta=il(),this.projectionDeltaWithTransform=il());let C=this.treeScale.x,R=this.treeScale.y,P=this.projectionTransform;rl(this.projectionDelta,this.layoutCorrected,w,this.latestValues),this.projectionTransform=mx(this.projectionDelta,this.treeScale),(this.projectionTransform!==P||this.treeScale.x!==C||this.treeScale.y!==R)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},y=ne({},this.latestValues),v=il();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let w=Wt(),C=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),R=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,P=Boolean(C&&!R&&this.options.crossfade===!0&&!this.path.some(Zz));this.animationProgress=0,this.mixTargetDelta=M=>{var A;let $=M/1e3;FP(v.x,s.x,$),FP(v.y,s.y,$),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((A=this.relativeParent)===null||A===void 0?void 0:A.layout)&&(nl(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xz(this.relativeTarget,this.relativeTargetOrigin,w,$)),C&&(this.animationValues=y,CP(y,h,this.latestValues,$,P,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(An.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=xP(0,MP,_e(ne({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,MP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&UP(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Wt();let h=Cr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let y=Cr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+y}ti(a,u),da(a,p),rl(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new b0),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<AP.length;p++){let h="rotate"+AP[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=$u(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=$u(s.pointerEvents)||""),this.hasProjected&&!co(this.latestValues)&&(R.transform=h?h({},""):"none",this.hasProjected=!1),R}let v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=mx(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));let{x:w,y:C}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,y.animationValues?p.opacity=y===this?(l=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(let R in Ou){if(v[R]===void 0)continue;let{correct:P,applyTo:M}=Ou[R],A=P(v[R],y);if(M){let $=M.length;for(let W=0;W<$;W++)p[M[W]]=A}else p[R]=A}return this.options.layoutId&&(p.pointerEvents=y===this?$u(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(NP),this.root.sharedNodes.clear()}}}function jz(e){e.updateLayout()}function Bz(e){var t,r,n;let i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=i.source!==e.layout.source;a==="size"?ei(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],C=Cr(w);w.min=o[v].min,w.max=w.min+C}):UP(a,i.layoutBox,o)&&ei(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],C=Cr(o[v]);w.max=w.min+C});let l=il();rl(l,o,i.layoutBox);let p=il();u?rl(p,e.applyTransform(s,!0),i.measuredBox):rl(p,o,i.layoutBox);let h=!dx(l),y=!1;if(!e.resumeFrom){let v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){let{snapshot:w,layout:C}=v;if(w&&C){let R=Wt();nl(R,i.layoutBox,w.layoutBox);let P=Wt();nl(P,o,C.layoutBox),hx(R,P)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function zz(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function Hz(e){e.clearSnapshot()}function NP(e){e.clearMeasurements()}function qz(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Kz(e){e.resolveTargetDelta()}function Wz(e){e.calcProjection()}function Gz(e){e.resetRotation()}function Yz(e){e.removeLeadSnapshot()}function FP(e,t,r){e.translate=vt(t.translate,0,r),e.scale=vt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function LP(e,t,r,n){e.min=vt(t.min,r.min,n),e.max=vt(t.max,r.max,n)}function Xz(e,t,r,n){LP(e.x,t.x,r.x,n),LP(e.y,t.y,r.y,n)}function Zz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Qz={duration:.45,ease:[.4,0,.1,1]};function Jz(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}let i=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function $P(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function eH(e){$P(e.x),$P(e.y)}function UP(e,t,r){return e==="position"||e==="preserve-aspect"&&!c0(px(t),px(r),.2)}c();d();f();var VP=E0({attachResizeListener:(e,t)=>ia(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var gx={current:void 0},jP=E0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gx.current){let e=new VP(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gx.current=e}return gx.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var tH=ne(ne(ne(ne({},b8),C4),Q8),wP),ur=LC((e,t)=>u4(e,t,tH,pP,jP));c();d();f();var fo=me(Pe(),1),ri=me(Pe(),1);c();d();f();var $f=me(Pe(),1);c();d();f();var BP=me(Pe(),1);function S0(){let e=(0,BP.useRef)(!1);return rs(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function zP(){let e=S0(),[t,r]=(0,$f.useState)(0),n=(0,$f.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,$f.useCallback)(()=>Bt.postRender(n),[n]),t]}c();d();f();var Uf=me(Pe(),1),Vf=me(Pe(),1);c();d();f();var ll=me(Pe(),1),ha=me(Pe(),1),yx=class extends ll.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function HP({children:e,isPresent:t}){let r=(0,ha.useId)(),n=(0,ha.useRef)(null),i=(0,ha.useRef)({width:0,height:0,top:0,left:0});return(0,ha.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:u}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Fy(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function w1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var K$=typeof WeakMap=="function"?WeakMap:Map;function E6(e,t,r){r=mi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Mh||(Mh=!0,I1=n),w1(e,t)},r}function _6(e,t,r){r=mi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){w1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){w1(e,t),typeof n!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function R3(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new K$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=oU.bind(null,e,t,r),t.then(e,e))}function N3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function M3(e,t,r,n,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=mi(-1,1),t.tag=2,ao(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var q$=xi.ReactCurrentOwner,kr=!1;function Sr(e,t,r,n){t.child=e===null?t6(t,null,r,n):Wa(t,e.child,r,n)}function k3(e,t,r,n,i){r=r.render;var o=t.ref;return ja(t,i),n=av(e,t,r,n,o,i),r=uv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wi(e,t,i)):(St&&r&&Y1(t),t.flags|=1,Sr(e,t,n,i),t.child)}function L3(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!vv(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,S6(e,t,o,n,i)):(e=hh(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Mc,r(s,n)&&e.ref===t.ref)return wi(e,t,i)}return t.flags|=1,e=co(o,n),e.ref=t.ref,e.return=t,t.child=e}function S6(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Mc(o,n)&&e.ref===t.ref)if(kr=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(kr=!0);else return t.lanes=e.lanes,wi(e,t,i)}return x1(e,t,r,n,i)}function C6(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Fa,Xr),Xr|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(Fa,Xr),Xr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Le(Fa,Xr),Xr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Le(Fa,Xr),Xr|=n;return Sr(e,t,i,r),t.child}function T6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function x1(e,t,r,n,i){var o=Fr(r)?_s:gr.current;return o=Ka(t,o),ja(t,i),r=av(e,t,r,n,o,i),n=uv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wi(e,t,i)):(St&&n&&Y1(t),t.flags|=1,Sr(e,t,r,i),t.child)}function F3(e,t,r,n,i){if(Fr(r)){var o=!0;Sh(t)}else o=!1;if(ja(t,i),t.stateNode===null)ch(e,t),QS(t,r,n),v1(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=mn(l):(l=Fr(r)?_s:gr.current,l=Ka(t,l));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&D3(t,s,n,l),Zi=!1;var y=t.memoizedState;s.state=y,Ih(t,n,s,i),u=t.memoizedState,a!==n||y!==u||Lr.current||Zi?(typeof p=="function"&&(y1(t,r,p,n),u=t.memoizedState),(a=Zi||P3(t,r,a,n,y,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,JS(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Rn(t.type,a),s.props=l,h=t.pendingProps,y=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=mn(u):(u=Fr(r)?_s:gr.current,u=Ka(t,u));var v=r.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||y!==u)&&D3(t,s,n,u),Zi=!1,y=t.memoizedState,s.state=y,Ih(t,n,s,i);var w=t.memoizedState;a!==h||y!==w||Lr.current||Zi?(typeof v=="function"&&(y1(t,r,v,n),w=t.memoizedState),(l=Zi||P3(t,r,l,n,y,w,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),s.props=n,s.state=w,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),n=!1)}return b1(e,t,r,n,o,i)}function b1(e,t,r,n,i,o){T6(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&E3(t,r,!1),wi(e,t,o);n=t.stateNode,q$.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Wa(t,e.child,null,o),t.child=Wa(t,null,a,o)):Sr(e,t,a,o),t.memoizedState=n.state,i&&E3(t,r,!0),t.child}function P6(e){var t=e.stateNode;t.pendingContext?b3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&b3(e,t.context,!1),nv(e,t.containerInfo)}function $3(e,t,r,n,i){return qa(),J1(i),t.flags|=256,Sr(e,t,r,n),t.child}var E1={dehydrated:null,treeContext:null,retryLane:0};function _1(e){return{baseLanes:e,cachePool:null,transitions:null}}function D6(e,t,r){var n=t.pendingProps,i=Tt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(Tt,i&1),e===null)return m1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Gh(s,n,0,null),e=Es(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_1(r),t.memoizedState=E1,e):fv(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return W$(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=co(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=co(a,o):(o=Es(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?_1(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=E1,n}return o=e.child,e=o.sibling,n=co(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function fv(e,t){return t=Gh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function th(e,t,r,n){return n!==null&&J1(n),Wa(t,e.child,null,r),e=fv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function W$(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=Fy(Error(oe(422))),th(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Gh({mode:"visible",children:n.children},i,0,null),o=Es(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Wa(t,e.child,null,s),t.child.memoizedState=_1(s),t.memoizedState=E1,o);if((t.mode&1)===0)return th(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(oe(419)),n=Fy(o,n,void 0),th(e,t,s,n)}if(a=(s&e.childLanes)!==0,kr||a){if(n=Qt,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(n.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,vi(e,i),Ln(n,e,i,-1))}return yv(),n=Fy(Error(oe(421))),th(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=sU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Jr=so(i.nextSibling),Zr=t,St=!0,Mn=null,e!==null&&(fn[dn++]=hi,fn[dn++]=pi,fn[dn++]=Ss,hi=e.id,pi=e.overflow,Ss=t),t=fv(t,n.children),t.flags|=4096,t)}function U3(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),g1(e.return,t,r)}function $y(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function I6(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Sr(e,t,n.children,r),n=Tt.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&U3(e,r,t);else if(e.tag===19)U3(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Le(Tt,n),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Oh(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),$y(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Oh(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}$y(t,!0,r,null,o);break;case"together":$y(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ch(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ts|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=co(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=co(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function G$(e,t,r){switch(t.tag){case 3:P6(t),qa();break;case 5:r6(t);break;case 1:Fr(t.type)&&Sh(t);break;case 4:nv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Le(Ph,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Le(Tt,Tt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?D6(e,t,r):(Le(Tt,Tt.current&1),e=wi(e,t,r),e!==null?e.sibling:null);Le(Tt,Tt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return I6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(Tt,Tt.current),n)break;return null;case 22:case 23:return t.lanes=0,C6(e,t,r)}return wi(e,t,r)}var O6,S1,A6,R6;O6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};S1=function(){};A6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,xs(Jn.current);var o=null;switch(r){case"input":i=qy(e,i),n=qy(e,n),o=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),o=[];break;case"textarea":i=Yy(e,i),n=Yy(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Eh)}Jy(r,n);var s;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Pc.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(a=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Pc.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&wt("scroll",e),o||a===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};R6=function(e,t,r,n){r!==n&&(t.flags|=4)};function fc(e,t){if(!St)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Y$(e,t,r){var n=t.pendingProps;switch(X1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(t),null;case 1:return Fr(t.type)&&_h(),pr(t),null;case 3:return n=t.stateNode,Ga(),xt(Lr),xt(gr),ov(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mn!==null&&(R1(Mn),Mn=null))),S1(e,t),pr(t),null;case 5:iv(t);var i=xs(Uc.current);if(r=t.type,e!==null&&t.stateNode!=null)A6(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return pr(t),null}if(e=xs(Jn.current),Qd(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Yn]=t,n[Fc]=o,e=(t.mode&1)!==0,r){case"dialog":wt("cancel",n),wt("close",n);break;case"iframe":case"object":case"embed":wt("load",n);break;case"video":case"audio":for(i=0;i<yc.length;i++)wt(yc[i],n);break;case"source":wt("error",n);break;case"img":case"image":case"link":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"input":W_(n,o),wt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},wt("invalid",n);break;case"textarea":Y_(n,o),wt("invalid",n)}Jy(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Zd(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Zd(n.textContent,a,e),i=["children",""+a]):Pc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&wt("scroll",n)}switch(r){case"input":Vd(n),G_(n,o,!0);break;case"textarea":Vd(n),X_(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Eh)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=oS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Yn]=t,e[Fc]=n,O6(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zy(r,n),r){case"dialog":wt("cancel",e),wt("close",e),i=n;break;case"iframe":case"object":case"embed":wt("load",e),i=n;break;case"video":case"audio":for(i=0;i<yc.length;i++)wt(yc[i],e);i=n;break;case"source":wt("error",e),i=n;break;case"img":case"image":case"link":wt("error",e),wt("load",e),i=n;break;case"details":wt("toggle",e),i=n;break;case"input":W_(e,n),i=qy(e,n),wt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dt({},n,{value:void 0}),wt("invalid",e);break;case"textarea":Y_(e,n),i=Yy(e,n),wt("invalid",e);break;default:i=n}Jy(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?uS(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&sS(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Dc(e,u):typeof u=="number"&&Dc(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Pc.hasOwnProperty(o)?u!=null&&o==="onScroll"&&wt("scroll",e):u!=null&&k1(e,o,u,s))}switch(r){case"input":Vd(e),G_(e,n,!1);break;case"textarea":Vd(e),X_(e);break;case"option":n.value!=null&&e.setAttribute("value",""+fo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?$a(e,!!n.multiple,o,!1):n.defaultValue!=null&&$a(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Eh)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pr(t),null;case 6:if(e&&t.stateNode!=null)R6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=xs(Uc.current),xs(Jn.current),Qd(t)){if(n=t.stateNode,r=t.memoizedProps,n[Yn]=t,(o=n.nodeValue!==r)&&(e=Zr,e!==null))switch(e.tag){case 3:Zd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zd(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Yn]=t,t.stateNode=n}return pr(t),null;case 13:if(xt(Tt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(St&&Jr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)YS(),qa(),t.flags|=98560,o=!1;else if(o=Qd(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[Yn]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pr(t),o=!1}else Mn!==null&&(R1(Mn),Mn=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Tt.current&1)!==0?Wt===0&&(Wt=3):yv())),t.updateQueue!==null&&(t.flags|=4),pr(t),null);case 4:return Ga(),S1(e,t),e===null&&kc(t.stateNode.containerInfo),pr(t),null;case 10:return ev(t.type._context),pr(t),null;case 17:return Fr(t.type)&&_h(),pr(t),null;case 19:if(xt(Tt),o=t.memoizedState,o===null)return pr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)fc(o,!1);else{if(Wt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Oh(e),s!==null){for(t.flags|=128,fc(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(Tt,Tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&kt()>Xa&&(t.flags|=128,n=!0,fc(o,!1),t.lanes=4194304)}else{if(!n)if(e=Oh(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),fc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!St)return pr(t),null}else 2*kt()-o.renderingStartTime>Xa&&r!==1073741824&&(t.flags|=128,n=!0,fc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=kt(),t.sibling=null,r=Tt.current,Le(Tt,n?r&1|2:r&1),t):(pr(t),null);case 22:case 23:return gv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Xr&1073741824)!==0&&(pr(t),t.subtreeFlags&6&&(t.flags|=8192)):pr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function X$(e,t){switch(X1(t),t.tag){case 1:return Fr(t.type)&&_h(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ga(),xt(Lr),xt(gr),ov(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iv(t),null;case 13:if(xt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(Tt),null;case 4:return Ga(),null;case 10:return ev(t.type._context),null;case 22:case 23:return gv(),null;case 24:return null;default:return null}}var rh=!1,mr=!1,J$=typeof WeakSet=="function"?WeakSet:Set,ce=null;function La(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){At(e,t,n)}else r.current=null}function C1(e,t,r){try{r()}catch(n){At(e,t,n)}}var V3=!1;function Z$(e,t){if(u1=wh,e=LS(),G1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(R){r=null;break e}var s=0,a=-1,u=-1,l=0,p=0,h=e,y=null;t:for(;;){for(var v;h!==r||i!==0&&h.nodeType!==3||(a=s+i),h!==o||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)y=h,h=v;for(;;){if(h===e)break t;if(y===r&&++l===i&&(a=s),y===o&&++p===n&&(u=s),(v=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=v}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(l1={focusedElem:e,selectionRange:r},wh=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,D=w.memoizedState,C=t.stateNode,I=C.getSnapshotBeforeUpdate(t.elementType===t.type?_:Rn(t.type,_),D);C.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(R){At(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return w=V3,V3=!1,w}function Sc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&C1(t,r,o)}i=i.next}while(i!==n)}}function qh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function T1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function N6(e){var t=e.alternate;t!==null&&(e.alternate=null,N6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yn],delete t[Fc],delete t[d1],delete t[M$],delete t[k$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M6(e){return e.tag===5||e.tag===3||e.tag===4}function B3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Eh));else if(n!==4&&(e=e.child,e!==null))for(P1(e,t,r),e=e.sibling;e!==null;)P1(e,t,r),e=e.sibling}function D1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(D1(e,t,r),e=e.sibling;e!==null;)D1(e,t,r),e=e.sibling}var nr=null,Nn=!1;function Xi(e,t,r){for(r=r.child;r!==null;)k6(e,t,r),r=r.sibling}function k6(e,t,r){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount($h,r)}catch(a){}switch(r.tag){case 5:mr||La(r,t);case 6:var n=nr,i=Nn;nr=null,Xi(e,t,r),nr=n,Nn=i,nr!==null&&(Nn?(e=nr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nr.removeChild(r.stateNode));break;case 18:nr!==null&&(Nn?(e=nr,r=r.stateNode,e.nodeType===8?Ay(e.parentNode,r):e.nodeType===1&&Ay(e,r),Rc(e)):Ay(nr,r.stateNode));break;case 4:n=nr,i=Nn,nr=r.stateNode.containerInfo,Nn=!0,Xi(e,t,r),nr=n,Nn=i;break;case 0:case 11:case 14:case 15:if(!mr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&C1(r,t,s),i=i.next}while(i!==n)}Xi(e,t,r);break;case 1:if(!mr&&(La(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){At(r,t,a)}Xi(e,t,r);break;case 21:Xi(e,t,r);break;case 22:r.mode&1?(mr=(n=mr)||r.memoizedState!==null,Xi(e,t,r),mr=n):Xi(e,t,r);break;default:Xi(e,t,r)}}function j3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new J$),t.forEach(function(n){var i=aU.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function An(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:nr=a.stateNode,Nn=!1;break e;case 3:nr=a.stateNode.containerInfo,Nn=!0;break e;case 4:nr=a.stateNode.containerInfo,Nn=!0;break e}a=a.return}if(nr===null)throw Error(oe(160));k6(o,s,i),nr=null,Nn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){At(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)L6(t,e),t=t.sibling}function L6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(An(t,e),Wn(e),n&4){try{Sc(3,e,e.return),qh(3,e)}catch(_){At(e,e.return,_)}try{Sc(5,e,e.return)}catch(_){At(e,e.return,_)}}break;case 1:An(t,e),Wn(e),n&512&&r!==null&&La(r,r.return);break;case 5:if(An(t,e),Wn(e),n&512&&r!==null&&La(r,r.return),e.flags&32){var i=e.stateNode;try{Dc(i,"")}catch(_){At(e,e.return,_)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&nS(i,o),Zy(a,s);var l=Zy(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?uS(i,h):p==="dangerouslySetInnerHTML"?sS(i,h):p==="children"?Dc(i,h):k1(i,p,h,l)}switch(a){case"input":Wy(i,o);break;case"textarea":iS(i,o);break;case"select":var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?$a(i,!!o.multiple,v,!1):y!==!!o.multiple&&(o.defaultValue!=null?$a(i,!!o.multiple,o.defaultValue,!0):$a(i,!!o.multiple,o.multiple?[]:"",!1))}i[Fc]=o}catch(_){At(e,e.return,_)}}break;case 6:if(An(t,e),Wn(e),n&4){if(e.stateNode===null)throw Error(oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){At(e,e.return,_)}}break;case 3:if(An(t,e),Wn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Rc(t.containerInfo)}catch(_){At(e,e.return,_)}break;case 4:An(t,e),Wn(e);break;case 13:An(t,e),Wn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(pv=kt())),n&4&&j3(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(mr=(l=mr)||p,An(t,e),mr=l):An(t,e),Wn(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!p&&(e.mode&1)!==0)for(ce=e,p=e.child;p!==null;){for(h=ce=p;ce!==null;){switch(y=ce,v=y.child,y.tag){case 0:case 11:case 14:case 15:Sc(4,y,y.return);break;case 1:La(y,y.return);var w=y.stateNode;if(typeof w.componentWillUnmount=="function"){n=y,r=y.return;try{t=n,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(_){At(n,r,_)}}break;case 5:La(y,y.return);break;case 22:if(y.memoizedState!==null){H3(h);continue}}v!==null?(v.return=y,ce=v):H3(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=aS("display",s))}catch(_){At(e,e.return,_)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(_){At(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:An(t,e),Wn(e),n&4&&j3(e);break;case 21:break;default:An(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(M6(r)){var n=r;break e}r=r.return}throw Error(oe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Dc(i,""),n.flags&=-33);var o=B3(e);D1(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=B3(e);P1(e,a,s);break;default:throw Error(oe(161))}}catch(u){At(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Q$(e,t,r){ce=e,F6(e,t,r)}function F6(e,t,r){for(var n=(e.mode&1)!==0;ce!==null;){var i=ce,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||rh;if(!s){var a=i.alternate,u=a!==null&&a.memoizedState!==null||mr;a=rh;var l=mr;if(rh=s,(mr=u)&&!l)for(ce=i;ce!==null;)s=ce,u=s.child,s.tag===22&&s.memoizedState!==null?K3(i):u!==null?(u.return=s,ce=u):K3(i);for(;o!==null;)ce=o,F6(o,t,r),o=o.sibling;ce=i,rh=a,mr=l}z3(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,ce=o):z3(e,t,r)}}function z3(e){for(;ce!==null;){var t=ce;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mr||qh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!mr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Rn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&T3(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}T3(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Rc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}mr||t.flags&512&&T1(t)}catch(y){At(t,t.return,y)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function H3(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ce=r;break}ce=t.return}}function K3(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{qh(4,t)}catch(u){At(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){At(t,i,u)}}var o=t.return;try{T1(t)}catch(u){At(t,o,u)}break;case 5:var s=t.return;try{T1(t)}catch(u){At(t,s,u)}}}catch(u){At(t,t.return,u)}if(t===e){ce=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ce=a;break}ce=t.return}}var eU=Math.ceil,Nh=xi.ReactCurrentDispatcher,dv=xi.ReactCurrentOwner,pn=xi.ReactCurrentBatchConfig,Ce=0,Qt=null,Vt=null,ir=0,Xr=0,Fa=mo(0),Wt=0,zc=null,Ts=0,Wh=0,hv=0,Cc=null,Mr=null,pv=0,Xa=1/0,fi=null,Mh=!1,I1=null,uo=null,nh=!1,ro=null,kh=0,Tc=0,O1=null,fh=-1,dh=0;function Cr(){return(Ce&6)!==0?kt():fh!==-1?fh:fh=kt()}function lo(e){return(e.mode&1)===0?1:(Ce&2)!==0&&ir!==0?ir&-ir:F$.transition!==null?(dh===0&&(dh=xS()),dh):(e=Oe,e!==0||(e=window.event,e=e===void 0?16:PS(e.type)),e)}function Ln(e,t,r,n){if(50<Tc)throw Tc=0,O1=null,Error(oe(185));Hc(e,r,n),((Ce&2)===0||e!==Qt)&&(e===Qt&&((Ce&2)===0&&(Wh|=r),Wt===4&&eo(e,ir)),$r(e,n),r===1&&Ce===0&&(t.mode&1)===0&&(Xa=kt()+500,zh&&go()))}function $r(e,t){var r=e.callbackNode;U9(e,t);var n=vh(e,e===Qt?ir:0);if(n===0)r!==null&&Q_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Q_(r),t===1)e.tag===0?L$(q3.bind(null,e)):qS(q3.bind(null,e)),R$(function(){(Ce&6)===0&&go()}),r=null;else{switch(bS(n)){case 1:r=V1;break;case 4:r=vS;break;case 16:r=yh;break;case 536870912:r=wS;break;default:r=yh}r=K6(r,$6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function $6(e,t){if(fh=-1,dh=0,(Ce&6)!==0)throw Error(oe(327));var r=e.callbackNode;if(za()&&e.callbackNode!==r)return null;var n=vh(e,e===Qt?ir:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Lh(e,n);else{t=n;var i=Ce;Ce|=2;var o=V6();(Qt!==e||ir!==t)&&(fi=null,Xa=kt()+500,bs(e,t));do try{nU();break}catch(a){U6(e,a)}while(1);Q1(),Nh.current=o,Ce=i,Vt!==null?t=0:(Qt=null,ir=0,t=Wt)}if(t!==0){if(t===2&&(i=n1(e),i!==0&&(n=i,t=A1(e,i))),t===1)throw r=zc,bs(e,0),eo(e,n),$r(e,kt()),r;if(t===6)eo(e,n);else{if(i=e.current.alternate,(n&30)===0&&!tU(i)&&(t=Lh(e,n),t===2&&(o=n1(e),o!==0&&(n=o,t=A1(e,o))),t===1))throw r=zc,bs(e,0),eo(e,n),$r(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(oe(345));case 2:ys(e,Mr,fi);break;case 3:if(eo(e,n),(n&130023424)===n&&(t=pv+500-kt(),10<t)){if(vh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Cr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=f1(ys.bind(null,e,Mr,fi),t);break}ys(e,Mr,fi);break;case 4:if(eo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-kn(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eU(n/1960))-n,10<n){e.timeoutHandle=f1(ys.bind(null,e,Mr,fi),n);break}ys(e,Mr,fi);break;case 5:ys(e,Mr,fi);break;default:throw Error(oe(329))}}}return $r(e,kt()),e.callbackNode===r?$6.bind(null,e):null}function A1(e,t){var r=Cc;return e.current.memoizedState.isDehydrated&&(bs(e,t).flags|=256),e=Lh(e,t),e!==2&&(t=Mr,Mr=r,t!==null&&R1(t)),e}function R1(e){Mr===null?Mr=e:Mr.push.apply(Mr,e)}function tU(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Fn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eo(e,t){for(t&=~hv,t&=~Wh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kn(t),n=1<<r;e[r]=-1,t&=~n}}function q3(e){if((Ce&6)!==0)throw Error(oe(327));za();var t=vh(e,0);if((t&1)===0)return $r(e,kt()),null;var r=Lh(e,t);if(e.tag!==0&&r===2){var n=n1(e);n!==0&&(t=n,r=A1(e,n))}if(r===1)throw r=zc,bs(e,0),eo(e,t),$r(e,kt()),r;if(r===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ys(e,Mr,fi),$r(e,kt()),null}function mv(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(Xa=kt()+500,zh&&go())}}function Ps(e){ro!==null&&ro.tag===0&&(Ce&6)===0&&za();var t=Ce;Ce|=1;var r=pn.transition,n=Oe;try{if(pn.transition=null,Oe=1,e)return e()}finally{Oe=n,pn.transition=r,Ce=t,(Ce&6)===0&&go()}}function gv(){Xr=Fa.current,xt(Fa)}function bs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,A$(r)),Vt!==null)for(r=Vt.return;r!==null;){var n=r;switch(X1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_h();break;case 3:Ga(),xt(Lr),xt(gr),ov();break;case 5:iv(n);break;case 4:Ga();break;case 13:xt(Tt);break;case 19:xt(Tt);break;case 10:ev(n.type._context);break;case 22:case 23:gv()}r=r.return}if(Qt=e,Vt=e=co(e.current,null),ir=Xr=t,Wt=0,zc=null,hv=Wh=Ts=0,Mr=Cc=null,ws!==null){for(t=0;t<ws.length;t++)if(r=ws[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}ws=null}return e}function U6(e,t){do{var r=Vt;try{if(Q1(),uh.current=Rh,Ah){for(var n=Pt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ah=!1}if(Cs=0,Zt=qt=Pt=null,_c=!1,Vc=0,dv.current=null,r===null||r.return===null){Wt=1,zc=t,Vt=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=ir,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,p=a,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var y=p.alternate;y?(p.updateQueue=y.updateQueue,p.memoizedState=y.memoizedState,p.lanes=y.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=N3(s);if(v!==null){v.flags&=-257,M3(v,s,a,o,t),v.mode&1&&R3(o,l,t),t=v,u=l;var w=t.updateQueue;if(w===null){var _=new Set;_.add(u),t.updateQueue=_}else w.add(u);break e}else{if((t&1)===0){R3(o,l,t),yv();break e}u=Error(oe(426))}}else if(St&&a.mode&1){var D=N3(s);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),M3(D,s,a,o,t),J1(Ya(u,a));break e}}o=u=Ya(u,a),Wt!==4&&(Wt=2),Cc===null?Cc=[o]:Cc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=E6(o,u,t);C3(o,C);break e;case 1:a=u;var I=o.type,P=o.stateNode;if((o.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(uo===null||!uo.has(P)))){o.flags|=65536,t&=-t,o.lanes|=t;var R=_6(o,a,t);C3(o,R);break e}}o=o.return}while(o!==null)}j6(r)}catch(U){t=U,Vt===r&&r!==null&&(Vt=r=r.return);continue}break}while(1)}function V6(){var e=Nh.current;return Nh.current=Rh,e===null?Rh:e}function yv(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Qt===null||(Ts&268435455)===0&&(Wh&268435455)===0||eo(Qt,ir)}function Lh(e,t){var r=Ce;Ce|=2;var n=V6();(Qt!==e||ir!==t)&&(fi=null,bs(e,t));do try{rU();break}catch(i){U6(e,i)}while(1);if(Q1(),Ce=r,Nh.current=n,Vt!==null)throw Error(oe(261));return Qt=null,ir=0,Wt}function rU(){for(;Vt!==null;)B6(Vt)}function nU(){for(;Vt!==null&&!O9();)B6(Vt)}function B6(e){var t=H6(e.alternate,e,Xr);e.memoizedProps=e.pendingProps,t===null?j6(e):Vt=t,dv.current=null}function j6(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Y$(r,t,Xr),r!==null){Vt=r;return}}else{if(r=X$(r,t),r!==null){r.flags&=32767,Vt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wt=6,Vt=null;return}}if(t=t.sibling,t!==null){Vt=t;return}Vt=t=e}while(t!==null);Wt===0&&(Wt=5)}function ys(e,t,r){var n=Oe,i=pn.transition;try{pn.transition=null,Oe=1,iU(e,t,r,n)}finally{pn.transition=i,Oe=n}return null}function iU(e,t,r,n){do za();while(ro!==null);if((Ce&6)!==0)throw Error(oe(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(oe(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(V9(e,o),e===Qt&&(Vt=Qt=null,ir=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||nh||(nh=!0,K6(yh,function(){return za(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=pn.transition,pn.transition=null;var s=Oe;Oe=1;var a=Ce;Ce|=4,dv.current=null,Z$(e,r),L6(r,e),T$(l1),wh=!!u1,l1=u1=null,e.current=r,Q$(r,e,i),A9(),Ce=a,Oe=s,pn.transition=o}else e.current=r;if(nh&&(nh=!1,ro=e,kh=i),o=e.pendingLanes,o===0&&(uo=null),M9(r.stateNode,n),$r(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Mh)throw Mh=!1,e=I1,I1=null,e;return(kh&1)!==0&&e.tag!==0&&za(),o=e.pendingLanes,(o&1)!==0?e===O1?Tc++:(Tc=0,O1=e):Tc=0,go(),null}function za(){if(ro!==null){var e=bS(kh),t=pn.transition,r=Oe;try{if(pn.transition=null,Oe=16>e?16:e,ro===null)var n=!1;else{if(e=ro,ro=null,kh=0,(Ce&6)!==0)throw Error(oe(331));var i=Ce;for(Ce|=4,ce=e.current;ce!==null;){var o=ce,s=o.child;if((ce.flags&16)!==0){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(ce=l;ce!==null;){var p=ce;switch(p.tag){case 0:case 11:case 15:Sc(8,p,o)}var h=p.child;if(h!==null)h.return=p,ce=h;else for(;ce!==null;){p=ce;var y=p.sibling,v=p.return;if(N6(p),p===l){ce=null;break}if(y!==null){y.return=v,ce=y;break}ce=v}}}var w=o.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var D=_.sibling;_.sibling=null,_=D}while(_!==null)}}ce=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,ce=s;else e:for(;ce!==null;){if(o=ce,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Sc(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,ce=C;break e}ce=o.return}}var I=e.current;for(ce=I;ce!==null;){s=ce;var P=s.child;if((s.subtreeFlags&2064)!==0&&P!==null)P.return=s,ce=P;else e:for(s=I;ce!==null;){if(a=ce,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:qh(9,a)}}catch(U){At(a,a.return,U)}if(a===s){ce=null;break e}var R=a.sibling;if(R!==null){R.return=a.return,ce=R;break e}ce=a.return}}if(Ce=i,go(),Xn&&typeof Xn.onPostCommitFiberRoot=="function")try{Xn.onPostCommitFiberRoot($h,e)}catch(U){}n=!0}return n}finally{Oe=r,pn.transition=t}}return!1}function W3(e,t,r){t=Ya(r,t),t=E6(e,t,1),e=ao(e,t,1),t=Cr(),e!==null&&(Hc(e,1,t),$r(e,t))}function At(e,t,r){if(e.tag===3)W3(e,e,r);else for(;t!==null;){if(t.tag===3){W3(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(uo===null||!uo.has(n))){e=Ya(r,e),e=_6(t,e,1),t=ao(t,e,1),e=Cr(),t!==null&&(Hc(t,1,e),$r(t,e));break}}t=t.return}}function oU(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Cr(),e.pingedLanes|=e.suspendedLanes&r,Qt===e&&(ir&r)===r&&(Wt===4||Wt===3&&(ir&130023424)===ir&&500>kt()-pv?bs(e,0):hv|=r),$r(e,t)}function z6(e,t){t===0&&((e.mode&1)===0?t=1:(t=zd,zd<<=1,(zd&130023424)===0&&(zd=4194304)));var r=Cr();e=vi(e,t),e!==null&&(Hc(e,t,r),$r(e,r))}function sU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),z6(e,r)}function aU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),z6(e,r)}var H6;H6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lr.current)kr=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return kr=!1,G$(e,t,r);kr=(e.flags&131072)!==0}else kr=!1,St&&(t.flags&1048576)!==0&&WS(t,Th,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ch(e,t),e=t.pendingProps;var i=Ka(t,gr.current);ja(t,r),i=av(null,t,n,e,i,r);var o=uv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fr(n)?(o=!0,Sh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rv(t),i.updater=Hh,t.stateNode=i,i._reactInternals=t,v1(t,n,e,r),t=b1(null,t,n,!0,o,r)):(t.tag=0,St&&o&&Y1(t),Sr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ch(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=lU(n),e=Rn(n,e),i){case 0:t=x1(null,t,n,e,r);break e;case 1:t=F3(null,t,n,e,r);break e;case 11:t=k3(null,t,n,e,r);break e;case 14:t=L3(null,t,n,Rn(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),x1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),F3(e,t,n,i,r);case 3:e:{if(P6(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,JS(e,t),Ih(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ya(Error(oe(423)),t),t=$3(e,t,n,r,i);break e}else if(n!==i){i=Ya(Error(oe(424)),t),t=$3(e,t,n,r,i);break e}else for(Jr=so(t.stateNode.containerInfo.firstChild),Zr=t,St=!0,Mn=null,r=t6(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qa(),n===i){t=wi(e,t,r);break e}Sr(e,t,n,r)}t=t.child}return t;case 5:return r6(t),e===null&&m1(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,c1(n,i)?s=null:o!==null&&c1(n,o)&&(t.flags|=32),T6(e,t),Sr(e,t,s,r),t.child;case 6:return e===null&&m1(t),null;case 13:return D6(e,t,r);case 4:return nv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wa(t,null,n,r):Sr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),k3(e,t,n,i,r);case 7:return Sr(e,t,t.pendingProps,r),t.child;case 8:return Sr(e,t,t.pendingProps.children,r),t.child;case 12:return Sr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Le(Ph,n._currentValue),n._currentValue=s,o!==null)if(Fn(o.value,s)){if(o.children===i.children&&!Lr.current){t=wi(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=mi(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),g1(o.return,r,t),a.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(oe(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),g1(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Sr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ja(t,r),i=mn(i),n=n(i),t.flags|=1,Sr(e,t,n,r),t.child;case 14:return n=t.type,i=Rn(n,t.pendingProps),i=Rn(n.type,i),L3(e,t,n,i,r);case 15:return S6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),ch(e,t),t.tag=1,Fr(n)?(e=!0,Sh(t)):e=!1,ja(t,r),QS(t,n,i),v1(t,n,i,r),b1(null,t,n,!0,e,r);case 19:return I6(e,t,r);case 22:return C6(e,t,r)}throw Error(oe(156,t.tag))};function K6(e,t){return yS(e,t)}function uU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,r,n){return new uU(e,t,r,n)}function vv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lU(e){if(typeof e=="function")return vv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===F1)return 11;if(e===$1)return 14}return 2}function co(e,t){var r=e.alternate;return r===null?(r=hn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function hh(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")vv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Pa:return Es(r.children,i,o,t);case L1:s=8,i|=8;break;case jy:return e=hn(12,r,t,i|2),e.elementType=jy,e.lanes=o,e;case zy:return e=hn(13,r,t,i),e.elementType=zy,e.lanes=o,e;case Hy:return e=hn(19,r,t,i),e.elementType=Hy,e.lanes=o,e;case eS:return Gh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z3:s=10;break e;case Q3:s=9;break e;case F1:s=11;break e;case $1:s=14;break e;case Ji:s=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=hn(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Es(e,t,r,n){return e=hn(7,e,n,t),e.lanes=r,e}function Gh(e,t,r,n){return e=hn(22,e,n,t),e.elementType=eS,e.lanes=r,e.stateNode={isHidden:!1},e}function Uy(e,t,r){return e=hn(6,e,null,t),e.lanes=r,e}function Vy(e,t,r){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cU(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_y(0),this.expirationTimes=_y(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_y(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wv(e,t,r,n,i,o,s,a,u){return e=new cU(e,t,r,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},rv(o),e}function fU(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ta,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function q6(e){if(!e)return ho;e=e._reactInternals;e:{if(Is(e)!==e||e.tag!==1)throw Error(oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(oe(171))}if(e.tag===1){var r=e.type;if(Fr(r))return KS(e,r,t)}return t}function W6(e,t,r,n,i,o,s,a,u){return e=wv(r,n,!0,e,i,o,s,a,u),e.context=q6(null),r=e.current,n=Cr(),i=lo(r),o=mi(n,i),o.callback=t!=null?t:null,ao(r,o,i),e.current.lanes=i,Hc(e,i,n),$r(e,n),e}function Yh(e,t,r,n){var i=t.current,o=Cr(),s=lo(i);return r=q6(r),t.context===null?t.context=r:t.pendingContext=r,t=mi(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ao(i,t,s),e!==null&&(Ln(e,i,s,o),ah(e,i,s)),s}function Fh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function G3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function xv(e,t){G3(e,t),(e=e.alternate)&&G3(e,t)}function dU(){return null}var G6=typeof reportError=="function"?reportError:function(e){console.error(e)};function bv(e){this._internalRoot=e}Xh.prototype.render=bv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));Yh(e,t,null,null)};Xh.prototype.unmount=bv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ps(function(){Yh(null,e,null,null)}),t[yi]=null}};function Xh(e){this._internalRoot=e}Xh.prototype.unstable_scheduleHydration=function(e){if(e){var t=SS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Qi.length&&t!==0&&t<Qi[r].priority;r++);Qi.splice(r,0,e),r===0&&TS(e)}};function Ev(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Jh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Y3(){}function hU(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=Fh(s);o.call(l)}}var s=W6(t,n,e,0,null,!1,!1,"",Y3);return e._reactRootContainer=s,e[yi]=s.current,kc(e.nodeType===8?e.parentNode:e),Ps(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=Fh(u);a.call(l)}}var u=wv(e,0,!1,null,null,!1,!1,"",Y3);return e._reactRootContainer=u,e[yi]=u.current,kc(e.nodeType===8?e.parentNode:e),Ps(function(){Yh(t,u,r,n)}),u}function Zh(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var u=Fh(s);a.call(u)}}Yh(t,s,e,i)}else s=hU(r,t,e,i,n);return Fh(s)}ES=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=gc(t.pendingLanes);r!==0&&(B1(t,r|1),$r(t,kt()),(Ce&6)===0&&(Xa=kt()+500,go()))}break;case 13:Ps(function(){var n=vi(e,1);if(n!==null){var i=Cr();Ln(n,e,1,i)}}),xv(e,1)}};j1=function(e){if(e.tag===13){var t=vi(e,134217728);if(t!==null){var r=Cr();Ln(t,e,134217728,r)}xv(e,134217728)}};_S=function(e){if(e.tag===13){var t=lo(e),r=vi(e,t);if(r!==null){var n=Cr();Ln(r,e,t,n)}xv(e,t)}};SS=function(){return Oe};CS=function(e,t){var r=Oe;try{return Oe=e,t()}finally{Oe=r}};e1=function(e,t,r){switch(t){case"input":if(Wy(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=jh(n);if(!i)throw Error(oe(90));rS(n),Wy(n,i)}}}break;case"textarea":iS(e,r);break;case"select":t=r.value,t!=null&&$a(e,!!r.multiple,t,!1)}};fS=mv;dS=Ps;var pU={usingClientEntryPoint:!1,Events:[qc,Aa,jh,lS,cS,mv]},dc={findFiberByHostInstance:vs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},mU={bundleType:dc.bundleType,version:dc.version,rendererPackageName:dc.rendererPackageName,rendererConfig:dc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=mS(e),e===null?null:e.stateNode},findFiberByHostInstance:dc.findFiberByHostInstance||dU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(hc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!hc.isDisabled&&hc.supportsFiber))try{$h=hc.inject(mU),Xn=hc}catch(e){}var hc;tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pU;tn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ev(t))throw Error(oe(200));return fU(e,t,null,r)};tn.createRoot=function(e,t){if(!Ev(e))throw Error(oe(299));var r=!1,n="",i=G6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=wv(e,1,!1,null,null,r,!1,n,i),e[yi]=t.current,kc(e.nodeType===8?e.parentNode:e),new bv(t)};tn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=mS(t),e=e===null?null:e.stateNode,e};tn.flushSync=function(e){return Ps(e)};tn.hydrate=function(e,t,r){if(!Jh(t))throw Error(oe(200));return Zh(null,e,t,!0,r)};tn.hydrateRoot=function(e,t,r){if(!Ev(e))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=G6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=W6(t,null,e,1,r!=null?r:null,i,!1,o,s),e[yi]=t.current,kc(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Xh(t)};tn.render=function(e,t,r){if(!Jh(t))throw Error(oe(200));return Zh(null,e,t,!1,r)};tn.unmountComponentAtNode=function(e){if(!Jh(e))throw Error(oe(40));return e._reactRootContainer?(Ps(function(){Zh(null,null,e,!1,function(){e._reactRootContainer=null,e[yi]=null})}),!0):!1};tn.unstable_batchedUpdates=mv;tn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jh(r))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return Zh(e,t,r,!1,n)};tn.version="18.2.0-next-9e3b772b8-20220608"});var Os=ee((fte,J6)=>{"use strict";c();d();f();function X6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X6)}catch(e){console.error(e)}}X6(),J6.exports=Y6()});var Q6=ee(_v=>{"use strict";c();d();f();var Z6=Os();_v.createRoot=Z6.createRoot,_v.hydrateRoot=Z6.hydrateRoot;var dte});var t5=ee((pte,e5)=>{"use strict";c();d();f();var gU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e5.exports=gU});var o5=ee((mte,i5)=>{"use strict";c();d();f();var yU=t5();function r5(){}function n5(){}n5.resetWarningCache=r5;i5.exports=function(){function e(n,i,o,s,a,u){if(u!==yU){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n5,resetWarningCache:r5};return r.PropTypes=r,r}});var a5=ee((vte,s5)=>{c();d();f();s5.exports=o5()();var gte,yte});var B5=ee(Ov=>{"use strict";c();d();f();Object.defineProperty(Ov,"__esModule",{value:!0});function WU(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}Ov.default=WU});var j5=ee(Av=>{"use strict";c();d();f();Object.defineProperty(Av,"__esModule",{value:!0});function GU(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var YU=GU(B5()),XU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,JU=YU(function(e){return XU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});Av.default=JU});var cT=ee((Phe,tm)=>{c();d();f();var U4,V4,B4,j4,z4,H4,K4,q4,W4,G4,Y4,X4,J4,Qp,Pw,Z4,Q4,eT,Bu,tT,rT,nT,iT,oT,sT,aT,uT,lT,em;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof tm=="object"&&typeof tm.exports=="object"?e(r(t,r(tm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])};U4=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},V4=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},B4=function(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o},j4=function(n,i,o,s){var a=arguments.length,u=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,i,o,s);else for(var p=n.length-1;p>=0;p--)(l=n[p])&&(u=(a<3?l(u):a>3?l(i,o,u):l(i,o))||u);return a>3&&u&&Object.defineProperty(i,o,u),u},z4=function(n,i){return function(o,s){i(o,s,n)}},H4=function(n,i,o,s,a,u){function l(R){if(R!==void 0&&typeof R!="function")throw new TypeError("Function expected");return R}for(var p=s.kind,h=p==="getter"?"get":p==="setter"?"set":"value",y=!i&&n?s.static?n:n.prototype:null,v=i||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),w,_=!1,D=o.length-1;D>=0;D--){var C={};for(var I in s)C[I]=I==="access"?{}:s[I];for(var I in s.access)C.access[I]=s.access[I];C.addInitializer=function(R){if(_)throw new TypeError("Cannot add initializers after decoration has completed");u.push(l(R||null))};var P=(0,o[D])(p==="accessor"?{get:v.get,set:v.set}:v[h],C);if(p==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(w=l(P.get))&&(v.get=w),(w=l(P.set))&&(v.set=w),(w=l(P.init))&&a.push(w)}else(w=l(P))&&(p==="field"?a.push(w):v[h]=w)}y&&Object.defineProperty(y,s.name,v),_=!0},K4=function(n,i,o){for(var s=arguments.length>2,a=0;a<i.length;a++)o=s?i[a].call(n,o):i[a].call(n);return s?o:void 0},q4=function(n){return typeof n=="symbol"?n:"".concat(n)},W4=function(n,i,o){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:o?"".concat(o," ",i):i})},G4=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},Y4=function(n,i,o,s){function a(u){return u instanceof o?u:new o(function(l){l(u)})}return new(o||(o=Promise))(function(u,l){function p(v){try{y(s.next(v))}catch(w){l(w)}}function h(v){try{y(s.throw(v))}catch(w){l(w)}}function y(v){v.done?u(v.value):a(v.value).then(p,h)}y((s=s.apply(n,i||[])).next())})},X4=function(n,i){var o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(y){return function(v){return h([y,v])}}function h(y){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,y[0]&&(o=0)),o;)try{if(s=1,a&&(u=y[0]&2?a.return:y[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,y[1])).done)return u;switch(a=0,u&&(y=[y[0]&2,u.value]),y[0]){case 0:case 1:u=y;break;case 4:return o.label++,{value:y[1],done:!1};case 5:o.label++,a=y[1],y=[0];continue;case 7:y=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(y[0]===6||y[0]===2)){o=0;continue}if(y[0]===3&&(!u||y[1]>u[0]&&y[1]<u[3])){o.label=y[1];break}if(y[0]===6&&o.label<u[1]){o.label=u[1],u=y;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(y);break}u[2]&&o.ops.pop(),o.trys.pop();continue}y=i.call(n,o)}catch(v){y=[6,v],a=0}finally{s=u=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},J4=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&em(i,n,o)},em=Object.create?function(n,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,a)}:function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]},Qp=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],s=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Pw=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,u=[],l;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(p){l={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(l)throw l.error}}return u},Z4=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Pw(arguments[i]));return n},Q4=function(){for(var n=0,i=0,o=arguments.length;i<o;i++)n+=arguments[i].length;for(var s=Array(n),a=0,i=0;i<o;i++)for(var u=arguments[i],l=0,p=u.length;l<p;l++,a++)s[a]=u[l];return s},eT=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))},Bu=function(n){return this instanceof Bu?(this.v=n,this):new Bu(n)},tT=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,u=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(_){s[_]&&(a[_]=function(D){return new Promise(function(C,I){u.push([_,D,C,I])>1||p(_,D)})})}function p(_,D){try{h(s[_](D))}catch(C){w(u[0][3],C)}}function h(_){_.value instanceof Bu?Promise.resolve(_.value.v).then(y,v):w(u[0][2],_)}function y(_){p("next",_)}function v(_){p("throw",_)}function w(_,D){_(D),u.shift(),u.length&&p(u[0][0],u[0][1])}},rT=function(n){var i,o;return i={},s("next"),s("throw",function(a){throw a}),s("return"),i[Symbol.iterator]=function(){return this},i;function s(a,u){i[a]=n[a]?function(l){return(o=!o)?{value:Bu(n[a](l)),done:!1}:u?u(l):l}:u}},nT=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],o;return i?i.call(n):(n=typeof Qp=="function"?Qp(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(u){o[u]=n[u]&&function(l){return new Promise(function(p,h){l=n[u](l),a(p,h,l.done,l.value)})}}function a(u,l,p,h){Promise.resolve(h).then(function(y){u({value:y,done:p})},l)}},iT=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};oT=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var o in n)o!=="default"&&Object.prototype.hasOwnProperty.call(n,o)&&em(i,n,o);return r(i,n),i},sT=function(n){return n&&n.__esModule?n:{default:n}},aT=function(n,i,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(n):s?s.value:i.get(n)},uT=function(n,i,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,o):a?a.value=o:i.set(n,o),o},lT=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",U4),e("__assign",V4),e("__rest",B4),e("__decorate",j4),e("__param",z4),e("__esDecorate",H4),e("__runInitializers",K4),e("__propKey",q4),e("__setFunctionName",W4),e("__metadata",G4),e("__awaiter",Y4),e("__generator",X4),e("__exportStar",J4),e("__createBinding",em),e("__values",Qp),e("__read",Pw),e("__spread",Z4),e("__spreadArrays",Q4),e("__spreadArray",eT),e("__await",Bu),e("__asyncGenerator",tT),e("__asyncDelegator",rT),e("__asyncValues",nT),e("__makeTemplateObject",iT),e("__importStar",oT),e("__importDefault",sT),e("__classPrivateFieldGet",aT),e("__classPrivateFieldSet",uT),e("__classPrivateFieldIn",lT)})});var YT=ee((_me,GT)=>{c();d();f();GT.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}});var ZT=ee((Sme,JT)=>{"use strict";c();d();f();var rz=YT(),XT={"text/plain":"Text","text/html":"Url",default:"Text"},nz="Copy to clipboard: #{key}, Enter";function iz(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function oz(e,t){var r,n,i,o,s,a,u=!1;t||(t={}),r=t.debug||!1;try{i=rz(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=XT[t.format]||XT.default;window.clipboardData.setData(h,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(h){r&&console.error("unable to copy using clipboardData: ",h),r&&console.error("falling back to prompt"),n=iz("message"in t?t.message:nz),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return u}JT.exports=oz});var eP=ee((Cme,QT)=>{c();d();f();QT.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Ao=ee(Ws=>{c();d();f();var Fw,sz=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ws.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ws.getSymbolTotalCodewords=function(t){return sz[t]};Ws.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ws.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Fw=t};Ws.isKanjiModeEnabled=function(){return typeof Fw<"u"};Ws.toSJIS=function(t){return Fw(t)}});var fm=ee(_n=>{c();d();f();_n.L={bit:1};_n.M={bit:0};_n.Q={bit:3};_n.H={bit:2};function az(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return _n.L;case"m":case"medium":return _n.M;case"q":case"quartile":return _n.Q;case"h":case"high":return _n.H;default:throw new Error("Unknown EC Level: "+e)}}_n.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};_n.from=function(t,r){if(_n.isValid(t))return t;try{return az(t)}catch(n){return r}}});var nP=ee((Dme,rP)=>{c();d();f();function tP(){this.buffer=[],this.length=0}tP.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};rP.exports=tP});var oP=ee((Ime,iP)=>{c();d();f();function wf(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}wf.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};wf.prototype.get=function(e,t){return this.data[e*this.size+t]};wf.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};wf.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};iP.exports=wf});var sP=ee(dm=>{c();d();f();var uz=Ao().getSymbolSize;dm.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=uz(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};dm.getPositions=function(t){let r=[],n=dm.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var lP=ee(uP=>{c();d();f();var lz=Ao().getSymbolSize,aP=7;uP.getPositions=function(t){let r=lz(t);return[[0,0],[r-aP,0],[0,r-aP]]}});var cP=ee($e=>{c();d();f();$e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Gs={N1:3,N2:3,N3:40,N4:10};$e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};$e.from=function(t){return $e.isValid(t)?parseInt(t,10):void 0};$e.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let u=0;u<r;u++){i=o=0,s=a=null;for(let l=0;l<r;l++){let p=t.get(u,l);p===s?i++:(i>=5&&(n+=Gs.N1+(i-5)),s=p,i=1),p=t.get(l,u),p===a?o++:(o>=5&&(n+=Gs.N1+(o-5)),a=p,o=1)}i>=5&&(n+=Gs.N1+(i-5)),o>=5&&(n+=Gs.N1+(o-5))}return n};$e.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*Gs.N2};$e.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*Gs.N3};$e.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*Gs.N4};function cz(e,t,r){switch(e){case $e.Patterns.PATTERN000:return(t+r)%2===0;case $e.Patterns.PATTERN001:return t%2===0;case $e.Patterns.PATTERN010:return r%3===0;case $e.Patterns.PATTERN011:return(t+r)%3===0;case $e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case $e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case $e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case $e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}$e.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,cz(t,o,i))};$e.getBestMask=function(t,r){let n=Object.keys($e.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),$e.applyMask(s,t);let a=$e.getPenaltyN1(t)+$e.getPenaltyN2(t)+$e.getPenaltyN3(t)+$e.getPenaltyN4(t);$e.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var Uw=ee($w=>{c();d();f();var Ro=fm(),hm=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],pm=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];$w.getBlocksCount=function(t,r){switch(r){case Ro.L:return hm[(t-1)*4+0];case Ro.M:return hm[(t-1)*4+1];case Ro.Q:return hm[(t-1)*4+2];case Ro.H:return hm[(t-1)*4+3];default:return}};$w.getTotalCodewordsCount=function(t,r){switch(r){case Ro.L:return pm[(t-1)*4+0];case Ro.M:return pm[(t-1)*4+1];case Ro.Q:return pm[(t-1)*4+2];case Ro.H:return pm[(t-1)*4+3];default:return}}});var fP=ee(gm=>{c();d();f();var xf=new Uint8Array(512),mm=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)xf[r]=t,mm[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)xf[r]=xf[r-255]})();gm.log=function(t){if(t<1)throw new Error("log("+t+")");return mm[t]};gm.exp=function(t){return xf[t]};gm.mul=function(t,r){return t===0||r===0?0:xf[mm[t]+mm[r]]}});var dP=ee(bf=>{c();d();f();var Vw=fP();bf.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=Vw.mul(t[i],r[o]);return n};bf.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=Vw.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};bf.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=bf.mul(r,new Uint8Array([1,Vw.exp(n)]));return r}});var mP=ee((Lme,pP)=>{c();d();f();var hP=dP();function Bw(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Bw.prototype.initialize=function(t){this.degree=t,this.genPoly=hP.generateECPolynomial(this.degree)};Bw.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=hP.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};pP.exports=Bw});var jw=ee(gP=>{c();d();f();gP.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var zw=ee(Ii=>{c();d();f();var yP="[0-9]+",fz="[A-Z $%*+\\-./:]+",Ef="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ef=Ef.replace(/u/g,"\\u");var dz="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ef+`)(?:.|[\r
|
|
9
|
+
]))+`;Ii.KANJI=new RegExp(Ef,"g");Ii.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ii.BYTE=new RegExp(dz,"g");Ii.NUMERIC=new RegExp(yP,"g");Ii.ALPHANUMERIC=new RegExp(fz,"g");var hz=new RegExp("^"+Ef+"$"),pz=new RegExp("^"+yP+"$"),mz=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ii.testKanji=function(t){return hz.test(t)};Ii.testNumeric=function(t){return pz.test(t)};Ii.testAlphanumeric=function(t){return mz.test(t)}});var No=ee(Ht=>{c();d();f();var gz=jw(),Hw=zw();Ht.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};Ht.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};Ht.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};Ht.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};Ht.MIXED={bit:-1};Ht.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!gz.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Ht.getBestModeForData=function(t){return Hw.testNumeric(t)?Ht.NUMERIC:Hw.testAlphanumeric(t)?Ht.ALPHANUMERIC:Hw.testKanji(t)?Ht.KANJI:Ht.BYTE};Ht.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ht.isValid=function(t){return t&&t.bit&&t.ccBits};function yz(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ht.NUMERIC;case"alphanumeric":return Ht.ALPHANUMERIC;case"kanji":return Ht.KANJI;case"byte":return Ht.BYTE;default:throw new Error("Unknown mode: "+e)}}Ht.from=function(t,r){if(Ht.isValid(t))return t;try{return yz(t)}catch(n){return r}}});var EP=ee(Ys=>{c();d();f();var ym=Ao(),vz=Uw(),vP=fm(),Mo=No(),Kw=jw(),xP=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,wP=ym.getBCHDigit(xP);function wz(e,t,r){for(let n=1;n<=40;n++)if(t<=Ys.getCapacity(n,r,e))return n}function bP(e,t){return Mo.getCharCountIndicator(e,t)+4}function xz(e,t){let r=0;return e.forEach(function(n){r+=bP(n.mode,t)+n.getBitsLength()}),r}function bz(e,t){for(let r=1;r<=40;r++)if(xz(e,r)<=Ys.getCapacity(r,t,Mo.MIXED))return r}Ys.from=function(t,r){return Kw.isValid(t)?parseInt(t,10):r};Ys.getCapacity=function(t,r,n){if(!Kw.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Mo.BYTE);let i=ym.getSymbolTotalCodewords(t),o=vz.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===Mo.MIXED)return s;let a=s-bP(n,t);switch(n){case Mo.NUMERIC:return Math.floor(a/10*3);case Mo.ALPHANUMERIC:return Math.floor(a/11*2);case Mo.KANJI:return Math.floor(a/13);case Mo.BYTE:default:return Math.floor(a/8)}};Ys.getBestVersionForData=function(t,r){let n,i=vP.from(r,vP.M);if(Array.isArray(t)){if(t.length>1)return bz(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return wz(n.mode,n.getLength(),i)};Ys.getEncodedBits=function(t){if(!Kw.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;ym.getBCHDigit(r)-wP>=0;)r^=xP<<ym.getBCHDigit(r)-wP;return t<<12|r}});var TP=ee(CP=>{c();d();f();var qw=Ao(),SP=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Ez=1<<14|1<<12|1<<10|1<<4|1<<1,_P=qw.getBCHDigit(SP);CP.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;qw.getBCHDigit(i)-_P>=0;)i^=SP<<qw.getBCHDigit(i)-_P;return(n<<10|i)^Ez}});var DP=ee((jme,PP)=>{c();d();f();var _z=No();function Wu(e){this.mode=_z.NUMERIC,this.data=e.toString()}Wu.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Wu.prototype.getLength=function(){return this.data.length};Wu.prototype.getBitsLength=function(){return Wu.getBitsLength(this.data.length)};Wu.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};PP.exports=Wu});var OP=ee((zme,IP)=>{c();d();f();var Sz=No(),Ww=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Gu(e){this.mode=Sz.ALPHANUMERIC,this.data=e}Gu.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Gu.prototype.getLength=function(){return this.data.length};Gu.prototype.getBitsLength=function(){return Gu.getBitsLength(this.data.length)};Gu.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Ww.indexOf(this.data[r])*45;n+=Ww.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Ww.indexOf(this.data[r]),6)};IP.exports=Gu});var RP=ee((Hme,AP)=>{"use strict";c();d();f();AP.exports=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var o=t.charCodeAt(i);if(o>=55296&&o<=56319&&n>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,i+=1)}if(o<128){r.push(o);continue}if(o<2048){r.push(o>>6|192),r.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128);continue}if(o>=65536&&o<=1114111){r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var MP=ee((Kme,NP)=>{c();d();f();var Cz=RP(),Tz=No();function Yu(e){this.mode=Tz.BYTE,typeof e=="string"&&(e=Cz(e)),this.data=new Uint8Array(e)}Yu.getBitsLength=function(t){return t*8};Yu.prototype.getLength=function(){return this.data.length};Yu.prototype.getBitsLength=function(){return Yu.getBitsLength(this.data.length)};Yu.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};NP.exports=Yu});var LP=ee((qme,kP)=>{c();d();f();var Pz=No(),Dz=Ao();function Xu(e){this.mode=Pz.KANJI,this.data=e}Xu.getBitsLength=function(t){return t*13};Xu.prototype.getLength=function(){return this.data.length};Xu.prototype.getBitsLength=function(){return Xu.getBitsLength(this.data.length)};Xu.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=Dz.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
10
|
+
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};kP.exports=Xu});var FP=ee((Wme,Gw)=>{"use strict";c();d();f();var _f={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=_f.PriorityQueue.make();o.push(t,0);for(var s,a,u,l,p,h,y,v,w;!o.empty();){s=o.pop(),a=s.value,l=s.cost,p=e[a]||{};for(u in p)p.hasOwnProperty(u)&&(h=p[u],y=l+h,v=i[u],w=typeof i[u]>"u",(w||v>y)&&(i[u]=y,o.push(u,y),n[u]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var _=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(_)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=_f.single_source_shortest_paths(e,t,r);return _f.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=_f.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Gw<"u"&&(Gw.exports=_f)});var KP=ee(Ju=>{c();d();f();var De=No(),VP=DP(),BP=OP(),jP=MP(),zP=LP(),Sf=zw(),vm=Ao(),Iz=FP();function $P(e){return unescape(encodeURIComponent(e)).length}function Cf(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function HP(e){let t=Cf(Sf.NUMERIC,De.NUMERIC,e),r=Cf(Sf.ALPHANUMERIC,De.ALPHANUMERIC,e),n,i;return vm.isKanjiModeEnabled()?(n=Cf(Sf.BYTE,De.BYTE,e),i=Cf(Sf.KANJI,De.KANJI,e)):(n=Cf(Sf.BYTE_KANJI,De.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Yw(e,t){switch(t){case De.NUMERIC:return VP.getBitsLength(e);case De.ALPHANUMERIC:return BP.getBitsLength(e);case De.KANJI:return zP.getBitsLength(e);case De.BYTE:return jP.getBitsLength(e)}}function Oz(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function Az(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case De.NUMERIC:t.push([n,{data:n.data,mode:De.ALPHANUMERIC,length:n.length},{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.ALPHANUMERIC:t.push([n,{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.KANJI:t.push([n,{data:n.data,mode:De.BYTE,length:$P(n.data)}]);break;case De.BYTE:t.push([{data:n.data,mode:De.BYTE,length:$P(n.data)}])}}return t}function Rz(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let u=0;u<s.length;u++){let l=s[u],p=""+o+u;a.push(p),r[p]={node:l,lastCount:0},n[p]={};for(let h=0;h<i.length;h++){let y=i[h];r[y]&&r[y].node.mode===l.mode?(n[y][p]=Yw(r[y].lastCount+l.length,l.mode)-Yw(r[y].lastCount,l.mode),r[y].lastCount+=l.length):(r[y]&&(r[y].lastCount=l.length),n[y][p]=Yw(l.length,l.mode)+4+De.getCharCountIndicator(l.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function UP(e,t){let r,n=De.getBestModeForData(e);if(r=De.from(t,n),r!==De.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+De.toString(r)+`.
|
|
11
|
+
Suggested mode is: `+De.toString(n));switch(r===De.KANJI&&!vm.isKanjiModeEnabled()&&(r=De.BYTE),r){case De.NUMERIC:return new VP(e);case De.ALPHANUMERIC:return new BP(e);case De.KANJI:return new zP(e);case De.BYTE:return new jP(e)}}Ju.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(UP(n,null)):n.data&&r.push(UP(n.data,n.mode)),r},[])};Ju.fromString=function(t,r){let n=HP(t,vm.isKanjiModeEnabled()),i=Az(n),o=Rz(i,r),s=Iz.find_path(o.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(o.table[s[u]].node);return Ju.fromArray(Oz(a))};Ju.rawSplit=function(t){return Ju.fromArray(HP(t,vm.isKanjiModeEnabled()))}});var WP=ee(qP=>{c();d();f();var xm=Ao(),Xw=fm(),Nz=nP(),Mz=oP(),kz=sP(),Lz=lP(),Qw=cP(),ex=Uw(),Fz=mP(),wm=EP(),$z=TP(),Uz=No(),Jw=KP();function Vz(e,t){let r=e.size,n=Lz.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?e.set(o+a,s+u,!0,!0):e.set(o+a,s+u,!1,!0))}}function Bz(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function jz(e,t){let r=kz.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function zz(e,t){let r=e.size,n=wm.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Zw(e,t,r){let n=e.size,i=$z.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function Hz(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,a-u)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-u,l),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function Kz(e,t,r){let n=new Nz;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),Uz.getCharCountIndicator(u.mode,e)),u.write(n)});let i=xm.getSymbolTotalCodewords(e),o=ex.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let u=0;u<a;u++)n.put(u%2?17:236,8);return qz(n,e,t)}function qz(e,t,r){let n=xm.getSymbolTotalCodewords(t),i=ex.getTotalCodewordsCount(t,r),o=n-i,s=ex.getBlocksCount(t,r),a=n%s,u=s-a,l=Math.floor(n/s),p=Math.floor(o/s),h=p+1,y=l-p,v=new Fz(y),w=0,_=new Array(s),D=new Array(s),C=0,I=new Uint8Array(e.buffer);for(let F=0;F<s;F++){let $=F<u?p:h;_[F]=I.slice(w,w+$),D[F]=v.encode(_[F]),w+=$,C=Math.max(C,$)}let P=new Uint8Array(n),R=0,U,j;for(U=0;U<C;U++)for(j=0;j<s;j++)U<_[j].length&&(P[R++]=_[j][U]);for(U=0;U<y;U++)for(j=0;j<s;j++)P[R++]=D[j][U];return P}function Wz(e,t,r,n){let i;if(Array.isArray(e))i=Jw.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){let p=Jw.rawSplit(e);l=wm.getBestVersionForData(p,r)}i=Jw.fromString(e,l||40)}else throw new Error("Invalid data");let o=wm.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
|
|
12
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
13
|
+
Minimum version required to store current data is: `+o+`.
|
|
14
|
+
`);let s=Kz(t,r,i),a=xm.getSymbolSize(t),u=new Mz(a);return Vz(u,t),Bz(u),jz(u,t),Zw(u,r,0),t>=7&&zz(u,t),Hz(u,s),isNaN(n)&&(n=Qw.getBestMask(u,Zw.bind(null,u,r))),Qw.applyMask(n,u),Zw(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}qP.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Xw.M,i,o;return typeof r<"u"&&(n=Xw.from(r.errorCorrectionLevel,Xw.M),i=wm.from(r.version),o=Qw.from(r.maskPattern),r.toSJISFunc&&xm.setToSJISFunction(r.toSJISFunc)),Wz(t,i,n,o)}});var tx=ee(Xs=>{c();d();f();function GP(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Xs.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:GP(t.color.dark||"#000000ff"),light:GP(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Xs.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Xs.getImageWidth=function(t,r){let n=Xs.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Xs.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=Xs.getScale(i,n),a=Math.floor((i+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let p=0;p<a;p++)for(let h=0;h<a;h++){let y=(p*a+h)*4,v=n.color.light;if(p>=u&&h>=u&&p<a-u&&h<a-u){let w=Math.floor((p-u)/s),_=Math.floor((h-u)/s);v=l[o[w*i+_]?1:0]}t[y++]=v.r,t[y++]=v.g,t[y++]=v.b,t[y]=v.a}}});var YP=ee(bm=>{c();d();f();var rx=tx();function Gz(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function Yz(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}bm.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=Yz()),i=rx.getOptions(i);let s=rx.getImageWidth(t.modules.size,i),a=o.getContext("2d"),u=a.createImageData(s,s);return rx.qrToImageData(u.data,t,i),Gz(a,o,s),a.putImageData(u,0,0),o};bm.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=bm.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var ZP=ee(JP=>{c();d();f();var Xz=tx();function XP(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function nx(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function Jz(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(n+=o?nx("M",u+r,.5+l+r):nx("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(n+=nx("h",s),s=0)):i++}return n}JP.render=function(t,r,n){let i=Xz.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,u=i.color.light.a?"<path "+XP(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+XP(i.color.dark,"stroke")+' d="'+Jz(s,o,i.margin)+'"/>',p='viewBox="0 0 '+a+" "+a+'"',h=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",y='<svg xmlns="http://www.w3.org/2000/svg" '+h+p+' shape-rendering="crispEdges">'+u+l+`</svg>
|
|
15
|
+
`;return typeof n=="function"&&n(null,y),y}});var eD=ee(Tf=>{c();d();f();var Zz=eP(),ix=WP(),QP=YP(),Qz=ZP();function ox(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!Zz())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let p=ix.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=ix.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Tf.create=ix.create;Tf.toCanvas=ox.bind(null,QP.render);Tf.toDataURL=ox.bind(null,QP.renderToDataURL);Tf.toString=ox.bind(null,function(e,t,r){return Qz.render(e,r)})});var fD=ee((p0e,cD)=>{"use strict";c();d();f();function oH(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}cD.exports=sH;function sH(e,t,r){var n=r&&r.stringify||oH,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,y=e&&e.length||0,v=0;v<y;){if(e.charCodeAt(v)===37&&v+1<y){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Number(t[p]),h=v+2,v++;break;case 105:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Math.floor(Number(t[p])),h=v+2,v++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<v&&(l+=e.slice(h,v));var w=typeof t[p];if(w==="string"){l+="'"+t[p]+"'",h=v+2,v++;break}if(w==="function"){l+=t[p].name||"<anonymous>",h=v+2,v++;break}l+=n(t[p]),h=v+2,v++;break;case 115:if(p>=u)break;h<v&&(l+=e.slice(h,v)),l+=String(t[p]),h=v+2,v++;break;case 37:h<v&&(l+=e.slice(h,v)),l+="%",h=v+2,v++,p--;break}++p}++v}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var Cm=ee((m0e,mD)=>{"use strict";c();d();f();var dD=fD();mD.exports=ni;var Pf=gH().console||{},aH={mapHttpRequest:_m,mapHttpResponse:_m,wrapRequestSerializer:ux,wrapResponseSerializer:ux,wrapErrorSerializer:ux,req:_m,res:_m,err:dH};function uH(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ni(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Pf;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=uH(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=Df),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:hH(e)};u.levels=ni.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=Df,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=v,t&&(u._logEvent=lx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,Zu(l,u,"error","log"),Zu(l,u,"fatal","error"),Zu(l,u,"warn","error"),Zu(l,u,"info","log"),Zu(l,u,"debug","log"),Zu(l,u,"trace","log")}function v(w,_){if(!w)throw new Error("missing bindings for child Pino");_=_||{},i&&w.serializers&&(_.serializers=w.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete w.serializers,Sm([w],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=Qu(R,w,"error"),this.fatal=Qu(R,w,"fatal"),this.warn=Qu(R,w,"warn"),this.info=Qu(R,w,"info"),this.debug=Qu(R,w,"debug"),this.trace=Qu(R,w,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=lx([].concat(R._logEvent.bindings,w)))}return P.prototype=this,new P(this)}return u}ni.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};ni.stdSerializers=aH;ni.stdTimeFunctions=Object.assign({},{nullTime:hD,epochTime:pD,unixTime:pH,isoTime:mH});function Zu(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?Df:i[r]?i[r]:Pf[r]||Pf[n]||Df,lH(e,t,r)}function lH(e,t,r){!e.transmit&&t[r]===Df||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Pf?Pf:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&Sm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,cH(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=ni.levels.values[l],h=ni.levels.values[r];if(h<p)return;fH(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:ni.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function cH(e,t,r,n){e._serialize&&Sm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=ni.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?dD(i.shift(),i):void 0}else typeof o=="string"&&(o=dD(i.shift(),i));return o!==void 0&&(s.msg=o),s}function Sm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=ni.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function Qu(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function fH(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;Sm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=lx(u)}function lx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function dH(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function hH(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?hD:pD}function _m(){return{}}function ux(e){return e}function Df(){}function hD(){return!1}function pD(){return Date.now()}function pH(){return Math.round(Date.now()/1e3)}function mH(){return new Date(Date.now()).toISOString()}function gH(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var ko=ee((g0e,cx)=>{"use strict";c();d();f();var el=typeof Reflect=="object"?Reflect:null,gD=el&&typeof el.apply=="function"?el.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Tm;el&&typeof el.ownKeys=="function"?Tm=el.ownKeys:Object.getOwnPropertySymbols?Tm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Tm=function(t){return Object.getOwnPropertyNames(t)};function yH(e){console&&console.warn&&console.warn(e)}var vD=Number.isNaN||function(t){return t!==t};function Ae(){Ae.init.call(this)}cx.exports=Ae;cx.exports.once=bH;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var yD=10;function Pm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return yD},set:function(e){if(typeof e!="number"||e<0||vD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");yD=e}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||vD(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function wD(e){return e._maxListeners===void 0?Ae.defaultMaxListeners:e._maxListeners}Ae.prototype.getMaxListeners=function(){return wD(this)};Ae.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")gD(u,this,r);else for(var l=u.length,p=SD(u,l),n=0;n<l;++n)gD(p[n],this,r);return!0};function xD(e,t,r,n){var i,o,s;if(Pm(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=wD(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,yH(a)}return e}Ae.prototype.addListener=function(t,r){return xD(this,t,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(t,r){return xD(this,t,r,!0)};function vH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=vH.bind(n);return i.listener=r,n.wrapFn=i,i}Ae.prototype.once=function(t,r){return Pm(r),this.on(t,bD(this,t,r)),this};Ae.prototype.prependOnceListener=function(t,r){return Pm(r),this.prependListener(t,bD(this,t,r)),this};Ae.prototype.removeListener=function(t,r){var n,i,o,s,a;if(Pm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():wH(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function ED(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?xH(i):SD(i,i.length)}Ae.prototype.listeners=function(t){return ED(this,t,!0)};Ae.prototype.rawListeners=function(t){return ED(this,t,!1)};Ae.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_D.call(e,t)};Ae.prototype.listenerCount=_D;function _D(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?Tm(this._events):[]};function SD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function wH(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function xH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function bH(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}CD(e,t,o,{once:!0}),t!=="error"&&EH(e,i,{once:!0})})}function EH(e,t,r){typeof e.on=="function"&&CD(e,"error",t,r)}function CD(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var dx=ee((y0e,Im)=>{c();d();f();var TD,PD,DD,ID,OD,AD,RD,ND,MD,Dm,fx,kD,LD,tl,FD,$D,UD,VD,BD,jD,zD,HD,KD;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Im=="object"&&typeof Im.exports=="object"?e(r(t,r(Im.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};TD=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},PD=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},DD=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},ID=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},OD=function(r,n){return function(i,o){n(i,o,r)}},AD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},RD=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},ND=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},KD=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},MD=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Dm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},fx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},kD=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(fx(arguments[n]));return r},LD=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},tl=function(r){return this instanceof tl?(this.v=r,this):new tl(r)},FD=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof tl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},$D=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:tl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},UD=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Dm=="function"?Dm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},VD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},BD=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},jD=function(r){return r&&r.__esModule?r:{default:r}},zD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},HD=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",TD),e("__assign",PD),e("__rest",DD),e("__decorate",ID),e("__param",OD),e("__metadata",AD),e("__awaiter",RD),e("__generator",ND),e("__exportStar",MD),e("__createBinding",KD),e("__values",Dm),e("__read",fx),e("__spread",kD),e("__spreadArrays",LD),e("__await",tl),e("__asyncGenerator",FD),e("__asyncDelegator",$D),e("__asyncValues",UD),e("__makeTemplateObject",VD),e("__importStar",BD),e("__importDefault",jD),e("__classPrivateFieldGet",zD),e("__classPrivateFieldSet",HD)})});var hx=ee(Om=>{"use strict";c();d();f();Object.defineProperty(Om,"__esModule",{value:!0});function _H(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}Om.safeJsonParse=_H;function SH(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Om.safeJsonStringify=SH});var qD=ee((w0e,Am)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?Am.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Am.exports=window.localStorage:Am.exports=new t})()});var WD=ee(Rm=>{"use strict";c();d();f();Object.defineProperty(Rm,"__esModule",{value:!0});Rm.IKeyValueStorage=void 0;var px=class{};Rm.IKeyValueStorage=px});var GD=ee(Nm=>{"use strict";c();d();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.parseEntry=void 0;var CH=hx();function TH(e){var t;return[e[0],CH.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Nm.parseEntry=TH});var XD=ee(Mm=>{"use strict";c();d();f();Object.defineProperty(Mm,"__esModule",{value:!0});var YD=dx();YD.__exportStar(WD(),Mm);YD.__exportStar(GD(),Mm)});var ZD=ee(If=>{"use strict";c();d();f();Object.defineProperty(If,"__esModule",{value:!0});If.KeyValueStorage=void 0;var rl=dx(),JD=hx(),PH=rl.__importDefault(qD()),DH=XD(),km=class{constructor(){this.localStorage=PH.default}getKeys(){return rl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return rl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(DH.parseEntry)})}getItem(t){return rl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return JD.safeJsonParse(r)})}setItem(t,r){return rl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,JD.safeJsonStringify(r))})}removeItem(t){return rl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};If.KeyValueStorage=km;If.default=km});var Of=ee((S0e,Fm)=>{c();d();f();var QD,eI,tI,rI,nI,iI,oI,sI,aI,Lm,mx,uI,lI,nl,cI,fI,dI,hI,pI,mI,gI,yI,vI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Fm=="object"&&typeof Fm.exports=="object"?e(r(t,r(Fm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};QD=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},eI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},tI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},rI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},nI=function(r,n){return function(i,o){n(i,o,r)}},iI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},oI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},sI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},vI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},aI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Lm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},mx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},uI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(mx(arguments[n]));return r},lI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},nl=function(r){return this instanceof nl?(this.v=r,this):new nl(r)},cI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof nl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},fI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:nl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},dI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Lm=="function"?Lm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},hI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},pI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},mI=function(r){return r&&r.__esModule?r:{default:r}},gI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},yI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",QD),e("__assign",eI),e("__rest",tI),e("__decorate",rI),e("__param",nI),e("__metadata",iI),e("__awaiter",oI),e("__generator",sI),e("__exportStar",aI),e("__createBinding",vI),e("__values",Lm),e("__read",mx),e("__spread",uI),e("__spreadArrays",lI),e("__await",nl),e("__asyncGenerator",cI),e("__asyncDelegator",fI),e("__asyncValues",dI),e("__makeTemplateObject",hI),e("__importStar",pI),e("__importDefault",mI),e("__classPrivateFieldGet",gI),e("__classPrivateFieldSet",yI)})});var Af=ee((C0e,Um)=>{c();d();f();var wI,xI,bI,EI,_I,SI,CI,TI,PI,$m,gx,DI,II,il,OI,AI,RI,NI,MI,kI,LI,FI,$I;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Um=="object"&&typeof Um.exports=="object"?e(r(t,r(Um.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};wI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},xI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},bI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},EI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},_I=function(r,n){return function(i,o){n(i,o,r)}},SI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},CI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},TI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},$I=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},PI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},$m=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},gx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},DI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(gx(arguments[n]));return r},II=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},il=function(r){return this instanceof il?(this.v=r,this):new il(r)},OI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof il?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},AI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:il(r[s](u)),done:s==="return"}:a?a(u):u}:a}},RI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof $m=="function"?$m(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},NI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},MI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},kI=function(r){return r&&r.__esModule?r:{default:r}},LI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},FI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",wI),e("__assign",xI),e("__rest",bI),e("__decorate",EI),e("__param",_I),e("__metadata",SI),e("__awaiter",CI),e("__generator",TI),e("__exportStar",PI),e("__createBinding",$I),e("__values",$m),e("__read",gx),e("__spread",DI),e("__spreadArrays",II),e("__await",il),e("__asyncGenerator",OI),e("__asyncDelegator",AI),e("__asyncValues",RI),e("__makeTemplateObject",NI),e("__importStar",MI),e("__importDefault",kI),e("__classPrivateFieldGet",LI),e("__classPrivateFieldSet",FI)})});var UI=ee(Vm=>{"use strict";c();d();f();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.delay=void 0;function IH(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Vm.delay=IH});var VI=ee(ol=>{"use strict";c();d();f();Object.defineProperty(ol,"__esModule",{value:!0});ol.ONE_THOUSAND=ol.ONE_HUNDRED=void 0;ol.ONE_HUNDRED=100;ol.ONE_THOUSAND=1e3});var BI=ee(le=>{"use strict";c();d();f();Object.defineProperty(le,"__esModule",{value:!0});le.ONE_YEAR=le.FOUR_WEEKS=le.THREE_WEEKS=le.TWO_WEEKS=le.ONE_WEEK=le.THIRTY_DAYS=le.SEVEN_DAYS=le.FIVE_DAYS=le.THREE_DAYS=le.ONE_DAY=le.TWENTY_FOUR_HOURS=le.TWELVE_HOURS=le.SIX_HOURS=le.THREE_HOURS=le.ONE_HOUR=le.SIXTY_MINUTES=le.THIRTY_MINUTES=le.TEN_MINUTES=le.FIVE_MINUTES=le.ONE_MINUTE=le.SIXTY_SECONDS=le.THIRTY_SECONDS=le.TEN_SECONDS=le.FIVE_SECONDS=le.ONE_SECOND=void 0;le.ONE_SECOND=1;le.FIVE_SECONDS=5;le.TEN_SECONDS=10;le.THIRTY_SECONDS=30;le.SIXTY_SECONDS=60;le.ONE_MINUTE=le.SIXTY_SECONDS;le.FIVE_MINUTES=le.ONE_MINUTE*5;le.TEN_MINUTES=le.ONE_MINUTE*10;le.THIRTY_MINUTES=le.ONE_MINUTE*30;le.SIXTY_MINUTES=le.ONE_MINUTE*60;le.ONE_HOUR=le.SIXTY_MINUTES;le.THREE_HOURS=le.ONE_HOUR*3;le.SIX_HOURS=le.ONE_HOUR*6;le.TWELVE_HOURS=le.ONE_HOUR*12;le.TWENTY_FOUR_HOURS=le.ONE_HOUR*24;le.ONE_DAY=le.TWENTY_FOUR_HOURS;le.THREE_DAYS=le.ONE_DAY*3;le.FIVE_DAYS=le.ONE_DAY*5;le.SEVEN_DAYS=le.ONE_DAY*7;le.THIRTY_DAYS=le.ONE_DAY*30;le.ONE_WEEK=le.SEVEN_DAYS;le.TWO_WEEKS=le.ONE_WEEK*2;le.THREE_WEEKS=le.ONE_WEEK*3;le.FOUR_WEEKS=le.ONE_WEEK*4;le.ONE_YEAR=le.ONE_DAY*365});var yx=ee(Bm=>{"use strict";c();d();f();Object.defineProperty(Bm,"__esModule",{value:!0});var jI=Af();jI.__exportStar(VI(),Bm);jI.__exportStar(BI(),Bm)});var HI=ee(sl=>{"use strict";c();d();f();Object.defineProperty(sl,"__esModule",{value:!0});sl.fromMiliseconds=sl.toMiliseconds=void 0;var zI=yx();function OH(e){return e*zI.ONE_THOUSAND}sl.toMiliseconds=OH;function AH(e){return Math.floor(e/zI.ONE_THOUSAND)}sl.fromMiliseconds=AH});var qI=ee(jm=>{"use strict";c();d();f();Object.defineProperty(jm,"__esModule",{value:!0});var KI=Af();KI.__exportStar(UI(),jm);KI.__exportStar(HI(),jm)});var WI=ee(Rf=>{"use strict";c();d();f();Object.defineProperty(Rf,"__esModule",{value:!0});Rf.Watch=void 0;var zm=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};Rf.Watch=zm;Rf.default=zm});var GI=ee(Hm=>{"use strict";c();d();f();Object.defineProperty(Hm,"__esModule",{value:!0});Hm.IWatch=void 0;var vx=class{};Hm.IWatch=vx});var YI=ee(wx=>{"use strict";c();d();f();Object.defineProperty(wx,"__esModule",{value:!0});var RH=Af();RH.__exportStar(GI(),wx)});var Oi=ee(al=>{"use strict";c();d();f();Object.defineProperty(al,"__esModule",{value:!0});var Km=Af();Km.__exportStar(qI(),al);Km.__exportStar(WI(),al);Km.__exportStar(YI(),al);Km.__exportStar(yx(),al)});var jn,XI=ba(()=>{c();d();f();jn=class{}});var JI={};fr(JI,{IEvents:()=>jn});var qm=ba(()=>{c();d();f();XI()});var ZI=ee(Wm=>{"use strict";c();d();f();Object.defineProperty(Wm,"__esModule",{value:!0});Wm.IHeartBeat=void 0;var NH=(qm(),T2(JI)),xx=class extends NH.IEvents{constructor(t){super()}};Wm.IHeartBeat=xx});var Ex=ee(bx=>{"use strict";c();d();f();Object.defineProperty(bx,"__esModule",{value:!0});var MH=Of();MH.__exportStar(ZI(),bx)});var QI=ee(ul=>{"use strict";c();d();f();Object.defineProperty(ul,"__esModule",{value:!0});ul.HEARTBEAT_EVENTS=ul.HEARTBEAT_INTERVAL=void 0;var kH=Oi();ul.HEARTBEAT_INTERVAL=kH.FIVE_SECONDS;ul.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Sx=ee(_x=>{"use strict";c();d();f();Object.defineProperty(_x,"__esModule",{value:!0});var LH=Of();LH.__exportStar(QI(),_x)});var eO=ee(Gm=>{"use strict";c();d();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.HeartBeat=void 0;var Cx=Of(),FH=ko(),$H=Oi(),UH=Ex(),Tx=Sx(),Nf=class extends UH.IHeartBeat{constructor(t){super(t),this.events=new FH.EventEmitter,this.interval=Tx.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||Tx.HEARTBEAT_INTERVAL}static init(t){return Cx.__awaiter(this,void 0,void 0,function*(){let r=new Nf(t);return yield r.init(),r})}init(){return Cx.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return Cx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),$H.toMiliseconds(this.interval))})}pulse(){this.events.emit(Tx.HEARTBEAT_EVENTS.pulse)}};Gm.HeartBeat=Nf});var tO=ee(Mf=>{"use strict";c();d();f();Object.defineProperty(Mf,"__esModule",{value:!0});var Px=Of();Px.__exportStar(eO(),Mf);Px.__exportStar(Ex(),Mf);Px.__exportStar(Sx(),Mf)});var EO=ee((H0e,Xm)=>{c();d();f();var rO,nO,iO,oO,sO,aO,uO,lO,cO,Ym,Dx,fO,dO,ll,hO,pO,mO,gO,yO,vO,wO,xO,bO;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Xm=="object"&&typeof Xm.exports=="object"?e(r(t,r(Xm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};rO=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},nO=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},iO=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},oO=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},sO=function(r,n){return function(i,o){n(i,o,r)}},aO=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},uO=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},lO=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},bO=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},cO=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Ym=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Dx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},fO=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Dx(arguments[n]));return r},dO=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},ll=function(r){return this instanceof ll?(this.v=r,this):new ll(r)},hO=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof ll?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},pO=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:ll(r[s](u)),done:s==="return"}:a?a(u):u}:a}},mO=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Ym=="function"?Ym(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},gO=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},yO=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},vO=function(r){return r&&r.__esModule?r:{default:r}},wO=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},xO=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",rO),e("__assign",nO),e("__rest",iO),e("__decorate",oO),e("__param",sO),e("__metadata",aO),e("__awaiter",uO),e("__generator",lO),e("__exportStar",cO),e("__createBinding",bO),e("__values",Ym),e("__read",Dx),e("__spread",fO),e("__spreadArrays",dO),e("__await",ll),e("__asyncGenerator",hO),e("__asyncDelegator",pO),e("__asyncValues",mO),e("__makeTemplateObject",gO),e("__importStar",yO),e("__importDefault",vO),e("__classPrivateFieldGet",wO),e("__classPrivateFieldSet",xO)})});var Ix=ee(cl=>{"use strict";c();d();f();Object.defineProperty(cl,"__esModule",{value:!0});cl.PINO_CUSTOM_CONTEXT_KEY=cl.PINO_LOGGER_DEFAULTS=void 0;cl.PINO_LOGGER_DEFAULTS={level:"info"};cl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var PO=ee(Br=>{"use strict";c();d();f();Object.defineProperty(Br,"__esModule",{value:!0});Br.generateChildLogger=Br.formatChildLoggerContext=Br.getLoggerContext=Br.setBrowserLoggerContext=Br.getBrowserLoggerContext=Br.getDefaultLoggerOptions=void 0;var fl=Ix();function VH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||fl.PINO_LOGGER_DEFAULTS.level})}Br.getDefaultLoggerOptions=VH;function _O(e,t=fl.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Br.getBrowserLoggerContext=_O;function SO(e,t,r=fl.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Br.setBrowserLoggerContext=SO;function CO(e,t=fl.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=_O(e,t):r=e.bindings().context||"",r}Br.getLoggerContext=CO;function TO(e,t,r=fl.PINO_CUSTOM_CONTEXT_KEY){let n=CO(e,r);return n.trim()?`${n}/${t}`:t}Br.formatChildLoggerContext=TO;function BH(e,t,r=fl.PINO_CUSTOM_CONTEXT_KEY){let n=TO(e,t,r),i=e.child({context:n});return SO(i,n,r)}Br.generateChildLogger=BH});var Ax=ee(dl=>{"use strict";c();d();f();Object.defineProperty(dl,"__esModule",{value:!0});dl.pino=void 0;var Ox=EO(),jH=Ox.__importDefault(Cm());Object.defineProperty(dl,"pino",{enumerable:!0,get:function(){return jH.default}});Ox.__exportStar(Ix(),dl);Ox.__exportStar(PO(),dl)});var OO=ee(o0=>{"use strict";c();d();f();Object.defineProperty(o0,"__esModule",{value:!0});o0.BrowserRandomSource=void 0;var IO=65536,Rx=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=IO)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,IO)));return r}};o0.BrowserRandomSource=Rx});var Sn=ee(Nx=>{"use strict";c();d();f();Object.defineProperty(Nx,"__esModule",{value:!0});function zH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Nx.wipe=zH});var AO=ee(()=>{c();d();f()});var RO=ee(s0=>{"use strict";c();d();f();Object.defineProperty(s0,"__esModule",{value:!0});s0.NodeRandomSource=void 0;var HH=Sn(),Mx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof C2<"u"){let t=AO();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,HH.wipe)(r),n}};s0.NodeRandomSource=Mx});var NO=ee(a0=>{"use strict";c();d();f();Object.defineProperty(a0,"__esModule",{value:!0});a0.SystemRandomSource=void 0;var KH=OO(),qH=RO(),kx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new KH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new qH.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};a0.SystemRandomSource=kx});var MO=ee(on=>{"use strict";c();d();f();Object.defineProperty(on,"__esModule",{value:!0});function WH(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}on.mul=Math.imul||WH;function GH(e,t){return e+t|0}on.add=GH;function YH(e,t){return e-t|0}on.sub=YH;function XH(e,t){return e<<t|e>>>32-t}on.rotl=XH;function JH(e,t){return e<<32-t|e>>>t}on.rotr=JH;function ZH(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}on.isInteger=Number.isInteger||ZH;on.MAX_SAFE_INTEGER=9007199254740991;on.isSafeInteger=function(e){return on.isInteger(e)&&e>=-on.MAX_SAFE_INTEGER&&e<=on.MAX_SAFE_INTEGER}});var pl=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var kO=MO();function QH(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=QH;function eK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=eK;function tK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=tK;function rK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=rK;function LO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}we.writeUint16BE=LO;we.writeInt16BE=LO;function FO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}we.writeUint16LE=FO;we.writeInt16LE=FO;function Lx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Lx;function Fx(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}we.readUint32BE=Fx;function $x(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=$x;function Ux(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}we.readUint32LE=Ux;function u0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}we.writeUint32BE=u0;we.writeInt32BE=u0;function l0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}we.writeUint32LE=l0;we.writeInt32LE=l0;function nK(e,t){t===void 0&&(t=0);var r=Lx(e,t),n=Lx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=nK;function iK(e,t){t===void 0&&(t=0);var r=Fx(e,t),n=Fx(e,t+4);return r*4294967296+n}we.readUint64BE=iK;function oK(e,t){t===void 0&&(t=0);var r=$x(e,t),n=$x(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=oK;function sK(e,t){t===void 0&&(t=0);var r=Ux(e,t),n=Ux(e,t+4);return n*4294967296+r}we.readUint64LE=sK;function $O(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),u0(e/4294967296>>>0,t,r),u0(e>>>0,t,r+4),t}we.writeUint64BE=$O;we.writeInt64BE=$O;function UO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),l0(e>>>0,t,r),l0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=UO;we.writeInt64LE=UO;function aK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}we.readUintBE=aK;function uK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}we.readUintLE=uK;function lK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!kO.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}we.writeUintBE=lK;function cK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!kO.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}we.writeUintLE=cK;function fK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=fK;function dK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=dK;function hK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=hK;function pK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=pK;function mK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}we.writeFloat32BE=mK;function gK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}we.writeFloat32LE=gK;function yK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}we.writeFloat64BE=yK;function vK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}we.writeFloat64LE=vK});var Js=ee(xr=>{"use strict";c();d();f();Object.defineProperty(xr,"__esModule",{value:!0});xr.randomStringForEntropy=xr.randomString=xr.randomUint32=xr.randomBytes=xr.defaultRandomSource=void 0;var wK=NO(),xK=pl(),VO=Sn();xr.defaultRandomSource=new wK.SystemRandomSource;function Vx(e,t=xr.defaultRandomSource){return t.randomBytes(e)}xr.randomBytes=Vx;function bK(e=xr.defaultRandomSource){let t=Vx(4,e),r=(0,xK.readUint32LE)(t);return(0,VO.wipe)(t),r}xr.randomUint32=bK;var BO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function jO(e,t=BO,r=xr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=Vx(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,VO.wipe)(s)}return n}xr.randomString=jO;function EK(e,t=BO,r=xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return jO(n,t,r)}xr.randomStringForEntropy=EK});var KO=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var gl=pl(),ml=Sn();Ai.DIGEST_LENGTH=64;Ai.BLOCK_SIZE=128;var HO=function(){function e(){this.digestLength=Ai.DIGEST_LENGTH,this.blockSize=Ai.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){ml.wipe(this._buffer),ml.wipe(this._tempHi),ml.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<Ai.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Bx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Bx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;gl.writeUint32BE(i,this._buffer,s-8),gl.writeUint32BE(o,this._buffer,s-4),Bx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)gl.writeUint32BE(this._stateHi[a],t,a*8),gl.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){ml.wipe(t.stateHi),ml.wipe(t.stateLo),t.buffer&&ml.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Ai.SHA512=HO;var zO=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function Bx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],v=r[6],w=r[7],_=n[0],D=n[1],C=n[2],I=n[3],P=n[4],R=n[5],U=n[6],j=n[7],F,$,G,X,W,J,N,m;s>=128;){for(var E=0;E<16;E++){var O=8*E+o;e[E]=gl.readUint32BE(i,O),t[E]=gl.readUint32BE(i,O+4)}for(var E=0;E<80;E++){var A=a,M=u,V=l,B=p,k=h,b=y,L=v,Z=w,T=_,z=D,K=C,q=I,Q=P,ie=R,re=U,te=j;if(F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(h>>>14|P<<32-14)^(h>>>18|P<<32-18)^(P>>>41-32|h<<32-(41-32)),$=(P>>>14|h<<32-14)^(P>>>18|h<<32-18)^(h>>>41-32|P<<32-(41-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=h&y^~h&v,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=zO[E*2],$=zO[E*2+1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=e[E%16],$=t[E%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,G=N&65535|m<<16,X=W&65535|J<<16,F=G,$=X,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),$=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=a&u^a&l^u&l,$=_&D^_&C^D&C,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,Z=N&65535|m<<16,te=W&65535|J<<16,F=B,$=q,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=G,$=X,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,B=N&65535|m<<16,q=W&65535|J<<16,u=A,l=M,p=V,h=B,y=k,v=b,w=L,a=Z,D=T,C=z,I=K,P=q,R=Q,U=ie,j=re,_=te,E%16===15)for(var O=0;O<16;O++)F=e[O],$=t[O],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(O+9)%16],$=t[(O+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+1)%16],X=t[(O+1)%16],F=(G>>>1|X<<32-1)^(G>>>8|X<<32-8)^G>>>7,$=(X>>>1|G<<32-1)^(X>>>8|G<<32-8)^(X>>>7|G<<32-7),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+14)%16],X=t[(O+14)%16],F=(G>>>19|X<<32-19)^(X>>>61-32|G<<32-(61-32))^G>>>6,$=(X>>>19|G<<32-19)^(G>>>61-32|X<<32-(61-32))^(X>>>6|G<<32-6),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,e[O]=N&65535|m<<16,t[O]=W&65535|J<<16}F=a,$=_,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[0],$=n[0],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[0]=a=N&65535|m<<16,n[0]=_=W&65535|J<<16,F=u,$=D,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[1],$=n[1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[1]=u=N&65535|m<<16,n[1]=D=W&65535|J<<16,F=l,$=C,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[2],$=n[2],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[2]=l=N&65535|m<<16,n[2]=C=W&65535|J<<16,F=p,$=I,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[3],$=n[3],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[3]=p=N&65535|m<<16,n[3]=I=W&65535|J<<16,F=h,$=P,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[4],$=n[4],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[4]=h=N&65535|m<<16,n[4]=P=W&65535|J<<16,F=y,$=R,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[5],$=n[5],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[5]=y=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=v,$=U,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[6],$=n[6],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[6]=v=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[7],$=n[7],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[7]=w=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function _K(e){var t=new HO;t.update(e);var r=t.digest();return t.clean(),r}Ai.hash=_K});var oA=ee(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertSecretKeyToX25519=Ie.convertPublicKeyToX25519=Ie.verify=Ie.sign=Ie.extractPublicKeyFromSecretKey=Ie.generateKeyPair=Ie.generateKeyPairFromSeed=Ie.SEED_LENGTH=Ie.SECRET_KEY_LENGTH=Ie.PUBLIC_KEY_LENGTH=Ie.SIGNATURE_LENGTH=void 0;var SK=Js(),Lf=KO(),XO=Sn();Ie.SIGNATURE_LENGTH=64;Ie.PUBLIC_KEY_LENGTH=32;Ie.SECRET_KEY_LENGTH=64;Ie.SEED_LENGTH=32;function me(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var CK=new Uint8Array(32);CK[0]=9;var Hx=me(),yl=me([1]),TK=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),PK=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),qO=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),WO=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),DK=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lo(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function jx(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function JO(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function Ff(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];jx(n),jx(n),jx(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,JO(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function ZO(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function GO(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return Ff(r,e),Ff(n,t),ZO(r,n)}function QO(e){let t=new Uint8Array(32);return Ff(t,e),t[0]&1}function IK(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Zs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function ea(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Re(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Qs(e,t){Re(e,t,t)}function eA(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Qs(r,r),n!==2&&n!==4&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function OK(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Qs(r,r),n!==1&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function Kx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();ea(r,e[1],e[0]),ea(p,t[1],t[0]),Re(r,r,p),Zs(n,e[0],e[1]),Zs(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,PK),Re(o,e[2],t[2]),Zs(o,o,o),ea(s,n,r),ea(a,o,i),Zs(u,o,i),Zs(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function YO(e,t,r){for(let n=0;n<4;n++)JO(e[n],t[n],r)}function Wx(e,t){let r=me(),n=me(),i=me();eA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),Ff(e,n),e[31]^=QO(r)<<7}function tA(e,t,r){Lo(e[0],Hx),Lo(e[1],yl),Lo(e[2],yl),Lo(e[3],Hx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;YO(e,t,i),Kx(t,e),Kx(e,e),YO(e,t,i)}}function Gx(e,t){let r=[me(),me(),me(),me()];Lo(r[0],qO),Lo(r[1],WO),Lo(r[2],yl),Re(r[3],qO,WO),tA(e,r,t)}function rA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,Lf.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Gx(n,t),Wx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=rA;function AK(e){let t=(0,SK.randomBytes)(32,e),r=rA(t);return(0,XO.wipe)(t),r}Ie.generateKeyPair=AK;function RK(e){if(e.length!==Ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Ie.extractPublicKeyFromSecretKey=RK;var zx=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function nA(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*zx[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*zx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*zx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function qx(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;nA(e,t)}function NK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,Lf.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new Lf.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),qx(a),Gx(n,a),Wx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();qx(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return nA(o.subarray(32),r),o}Ie.sign=NK;function iA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Lo(e[2],yl),IK(e[1],t),Qs(i,e[1]),Re(o,i,TK),ea(i,i,e[2]),Zs(o,e[2],o),Qs(s,o),Qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),OK(r,r),Re(r,r,i),Re(r,r,o),Re(r,r,o),Re(e[0],r,o),Qs(n,e[0]),Re(n,n,o),GO(n,i)&&Re(e[0],e[0],DK),Qs(n,e[0]),Re(n,n,o),GO(n,i)?-1:(QO(e[0])===t[31]>>7&&ea(e[0],Hx,e[0]),Re(e[3],e[0],e[1]),0)}function MK(e,t,r){let n=new Uint8Array(32),i=[me(),me(),me(),me()],o=[me(),me(),me(),me()];if(r.length!==Ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Ie.SIGNATURE_LENGTH} bytes`);if(iA(o,e))return!1;let s=new Lf.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return qx(a),tA(i,o,a),Gx(o,r.subarray(32)),Kx(i,o),Wx(n,i),!ZO(r,n)}Ie.verify=MK;function kK(e){let t=[me(),me(),me(),me()];if(iA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Zs(r,yl,i),ea(n,yl,i),eA(n,n),Re(r,r,n);let o=new Uint8Array(32);return Ff(o,r),o}Ie.convertPublicKeyToX25519=kK;function LK(e){let t=(0,Lf.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,XO.wipe)(t),r}Ie.convertSecretKeyToX25519=LK});var jA=ee(w0=>{"use strict";c();d();f();Object.defineProperty(w0,"__esModule",{value:!0});var br=pl(),wb=Sn(),Xq=20;function Jq(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],D=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],I=t[15]<<24|t[14]<<16|t[13]<<8|t[12],P=n,R=i,U=o,j=s,F=a,$=u,G=l,X=p,W=h,J=y,N=v,m=w,E=_,O=D,A=C,M=I,V=0;V<Xq;V+=2)P=P+F|0,E^=P,E=E>>>32-16|E<<16,W=W+E|0,F^=W,F=F>>>32-12|F<<12,R=R+$|0,O^=R,O=O>>>32-16|O<<16,J=J+O|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,A^=U,A=A>>>32-16|A<<16,N=N+A|0,G^=N,G=G>>>32-12|G<<12,j=j+X|0,M^=j,M=M>>>32-16|M<<16,m=m+M|0,X^=m,X=X>>>32-12|X<<12,U=U+G|0,A^=U,A=A>>>32-8|A<<8,N=N+A|0,G^=N,G=G>>>32-7|G<<7,j=j+X|0,M^=j,M=M>>>32-8|M<<8,m=m+M|0,X^=m,X=X>>>32-7|X<<7,R=R+$|0,O^=R,O=O>>>32-8|O<<8,J=J+O|0,$^=J,$=$>>>32-7|$<<7,P=P+F|0,E^=P,E=E>>>32-8|E<<8,W=W+E|0,F^=W,F=F>>>32-7|F<<7,P=P+$|0,M^=P,M=M>>>32-16|M<<16,N=N+M|0,$^=N,$=$>>>32-12|$<<12,R=R+G|0,E^=R,E=E>>>32-16|E<<16,m=m+E|0,G^=m,G=G>>>32-12|G<<12,U=U+X|0,O^=U,O=O>>>32-16|O<<16,W=W+O|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,A^=j,A=A>>>32-16|A<<16,J=J+A|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,O^=U,O=O>>>32-8|O<<8,W=W+O|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,A^=j,A=A>>>32-8|A<<8,J=J+A|0,F^=J,F=F>>>32-7|F<<7,R=R+G|0,E^=R,E=E>>>32-8|E<<8,m=m+E|0,G^=m,G=G>>>32-7|G<<7,P=P+$|0,M^=P,M=M>>>32-8|M<<8,N=N+M|0,$^=N,$=$>>>32-7|$<<7;br.writeUint32LE(P+n|0,e,0),br.writeUint32LE(R+i|0,e,4),br.writeUint32LE(U+o|0,e,8),br.writeUint32LE(j+s|0,e,12),br.writeUint32LE(F+a|0,e,16),br.writeUint32LE($+u|0,e,20),br.writeUint32LE(G+l|0,e,24),br.writeUint32LE(X+p|0,e,28),br.writeUint32LE(W+h|0,e,32),br.writeUint32LE(J+y|0,e,36),br.writeUint32LE(N+v|0,e,40),br.writeUint32LE(m+w|0,e,44),br.writeUint32LE(E+_|0,e,48),br.writeUint32LE(O+D|0,e,52),br.writeUint32LE(A+C|0,e,56),br.writeUint32LE(M+I|0,e,60)}function BA(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){Jq(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];Qq(o,0,s)}return wb.wipe(a),i===0&&wb.wipe(o),n}w0.streamXOR=BA;function Zq(e,t,r,n){return n===void 0&&(n=0),wb.wipe(r),BA(e,t,r,r,n)}w0.stream=Zq;function Qq(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var x0=ee(Cl=>{"use strict";c();d();f();Object.defineProperty(Cl,"__esModule",{value:!0});function eW(e,t,r){return~(e-1)&t|e-1&r}Cl.select=eW;function tW(e,t){return(e|0)-(t|0)-1>>>31&1}Cl.lessOrEqual=tW;function zA(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Cl.compare=zA;function rW(e,t){return e.length===0||t.length===0?!1:zA(e,t)!==0}Cl.equal=rW});var KA=ee(Ni=>{"use strict";c();d();f();Object.defineProperty(Ni,"__esModule",{value:!0});var nW=x0(),b0=Sn();Ni.DIGEST_LENGTH=16;var HA=function(){function e(t){this.digestLength=Ni.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],v=this._h[8],w=this._h[9],_=this._r[0],D=this._r[1],C=this._r[2],I=this._r[3],P=this._r[4],R=this._r[5],U=this._r[6],j=this._r[7],F=this._r[8],$=this._r[9];n>=16;){var G=t[r+0]|t[r+1]<<8;o+=G&8191;var X=t[r+2]|t[r+3]<<8;s+=(G>>>13|X<<3)&8191;var W=t[r+4]|t[r+5]<<8;a+=(X>>>10|W<<6)&8191;var J=t[r+6]|t[r+7]<<8;u+=(W>>>7|J<<9)&8191;var N=t[r+8]|t[r+9]<<8;l+=(J>>>4|N<<12)&8191,p+=N>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(N>>>14|m<<2)&8191;var E=t[r+12]|t[r+13]<<8;y+=(m>>>11|E<<5)&8191;var O=t[r+14]|t[r+15]<<8;v+=(E>>>8|O<<8)&8191,w+=O>>>5|i;var A=0,M=A;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),A=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=y*(5*I),M+=v*(5*C),M+=w*(5*D),A+=M>>>13,M&=8191;var V=A;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),A=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=y*(5*P),V+=v*(5*I),V+=w*(5*C),A+=V>>>13,V&=8191;var B=A;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),A=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=y*(5*R),B+=v*(5*P),B+=w*(5*I),A+=B>>>13,B&=8191;var k=A;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),A=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=y*(5*U),k+=v*(5*R),k+=w*(5*P),A+=k>>>13,k&=8191;var b=A;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,A=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=y*(5*j),b+=v*(5*U),b+=w*(5*R),A+=b>>>13,b&=8191;var L=A;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,A=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=y*(5*F),L+=v*(5*j),L+=w*(5*U),A+=L>>>13,L&=8191;var Z=A;Z+=o*U,Z+=s*R,Z+=a*P,Z+=u*I,Z+=l*C,A=Z>>>13,Z&=8191,Z+=p*D,Z+=h*_,Z+=y*(5*$),Z+=v*(5*F),Z+=w*(5*j),A+=Z>>>13,Z&=8191;var T=A;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,A=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=y*_,T+=v*(5*$),T+=w*(5*F),A+=T>>>13,T&=8191;var z=A;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,A=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=y*D,z+=v*_,z+=w*(5*$),A+=z>>>13,z&=8191;var K=A;K+=o*$,K+=s*F,K+=a*j,K+=u*U,K+=l*R,A=K>>>13,K&=8191,K+=p*P,K+=h*I,K+=y*C,K+=v*D,K+=w*_,A+=K>>>13,K&=8191,A=(A<<2)+A|0,A=A+M|0,M=A&8191,A=A>>>13,V+=A,o=M,s=V,a=B,u=k,l=b,p=L,h=Z,y=T,v=z,w=K,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=v,this._h[9]=w},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return b0.wipe(this._buffer),b0.wipe(this._r),b0.wipe(this._h),b0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ni.Poly1305=HA;function iW(e,t){var r=new HA(e);r.update(t);var n=r.digest();return r.clean(),n}Ni.oneTimeAuth=iW;function oW(e,t){return e.length!==Ni.DIGEST_LENGTH||t.length!==Ni.DIGEST_LENGTH?!1:nW.equal(e,t)}Ni.equal=oW});var _0=ee(Mi=>{"use strict";c();d();f();Object.defineProperty(Mi,"__esModule",{value:!0});var E0=jA(),sW=KA(),zf=Sn(),qA=pl(),aW=x0();Mi.KEY_LENGTH=32;Mi.NONCE_LENGTH=12;Mi.TAG_LENGTH=16;var WA=new Uint8Array(16),uW=function(){function e(t){if(this.nonceLength=Mi.NONCE_LENGTH,this.tagLength=Mi.TAG_LENGTH,t.length!==Mi.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);E0.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return E0.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),zf.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);E0.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!aW.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return E0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),zf.wipe(o),l},e.prototype.clean=function(){return zf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new sW.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(WA.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(WA.subarray(n.length%16));var s=new Uint8Array(8);i&&qA.writeUint64LE(i.length,s),o.update(s),qA.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),zf.wipe(a),zf.wipe(s)},e}();Mi.ChaCha20Poly1305=uW});var GA=ee(xb=>{"use strict";c();d();f();Object.defineProperty(xb,"__esModule",{value:!0});function lW(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}xb.isSerializableHash=lW});var XA=ee(Hf=>{"use strict";c();d();f();Object.defineProperty(Hf,"__esModule",{value:!0});var oi=GA(),cW=x0(),fW=Sn(),YA=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),oi.isSerializableHash(this._inner)&&oi.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),fW.wipe(n)}return e.prototype.reset=function(){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){oi.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),oi.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Hf.HMAC=YA;function dW(e,t,r){var n=new YA(e,t);n.update(r);var i=n.digest();return n.clean(),i}Hf.hmac=dW;Hf.equal=cW.equal});var S0=ee(bb=>{"use strict";c();d();f();Object.defineProperty(bb,"__esModule",{value:!0});var JA=XA(),ZA=Sn(),hW=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=JA.hmac(this._hash,n,r);this._hmac=new JA.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),ZA.wipe(this._buffer),ZA.wipe(this._counter),this._bufpos=0},e}();bb.HKDF=hW});var P0=ee($o=>{"use strict";c();d();f();Object.defineProperty($o,"__esModule",{value:!0});var T0=pl(),C0=Sn();$o.DIGEST_LENGTH=32;$o.BLOCK_SIZE=64;var QA=function(){function e(){this.digestLength=$o.DIGEST_LENGTH,this.blockSize=$o.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){C0.wipe(this._buffer),C0.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Eb(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Eb(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;T0.writeUint32BE(i,this._buffer,s-8),T0.writeUint32BE(o,this._buffer,s-4),Eb(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)T0.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){C0.wipe(t.state),t.buffer&&C0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();$o.SHA256=QA;var pW=new Int32Array([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 Eb(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],v=0;v<16;v++){var w=n+v*4;e[v]=T0.readUint32BE(r,w)}for(var v=16;v<64;v++){var _=e[v-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[v-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[v]=(D+e[v-7]|0)+(C+e[v-16]|0)}for(var v=0;v<64;v++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(pW[v]+e[v]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;y=h,h=p,p=l,l=u+D|0,u=a,a=s,s=o,o=D+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,i-=64}return n}function mW(e){var t=new QA;t.update(e);var r=t.digest();return t.clean(),r}$o.hash=mW});var O0=ee(Nt=>{"use strict";c();d();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.sharedKey=Nt.generateKeyPair=Nt.generateKeyPairFromSeed=Nt.scalarMultBase=Nt.scalarMult=Nt.SHARED_KEY_LENGTH=Nt.SECRET_KEY_LENGTH=Nt.PUBLIC_KEY_LENGTH=void 0;var gW=Js(),yW=Sn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function si(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var eR=new Uint8Array(32);eR[0]=9;var vW=si([56129,1]);function _b(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function Kf(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function wW(e,t){let r=si(),n=si();for(let i=0;i<16;i++)n[i]=t[i];_b(n),_b(n),_b(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,Kf(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function xW(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function D0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function I0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function ki(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function qf(e,t){ki(e,t,t)}function bW(e,t){let r=si();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)qf(r,r),n!==2&&n!==4&&ki(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function Sb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=si(),o=si(),s=si(),a=si(),u=si(),l=si();for(let v=0;v<31;v++)r[v]=e[v];r[31]=e[31]&127|64,r[0]&=248,xW(n,t);for(let v=0;v<16;v++)o[v]=n[v];i[0]=a[0]=1;for(let v=254;v>=0;--v){let w=r[v>>>3]>>>(v&7)&1;Kf(i,o,w),Kf(s,a,w),D0(u,i,s),I0(i,i,s),D0(s,o,a),I0(o,o,a),qf(a,u),qf(l,i),ki(i,s,i),ki(s,o,u),D0(u,i,s),I0(i,i,s),qf(o,i),I0(s,a,l),ki(i,s,vW),D0(i,i,a),ki(s,s,i),ki(i,a,l),ki(a,o,n),qf(o,u),Kf(i,o,w),Kf(s,a,w)}for(let v=0;v<16;v++)n[v+16]=i[v],n[v+32]=s[v],n[v+48]=o[v],n[v+64]=a[v];let p=n.subarray(32),h=n.subarray(16);bW(p,p),ki(h,h,p);let y=new Uint8Array(32);return wW(y,h),y}Nt.scalarMult=Sb;function tR(e){return Sb(e,eR)}Nt.scalarMultBase=tR;function rR(e){if(e.length!==Nt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Nt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:tR(t),secretKey:t}}Nt.generateKeyPairFromSeed=rR;function EW(e){let t=(0,gW.randomBytes)(32,e),r=rR(t);return(0,yW.wipe)(t),r}Nt.generateKeyPair=EW;function _W(e,t,r=!1){if(e.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Sb(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Nt.sharedKey=_W});var na=ee(Ue=>{"use strict";c();d();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getLocalStorage=Ue.getLocalStorageOrThrow=Ue.getCrypto=Ue.getCryptoOrThrow=Ue.getLocation=Ue.getLocationOrThrow=Ue.getNavigator=Ue.getNavigatorOrThrow=Ue.getDocument=Ue.getDocumentOrThrow=Ue.getFromWindowOrThrow=Ue.getFromWindow=void 0;function ra(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=ra;function Pl(e){let t=ra(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=Pl;function FW(){return Pl("document")}Ue.getDocumentOrThrow=FW;function $W(){return ra("document")}Ue.getDocument=$W;function UW(){return Pl("navigator")}Ue.getNavigatorOrThrow=UW;function VW(){return ra("navigator")}Ue.getNavigator=VW;function BW(){return Pl("location")}Ue.getLocationOrThrow=BW;function jW(){return ra("location")}Ue.getLocation=jW;function zW(){return Pl("crypto")}Ue.getCryptoOrThrow=zW;function HW(){return ra("crypto")}Ue.getCrypto=HW;function KW(){return Pl("localStorage")}Ue.getLocalStorageOrThrow=KW;function qW(){return ra("localStorage")}Ue.getLocalStorage=qW});var fR=ee(R0=>{"use strict";c();d();f();Object.defineProperty(R0,"__esModule",{value:!0});R0.getWindowMetadata=void 0;var cR=na();function WW(){let e,t;try{e=cR.getDocumentOrThrow(),t=cR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}R0.getWindowMetadata=WW});var N0=ee((e1e,dR)=>{"use strict";c();d();f();dR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var M0=ee((t1e,gR)=>{"use strict";c();d();f();var mR="%[a-f0-9]{2}",hR=new RegExp("("+mR+")|([^%]+?)","gi"),pR=new RegExp("("+mR+")+","gi");function Tb(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Tb(r),Tb(n))}function GW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(hR)||[],r=1;r<t.length;r++)e=Tb(t,r).join(""),t=e.match(hR)||[];return e}}function YW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=pR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=GW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=pR.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}gR.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return YW(e)}}});var k0=ee((r1e,yR)=>{"use strict";c();d();f();yR.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var L0=ee((n1e,vR)=>{"use strict";c();d();f();vR.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var TR=ee(jr=>{"use strict";c();d();f();var XW=N0(),JW=M0(),xR=k0(),ZW=L0(),QW=e=>e==null,Pb=Symbol("encodeFragmentIdentifier");function eG(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[",i,"]"].join("")]:[...r,[Lt(t,e),"[",Lt(i,e),"]=",Lt(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[]"].join("")]:[...r,[Lt(t,e),"[]=",Lt(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),":list="].join("")]:[...r,[Lt(t,e),":list=",Lt(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Lt(r,e),t,Lt(i,e)].join("")]:[[n,Lt(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Lt(t,e)]:[...r,[Lt(t,e),"=",Lt(n,e)].join("")]}}function tG(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Li(n,e).includes(e.arrayFormatSeparator);n=s?Li(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Li(u,e)):n===null?n:Li(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Li(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Li(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function bR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?XW(e):encodeURIComponent(e):e}function Li(e,t){return t.decode?JW(e):e}function ER(e){return Array.isArray(e)?e.sort():typeof e=="object"?ER(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function _R(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function rG(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function SR(e){e=_R(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function wR(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function CR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),bR(t.arrayFormatSeparator);let r=tG(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=xR(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Li(s,t),r(Li(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=wR(o[s],t);else n[i]=wR(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=ER(s):i[o]=s,i},Object.create(null))}jr.extract=SR;jr.parse=CR;jr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),bR(t.arrayFormatSeparator);let r=s=>t.skipNull&&QW(e[s])||t.skipEmptyString&&e[s]==="",n=eG(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Lt(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Lt(s,t)+"[]":a.reduce(n(s),[]).join("&"):Lt(s,t)+"="+Lt(a,t)}).filter(s=>s.length>0).join("&")};jr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=xR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:CR(SR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Li(n,t)}:{})};jr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Pb]:!0},t);let r=_R(e.url).split("?")[0]||"",n=jr.extract(e.url),i=jr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=jr.stringify(o,t);s&&(s=`?${s}`);let a=rG(e.url);return e.fragmentIdentifier&&(a=`#${t[Pb]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};jr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Pb]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=jr.parseUrl(e,r);return jr.stringifyUrl({url:n,query:ZW(i,t),fragmentIdentifier:o},r)};jr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return jr.pick(e,n,r)}});var CN=ee((k1e,Z0)=>{c();d();f();var oN,sN,aN,uN,lN,cN,fN,dN,hN,J0,zb,pN,mN,Al,gN,yN,vN,wN,xN,bN,EN,_N,SN;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Z0=="object"&&typeof Z0.exports=="object"?e(r(t,r(Z0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};oN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},sN=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},aN=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},uN=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},lN=function(r,n){return function(i,o){n(i,o,r)}},cN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},fN=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},dN=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},SN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},hN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},J0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},zb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},pN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(zb(arguments[n]));return r},mN=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Al=function(r){return this instanceof Al?(this.v=r,this):new Al(r)},gN=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof Al?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},yN=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Al(r[s](u)),done:s==="return"}:a?a(u):u}:a}},vN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof J0=="function"?J0(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},wN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},xN=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},bN=function(r){return r&&r.__esModule?r:{default:r}},EN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},_N=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",oN),e("__assign",sN),e("__rest",aN),e("__decorate",uN),e("__param",lN),e("__metadata",cN),e("__awaiter",fN),e("__generator",dN),e("__exportStar",hN),e("__createBinding",SN),e("__values",J0),e("__read",zb),e("__spread",pN),e("__spreadArrays",mN),e("__await",Al),e("__asyncGenerator",gN),e("__asyncDelegator",yN),e("__asyncValues",vN),e("__makeTemplateObject",wN),e("__importStar",xN),e("__importDefault",bN),e("__classPrivateFieldGet",EN),e("__classPrivateFieldSet",_N)})});var PN=ee(Bo=>{"use strict";c();d();f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.isBrowserCryptoAvailable=Bo.getSubtleCrypto=Bo.getBrowerCrypto=void 0;function Hb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Bo.getBrowerCrypto=Hb;function TN(){let e=Hb();return e.subtle||e.webkitSubtle}Bo.getSubtleCrypto=TN;function OG(){return!!Hb()&&!!TN()}Bo.isBrowserCryptoAvailable=OG});var ON=ee(jo=>{"use strict";c();d();f();Object.defineProperty(jo,"__esModule",{value:!0});jo.isBrowser=jo.isNode=jo.isReactNative=void 0;function DN(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}jo.isReactNative=DN;function IN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}jo.isNode=IN;function AG(){return!DN()&&!IN()}jo.isBrowser=AG});var Kb=ee(Q0=>{"use strict";c();d();f();Object.defineProperty(Q0,"__esModule",{value:!0});var AN=CN();AN.__exportStar(PN(),Q0);AN.__exportStar(ON(),Q0)});var UN=ee((gve,$N)=>{"use strict";c();d();f();$N.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var SM=ee((td,Ll)=>{c();d();f();var zG=200,sE="__lodash_hash_undefined__",dg=1,tM=2,rM=9007199254740991,og="[object Arguments]",Qb="[object Array]",HG="[object AsyncFunction]",nM="[object Boolean]",iM="[object Date]",oM="[object Error]",sM="[object Function]",KG="[object GeneratorFunction]",sg="[object Map]",aM="[object Number]",qG="[object Null]",kl="[object Object]",HN="[object Promise]",WG="[object Proxy]",uM="[object RegExp]",ag="[object Set]",lM="[object String]",GG="[object Symbol]",YG="[object Undefined]",eE="[object WeakMap]",cM="[object ArrayBuffer]",ug="[object DataView]",XG="[object Float32Array]",JG="[object Float64Array]",ZG="[object Int8Array]",QG="[object Int16Array]",eY="[object Int32Array]",tY="[object Uint8Array]",rY="[object Uint8ClampedArray]",nY="[object Uint16Array]",iY="[object Uint32Array]",oY=/[\\^$.*+?()[\]{}|]/g,sY=/^\[object .+?Constructor\]$/,aY=/^(?:0|[1-9]\d*)$/,bt={};bt[XG]=bt[JG]=bt[ZG]=bt[QG]=bt[eY]=bt[tY]=bt[rY]=bt[nY]=bt[iY]=!0;bt[og]=bt[Qb]=bt[cM]=bt[nM]=bt[ug]=bt[iM]=bt[oM]=bt[sM]=bt[sg]=bt[aM]=bt[kl]=bt[uM]=bt[ag]=bt[lM]=bt[eE]=!1;var fM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,uY=typeof self=="object"&&self&&self.Object===Object&&self,Fi=fM||uY||Function("return this")(),dM=typeof td=="object"&&td&&!td.nodeType&&td,KN=dM&&typeof Ll=="object"&&Ll&&!Ll.nodeType&&Ll,hM=KN&&KN.exports===dM,Xb=hM&&fM.process,qN=function(){try{return Xb&&Xb.binding&&Xb.binding("util")}catch(e){}}(),WN=qN&&qN.isTypedArray;function lY(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function cY(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function fY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function dY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function hY(e){return function(t){return e(t)}}function pY(e,t){return e.has(t)}function mY(e,t){return e==null?void 0:e[t]}function gY(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function yY(e,t){return function(r){return e(t(r))}}function vY(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var wY=Array.prototype,xY=Function.prototype,hg=Object.prototype,Jb=Fi["__core-js_shared__"],pM=xY.toString,ai=hg.hasOwnProperty,GN=function(){var e=/[^.]+$/.exec(Jb&&Jb.keys&&Jb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mM=hg.toString,bY=RegExp("^"+pM.call(ai).replace(oY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),YN=hM?Fi.Buffer:void 0,lg=Fi.Symbol,XN=Fi.Uint8Array,gM=hg.propertyIsEnumerable,EY=wY.splice,ua=lg?lg.toStringTag:void 0,JN=Object.getOwnPropertySymbols,_Y=YN?YN.isBuffer:void 0,SY=yY(Object.keys,Object),tE=Fl(Fi,"DataView"),rd=Fl(Fi,"Map"),rE=Fl(Fi,"Promise"),nE=Fl(Fi,"Set"),iE=Fl(Fi,"WeakMap"),nd=Fl(Object,"create"),CY=fa(tE),TY=fa(rd),PY=fa(rE),DY=fa(nE),IY=fa(iE),ZN=lg?lg.prototype:void 0,Zb=ZN?ZN.valueOf:void 0;function la(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function OY(){this.__data__=nd?nd(null):{},this.size=0}function AY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function RY(e){var t=this.__data__;if(nd){var r=t[e];return r===sE?void 0:r}return ai.call(t,e)?t[e]:void 0}function NY(e){var t=this.__data__;return nd?t[e]!==void 0:ai.call(t,e)}function MY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nd&&t===void 0?sE:t,this}la.prototype.clear=OY;la.prototype.delete=AY;la.prototype.get=RY;la.prototype.has=NY;la.prototype.set=MY;function $i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function kY(){this.__data__=[],this.size=0}function LY(e){var t=this.__data__,r=pg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():EY.call(t,r,1),--this.size,!0}function FY(e){var t=this.__data__,r=pg(t,e);return r<0?void 0:t[r][1]}function $Y(e){return pg(this.__data__,e)>-1}function UY(e,t){var r=this.__data__,n=pg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}$i.prototype.clear=kY;$i.prototype.delete=LY;$i.prototype.get=FY;$i.prototype.has=$Y;$i.prototype.set=UY;function ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function VY(){this.size=0,this.__data__={hash:new la,map:new(rd||$i),string:new la}}function BY(e){var t=mg(this,e).delete(e);return this.size-=t?1:0,t}function jY(e){return mg(this,e).get(e)}function zY(e){return mg(this,e).has(e)}function HY(e,t){var r=mg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ca.prototype.clear=VY;ca.prototype.delete=BY;ca.prototype.get=jY;ca.prototype.has=zY;ca.prototype.set=HY;function cg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ca;++t<r;)this.add(e[t])}function KY(e){return this.__data__.set(e,sE),this}function qY(e){return this.__data__.has(e)}cg.prototype.add=cg.prototype.push=KY;cg.prototype.has=qY;function Ko(e){var t=this.__data__=new $i(e);this.size=t.size}function WY(){this.__data__=new $i,this.size=0}function GY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function YY(e){return this.__data__.get(e)}function XY(e){return this.__data__.has(e)}function JY(e,t){var r=this.__data__;if(r instanceof $i){var n=r.__data__;if(!rd||n.length<zG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ca(n)}return r.set(e,t),this.size=r.size,this}Ko.prototype.clear=WY;Ko.prototype.delete=GY;Ko.prototype.get=YY;Ko.prototype.has=XY;Ko.prototype.set=JY;function ZY(e,t){var r=fg(e),n=!r&&hX(e),i=!r&&!n&&oE(e),o=!r&&!n&&!i&&_M(e),s=r||n||i||o,a=s?dY(e.length,String):[],u=a.length;for(var l in e)(t||ai.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||uX(l,u)))&&a.push(l);return a}function pg(e,t){for(var r=e.length;r--;)if(wM(e[r][0],t))return r;return-1}function QY(e,t,r){var n=t(e);return fg(e)?n:cY(n,r(e))}function od(e){return e==null?e===void 0?YG:qG:ua&&ua in Object(e)?sX(e):dX(e)}function QN(e){return id(e)&&od(e)==og}function yM(e,t,r,n,i){return e===t?!0:e==null||t==null||!id(e)&&!id(t)?e!==e&&t!==t:eX(e,t,r,n,yM,i)}function eX(e,t,r,n,i,o){var s=fg(e),a=fg(t),u=s?Qb:Ho(e),l=a?Qb:Ho(t);u=u==og?kl:u,l=l==og?kl:l;var p=u==kl,h=l==kl,y=u==l;if(y&&oE(e)){if(!oE(t))return!1;s=!0,p=!1}if(y&&!p)return o||(o=new Ko),s||_M(e)?vM(e,t,r,n,i,o):iX(e,t,u,r,n,i,o);if(!(r&dg)){var v=p&&ai.call(e,"__wrapped__"),w=h&&ai.call(t,"__wrapped__");if(v||w){var _=v?e.value():e,D=w?t.value():t;return o||(o=new Ko),i(_,D,r,n,o)}}return y?(o||(o=new Ko),oX(e,t,r,n,i,o)):!1}function tX(e){if(!EM(e)||cX(e))return!1;var t=xM(e)?bY:sY;return t.test(fa(e))}function rX(e){return id(e)&&bM(e.length)&&!!bt[od(e)]}function nX(e){if(!fX(e))return SY(e);var t=[];for(var r in Object(e))ai.call(e,r)&&r!="constructor"&&t.push(r);return t}function vM(e,t,r,n,i,o){var s=r&dg,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,y=r&tM?new cg:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var v=e[p],w=t[p];if(n)var _=s?n(w,v,p,t,e,o):n(v,w,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(y){if(!fY(t,function(D,C){if(!pY(y,C)&&(v===D||i(v,D,r,n,o)))return y.push(C)})){h=!1;break}}else if(!(v===w||i(v,w,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function iX(e,t,r,n,i,o,s){switch(r){case ug:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cM:return!(e.byteLength!=t.byteLength||!o(new XN(e),new XN(t)));case nM:case iM:case aM:return wM(+e,+t);case oM:return e.name==t.name&&e.message==t.message;case uM:case lM:return e==t+"";case sg:var a=gY;case ag:var u=n&dg;if(a||(a=vY),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=tM,s.set(e,t);var p=vM(a(e),a(t),n,i,o,s);return s.delete(e),p;case GG:if(Zb)return Zb.call(e)==Zb.call(t)}return!1}function oX(e,t,r,n,i,o){var s=r&dg,a=eM(e),u=a.length,l=eM(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:ai.call(t,y)))return!1}var v=o.get(e);if(v&&o.get(t))return v==t;var w=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){y=a[h];var D=e[y],C=t[y];if(n)var I=s?n(C,D,y,t,e,o):n(D,C,y,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){w=!1;break}_||(_=y=="constructor")}if(w&&!_){var P=e.constructor,R=t.constructor;P!=R&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(w=!1)}return o.delete(e),o.delete(t),w}function eM(e){return QY(e,gX,aX)}function mg(e,t){var r=e.__data__;return lX(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Fl(e,t){var r=mY(e,t);return tX(r)?r:void 0}function sX(e){var t=ai.call(e,ua),r=e[ua];try{e[ua]=void 0;var n=!0}catch(o){}var i=mM.call(e);return n&&(t?e[ua]=r:delete e[ua]),i}var aX=JN?function(e){return e==null?[]:(e=Object(e),lY(JN(e),function(t){return gM.call(e,t)}))}:yX,Ho=od;(tE&&Ho(new tE(new ArrayBuffer(1)))!=ug||rd&&Ho(new rd)!=sg||rE&&Ho(rE.resolve())!=HN||nE&&Ho(new nE)!=ag||iE&&Ho(new iE)!=eE)&&(Ho=function(e){var t=od(e),r=t==kl?e.constructor:void 0,n=r?fa(r):"";if(n)switch(n){case CY:return ug;case TY:return sg;case PY:return HN;case DY:return ag;case IY:return eE}return t});function uX(e,t){return t=t==null?rM:t,!!t&&(typeof e=="number"||aY.test(e))&&e>-1&&e%1==0&&e<t}function lX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cX(e){return!!GN&&GN in e}function fX(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hg;return e===r}function dX(e){return mM.call(e)}function fa(e){if(e!=null){try{return pM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function wM(e,t){return e===t||e!==e&&t!==t}var hX=QN(function(){return arguments}())?QN:function(e){return id(e)&&ai.call(e,"callee")&&!gM.call(e,"callee")},fg=Array.isArray;function pX(e){return e!=null&&bM(e.length)&&!xM(e)}var oE=_Y||vX;function mX(e,t){return yM(e,t)}function xM(e){if(!EM(e))return!1;var t=od(e);return t==sM||t==KG||t==HG||t==WG}function bM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rM}function EM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function id(e){return e!=null&&typeof e=="object"}var _M=WN?hY(WN):rX;function gX(e){return pX(e)?ZY(e):nX(e)}function yX(){return[]}function vX(){return!1}Ll.exports=mX});var o7=ee(bg=>{"use strict";c();d();f();Object.defineProperty(bg,"__esModule",{value:!0});bg.getWindowMetadata=void 0;var i7=na();function SZ(){let e,t;try{e=i7.getDocumentOrThrow(),t=i7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}bg.getWindowMetadata=SZ});var h7=ee(Hr=>{"use strict";c();d();f();var CZ=N0(),TZ=M0(),a7=k0(),PZ=L0(),DZ=e=>e==null,OE=Symbol("encodeFragmentIdentifier");function IZ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[",i,"]"].join("")]:[...r,[$t(t,e),"[",$t(i,e),"]=",$t(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[]"].join("")]:[...r,[$t(t,e),"[]=",$t(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),":list="].join("")]:[...r,[$t(t,e),":list=",$t(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[$t(r,e),t,$t(i,e)].join("")]:[[n,$t(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,$t(t,e)]:[...r,[$t(t,e),"=",$t(n,e)].join("")]}}function OZ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Vi(n,e).includes(e.arrayFormatSeparator);n=s?Vi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Vi(u,e)):n===null?n:Vi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Vi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Vi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function u7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $t(e,t){return t.encode?t.strict?CZ(e):encodeURIComponent(e):e}function Vi(e,t){return t.decode?TZ(e):e}function l7(e){return Array.isArray(e)?e.sort():typeof e=="object"?l7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function c7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function AZ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function f7(e){e=c7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function s7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function d7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),u7(t.arrayFormatSeparator);let r=OZ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=a7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Vi(s,t),r(Vi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=s7(o[s],t);else n[i]=s7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=l7(s):i[o]=s,i},Object.create(null))}Hr.extract=f7;Hr.parse=d7;Hr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),u7(t.arrayFormatSeparator);let r=s=>t.skipNull&&DZ(e[s])||t.skipEmptyString&&e[s]==="",n=IZ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?$t(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?$t(s,t)+"[]":a.reduce(n(s),[]).join("&"):$t(s,t)+"="+$t(a,t)}).filter(s=>s.length>0).join("&")};Hr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=a7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:d7(f7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Vi(n,t)}:{})};Hr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[OE]:!0},t);let r=c7(e.url).split("?")[0]||"",n=Hr.extract(e.url),i=Hr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Hr.stringify(o,t);s&&(s=`?${s}`);let a=AZ(e.url);return e.fragmentIdentifier&&(a=`#${t[OE]?$t(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Hr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[OE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Hr.parseUrl(e,r);return Hr.stringifyUrl({url:n,query:PZ(i,t),fragmentIdentifier:o},r)};Hr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Hr.pick(e,n,r)}});var z7=ee(Tg=>{"use strict";c();d();f();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.getWindowMetadata=void 0;var j7=na();function tQ(){let e,t;try{e=j7.getDocumentOrThrow(),t=j7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Tg.getWindowMetadata=tQ});var J7=ee(qr=>{"use strict";c();d();f();var rQ=N0(),nQ=M0(),K7=k0(),iQ=L0(),oQ=e=>e==null,KE=Symbol("encodeFragmentIdentifier");function sQ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[",i,"]"].join("")]:[...r,[Ut(t,e),"[",Ut(i,e),"]=",Ut(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[]"].join("")]:[...r,[Ut(t,e),"[]=",Ut(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),":list="].join("")]:[...r,[Ut(t,e),":list=",Ut(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Ut(r,e),t,Ut(i,e)].join("")]:[[n,Ut(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Ut(t,e)]:[...r,[Ut(t,e),"=",Ut(n,e)].join("")]}}function aQ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Bi(n,e).includes(e.arrayFormatSeparator);n=s?Bi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Bi(u,e)):n===null?n:Bi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Bi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Bi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function q7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ut(e,t){return t.encode?t.strict?rQ(e):encodeURIComponent(e):e}function Bi(e,t){return t.decode?nQ(e):e}function W7(e){return Array.isArray(e)?e.sort():typeof e=="object"?W7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function G7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function uQ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Y7(e){e=G7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function H7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function X7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),q7(t.arrayFormatSeparator);let r=aQ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=K7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Bi(s,t),r(Bi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=H7(o[s],t);else n[i]=H7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=W7(s):i[o]=s,i},Object.create(null))}qr.extract=Y7;qr.parse=X7;qr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),q7(t.arrayFormatSeparator);let r=s=>t.skipNull&&oQ(e[s])||t.skipEmptyString&&e[s]==="",n=sQ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Ut(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Ut(s,t)+"[]":a.reduce(n(s),[]).join("&"):Ut(s,t)+"="+Ut(a,t)}).filter(s=>s.length>0).join("&")};qr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=K7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:X7(Y7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Bi(n,t)}:{})};qr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[KE]:!0},t);let r=G7(e.url).split("?")[0]||"",n=qr.extract(e.url),i=qr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=qr.stringify(o,t);s&&(s=`?${s}`);let a=uQ(e.url);return e.fragmentIdentifier&&(a=`#${t[KE]?Ut(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};qr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[KE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=qr.parseUrl(e,r);return qr.stringifyUrl({url:n,query:iQ(i,t),fragmentIdentifier:o},r)};qr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return qr.pick(e,n,r)}});var rk=ee((Wve,Pg)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Pg=="object"&&Pg.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],v=[6,1536,393216,100663296],w=[0,8,16,24],_=[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],D=[224,256,384,512],C=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],P={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var R=function(T,z,K){return function(q){return new b(T,z,T).update(q)[K]()}},U=function(T,z,K){return function(q,Q){return new b(T,z,Q).update(q)[K]()}},j=function(T,z,K){return function(q,Q,ie,re){return m["cshake"+T].update(q,Q,ie,re)[K]()}},F=function(T,z,K){return function(q,Q,ie,re){return m["kmac"+T].update(q,Q,ie,re)[K]()}},$=function(T,z,K,q){for(var Q=0;Q<I.length;++Q){var ie=I[Q];T[ie]=z(K,q,ie)}return T},G=function(T,z){var K=R(T,z,"hex");return K.create=function(){return new b(T,z,T)},K.update=function(q){return K.create().update(q)},$(K,R,T,z)},X=function(T,z){var K=U(T,z,"hex");return K.create=function(q){return new b(T,z,q)},K.update=function(q,Q){return K.create(Q).update(q)},$(K,U,T,z)},W=function(T,z){var K=P[T],q=j(T,z,"hex");return q.create=function(Q,ie,re){return!ie&&!re?m["shake"+T].create(Q):new b(T,z,Q).bytepad([ie,re],K)},q.update=function(Q,ie,re,te){return q.create(ie,re,te).update(Q)},$(q,j,T,z)},J=function(T,z){var K=P[T],q=F(T,z,"hex");return q.create=function(Q,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],K).bytepad([Q],K)},q.update=function(Q,ie,re,te){return q.create(Q,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:y,bits:D,createMethod:G},{name:"sha3",padding:v,bits:D,createMethod:G},{name:"shake",padding:p,bits:C,createMethod:X},{name:"cshake",padding:h,bits:C,createMethod:W},{name:"kmac",padding:h,bits:C,createMethod:J}],m={},E=[],O=0;O<N.length;++O)for(var A=N[O],M=A.bits,V=0;V<M.length;++V){var B=A.name+"_"+M[V];if(E.push(B),m[B]=A.createMethod(M[V],A.padding),A.name!=="sha3"){var k=A.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,K){this.blocks=[],this.s=[],this.padding=z,this.outputBits=K,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}for(var q=this.blocks,Q=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,ae;te<ie;){if(this.reset)for(this.reset=!1,q[0]=this.block,ne=1;ne<re+1;++ne)q[ne]=0;if(z)for(ne=this.start;te<ie&&ne<Q;++te)q[ne>>2]|=T[te]<<w[ne++&3];else for(ne=this.start;te<ie&&ne<Q;++te)ae=T.charCodeAt(te),ae<128?q[ne>>2]|=ae<<w[ne++&3]:ae<2048?(q[ne>>2]|=(192|ae>>6)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):ae<55296||ae>=57344?(q[ne>>2]|=(224|ae>>12)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):(ae=65536+((ae&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|ae>>18)<<w[ne++&3],q[ne>>2]|=(128|ae>>12&63)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]);if(this.lastByteIndex=ne,ne>=Q){for(this.start=ne-Q,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Z(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var K=T&255,q=1,Q=[K];for(T=T>>8,K=T&255;K>0;)Q.unshift(K),T=T>>8,K=T&255,++q;return z?Q.push(q):Q.unshift(q),this.update(Q),Q.length},b.prototype.encodeString=function(T){var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}var q=0,Q=T.length;if(z)q=Q;else for(var ie=0;ie<T.length;++ie){var re=T.charCodeAt(ie);re<128?q+=1:re<2048?q+=2:re<55296||re>=57344?q+=3:(re=65536+((re&1023)<<10|T.charCodeAt(++ie)&1023),q+=4)}return q+=this.encode(q*8),this.update(T),q},b.prototype.bytepad=function(T,z){for(var K=this.encode(z),q=0;q<T.length;++q)K+=this.encodeString(T[q]);var Q=z-K%z,ie=[];return ie.length=Q,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,K=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[K],z=1;z<K+1;++z)T[z]=0;for(T[K-1]|=2147483648,z=0;z<K;++z)q[z]^=T[z];Z(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re="",te;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=z[Q],re+=l[te>>4&15]+l[te&15]+l[te>>12&15]+l[te>>8&15]+l[te>>20&15]+l[te>>16&15]+l[te>>28&15]+l[te>>24&15];ie%T===0&&(Z(z),Q=0)}return q&&(te=z[Q],re+=l[te>>4&15]+l[te&15],q>1&&(re+=l[te>>12&15]+l[te>>8&15]),q>2&&(re+=l[te>>20&15]+l[te>>16&15])),re},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(K+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)he[ie]=z[Q];ie%T===0&&Z(z)}return q&&(he[Q]=z[Q],te=te.slice(0,re)),te},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=[],te,he;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=ie<<2,he=z[Q],re[te]=he&255,re[te+1]=he>>8&255,re[te+2]=he>>16&255,re[te+3]=he>>24&255;ie%T===0&&Z(z)}return q&&(te=ie<<2,he=z[Q],re[te]=he&255,q>1&&(re[te+1]=he>>8&255),q>2&&(re[te+2]=he>>16&255)),re};function L(T,z,K){b.call(this,T,z,K)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Z=function(T){var z,K,q,Q,ie,re,te,he,ne,ae,Xo,Be,je,Jo,ze,He,Zo,Ke,qe,Qo,We,Ge,es,Ye,Xe,ts,Je,Ze,rs,Qe,et,ns,tt,rt,is,nt,it,os,ot,st,ss,at,ut,as,lt,ct,us,ft,dt,ls,ht,pt,cs,mt,gt,fs,yt,vt,Hi,Ki,qi,Wi,Gi;for(q=0;q<48;q+=2)Q=T[0]^T[10]^T[20]^T[30]^T[40],ie=T[1]^T[11]^T[21]^T[31]^T[41],re=T[2]^T[12]^T[22]^T[32]^T[42],te=T[3]^T[13]^T[23]^T[33]^T[43],he=T[4]^T[14]^T[24]^T[34]^T[44],ne=T[5]^T[15]^T[25]^T[35]^T[45],ae=T[6]^T[16]^T[26]^T[36]^T[46],Xo=T[7]^T[17]^T[27]^T[37]^T[47],Be=T[8]^T[18]^T[28]^T[38]^T[48],je=T[9]^T[19]^T[29]^T[39]^T[49],z=Be^(re<<1|te>>>31),K=je^(te<<1|re>>>31),T[0]^=z,T[1]^=K,T[10]^=z,T[11]^=K,T[20]^=z,T[21]^=K,T[30]^=z,T[31]^=K,T[40]^=z,T[41]^=K,z=Q^(he<<1|ne>>>31),K=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=K,T[12]^=z,T[13]^=K,T[22]^=z,T[23]^=K,T[32]^=z,T[33]^=K,T[42]^=z,T[43]^=K,z=re^(ae<<1|Xo>>>31),K=te^(Xo<<1|ae>>>31),T[4]^=z,T[5]^=K,T[14]^=z,T[15]^=K,T[24]^=z,T[25]^=K,T[34]^=z,T[35]^=K,T[44]^=z,T[45]^=K,z=he^(Be<<1|je>>>31),K=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=K,T[16]^=z,T[17]^=K,T[26]^=z,T[27]^=K,T[36]^=z,T[37]^=K,T[46]^=z,T[47]^=K,z=ae^(Q<<1|ie>>>31),K=Xo^(ie<<1|Q>>>31),T[8]^=z,T[9]^=K,T[18]^=z,T[19]^=K,T[28]^=z,T[29]^=K,T[38]^=z,T[39]^=K,T[48]^=z,T[49]^=K,Jo=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,us=T[10]<<4|T[11]>>>28,Ze=T[20]<<3|T[21]>>>29,rs=T[21]<<3|T[20]>>>29,Ki=T[31]<<9|T[30]>>>23,qi=T[30]<<9|T[31]>>>23,at=T[40]<<18|T[41]>>>14,ut=T[41]<<18|T[40]>>>14,rt=T[2]<<1|T[3]>>>31,is=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,Zo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Qe=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Wi=T[42]<<2|T[43]>>>30,Gi=T[43]<<2|T[42]>>>30,mt=T[5]<<30|T[4]>>>2,gt=T[4]<<30|T[5]>>>2,nt=T[14]<<6|T[15]>>>26,it=T[15]<<6|T[14]>>>26,Ke=T[25]<<11|T[24]>>>21,qe=T[24]<<11|T[25]>>>21,ls=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,ns=T[45]<<29|T[44]>>>3,tt=T[44]<<29|T[45]>>>3,Ye=T[6]<<28|T[7]>>>4,Xe=T[7]<<28|T[6]>>>4,fs=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,os=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Qo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,cs=T[46]<<24|T[47]>>>8,as=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,ts=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Hi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,ss=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,es=T[49]<<14|T[48]>>>18,T[0]=Jo^~He&Ke,T[1]=ze^~Zo&qe,T[10]=Ye^~ts&Ze,T[11]=Xe^~Je&rs,T[20]=rt^~nt&os,T[21]=is^~it&ot,T[30]=as^~ct&ft,T[31]=lt^~us&dt,T[40]=mt^~fs&vt,T[41]=gt^~yt&Hi,T[2]=He^~Ke&Qo,T[3]=Zo^~qe&We,T[12]=ts^~Ze&Qe,T[13]=Je^~rs&et,T[22]=nt^~os&st,T[23]=it^~ot&ss,T[32]=ct^~ft&ls,T[33]=us^~dt&ht,T[42]=fs^~vt&Ki,T[43]=yt^~Hi&qi,T[4]=Ke^~Qo&Ge,T[5]=qe^~We&es,T[14]=Ze^~Qe&ns,T[15]=rs^~et&tt,T[24]=os^~st&at,T[25]=ot^~ss&ut,T[34]=ft^~ls&pt,T[35]=dt^~ht&cs,T[44]=vt^~Ki&Wi,T[45]=Hi^~qi&Gi,T[6]=Qo^~Ge&Jo,T[7]=We^~es&ze,T[16]=Qe^~ns&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=ss^~ut&is,T[36]=ls^~pt&as,T[37]=ht^~cs<,T[46]=Ki^~Wi&mt,T[47]=qi^~Gi>,T[8]=Ge^~Jo&He,T[9]=es^~ze&Zo,T[18]=ns^~Ye&ts,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~is&it,T[38]=pt^~as&ct,T[39]=cs^~lt&us,T[48]=Wi^~mt&fs,T[49]=Gi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)Pg.exports=m;else{for(O=0;O<E.length;++O)n[E[O]]=m[E[O]];a&&define(function(){return m})}})()});var nk=ee(()=>{c();d();f()});var ok=ee((ik,GE)=>{c();d();f();(function(e,t){"use strict";function r(N,m){if(!N)throw new Error(m||"Assertion failed")}function n(N,m){N.super_=m;var E=function(){};E.prototype=m.prototype,N.prototype=new E,N.prototype.constructor=N}function i(N,m,E){if(i.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(N||0,m||10,E||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=nk().Buffer}catch(N){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,E){return m.cmp(E)>0?m:E},i.min=function(m,E){return m.cmp(E)<0?m:E},i.prototype._init=function(m,E,O){if(typeof m=="number")return this._initNumber(m,E,O);if(typeof m=="object")return this._initArray(m,E,O);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A<m.length&&(E===16?this._parseHex(m,A,O):(this._parseBase(m,E,A),O==="le"&&this._initArray(this.toArray(),E,O)))},i.prototype._initNumber=function(m,E,O){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),O==="le"&&this._initArray(this.toArray(),E,O)},i.prototype._initArray=function(m,E,O){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M,V,B=0;if(O==="be")for(A=m.length-1,M=0;A>=0;A-=3)V=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);else if(O==="le")for(A=0,M=0;A<m.length;A+=3)V=m[A]|m[A+1]<<8|m[A+2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);return this._strip()};function s(N,m){var E=N.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+N)}function a(N,m,E){var O=s(N,E);return E-1>=m&&(O|=s(N,E-1)<<4),O}i.prototype._parseHex=function(m,E,O){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M=0,V=0,B;if(O==="be")for(A=m.length-1;A>=E;A-=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8;else{var k=m.length-E;for(A=k%2===0?E+1:E;A<m.length;A+=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8}this._strip()};function u(N,m,E,O){for(var A=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;A*=O,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<O,"Invalid character"),A+=M}return A}i.prototype._parseBase=function(m,E,O){this.words=[0],this.length=1;for(var A=0,M=1;M<=67108863;M*=E)A++;A--,M=M/E|0;for(var V=m.length-O,B=V%A,k=Math.min(V,V-B)+O,b=0,L=O;L<k;L+=A)b=u(m,L,L+A,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Z=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Z*=E;this.imuln(Z),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(N,m){N.words=m.words,N.length=m.length,N.negative=m.negative,N.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(N){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){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"],y=[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],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,E){m=m||10,E=E|0||1;var O;if(m===16||m==="hex"){O="";for(var A=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<A|M)&16777215).toString(16);M=B>>>24-A&16777215,A+=2,A>=26&&(A-=26,V--),M!==0||V!==this.length-1?O=h[6-k.length]+k+O:O=k+O}for(M!==0&&(O=M.toString(16)+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(m===(m|0)&&m>=2&&m<=36){var b=y[m],L=v[m];O="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var T=Z.modrn(L).toString(m);Z=Z.idivn(L),Z.isZero()?O=T+O:O=h[b-T.length]+T+O}for(this.isZero()&&(O="0"+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),i.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var w=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,O){this._strip();var A=this.byteLength(),M=O||Math.max(1,A);r(A<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=w(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,A),V},i.prototype._toArrayLikeLE=function(m,E){for(var O=0,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O++]=B&255,O<m.length&&(m[O++]=B>>8&255),O<m.length&&(m[O++]=B>>16&255),V===6?(O<m.length&&(m[O++]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O<m.length)for(m[O++]=A;O<m.length;)m[O++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var O=m.length-1,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O--]=B&255,O>=0&&(m[O--]=B>>8&255),O>=0&&(m[O--]=B>>16&255),V===6?(O>=0&&(m[O--]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O>=0)for(m[O--]=A;O>=0;)m[O--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,O=0;return E>=4096&&(O+=13,E>>>=13),E>=64&&(O+=7,E>>>=7),E>=8&&(O+=4,E>>>=4),E>=2&&(O+=2,E>>>=2),O+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,O=0;return(E&8191)===0&&(O+=13,E>>>=13),(E&127)===0&&(O+=7,E>>>=7),(E&15)===0&&(O+=4,E>>>=4),(E&3)===0&&(O+=2,E>>>=2),(E&1)===0&&O++,O},i.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function _(N){for(var m=new Array(N.bitLength()),E=0;E<m.length;E++){var O=E/26|0,A=E%26;m[E]=N.words[O]>>>A&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var O=this._zeroBits(this.words[E]);if(m+=O,O!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var O=0;O<E.length;O++)this.words[O]=this.words[O]&m.words[O];return this.length=E.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var E,O;this.length>m.length?(E=this,O=m):(E=m,O=this);for(var A=0;A<O.length;A++)this.words[A]=E.words[A]^O.words[A];if(this!==E)for(;A<E.length;A++)this.words[A]=E.words[A];return this.length=E.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,O=m%26;this._expand(E),O>0&&E--;for(var A=0;A<E;A++)this.words[A]=~this.words[A]&67108863;return O>0&&(this.words[A]=~this.words[A]&67108863>>26-O),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var O=m/26|0,A=m%26;return this._expand(O+1),E?this.words[O]=this.words[O]|1<<A:this.words[O]=this.words[O]&~(1<<A),this._strip()},i.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var O,A;this.length>m.length?(O=this,A=m):(O=m,A=this);for(var M=0,V=0;V<A.length;V++)E=(O.words[V]|0)+(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<O.length;V++)E=(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=O.length,M!==0)this.words[this.length]=M,this.length++;else if(O!==this)for(;V<O.length;V++)this.words[V]=O.words[V];return this},i.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var O=this.cmp(m);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,M;O>0?(A=this,M=m):(A=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(A.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<A.length;B++)E=(A.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<A.length&&A!==this)for(;B<A.length;B++)this.words[B]=A.words[B];return this.length=Math.max(this.length,B),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function D(N,m,E){E.negative=m.negative^N.negative;var O=N.length+m.length|0;E.length=O,O=O-1|0;var A=N.words[0]|0,M=m.words[0]|0,V=A*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<O;b++){for(var L=k>>>26,Z=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var K=b-z|0;A=N.words[K]|0,M=m.words[z]|0,V=A*M+Z,L+=V/67108864|0,Z=V&67108863}E.words[b]=Z|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,O){var A=m.words,M=E.words,V=O.words,B=0,k,b,L,Z=A[0]|0,T=Z&8191,z=Z>>>13,K=A[1]|0,q=K&8191,Q=K>>>13,ie=A[2]|0,re=ie&8191,te=ie>>>13,he=A[3]|0,ne=he&8191,ae=he>>>13,Xo=A[4]|0,Be=Xo&8191,je=Xo>>>13,Jo=A[5]|0,ze=Jo&8191,He=Jo>>>13,Zo=A[6]|0,Ke=Zo&8191,qe=Zo>>>13,Qo=A[7]|0,We=Qo&8191,Ge=Qo>>>13,es=A[8]|0,Ye=es&8191,Xe=es>>>13,ts=A[9]|0,Je=ts&8191,Ze=ts>>>13,rs=M[0]|0,Qe=rs&8191,et=rs>>>13,ns=M[1]|0,tt=ns&8191,rt=ns>>>13,is=M[2]|0,nt=is&8191,it=is>>>13,os=M[3]|0,ot=os&8191,st=os>>>13,ss=M[4]|0,at=ss&8191,ut=ss>>>13,as=M[5]|0,lt=as&8191,ct=as>>>13,us=M[6]|0,ft=us&8191,dt=us>>>13,ls=M[7]|0,ht=ls&8191,pt=ls>>>13,cs=M[8]|0,mt=cs&8191,gt=cs>>>13,fs=M[9]|0,yt=fs&8191,vt=fs>>>13;O.negative=m.negative^E.negative,O.length=19,k=Math.imul(T,Qe),b=Math.imul(T,et),b=b+Math.imul(z,Qe)|0,L=Math.imul(z,et);var Hi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,k=Math.imul(q,Qe),b=Math.imul(q,et),b=b+Math.imul(Q,Qe)|0,L=Math.imul(Q,et),k=k+Math.imul(T,tt)|0,b=b+Math.imul(T,rt)|0,b=b+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var Ki=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,k=Math.imul(re,Qe),b=Math.imul(re,et),b=b+Math.imul(te,Qe)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Q,tt)|0,L=L+Math.imul(Q,rt)|0,k=k+Math.imul(T,nt)|0,b=b+Math.imul(T,it)|0,b=b+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var qi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qi>>>26)|0,qi&=67108863,k=Math.imul(ne,Qe),b=Math.imul(ne,et),b=b+Math.imul(ae,Qe)|0,L=Math.imul(ae,et),k=k+Math.imul(re,tt)|0,b=b+Math.imul(re,rt)|0,b=b+Math.imul(te,tt)|0,L=L+Math.imul(te,rt)|0,k=k+Math.imul(q,nt)|0,b=b+Math.imul(q,it)|0,b=b+Math.imul(Q,nt)|0,L=L+Math.imul(Q,it)|0,k=k+Math.imul(T,ot)|0,b=b+Math.imul(T,st)|0,b=b+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Wi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,k=Math.imul(Be,Qe),b=Math.imul(Be,et),b=b+Math.imul(je,Qe)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(ae,tt)|0,L=L+Math.imul(ae,rt)|0,k=k+Math.imul(re,nt)|0,b=b+Math.imul(re,it)|0,b=b+Math.imul(te,nt)|0,L=L+Math.imul(te,it)|0,k=k+Math.imul(q,ot)|0,b=b+Math.imul(q,st)|0,b=b+Math.imul(Q,ot)|0,L=L+Math.imul(Q,st)|0,k=k+Math.imul(T,at)|0,b=b+Math.imul(T,ut)|0,b=b+Math.imul(z,at)|0,L=L+Math.imul(z,ut)|0;var Gi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,k=Math.imul(ze,Qe),b=Math.imul(ze,et),b=b+Math.imul(He,Qe)|0,L=Math.imul(He,et),k=k+Math.imul(Be,tt)|0,b=b+Math.imul(Be,rt)|0,b=b+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(ne,nt)|0,b=b+Math.imul(ne,it)|0,b=b+Math.imul(ae,nt)|0,L=L+Math.imul(ae,it)|0,k=k+Math.imul(re,ot)|0,b=b+Math.imul(re,st)|0,b=b+Math.imul(te,ot)|0,L=L+Math.imul(te,st)|0,k=k+Math.imul(q,at)|0,b=b+Math.imul(q,ut)|0,b=b+Math.imul(Q,at)|0,L=L+Math.imul(Q,ut)|0,k=k+Math.imul(T,lt)|0,b=b+Math.imul(T,ct)|0,b=b+Math.imul(z,lt)|0,L=L+Math.imul(z,ct)|0;var Fg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Fg>>>26)|0,Fg&=67108863,k=Math.imul(Ke,Qe),b=Math.imul(Ke,et),b=b+Math.imul(qe,Qe)|0,L=Math.imul(qe,et),k=k+Math.imul(ze,tt)|0,b=b+Math.imul(ze,rt)|0,b=b+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,b=b+Math.imul(Be,it)|0,b=b+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(ne,ot)|0,b=b+Math.imul(ne,st)|0,b=b+Math.imul(ae,ot)|0,L=L+Math.imul(ae,st)|0,k=k+Math.imul(re,at)|0,b=b+Math.imul(re,ut)|0,b=b+Math.imul(te,at)|0,L=L+Math.imul(te,ut)|0,k=k+Math.imul(q,lt)|0,b=b+Math.imul(q,ct)|0,b=b+Math.imul(Q,lt)|0,L=L+Math.imul(Q,ct)|0,k=k+Math.imul(T,ft)|0,b=b+Math.imul(T,dt)|0,b=b+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(We,Qe),b=Math.imul(We,et),b=b+Math.imul(Ge,Qe)|0,L=Math.imul(Ge,et),k=k+Math.imul(Ke,tt)|0,b=b+Math.imul(Ke,rt)|0,b=b+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,b=b+Math.imul(ze,it)|0,b=b+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,b=b+Math.imul(Be,st)|0,b=b+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(ne,at)|0,b=b+Math.imul(ne,ut)|0,b=b+Math.imul(ae,at)|0,L=L+Math.imul(ae,ut)|0,k=k+Math.imul(re,lt)|0,b=b+Math.imul(re,ct)|0,b=b+Math.imul(te,lt)|0,L=L+Math.imul(te,ct)|0,k=k+Math.imul(q,ft)|0,b=b+Math.imul(q,dt)|0,b=b+Math.imul(Q,ft)|0,L=L+Math.imul(Q,dt)|0,k=k+Math.imul(T,ht)|0,b=b+Math.imul(T,pt)|0,b=b+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(Ye,Qe),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Qe)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,b=b+Math.imul(We,rt)|0,b=b+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,b=b+Math.imul(Ke,it)|0,b=b+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,b=b+Math.imul(ze,st)|0,b=b+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,b=b+Math.imul(Be,ut)|0,b=b+Math.imul(je,at)|0,L=L+Math.imul(je,ut)|0,k=k+Math.imul(ne,lt)|0,b=b+Math.imul(ne,ct)|0,b=b+Math.imul(ae,lt)|0,L=L+Math.imul(ae,ct)|0,k=k+Math.imul(re,ft)|0,b=b+Math.imul(re,dt)|0,b=b+Math.imul(te,ft)|0,L=L+Math.imul(te,dt)|0,k=k+Math.imul(q,ht)|0,b=b+Math.imul(q,pt)|0,b=b+Math.imul(Q,ht)|0,L=L+Math.imul(Q,pt)|0,k=k+Math.imul(T,mt)|0,b=b+Math.imul(T,gt)|0,b=b+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Je,Qe),b=Math.imul(Je,et),b=b+Math.imul(Ze,Qe)|0,L=Math.imul(Ze,et),k=k+Math.imul(Ye,tt)|0,b=b+Math.imul(Ye,rt)|0,b=b+Math.imul(Xe,tt)|0,L=L+Math.imul(Xe,rt)|0,k=k+Math.imul(We,nt)|0,b=b+Math.imul(We,it)|0,b=b+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,b=b+Math.imul(Ke,st)|0,b=b+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,b=b+Math.imul(ze,ut)|0,b=b+Math.imul(He,at)|0,L=L+Math.imul(He,ut)|0,k=k+Math.imul(Be,lt)|0,b=b+Math.imul(Be,ct)|0,b=b+Math.imul(je,lt)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(ne,ft)|0,b=b+Math.imul(ne,dt)|0,b=b+Math.imul(ae,ft)|0,L=L+Math.imul(ae,dt)|0,k=k+Math.imul(re,ht)|0,b=b+Math.imul(re,pt)|0,b=b+Math.imul(te,ht)|0,L=L+Math.imul(te,pt)|0,k=k+Math.imul(q,mt)|0,b=b+Math.imul(q,gt)|0,b=b+Math.imul(Q,mt)|0,L=L+Math.imul(Q,gt)|0,k=k+Math.imul(T,yt)|0,b=b+Math.imul(T,vt)|0,b=b+Math.imul(z,yt)|0,L=L+Math.imul(z,vt)|0;var Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Ze,tt)|0,L=Math.imul(Ze,rt),k=k+Math.imul(Ye,nt)|0,b=b+Math.imul(Ye,it)|0,b=b+Math.imul(Xe,nt)|0,L=L+Math.imul(Xe,it)|0,k=k+Math.imul(We,ot)|0,b=b+Math.imul(We,st)|0,b=b+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,b=b+Math.imul(Ke,ut)|0,b=b+Math.imul(qe,at)|0,L=L+Math.imul(qe,ut)|0,k=k+Math.imul(ze,lt)|0,b=b+Math.imul(ze,ct)|0,b=b+Math.imul(He,lt)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,b=b+Math.imul(Be,dt)|0,b=b+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(ne,ht)|0,b=b+Math.imul(ne,pt)|0,b=b+Math.imul(ae,ht)|0,L=L+Math.imul(ae,pt)|0,k=k+Math.imul(re,mt)|0,b=b+Math.imul(re,gt)|0,b=b+Math.imul(te,mt)|0,L=L+Math.imul(te,gt)|0,k=k+Math.imul(q,yt)|0,b=b+Math.imul(q,vt)|0,b=b+Math.imul(Q,yt)|0,L=L+Math.imul(Q,vt)|0;var jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Ze,nt)|0,L=Math.imul(Ze,it),k=k+Math.imul(Ye,ot)|0,b=b+Math.imul(Ye,st)|0,b=b+Math.imul(Xe,ot)|0,L=L+Math.imul(Xe,st)|0,k=k+Math.imul(We,at)|0,b=b+Math.imul(We,ut)|0,b=b+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,ut)|0,k=k+Math.imul(Ke,lt)|0,b=b+Math.imul(Ke,ct)|0,b=b+Math.imul(qe,lt)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,b=b+Math.imul(ze,dt)|0,b=b+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,b=b+Math.imul(Be,pt)|0,b=b+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(ne,mt)|0,b=b+Math.imul(ne,gt)|0,b=b+Math.imul(ae,mt)|0,L=L+Math.imul(ae,gt)|0,k=k+Math.imul(re,yt)|0,b=b+Math.imul(re,vt)|0,b=b+Math.imul(te,yt)|0,L=L+Math.imul(te,vt)|0;var zg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Ze,ot)|0,L=Math.imul(Ze,st),k=k+Math.imul(Ye,at)|0,b=b+Math.imul(Ye,ut)|0,b=b+Math.imul(Xe,at)|0,L=L+Math.imul(Xe,ut)|0,k=k+Math.imul(We,lt)|0,b=b+Math.imul(We,ct)|0,b=b+Math.imul(Ge,lt)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,b=b+Math.imul(Ke,dt)|0,b=b+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,b=b+Math.imul(ze,pt)|0,b=b+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,b=b+Math.imul(Be,gt)|0,b=b+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0,k=k+Math.imul(ne,yt)|0,b=b+Math.imul(ne,vt)|0,b=b+Math.imul(ae,yt)|0,L=L+Math.imul(ae,vt)|0;var Hg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hg>>>26)|0,Hg&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Ze,at)|0,L=Math.imul(Ze,ut),k=k+Math.imul(Ye,lt)|0,b=b+Math.imul(Ye,ct)|0,b=b+Math.imul(Xe,lt)|0,L=L+Math.imul(Xe,ct)|0,k=k+Math.imul(We,ft)|0,b=b+Math.imul(We,dt)|0,b=b+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,b=b+Math.imul(Ke,pt)|0,b=b+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,b=b+Math.imul(ze,gt)|0,b=b+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0,k=k+Math.imul(Be,yt)|0,b=b+Math.imul(Be,vt)|0,b=b+Math.imul(je,yt)|0,L=L+Math.imul(je,vt)|0;var Kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Ze,lt)|0,L=Math.imul(Ze,ct),k=k+Math.imul(Ye,ft)|0,b=b+Math.imul(Ye,dt)|0,b=b+Math.imul(Xe,ft)|0,L=L+Math.imul(Xe,dt)|0,k=k+Math.imul(We,ht)|0,b=b+Math.imul(We,pt)|0,b=b+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,b=b+Math.imul(Ke,gt)|0,b=b+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0,k=k+Math.imul(ze,yt)|0,b=b+Math.imul(ze,vt)|0,b=b+Math.imul(He,yt)|0,L=L+Math.imul(He,vt)|0;var qg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qg>>>26)|0,qg&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Ze,ft)|0,L=Math.imul(Ze,dt),k=k+Math.imul(Ye,ht)|0,b=b+Math.imul(Ye,pt)|0,b=b+Math.imul(Xe,ht)|0,L=L+Math.imul(Xe,pt)|0,k=k+Math.imul(We,mt)|0,b=b+Math.imul(We,gt)|0,b=b+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0,k=k+Math.imul(Ke,yt)|0,b=b+Math.imul(Ke,vt)|0,b=b+Math.imul(qe,yt)|0,L=L+Math.imul(qe,vt)|0;var Wg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wg>>>26)|0,Wg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Ze,ht)|0,L=Math.imul(Ze,pt),k=k+Math.imul(Ye,mt)|0,b=b+Math.imul(Ye,gt)|0,b=b+Math.imul(Xe,mt)|0,L=L+Math.imul(Xe,gt)|0,k=k+Math.imul(We,yt)|0,b=b+Math.imul(We,vt)|0,b=b+Math.imul(Ge,yt)|0,L=L+Math.imul(Ge,vt)|0;var Gg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Ze,mt)|0,L=Math.imul(Ze,gt),k=k+Math.imul(Ye,yt)|0,b=b+Math.imul(Ye,vt)|0,b=b+Math.imul(Xe,yt)|0,L=L+Math.imul(Xe,vt)|0;var Yg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Yg>>>26)|0,Yg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Ze,yt)|0,L=Math.imul(Ze,vt);var Xg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(Xg>>>26)|0,Xg&=67108863,V[0]=Hi,V[1]=Ki,V[2]=qi,V[3]=Wi,V[4]=Gi,V[5]=Fg,V[6]=$g,V[7]=Ug,V[8]=Vg,V[9]=Bg,V[10]=jg,V[11]=zg,V[12]=Hg,V[13]=Kg,V[14]=qg,V[15]=Wg,V[16]=Gg,V[17]=Yg,V[18]=Xg,B!==0&&(V[19]=B,O.length++),O};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var O=0,A=0,M=0;M<E.length-1;M++){var V=A;A=0;for(var B=O&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Z=N.words[L]|0,T=m.words[b]|0,z=Z*T,K=z&67108863;V=V+(z/67108864|0)|0,K=K+B|0,B=K&67108863,V=V+(K>>>26)|0,A+=V>>>26,V&=67108863}E.words[M]=B,O=V,V=A}return O!==0?E.words[M]=O:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var O,A=this.length+m.length;return this.length===10&&m.length===10?O=C(this,m,E):A<63?O=D(this,m,E):A<1024?O=I(this,m,E):O=P(this,m,E),O};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),O=i.prototype._countBits(m)-1,A=0;A<m;A++)E[A]=this.revBin(A,O,m);return E},R.prototype.revBin=function(m,E,O){if(m===0||m===O-1)return m;for(var A=0,M=0;M<E;M++)A|=(m&1)<<E-M-1,m>>=1;return A},R.prototype.permute=function(m,E,O,A,M,V){for(var B=0;B<V;B++)A[B]=E[m[B]],M[B]=O[m[B]]},R.prototype.transform=function(m,E,O,A,M,V){this.permute(V,m,E,O,A,M);for(var B=1;B<M;B<<=1)for(var k=B<<1,b=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),Z=0;Z<M;Z+=k)for(var T=b,z=L,K=0;K<B;K++){var q=O[Z+K],Q=A[Z+K],ie=O[Z+K+B],re=A[Z+K+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,O[Z+K]=q+ie,A[Z+K]=Q+re,O[Z+K+B]=q-ie,A[Z+K+B]=Q-re,K!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var O=Math.max(E,m)|1,A=O&1,M=0;for(O=O/2|0;O;O=O>>>1)M++;return 1<<M+1+A},R.prototype.conjugate=function(m,E,O){if(!(O<=1))for(var A=0;A<O/2;A++){var M=m[A];m[A]=m[O-A-1],m[O-A-1]=M,M=E[A],E[A]=-E[O-A-1],E[O-A-1]=-M}},R.prototype.normalize13b=function(m,E){for(var O=0,A=0;A<E/2;A++){var M=Math.round(m[2*A+1]/E)*8192+Math.round(m[2*A]/E)+O;m[A]=M&67108863,M<67108864?O=0:O=M/67108864|0}return m},R.prototype.convert13b=function(m,E,O,A){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),O[2*V]=M&8191,M=M>>>13,O[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<A;++V)O[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),O=0;O<m;O++)E[O]=0;return E},R.prototype.mulp=function(m,E,O){var A=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(A),V=this.stub(A),B=new Array(A),k=new Array(A),b=new Array(A),L=new Array(A),Z=new Array(A),T=new Array(A),z=O.words;z.length=A,this.convert13b(m.words,m.length,B,A),this.convert13b(E.words,E.length,L,A),this.transform(B,V,k,b,A,M),this.transform(L,V,Z,T,A,M);for(var K=0;K<A;K++){var q=k[K]*Z[K]-b[K]*T[K];b[K]=k[K]*T[K]+b[K]*Z[K],k[K]=q}return this.conjugate(k,b,A),this.transform(k,b,z,V,A,M),this.conjugate(z,V,A),this.normalize13b(z,A),O.negative=m.negative^E.negative,O.length=m.length+E.length,O._strip()},i.prototype.mul=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},i.prototype.mulf=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),P(this,m,E)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var O=0,A=0;A<this.length;A++){var M=(this.words[A]|0)*m,V=(M&67108863)+(O&67108863);O>>=26,O+=M/67108864|0,O+=V>>>26,this.words[A]=V&67108863}return O!==0&&(this.words[A]=O,this.length++),E?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var E=_(m);if(E.length===0)return new i(1);for(var O=this,A=0;A<E.length&&E[A]===0;A++,O=O.sqr());if(++A<E.length)for(var M=O.sqr();A<E.length;A++,M=M.sqr())E[A]!==0&&(O=O.mul(M));return O},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&A,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(O!==0){for(M=this.length-1;M>=0;M--)this.words[M+O]=this.words[M];for(M=0;M<O;M++)this.words[M]=0;this.length+=O}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,O){r(typeof m=="number"&&m>=0);var A;E?A=(E-E%26)/26:A=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=O;if(A-=V,A=Math.max(0,A),k){for(var b=0;b<V;b++)k.words[b]=this.words[b];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var L=0;for(b=this.length-1;b>=0&&(L!==0||b>=A);b--){var Z=this.words[b]|0;this.words[b]=L<<26-M|Z>>>M,L=Z&B}return k&&L!==0&&(k.words[k.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,E,O){return r(this.negative===0),this.iushrn(m,E,O)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return!1;var M=this.words[O];return!!(M&A)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(E!==0&&O++,this.length=Math.min(O,this.length),E!==0){var A=67108863^67108863>>>E<<E;this.words[this.length-1]&=A}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,E,O){var A=m.length+O,M;this._expand(A);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+O]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+O]=V&67108863}for(;M<this.length-O;M++)V=(this.words[M+O]|0)+B,B=V>>26,this.words[M+O]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,M=0;M<this.length;M++)V=-(this.words[M]|0)+B,B=V>>26,this.words[M]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,E){var O=this.length-m.length,A=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);O=26-B,O!==0&&(M=M.ushln(O),A.iushln(O),V=M.words[M.length-1]|0);var k=A.length-M.length,b;if(E!=="mod"){b=new i(null),b.length=k+1,b.words=new Array(b.length);for(var L=0;L<b.length;L++)b.words[L]=0}var Z=A.clone()._ishlnsubmul(M,1,k);Z.negative===0&&(A=Z,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(A.words[M.length+T]|0)*67108864+(A.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),A._ishlnsubmul(M,z,T);A.negative!==0;)z--,A.negative=0,A._ishlnsubmul(M,1,T),A.isZero()||(A.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),A._strip(),E!=="div"&&O!==0&&A.iushrn(O),{div:b||null,mod:A}},i.prototype.divmod=function(m,E,O){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var A,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(A=V.div.neg()),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.iadd(m)),{div:A,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(A=V.div.neg()),{div:A,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.isub(m)),{div:V.div,mod:M}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,E)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var O=E.div.negative!==0?E.mod.isub(m):E.mod,A=m.ushrn(1),M=m.andln(1),V=O.cmp(A);return V<0||M===1&&V===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=(1<<26)%m,A=0,M=this.length-1;M>=0;M--)A=(O*A+(this.words[M]|0))%m;return E?-A:A},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=0,A=this.length-1;A>=0;A--){var M=(this.words[A]|0)+O*67108864;this.words[A]=M/m|0,O=M%m}return this._strip(),E?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&O.isEven();)E.iushrn(1),O.iushrn(1),++k;for(var b=O.clone(),L=E.clone();!E.isZero();){for(var Z=0,T=1;(E.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0)for(E.iushrn(Z);Z-- >0;)(A.isOdd()||M.isOdd())&&(A.iadd(b),M.isub(L)),A.iushrn(1),M.iushrn(1);for(var z=0,K=1;(O.words[0]&K)===0&&z<26;++z,K<<=1);if(z>0)for(O.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(V),M.isub(B)):(O.isub(E),V.isub(A),B.isub(M))}return{a:V,b:B,gcd:O.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=O.clone();E.cmpn(1)>0&&O.cmpn(1)>0;){for(var B=0,k=1;(E.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(E.iushrn(B);B-- >0;)A.isOdd()&&A.iadd(V),A.iushrn(1);for(var b=0,L=1;(O.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(O.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(M)):(O.isub(E),M.isub(A))}var Z;return E.cmpn(1)===0?Z=A:Z=M,Z.cmpn(0)<0&&Z.iadd(m),Z},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),O=m.clone();E.negative=0,O.negative=0;for(var A=0;E.isEven()&&O.isEven();A++)E.iushrn(1),O.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;O.isEven();)O.iushrn(1);var M=E.cmp(O);if(M<0){var V=E;E=O,O=V}else if(M===0||O.cmpn(1)===0)break;E.isub(O)}while(!0);return O.iushln(A)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return this._expand(O+1),this.words[O]|=A,this;for(var M=A,V=O;M!==0&&V<this.length;V++){var B=this.words[V]|0;B+=M,M=B>>>26,B&=67108863,this.words[V]=B}return M!==0&&(this.words[V]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var O;if(this.length>1)O=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var A=this.words[0]|0;O=A===m?0:A<m?-1:1}return this.negative!==0?-O|0:O},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,O=this.length-1;O>=0;O--){var A=this.words[O]|0,M=m.words[O]|0;if(A!==M){A<M?E=-1:A>M&&(E=1);break}}return E},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new W(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},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(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var U={k256:null,p224:null,p192:null,p25519:null};function j(N,m){this.name=N,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},j.prototype.ireduce=function(m){var E=m,O;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),O=E.bitLength();while(O>this.n);var A=O<this.n?-1:E.ucmp(this.p);return A===0?(E.words[0]=0,E.length=1):A>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},j.prototype.split=function(m,E){m.iushrn(this.n,0,E)},j.prototype.imulK=function(m){return m.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(m,E){for(var O=4194303,A=Math.min(m.length,9),M=0;M<A;M++)E.words[M]=m.words[M];if(E.length=A,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&O,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&O)<<4|V>>>22,V=B}V>>>=22,m.words[M-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},F.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,O=0;O<m.length;O++){var A=m.words[O]|0;E+=A*977,m.words[O]=E&67108863,E=A*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function $(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n($,j);function G(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(m){for(var E=0,O=0;O<m.length;O++){var A=(m.words[O]|0)*19+E,M=A&67108863;A>>>=26,m.words[O]=M,E=A}return E!==0&&(m.words[m.length++]=E),m},i._prime=function(m){if(U[m])return U[m];var E;if(m==="k256")E=new F;else if(m==="p224")E=new $;else if(m==="p192")E=new G;else if(m==="p25519")E=new X;else throw new Error("Unknown prime "+m);return U[m]=E,E};function W(N){if(typeof N=="string"){var m=i._prime(N);this.m=m.p,this.prime=m}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}W.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},W.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},W.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},W.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},W.prototype.add=function(m,E){this._verify2(m,E);var O=m.add(E);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var O=m.iadd(E);return O.cmp(this.m)>=0&&O.isub(this.m),O},W.prototype.sub=function(m,E){this._verify2(m,E);var O=m.sub(E);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var O=m.isub(E);return O.cmpn(0)<0&&O.iadd(this.m),O},W.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},W.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},W.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},W.prototype.isqr=function(m){return this.imul(m,m.clone())},W.prototype.sqr=function(m){return this.mul(m,m)},W.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var O=this.m.add(new i(1)).iushrn(2);return this.pow(m,O)}for(var A=this.m.subn(1),M=0;!A.isZero()&&A.andln(1)===0;)M++,A.iushrn(1);r(!A.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,k).cmp(B)!==0;)b.redIAdd(B);for(var L=this.pow(b,A),Z=this.pow(m,A.addn(1).iushrn(1)),T=this.pow(m,A),z=M;T.cmp(V)!==0;){for(var K=T,q=0;K.cmp(V)!==0;q++)K=K.redSqr();r(q<z);var Q=this.pow(L,new i(1).iushln(z-q-1));Z=Z.redMul(Q),L=Q.redSqr(),T=T.redMul(L),z=q}return Z},W.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},W.prototype.pow=function(m,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var O=4,A=new Array(1<<O);A[0]=new i(1).toRed(this),A[1]=m;for(var M=2;M<A.length;M++)A[M]=this.mul(A[M-1],m);var V=A[0],B=0,k=0,b=E.bitLength()%26;for(b===0&&(b=26),M=E.length-1;M>=0;M--){for(var L=E.words[M],Z=b-1;Z>=0;Z--){var T=L>>Z&1;if(V!==A[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==O&&(M!==0||Z!==0))&&(V=this.mul(V,A[B]),k=0,B=0)}b=26}return V},W.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},W.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},i.mont=function(m){return new J(m)};function J(N){W.call(this,N),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)}n(J,W),J.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},J.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var O=m.imul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new i(0)._forceRed(this);var O=m.mul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof GE>"u"||GE,ik)});var Lee={};fr(Lee,{init:()=>Ree,open:()=>Mee,reset:()=>kee,update:()=>Nee});c();d();f();c();d();f();c();d();f();c();d();f();var n_=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(S&&S.MODE)!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),r.clear()}};return t=e(n,i,a),a},i_=e=>e?n_(e):n_;var p_=Y(ue(),1),m_=Y(d_(),1),{useSyncExternalStoreWithSelector:YF}=m_.default;function XF(e,t=e.getState,r){let n=YF(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,p_.useDebugValue)(n),n}var h_=e=>{(S&&S.MODE)!=="production"&&typeof e!="function"&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');let t=typeof e=="function"?i_(e):e,r=(n,i)=>XF(t,n,i);return Object.assign(r,t),r},Rd=e=>e?h_(e):h_;c();d();f();c();d();f();c();d();f();var ly=function(e,t){return ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ly(e,t)};function JF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ly(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)};function hs(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function ps(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function ZF(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var ve;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(ve||(ve={}));function QF(e,t){if(!e)throw new Error(t)}function e9(e){return e==null?void 0:e.replace(/\/+$/,"")}function t9(e,t){return t===void 0&&(t={}),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return ps(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(v){return setTimeout(v,o)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function g_(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function E_(){return new Date().getTime()}function y_(){return new Date().toISOString()}function v_(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var Ql=String.fromCharCode,w_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Nd={};function r9(e,t){if(!Nd[e]){Nd[e]={};for(var r=0;r<e.length;r++)Nd[e][e.charAt(r)]=r}return Nd[e][t]}var rc={compressToBase64:function(e){if(e==null)return"";var t=rc._compress(e,6,function(r){return w_.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:rc._decompress(e.length,32,function(t){return r9(w_,e.charAt(t))})},compress:function(e){return rc._compress(e,16,function(t){return Ql(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,y=3,v=2,w=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++)}for(a=2,s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;for(;;)if(w=w<<1,_==t-1){o.push(r(w));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:rc._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,y,v,w,_,D;for(p=0;p<3;p+=1)n[p]=p;for(y=0,w=Math.pow(2,2),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=Ql(y);break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=Ql(y);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(y=0,w=Math.pow(2,u),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(D=y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=Ql(y),D=a-1,s--;break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=Ql(y),D=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[D])l=n[D];else if(D===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},n9=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),i9=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new n9,QF(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=e9((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&v_(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return Se({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(ve.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(ve.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(ve.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(ve.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(ve.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(ve.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=ZF([ve.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(ve);n<i.length;n++){var o=i[n];r.includes(ve[o])||this.setPersistedProperty(ve[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:Se(Se(Se(Se({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(ve.SessionId),r=this.getPersistedProperty(ve.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=g_(globalThis),this.setPersistedProperty(ve.SessionId,t)),this.setPersistedProperty(ve.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(ve.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(ve.AnonymousId);return t||(t=g_(globalThis),this.setPersistedProperty(ve.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(ve.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=Se(Se({},this.props),t),this.setPersistedProperty(ve.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(ve.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=Se(Se({},this.buildPayload({distinct_id:t,event:"$identify",properties:Se(Se({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(ve.AnonymousId,n),this.setPersistedProperty(ve.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:Se(Se({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:Se(Se({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:Se({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(ve.PersonProperties)||{};return this.setPersistedProperty(ve.PersonProperties,Se(Se({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(ve.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=Se(Se({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,Se(Se({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return ps(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(ve.PersonProperties)||{},s=this.getPersistedProperty(ve.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(ve.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(ve.FeatureFlags),r=this.getPersistedProperty(ve.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){return ps(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return hs(r,void 0,void 0,function(){var n;return ps(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return hs(n,void 0,void 0,function(){var i;return ps(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(ve.OverrideFeatureFlags,null):this.setPersistedProperty(ve.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=Se(Se({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:y_()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(ve.Queue)||[];o.push({message:i}),this.setPersistedProperty(ve.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=v_(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(ve.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(ve.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:y_()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(E_(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(rc.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return hs(this,void 0,void 0,function(){var s=this;return ps(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,t9(function(){return s.fetch(t,Se({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return hs(this,void 0,void 0,function(){return ps(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),__="2.0.0";function o9(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=Se(Se({},t),{$os:a9(e),$browser:S_(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:l9(e.document.referrer),$device:u9(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:s9(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=Se(Se({},t),{$lib:"js",$lib_version:__,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:E_()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function S_(e,t,r){return t=t||"",r||Mt(e," OPR/")?Mt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Mt(e,"IEMobile")||Mt(e,"WPDesktop")?"Internet Explorer Mobile":Mt(e,"SamsungBrowser/")?"Samsung Internet":Mt(e,"Edge")||Mt(e,"Edg/")?"Microsoft Edge":Mt(e,"FBIOS")?"Facebook Mobile":Mt(e,"Chrome")?"Chrome":Mt(e,"CriOS")?"Chrome iOS":Mt(e,"UCWEB")||Mt(e,"UCBrowser")?"UC Browser":Mt(e,"FxiOS")?"Firefox iOS":Mt(t,"Apple")?Mt(e,"Mobile")?"Mobile Safari":"Safari":Mt(e,"Android")?"Android Mobile":Mt(e,"Konqueror")?"Konqueror":Mt(e,"Firefox")?"Firefox":Mt(e,"MSIE")||Mt(e,"Trident/")?"Internet Explorer":Mt(e,"Gecko")?"Mozilla":""}function s9(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=S_(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function a9(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function u9(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function l9(e){var t=e.split("/");return t.length>=3?t[2]:""}var C_={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{C_.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},x_=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},b_=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},uy=void 0,ec=void 0,tc=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},c9=function(e,t){if(t){if(!localStorage){var r=x_(t.localStorage);uy=b_(r)?r:void 0}if(!ec){var n=x_(t.sessionStorage);ec=b_(n)?n:void 0}}switch(e){case"cookie":return C_||uy||ec||tc();case"localStorage":return uy||ec||tc();case"sessionStorage":return ec||tc();case"memory":return tc();default:return tc()}},T_=function(e){JF(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=c9((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return __},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return Se(Se({},e.prototype.getCommonEventProperties.call(this)),o9(window))},t}(i9);function f9(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function d9(e,t){try{return await fetch(e,t)}catch(r){throw f9(r)}}var In=null;typeof globalThis.window<"u"&&(In=new T_("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),In.fetch=d9);var P_={version:"0.4.0-alpha.2",package:"idkit-js"};var D_=e=>{e?In==null||In.capture("idkit loaded",P_):In==null||In.optOut()},I_=()=>{In==null||In.capture("idkit opened",P_)};var p9=Rd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,action_description:a,walletConnectProjectId:u,autoClose:l,copy:p,theme:h},y)=>{e(v=>({theme:h,signal:i,action:o,app_id:s,autoClose:l,action_description:a,walletConnectProjectId:u,copy:H(H({},v.copy),p)})),n&&t().addSuccessCallback(n,y),r&&t().addVerificationCallback(r,y)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:i}})})},onOpenChange:r=>{if(r)return I_(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result,i=t().successCallbacks;n&&requestAnimationFrame(()=>Object.values(i).forEach(o=>void(o==null?void 0:o(n))))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:"WORLD_ID"})}})),Yr=p9;c();d();f();var A_={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var ML=Y(Q6(),1);c();d();f();var RL=Y(ue(),1);c();d();f();c();d();f();var Bt=Y(ue()),l5=Y(Os()),bi=Y(a5()),vU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function c5(e,t){return e(t={exports:{}},t.exports),t.exports}var wU=c5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||y(C)||a(C))return C;var P,R=0,U=0;if(l(C))for(P=[],U=C.length;R<U;R++)P.push(r(D,C[R],I));else for(var j in P={},C)Object.prototype.hasOwnProperty.call(C,j)&&(P[D(j,I)]=r(D,C[j],I));return P},n=function(D){return v(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(C,I){return I?I.toUpperCase():""})).substr(0,1).toLowerCase()+D.substr(1)},i=function(D){var C=n(D);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(D,C){return function(I,P){var R=(P=P||{}).separator||"_",U=P.split||/(?=[A-Z])/;return I.split(U).join(R)}(D,C).toLowerCase()},s=Object.prototype.toString,a=function(D){return typeof D=="function"},u=function(D){return D===Object(D)},l=function(D){return s.call(D)=="[object Array]"},p=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},y=function(D){return s.call(D)=="[object Boolean]"},v=function(D){return(D-=0)==D},w=function(D,C){var I=C&&"process"in C?C.process:C;return typeof I!="function"?D:function(P,R){return I(P,D,R)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,C){return r(w(n,C),D)},decamelizeKeys:function(D,C){return r(w(o,C),D,C)},pascalizeKeys:function(D,C){return r(w(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(vU)}).decamelize,xU=c5(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),bU=function(e){if(Array.isArray(e))return e},EU=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},u5=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},_U=function(e,t){if(e){if(typeof e=="string")return u5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u5(e,t):void 0}},SU=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},CU=function(e,t){return bU(e)||EU(e,t)||_U(e,t)||SU()},TU=function(e,t){if(e==null)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},PU=function(e,t){if(e==null)return{};var r,n,i=TU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},DU=(0,Bt.createContext)(null);function Cv(e){var t=e.root,r=e.children;return(0,l5.createPortal)(r,t)}function IU(e){var t=(0,Bt.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=PU(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(o=(0,Bt.useRef)((i=n)&&i.current),(0,Bt.useEffect)(function(){i&&(i.current=o.current)},[i]),o),v=(0,Bt.useState)(null),w=CU(v,2),_=w[0],D=w[1],C="node_".concat(s).concat(a);return(0,Bt.useLayoutEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),l){var I=y.current.shadowRoot;return void D(I)}var P=y.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(P.adoptedStyleSheets=u),D(P)}catch(R){(function(U){var j=U.error,F=U.styleSheets,$=U.root;switch(j.name){case"NotSupportedError":F.length>0&&($.adoptedStyleSheets=F);break;default:throw j}})({error:R,styleSheets:u,root:_})}},[n,y,u]),Bt.default.createElement(Bt.default.Fragment,null,Bt.default.createElement(e.tag,xU({key:C,ref:y},h),(_||l)&&Bt.default.createElement(DU.Provider,{value:_},l?Bt.default.createElement("template",{shadowroot:"open"},e.render({root:_,ssr:l,children:p})):Bt.default.createElement(Cv,{root:_},e.render({root:_,ssr:l,children:p})))))});return t.propTypes={mode:bi.default.oneOf(["open","closed"]),delegatesFocus:bi.default.bool,styleSheets:bi.default.arrayOf(bi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:bi.default.bool,children:bi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Cv.propTypes={root:bi.default.object.isRequired,children:bi.default.node},Cv.defaultProps={children:null};var Sv=new Map;function OU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var o=wU(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Sv.has(s)||Sv.set(s,IU({tag:o,render:r})),Sv.get(s)}})}var AU=OU(),f5=AU;c();d();f();var RU=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
|
|
17
|
+
/*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\[2px\\]{margin-top:2px}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[300px\\]{height:300px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[72px\\]{width:72px}.w-full{width:100%}.w-max{width:-webkit-max-content;width:max-content}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.overflow-y-hidden{overflow-y:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:hidden{display:none}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}`,d5=()=>g.createElement("style",null,RU);c();d();f();var Qh=Y(ue(),1),NU=()=>{let[e,t]=(0,Qh.useState)("desktop");return(0,Qh.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=i=>t(i.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Qa=NU;c();d();f();var MU=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),ep=MU;c();d();f();c();d();f();c();d();f();c();d();f();var Tv=Y(ue(),1),Ns=Y(ue(),1);c();d();f();var h5=Y(ue(),1),eu=(0,h5.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var tp=Y(ue(),1),As=(0,tp.createContext)({});function p5(){return(0,tp.useContext)(As).visualElement}c();d();f();var tu=Y(ue(),1);c();d();f();var m5=Y(ue(),1),Zn=(0,m5.createContext)(null);c();d();f();var rp=Y(ue(),1);c();d();f();var yn=typeof document<"u";var yo=yn?rp.useLayoutEffect:rp.useEffect;c();d();f();var g5=Y(ue(),1),np=(0,g5.createContext)({strict:!1});function y5(e,t,r,n){let i=p5(),o=(0,tu.useContext)(np),s=(0,tu.useContext)(Zn),a=(0,tu.useContext)(eu).reducedMotion,u=(0,tu.useRef)();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return yo(()=>{l&&l.render()}),yo(()=>{l&&l.animationState&&l.animationState.animateChanges()}),yo(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var v5=Y(ue(),1);c();d();f();function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function w5(e,t,r){return(0,v5.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ei(r)&&(r.current=n))},[t])}c();d();f();var op=Y(ue(),1);c();d();f();c();d();f();function _i(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function vo(e){return typeof e=="object"&&typeof e.start=="function"}var kU=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Rs(e){return vo(e.animate)||kU.some(t=>_i(e[t]))}function ip(e){return Boolean(Rs(e)||e.variants)}function x5(e,t){if(Rs(e)){let{initial:r,animate:n}=e;return{initial:r===!1||_i(r)?r:void 0,animate:_i(n)?n:void 0}}return e.inherit!==!1?t:{}}function E5(e){let{initial:t,animate:r}=x5(e,(0,op.useContext)(As));return(0,op.useMemo)(()=>({initial:t,animate:r}),[b5(t),b5(r)])}function b5(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Si=e=>({isEnabled:t=>e.some(r=>!!t[r])}),wo={measureLayout:Si(["layout","layoutId","drag"]),animation:Si(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Si(["exit"]),drag:Si(["drag","dragControls"]),focus:Si(["whileFocus"]),hover:Si(["whileHover","onHoverStart","onHoverEnd"]),tap:Si(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Si(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Si(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function _5(e){for(let t in e)t==="projectionNodeConstructor"?wo.projectionNodeConstructor=e[t]:wo[t].Component=e[t]}c();d();f();c();d();f();var S5=Y(ue(),1);function xo(e){let t=(0,S5.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var LU=1;function C5(){return xo(()=>{if(bo.hasEverUpdated)return LU++})}c();d();f();var T5=Y(ue(),1),ru=(0,T5.createContext)({});c();d();f();var P5=Y(ue(),1),sp=class extends P5.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};c();d();f();var D5=Y(ue(),1),ap=(0,D5.createContext)({});c();d();f();var I5=Symbol.for("motionComponentSymbol");function O5({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&_5(e);function s(u,l){let p=se(H(H({},(0,Ns.useContext)(eu)),u),{layoutId:FU(u)}),{isStatic:h}=p,y=null,v=E5(u),w=h?void 0:C5(),_=i(u,h);if(!h&&yn){v.visualElement=y5(o,_,p,t);let D=(0,Ns.useContext)(np).strict,C=(0,Ns.useContext)(ap);v.visualElement&&(y=v.visualElement.loadFeatures(p,D,e,w,r||wo.projectionNodeConstructor,C))}return Tv.createElement(sp,{visualElement:v.visualElement,props:p},y,Tv.createElement(As.Provider,{value:v},n(o,u,w,w5(_,v.visualElement,l),_,h,v.visualElement)))}let a=(0,Ns.forwardRef)(s);return a[I5]=o,a}function FU({layoutId:e}){let t=(0,Ns.useContext)(ru).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function A5(e){function t(n,i={}){return O5(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}c();d();f();c();d();f();c();d();f();var R5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nu(e){return typeof e!="string"||e.includes("-")?!1:!!(R5.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var X5=Y(ue(),1);c();d();f();var U5=Y(ue(),1);c();d();f();c();d();f();var iu={};function N5(e){Object.assign(iu,e)}c();d();f();var ou=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(ou);function up(e,{layout:t,layoutId:r}){return Ur.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!iu[e]||e==="opacity")}c();d();f();var er=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var $U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UU=(e,t)=>ou.indexOf(e)-ou.indexOf(t);function M5({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(UU);for(let a of t)s+=`${$U[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,i?"":s):n&&i&&(s="none"),s}c();d();f();function lp(e){return e.startsWith("--")}c();d();f();var k5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var $n=(e,t,r)=>Math.min(Math.max(r,e),t);var vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo=se(H({},vn),{transform:e=>$n(0,1,e)}),Gc=se(H({},vn),{default:1});c();d();f();c();d();f();var _o=e=>Math.round(e*1e5)/1e5,So=/(-)?([\d]*\.?[\d])+/g,cp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,L5=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ci(e){return typeof e=="string"}var Yc=e=>({test:t=>Ci(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qn=Yc("deg"),Pr=Yc("%"),pe=Yc("px"),F5=Yc("vh"),$5=Yc("vw"),Pv=se(H({},Pr),{parse:e=>Pr.parse(e)/100,transform:e=>Pr.transform(e*100)});c();d();f();var Dv=se(H({},vn),{transform:Math.round});var fp={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,size:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:Gc,scaleX:Gc,scaleY:Gc,scaleZ:Gc,skew:Qn,skewX:Qn,skewY:Qn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Eo,originX:Pv,originY:Pv,originZ:pe,zIndex:Dv,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Dv};function su(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let y in t){let v=t[y];if(lp(y)){o[y]=v;continue}let w=fp[y],_=k5(v,w);if(Ur.has(y)){if(l=!0,s[y]=_,a.push(y),!h)continue;v!==(w.default||0)&&(h=!1)}else y.startsWith("origin")?(p=!0,u[y]=_):i[y]=_}if(t.transform||(l||n?i.transform=M5(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:y="50%",originY:v="50%",originZ:w=0}=u;i.transformOrigin=`${y} ${v} ${w}`}}c();d();f();var au=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Iv(e,t,r){for(let n in t)!er(t[n])&&!up(n,r)&&(e[n]=t[n])}function VU({transformTemplate:e},t,r){return(0,U5.useMemo)(()=>{let n=au();return su(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function BU(e,t,r){let n=e.style||{},i={};return Iv(i,n,e),Object.assign(i,VU(e,t,r)),e.transformValues?e.transformValues(i):i}function V5(e,t,r){let n={},i=BU(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=i,n}c();d();f();c();d();f();var jU=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],zU=["whileTap","onTap","onTapStart","onTapCancel"],HU=["onPan","onPanStart","onPanSessionStart","onPanEnd"],KU=["whileInView","onViewportEnter","onViewportLeave","viewport"],qU=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...KU,...zU,...jU,...HU]);function Xc(e){return qU.has(e)}var z5=e=>!Xc(e);function ZU(e){!e||(z5=t=>t.startsWith("on")?!Xc(t):e(t))}try{ZU(j5().default)}catch(e){}function H5(e,t,r){let n={};for(let i in e)(z5(i)||r===!0&&Xc(i)||!t&&!Xc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var G5=Y(ue(),1);c();d();f();c();d();f();function K5(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function q5(e,t,r){let n=K5(t,e.x,e.width),i=K5(r,e.y,e.height);return`${n} ${i}`}c();d();f();var QU={offset:"stroke-dashoffset",array:"stroke-dasharray"},eV={offset:"strokeDashoffset",array:"strokeDasharray"};function W5(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?QU:eV;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function uu(e,y,l,p,h){var v=y,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=v,u=de(v,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(su(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:w,style:_,dimensions:D}=e;w.transform&&(D&&(_.transform=w.transform),delete w.transform),D&&(n!==void 0||i!==void 0||_.transform)&&(_.transformOrigin=q5(D,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(w.x=t),r!==void 0&&(w.y=r),o!==void 0&&W5(w,o,s,a,!1)}c();d();f();var dp=()=>se(H({},au()),{attrs:{}});c();d();f();var lu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Y5(e,t,r,n){let i=(0,G5.useMemo)(()=>{let o=dp();return uu(o,t,{enableHardwareAcceleration:!1},lu(n),e.transformTemplate),se(H({},o.attrs),{style:H({},o.style)})},[t]);if(e.style){let o={};Iv(o,e.style,e),i.style=H(H({},o),i.style)}return i}function J5(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(nu(r)?Y5:V5)(n,s,a,r),p=H5(n,typeof r=="string",e),h=se(H(H({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,X5.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var cu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function hp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}c();d();f();var pp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mp(e,t,r,n){hp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(pp.has(i)?i:cu(i),t.attrs[i])}c();d();f();c();d();f();function fu(e){let{style:t}=e,r={};for(let n in t)(er(t[n])||up(n,e))&&(r[n]=t[n]);return r}function gp(e){let t=fu(e);for(let r in e)if(er(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var Rv=Y(ue(),1);c();d();f();function du(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}c();d();f();c();d();f();c();d();f();var Ms=e=>Array.isArray(e);var Z5=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),Q5=e=>Ms(e)?e[e.length-1]||0:e;function hu(e){let t=er(e)?e.get():e;return Z5(t)?t.toValue():t}function tV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:rV(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var yp=e=>(t,r)=>{let n=(0,Rv.useContext)(As),i=(0,Rv.useContext)(Zn),o=()=>tV(e,t,n,i);return r?o():xo(o)};function rV(e,t,r,n){let i={},o=n(e);for(let y in o)i[y]=hu(o[y]);let{initial:s,animate:a}=e,u=Rs(e),l=ip(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!vo(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{let w=du(e,v);if(!w)return;let I=w,{transitionEnd:_,transition:D}=I,C=de(I,["transitionEnd","transition"]);for(let P in C){let R=C[P];if(Array.isArray(R)){let U=p?R.length-1:0;R=R[U]}R!==null&&(i[P]=R)}for(let P in _)i[P]=_[P]}),i}var eC={useVisualState:yp({scrapeMotionValuesFromProps:gp,createRenderState:dp,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}uu(r,n,{enableHardwareAcceleration:!1},lu(t.tagName),e.transformTemplate),mp(t,r)}})};c();d();f();var tC={useVisualState:yp({scrapeMotionValuesFromProps:fu,createRenderState:au})};function rC(e,{forwardMotionProps:t=!1},r,n,i){let o=nu(e)?eC:tC;return se(H({},o),{preloadedFeatures:r,useRender:J5(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var Te;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Te||(Te={}));c();d();f();var nC=Y(ue(),1);function ks(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Jc(e,t,r,n){(0,nC.useEffect)(()=>{let i=e.current;if(r&&i)return ks(i,t,r,n)},[e,t,r,n])}function iC({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(Te.Focus,!0)},i=()=>{r&&r.setActive(Te.Focus,!1)};Jc(t,"focus",e?n:void 0),Jc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function vp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function wp(e){return!!e.touches}c();d();f();c();d();f();function nV(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var iV={pageX:0,pageY:0};function oV(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||iV;return{x:n[t+"X"],y:n[t+"Y"]}}function sV(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Zc(e,t="page"){return{point:wp(e)?oV(e,t):sV(e,t)}}var Nv=(e,t=!1)=>{let r=n=>e(n,Zc(n));return t?nV(r):r};c();d();f();var oC=()=>yn&&window.onpointerdown===null,sC=()=>yn&&window.ontouchstart===null,aC=()=>yn&&window.onmousedown===null;var aV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},uV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function uC(e){return oC()?e:sC()?uV[e]:aC()?aV[e]:e}function Ti(e,t,r,n){return ks(e,uC(t),Nv(r,t==="pointerdown"),n)}function Ls(e,t,r,n){return Jc(e,uC(t),r&&Nv(r,t==="pointerdown"),n)}c();d();f();function fC(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var lC=fC("dragHorizontal"),cC=fC("dragVertical");function Mv(e){let t=!1;if(e==="y")t=cC();else if(e==="x")t=lC();else{let r=lC(),n=cC();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function xp(){let e=Mv(!0);return e?(e(),!1):!0}function dC(e,t,r){return(n,i)=>{!vp(n)||xp()||(e.animationState&&e.animationState.setActive(Te.Hover,t),r&&r(n,i))}}function hC({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Ls(n,"pointerenter",e||r?dC(n,!0,e):void 0,{passive:!e}),Ls(n,"pointerleave",t||r?dC(n,!1,t):void 0,{passive:!t})}c();d();f();var Lv=Y(ue(),1);c();d();f();var kv=(e,t)=>t?e===t?!0:kv(e,t.parentElement):!1;c();d();f();var pC=Y(ue(),1);function pu(e){return(0,pC.useEffect)(()=>()=>e(),[])}c();d();f();var lV=(e,t)=>r=>t(e(r)),Co=(...e)=>e.reduce(lV);function mC({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,Lv.useRef)(!1),a=(0,Lv.useRef)(null),u={passive:!(t||e||r||v)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(Te.Tap,!1),!xp()}function h(w,_){!p()||(kv(i.current,w.target)?e&&e(w,_):r&&r(w,_))}function y(w,_){!p()||r&&r(w,_)}function v(w,_){l(),!s.current&&(s.current=!0,a.current=Co(Ti(window,"pointerup",h,u),Ti(window,"pointercancel",y,u)),i.animationState&&i.animationState.setActive(Te.Tap,!0),t&&t(w,_))}Ls(i,"pointerdown",o?v:void 0,u),pu(l)}c();d();f();c();d();f();var cV="production",mu=typeof process>"u"||process.env===void 0?cV:"production";var Qc=Y(ue(),1);c();d();f();var gC=new Set;function bp(e,t,r){e||gC.has(t)||(console.warn(t),r&&console.warn(r),gC.add(t))}c();d();f();var $v=new WeakMap,Fv=new WeakMap,fV=e=>{let t=$v.get(e.target);t&&t(e)},dV=e=>{e.forEach(fV)};function hV(r){var n=r,{root:e}=n,t=de(n,["root"]);let i=e||document;Fv.has(i)||Fv.set(i,{});let o=Fv.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(dV,H({root:e},t))),o[s]}function yC(e,t,r){let n=hV(t);return $v.set(e,r),n.observe(e),()=>{$v.delete(e),n.unobserve(e)}}function vC({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,Qc.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?gV:mV)(s,o.current,e,i)}var pV={some:0,all:1};function mV(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,Qc.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:pV[o]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(Te.InView,p);let h=r.getProps(),y=p?h.onViewportEnter:h.onViewportLeave;y&&y(l)};return yC(r.current,a,u)},[e,n,i,o])}function gV(e,t,r,{fallback:n=!0}){(0,Qc.useEffect)(()=>{!e||!n||(mu!=="production"&&bp(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(Te.InView,!0)}))},[e])}c();d();f();var Un=e=>t=>(e(t),null);var wC={inView:Un(vC),tap:Un(mC),focus:Un(iC),hover:Un(hC)};c();d();f();var df=Y(ue(),1);c();d();f();var gu=Y(ue(),1);function Ep(){let e=(0,gu.useContext)(Zn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,gu.useId)();return(0,gu.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function Uv(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}c();d();f();c();d();f();c();d();f();var xC=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var bC=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var rn={delta:0,timestamp:0};c();d();f();c();d();f();var Vv=16.666666666666668,yV=typeof performance<"u"?()=>performance.now():()=>Date.now(),Bv=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(yV()),Vv);c();d();f();function EC(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,y=h?t:r;return l&&s.add(u),y.indexOf(u)===-1&&(y.push(u),h&&i&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}i=!1,o&&(o=!1,a.process(u))}};return a}var vV=40,jv=!0,ef=!1,zv=!1,tf=["read","update","preRender","render","postRender"],_p=tf.reduce((e,t)=>(e[t]=EC(()=>ef=!0),e),{}),Ct=tf.reduce((e,t)=>{let r=_p[t];return e[t]=(n,i=!1,o=!1)=>(ef||xV(),r.schedule(n,i,o)),e},{}),nn=tf.reduce((e,t)=>(e[t]=_p[t].cancel,e),{}),Sp=tf.reduce((e,t)=>(e[t]=()=>_p[t].process(rn),e),{}),wV=e=>_p[e].process(rn),_C=e=>{ef=!1,rn.delta=jv?Vv:Math.max(Math.min(e-rn.timestamp,vV),1),rn.timestamp=e,zv=!0,tf.forEach(wV),zv=!1,ef&&(jv=!1,Bv(_C))},xV=()=>{ef=!0,jv=!0,zv||Bv(_C)};c();d();f();c();d();f();function yu(e,t){e.indexOf(t)===-1&&e.push(t)}function vu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var To=class{constructor(){this.subscriptions=[]}add(t){return yu(this.subscriptions,t),()=>vu(this.subscriptions,t)}notify(t,r,n){let i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){let s=this.subscriptions[o];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function wu(e,t){return t?e*(1e3/t):0}var bV=e=>!isNaN(parseFloat(e)),Hv=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;let{delta:o,timestamp:s}=rn;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=bV(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?wu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}};function ei(e,t){return new Hv(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var xu=(e,t)=>r=>Boolean(Ci(r)&&L5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Cp=(e,t,r)=>n=>{if(!Ci(n))return n;let[i,o,s,a]=n.match(So);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var EV=e=>$n(0,255,e),Kv=se(H({},vn),{transform:e=>Math.round(EV(e))}),ti={test:xu("rgb","red"),parse:Cp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Kv.transform(e)+", "+Kv.transform(t)+", "+Kv.transform(r)+", "+_o(Eo.transform(n))+")"};function _V(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var rf={test:xu("#"),parse:_V,transform:ti.transform};c();d();f();var Po={test:xu("hsl","hue"),parse:Cp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Pr.transform(_o(t))+", "+Pr.transform(_o(r))+", "+_o(Eo.transform(n))+")"};var jt={test:e=>ti.test(e)||rf.test(e)||Po.test(e),parse:e=>ti.test(e)?ti.parse(e):Po.test(e)?Po.parse(e):rf.parse(e),transform:e=>Ci(e)?e:e.hasOwnProperty("red")?ti.transform(e):Po.transform(e)};var SC="${c}",CC="${n}";function SV(e){var t,r;return isNaN(e)&&Ci(e)&&(((t=e.match(So))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(cp))===null||r===void 0?void 0:r.length)||0)>0}function nf(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(cp);i&&(r=i.length,e=e.replace(cp,SC),t.push(...i.map(jt.parse)));let o=e.match(So);return o&&(n=o.length,e=e.replace(So,CC),t.push(...o.map(vn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function TC(e){return nf(e).values}function PC(e){let{values:t,numColors:r,tokenised:n}=nf(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?SC:CC,a<r?jt.transform(o[a]):_o(o[a]));return s}}var CV=e=>typeof e=="number"?0:e;function TV(e){let t=TC(e);return PC(e)(t.map(CV))}var Dr={test:SV,parse:TC,createTransformer:PC,getAnimatableNone:TV};c();d();f();c();d();f();var PV=new Set(["brightness","contrast","saturate","opacity"]);function DV(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(So)||[];if(!n)return e;let i=r.replace(n,""),o=PV.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var IV=/([a-z-]*)\(.*?\)/g,of=se(H({},Dr),{getAnimatableNone:e=>{let t=e.match(IV);return t?t.map(DV).join(" "):e}});c();d();f();var OV=se(H({},fp),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:of,WebkitFilter:of}),bu=e=>OV[e];function Eu(e,t){var r;let n=bu(e);return n!==of&&(n=Dr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Tp=e=>t=>t.test(e);c();d();f();var DC={test:e=>e==="auto",parse:e=>e};var qv=[vn,pe,Pr,Qn,$5,F5,DC],_u=e=>qv.find(Tp(e));var AV=[...qv,jt,Dr],IC=e=>AV.find(Tp(e));c();d();f();function RV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function NV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Fs(e,t,r){let n=e.getProps();return du(n,t,r!==void 0?r:n.custom,RV(e),NV(e))}function MV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ei(r))}function OC(e,t){let r=Fs(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=de(s,["transitionEnd","transition"]);o=H(H({},o),n);for(let a in o){let u=Q5(o[a]);MV(e,a,u)}}function AC(e,t,r){var n,i;let o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(!!s)for(let a=0;a<s;a++){let u=o[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(xC(p)||bC(p))?p=parseFloat(p):!IC(p)&&Dr.test(l)&&(p=Eu(u,l)),e.addValue(u,ei(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function kV(e,t){return t?(t[e]||t.default||t).from:void 0}function RC(e,t,r){var n;let i={};for(let o in e){let s=kV(o,t);i[o]=s!==void 0?s:(n=r.getValue(o))===null||n===void 0?void 0:n.get()}return i}c();d();f();function $s(e){return Boolean(er(e)&&e.add)}c();d();f();c();d();f();var NC=(e,t)=>`${e}: ${t}`;function MC(e,t){let{MotionAppearAnimations:r}=window,n=NC(e,Ur.has(t)?"transform":t),i=r&&r.get(n);return i?(Ct.render(()=>{try{i.cancel(),r.delete(n)}catch(o){}}),i.currentTime||0):0}c();d();f();var LV="framerAppearId",kC="data-"+cu(LV);c();d();f();c();d();f();var Su=function(){},sr=function(){};c();d();f();var Cu=e=>e*1e3;c();d();f();var LC={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Tu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Pu=e=>t=>1-e(1-t);var Pp=e=>e*e,FC=Pu(Pp),sf=Tu(Pp);c();d();f();c();d();f();var Pe=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function Wv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function $C({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,u=2*r-a;i=Wv(u,a,e+1/3),o=Wv(u,a,e),s=Wv(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var Gv=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},FV=[rf,ti,Po],$V=e=>FV.find(t=>t.test(e));function UC(e){let t=$V(e);sr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=$C(r)),r}var Dp=(e,t)=>{let r=UC(e),n=UC(t),i=H({},r);return o=>(i.red=Gv(r.red,n.red,o),i.green=Gv(r.green,n.green,o),i.blue=Gv(r.blue,n.blue,o),i.alpha=Pe(r.alpha,n.alpha,o),ti.transform(i))};c();d();f();function VC(e,t){return typeof e=="number"?r=>Pe(e,t,r):jt.test(e)?Dp(e,t):Xv(e,t)}var Yv=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>VC(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},BC=(e,t)=>{let r=H(H({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=VC(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},Xv=(e,t)=>{let r=Dr.createTransformer(t),n=nf(e),i=nf(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Co(Yv(n.values,i.values),r):(Su(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};c();d();f();var Us=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var jC=(e,t)=>r=>Pe(e,t,r);function UV(e){return typeof e=="number"?jC:typeof e=="string"?jt.test(e)?Dp:Xv:Array.isArray(e)?Yv:typeof e=="object"?BC:jC}function VV(e,t,r){let n=[],i=r||UV(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=Co(u,a)}n.push(a)}return n}function Ip(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;sr(o===t.length,"Both input and output ranges must be the same length"),sr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=VV(t,n,i),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=Us(e[p],e[p+1],l);return s[p](h)};return r?l=>u($n(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Du=e=>e;var zC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,BV=1e-7,jV=12;function zV(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=zC(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>BV&&++a<jV);return s}function Op(e,t,r,n){if(e===t&&r===n)return Du;let i=o=>zV(o,0,1,e,r);return o=>o===0||o===1?o:zC(i(o),t,n)}c();d();f();var Jv=e=>1-Math.sin(Math.acos(e)),af=Pu(Jv),HC=Tu(af);c();d();f();var Zv=Op(.33,1.53,.69,.99),uf=Pu(Zv),KC=Tu(uf);c();d();f();var qC=e=>(e*=2)<1?.5*uf(e):.5*(2-Math.pow(2,-10*(e-1)));var WC={linear:Du,easeIn:Pp,easeInOut:sf,easeOut:FC,circIn:Jv,circInOut:HC,circOut:af,backIn:uf,backInOut:KC,backOut:Zv,anticipate:qC},Qv=e=>{if(Array.isArray(e)){sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Op(t,r,n,i)}else if(typeof e=="string")return sr(WC[e]!==void 0,`Invalid easing type '${e}'`),WC[e];return e},GC=e=>Array.isArray(e)&&typeof e[0]!="number";function HV(e,t){return e.map(()=>t||sf).splice(0,e.length-1)}function KV(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function qV(e,t){return e.map(r=>r*t)}function lf({keyframes:e,ease:t=sf,times:r,duration:n=300}){e=[...e];let i=lf[0],o=GC(t)?t.map(Qv):Qv(t),s={done:!1,value:i},a=qV(r&&r.length===lf.length?r:KV(e),n);function u(){return Ip(a,e,{ease:Array.isArray(o)?o:HV(e,o)})}let l=u();return{next:p=>(s.value=l(p),s.done=p>=n,s),flipTarget:()=>{e.reverse(),l=u()}}}c();d();f();c();d();f();var ew=.001,WV=.01,YC=10,GV=.05,YV=1;function XC({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Su(e<=YC*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=$n(GV,YV,s),e=$n(WV,YC,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,y=p-r,v=Ap(l,s),w=Math.exp(-h);return ew-y/v*w},o=l=>{let h=l*s*e,y=h*r+r,v=Math.pow(s,2)*Math.pow(l,2)*e,w=Math.exp(-h),_=Ap(Math.pow(l,2),s);return(-i(l)+ew>0?-1:1)*((y-v)*w)/_}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-ew+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=JV(i,o,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var XV=12;function JV(e,t,r){let n=r;for(let i=1;i<XV;i++)n=n-e(n)/t(n);return n}function Ap(e,t){return e*Math.sqrt(1-t*t)}var ZV=["duration","bounce"],QV=["stiffness","damping","mass"];function JC(e,t){return t.some(r=>e[r]!==void 0)}function eB(e){let t=H({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!JC(e,QV)&&JC(e,ZV)){let r=XC(e);t=se(H(H({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var tB=5;function tw(i){var o=i,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=o,n=de(o,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],u={done:!1,value:s},{stiffness:l,damping:p,mass:h,velocity:y,duration:v,isResolvedFromDuration:w}=eB(n),_=rB,D=y?-(y/1e3):0,C=p/(2*Math.sqrt(l*h));function I(){let P=a-s,R=Math.sqrt(l/h)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),C<1){let U=Ap(R,C);_=j=>{let F=Math.exp(-C*R*j);return a-F*((D+C*R*P)/U*Math.sin(U*j)+P*Math.cos(U*j))}}else if(C===1)_=U=>a-Math.exp(-R*U)*(P+(D+R*P)*U);else{let U=R*Math.sqrt(C*C-1);_=j=>{let F=Math.exp(-C*R*j),$=Math.min(U*j,300);return a-F*((D+C*R*P)*Math.sinh($)+U*P*Math.cosh($))/U}}}return I(),{next:P=>{let R=_(P);if(w)u.done=P>=v;else{let U=D;if(P!==0)if(C<1){let $=Math.max(0,P-tB);U=wu(R-_($),P-$)}else U=0;let j=Math.abs(U)<=t,F=Math.abs(a-R)<=r;u.done=j&&F}return u.value=u.done?a:R,u},flipTarget:()=>{D=-D,[s,a]=[a,s],I()}}}tw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var rB=e=>0;c();d();f();function ZC({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s=e[0],a={done:!1,value:s},u=r*t,l=s+u,p=o===void 0?l:o(l);return p!==l&&(u=p-s),{next:h=>{let y=-u*Math.exp(-h/n);return a.done=!(y>i||y<-i),a.value=a.done?p:p+y,a},flipTarget:()=>{}}}var nB={decay:ZC,keyframes:lf,tween:lf,spring:tw};function QC(e,t,r=0){return e-t-r}function iB(e,t=0,r=0,n=!0){return n?QC(t+-e,t,r):t-(e-t)+r}function oB(e,t,r,n){return n?e>=t+r:e<=-r}var sB=e=>{let t=({delta:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>nn.update(t)}};function Vs(_){var D=_,{duration:e,driver:t=sB,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:l,onComplete:p,onRepeat:h,onUpdate:y,type:v="keyframes"}=D,w=de(D,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var C,I;let P,R=0,U=e,j,F=!1,$=!0,G,X=nB[s.length>2?"keyframes":v],W=s[0],J=s[s.length-1];!((I=(C=X).needsInterpolation)===null||I===void 0)&&I.call(C,W,J)&&(G=Ip([0,100],[W,J],{clamp:!1}),s=[0,100]);let N=X(se(H({},w),{duration:e,keyframes:s}));function m(){R++,i==="reverse"?($=R%2===0,r=iB(r,U,o,$)):(r=QC(r,U,o),i==="mirror"&&N.flipTarget()),F=!1,h&&h()}function E(){P.stop(),p&&p()}function O(M){if($||(M=-M),r+=M,!F){let V=N.next(Math.max(0,r));j=V.value,G&&(j=G(j)),F=$?V.done:r<=0}y&&y(j),F&&(R===0&&(U=U!==void 0?U:r),R<n?oB(r,U,o,$)&&m():E())}function A(){u&&u(),P=t(O),P.start()}return a&&A(),{stop:()=>{l&&l(),P.stop()},sample:M=>N.next(Math.max(0,M))}}c();d();f();c();d();f();function e8(e){return!e||Array.isArray(e)||typeof e=="string"&&t8[e]}var cf=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cf([0,.65,.55,1]),circOut:cf([.55,0,1,.45]),backIn:cf([.31,.01,.66,-.59]),backOut:cf([.33,1.53,.69,.99])};function r8(e){if(!!e)return Array.isArray(e)?cf(e):t8[e]}function n8(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){return e.animate({[t]:r,offset:u},{delay:n,duration:i,easing:r8(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var Rp=10;function i8(e,t,o){var s=o,{onUpdate:r,onComplete:n}=s,i=de(s,["onUpdate","onComplete"]);let{keyframes:a,duration:u=.3,elapsed:l=0,ease:p}=i;if(i.type==="spring"||!e8(i.ease)){let y=Vs(i),v={done:!1,value:a[0]},w=[],_=0;for(;!v.done;)v=y.sample(_),w.push(v.value),_+=Rp;a=w,u=_-Rp,p="linear"}let h=n8(e.owner.current,t,a,se(H({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:y}=h;if(y){let v=Vs(i);e.setWithVelocity(v.sample(y-Rp).value,v.sample(y).value,Rp)}Ct.update(()=>h.cancel())}}c();d();f();c();d();f();function Np(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(nn.read(n),e(o-t))};return Ct.read(n,!0),()=>nn.read(n)}function o8({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?Np(i,-t):i()}c();d();f();function s8({keyframes:e,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:y,onStop:v}){let w=e[0],_;function D(R){return r!==void 0&&R<r||n!==void 0&&R>n}function C(R){return r===void 0?n:n===void 0||Math.abs(r-R)<Math.abs(n-R)?r:n}function I(R){_==null||_.stop(),_=Vs(se(H({keyframes:[0,1],velocity:0},R),{driver:p,onUpdate:U=>{var j;h==null||h(U),(j=R.onUpdate)===null||j===void 0||j.call(R,U)},onComplete:y,onStop:v}))}function P(R){I(H({type:"spring",stiffness:s,damping:a,restDelta:u},R))}if(D(w))P({velocity:t,keyframes:[w,C(w)]});else{let R=i*t+w;typeof l<"u"&&(R=l(R));let U=C(R),j=U===r?-1:1,F,$,G=X=>{F=$,$=X,t=wu(X-F,rn.delta),(j===1&&X>U||j===-1&&X<U)&&P({keyframes:[X,U],velocity:t})};I({type:"decay",keyframes:[w,0],velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:D(R)?G:void 0})}return{stop:()=>_==null?void 0:_.stop()}}c();d();f();var Bs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Mp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rw=()=>({type:"keyframes",ease:"linear",duration:.3}),aB={type:"keyframes",duration:.8},a8={x:Bs,y:Bs,z:Bs,rotate:Bs,rotateX:Bs,rotateY:Bs,rotateZ:Bs,scaleX:Mp,scaleY:Mp,scale:Mp,opacity:rw,backgroundColor:rw,color:rw,default:Mp},u8=(e,{keyframes:t})=>t.length>2?aB:(a8[e]||a8.default)(t[1]);c();d();f();var ff=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Dr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function l8(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u}=h,l=de(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}function nw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function iw(e){return typeof e=="number"?0:Eu("",e)}function kp(e,t){return e[t]||e.default||e}function c8(e,t,r,n){let i=ff(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=Eu(t,r):nw(o)&&typeof r=="string"?o=iw(r):!Array.isArray(r)&&nw(r)&&typeof o=="string"&&(r=iw(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var f8={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ow={},sw={};for(let e in f8)sw[e]=()=>(ow[e]===void 0&&(ow[e]=f8[e]()),ow[e]);var uB=new Set(["opacity"]),Iu=(e,t,r,n={})=>i=>{let o=kp(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Cu(s);let u=c8(t,e,r,o),l=u[0],p=u[u.length-1],h=ff(e,l),y=ff(e,p);Su(h===y,`You are trying to animate ${e} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let v=se(H({keyframes:u,velocity:t.getVelocity()},o),{elapsed:a,onUpdate:C=>{t.set(C),o.onUpdate&&o.onUpdate(C)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}});if(!h||!y||LC.current||o.type===!1)return o8(v);if(o.type==="inertia"){let C=s8(v);return()=>C.stop()}l8(o)||(v=H(H({},v),u8(e,v))),v.duration&&(v.duration=Cu(v.duration)),v.repeatDelay&&(v.repeatDelay=Cu(v.repeatDelay));let w=t.owner,_=w&&w.current;if(sw.waapi()&&uB.has(e)&&!v.repeatDelay&&v.repeatType!=="mirror"&&v.damping!==0&&w&&_ instanceof HTMLElement&&!w.getProps().onUpdate)return i8(t,e,v);{let C=Vs(v);return()=>C.stop()}};function d8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>aw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=aw(e,t,r);else{let i=typeof t=="function"?Fs(e,t,r.custom):t;n=h8(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function aw(e,t,r={}){var n;let i=Fs(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>h8(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:y}=o;return lB(e,t,p+l,h,y,r)}:()=>Promise.resolve(),{when:u}=o;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function h8(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,u=de(y,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let v in u){let w=e.getValue(v),_=u[v];if(!w||_===void 0||h&&fB(h,v))continue;let D=H({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&Ur.has(v)&&(D=se(H({},D),{type:!1,delay:0})),!w.hasAnimated){let I=e.getProps()[kC];I&&(D.elapsed=MC(I,v))}let C=w.start(Iu(v,w,_,D));$s(l)&&(l.add(v),C=C.then(()=>l.remove(v))),p.push(C)}return Promise.all(p).then(()=>{a&&OC(e,a)})}function lB(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(cB).forEach((l,p)=>{s.push(aw(l,t,se(H({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function cB(e,t){return e.sortNodePosition(t)}function fB({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Lp=[Te.Animate,Te.InView,Te.Focus,Te.Hover,Te.Tap,Te.Drag,Te.Exit],dB=[...Lp].reverse(),hB=Lp.length;function pB(e){return t=>Promise.all(t.map(({animation:r,options:n})=>d8(e,r,n)))}function p8(e){let t=pB(e),r=gB(),n=!0,i=(u,l)=>{let p=Fs(e,l);if(p){let h=p,{transition:y,transitionEnd:v}=h,w=de(h,["transition","transitionEnd"]);u=H(H(H({},u),w),v)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},y=[],v=new Set,w={},_=1/0;for(let C=0;C<hB;C++){let I=dB[C],P=r[I],R=p[I]!==void 0?p[I]:h[I],U=_i(R),j=I===l?P.isActive:null;j===!1&&(_=C);let F=R===h[I]&&R!==p[I]&&U;if(F&&n&&e.manuallyAnimateOnMount&&(F=!1),P.protectedKeys=H({},w),!P.isActive&&j===null||!R&&!P.prevProp||vo(R)||typeof R=="boolean")continue;let $=mB(P.prevProp,R),G=$||I===l&&P.isActive&&!F&&U||C>_&&U,X=Array.isArray(R)?R:[R],W=X.reduce(i,{});j===!1&&(W={});let{prevResolvedValues:J={}}=P,N=H(H({},J),W),m=E=>{G=!0,v.delete(E),P.needsAnimating[E]=!0};for(let E in N){let O=W[E],A=J[E];w.hasOwnProperty(E)||(O!==A?Ms(O)&&Ms(A)?!Uv(O,A)||$?m(E):P.protectedKeys[E]=!0:O!==void 0?m(E):v.add(E):O!==void 0&&v.has(E)?m(E):P.protectedKeys[E]=!0)}P.prevProp=R,P.prevResolvedValues=W,P.isActive&&(w=H(H({},w),W)),n&&e.blockInitialAnimation&&(G=!1),G&&!F&&y.push(...X.map(E=>({animation:E,options:H({type:I},u)})))}if(v.size){let C={};v.forEach(I=>{let P=e.getBaseTarget(I);P!==void 0&&(C[I]=P)}),y.push({animation:C})}let D=Boolean(y.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),n=!1,D?t(y):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(u,l)}),r[u].isActive=l;let y=s(p,u);for(let v in r)r[v].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function mB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Uv(t,e):!1}function js(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gB(){return{[Te.Animate]:js(!0),[Te.InView]:js(),[Te.Hover]:js(),[Te.Tap]:js(),[Te.Drag]:js(),[Te.Focus]:js(),[Te.Exit]:js()}}var m8={animation:Un(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=p8(e)),vo(t)&&(0,df.useEffect)(()=>t.subscribe(e),[t])}),exit:Un(e=>{let{custom:t,visualElement:r}=e,[n,i]=Ep(),o=(0,df.useContext)(Zn);(0,df.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(Te.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var mw=Y(ue(),1);c();d();f();c();d();f();c();d();f();var g8=(e,t)=>Math.abs(e-t);function y8(e,t){let r=g8(e.x,t.x),n=g8(e.y,t.y);return Math.sqrt(r**2+n**2)}var Ou=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=lw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=y8(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:y}=l,{timestamp:v}=rn;this.history.push(se(H({},y),{timestamp:v}));let{onStart:w,onMove:_}=this.handlers;p||(w&&w(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=uw(p,this.transformPagePoint),vp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Ct.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:y}=this.handlers,v=lw(uw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,v),y&&y(l,v)},wp(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=Zc(t),o=uw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=rn;this.history=[se(H({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,lw(o,this.history)),this.removeListeners=Co(Ti(window,"pointermove",this.handlePointerMove),Ti(window,"pointerup",this.handlePointerUp),Ti(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nn.update(this.updatePoint)}};function uw(e,t){return t?{point:t(e.point)}:e}function v8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lw({point:e},t){return{point:e,delta:v8(e,w8(t)),offset:v8(e,yB(t)),velocity:vB(t,.1)}}function yB(e){return e[0]}function w8(e){return e[e.length-1]}function vB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=w8(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Cu(t)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function ar(e){return e.max-e.min}function Fp(e,t=0,r=.01){return Math.abs(e-t)<=r}function x8(e,t,r,n=.5){e.origin=n,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ar(r)/ar(t),(Fp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(r.min,r.max,e.origin)-e.originPoint,(Fp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Au(e,t,r,n){x8(e.x,t.x,r.x,n==null?void 0:n.originX),x8(e.y,t.y,r.y,n==null?void 0:n.originY)}function b8(e,t,r){e.min=r.min+t.min,e.max=e.min+ar(t)}function _8(e,t,r){b8(e.x,t.x,r.x),b8(e.y,t.y,r.y)}function E8(e,t,r){e.min=t.min-r.min,e.max=e.min+ar(t)}function Ru(e,t,r){E8(e.x,t.x,r.x),E8(e.y,t.y,r.y)}function D8(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Pe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Pe(r,e,n.max):Math.min(e,r)),e}function S8(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function I8(e,{top:t,left:r,bottom:n,right:i}){return{x:S8(e.x,r,i),y:S8(e.y,t,n)}}function C8(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function O8(e,t){return{x:C8(e.x,t.x),y:C8(e.y,t.y)}}function A8(e,t){let r=.5,n=ar(e),i=ar(t);return i>n?r=Us(t.min,t.max-n,e.min):n>i&&(r=Us(e.min,e.max-i,t.min)),$n(0,1,r)}function R8(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var $p=.35;function N8(e=$p){return e===!1?e=0:e===!0&&(e=$p),{x:T8(e,"left","right"),y:T8(e,"top","bottom")}}function T8(e,t,r){return{min:P8(e,t),max:P8(e,r)}}function P8(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var M8=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nu=()=>({x:M8(),y:M8()}),k8=()=>({min:0,max:0}),It=()=>({x:k8(),y:k8()});c();d();f();function wn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function Up({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function L8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function F8(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}c();d();f();c();d();f();function cw(e){return e===void 0||e===1}function Vp({scale:e,scaleX:t,scaleY:r}){return!cw(e)||!cw(t)||!cw(r)}function Pi(e){return Vp(e)||fw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function fw(e){return $8(e.x)||$8(e.y)}function $8(e){return e&&e!=="0%"}function hf(e,t,r){let n=e-r,i=t*n;return r+i}function U8(e,t,r,n,i){return i!==void 0&&(e=hf(e,i,n)),hf(e,r,n)+t}function dw(e,t=0,r=1,n,i){e.min=U8(e.min,t,r,n,i),e.max=U8(e.max,t,r,n,i)}function hw(e,{x:t,y:r}){dw(e.x,t.translate,t.scale,t.originPoint),dw(e.y,r.translate,r.scale,r.originPoint)}function j8(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,hw(e,u)),n&&Pi(a.latestValues)&&zs(e,a.latestValues));t.x=V8(t.x),t.y=V8(t.y)}function V8(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ri(e,t){e.min=e.min+t,e.max=e.max+t}function B8(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,o);dw(e,t[r],t[n],s,t.scale)}var wB=["x","scaleX","originX"],xB=["y","scaleY","originY"];function zs(e,t){B8(e.x,t,wB),B8(e.y,t,xB)}function pw(e,t){return Up(F8(e.getBoundingClientRect(),t))}function z8(e,t,r){let n=pw(e,r),{scroll:i}=t;return i&&(ri(n.x,i.offset.x),ri(n.y,i.offset.y)),n}var bB=new WeakMap,jp=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(Zc(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Mv(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wn(v=>{var w,_;let D=this.getAxisMotionValue(v).get()||0;if(Pr.test(D)){let C=(_=(w=this.visualElement.projection)===null||w===void 0?void 0:w.layout)===null||_===void 0?void 0:_.layoutBox[v];C&&(D=ar(C)*(parseFloat(D)/100))}this.originPoint[v]=D}),y==null||y(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(Te.Drag,!0))},o=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:v}=u;if(p&&this.currentDirection===null){this.currentDirection=EB(v),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),y==null||y(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Ou(t,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o==null||o(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Te.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!Bp(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=D8(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=I8(n.layoutBox,t):this.constraints=!1,this.elastic=N8(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=R8(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ei(t))return!1;let n=t.current;sr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=z8(n,i.root,this.visualElement.getTransformPagePoint()),s=O8(i.layout.layoutBox,o);if(r){let a=r(L8(s));this.hasMutatedConstraints=!!a,a&&(s=Up(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=wn(p=>{if(!Bp(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let y=i?200:1e6,v=i?40:1e7,w=H(H({type:"inertia",velocity:n?t[p]:0,bounceStiffness:y,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,w)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Iu(t,n,0,r))}stopAnimation(){wn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){wn(r=>{let{drag:n}=this.getProps();if(!Bp(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){let{min:s,max:a}=i.layout.layoutBox[r];o.set(t[r]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ei(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};wn(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=A8({min:l,max:l},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),wn(a=>{if(!Bp(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(Pe(l,p,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;bB.set(this.visualElement,this);let r=this.visualElement.current,n=Ti(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();Ei(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();let a=ks(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(wn(h=>{let y=this.getAxisMotionValue(h);!y||(this.originPoint[h]+=l[h].translate,y.set(y.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=$p,dragMomentum:a=!0}=t;return se(H({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function Bp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function EB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function H8(e){let{dragControls:t,visualElement:r}=e,n=xo(()=>new jp(r));(0,mw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,mw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Mu=Y(ue(),1);function K8({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,Mu.useRef)(null),{transformPagePoint:a}=(0,Mu.useContext)(eu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,Mu.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Ou(p,u,{transformPagePoint:a})}Ls(i,"pointerdown",o&&l),pu(()=>s.current&&s.current.end())}var q8={pan:Un(K8),drag:Un(H8)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function gw(e){return typeof e=="string"&&e.startsWith("var(--")}var vw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _B(e){let t=vw.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var SB=4;function yw(e,t,r=1){sr(r<=SB,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=_B(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():gw(i)?yw(i,t,r+1):i}function W8(e,n,r){var t=de(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=H({},r)),e.values.forEach(o=>{let s=o.get();if(!gw(s))return;let a=yw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!gw(s))continue;let a=yw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var CB=new Set(["width","height","top","left","right","bottom","x","y"]),Z8=e=>CB.has(e),TB=e=>Object.keys(e).some(Z8),Q8=(e,t)=>{e.set(t,!1),e.set(t)},zp=e=>e===vn||e===pe,G8;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(G8||(G8={}));var Y8=(e,t)=>parseFloat(e.split(", ")[t]),X8=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return Y8(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?Y8(o[1],e):0}},PB=new Set(["x","y","z"]),DB=ou.filter(e=>!PB.has(e));function IB(e){let t=[];return DB.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var J8={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:X8(4,13),y:X8(5,14)},OB=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{a[l]=J8[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);Q8(p,a[l]),e[l]=J8[l](u,o)}),e},AB=(e,t,r={},n={})=>{t=H({},t),n=H({},n);let i=Object.keys(t).filter(Z8),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=_u(p),y=t[u],v;if(Ms(y)){let w=y.length,_=y[0]===null?1:0;p=y[_],h=_u(p);for(let D=_;D<w;D++)v?sr(_u(y[D])===v,"All keyframes must be of the same type"):(v=_u(y[D]),sr(v===h||zp(h)&&zp(v),"Keyframes must be of the same dimension as the current value"))}else v=_u(y);if(h!==v)if(zp(h)&&zp(v)){let w=l.get();typeof w=="string"&&l.set(parseFloat(w)),typeof y=="string"?t[u]=parseFloat(y):Array.isArray(y)&&v===pe&&(t[u]=y.map(parseFloat))}else(h==null?void 0:h.transform)&&(v==null?void 0:v.transform)&&(p===0||y===0)?p===0?l.set(v.transform(p)):t[u]=h.transform(y):(s||(o=IB(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],Q8(l,y))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=OB(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),yn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function e4(e,t,r,n){return TB(t)?AB(e,t,r,n):{target:t,transitionEnd:n}}var t4=(e,t,r,n)=>{let i=W8(e,t,n);return t=i.target,n=i.transitionEnd,e4(e,t,r,n)};c();d();f();var o4=Y(ue(),1);c();d();f();c();d();f();var pf={current:null},Hp={current:!1};function r4(){if(Hp.current=!0,!!yn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pf.current=e.matches;e.addListener(t),t()}else pf.current=!1}c();d();f();function n4(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(er(o))e.addValue(i,o),$s(n)&&n.add(i);else if(er(s))e.addValue(i,ei(o,{owner:e})),$s(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,ei(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var s4=Object.keys(wo),RB=s4.length,i4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Kp=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=H({},s),this.initialValues=r.initial?H({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Rs(r),this.isVariantNode=ip(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=de(p,["willChange"]);for(let h in l){let y=l[h];s[h]!==void 0&&er(y)&&(y.set(s[h],!1),$s(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Hp.current||r4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pf.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),nn.update(this.notifyUpdate),nn.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,r){let n=Ur.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,i,o,s){let a=[];mu!=="production"&&n&&r&&sr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<RB;u++){let l=s4[u],{isEnabled:p,Component:h}=wo[l];p(t)&&h&&a.push((0,o4.createElement)(h,se(H({key:l},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:y}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&Ei(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<i4.length;r++){let n=i4[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=n4(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let o=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let i={};for(let o=0;o<NB;o++){let s=a4[o],a=this.props[s];(_i(a)||a===!1)&&(i[s]=a)}return i}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ei(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=du(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},a4=["initial",...Lp],NB=a4.length;var ku=class extends Kp{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:i},o){var a=s,{transition:t,transitionEnd:r}=a,n=de(a,["transition","transitionEnd"]);let u=RC(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){AC(this,n,u);let l=t4(this,n,u,r);r=l.transitionEnd,n=l.target}return H({transition:t,transitionEnd:r},n)}};function MB(e){return window.getComputedStyle(e)}var qp=class extends ku{readValueFromInstance(t,r){if(Ur.has(r)){let n=bu(r);return n&&n.default||0}else{let n=MB(t),i=(lp(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return pw(t,r)}build(t,r,n,i){su(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return fu(t)}renderInstance(t,r,n,i){hp(t,r,n,i)}};c();d();f();var Wp=class extends ku{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Ur.has(r)?((n=bu(r))===null||n===void 0?void 0:n.default)||0:(r=pp.has(r)?r:cu(r),t.getAttribute(r))}measureInstanceViewportBox(){return It()}scrapeMotionValuesFromProps(t){return gp(t)}build(t,r,n,i){uu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){mp(t,r,n,i)}mount(t){this.isSVGTag=lu(t.tagName),super.mount(t)}};var u4=(e,t)=>nu(e)?new Wp(t,{enableHardwareAcceleration:!1}):new qp(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var Fu=Y(ue(),1);c();d();f();function l4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Lu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=l4(e,t.target.x),n=l4(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var c4="_$css",f4={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(vw,v=>(o.push(v),c4)));let s=Dr.parse(e);if(s.length>5)return n;let a=Dr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=Pe(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let y=a(s);if(i){let v=0;y=y.replace(c4,()=>{let w=o[v];return v++,w})}return y}};var ww=class extends Fu.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;N5(kB),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(se(H({},o.options),{onExitComplete:()=>this.safeToRemove()}))),bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Ct.postRender(()=>{var a;!((a=s.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function d4(e){let[t,r]=Ep(),n=(0,Fu.useContext)(ru);return Fu.default.createElement(ww,se(H({},e),{layoutGroup:n,switchLayoutGroup:(0,Fu.useContext)(ap),isPresent:t,safeToRemove:r}))}var kB={borderRadius:se(H({},Lu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Lu,borderTopRightRadius:Lu,borderBottomLeftRadius:Lu,borderBottomRightRadius:Lu,boxShadow:f4};var h4={measureLayout:d4};c();d();f();c();d();f();c();d();f();function p4(e,t,r={}){let n=er(e)?e:ei(e);return n.start(Iu("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var v4=["TopLeft","TopRight","BottomLeft","BottomRight"],LB=v4.length,m4=e=>typeof e=="string"?parseFloat(e):e,g4=e=>typeof e=="number"||pe.test(e);function w4(e,t,r,n,i,o){i?(e.opacity=Pe(0,r.opacity!==void 0?r.opacity:1,FB(n)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,$B(n))):o&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<LB;s++){let a=`border${v4[s]}Radius`,u=y4(t,a),l=y4(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||g4(u)===g4(l)?(e[a]=Math.max(Pe(m4(u),m4(l),n),0),(Pr.test(l)||Pr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Pe(t.rotate||0,r.rotate||0,n))}function y4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var FB=x4(0,.5,af),$B=x4(.5,.95,Du);function x4(e,t,r){return n=>n<e?0:n>t?1:r(Us(e,t,n))}c();d();f();function b4(e,t){e.min=t.min,e.max=t.max}function xn(e,t){b4(e.x,t.x),b4(e.y,t.y)}c();d();f();function E4(e,t,r,n,i){return e-=t,e=hf(e,1/r,n),i!==void 0&&(e=hf(e,1/i,n)),e}function UB(e,t=0,r=1,n=.5,i,o=e,s=e){if(Pr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,n);e===o&&(a-=t),e.min=E4(e.min,t,r,a,i),e.max=E4(e.max,t,r,a,i)}function _4(e,t,[r,n,i],o,s){UB(e,t[r],t[n],t[i],t.scale,o,s)}var VB=["x","scaleX","originX"],BB=["y","scaleY","originY"];function xw(e,t,r,n){_4(e.x,t,VB,r==null?void 0:r.x,n==null?void 0:n.x),_4(e.y,t,BB,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function S4(e){return e.translate===0&&e.scale===1}function bw(e){return S4(e.x)&&S4(e.y)}function Ew(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function _w(e){return ar(e.x)/ar(e.y)}c();d();f();var Gp=class{constructor(){this.members=[]}add(t){yu(this.members,t),t.scheduleRender()}remove(t){if(vu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){let o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();d();f();function Sw(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var C4=(e,t)=>e.depth-t.depth;var Yp=class{constructor(){this.children=[],this.isDirty=!1}add(t){yu(this.children,t),this.isDirty=!0}remove(t){vu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(C4),this.isDirty=!1,this.children.forEach(t)}};var T4=["","X","Y","Z"],P4=1e3,jB=0;function Xp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=jB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(KB),this.nodes.forEach(GB),this.nodes.forEach(YB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new To),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let y,v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=Np(v,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEach(I4))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:_})=>{var D,C,I,P,R;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let U=(C=(D=this.options.transition)!==null&&D!==void 0?D:h.getDefaultTransition())!==null&&C!==void 0?C:ej,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=h.getProps(),$=!this.targetLayout||!Ew(this.targetLayout,_)||w,G=!v&&w;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||G||v&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,G);let X=se(H({},kp(U,"layout")),{onPlay:j,onComplete:F});h.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!v&&this.animationProgress===0&&I4(this),this.isLead()&&((R=(P=this.options).onExitComplete)===null||R===void 0||R.call(P));this.targetLayout=_})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,nn.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(XB),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){let w=this.path[v];w.shouldResetTransform=!0,w.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(D4);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(tj),this.potentialNodes.clear()),this.nodes.forEach(WB),this.nodes.forEach(zB),this.nodes.forEach(HB),this.clearAllSnapshots(),Sp.update(),Sp.preRender(),Sp.render())}clearAllSnapshots(){this.nodes.forEach(qB),this.sharedNodes.forEach(JB)}scheduleUpdateProjection(){Ct.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(s=this.options.visualElement)===null||s===void 0||s.notify("LayoutMeasure",this.layout.layoutBox,a==null?void 0:a.layoutBox)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!bw(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||Pi(this.latestValues)||h)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),rj(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return It();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(ri(a.x,u.offset.x),ri(a.y,u.offset.y)),a}removeElementScroll(s){let a=It();xn(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){xn(a,s);let{scroll:y}=this.root;y&&(ri(a.x,-y.offset.x),ri(a.y,-y.offset.y))}ri(a.x,p.offset.x),ri(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&zs(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Pi(p.latestValues)&&zs(u,p.latestValues)}return Pi(this.latestValues)&&zs(u,this.latestValues),u}removeTransform(s){var a;let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Pi(p.latestValues))continue;Vp(p.latestValues)&&p.updateSnapshot();let h=It(),y=p.measurePageBox();xn(h,y),xw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Pi(this.latestValues)&&xw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=se(H(H({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Ru(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?_8(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):xn(this.target,this.layout.layoutBox),hw(this.target,this.targetDelta)):xn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Ru(this.relativeTargetOrigin,this.target,p.target),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Vp(this.parent.latestValues)||fw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;xn(this.layoutCorrected,this.layout.layoutBox),j8(this.layoutCorrected,this.treeScale,this.path,p);let{target:w}=l;if(!w)return;this.projectionDelta||(this.projectionDelta=Nu(),this.projectionDeltaWithTransform=Nu());let _=this.treeScale.x,D=this.treeScale.y,C=this.projectionTransform;Au(this.projectionDelta,this.layoutCorrected,w,this.latestValues),this.projectionTransform=Sw(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==_||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},y=H({},this.latestValues),v=Nu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let w=It(),_=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),D=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,C=Boolean(_&&!D&&this.options.crossfade===!0&&!this.path.some(QB));this.animationProgress=0,this.mixTargetDelta=I=>{var P;let R=I/1e3;O4(v.x,s.x,R),O4(v.y,s.y,R),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(Ru(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZB(this.relativeTarget,this.relativeTargetOrigin,w,R)),_&&(this.animationValues=y,w4(y,h,this.latestValues,R,C,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(nn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{bo.hasAnimatedSinceResize=!0,this.currentAnimation=p4(0,P4,se(H({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,P4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&N4(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||It();let h=ar(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let y=ar(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+y}xn(a,u),zs(a,p),Au(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Gp),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<T4.length;p++){let h="rotate"+T4[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=hu(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let D={};return this.options.layoutId&&(D.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,D.pointerEvents=hu(s.pointerEvents)||""),this.hasProjected&&!Pi(this.latestValues)&&(D.transform=h?h({},""):"none",this.hasProjected=!1),D}let v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=Sw(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));let{x:w,y:_}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${_.origin*100}% 0`,y.animationValues?p.opacity=y===this?(l=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(let D in iu){if(v[D]===void 0)continue;let{correct:C,applyTo:I}=iu[D],P=C(v[D],y);if(I){let R=I.length;for(let U=0;U<R;U++)p[I[U]]=P}else p[D]=P}return this.options.layoutId&&(p.pointerEvents=y===this?hu(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(D4),this.root.sharedNodes.clear()}}}function zB(e){e.updateLayout()}function HB(e){var t,r,n;let i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=i.source!==e.layout.source;a==="size"?wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(w);w.min=o[v].min,w.max=w.min+_}):N4(a,i.layoutBox,o)&&wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(o[v]);w.max=w.min+_});let l=Nu();Au(l,o,i.layoutBox);let p=Nu();u?Au(p,e.applyTransform(s,!0),i.measuredBox):Au(p,o,i.layoutBox);let h=!bw(l),y=!1;if(!e.resumeFrom){let v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){let{snapshot:w,layout:_}=v;if(w&&_){let D=It();Ru(D,i.layoutBox,w.layoutBox);let C=It();Ru(C,o,_.layoutBox),Ew(D,C)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function KB(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function qB(e){e.clearSnapshot()}function D4(e){e.clearMeasurements()}function WB(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function I4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function GB(e){e.resolveTargetDelta()}function YB(e){e.calcProjection()}function XB(e){e.resetRotation()}function JB(e){e.removeLeadSnapshot()}function O4(e,t,r){e.translate=Pe(t.translate,0,r),e.scale=Pe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function A4(e,t,r,n){e.min=Pe(t.min,r.min,n),e.max=Pe(t.max,r.max,n)}function ZB(e,t,r,n){A4(e.x,t.x,r.x,n),A4(e.y,t.y,r.y,n)}function QB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var ej={duration:.45,ease:[.4,0,.1,1]};function tj(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}let i=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function R4(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function rj(e){R4(e.x),R4(e.y)}function N4(e,t,r){return e==="position"||e==="preserve-aspect"&&!Fp(_w(t),_w(r),.2)}c();d();f();var M4=Xp({attachResizeListener:(e,t)=>ks(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Cw={current:void 0},k4=Xp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cw.current){let e=new M4(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Cw.current=e}return Cw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var nj=H(H(H(H({},m8),wC),q8),h4),zt=A5((e,t)=>rC(e,t,nj,u4,k4));c();d();f();var Di=Y(ue(),1),bn=Y(ue(),1);c();d();f();var mf=Y(ue(),1);c();d();f();var L4=Y(ue(),1);function Jp(){let e=(0,L4.useRef)(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function F4(){let e=Jp(),[t,r]=(0,mf.useState)(0),n=(0,mf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,mf.useCallback)(()=>Ct.postRender(n),[n]),t]}c();d();f();var gf=Y(ue(),1),yf=Y(ue(),1);c();d();f();var $u=Y(ue(),1),Hs=Y(ue(),1),Tw=class extends $u.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function $4({children:e,isPresent:t}){let r=(0,Hs.useId)(),n=(0,Hs.useRef)(null),i=(0,Hs.useRef)({width:0,height:0,top:0,left:0});return(0,Hs.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:u}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
|
|
25
18
|
[data-motion-pop-id="${r}"] {
|
|
26
19
|
position: absolute !important;
|
|
27
20
|
width: ${o}px !important;
|
|
@@ -29,7 +22,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29
22
|
top: ${a}px !important;
|
|
30
23
|
left: ${u}px !important;
|
|
31
24
|
}
|
|
32
|
-
`),()=>{document.head.removeChild(l)}},[t]),ll.createElement(yx,{isPresent:t,childRef:n,sizeRef:i},ll.cloneElement(e,{ref:n}))}var C0=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=os(rH),u=(0,Vf.useId)(),l=(0,Vf.useMemo)(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:p=>{a.set(p,!0);for(let h of a.values())if(!h)return;n&&n()},register:p=>(a.set(p,!1),()=>a.delete(p))}),o?void 0:[r]);return(0,Vf.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),Uf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=Uf.createElement(HP,{isPresent:r},e)),Uf.createElement(Ai.Provider,{value:l},e)};function rH(){return new Map}var cl=e=>e.key||"";function nH(e,t){e.forEach(r=>{let n=cl(r);t.set(n,r)})}function iH(e){let t=[];return ri.Children.forEach(e,r=>{(0,ri.isValidElement)(r)&&t.push(r)}),t}var fl=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",Gp(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=zP(),u=(0,ri.useContext)(Tu).forceRender;u&&(a=u);let l=S0(),p=iH(e),h=p,y=new Set,v=(0,ri.useRef)(h),w=(0,ri.useRef)(new Map).current,C=(0,ri.useRef)(!0);if(rs(()=>{C.current=!1,nH(p,w),v.current=h}),Uu(()=>{C.current=!0,w.clear(),y.clear()}),C.current)return fo.createElement(fo.Fragment,null,h.map(A=>fo.createElement(C0,{key:cl(A),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},A)));h=[...h];let R=v.current.map(cl),P=p.map(cl),M=R.length;for(let A=0;A<M;A++){let $=R[A];P.indexOf($)===-1&&y.add($)}return s==="wait"&&y.size&&(h=[]),y.forEach(A=>{if(P.indexOf(A)!==-1)return;let $=w.get(A);if(!$)return;let W=R.indexOf(A),ee=()=>{w.delete(A),y.delete(A);let q=v.current.findIndex(K=>K.key===A);if(v.current.splice(q,1),!y.size){if(v.current=p,l.current===!1)return;a(),n&&n()}};h.splice(W,0,fo.createElement(C0,{key:cl($),isPresent:!1,onExitComplete:ee,custom:t,presenceAffectsLayout:o,mode:s},$))}),h=h.map(A=>{let $=A.key;return y.has($)?A:fo.createElement(C0,{key:cl(A),isPresent:!0,presenceAffectsLayout:o,mode:s},A)}),Vu!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),fo.createElement(fo.Fragment,null,y.size?h:h.map(A=>(0,ri.cloneElement)(A)))};c();d();f();var yT=me(gT(),1),{__extends:Ume,__assign:ni,__rest:O0,__decorate:Vme,__param:jme,__esDecorate:Bme,__runInitializers:zme,__propKey:Hme,__setFunctionName:qme,__metadata:Kme,__awaiter:Wme,__generator:Gme,__exportStar:Yme,__createBinding:Xme,__values:Zme,__read:Qme,__spread:Jme,__spreadArrays:ege,__spreadArray:vT,__await:tge,__asyncGenerator:rge,__asyncDelegator:nge,__asyncValues:ige,__makeTemplateObject:oge,__importStar:sge,__importDefault:age,__classPrivateFieldGet:uge,__classPrivateFieldSet:lge,__classPrivateFieldIn:cge}=yT.default;c();d();f();var Mn=(...e)=>e.filter(Boolean).join(" "),wT=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),pa=(e,t)=>e!=null&&e[t]?e[t]:L3[t];var oH=()=>x.createElement("div",{className:"space-y-6"},x.createElement("div",{className:"-mt-6"},x.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),x.createElement("p",{className:"text-70868f mt-4 text-center"},"World ID is an identity protocol centered around persons. It can be used to prove someone is doing something once without revealing personal information."),x.createElement("p",{className:"text-70868f mt-3 text-center"},"It currently supports verification through biometrics (using a device called an Orb), and through phone numbers. Zero-Knowledge Proofs and other cryptographic mechanisms are used to preserve privacy."),x.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),x.createElement("div",null,x.createElement(ur.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:Mn("inline-flex w-full justify-center space-x-2 items-center px-8 py-4 border border-transparent font-medium rounded-2xl shadow-sm","text-gray-500 dark:text-70868f bg-gray-200 dark:bg-29343f hover:bg-gray-300/50 dark:hover:bg-29343f/50","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-300 disabled:cursor-not-allowed transition")},x.createElement(ur.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),xT=oH;c();d();f();var sH=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),aH={["GENERIC_ERROR"]:"Something went wrong",["INVALID_CODE"]:"Invalid code",["PHONE_OTP_REQUEST_ERROR"]:"We could not send you a code",["REJECTED_BY_HOST_APP"]:"Verification declined by app"},uH=()=>{var r;let{retryFlow:e,errorState:t}=Sn(sH);return x.createElement("div",{className:"space-y-8"},x.createElement("div",{className:"-mt-5 flex items-center justify-center"},x.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},x.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},x.createElement(Tp,{className:"w-8 text-white"})))),x.createElement("div",null,x.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},aH[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),x.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),x.createElement("div",{className:"flex justify-center"},x.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),x.createElement("div",null,x.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},bT=uH;c();d();f();var hl={opacity:[1,.1,.2,.4,.6,.8]},pl={repeat:1/0,duration:1,type:"spring"},lH=({className:e=""})=>x.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},x.createElement(ur.path,{animate:hl,transition:pl,d:"M21.985 17.835a.742.742 0 0 0 .492-.211.768.768 0 0 0 .227-.492c.106-1.73.337-4.651.692-7.72 4.857-.214 8.217 2.033 8.217 2.033-.98-3.45-3.206-12.771-9.196-11.286-5.069 1.339-3.38 14.296-1.047 17.393a.75.75 0 0 0 .615.284Z"}),x.createElement(ur.path,{animate:hl,transition:_e(ne({},pl),{delay:.15}),d:"M27.946 18.265c.892-3.791 9.724-13.28 13.938-10.113 4.905 3.8-.816 11.432-2.832 14.383 0 0-.403-4.084-3.619-7.788a162.5 162.5 0 0 0-6.326 4.31.748.748 0 0 1-.839-.004.784.784 0 0 1-.323-.788Zm3.6 5.727a.714.714 0 0 0-.404.547.764.764 0 0 0 .097.532.74.74 0 0 0 .422.328c1.632.489 4.387 1.349 7.247 2.365-.844 4.866-3.724 7.73-3.724 7.73 3.523-.235 12.94-.421 12.815-6.704-.183-5.325-12.978-6.45-16.453-4.798Z"}),x.createElement(ur.path,{animate:hl,transition:_e(ne({},pl),{delay:.35}),d:"M29.386 30.421a.727.727 0 0 0-.834.128.756.756 0 0 0-.174.84c.633 1.602 1.699 4.329 2.697 7.25-4.272 2.355-8.265 1.837-8.265 1.837 2.371 2.658 8.38 10.045 13.122 6.039 3.984-3.46-3.11-14.354-6.546-16.094Z"}),x.createElement(ur.path,{animate:hl,transition:_e(ne({},pl),{delay:.55}),d:"M23.098 32.706a.739.739 0 0 0-.432-.527.718.718 0 0 0-.533-.027.733.733 0 0 0-.408.35 160.789 160.789 0 0 1-3.897 6.654c-4.464-1.935-6.556-5.443-6.556-5.443-.567 3.547-2.506 12.937 3.532 14.227 5.136 1.016 9.1-11.423 8.294-15.233Z"}),x.createElement(ur.path,{animate:hl,transition:_e(ne({},pl),{delay:.7}),d:"M17.434 29.113a.778.778 0 0 0-.177-1.108.729.729 0 0 0-.523-.114c-1.68.274-4.531.714-7.546 1.046-1.295-4.769.096-8.609.096-8.609-3.08 1.75-11.5 6.058-8.735 11.657 2.42 4.73 14.447.137 16.885-2.872Z"}),x.createElement(ur.path,{animate:hl,transition:_e(ne({},pl),{delay:.85}),d:"M16.657 22.361a.709.709 0 0 0 .605-.303.772.772 0 0 0-.096-1.016 145.357 145.357 0 0 1-5.5-5.355c2.86-3.996 6.68-5.276 6.68-5.276-3.264-1.368-11.817-5.404-14.399.303-2.13 4.866 8.88 11.588 12.71 11.647Z"})),hs=lH;c();d();f();c();d();f();function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}var Ne=me(Pe()),VT=me(Js());c();d();f();function $r(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}c();d();f();var _T=me(Pe());function cH(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function wx(...e){return t=>e.forEach(r=>cH(r,t))}function Ur(...e){return(0,_T.useCallback)(wx(...e),e)}c();d();f();var bi=me(Pe());c();d();f();var Qr=me(Pe());function ET(e,t){let r=(0,Qr.createContext)(t);function n(o){let l=o,{children:s}=l,a=Le(l,["children"]),u=(0,Qr.useMemo)(()=>a,Object.values(a));return(0,Qr.createElement)(r.Provider,{value:u},s)}function i(o){let s=(0,Qr.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function ml(e,t=[]){let r=[];function n(o,s){let a=(0,Qr.createContext)(s),u=r.length;r=[...r,s];function l(h){let P=h,{scope:y,children:v}=P,w=Le(P,["scope","children"]),C=(y==null?void 0:y[e][u])||a,R=(0,Qr.useMemo)(()=>w,Object.values(w));return(0,Qr.createElement)(C.Provider,{value:R},v)}function p(h,y){let v=(y==null?void 0:y[e][u])||a,w=(0,Qr.useContext)(v);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,p]}let i=()=>{let o=r.map(s=>(0,Qr.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||o;return(0,Qr.useMemo)(()=>({[`__scope${e}`]:_e(ne({},a),{[e]:u})}),[a,u])}};return i.scopeName=e,[n,fH(i,...t)]}function fH(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){let s=n.reduce((a,{useScope:u,scopeName:l})=>{let h=u(o)[`__scope${l}`];return ne(ne({},a),h)},{});return(0,Qr.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var Gt=me(Pe());var ps=(0,Gt.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=Le(s,["children"]),i=Gt.Children.toArray(r),o=i.find(hH);if(o){let a=o.props.children,u=i.map(l=>l===o?Gt.Children.count(a)>1?Gt.Children.only(null):(0,Gt.isValidElement)(a)?a.props.children:null:l);return(0,Gt.createElement)(xx,ht({},n,{ref:t}),(0,Gt.isValidElement)(a)?(0,Gt.cloneElement)(a,void 0,u):null)}return(0,Gt.createElement)(xx,ht({},n,{ref:t}),r)});ps.displayName="Slot";var xx=(0,Gt.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=Le(i,["children"]);return(0,Gt.isValidElement)(r)?(0,Gt.cloneElement)(r,_e(ne({},pH(n,r.props)),{ref:wx(t,r.ref)})):Gt.Children.count(r)>1?Gt.Children.only(null):null});xx.displayName="SlotClone";var dH=({children:e})=>(0,Gt.createElement)(Gt.Fragment,null,e);function hH(e){return(0,Gt.isValidElement)(e)&&e.type===dH}function pH(e,t){let r=ne({},t);for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{o(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]=ne(ne({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return ne(ne({},e),r)}function ST(e){let t=e+"CollectionProvider",[r,n]=ml(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{let{scope:w,children:C}=v,R=bi.default.useRef(null),P=bi.default.useRef(new Map).current;return bi.default.createElement(i,{scope:w,itemMap:P,collectionRef:R},C)},a=e+"CollectionSlot",u=bi.default.forwardRef((v,w)=>{let{scope:C,children:R}=v,P=o(a,C),M=Ur(w,P.collectionRef);return bi.default.createElement(ps,{ref:M},R)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=bi.default.forwardRef((v,w)=>{let W=v,{scope:C,children:R}=W,P=Le(W,["scope","children"]),M=bi.default.useRef(null),A=Ur(w,M),$=o(l,C);return bi.default.useEffect(()=>($.itemMap.set(M,ne({ref:M},P)),()=>void $.itemMap.delete(M))),bi.default.createElement(ps,{[p]:"",ref:A},R)});function y(v){let w=o(e+"CollectionConsumer",v);return bi.default.useCallback(()=>{let R=w.collectionRef.current;if(!R)return[];let P=Array.from(R.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort(($,W)=>P.indexOf($.ref.current)-P.indexOf(W.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,n]}c();d();f();var It=me(Pe());c();d();f();var gl=me(Pe()),CT=me(Js());var mH=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],wr=mH.reduce((e,t)=>{let r=(0,gl.forwardRef)((n,i)=>{let u=n,{asChild:o}=u,s=Le(u,["asChild"]),a=o?ps:t;return(0,gl.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,gl.createElement)(a,ht({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,_e(ne({},e),{[t]:r})},{});function I0(e,t){e&&(0,CT.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var yl=me(Pe());function hn(e){let t=(0,yl.useRef)(e);return(0,yl.useEffect)(()=>{t.current=e}),(0,yl.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var PT=me(Pe());function TT(e,t=globalThis==null?void 0:globalThis.document){let r=hn(e);(0,PT.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var bx="dismissableLayer.update",gH="dismissableLayer.pointerDownOutside",yH="dismissableLayer.focusOutside",DT,IT=(0,It.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_x=(0,It.forwardRef)((e,t)=>{var r;let K=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:u}=K,l=Le(K,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),p=(0,It.useContext)(IT),[h,y]=(0,It.useState)(null),v=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,w]=(0,It.useState)({}),C=Ur(t,ue=>y(ue)),R=Array.from(p.layers),[P]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),M=R.indexOf(P),A=h?R.indexOf(h):-1,$=p.layersWithOutsidePointerEventsDisabled.size>0,W=A>=M,ee=wH(ue=>{let pe=ue.target,fe=[...p.branches].some(X=>X.contains(pe));!W||fe||(o==null||o(ue),a==null||a(ue),ue.defaultPrevented||u==null||u())},v),q=xH(ue=>{let pe=ue.target;[...p.branches].some(X=>X.contains(pe))||(s==null||s(ue),a==null||a(ue),ue.defaultPrevented||u==null||u())},v);return TT(ue=>{A===p.layers.size-1&&(i==null||i(ue),!ue.defaultPrevented&&u&&(ue.preventDefault(),u()))},v),(0,It.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(DT=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),OT(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=DT)}},[h,v,n,p]),(0,It.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),OT())},[h,p]),(0,It.useEffect)(()=>{let ue=()=>w({});return document.addEventListener(bx,ue),()=>document.removeEventListener(bx,ue)},[]),(0,It.createElement)(wr.div,ht({},l,{ref:C,style:ne({pointerEvents:$?W?"auto":"none":void 0},e.style),onFocusCapture:$r(e.onFocusCapture,q.onFocusCapture),onBlurCapture:$r(e.onBlurCapture,q.onBlurCapture),onPointerDownCapture:$r(e.onPointerDownCapture,ee.onPointerDownCapture)}))});var vH=(0,It.forwardRef)((e,t)=>{let r=(0,It.useContext)(IT),n=(0,It.useRef)(null),i=Ur(t,n);return(0,It.useEffect)(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,It.createElement)(wr.div,ht({},e,{ref:i}))});function wH(e,t=globalThis==null?void 0:globalThis.document){let r=hn(e),n=(0,It.useRef)(!1),i=(0,It.useRef)(()=>{});return(0,It.useEffect)(()=>{let o=a=>{if(a.target&&!n.current){let l=function(){RT(gH,r,u,{discrete:!0})},u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function xH(e,t=globalThis==null?void 0:globalThis.document){let r=hn(e),n=(0,It.useRef)(!1);return(0,It.useEffect)(()=>{let i=o=>{o.target&&!n.current&&RT(yH,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function OT(){let e=new CustomEvent(bx);document.dispatchEvent(e)}function RT(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?I0(i,o):i.dispatchEvent(o)}var AT=_x,MT=vH;c();d();f();var R0=me(Pe()),NT=me(Js());var A0=(0,R0.forwardRef)((e,t)=>{var r;let o=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=o,i=Le(o,["container"]);return n?NT.default.createPortal((0,R0.createElement)(wr.div,ht({},i,{ref:t})),n):null});c();d();f();var Vr=me(Pe()),FT=me(Js());c();d();f();var kT=me(Pe()),ma=Boolean(globalThis==null?void 0:globalThis.document)?kT.useLayoutEffect:()=>{};function bH(e,t){return(0,Vr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var jf=e=>{let{present:t,children:r}=e,n=_H(t),i=typeof r=="function"?r({present:n.isPresent}):Vr.Children.only(r),o=Ur(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,Vr.cloneElement)(i,{ref:o}):null};jf.displayName="Presence";function _H(e){let[t,r]=(0,Vr.useState)(),n=(0,Vr.useRef)({}),i=(0,Vr.useRef)(e),o=(0,Vr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=bH(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Vr.useEffect)(()=>{let l=M0(n.current);o.current=a==="mounted"?l:"none"},[a]),ma(()=>{let l=n.current,p=i.current;if(p!==e){let y=o.current,v=M0(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),ma(()=>{if(t){let l=h=>{let v=M0(n.current).includes(h.animationName);h.target===t&&v&&(0,FT.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(o.current=M0(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,Vr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function M0(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var ms=me(Pe());function LT({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=EH({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=hn(r),u=(0,ms.useCallback)(l=>{if(o){let h=typeof l=="function"?l(e):l;h!==e&&a(h)}else i(l)},[o,e,i,a]);return[s,u]}function EH({defaultProp:e,onChange:t}){let r=(0,ms.useState)(e),[n]=r,i=(0,ms.useRef)(n),o=hn(t);return(0,ms.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var N0=me(Pe());var Ex=(0,N0.forwardRef)((e,t)=>(0,N0.createElement)(wr.span,ht({},e,{ref:t,style:ne({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)})));var jT="ToastProvider",[Tx,SH,CH]=ST("Toast"),[BT,xye]=ml("Toast",[CH]),[PH,F0]=BT(jT),zT=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,u]=(0,Ne.useState)(null),[l,p]=(0,Ne.useState)(0),h=(0,Ne.useRef)(!1),y=(0,Ne.useRef)(!1);return(0,Ne.createElement)(Tx.Provider,{scope:t},(0,Ne.createElement)(PH,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,Ne.useCallback)(()=>p(v=>v+1),[]),onToastRemove:(0,Ne.useCallback)(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:y},s))};zT.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${jT}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var TH="ToastViewport",DH=["F8"],Cx="toast.viewportPause",Px="toast.viewportResume",OH=(0,Ne.forwardRef)((e,t)=>{let R=e,{__scopeToast:r,hotkey:n=DH,label:i="Notifications ({hotkey})"}=R,o=Le(R,["__scopeToast","hotkey","label"]),s=F0(TH,r),a=SH(r),u=(0,Ne.useRef)(null),l=(0,Ne.useRef)(null),p=(0,Ne.useRef)(null),h=(0,Ne.useRef)(null),y=Ur(t,h,s.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;(0,Ne.useEffect)(()=>{let P=M=>{var A;n.every(W=>M[W]||M.code===W)&&((A=h.current)===null||A===void 0||A.focus())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[n]),(0,Ne.useEffect)(()=>{let P=u.current,M=h.current;if(w&&P&&M){let A=()=>{if(!s.isClosePausedRef.current){let q=new CustomEvent(Cx);M.dispatchEvent(q),s.isClosePausedRef.current=!0}},$=()=>{if(s.isClosePausedRef.current){let q=new CustomEvent(Px);M.dispatchEvent(q),s.isClosePausedRef.current=!1}},W=q=>{!P.contains(q.relatedTarget)&&$()},ee=()=>{P.contains(document.activeElement)||$()};return P.addEventListener("focusin",A),P.addEventListener("focusout",W),P.addEventListener("pointermove",A),P.addEventListener("pointerleave",ee),window.addEventListener("blur",A),window.addEventListener("focus",$),()=>{P.removeEventListener("focusin",A),P.removeEventListener("focusout",W),P.removeEventListener("pointermove",A),P.removeEventListener("pointerleave",ee),window.removeEventListener("blur",A),window.removeEventListener("focus",$)}}},[w,s.isClosePausedRef]);let C=(0,Ne.useCallback)(({tabbingDirection:P})=>{let A=a().map($=>{let W=$.ref.current,ee=[W,...qH(W)];return P==="forwards"?ee:ee.reverse()});return(P==="forwards"?A.reverse():A).flat()},[a]);return(0,Ne.useEffect)(()=>{let P=h.current;if(P){let M=A=>{let $=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!$){let ue=document.activeElement,pe=A.shiftKey;if(A.target===P&&pe){var ee;(ee=l.current)===null||ee===void 0||ee.focus();return}let I=C({tabbingDirection:pe?"backwards":"forwards"}),m=I.findIndex(g=>g===ue);if(Sx(I.slice(m+1)))A.preventDefault();else{var q,K;pe?(q=l.current)===null||q===void 0||q.focus():(K=p.current)===null||K===void 0||K.focus()}}};return P.addEventListener("keydown",M),()=>P.removeEventListener("keydown",M)}},[a,C]),(0,Ne.createElement)(MT,{ref:u,role:"region","aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"}},w&&(0,Ne.createElement)($T,{ref:l,onFocusFromOutsideViewport:()=>{let P=C({tabbingDirection:"forwards"});Sx(P)}}),(0,Ne.createElement)(Tx.Slot,{scope:r},(0,Ne.createElement)(wr.ol,ht({tabIndex:-1},o,{ref:y}))),w&&(0,Ne.createElement)($T,{ref:p,onFocusFromOutsideViewport:()=>{let P=C({tabbingDirection:"backwards"});Sx(P)}}))}),IH="ToastFocusProxy",$T=(0,Ne.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=Le(s,["__scopeToast","onFocusFromOutsideViewport"]),o=F0(IH,r);return(0,Ne.createElement)(Ex,ht({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var u;let l=a.relatedTarget;!((u=o.viewport)!==null&&u!==void 0&&u.contains(l))&&n()}}))}),L0="Toast",RH="toast.swipeStart",AH="toast.swipeMove",MH="toast.swipeCancel",NH="toast.swipeEnd";var[kH,FH]=BT(L0,{onClose(){}}),LH=(0,Ne.forwardRef)((e,t)=>{let m=e,{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:y,onSwipeEnd:v}=m,w=Le(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),C=F0(L0,r),[R,P]=(0,Ne.useState)(null),M=Ur(t,g=>P(g)),A=(0,Ne.useRef)(null),$=(0,Ne.useRef)(null),W=i||C.duration,ee=(0,Ne.useRef)(0),q=(0,Ne.useRef)(W),K=(0,Ne.useRef)(0),{onToastAdd:ue,onToastRemove:pe}=C,fe=hn(()=>{var g;(R==null?void 0:R.contains(document.activeElement))&&((g=C.viewport)===null||g===void 0||g.focus()),s()}),X=(0,Ne.useCallback)(g=>{!g||g===1/0||(window.clearTimeout(K.current),ee.current=new Date().getTime(),K.current=window.setTimeout(fe,g))},[fe]);(0,Ne.useEffect)(()=>{let g=C.viewport;if(g){let E=()=>{X(q.current),l==null||l()},T=()=>{let k=new Date().getTime()-ee.current;q.current=q.current-k,window.clearTimeout(K.current),u==null||u()};return g.addEventListener(Cx,T),g.addEventListener(Px,E),()=>{g.removeEventListener(Cx,T),g.removeEventListener(Px,E)}}},[C.viewport,W,u,l,X]),(0,Ne.useEffect)(()=>{o&&!C.isClosePausedRef.current&&X(W)},[o,W,C.isClosePausedRef,X]),(0,Ne.useEffect)(()=>(ue(),()=>pe()),[ue,pe]);let I=(0,Ne.useMemo)(()=>R?qT(R):null,[R]);return C.viewport?(0,Ne.createElement)(Ne.Fragment,null,I&&(0,Ne.createElement)($H,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),(0,Ne.createElement)(kH,{scope:r,onClose:fe},(0,VT.createPortal)((0,Ne.createElement)(Tx.ItemSlot,{scope:r},(0,Ne.createElement)(AT,{asChild:!0,onEscapeKeyDown:$r(a,()=>{C.isFocusedToastEscapeKeyDownRef.current||fe(),C.isFocusedToastEscapeKeyDownRef.current=!1})},(0,Ne.createElement)(wr.li,ht({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":C.swipeDirection},w,{ref:M,style:ne({userSelect:"none",touchAction:"none"},e.style),onKeyDown:$r(e.onKeyDown,g=>{g.key==="Escape"&&(a==null||a(g.nativeEvent),g.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:$r(e.onPointerDown,g=>{g.button===0&&(A.current={x:g.clientX,y:g.clientY})}),onPointerMove:$r(e.onPointerMove,g=>{if(!A.current)return;let E=g.clientX-A.current.x,T=g.clientY-A.current.y,k=Boolean($.current),V=["left","right"].includes(C.swipeDirection),H=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,U=V?H(0,E):0,b=V?0:H(0,T),j=g.pointerType==="touch"?10:2,he={x:U,y:b},D={originalEvent:g,delta:he};k?($.current=he,k0(AH,h,D,{discrete:!1})):UT(he,C.swipeDirection,j)?($.current=he,k0(RH,p,D,{discrete:!1}),g.target.setPointerCapture(g.pointerId)):(Math.abs(E)>j||Math.abs(T)>j)&&(A.current=null)}),onPointerUp:$r(e.onPointerUp,g=>{let E=$.current,T=g.target;if(T.hasPointerCapture(g.pointerId)&&T.releasePointerCapture(g.pointerId),$.current=null,A.current=null,E){let k=g.currentTarget,V={originalEvent:g,delta:E};UT(E,C.swipeDirection,C.swipeThreshold)?k0(NH,v,V,{discrete:!0}):k0(MH,y,V,{discrete:!0}),k.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})))),C.viewport))):null});LH.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${L0}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var $H=e=>{let l=e,{__scopeToast:t,children:r}=l,n=Le(l,["__scopeToast","children"]),i=F0(L0,t),[o,s]=(0,Ne.useState)(!1),[a,u]=(0,Ne.useState)(!1);return zH(()=>s(!0)),(0,Ne.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,Ne.createElement)(A0,{asChild:!0},(0,Ne.createElement)(Ex,n,o&&(0,Ne.createElement)(Ne.Fragment,null,i.label," ",r)))};var UH="ToastAction",VH=(0,Ne.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=Le(i,["altText"]);return r?(0,Ne.createElement)(HT,{altText:r,asChild:!0},(0,Ne.createElement)(BH,ht({},n,{ref:t}))):null});VH.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${UH}\``)}};var jH="ToastClose",BH=(0,Ne.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=Le(o,["__scopeToast"]),i=FH(jH,r);return(0,Ne.createElement)(HT,{asChild:!0},(0,Ne.createElement)(wr.button,ht({type:"button"},n,{ref:t,onClick:$r(e.onClick,i.onClose)})))}),HT=(0,Ne.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=Le(o,["__scopeToast","altText"]);return(0,Ne.createElement)(wr.div,ht({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function qT(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),HH(n)){let i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){let s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...qT(n))}}),t}function k0(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?I0(i,o):i.dispatchEvent(o)}var UT=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function zH(e=()=>{}){let t=hn(e);ma(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function HH(e){return e.nodeType===e.ELEMENT_NODE}function qH(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Sx(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var KT=zT,WT=OH;c();d();f();c();d();f();var GT="data:image/webp;base64,UklGRlYhAABXRUJQVlA4TEkhAAAvX8AXEE0obNu2ge3s5P+H2yMi+j8BAKCFvQAkAB9JVPcjKfwuA2ZU4ABsJjfCcYfKJDsieO1eJDNz2T5c4wyX9OYZ65NJmll45kh68K7EhYNIkhQpj+vAv9p7fhFuHNt2k7FNjs5+ovpi/4uiQtQ5I4Vt2zb8/+GkQ0D/JwC/N57w/0IJN54cufsDwIgn2FB+4R//CVDJDBgjcOAMsHhWAjf4VZJfJ4iAnj8AuAFifRPpCcCBSFlEwAYoMO6JL/64sxK4gFmAmppEgnXECmBGCRczERLhAEBY0VIGJSUADARt2yYJf9bbfgoRMQH8q4dpLhaUgMlMqAQrsIJK4EewAEw1B1bJL7Zb245NknSc1/087xuOzEDaNsa2bdv8Nj8g1/wA27Y903aXXWk7MzKSwfd57vscZKVXf/YtSZIlSZJtIauZRWT0/d7//2n3+707s9zDTYU9SJKk2rZtW2aRrffJczPvXf+KMfPe58zRWxgl2rZNu1a/Jxdx8mzbtm3brtmq2irb+LZt23i2jZN7JsDTbdumbWvbPqFSa+tjzr0v27Zt21fQITtoX1fI1xXz9QN8XbEraNtXyDY3z1lr9N6qLNu200baT5aheYY9DSZXz5K7f5nBjqTnW5IkS5Ik20ISj6rq24f0U///71w/4Z4ZyhG+BUiSJEmSJEBEYvG4/v9Lr0wTYcLfCARt28bZ+VN+I0AM+ITyC7yPn3fnLCgBDODJ9+AeSD+bNnkU9DwHGs1AHdAEVrACkcEQSJv/ypyy/an2eq/x4atnzAafyq71XLzg+ZpMayMOCACTjApasgRYipFAUhiGb8/9nsesNT5WeHZs8KzbelttrRLbS3FAVMgUlGAgqhqoLebzkC0opJDEiMNOctbart7kQ+Vnw0rvqzScD6bBQsAADMJnntr8NtYe2HRosrf0uqXHm/T1TfrvG/6HS5/vXepnJz++eOmnXxz+4YOgAoFUUnZ09pq3DSWfAUmDQkNAYEAmiu/e//UL/ZvtV3SiHCpLNMzSC3opvr1J/3nR/8H/H/zdO3k+yeujxY/PDv3hg6/6+rS0AgQVs+HEng89n7a1PpYvXhsyywLQxhs/+fXlB79m30P145L2mD1zJDg9OltcrGaqPIlJfd+Gt1Z+fbP+/9j+H2x5PMWXD/zTh10f4wfW8UNLKxOoACgt9fxkJJ6qyn8TwRZJoNV3vu9/+Ib/afTxEI/3Fp7v/PPri2/XfZcWhjBrUmpkwdgd+7vjvx5z9ID66zWvf/n6Z5/7/HgfP3YuQUXtb6HcU5R9LAkLAgRf8MAXfkN9H+m+nJ93fvH67LePT57zBFEwIDVSEFIMYTK5ZVfRU/T0pZvN8/TO9R8f/HdBglBe9sx5anAXs80qsHyP/a+HZaPouN3xz+/Hh84xG4kgDLCoXJvVwkNYJGExS4q1zvKk+l64fV+j/1ft56fu/1cTlE1kj4pPSWLVQDFAwS4HJ7Tw5rve+zFm14AQRNCAFewazA7aLLEsGJAasWzjesWrpn89aPxXj9uex/9b2hVQoVR4K/80gFhmcUwEjRkDp8qbFt7w3AeuH5EgBpMpSGrkbEtgULGIlULAJNEmUGiKZ/jXzEP6Dv3PMbBjAalwqjwF2GpSLGQEuifKO6bfc+5CkQJBghABgLRsOAhDLSwEA5FpDyKZBUE2JY7OUzzg51H2MTEQGbGs3CdtLconryMmjHXFktx0LJ24fqyAAAMAWQBAABiSQEQgtSdngwgPhxVNI5AtBNztmHld/DpGby3bCQjosuZuVH6iNrlHGFtB5VommtSXlNud82XuQBAggEIgAAIETYGgsUDCcLEgANmwSDQCQgEELND8XNxRRasmgKBFiwXP5k/Oeu+rFfcgULnAIN1+fI/8Mcb/L8e3E5JsAZggBLUJAw1ECBM2YaCllIkKhsgC6Vz5pJBdN99gpCBSZcyQrdf76k/GIQTBccEJSIKNzac3lDm+/+L7H/GCkMLyCAklVkuGBghA4FAUJAMXSqmeIhRC6X+lv1YpI96n5LY5q0ABZYalOPHQvwke3xcg/meeI63ZZrzQ8uaHXxlzOON8+EWZBCEqhkyJQASylohigEmFJQTgioEpnGDKiVAWgz36bXVlzDDu+LpoRaQIW9Bo2p99fT/+cZ3xaNQ6U2E5YKz46k998mt4jzLjLePH04lCyBYxqxxSTEbDiZgwJhYhIxXGFkkOVQkAvrGNVhRs3107XzHDHQfoi6oqUaRQVRi7w7vaj2ONX2WFMwx33xDDJ3/iu75q9CE9dXUf/3QdJ4MgLCRCbKAqsXUthlkQ4sxN/3vE53vYt93sCFAUGZlzYURwQq4UjJGs69G/O2Y7mGNkjy+nfUYEYcB+LccfQvDI8IeKYHRiDFh751v+m1Xfbulxm3/mH1bef0ggCW0YCqWlGMNSEsoVxpLd56c3v/T6l73m1a9vf93H7v75Ax//9OD2JSASsnbimZkAAU1rgBl68n74Z5rZUsearW/eWnWPACOoOOpPvav+iGrWNQswRPu+w85vKz4Tzzy31ruuzItABJSQNLQMkFCmASKCQLpa+9zk/CjOI4/hzuTn4e1373jyl6dNvyE0pQE7XcgKUSFEYaBQgRT1ovcvvbEUoxht/TZWvQAkalSuYqVHEiomlTUErHhixTfxxM2N//g4Tl0KEABBAiGvrdymweYGYAQCxMR+czPVX6i/aroaOVGOiLi7Xv3zrduvd6kns5Rwuusd5QpUQGgkmUkBYIrgQvJScrdJG6te2fpEFkRMCZUfgV3FgkJisuwBP+CnTgQ/31ZaakIIFqCcEgUhJgrhWquOvvMbzvz8mD9E4AOyWFGhHUQd33o9/M23BGwOKuFU5piQIgYbO3aNtbjx5cfVM7Fuum7jCyEFErKNoocyf7Puitqlucqf8hMn345bC1hMsoSQYaYMjFiJ07lya3VyFGs7nXkHgZcQrWhCwyF9Hwx2HOPCPe51QBQT2xhd+OYULIpawkAj3T7H9Dv4cvP3Mv8WGYAR2XX6ISrXv4kPshjmI3+qvEbe6B0yFbYYoICazWnlSgGhFCRJlq6x6jc4d4UVImUZVAB0aeSKZnx9dGODOaYUnCItJz5+kdUYhC0MEiwkMx8oP0D+wbjx9tBKAXCp49+nHsiua4W3BAEX3+IXeEFbhYCakChkmLAVmnNXWqaUiISZQtqA36ruUoLFAkCjE3xPHlDYmO+lA4RSlGpLSsAUUalZKluUKxmDoEC8K3/v0n65XDuOSpII/72F8w8A7hhHRZYjP9K1N7Bx8J8Y2ulABkE5CAFaVjklgFfiQFSkgwIKHD/XjjUowqJRFhETCkZOZuZlMZcxSVBJK/GmruRa0KbbCBAtjlpqLQQZpG0nynW5dD4c7cgkCtezIP1OaG/BE9H5Lzn2wxWy7JGRe2QwGYpIhZ1VQAzArkSOVFmyo0tVZRTr1WscLLSWGkCNJlQUBnc8dx+7rT6HRqqzna64Wm4ZmRG7QA6TLSE9yNJCNxm7Dh+X0xnT1DGkpw0OvQM4k/iqJBnv+TV03CbudeDfK6gSkcGCbCHCUEDiwpVAwJEPCi5Liv6yt085x5YKUKPGpDteUjU9+S+XPb5qhWOuxFeVAyopS0uiMWJJtDqUICSMBAdX+iNW/mMrUXbLzklw9X6BtTCUvPeXx5kfItbtq/+aLJYiAgCQMCOCwYvB1zHCgBJZoUAKDG308/96+fE11mZQUcQdZ+iFq/BrOfZcX01aQbFIodw1iqnE0gZiYYtrSi0AY1EwAODz1pJ1eufwQCATVs6u+2U7TyFu+WIvm9Z65Pd3k//FbSoiC8+tVOLKSW1Q4ER7EiIqEtRALRiyWgiAJJ3iqz6PL3xgc6Wsc+f66Hv++hyGArZkKMhWFWVSABiUBGUAAgoEGQK0nPTQFBoZwEE7/3BPqj+3HPrS4ymo2Lh9m3af0cvycKyCRD+6lhde9SEhBTO9uMYJpA1YCCBdt+8l3/53n9Of1q8jH3rjPWfXy3SSxZQAMEGIBRIA/ZChB6IiCQQFgiwKWkmRYQg2w6e5rd/Y/rmOv+u3fvJw/oAgS0VbG2i92Awgq1xzIe8W8TN6+5I1GjGFM37Mf0v8v7mhX72MGw4mGwqKO/0RE8IKouUaOYBRhEHpld/+/6R/Ui71l12vsW9r7fl05/4/p8+86OWsNU2CQrYCIEGWIBMiAAoIDIYCy5aWFZ8in16ssQZXWGGF5FPu28/+///93I8/KFAbFsLHndC7YaVJTBx0av/OkL20M0dQq9wFn4f9P6WZQIq+ofDo9VxkKFg2TMSUZ7SslAQQPvbp543zk+mLcpqY6r02r4cdzacubfRSu52Zdb463jEVnI9uGyUyICGG0Y7VG8u31t5Y9cLe0dhEjboQrRtrcUTAAS1snxVkK0uQwMXXKy0rWLLJ8pr/ukv7pq6vcsgQFa8JAACMv/0lH7YySD51j+zybx2hwHAohmGaLMBUlRpbeN3PHnIeEQHQxBmQMwicscSKucVecYMt7mNhxlQvd3LkjKEeS4wu0GiWZmkvNjTRRF2ylBvH0rr5ioDoyiFZIhFyG/LZ0vpVOOFAu01SqXnPLBVfUnRJVDmdv8BPCwFg6vWxk0KGkh3G0h45x2sZywAskAaR+TBgKnYbWobdoHvTr69bdUQ0FAAAudKCM6IvMSvuxA3uwR5lHsoc2SXncFTWQBDN0l5saKCJZsmSpdx03LQHM26s8Qvff09ULFHA2VcvXM6+Ggw1wSzKnu8qk+HBcpHRU3DZ/2oBQLVoCRT6ZKNdD8dynFoCGyBYKkQiuVIilE69Igy37NZtd2g++/mw+R5DMwxEgA0kvMSsdC8NdA+95DlyL6VH9pAzvOQIIWASGwy0oYEadbVeXjluR76Xlz5y6lKhBJVhMe2FM9fqdOpZRzWyUrE4W1zb0NanbgVl6qoHANSrZoZ6YfN6ao/L8XMgQQwzNmTJyglSVUyCDKHBbrKPerkKq55r++vY9akNjpGKKLxEb9EVd+IWe7BHmYv3yL3kdSlrOPKSFzSh0GB2dGXfXtgvl+XF3BajRiqyCEwikyHq4OyOIMTBpw0VEKA3Co227SOMBI2pDgA25ZEMy/ZDvo4TP0CitNKCMjRSKIh5zmce4JM1lmlvuLvk7uodWNrmVgEBIsEQABADyBFVT67A92o/rv5YXIwMxAIEyikgNWCXvrwN1GLPUbbOetBg3f2mcRP0sRoAYlZJUf9gwqV9v1z6gKWUtZwQxtIGJEy5IndOQZJFmIiEeM34pqxPAQKEQIV68RoSiBFAdWbjF79+M9S0DbXiQeQmUazCiGJyjrbkNv7clwh0t9LG6p3hSlRQ4xCCT0ZWQo5osEffdeT34+qXGFwrQhKTuyTcVerudCq5bK4NQGBiymToUBupiwUKIkQgEAGMvEaiYohlQy08XMBj1aAatsz3aS8yu705aKZah2aJGcMbo4WgKPtfkbngRwEIDP1NXKKaWwtKop7E3nEijuCQYi0lSSFWkhbxwlCwFAK8QCEBJDggCQRQRUaBZeWKiTCnyKP0dF1LdpWc5a692Ixa74RW4HaGBt2dThGQmDHsRwEA0pWo4oqpWQoQKdk15bLKgTkkOPI1FUmaYCiehTAoqpwABI7UAAqUAIgqAMqGHZ6sHdYYQXeym3symRvvxdac7mcn1utE7YCWNNCkdBUB0T1/Sk/60yPzkSkf8NtyRyUAYA46ySGRaLSjnOsQUQtMEC1MRAnoagkgAQACCRlEAkCFopZKIC0LsGn3jOoSgdtKbXFaV5r14tFrPkvsW9xLgxwUMB9uwmMQogeSDPl4ST26hUXBlqGgXbkuNThVwtkCi8y0g1oYworgYhCYJCR0kAACBQRADIoLhsMAhmJhg0s6iUuw+cZ7Yq2Zaj+ltwIDhSalWIgShM6DIqDi6YC5ZPZ8s2SO1R2JEuUyqCvY9pzmvjxFSavOJ7CCsJuGlcAQVQvOkFB4SQ2khAxEAVAt5Rl2MbN7Jam0WxLXUTWxnkPbvLZdR28juJoGG0azxUIU1MOfACB9U2AhWexL5M04AUsgBAwhOzVttlOEqOodOZlTDkKeOUNn4sKVq5JhMiGAgAAQpAIXic6lb5rzjFJKTus1yWkkgIOQNJGVTAvLCbpiLOZYsIpOAUDod8hy6fxGeVk/gGRYZEkDKLEGETeZ2tRQyslucwXVVaKUw1UximFyYVCFOBAQAJXRFGvpKkek3WpidZGLUcg9ENCuFC3iWktKtnVgnDyULQV2fwkANT4MEBzOSvNyYJCoQEgEEG2Vg3PlbDFJS3Vr0QzlOhVQTzxy5ap0FCoGCYEGFAKCVBTjuVGedIybTQQj5UupR3FzT3ElWbQ0BANoc8TS8RN1VGWMrK8/AAA4B36Bjh8rZq2819LBtFIEMSGV6PT9RJo4AXTpSmViCqgkqsgVG65MNkwmVQJHAEFNabRUW9Vb8GFTVbGazloPjRaydkeHDtq0sb7ZHJHx1pKl2J/BJQAAEp9FTpxqBn17fcpWsCeQFAoQh1qTgk8qfWTs5i7N3akoSd/EYHLlypVBFVDWiMokqIBiRYlm2hJ09Rlbt1ZSaEtaQxFMmRNwX7SOdI57J05FhpTzEgAAQD+PJkaNfOhEbHzRK1G0IRuGIiROPudEa2rJpJgq1YRUVZn6gIELVwxcuCJwEBOTElOiRDg3zZGbA57nIqkJZk3FJHtghiSwyl2Vz1zQ0svraKyCNNj5/8Cf4CPoQ2/QjH1P3Ho8DLWWsAJc3TyBtwXEVeeDrF1jpiRE4ICGxmQyAYgzJIwEtaEoyYU14US4nqtQkmvN9ZQuHQxF1qSFbtH/v5PKOv7ArZUq8xq48v8AtFn06jsuBjF45r2Tsw6CZS0pdZjaFCopVIkr5bDFueldH5koTCYThQkAJDZIqEKC1OWypmq34ECSNjmRbSxIakGcgPD8BzBOwuVcqox57gfuu+jTB6H/Te/6AHN89QNLGkMrBihA0K2nGjsfASJJQMaEKbqijygoGClQwAwqR4DJEUBFVRUK7RRjJmmSJC2N22z7CaAWFSVRbtONx57y79HjX99GY2X8ttK/XgDhfcC9onUB//kFs1F36wufKFIkUUBAAKBbVEDTbMGEllLuSo06ooJCICICPgbvIUcQhcmBaemSGRPTTbKxnLZCF7+a7hxmBhnaZGHhsWdytxaevwRU7o0gBO5fmefQw/k13vs+ML7ukf6iMjKIimRQjkSWKYcywU0LtV0nc2x4CVBFRcXI1YeL91eMDICJytFkBafuIV3S0v/SS19XI+tJuylniVObZp3licdwf/+OGwv9vJZ9eRZ4R3A9c4fl774f07IZn/EKUkNAIsCk0yl3sgoopQI5MtMBagRU0REFgajA0YVrdCuAnAE4oloe/BaSGoOc850prx1ubMkNNb1hg0je8p50dPNex33wHRUt4CC4907AotkdDG8sfOyL6PFVD5mAipIhaa6zSqVE7ZRUKIJtzElaHlGpoJBBcDaak7mM0w6DAQCAkaC7tZ+2X6RJuplOCYFtSZW7h9CG1TzulLhvza6sFDyo/WsD8IDgH/imjHd/iXPs2lo66hpFLKIQh3NVgp1rVlZNGsfog3WREgACRCeKyIjk5RUIAkyGMdiMrv+311o9SDDk0hFtzdcgExa64XDHRt6ntgwV3wCXHwQodh/yypW7GdGHz32lEcCS6Kolk0/bDlcOk7sSWbsXU29yFAUdAhH01kJ/FMFRoqAwUQAbiDOchmNf5NTDfeceI7WrbW0ypx6G3e9C+f5W+nWtpg4OAw9cm/cCNwq8dg2Mfa/D0ogAAtWvqhNp7mV0F9NoCQ3LxtZNgVYUAHeDN90ayHA1uhMAABEwGjyzxOz3PQ3cvkvrjv1owKFy334swm7LHnsZ4RfVbgXX7pr3Hwwo9lAEb0V27AUooiKANKSNQD4oSiWr2WkNlZmjz3XTWKKECiC6EKR1NBBBlXG4ABAEqKvrD5YYwIkgqFuGr3k6nZPbb52lvyRRRQWGHFv3AF65kqjBm8BD9muh4bUMU79jsisFNpDYAHINSEqTmHKLwabpcHa73WDUSVhghgIFR6QvY76rioocEQABHJDcvrFEfCaFGW5oKUUap+1Im1KOaqqNgHU7XUEur9FHie88TOXVzjANNw2KPRGkBNrckWhmxy59LddykKyWbWijdMN8StThHlownVvqiaEA8gZZCEiURXC9YZkVNkXWbnv0HW63/2vQ3b42Od6ytJJkw4Tg6tLJIw0k/PQwI/6UpRA10dnIxgYrkipqLfWd1rvAkZj4zDRIEkTN1ORWbQHuoUDJDBwvGstUByljSqYCACBAbjGe3G6Ldu0Wlm3GfmVzF5g3m30SsgCmzTMcHT6Rg6KnyT/+eRgAfJ6CI4GjA1UDEURw6NppKLdRW+F6m08Wndgg4A1u2gQEUNFxtsiRqUpasETwNighEAC36YvZWbKzwsRXopb7oF2Qc9Pb//wUBCCbB8Dbl5IBvwMe2vghw6mIZhxGgxYUERs4XUpUcrTSZKVwEE5aTrrlEB1BVIqeg9ZKQZWjCNSJXp4QCLxAcOOxM5ltsbjSyqFw6B0btlNPmNbovyuSZZQ2DgjOHkMg/fxwxfncciLwUl+0hZAUDHDfjiUcnHxTXaMmRDEJbt5ct50pwD2AC9SXS5YsiiLIdJZ6RCQQyG45NlWyokXpocP2RvH0g9jbk9Ejg2D3jS7kjAtriQbw2sN102edaEaOJFifOgvKQnCNfIBaz8F1I1mb4qxi6ObjlF8miqDp6HJgCymQoixFemvcIAVkEJHdpg3EZEhgPz31Hhf2Xu1vk6U/W1IZQZ+1AZzMuhksWlPmg4cD//XsJejVyMEnUQQRRRAVmxsqDeeeuiZUhSF7y2LFfc8hZZL4Y+2oXcuTBSEue99dH0Emo7hHbxAEtrlygy2q7c7EJoE71SnXVFSsCva/JOuD5yoi/QZuPhyQcj6O4IXAyUS031AkgzCEICzrSY7E52vNbnISoBu1lB8MyL65aptegaywe+a3hRAE2c1zmwSEo9qr95/b0e7XO0G7UrR0VIiK7N4akwbedS1RmJ+AR9jJvq3omrwROPkqsgQ7sSQwAPXt1rou1NJB0NbIKIdwMPXn+stEipn2SlfxkftlnRAKYjJtY2Nx0bdFDQF7dw1KJpqUpk7I9L1PIK8fcQ6kwcuPYs6+bNzO9G9QDuyTXWRhaDgxmYS2XBKnQzEVpMm0by5HfjD4yjV/n4TS9KzNtXeFt3yfD5/dnoJQ7Hs1JLe0IU69cPgANZlFK25jsSh95tbODck/XZm1anNn1OvDRwEuRXw3osMZJwIvfH3x792QCU3poKFzRorUkmVltuKA9IWt999x64v/TH1vCR3cNFO0lSuFjc+t70PX9tnFBzafWScLQ00Mquxd/YiYIAzEQe1G9q2vxcLLF944IEg8Bs4/CkBxZ5Esf1M42XvkKO81m2xDQSg5Ka11PzPLIpnUttsPFge3bDfbUAyWTWuDciee3Ndnn1t9dw6LO/UdyqGClLgEk7hgTTUT87Snfz24I/nbUy0ENd72A48UfJgynxY54niOHNy+7+I+mLSWxWD8/9PKtelcCG1NW8nAbthRu+0MjgLroKHpDZnlYdMm7aHY7olym7XLFDVzcDDYNNzN88erL/9k6V1vevNAFxI/A589GkBxaR0V68/oBhy4V9uVe8NtGMvuC2kBkwKraErTgiiu8H30kS3QFSZ274QFSNMbTpoG0aYQE9O6d9PyNpmVJksRmPc8cuP8cUP+4FSBMOl5zgMe9YLXikyVsWNjBIA3LigCoEaK2A6Siy2OPmLZxp7UGs/U9BU6JZv9trc//c+U4suXmu2dBNb0Np1iimY3SFAbQA+OL2ll+XrZ2X8yZAVD7vnAI59zlRswHTuATGzVFdALWhFkqQ0pLkwbhGnLHpviTvcg70glt6Zbs23ybu1tum5tw73cQIDYzWoZoB/6yHJtQUkEW5tBaBwN+y5ltUcHDPrW2SrMUGBIAKqBykZrFRoCaEpLQVIhN/mlie/pVj/TWeqpbainnoMAT2bt1AZiaHkHlrXds3oiWlZIlBgMCWqUmDHNgce5aHsXQBINzwDoqKqRoiYRsMZcaYWkPq1tN9pjb5gaqqYVG2FrtP1qNh6bSaKRu+w7HF2rwHBRiRLBSmksQQ8qdAIe74DTGCgQcDuACPbeGB2du9oZn+W1Nhc7+jS3oYiGf+xN271HT7XjS23q+mPnsLBdH3E7JXTwQbtXHlpu7Z3QAcxHiYCABjWBx9x1FWtxRSQwXT/QRA4mRs1fX9yF/UUlWSN77Ik33ri1zf234zY+P4fVw622t6FyuDenWqwQts1NrmaPGpsUR01wOGohE9Jx8qZ8Lva4APwjT0olqB3FbXppKgAUrp7vf9P99UWSWBzcrjYy7K1J0uu9LzEGqVwP9gW3DtpesbB7k6MeNt6j+5xRnHeZykWABS3YxJBiwOP/MM6aNw3ZSsaZA6+duU171tXS7dvL7tzelXshkpP3wc3mtq3SOBHSbfqG2f/WJNfsDa49u5sNzz0873T9cT2ux+fdOY5AUECA8evH/eMm8CSCqINPzKJENS0YKza++BNf8kKqAOT8qROHjp44vnJroWs0lgkB6qgUI0vDMA5jVENNQab5lelgamn6wLy0QYGKGstGDa2sGm3a2HLnc++ssCJQMBt88Bp/cF0K9awWGlwOfQUBT2jiu9IvggytNLR68kVPHLy1ciABCArcXLgTNUGPJH0dg9BH/dBf0QEAVJAaSAItwszC7EIT9JZKk5Lh0ZCMbdQBK1Ew46LxyoV/eBtTUZGAgEp/hPsHEAFPLPil4u6M88EKSJBBsn6PL/jE+jsbRgQAAACQCaES0EHVi+4GcyDqq0YmfRMiNQJAIAEkAgIBcuHK4QvvunL6hKGxKjLUPNUxxz7qf98AT3S/v+6e8d2RaEEyTRvLUEMLgi4s25roGB2MFH0dJcnGzWSK7gVzXb2lnDFvKSgQ1FgD1dJRt2u4GB8Mb3UhVU1we60rC/cOXT1WDxIBSIaagj9kswv/3Aci4Ekf9bfkdd/pEppo08q2nilRK5JkZKghi6ACKAKoJ1XUWFmqKCAZhSyNlahIRVkEWQpkCAqopWv0JEvl/N+431h0Tg77++fgEfB0frEfVCj+v1/t2b54VVtkBVCxj1mtWKF4yfhP4apxvcqcy+6/O7n+x/8u9Ly7u+jz465fR/2+n5xHfquqlbtKNjVqW02mZLBYUZUGpYtNZujgUdGFjuvPbM9jv8C/3gWngKf9S/wj+AACEAKPdhIZACgCPgEEAA==";var GH=n=>{var i=n,{border:e,size:t="sm"}=i,r=Le(i,["border","size"]);let o=t==="md"?36:24;return x.createElement(x.Fragment,null,e&&x.createElement("svg",{className:Mn(e,"absolute left-1/2 top-1/2 w-[34px] -mt-[2px] transform -translate-x-1/2 -translate-y-1/2"),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 26 26"},x.createElement("path",{d:"M8.382 2.244a6.938 6.938 0 0 1 9.236 0l1.626 1.451c.346.308.722.581 1.122.815l1.882 1.098a6.937 6.937 0 0 1 2.854 8.784l-.877 1.995c-.187.424-.33.866-.428 1.319l-.463 2.129a6.938 6.938 0 0 1-7.473 5.429l-2.168-.218a6.934 6.934 0 0 0-1.386 0l-2.168.218a6.938 6.938 0 0 1-7.473-5.429l-.463-2.13a6.937 6.937 0 0 0-.428-1.318l-.877-1.995a6.938 6.938 0 0 1 2.854-8.784L5.634 4.51c.4-.234.776-.507 1.122-.815l1.626-1.45Z"})),x.createElement("img",_e(ne({src:GT},r),{alt:"Verified",width:o,height:o})))},YT=GH;c();d();f();var YH=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),x.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.665 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-6-3.334a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Zm-1.333 1.5a.5.5 0 0 0 0 1h.167v4.167a.5.5 0 1 0 1 0V6.665a.5.5 0 0 0-.5-.5h-.667Z",clipRule:"evenodd"})),XT=YH;var XH=()=>x.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6"},x.createElement(YT,{className:"h-12 w-12"}),x.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"IDKit and World ID are fully privacy preserving."),x.createElement("ul",{className:"mb-6 list-disc space-y-3 px-4"},x.createElement("li",{className:"text-left dark:text-white"},"Phone numbers are never kept by anyone. IDKit and its phone carrier only uses your number to deliver a one-time code.",x.createElement("ul",{className:"text-9eafc0 dark:text-9eafc0 mt-3 list-disc pl-4"},x.createElement("li",null,"Apps only receive a hash-like nullifier which can't be reversed. Worldcoin or IDKit don't store nullifier hashes."))),x.createElement("li",{className:"text-left dark:text-white"},"Orb biometrics analyzed by the Orb are not stored. Orb credential is used with Zero-Knowledge Proofs which makes it cryptographically impossible to track persons across applications."),x.createElement("li",{className:"text-left dark:text-white"},"Our code is fully open source or source available on"," ",x.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0 underline",rel:"noreferrer"},"GitHub"),".")),x.createElement("div",{className:"-ml-4 flex items-center space-x-3"},x.createElement(XT,{className:"h-4 w-4 text-white"}),x.createElement("p",{className:"whitespace-nowrap text-sm font-medium text-white"},"Apps will never see your phone number or biometrics."))),ZT=XH;c();d();f();c();d();f();var ZH=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),x.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),QT=ZH;var QH=e=>e.copy,JH=()=>{let e=Sn(QH);return x.createElement("div",{className:"space-y-6"},x.createElement("div",{className:"-mt-5 flex items-center justify-center"},x.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},x.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},x.createElement(QT,{className:"w-8 text-white"})))),x.createElement("div",null,x.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),x.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},pa(e,"success"))))},JT=JH;c();d();f();c();d();f();var nI=me(Pe(),1),iI=me(Pe(),1),oI=me(iD(),1);c();d();f();var Jf=me(Pe(),1),JO=me(oD(),1),eI=me(XO(),1);c();d();f();var dW=e=>x.createElement("svg",_e(ne({},e),{viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M26.979 17.9748C27.0917 18.106 27.2493 18.1906 27.4209 18.212C27.5926 18.2335 27.7661 18.1903 27.9076 18.0909C29.2231 17.1623 31.4672 15.6147 33.9047 14.0864C35.7135 16.1216 36.9017 18.6323 37.3288 21.3215C39.244 18.5745 44.6607 11.4941 39.9985 7.95389C36.0133 4.99405 27.6561 13.8349 26.8243 17.3557C26.7972 17.4637 26.7972 17.5767 26.8241 17.6846C26.8511 17.7926 26.9043 17.8923 26.979 17.9748Z"}),x.createElement("path",{d:"M30.229 22.6759C30.1037 22.74 30 22.8396 29.931 22.9623C29.8619 23.085 29.8306 23.2253 29.841 23.3657C29.8513 23.5061 29.9028 23.6404 29.989 23.7516C30.0752 23.8629 30.1924 23.9463 30.3257 23.9914C31.8734 24.4556 34.485 25.2488 37.1933 26.1967C36.7314 28.8866 35.5021 31.3857 33.6532 33.3932C36.9999 33.1611 45.9181 32.9869 45.802 27.1446C45.6279 22.1922 33.5177 21.1476 30.229 22.6759Z"}),x.createElement("path",{d:"M28.1784 28.6729C28.0788 28.6249 27.9697 28.6 27.8592 28.6C27.7487 28.6 27.6395 28.6249 27.54 28.6729C27.386 28.7555 27.2675 28.8916 27.2069 29.0555C27.1464 29.2194 27.1478 29.3998 27.2111 29.5627C27.8302 31.0523 28.8361 33.6059 29.7647 36.3143C25.7215 38.5003 21.9492 38.0167 21.9492 38.0167C24.1932 40.4929 29.8808 47.3605 34.3882 43.6462C38.1412 40.4155 31.4284 30.2785 28.1784 28.6729Z"}),x.createElement("path",{d:"M22.2201 30.7816C22.1968 30.674 22.1476 30.5737 22.0768 30.4895C22.006 30.4052 21.9158 30.3395 21.8138 30.2979C21.6537 30.2287 21.4734 30.2221 21.3086 30.2794C21.1438 30.3367 21.0065 30.4538 20.924 30.6075C20.1308 32.0003 18.7766 34.3605 17.229 36.798C14.7141 35.7418 12.5577 33.9818 11.0191 31.7295C10.4775 35.0375 8.65899 43.7623 14.3659 44.9617C19.2409 45.9096 22.9746 34.3411 22.2201 30.7816Z"}),x.createElement("path",{d:"M16.8614 27.454C16.9266 27.3665 16.971 27.2652 16.9912 27.1579C17.0113 27.0506 17.0066 26.9402 16.9774 26.835C16.9359 26.6637 16.8309 26.5146 16.6837 26.4176C16.5365 26.3207 16.358 26.2832 16.1843 26.3126C14.598 26.5641 11.909 26.9704 9.04584 27.2799C8.31322 24.6557 8.34678 21.8767 9.14257 19.2709C6.22142 20.8959 -1.74887 24.9004 0.882103 30.1237C3.16486 34.5151 14.5593 30.2591 16.8614 27.454Z"}),x.createElement("path",{d:"M16.1262 21.1668C16.2366 21.1694 16.3458 21.1442 16.4438 21.0935C16.5419 21.0427 16.6256 20.9682 16.6872 20.8766C16.7957 20.7414 16.8481 20.5697 16.8337 20.3969C16.8193 20.2241 16.7392 20.0635 16.6099 19.948C15.4104 18.8647 13.4179 17.0075 11.406 14.9569C12.9978 12.7444 15.1943 11.0382 17.7319 10.0432C14.6366 8.78577 6.53092 5.03277 4.07406 10.3334C2.06214 14.8602 12.5086 21.1088 16.1262 21.1668Z"}),x.createElement("path",{d:"M21.156 16.9495C21.3329 16.9453 21.5019 16.8757 21.6305 16.7543C21.7591 16.6328 21.8382 16.468 21.8525 16.2917C21.9492 14.7054 22.162 11.9777 22.5102 9.13394C25.2291 8.99787 27.9294 9.64945 30.287 11.0104C29.3585 7.79911 27.2498 -0.867611 21.5816 0.525254C16.784 1.76336 18.3703 13.8155 20.595 16.698C20.6598 16.7837 20.7452 16.8517 20.8433 16.8957C20.9413 16.9397 21.0489 16.9582 21.156 16.9495Z"})),ZO=dW;var hW=window.btoa((0,eI.renderToString)(x.createElement(ZO,{style:{color:"#6445DD"}}))),QO=new JO.default({width:200,height:200,type:"svg",image:`data:image/svg+xml;base64,${hW}`,cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},dotsOptions:{color:"currentColor",type:"extra-rounded"},backgroundOptions:{color:"transparent"},imageOptions:{margin:4,hideBackgroundDots:!0}}),tI=({data:e,className:t=""})=>{let r=(0,Jf.useRef)(null);return(0,Jf.useEffect)(()=>{!r.current||QO.append(r.current)},[]),(0,Jf.useEffect)(()=>{QO.update({data:e})},[e]),x.createElement("div",{ref:r,className:Mn(t,"relative z-0 flex items-center justify-center rounded border box-border border-white/10 dark:border-black/10 [&_*]:text-black dark:[&_*]:text-white")})};c();d();f();var pW=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),x.createElement("path",{fill:"currentColor",d:"M13.973 9.133c.446-1.896 4.862-6.64 6.969-5.057 2.453 1.9-.408 5.716-1.416 7.192 0 0-.201-2.042-1.81-3.894a81.232 81.232 0 0 0-3.162 2.154.374.374 0 0 1-.559-.173.393.393 0 0 1-.022-.222Zm1.8 2.863a.358.358 0 0 0-.202.273.382.382 0 0 0 .048.266c.048.08.123.138.211.164a80.06 80.06 0 0 1 3.624 1.183c-.422 2.433-1.862 3.864-1.862 3.864 1.761-.117 6.47-.21 6.407-3.351-.09-2.663-6.489-3.225-8.226-2.4Zm-1.08 3.214a.364.364 0 0 0-.417.064.377.377 0 0 0-.087.42c.317.801.85 2.165 1.348 3.625-2.135 1.178-4.132.919-4.132.919 1.186 1.329 4.19 5.022 6.561 3.02 1.992-1.73-1.555-7.178-3.273-8.047Zm-3.144 1.144a.369.369 0 0 0-.216-.264.359.359 0 0 0-.47.161 80.237 80.237 0 0 1-1.949 3.327c-2.232-.967-3.278-2.721-3.278-2.721-.283 1.774-1.253 6.469 1.766 7.114 2.568.508 4.55-5.712 4.147-7.617Zm-2.832-1.798a.39.39 0 0 0-.088-.554.364.364 0 0 0-.262-.057 75.98 75.98 0 0 1-3.773.523c-.648-2.384.048-4.304.048-4.304-1.54.874-5.75 3.029-4.367 5.828 1.209 2.365 7.223.069 8.442-1.436Zm-.389-3.376a.355.355 0 0 0 .303-.152.386.386 0 0 0-.048-.508 72.636 72.636 0 0 1-2.75-2.677c1.43-1.998 3.34-2.638 3.34-2.638-1.632-.684-5.908-2.702-7.2.151-1.065 2.433 4.44 5.794 6.355 5.824Zm2.664-2.262a.371.371 0 0 0 .246-.106.384.384 0 0 0 .114-.246c.053-.865.168-2.326.346-3.86 2.428-.107 4.108 1.016 4.108 1.016-.49-1.724-1.603-6.385-4.598-5.643-2.534.67-1.69 7.148-.523 8.697a.374.374 0 0 0 .307.142Z"})),rI=pW;var mW=({qrData:e,showQR:t,setShowQR:r})=>{let n=Su(),[i,o]=(0,nI.useState)(!1),s=(0,iI.useCallback)(()=>{var a;(0,oI.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return x.createElement(x.Fragment,null,x.createElement(fl,null,(n=="desktop"||t)&&x.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},x.createElement("div",{className:"text-29343f dark:text-white"},e?x.createElement(tI,{data:n=="desktop"?e.default:e.mobile}):x.createElement("div",{className:"flex h-[202px] w-[202px] items-center justify-center"},x.createElement(hs,{className:"h-24 w-24"}))))),x.createElement("div",{className:"space-y-4"},x.createElement(ur.a,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-button",href:e==null?void 0:e.mobile,className:Mn("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d md:hidden")},x.createElement(rI,{className:"h-5 w-5"}),x.createElement(ur.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),x.createElement("div",{className:"space-x-2 md:hidden"},x.createElement(ur.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&x.createElement(x.Fragment,null,x.createElement("span",{className:"text-9eafc0"},"\xB7"),x.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},sI=mW;var zd=me(Pe(),1);c();d();f();var d2=(a=>(a.ConnectionFailed="connection_failed",a.VerificationRejected="verification_rejected",a.AlreadySigned="already_signed",a.InvalidActionID="invalid_action_id",a.InvalidSignal="invalid_signal",a.UnexpectedResponse="unexpected_response",a.GenericError="generic_error",a))(d2||{});c();d();f();var R9=me(Pe(),1);c();d();f();function h2(e,t){let r=new window.URL("https://worldcoin.org/verify");return r.searchParams.append("w",e),t&&r.searchParams.append("r",t),r.toString()}c();d();f();var aI="c3e6053f10efbb423808783ee874cf6a";c();d();f();var FF=me(gm());c();d();f();var Co=me(xs()),M_=me(gm()),j7=me(XI()),ac=me(JR()),Tt=me(L2());c();d();f();Lm();var PA=me(xs()),Bm=class extends _i{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var zm=class extends _i{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},Hm=class{constructor(t,r){this.logger=t,this.core=r}},qm=class extends _i{constructor(t,r){super(),this.relayer=t,this.logger=r}},Km=class extends _i{constructor(t){super()}},Wm=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var Gm=class extends _i{constructor(t,r){super(),this.relayer=t,this.logger=r}};var Ym=class extends _i{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function ud(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}function Fl(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var md=me(nM()),FM=me(_a()),LM=me(go());c();d();f();var iM="EdDSA",oM="JWT",tb=".",rb="base64url",sM="utf8",aM="utf8",uM=":",lM="did",cM="key",nb="base58btc",fM="z",dM="K36";c();d();f();c();d();f();c();d();f();c();d();f();function jl(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function tg(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?jl(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function hM(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=tg(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return jl(r)}c();d();f();c();d();f();c();d();f();var ub={};Ar(ub,{identity:()=>JG});c();d();f();c();d();f();c();d();f();function GG(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var C=0,R=0,P=0,M=w.length;P!==M&&w[P]===0;)P++,C++;for(var A=(M-P)*p+1>>>0,$=new Uint8Array(A);P!==M;){for(var W=w[P],ee=0,q=A-1;(W!==0||ee<R)&&q!==-1;q--,ee++)W+=256*$[q]>>>0,$[q]=W%a>>>0,W=W/a>>>0;if(W!==0)throw new Error("Non-zero carry");R=ee,P++}for(var K=A-R;K!==A&&$[K]===0;)K++;for(var ue=u.repeat(C);K<A;++K)ue+=e.charAt($[K]);return ue}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var C=0;if(w[C]!==" "){for(var R=0,P=0;w[C]===u;)R++,C++;for(var M=(w.length-C)*l+1>>>0,A=new Uint8Array(M);w[C];){var $=r[w.charCodeAt(C)];if($===255)return;for(var W=0,ee=M-1;($!==0||W<P)&&ee!==-1;ee--,W++)$+=a*A[ee]>>>0,A[ee]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");P=W,C++}if(w[C]!==" "){for(var q=M-P;q!==M&&A[q]===0;)q++;for(var K=new Uint8Array(R+(M-q)),ue=R;q!==M;)K[ue++]=A[q++];return K}}}function v(w){var C=y(w);if(C)return C;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var YG=GG,XG=YG,pM=XG;c();d();f();var r1e=new Uint8Array(0);var mM=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},vo=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};var gM=e=>new TextEncoder().encode(e),yM=e=>new TextDecoder().decode(e);var ib=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},ob=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return wM(this,t)}},sb=class{constructor(t){this.decoders=t}or(t){return wM(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},wM=(e,t)=>new sb(ne(ne({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),ab=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new ib(t,r,n),this.decoder=new ob(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},Bl=({name:e,prefix:t,encode:r,decode:n})=>new ab(e,t,r,n),_s=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=pM(r,t);return Bl({prefix:e,name:t,encode:n,decode:o=>vo(i(o))})},ZG=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},QG=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},Xt=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Bl({prefix:t,name:e,encode(i){return QG(i,n,r)},decode(i){return ZG(i,n,r,e)}});var JG=Bl({prefix:"\0",name:"identity",encode:e=>yM(e),decode:e=>gM(e)});var lb={};Ar(lb,{base2:()=>eY});c();d();f();var eY=Xt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var cb={};Ar(cb,{base8:()=>tY});c();d();f();var tY=Xt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var fb={};Ar(fb,{base10:()=>rY});c();d();f();var rY=_s({prefix:"9",name:"base10",alphabet:"0123456789"});var db={};Ar(db,{base16:()=>nY,base16upper:()=>iY});c();d();f();var nY=Xt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),iY=Xt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var hb={};Ar(hb,{base32:()=>zl,base32hex:()=>uY,base32hexpad:()=>cY,base32hexpadupper:()=>fY,base32hexupper:()=>lY,base32pad:()=>sY,base32padupper:()=>aY,base32upper:()=>oY,base32z:()=>dY});c();d();f();var zl=Xt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),oY=Xt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),sY=Xt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),aY=Xt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),uY=Xt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),lY=Xt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),cY=Xt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),fY=Xt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),dY=Xt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var pb={};Ar(pb,{base36:()=>hY,base36upper:()=>pY});c();d();f();var hY=_s({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),pY=_s({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var mb={};Ar(mb,{base58btc:()=>ji,base58flickr:()=>mY});c();d();f();var ji=_s({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),mY=_s({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var gb={};Ar(gb,{base64:()=>gY,base64pad:()=>yY,base64url:()=>vY,base64urlpad:()=>wY});c();d();f();var gY=Xt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),yY=Xt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),vY=Xt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),wY=Xt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var yb={};Ar(yb,{base256emoji:()=>SY});c();d();f();var xM=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),xY=xM.reduce((e,t,r)=>(e[r]=t,e),[]),bY=xM.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function _Y(e){return e.reduce((t,r)=>(t+=xY[r],t),"")}function EY(e){let t=[];for(let r of e){let n=bY[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var SY=Bl({prefix:"\u{1F680}",name:"base256emoji",encode:_Y,decode:EY});var bb={};Ar(bb,{sha256:()=>zY,sha512:()=>HY});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var CY=EM,bM=128,PY=127,TY=~PY,DY=Math.pow(2,31);function EM(e,t,r){t=t||[],r=r||0;for(var n=r;e>=DY;)t[r++]=e&255|bM,e/=128;for(;e&TY;)t[r++]=e&255|bM,e>>>=7;return t[r]=e|0,EM.bytes=r-n+1,t}var OY=vb,IY=128,_M=127;function vb(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw vb.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&_M)<<i:(s&_M)*Math.pow(2,i),i+=7}while(s>=IY);return vb.bytes=o-n,r}var RY=Math.pow(2,7),AY=Math.pow(2,14),MY=Math.pow(2,21),NY=Math.pow(2,28),kY=Math.pow(2,35),FY=Math.pow(2,42),LY=Math.pow(2,49),$Y=Math.pow(2,56),UY=Math.pow(2,63),VY=function(e){return e<RY?1:e<AY?2:e<MY?3:e<NY?4:e<kY?5:e<FY?6:e<LY?7:e<$Y?8:e<UY?9:10},jY={encode:CY,decode:OY,encodingLength:VY},BY=jY,fd=BY;var dd=(e,t=0)=>[fd.decode(e,t),fd.decode.bytes],Hl=(e,t,r=0)=>(fd.encode(e,t,r),t),ql=e=>fd.encodingLength(e);var Pa=(e,t)=>{let r=t.byteLength,n=ql(e),i=n+ql(r),o=new Uint8Array(i+r);return Hl(e,o,0),Hl(r,o,n),o.set(t,i),new Kl(e,r,t,o)},SM=e=>{let t=vo(e),[r,n]=dd(t),[i,o]=dd(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new Kl(r,i,s,t)},CM=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&mM(e.bytes,t.bytes),Kl=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var xb=({name:e,code:t,encode:r})=>new wb(e,t,r),wb=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?Pa(this.code,r):r.then(n=>Pa(this.code,n))}else throw Error("Unknown type, must be binary type")}};var TM=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),zY=xb({name:"sha2-256",code:18,encode:TM("SHA-256")}),HY=xb({name:"sha2-512",code:19,encode:TM("SHA-512")});var _b={};Ar(_b,{identity:()=>WY});c();d();f();var DM=0,qY="identity",OM=vo,KY=e=>Pa(DM,OM(e)),WY={code:DM,name:qY,encode:OM,digest:KY};c();d();f();c();d();f();var E1e=new TextEncoder,S1e=new TextDecoder;c();d();f();c();d();f();var dr=class{constructor(t,r,n,i){this.code=r,this.version=t,this.multihash=n,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:ig,byteLength:ig,code:ng,version:ng,multihash:ng,bytes:ng,_baseCache:ig,asCID:ig})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==pd)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==JY)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return dr.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=Pa(t,r);return dr.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&CM(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return ZY(r,i,t||ji.encoder);default:return QY(r,i,t||zl.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return tX(/^0\.0/,rX),!!(t&&(t[RM]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof dr)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new dr(r,n,i,o||IM(r,n,i.bytes))}else if(t!=null&&t[RM]===!0){let{version:r,multihash:n,code:i}=t,o=SM(n);return dr.create(r,i,o)}else return null}static create(t,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==pd)throw new Error(`Version 0 CID must use dag-pb (code: ${pd}) block encoding`);return new dr(t,r,n,n.bytes)}case 1:{let i=IM(t,r,n.bytes);return new dr(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return dr.create(0,pd,t)}static createV1(t,r){return dr.create(1,t,r)}static decode(t){let[r,n]=dr.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=dr.inspectBytes(t),n=r.size-r.multihashSize,i=vo(t.subarray(n,n+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),s=new Kl(r.multihashCode,r.digestSize,o,i);return[r.version===0?dr.createV0(s):dr.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,y]=dd(t.subarray(r));return r+=y,h},i=n(),o=pd;if(i===18?(i=0,r=0):i===1&&(o=n()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let s=r,a=n(),u=n(),l=r+u,p=l-s;return{version:i,codec:o,multihashCode:a,digestSize:u,multihashSize:p,size:l}}static parse(t,r){let[n,i]=XY(t,r),o=dr.decode(i);return o._baseCache.set(n,t),o}},XY=(e,t)=>{switch(e[0]){case"Q":{let r=t||ji;return[ji.prefix,r.decode(`${ji.prefix}${e}`)]}case ji.prefix:{let r=t||ji;return[ji.prefix,r.decode(e)]}case zl.prefix:{let r=t||zl;return[zl.prefix,r.decode(e)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}},ZY=(e,t,r)=>{let{prefix:n}=r;if(n!==ji.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(i==null){let o=r.encode(e).slice(1);return t.set(n,o),o}else return i},QY=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(i==null){let o=r.encode(e);return t.set(n,o),o}else return i},pd=112,JY=18,IM=(e,t,r)=>{let n=ql(e),i=n+ql(t),o=new Uint8Array(i+r.byteLength);return Hl(e,o,0),Hl(t,o,n),o.set(r,i),o},RM=Symbol.for("@ipld/js-cid/CID"),ng={writable:!1,configurable:!1,enumerable:!0},ig={writable:!1,enumerable:!1,configurable:!1},eX="0.0.0-dev",tX=(e,t)=>{if(e.test(eX))console.warn(t);else throw new Error(t)},rX=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
25
|
+
`),()=>{document.head.removeChild(l)}},[t]),$u.createElement(Tw,{isPresent:t,childRef:n,sizeRef:i},$u.cloneElement(e,{ref:n}))}var Zp=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=xo(ij),u=(0,yf.useId)(),l=(0,yf.useMemo)(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:p=>{a.set(p,!0);for(let h of a.values())if(!h)return;n&&n()},register:p=>(a.set(p,!1),()=>a.delete(p))}),o?void 0:[r]);return(0,yf.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),gf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=gf.createElement($4,{isPresent:r},e)),gf.createElement(Zn.Provider,{value:l},e)};function ij(){return new Map}var Uu=e=>e.key||"";function oj(e,t){e.forEach(r=>{let n=Uu(r);t.set(n,r)})}function sj(e){let t=[];return bn.Children.forEach(e,r=>{(0,bn.isValidElement)(r)&&t.push(r)}),t}var Vu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",bp(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=F4(),u=(0,bn.useContext)(ru).forceRender;u&&(a=u);let l=Jp(),p=sj(e),h=p,y=new Set,v=(0,bn.useRef)(h),w=(0,bn.useRef)(new Map).current,_=(0,bn.useRef)(!0);if(yo(()=>{_.current=!1,oj(p,w),v.current=h}),pu(()=>{_.current=!0,w.clear(),y.clear()}),_.current)return Di.createElement(Di.Fragment,null,h.map(P=>Di.createElement(Zp,{key:Uu(P),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},P)));h=[...h];let D=v.current.map(Uu),C=p.map(Uu),I=D.length;for(let P=0;P<I;P++){let R=D[P];C.indexOf(R)===-1&&y.add(R)}return s==="wait"&&y.size&&(h=[]),y.forEach(P=>{if(C.indexOf(P)!==-1)return;let R=w.get(P);if(!R)return;let U=D.indexOf(P),j=()=>{w.delete(P),y.delete(P);let F=v.current.findIndex($=>$.key===P);if(v.current.splice(F,1),!y.size){if(v.current=p,l.current===!1)return;a(),n&&n()}};h.splice(U,0,Di.createElement(Zp,{key:Uu(R),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},R))}),h=h.map(P=>{let R=P.key;return y.has(R)?P:Di.createElement(Zp,{key:Uu(P),isPresent:!0,presenceAffectsLayout:o,mode:s},P)}),mu!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Di.createElement(Di.Fragment,null,y.size?h:h.map(P=>(0,bn.cloneElement)(P)))};c();d();f();var fT=Y(cT(),1),{__extends:Dhe,__assign:En,__rest:rm,__decorate:Ihe,__param:Ohe,__esDecorate:Ahe,__runInitializers:Rhe,__propKey:Nhe,__setFunctionName:Mhe,__metadata:khe,__awaiter:Lhe,__generator:Fhe,__exportStar:$he,__createBinding:Uhe,__values:Vhe,__read:Bhe,__spread:jhe,__spreadArrays:zhe,__spreadArray:dT,__await:Hhe,__asyncGenerator:Khe,__asyncDelegator:qhe,__asyncValues:Whe,__makeTemplateObject:Ghe,__importStar:Yhe,__importDefault:Xhe,__classPrivateFieldGet:Jhe,__classPrivateFieldSet:Zhe,__classPrivateFieldIn:Qhe}=fT.default;c();d();f();var Vn=(...e)=>e.filter(Boolean).join(" "),hT=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Ks=(e,t)=>e!=null&&e[t]?e[t]:A_[t];var aj=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-6"},g.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),g.createElement("p",{className:"text-70868f mt-4 text-center"},"World ID is an identity protocol centered around persons. It can be used to prove someone is doing something once without revealing personal information."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"It currently supports verification through biometrics (using a device called an Orb), and through phone numbers. Zero-Knowledge Proofs and other cryptographic mechanisms are used to preserve privacy."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),g.createElement("div",null,g.createElement(zt.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:Vn("inline-flex w-full justify-center space-x-2 items-center px-8 py-4 border border-transparent font-medium rounded-2xl shadow-sm","text-gray-500 dark:text-70868f bg-gray-200 dark:bg-29343f hover:bg-gray-300/50 dark:hover:bg-29343f/50","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-300 disabled:cursor-not-allowed transition")},g.createElement(zt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),pT=aj;c();d();f();var uj=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),lj={["GENERIC_ERROR"]:"Something went wrong",["INVALID_CODE"]:"Invalid code",["PHONE_OTP_REQUEST_ERROR"]:"We could not send you a code",["REJECTED_BY_HOST_APP"]:"Verification declined by app"},cj=()=>{var r;let{retryFlow:e,errorState:t}=Yr(uj);return g.createElement("div",{className:"space-y-8"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},g.createElement(ep,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},lj[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),g.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),g.createElement("div",{className:"flex justify-center"},g.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),g.createElement("div",null,g.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},mT=cj;c();d();f();var ju={opacity:[1,.1,.2,.4,.6,.8]},zu={repeat:1/0,duration:1,type:"spring"},fj=({className:e=""})=>g.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},g.createElement(zt.path,{animate:ju,transition:zu,d:"M21.985 17.835a.742.742 0 0 0 .492-.211.768.768 0 0 0 .227-.492c.106-1.73.337-4.651.692-7.72 4.857-.214 8.217 2.033 8.217 2.033-.98-3.45-3.206-12.771-9.196-11.286-5.069 1.339-3.38 14.296-1.047 17.393a.75.75 0 0 0 .615.284Z"}),g.createElement(zt.path,{animate:ju,transition:se(H({},zu),{delay:.15}),d:"M27.946 18.265c.892-3.791 9.724-13.28 13.938-10.113 4.905 3.8-.816 11.432-2.832 14.383 0 0-.403-4.084-3.619-7.788a162.5 162.5 0 0 0-6.326 4.31.748.748 0 0 1-.839-.004.784.784 0 0 1-.323-.788Zm3.6 5.727a.714.714 0 0 0-.404.547.764.764 0 0 0 .097.532.74.74 0 0 0 .422.328c1.632.489 4.387 1.349 7.247 2.365-.844 4.866-3.724 7.73-3.724 7.73 3.523-.235 12.94-.421 12.815-6.704-.183-5.325-12.978-6.45-16.453-4.798Z"}),g.createElement(zt.path,{animate:ju,transition:se(H({},zu),{delay:.35}),d:"M29.386 30.421a.727.727 0 0 0-.834.128.756.756 0 0 0-.174.84c.633 1.602 1.699 4.329 2.697 7.25-4.272 2.355-8.265 1.837-8.265 1.837 2.371 2.658 8.38 10.045 13.122 6.039 3.984-3.46-3.11-14.354-6.546-16.094Z"}),g.createElement(zt.path,{animate:ju,transition:se(H({},zu),{delay:.55}),d:"M23.098 32.706a.739.739 0 0 0-.432-.527.718.718 0 0 0-.533-.027.733.733 0 0 0-.408.35 160.789 160.789 0 0 1-3.897 6.654c-4.464-1.935-6.556-5.443-6.556-5.443-.567 3.547-2.506 12.937 3.532 14.227 5.136 1.016 9.1-11.423 8.294-15.233Z"}),g.createElement(zt.path,{animate:ju,transition:se(H({},zu),{delay:.7}),d:"M17.434 29.113a.778.778 0 0 0-.177-1.108.729.729 0 0 0-.523-.114c-1.68.274-4.531.714-7.546 1.046-1.295-4.769.096-8.609.096-8.609-3.08 1.75-11.5 6.058-8.735 11.657 2.42 4.73 14.447.137 16.885-2.872Z"}),g.createElement(zt.path,{animate:ju,transition:se(H({},zu),{delay:.85}),d:"M16.657 22.361a.709.709 0 0 0 .605-.303.772.772 0 0 0-.096-1.016 145.357 145.357 0 0 1-5.5-5.355c2.86-3.996 6.68-5.276 6.68-5.276-3.264-1.368-11.817-5.404-14.399.303-2.13 4.866 8.88 11.588 12.71 11.647Z"})),Do=fj;c();d();f();c();d();f();function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_e.apply(this,arguments)}var fe=Y(ue()),MT=Y(Os());c();d();f();function yr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}c();d();f();var gT=Y(ue());function dj(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Dw(...e){return t=>e.forEach(r=>dj(r,t))}function vr(...e){return(0,gT.useCallback)(Dw(...e),e)}c();d();f();var Bn=Y(ue());c();d();f();var Ir=Y(ue());function yT(e,t){let r=(0,Ir.createContext)(t);function n(o){let l=o,{children:s}=l,a=de(l,["children"]),u=(0,Ir.useMemo)(()=>a,Object.values(a));return(0,Ir.createElement)(r.Provider,{value:u},s)}function i(o){let s=(0,Ir.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function Hu(e,t=[]){let r=[];function n(o,s){let a=(0,Ir.createContext)(s),u=r.length;r=[...r,s];function l(h){let C=h,{scope:y,children:v}=C,w=de(C,["scope","children"]),_=(y==null?void 0:y[e][u])||a,D=(0,Ir.useMemo)(()=>w,Object.values(w));return(0,Ir.createElement)(_.Provider,{value:D},v)}function p(h,y){let v=(y==null?void 0:y[e][u])||a,w=(0,Ir.useContext)(v);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,p]}let i=()=>{let o=r.map(s=>(0,Ir.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||o;return(0,Ir.useMemo)(()=>({[`__scope${e}`]:se(H({},a),{[e]:u})}),[a,u])}};return i.scopeName=e,[n,hj(i,...t)]}function hj(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){let s=n.reduce((a,{useScope:u,scopeName:l})=>{let h=u(o)[`__scope${l}`];return H(H({},a),h)},{});return(0,Ir.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var Ot=Y(ue());var Io=(0,Ot.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=de(s,["children"]),i=Ot.Children.toArray(r),o=i.find(mj);if(o){let a=o.props.children,u=i.map(l=>l===o?Ot.Children.count(a)>1?Ot.Children.only(null):(0,Ot.isValidElement)(a)?a.props.children:null:l);return(0,Ot.createElement)(Iw,_e({},n,{ref:t}),(0,Ot.isValidElement)(a)?(0,Ot.cloneElement)(a,void 0,u):null)}return(0,Ot.createElement)(Iw,_e({},n,{ref:t}),r)});Io.displayName="Slot";var Iw=(0,Ot.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=de(i,["children"]);return(0,Ot.isValidElement)(r)?(0,Ot.cloneElement)(r,se(H({},gj(n,r.props)),{ref:Dw(t,r.ref)})):Ot.Children.count(r)>1?Ot.Children.only(null):null});Iw.displayName="SlotClone";var pj=({children:e})=>(0,Ot.createElement)(Ot.Fragment,null,e);function mj(e){return(0,Ot.isValidElement)(e)&&e.type===pj}function gj(e,t){let r=H({},t);for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{o(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]=H(H({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return H(H({},e),r)}function vT(e){let t=e+"CollectionProvider",[r,n]=Hu(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{let{scope:w,children:_}=v,D=Bn.default.useRef(null),C=Bn.default.useRef(new Map).current;return Bn.default.createElement(i,{scope:w,itemMap:C,collectionRef:D},_)},a=e+"CollectionSlot",u=Bn.default.forwardRef((v,w)=>{let{scope:_,children:D}=v,C=o(a,_),I=vr(w,C.collectionRef);return Bn.default.createElement(Io,{ref:I},D)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=Bn.default.forwardRef((v,w)=>{let U=v,{scope:_,children:D}=U,C=de(U,["scope","children"]),I=Bn.default.useRef(null),P=vr(w,I),R=o(l,_);return Bn.default.useEffect(()=>(R.itemMap.set(I,H({ref:I},C)),()=>void R.itemMap.delete(I))),Bn.default.createElement(Io,{[p]:"",ref:P},D)});function y(v){let w=o(e+"CollectionConsumer",v);return Bn.default.useCallback(()=>{let D=w.collectionRef.current;if(!D)return[];let C=Array.from(D.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((R,U)=>C.indexOf(R.ref.current)-C.indexOf(U.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,n]}c();d();f();var Fe=Y(ue());c();d();f();var Ku=Y(ue()),wT=Y(Os());var yj=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],tr=yj.reduce((e,t)=>{let r=(0,Ku.forwardRef)((n,i)=>{let u=n,{asChild:o}=u,s=de(u,["asChild"]),a=o?Io:t;return(0,Ku.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Ku.createElement)(a,_e({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,se(H({},e),{[t]:r})},{});function nm(e,t){e&&(0,wT.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var qu=Y(ue());function Vr(e){let t=(0,qu.useRef)(e);return(0,qu.useEffect)(()=>{t.current=e}),(0,qu.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var xT=Y(ue());function bT(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e);(0,xT.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Ow="dismissableLayer.update",vj="dismissableLayer.pointerDownOutside",wj="dismissableLayer.focusOutside",ET,ST=(0,Fe.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Aw=(0,Fe.forwardRef)((e,t)=>{var r;let $=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:u}=$,l=de($,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),p=(0,Fe.useContext)(ST),[h,y]=(0,Fe.useState)(null),v=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,w]=(0,Fe.useState)({}),_=vr(t,G=>y(G)),D=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(C),P=h?D.indexOf(h):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,U=P>=I,j=bj(G=>{let X=G.target,W=[...p.branches].some(J=>J.contains(X));!U||W||(o==null||o(G),a==null||a(G),G.defaultPrevented||u==null||u())},v),F=Ej(G=>{let X=G.target;[...p.branches].some(J=>J.contains(X))||(s==null||s(G),a==null||a(G),G.defaultPrevented||u==null||u())},v);return bT(G=>{P===p.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&u&&(G.preventDefault(),u()))},v),(0,Fe.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(ET=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),_T(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=ET)}},[h,v,n,p]),(0,Fe.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),_T())},[h,p]),(0,Fe.useEffect)(()=>{let G=()=>w({});return document.addEventListener(Ow,G),()=>document.removeEventListener(Ow,G)},[]),(0,Fe.createElement)(tr.div,_e({},l,{ref:_,style:H({pointerEvents:R?U?"auto":"none":void 0},e.style),onFocusCapture:yr(e.onFocusCapture,F.onFocusCapture),onBlurCapture:yr(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:yr(e.onPointerDownCapture,j.onPointerDownCapture)}))});var xj=(0,Fe.forwardRef)((e,t)=>{let r=(0,Fe.useContext)(ST),n=(0,Fe.useRef)(null),i=vr(t,n);return(0,Fe.useEffect)(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,Fe.createElement)(tr.div,_e({},e,{ref:i}))});function bj(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e),n=(0,Fe.useRef)(!1),i=(0,Fe.useRef)(()=>{});return(0,Fe.useEffect)(()=>{let o=a=>{if(a.target&&!n.current){let l=function(){CT(vj,r,u,{discrete:!0})},u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ej(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e),n=(0,Fe.useRef)(!1);return(0,Fe.useEffect)(()=>{let i=o=>{o.target&&!n.current&&CT(wj,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _T(){let e=new CustomEvent(Ow);document.dispatchEvent(e)}function CT(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?nm(i,o):i.dispatchEvent(o)}var TT=Aw,PT=xj;c();d();f();var im=Y(ue()),DT=Y(Os());var om=(0,im.forwardRef)((e,t)=>{var r;let o=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=o,i=de(o,["container"]);return n?DT.default.createPortal((0,im.createElement)(tr.div,_e({},i,{ref:t})),n):null});c();d();f();var wr=Y(ue()),OT=Y(Os());c();d();f();var IT=Y(ue()),qs=Boolean(globalThis==null?void 0:globalThis.document)?IT.useLayoutEffect:()=>{};function _j(e,t){return(0,wr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var vf=e=>{let{present:t,children:r}=e,n=Sj(t),i=typeof r=="function"?r({present:n.isPresent}):wr.Children.only(r),o=vr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,wr.cloneElement)(i,{ref:o}):null};vf.displayName="Presence";function Sj(e){let[t,r]=(0,wr.useState)(),n=(0,wr.useRef)({}),i=(0,wr.useRef)(e),o=(0,wr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=_j(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,wr.useEffect)(()=>{let l=sm(n.current);o.current=a==="mounted"?l:"none"},[a]),qs(()=>{let l=n.current,p=i.current;if(p!==e){let y=o.current,v=sm(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),qs(()=>{if(t){let l=h=>{let v=sm(n.current).includes(h.animationName);h.target===t&&v&&(0,OT.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(o.current=sm(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,wr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function sm(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var Oo=Y(ue());function AT({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=Cj({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=Vr(r),u=(0,Oo.useCallback)(l=>{if(o){let h=typeof l=="function"?l(e):l;h!==e&&a(h)}else i(l)},[o,e,i,a]);return[s,u]}function Cj({defaultProp:e,onChange:t}){let r=(0,Oo.useState)(e),[n]=r,i=(0,Oo.useRef)(n),o=Vr(t);return(0,Oo.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var am=Y(ue());var Rw=(0,am.forwardRef)((e,t)=>(0,am.createElement)(tr.span,_e({},e,{ref:t,style:H({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)})));var kT="ToastProvider",[Lw,Tj,Pj]=vT("Toast"),[LT,lme]=Hu("Toast",[Pj]),[Dj,lm]=LT(kT),FT=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,u]=(0,fe.useState)(null),[l,p]=(0,fe.useState)(0),h=(0,fe.useRef)(!1),y=(0,fe.useRef)(!1);return(0,fe.createElement)(Lw.Provider,{scope:t},(0,fe.createElement)(Dj,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,fe.useCallback)(()=>p(v=>v+1),[]),onToastRemove:(0,fe.useCallback)(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:y},s))};FT.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${kT}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var Ij="ToastViewport",Oj=["F8"],Mw="toast.viewportPause",kw="toast.viewportResume",Aj=(0,fe.forwardRef)((e,t)=>{let D=e,{__scopeToast:r,hotkey:n=Oj,label:i="Notifications ({hotkey})"}=D,o=de(D,["__scopeToast","hotkey","label"]),s=lm(Ij,r),a=Tj(r),u=(0,fe.useRef)(null),l=(0,fe.useRef)(null),p=(0,fe.useRef)(null),h=(0,fe.useRef)(null),y=vr(t,h,s.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;(0,fe.useEffect)(()=>{let C=I=>{var P;n.every(U=>I[U]||I.code===U)&&((P=h.current)===null||P===void 0||P.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[n]),(0,fe.useEffect)(()=>{let C=u.current,I=h.current;if(w&&C&&I){let P=()=>{if(!s.isClosePausedRef.current){let F=new CustomEvent(Mw);I.dispatchEvent(F),s.isClosePausedRef.current=!0}},R=()=>{if(s.isClosePausedRef.current){let F=new CustomEvent(kw);I.dispatchEvent(F),s.isClosePausedRef.current=!1}},U=F=>{!C.contains(F.relatedTarget)&&R()},j=()=>{C.contains(document.activeElement)||R()};return C.addEventListener("focusin",P),C.addEventListener("focusout",U),C.addEventListener("pointermove",P),C.addEventListener("pointerleave",j),window.addEventListener("blur",P),window.addEventListener("focus",R),()=>{C.removeEventListener("focusin",P),C.removeEventListener("focusout",U),C.removeEventListener("pointermove",P),C.removeEventListener("pointerleave",j),window.removeEventListener("blur",P),window.removeEventListener("focus",R)}}},[w,s.isClosePausedRef]);let _=(0,fe.useCallback)(({tabbingDirection:C})=>{let P=a().map(R=>{let U=R.ref.current,j=[U,...Wj(U)];return C==="forwards"?j:j.reverse()});return(C==="forwards"?P.reverse():P).flat()},[a]);return(0,fe.useEffect)(()=>{let C=h.current;if(C){let I=P=>{let R=P.altKey||P.ctrlKey||P.metaKey;if(P.key==="Tab"&&!R){let G=document.activeElement,X=P.shiftKey;if(P.target===C&&X){var j;(j=l.current)===null||j===void 0||j.focus();return}let N=_({tabbingDirection:X?"backwards":"forwards"}),m=N.findIndex(E=>E===G);if(Nw(N.slice(m+1)))P.preventDefault();else{var F,$;X?(F=l.current)===null||F===void 0||F.focus():($=p.current)===null||$===void 0||$.focus()}}};return C.addEventListener("keydown",I),()=>C.removeEventListener("keydown",I)}},[a,_]),(0,fe.createElement)(PT,{ref:u,role:"region","aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"}},w&&(0,fe.createElement)(RT,{ref:l,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"forwards"});Nw(C)}}),(0,fe.createElement)(Lw.Slot,{scope:r},(0,fe.createElement)(tr.ol,_e({tabIndex:-1},o,{ref:y}))),w&&(0,fe.createElement)(RT,{ref:p,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"backwards"});Nw(C)}}))}),Rj="ToastFocusProxy",RT=(0,fe.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=de(s,["__scopeToast","onFocusFromOutsideViewport"]),o=lm(Rj,r);return(0,fe.createElement)(Rw,_e({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var u;let l=a.relatedTarget;!((u=o.viewport)!==null&&u!==void 0&&u.contains(l))&&n()}}))}),cm="Toast",Nj="toast.swipeStart",Mj="toast.swipeMove",kj="toast.swipeCancel",Lj="toast.swipeEnd";var[Fj,$j]=LT(cm,{onClose(){}}),Uj=(0,fe.forwardRef)((e,t)=>{let m=e,{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:y,onSwipeEnd:v}=m,w=de(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),_=lm(cm,r),[D,C]=(0,fe.useState)(null),I=vr(t,E=>C(E)),P=(0,fe.useRef)(null),R=(0,fe.useRef)(null),U=i||_.duration,j=(0,fe.useRef)(0),F=(0,fe.useRef)(U),$=(0,fe.useRef)(0),{onToastAdd:G,onToastRemove:X}=_,W=Vr(()=>{var E;(D==null?void 0:D.contains(document.activeElement))&&((E=_.viewport)===null||E===void 0||E.focus()),s()}),J=(0,fe.useCallback)(E=>{!E||E===1/0||(window.clearTimeout($.current),j.current=new Date().getTime(),$.current=window.setTimeout(W,E))},[W]);(0,fe.useEffect)(()=>{let E=_.viewport;if(E){let O=()=>{J(F.current),l==null||l()},A=()=>{let M=new Date().getTime()-j.current;F.current=F.current-M,window.clearTimeout($.current),u==null||u()};return E.addEventListener(Mw,A),E.addEventListener(kw,O),()=>{E.removeEventListener(Mw,A),E.removeEventListener(kw,O)}}},[_.viewport,U,u,l,J]),(0,fe.useEffect)(()=>{o&&!_.isClosePausedRef.current&&J(U)},[o,U,_.isClosePausedRef,J]),(0,fe.useEffect)(()=>(G(),()=>X()),[G,X]);let N=(0,fe.useMemo)(()=>D?UT(D):null,[D]);return _.viewport?(0,fe.createElement)(fe.Fragment,null,N&&(0,fe.createElement)(Vj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},N),(0,fe.createElement)(Fj,{scope:r,onClose:W},(0,MT.createPortal)((0,fe.createElement)(Lw.ItemSlot,{scope:r},(0,fe.createElement)(TT,{asChild:!0,onEscapeKeyDown:yr(a,()=>{_.isFocusedToastEscapeKeyDownRef.current||W(),_.isFocusedToastEscapeKeyDownRef.current=!1})},(0,fe.createElement)(tr.li,_e({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":_.swipeDirection},w,{ref:I,style:H({userSelect:"none",touchAction:"none"},e.style),onKeyDown:yr(e.onKeyDown,E=>{E.key==="Escape"&&(a==null||a(E.nativeEvent),E.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:yr(e.onPointerDown,E=>{E.button===0&&(P.current={x:E.clientX,y:E.clientY})}),onPointerMove:yr(e.onPointerMove,E=>{if(!P.current)return;let O=E.clientX-P.current.x,A=E.clientY-P.current.y,M=Boolean(R.current),V=["left","right"].includes(_.swipeDirection),B=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,k=V?B(0,O):0,b=V?0:B(0,A),L=E.pointerType==="touch"?10:2,Z={x:k,y:b},T={originalEvent:E,delta:Z};M?(R.current=Z,um(Mj,h,T,{discrete:!1})):NT(Z,_.swipeDirection,L)?(R.current=Z,um(Nj,p,T,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(O)>L||Math.abs(A)>L)&&(P.current=null)}),onPointerUp:yr(e.onPointerUp,E=>{let O=R.current,A=E.target;if(A.hasPointerCapture(E.pointerId)&&A.releasePointerCapture(E.pointerId),R.current=null,P.current=null,O){let M=E.currentTarget,V={originalEvent:E,delta:O};NT(O,_.swipeDirection,_.swipeThreshold)?um(Lj,v,V,{discrete:!0}):um(kj,y,V,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})))),_.viewport))):null});Uj.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${cm}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var Vj=e=>{let l=e,{__scopeToast:t,children:r}=l,n=de(l,["__scopeToast","children"]),i=lm(cm,t),[o,s]=(0,fe.useState)(!1),[a,u]=(0,fe.useState)(!1);return Kj(()=>s(!0)),(0,fe.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,fe.createElement)(om,{asChild:!0},(0,fe.createElement)(Rw,n,o&&(0,fe.createElement)(fe.Fragment,null,i.label," ",r)))};var Bj="ToastAction",jj=(0,fe.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=de(i,["altText"]);return r?(0,fe.createElement)($T,{altText:r,asChild:!0},(0,fe.createElement)(Hj,_e({},n,{ref:t}))):null});jj.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${Bj}\``)}};var zj="ToastClose",Hj=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=de(o,["__scopeToast"]),i=$j(zj,r);return(0,fe.createElement)($T,{asChild:!0},(0,fe.createElement)(tr.button,_e({type:"button"},n,{ref:t,onClick:yr(e.onClick,i.onClose)})))}),$T=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=de(o,["__scopeToast","altText"]);return(0,fe.createElement)(tr.div,_e({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function UT(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),qj(n)){let i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){let s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...UT(n))}}),t}function um(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?nm(i,o):i.dispatchEvent(o)}var NT=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function Kj(e=()=>{}){let t=Vr(e);qs(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function qj(e){return e.nodeType===e.ELEMENT_NODE}function Wj(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Nw(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var VT=FT,BT=Aj;c();d();f();c();d();f();var jT="data:image/webp;base64,UklGRlYhAABXRUJQVlA4TEkhAAAvX8AXEE0obNu2ge3s5P+H2yMi+j8BAKCFvQAkAB9JVPcjKfwuA2ZU4ABsJjfCcYfKJDsieO1eJDNz2T5c4wyX9OYZ65NJmll45kh68K7EhYNIkhQpj+vAv9p7fhFuHNt2k7FNjs5+ovpi/4uiQtQ5I4Vt2zb8/+GkQ0D/JwC/N57w/0IJN54cufsDwIgn2FB+4R//CVDJDBgjcOAMsHhWAjf4VZJfJ4iAnj8AuAFifRPpCcCBSFlEwAYoMO6JL/64sxK4gFmAmppEgnXECmBGCRczERLhAEBY0VIGJSUADARt2yYJf9bbfgoRMQH8q4dpLhaUgMlMqAQrsIJK4EewAEw1B1bJL7Zb245NknSc1/087xuOzEDaNsa2bdv8Nj8g1/wA27Y903aXXWk7MzKSwfd57vscZKVXf/YtSZIlSZJtIauZRWT0/d7//2n3+707s9zDTYU9SJKk2rZtW2aRrffJczPvXf+KMfPe58zRWxgl2rZNu1a/Jxdx8mzbtm3brtmq2irb+LZt23i2jZN7JsDTbdumbWvbPqFSa+tjzr0v27Zt21fQITtoX1fI1xXz9QN8XbEraNtXyDY3z1lr9N6qLNu200baT5aheYY9DSZXz5K7f5nBjqTnW5IkS5Ik20ISj6rq24f0U///71w/4Z4ZyhG+BUiSJEmSJEBEYvG4/v9Lr0wTYcLfCARt28bZ+VN+I0AM+ITyC7yPn3fnLCgBDODJ9+AeSD+bNnkU9DwHGs1AHdAEVrACkcEQSJv/ypyy/an2eq/x4atnzAafyq71XLzg+ZpMayMOCACTjApasgRYipFAUhiGb8/9nsesNT5WeHZs8KzbelttrRLbS3FAVMgUlGAgqhqoLebzkC0opJDEiMNOctbart7kQ+Vnw0rvqzScD6bBQsAADMJnntr8NtYe2HRosrf0uqXHm/T1TfrvG/6HS5/vXepnJz++eOmnXxz+4YOgAoFUUnZ09pq3DSWfAUmDQkNAYEAmiu/e//UL/ZvtV3SiHCpLNMzSC3opvr1J/3nR/8H/H/zdO3k+yeujxY/PDv3hg6/6+rS0AgQVs+HEng89n7a1PpYvXhsyywLQxhs/+fXlB79m30P145L2mD1zJDg9OltcrGaqPIlJfd+Gt1Z+fbP+/9j+H2x5PMWXD/zTh10f4wfW8UNLKxOoACgt9fxkJJ6qyn8TwRZJoNV3vu9/+Ib/afTxEI/3Fp7v/PPri2/XfZcWhjBrUmpkwdgd+7vjvx5z9ID66zWvf/n6Z5/7/HgfP3YuQUXtb6HcU5R9LAkLAgRf8MAXfkN9H+m+nJ93fvH67LePT57zBFEwIDVSEFIMYTK5ZVfRU/T0pZvN8/TO9R8f/HdBglBe9sx5anAXs80qsHyP/a+HZaPouN3xz+/Hh84xG4kgDLCoXJvVwkNYJGExS4q1zvKk+l64fV+j/1ft56fu/1cTlE1kj4pPSWLVQDFAwS4HJ7Tw5rve+zFm14AQRNCAFewazA7aLLEsGJAasWzjesWrpn89aPxXj9uex/9b2hVQoVR4K/80gFhmcUwEjRkDp8qbFt7w3AeuH5EgBpMpSGrkbEtgULGIlULAJNEmUGiKZ/jXzEP6Dv3PMbBjAalwqjwF2GpSLGQEuifKO6bfc+5CkQJBghABgLRsOAhDLSwEA5FpDyKZBUE2JY7OUzzg51H2MTEQGbGs3CdtLconryMmjHXFktx0LJ24fqyAAAMAWQBAABiSQEQgtSdngwgPhxVNI5AtBNztmHld/DpGby3bCQjosuZuVH6iNrlHGFtB5VommtSXlNud82XuQBAggEIgAAIETYGgsUDCcLEgANmwSDQCQgEELND8XNxRRasmgKBFiwXP5k/Oeu+rFfcgULnAIN1+fI/8Mcb/L8e3E5JsAZggBLUJAw1ECBM2YaCllIkKhsgC6Vz5pJBdN99gpCBSZcyQrdf76k/GIQTBccEJSIKNzac3lDm+/+L7H/GCkMLyCAklVkuGBghA4FAUJAMXSqmeIhRC6X+lv1YpI96n5LY5q0ABZYalOPHQvwke3xcg/meeI63ZZrzQ8uaHXxlzOON8+EWZBCEqhkyJQASylohigEmFJQTgioEpnGDKiVAWgz36bXVlzDDu+LpoRaQIW9Bo2p99fT/+cZ3xaNQ6U2E5YKz46k998mt4jzLjLePH04lCyBYxqxxSTEbDiZgwJhYhIxXGFkkOVQkAvrGNVhRs3107XzHDHQfoi6oqUaRQVRi7w7vaj2ONX2WFMwx33xDDJ3/iu75q9CE9dXUf/3QdJ4MgLCRCbKAqsXUthlkQ4sxN/3vE53vYt93sCFAUGZlzYURwQq4UjJGs69G/O2Y7mGNkjy+nfUYEYcB+LccfQvDI8IeKYHRiDFh751v+m1Xfbulxm3/mH1bef0ggCW0YCqWlGMNSEsoVxpLd56c3v/T6l73m1a9vf93H7v75Ax//9OD2JSASsnbimZkAAU1rgBl68n74Z5rZUsearW/eWnWPACOoOOpPvav+iGrWNQswRPu+w85vKz4Tzzy31ruuzItABJSQNLQMkFCmASKCQLpa+9zk/CjOI4/hzuTn4e1373jyl6dNvyE0pQE7XcgKUSFEYaBQgRT1ovcvvbEUoxht/TZWvQAkalSuYqVHEiomlTUErHhixTfxxM2N//g4Tl0KEABBAiGvrdymweYGYAQCxMR+czPVX6i/aroaOVGOiLi7Xv3zrduvd6kns5Rwuusd5QpUQGgkmUkBYIrgQvJScrdJG6te2fpEFkRMCZUfgV3FgkJisuwBP+CnTgQ/31ZaakIIFqCcEgUhJgrhWquOvvMbzvz8mD9E4AOyWFGhHUQd33o9/M23BGwOKuFU5piQIgYbO3aNtbjx5cfVM7Fuum7jCyEFErKNoocyf7Puitqlucqf8hMn345bC1hMsoSQYaYMjFiJ07lya3VyFGs7nXkHgZcQrWhCwyF9Hwx2HOPCPe51QBQT2xhd+OYULIpawkAj3T7H9Dv4cvP3Mv8WGYAR2XX6ISrXv4kPshjmI3+qvEbe6B0yFbYYoICazWnlSgGhFCRJlq6x6jc4d4UVImUZVAB0aeSKZnx9dGODOaYUnCItJz5+kdUYhC0MEiwkMx8oP0D+wbjx9tBKAXCp49+nHsiua4W3BAEX3+IXeEFbhYCakChkmLAVmnNXWqaUiISZQtqA36ruUoLFAkCjE3xPHlDYmO+lA4RSlGpLSsAUUalZKluUKxmDoEC8K3/v0n65XDuOSpII/72F8w8A7hhHRZYjP9K1N7Bx8J8Y2ulABkE5CAFaVjklgFfiQFSkgwIKHD/XjjUowqJRFhETCkZOZuZlMZcxSVBJK/GmruRa0KbbCBAtjlpqLQQZpG0nynW5dD4c7cgkCtezIP1OaG/BE9H5Lzn2wxWy7JGRe2QwGYpIhZ1VQAzArkSOVFmyo0tVZRTr1WscLLSWGkCNJlQUBnc8dx+7rT6HRqqzna64Wm4ZmRG7QA6TLSE9yNJCNxm7Dh+X0xnT1DGkpw0OvQM4k/iqJBnv+TV03CbudeDfK6gSkcGCbCHCUEDiwpVAwJEPCi5Liv6yt085x5YKUKPGpDteUjU9+S+XPb5qhWOuxFeVAyopS0uiMWJJtDqUICSMBAdX+iNW/mMrUXbLzklw9X6BtTCUvPeXx5kfItbtq/+aLJYiAgCQMCOCwYvB1zHCgBJZoUAKDG308/96+fE11mZQUcQdZ+iFq/BrOfZcX01aQbFIodw1iqnE0gZiYYtrSi0AY1EwAODz1pJ1eufwQCATVs6u+2U7TyFu+WIvm9Z65Pd3k//FbSoiC8+tVOLKSW1Q4ER7EiIqEtRALRiyWgiAJJ3iqz6PL3xgc6Wsc+f66Hv++hyGArZkKMhWFWVSABiUBGUAAgoEGQK0nPTQFBoZwEE7/3BPqj+3HPrS4ymo2Lh9m3af0cvycKyCRD+6lhde9SEhBTO9uMYJpA1YCCBdt+8l3/53n9Of1q8jH3rjPWfXy3SSxZQAMEGIBRIA/ZChB6IiCQQFgiwKWkmRYQg2w6e5rd/Y/rmOv+u3fvJw/oAgS0VbG2i92Awgq1xzIe8W8TN6+5I1GjGFM37Mf0v8v7mhX72MGw4mGwqKO/0RE8IKouUaOYBRhEHpld/+/6R/Ui71l12vsW9r7fl05/4/p8+86OWsNU2CQrYCIEGWIBMiAAoIDIYCy5aWFZ8in16ssQZXWGGF5FPu28/+///93I8/KFAbFsLHndC7YaVJTBx0av/OkL20M0dQq9wFn4f9P6WZQIq+ofDo9VxkKFg2TMSUZ7SslAQQPvbp543zk+mLcpqY6r02r4cdzacubfRSu52Zdb463jEVnI9uGyUyICGG0Y7VG8u31t5Y9cLe0dhEjboQrRtrcUTAAS1snxVkK0uQwMXXKy0rWLLJ8pr/ukv7pq6vcsgQFa8JAACMv/0lH7YySD51j+zybx2hwHAohmGaLMBUlRpbeN3PHnIeEQHQxBmQMwicscSKucVecYMt7mNhxlQvd3LkjKEeS4wu0GiWZmkvNjTRRF2ylBvH0rr5ioDoyiFZIhFyG/LZ0vpVOOFAu01SqXnPLBVfUnRJVDmdv8BPCwFg6vWxk0KGkh3G0h45x2sZywAskAaR+TBgKnYbWobdoHvTr69bdUQ0FAAAudKCM6IvMSvuxA3uwR5lHsoc2SXncFTWQBDN0l5saKCJZsmSpdx03LQHM26s8Qvff09ULFHA2VcvXM6+Ggw1wSzKnu8qk+HBcpHRU3DZ/2oBQLVoCRT6ZKNdD8dynFoCGyBYKkQiuVIilE69Igy37NZtd2g++/mw+R5DMwxEgA0kvMSsdC8NdA+95DlyL6VH9pAzvOQIIWASGwy0oYEadbVeXjluR76Xlz5y6lKhBJVhMe2FM9fqdOpZRzWyUrE4W1zb0NanbgVl6qoHANSrZoZ6YfN6ao/L8XMgQQwzNmTJyglSVUyCDKHBbrKPerkKq55r++vY9akNjpGKKLxEb9EVd+IWe7BHmYv3yL3kdSlrOPKSFzSh0GB2dGXfXtgvl+XF3BajRiqyCEwikyHq4OyOIMTBpw0VEKA3Co227SOMBI2pDgA25ZEMy/ZDvo4TP0CitNKCMjRSKIh5zmce4JM1lmlvuLvk7uodWNrmVgEBIsEQABADyBFVT67A92o/rv5YXIwMxAIEyikgNWCXvrwN1GLPUbbOetBg3f2mcRP0sRoAYlZJUf9gwqV9v1z6gKWUtZwQxtIGJEy5IndOQZJFmIiEeM34pqxPAQKEQIV68RoSiBFAdWbjF79+M9S0DbXiQeQmUazCiGJyjrbkNv7clwh0t9LG6p3hSlRQ4xCCT0ZWQo5osEffdeT34+qXGFwrQhKTuyTcVerudCq5bK4NQGBiymToUBupiwUKIkQgEAGMvEaiYohlQy08XMBj1aAatsz3aS8yu705aKZah2aJGcMbo4WgKPtfkbngRwEIDP1NXKKaWwtKop7E3nEijuCQYi0lSSFWkhbxwlCwFAK8QCEBJDggCQRQRUaBZeWKiTCnyKP0dF1LdpWc5a692Ixa74RW4HaGBt2dThGQmDHsRwEA0pWo4oqpWQoQKdk15bLKgTkkOPI1FUmaYCiehTAoqpwABI7UAAqUAIgqAMqGHZ6sHdYYQXeym3symRvvxdac7mcn1utE7YCWNNCkdBUB0T1/Sk/60yPzkSkf8NtyRyUAYA46ySGRaLSjnOsQUQtMEC1MRAnoagkgAQACCRlEAkCFopZKIC0LsGn3jOoSgdtKbXFaV5r14tFrPkvsW9xLgxwUMB9uwmMQogeSDPl4ST26hUXBlqGgXbkuNThVwtkCi8y0g1oYworgYhCYJCR0kAACBQRADIoLhsMAhmJhg0s6iUuw+cZ7Yq2Zaj+ltwIDhSalWIgShM6DIqDi6YC5ZPZ8s2SO1R2JEuUyqCvY9pzmvjxFSavOJ7CCsJuGlcAQVQvOkFB4SQ2khAxEAVAt5Rl2MbN7Jam0WxLXUTWxnkPbvLZdR28juJoGG0azxUIU1MOfACB9U2AhWexL5M04AUsgBAwhOzVttlOEqOodOZlTDkKeOUNn4sKVq5JhMiGAgAAQpAIXic6lb5rzjFJKTus1yWkkgIOQNJGVTAvLCbpiLOZYsIpOAUDod8hy6fxGeVk/gGRYZEkDKLEGETeZ2tRQyslucwXVVaKUw1UximFyYVCFOBAQAJXRFGvpKkek3WpidZGLUcg9ENCuFC3iWktKtnVgnDyULQV2fwkANT4MEBzOSvNyYJCoQEgEEG2Vg3PlbDFJS3Vr0QzlOhVQTzxy5ap0FCoGCYEGFAKCVBTjuVGedIybTQQj5UupR3FzT3ElWbQ0BANoc8TS8RN1VGWMrK8/AAA4B36Bjh8rZq2819LBtFIEMSGV6PT9RJo4AXTpSmViCqgkqsgVG65MNkwmVQJHAEFNabRUW9Vb8GFTVbGazloPjRaydkeHDtq0sb7ZHJHx1pKl2J/BJQAAEp9FTpxqBn17fcpWsCeQFAoQh1qTgk8qfWTs5i7N3akoSd/EYHLlypVBFVDWiMokqIBiRYlm2hJ09Rlbt1ZSaEtaQxFMmRNwX7SOdI57J05FhpTzEgAAQD+PJkaNfOhEbHzRK1G0IRuGIiROPudEa2rJpJgq1YRUVZn6gIELVwxcuCJwEBOTElOiRDg3zZGbA57nIqkJZk3FJHtghiSwyl2Vz1zQ0svraKyCNNj5/8Cf4CPoQ2/QjH1P3Ho8DLWWsAJc3TyBtwXEVeeDrF1jpiRE4ICGxmQyAYgzJIwEtaEoyYU14US4nqtQkmvN9ZQuHQxF1qSFbtH/v5PKOv7ArZUq8xq48v8AtFn06jsuBjF45r2Tsw6CZS0pdZjaFCopVIkr5bDFueldH5koTCYThQkAJDZIqEKC1OWypmq34ECSNjmRbSxIakGcgPD8BzBOwuVcqox57gfuu+jTB6H/Te/6AHN89QNLGkMrBihA0K2nGjsfASJJQMaEKbqijygoGClQwAwqR4DJEUBFVRUK7RRjJmmSJC2N22z7CaAWFSVRbtONx57y79HjX99GY2X8ttK/XgDhfcC9onUB//kFs1F36wufKFIkUUBAAKBbVEDTbMGEllLuSo06ooJCICICPgbvIUcQhcmBaemSGRPTTbKxnLZCF7+a7hxmBhnaZGHhsWdytxaevwRU7o0gBO5fmefQw/k13vs+ML7ukf6iMjKIimRQjkSWKYcywU0LtV0nc2x4CVBFRcXI1YeL91eMDICJytFkBafuIV3S0v/SS19XI+tJuylniVObZp3licdwf/+OGwv9vJZ9eRZ4R3A9c4fl774f07IZn/EKUkNAIsCk0yl3sgoopQI5MtMBagRU0REFgajA0YVrdCuAnAE4oloe/BaSGoOc850prx1ubMkNNb1hg0je8p50dPNex33wHRUt4CC4907AotkdDG8sfOyL6PFVD5mAipIhaa6zSqVE7ZRUKIJtzElaHlGpoJBBcDaak7mM0w6DAQCAkaC7tZ+2X6RJuplOCYFtSZW7h9CG1TzulLhvza6sFDyo/WsD8IDgH/imjHd/iXPs2lo66hpFLKIQh3NVgp1rVlZNGsfog3WREgACRCeKyIjk5RUIAkyGMdiMrv+311o9SDDk0hFtzdcgExa64XDHRt6ntgwV3wCXHwQodh/yypW7GdGHz32lEcCS6Kolk0/bDlcOk7sSWbsXU29yFAUdAhH01kJ/FMFRoqAwUQAbiDOchmNf5NTDfeceI7WrbW0ypx6G3e9C+f5W+nWtpg4OAw9cm/cCNwq8dg2Mfa/D0ogAAtWvqhNp7mV0F9NoCQ3LxtZNgVYUAHeDN90ayHA1uhMAABEwGjyzxOz3PQ3cvkvrjv1owKFy334swm7LHnsZ4RfVbgXX7pr3Hwwo9lAEb0V27AUooiKANKSNQD4oSiWr2WkNlZmjz3XTWKKECiC6EKR1NBBBlXG4ABAEqKvrD5YYwIkgqFuGr3k6nZPbb52lvyRRRQWGHFv3AF65kqjBm8BD9muh4bUMU79jsisFNpDYAHINSEqTmHKLwabpcHa73WDUSVhghgIFR6QvY76rioocEQABHJDcvrFEfCaFGW5oKUUap+1Im1KOaqqNgHU7XUEur9FHie88TOXVzjANNw2KPRGkBNrckWhmxy59LddykKyWbWijdMN8StThHlownVvqiaEA8gZZCEiURXC9YZkVNkXWbnv0HW63/2vQ3b42Od6ytJJkw4Tg6tLJIw0k/PQwI/6UpRA10dnIxgYrkipqLfWd1rvAkZj4zDRIEkTN1ORWbQHuoUDJDBwvGstUByljSqYCACBAbjGe3G6Ldu0Wlm3GfmVzF5g3m30SsgCmzTMcHT6Rg6KnyT/+eRgAfJ6CI4GjA1UDEURw6NppKLdRW+F6m08Wndgg4A1u2gQEUNFxtsiRqUpasETwNighEAC36YvZWbKzwsRXopb7oF2Qc9Pb//wUBCCbB8Dbl5IBvwMe2vghw6mIZhxGgxYUERs4XUpUcrTSZKVwEE5aTrrlEB1BVIqeg9ZKQZWjCNSJXp4QCLxAcOOxM5ltsbjSyqFw6B0btlNPmNbovyuSZZQ2DgjOHkMg/fxwxfncciLwUl+0hZAUDHDfjiUcnHxTXaMmRDEJbt5ct50pwD2AC9SXS5YsiiLIdJZ6RCQQyG45NlWyokXpocP2RvH0g9jbk9Ejg2D3jS7kjAtriQbw2sN102edaEaOJFifOgvKQnCNfIBaz8F1I1mb4qxi6ObjlF8miqDp6HJgCymQoixFemvcIAVkEJHdpg3EZEhgPz31Hhf2Xu1vk6U/W1IZQZ+1AZzMuhksWlPmg4cD//XsJejVyMEnUQQRRRAVmxsqDeeeuiZUhSF7y2LFfc8hZZL4Y+2oXcuTBSEue99dH0Emo7hHbxAEtrlygy2q7c7EJoE71SnXVFSsCva/JOuD5yoi/QZuPhyQcj6O4IXAyUS031AkgzCEICzrSY7E52vNbnISoBu1lB8MyL65aptegaywe+a3hRAE2c1zmwSEo9qr95/b0e7XO0G7UrR0VIiK7N4akwbedS1RmJ+AR9jJvq3omrwROPkqsgQ7sSQwAPXt1rou1NJB0NbIKIdwMPXn+stEipn2SlfxkftlnRAKYjJtY2Nx0bdFDQF7dw1KJpqUpk7I9L1PIK8fcQ6kwcuPYs6+bNzO9G9QDuyTXWRhaDgxmYS2XBKnQzEVpMm0by5HfjD4yjV/n4TS9KzNtXeFt3yfD5/dnoJQ7Hs1JLe0IU69cPgANZlFK25jsSh95tbODck/XZm1anNn1OvDRwEuRXw3osMZJwIvfH3x792QCU3poKFzRorUkmVltuKA9IWt999x64v/TH1vCR3cNFO0lSuFjc+t70PX9tnFBzafWScLQ00Mquxd/YiYIAzEQe1G9q2vxcLLF944IEg8Bs4/CkBxZ5Esf1M42XvkKO81m2xDQSg5Ka11PzPLIpnUttsPFge3bDfbUAyWTWuDciee3Ndnn1t9dw6LO/UdyqGClLgEk7hgTTUT87Snfz24I/nbUy0ENd72A48UfJgynxY54niOHNy+7+I+mLSWxWD8/9PKtelcCG1NW8nAbthRu+0MjgLroKHpDZnlYdMm7aHY7olym7XLFDVzcDDYNNzN88erL/9k6V1vevNAFxI/A589GkBxaR0V68/oBhy4V9uVe8NtGMvuC2kBkwKraErTgiiu8H30kS3QFSZ274QFSNMbTpoG0aYQE9O6d9PyNpmVJksRmPc8cuP8cUP+4FSBMOl5zgMe9YLXikyVsWNjBIA3LigCoEaK2A6Siy2OPmLZxp7UGs/U9BU6JZv9trc//c+U4suXmu2dBNb0Np1iimY3SFAbQA+OL2ll+XrZ2X8yZAVD7vnAI59zlRswHTuATGzVFdALWhFkqQ0pLkwbhGnLHpviTvcg70glt6Zbs23ybu1tum5tw73cQIDYzWoZoB/6yHJtQUkEW5tBaBwN+y5ltUcHDPrW2SrMUGBIAKqBykZrFRoCaEpLQVIhN/mlie/pVj/TWeqpbainnoMAT2bt1AZiaHkHlrXds3oiWlZIlBgMCWqUmDHNgce5aHsXQBINzwDoqKqRoiYRsMZcaYWkPq1tN9pjb5gaqqYVG2FrtP1qNh6bSaKRu+w7HF2rwHBRiRLBSmksQQ8qdAIe74DTGCgQcDuACPbeGB2du9oZn+W1Nhc7+jS3oYiGf+xN271HT7XjS23q+mPnsLBdH3E7JXTwQbtXHlpu7Z3QAcxHiYCABjWBx9x1FWtxRSQwXT/QRA4mRs1fX9yF/UUlWSN77Ik33ri1zf234zY+P4fVw622t6FyuDenWqwQts1NrmaPGpsUR01wOGohE9Jx8qZ8Lva4APwjT0olqB3FbXppKgAUrp7vf9P99UWSWBzcrjYy7K1J0uu9LzEGqVwP9gW3DtpesbB7k6MeNt6j+5xRnHeZykWABS3YxJBiwOP/MM6aNw3ZSsaZA6+duU171tXS7dvL7tzelXshkpP3wc3mtq3SOBHSbfqG2f/WJNfsDa49u5sNzz0873T9cT2ux+fdOY5AUECA8evH/eMm8CSCqINPzKJENS0YKza++BNf8kKqAOT8qROHjp44vnJroWs0lgkB6qgUI0vDMA5jVENNQab5lelgamn6wLy0QYGKGstGDa2sGm3a2HLnc++ssCJQMBt88Bp/cF0K9awWGlwOfQUBT2jiu9IvggytNLR68kVPHLy1ciABCArcXLgTNUGPJH0dg9BH/dBf0QEAVJAaSAItwszC7EIT9JZKk5Lh0ZCMbdQBK1Ew46LxyoV/eBtTUZGAgEp/hPsHEAFPLPil4u6M88EKSJBBsn6PL/jE+jsbRgQAAACQCaES0EHVi+4GcyDqq0YmfRMiNQJAIAEkAgIBcuHK4QvvunL6hKGxKjLUPNUxxz7qf98AT3S/v+6e8d2RaEEyTRvLUEMLgi4s25roGB2MFH0dJcnGzWSK7gVzXb2lnDFvKSgQ1FgD1dJRt2u4GB8Mb3UhVU1we60rC/cOXT1WDxIBSIaagj9kswv/3Aci4Ekf9bfkdd/pEppo08q2nilRK5JkZKghi6ACKAKoJ1XUWFmqKCAZhSyNlahIRVkEWQpkCAqopWv0JEvl/N+431h0Tg77++fgEfB0frEfVCj+v1/t2b54VVtkBVCxj1mtWKF4yfhP4apxvcqcy+6/O7n+x/8u9Ly7u+jz465fR/2+n5xHfquqlbtKNjVqW02mZLBYUZUGpYtNZujgUdGFjuvPbM9jv8C/3gWngKf9S/wj+AACEAKPdhIZACgCPgEEAA==";var Xj=n=>{var i=n,{border:e,size:t="sm"}=i,r=de(i,["border","size"]);let o=t==="md"?36:24;return g.createElement(g.Fragment,null,e&&g.createElement("svg",{className:Vn(e,"absolute left-1/2 top-1/2 w-[34px] -mt-[2px] transform -translate-x-1/2 -translate-y-1/2"),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 26 26"},g.createElement("path",{d:"M8.382 2.244a6.938 6.938 0 0 1 9.236 0l1.626 1.451c.346.308.722.581 1.122.815l1.882 1.098a6.937 6.937 0 0 1 2.854 8.784l-.877 1.995c-.187.424-.33.866-.428 1.319l-.463 2.129a6.938 6.938 0 0 1-7.473 5.429l-2.168-.218a6.934 6.934 0 0 0-1.386 0l-2.168.218a6.938 6.938 0 0 1-7.473-5.429l-.463-2.13a6.937 6.937 0 0 0-.428-1.318l-.877-1.995a6.938 6.938 0 0 1 2.854-8.784L5.634 4.51c.4-.234.776-.507 1.122-.815l1.626-1.45Z"})),g.createElement("img",se(H({src:jT},r),{alt:"Verified",width:o,height:o})))},zT=Xj;c();d();f();var Jj=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.665 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-6-3.334a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Zm-1.333 1.5a.5.5 0 0 0 0 1h.167v4.167a.5.5 0 1 0 1 0V6.665a.5.5 0 0 0-.5-.5h-.667Z",clipRule:"evenodd"})),HT=Jj;var Zj=()=>g.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6"},g.createElement(zT,{className:"h-12 w-12"}),g.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"IDKit and World ID are fully privacy preserving."),g.createElement("ul",{className:"mb-6 list-disc space-y-3 px-4"},g.createElement("li",{className:"text-left dark:text-white"},"Phone numbers are never kept by anyone. IDKit and its phone carrier only uses your number to deliver a one-time code.",g.createElement("ul",{className:"text-9eafc0 dark:text-9eafc0 mt-3 list-disc pl-4"},g.createElement("li",null,"Apps only receive a hash-like nullifier which can't be reversed. Worldcoin or IDKit don't store nullifier hashes."))),g.createElement("li",{className:"text-left dark:text-white"},"Orb biometrics analyzed by the Orb are not stored. Orb credential is used with Zero-Knowledge Proofs which makes it cryptographically impossible to track persons across applications."),g.createElement("li",{className:"text-left dark:text-white"},"Our code is fully open source or source available on"," ",g.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0 underline",rel:"noreferrer"},"GitHub"),".")),g.createElement("div",{className:"-ml-4 flex items-center space-x-3"},g.createElement(HT,{className:"h-4 w-4 text-white"}),g.createElement("p",{className:"whitespace-nowrap text-sm font-medium text-white"},"Apps will never see your phone number or biometrics."))),KT=Zj;c();d();f();c();d();f();var Qj=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),g.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),qT=Qj;var ez=e=>e.copy,tz=()=>{let e=Yr(ez);return g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},g.createElement(qT,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),g.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},Ks(e,"success"))))},WT=tz;c();d();f();c();d();f();var oD=Y(ue(),1),sD=Y(ue(),1),aD=Y(ZT(),1);c();d();f();var rD=Y(eD(),1),Em=Y(ue(),1);c();d();f();var eH=e=>g.createElement("svg",se(H({},e),{viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{d:"M26.979 17.9748C27.0917 18.106 27.2493 18.1906 27.4209 18.212C27.5926 18.2335 27.7661 18.1903 27.9076 18.0909C29.2231 17.1623 31.4672 15.6147 33.9047 14.0864C35.7135 16.1216 36.9017 18.6323 37.3288 21.3215C39.244 18.5745 44.6607 11.4941 39.9985 7.95389C36.0133 4.99405 27.6561 13.8349 26.8243 17.3557C26.7972 17.4637 26.7972 17.5767 26.8241 17.6846C26.8511 17.7926 26.9043 17.8923 26.979 17.9748Z"}),g.createElement("path",{d:"M30.229 22.6759C30.1037 22.74 30 22.8396 29.931 22.9623C29.8619 23.085 29.8306 23.2253 29.841 23.3657C29.8513 23.5061 29.9028 23.6404 29.989 23.7516C30.0752 23.8629 30.1924 23.9463 30.3257 23.9914C31.8734 24.4556 34.485 25.2488 37.1933 26.1967C36.7314 28.8866 35.5021 31.3857 33.6532 33.3932C36.9999 33.1611 45.9181 32.9869 45.802 27.1446C45.6279 22.1922 33.5177 21.1476 30.229 22.6759Z"}),g.createElement("path",{d:"M28.1784 28.6729C28.0788 28.6249 27.9697 28.6 27.8592 28.6C27.7487 28.6 27.6395 28.6249 27.54 28.6729C27.386 28.7555 27.2675 28.8916 27.2069 29.0555C27.1464 29.2194 27.1478 29.3998 27.2111 29.5627C27.8302 31.0523 28.8361 33.6059 29.7647 36.3143C25.7215 38.5003 21.9492 38.0167 21.9492 38.0167C24.1932 40.4929 29.8808 47.3605 34.3882 43.6462C38.1412 40.4155 31.4284 30.2785 28.1784 28.6729Z"}),g.createElement("path",{d:"M22.2201 30.7816C22.1968 30.674 22.1476 30.5737 22.0768 30.4895C22.006 30.4052 21.9158 30.3395 21.8138 30.2979C21.6537 30.2287 21.4734 30.2221 21.3086 30.2794C21.1438 30.3367 21.0065 30.4538 20.924 30.6075C20.1308 32.0003 18.7766 34.3605 17.229 36.798C14.7141 35.7418 12.5577 33.9818 11.0191 31.7295C10.4775 35.0375 8.65899 43.7623 14.3659 44.9617C19.2409 45.9096 22.9746 34.3411 22.2201 30.7816Z"}),g.createElement("path",{d:"M16.8614 27.454C16.9266 27.3665 16.971 27.2652 16.9912 27.1579C17.0113 27.0506 17.0066 26.9402 16.9774 26.835C16.9359 26.6637 16.8309 26.5146 16.6837 26.4176C16.5365 26.3207 16.358 26.2832 16.1843 26.3126C14.598 26.5641 11.909 26.9704 9.04584 27.2799C8.31322 24.6557 8.34678 21.8767 9.14257 19.2709C6.22142 20.8959 -1.74887 24.9004 0.882103 30.1237C3.16486 34.5151 14.5593 30.2591 16.8614 27.454Z"}),g.createElement("path",{d:"M16.1262 21.1668C16.2366 21.1694 16.3458 21.1442 16.4438 21.0935C16.5419 21.0427 16.6256 20.9682 16.6872 20.8766C16.7957 20.7414 16.8481 20.5697 16.8337 20.3969C16.8193 20.2241 16.7392 20.0635 16.6099 19.948C15.4104 18.8647 13.4179 17.0075 11.406 14.9569C12.9978 12.7444 15.1943 11.0382 17.7319 10.0432C14.6366 8.78577 6.53092 5.03277 4.07406 10.3334C2.06214 14.8602 12.5086 21.1088 16.1262 21.1668Z"}),g.createElement("path",{d:"M21.156 16.9495C21.3329 16.9453 21.5019 16.8757 21.6305 16.7543C21.7591 16.6328 21.8382 16.468 21.8525 16.2917C21.9492 14.7054 22.162 11.9777 22.5102 9.13394C25.2291 8.99787 27.9294 9.64945 30.287 11.0104C29.3585 7.79911 27.2498 -0.867611 21.5816 0.525254C16.784 1.76336 18.3703 13.8155 20.595 16.698C20.6598 16.7837 20.7452 16.8517 20.8433 16.8957C20.9413 16.9397 21.0489 16.9582 21.156 16.9495Z"})),tD=eH;var tH=e=>{let t=rD.default.create(e,{errorCorrectionLevel:"M"}).modules.data,r=Math.sqrt(t.length);return t.reduce((n,i,o)=>(o%r===0?n.push([i]):n[n.length-1].push(i),n),[])},rH=({data:e,logoSize:t=72,size:r=300})=>{let n=(0,Em.useMemo)(()=>{let o=[],s=tH(e),a=r/s.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:y,y:v})=>{let w=(s.length-7)*a*y,_=(s.length-7)*a*v;for(let D=0;D<3;D++)o.push(g.createElement("rect",{fill:"currentColor",x:w+a*D,y:_+a*D,key:`${D}-${y}-${v}`,width:a*(7-D*2),height:a*(7-D*2),rx:(D-2)*-5+(D===0?2:0),ry:(D-2)*-5+(D===0?2:0),className:D%2!==0?"text-white dark:text-black":"text-black dark:text-white"}))});let l=Math.floor((t+25)/a),p=s.length/2-l/2,h=s.length/2+l/2-1;return s.forEach((y,v)=>{y.forEach((w,_)=>{!s[v][_]||v<7&&_<7||v>s.length-8&&_<7||v<7&&_>s.length-8||v>p&&v<h&&_>p&&_<h||o.push(g.createElement("circle",{fill:"currentColor",r:a/3,key:`circle-${v}-${_}`,cx:v*a+a/2,cy:_*a+a/2,className:"text-black dark:text-white"}))})}),o},[t,r,e]),i=r/2-t/2;return g.createElement("div",{className:"dark:bg-0d151d w-max rounded-lg bg-white",style:{height:r,width:r}},g.createElement("div",{className:"relative flex h-0 w-full justify-center",style:{top:i}},g.createElement(tD,{height:t,width:t})),g.createElement("svg",{height:r,width:r},n))},nD=(0,Em.memo)(rH);c();d();f();var nH=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{fill:"currentColor",d:"M13.973 9.133c.446-1.896 4.862-6.64 6.969-5.057 2.453 1.9-.408 5.716-1.416 7.192 0 0-.201-2.042-1.81-3.894a81.232 81.232 0 0 0-3.162 2.154.374.374 0 0 1-.559-.173.393.393 0 0 1-.022-.222Zm1.8 2.863a.358.358 0 0 0-.202.273.382.382 0 0 0 .048.266c.048.08.123.138.211.164a80.06 80.06 0 0 1 3.624 1.183c-.422 2.433-1.862 3.864-1.862 3.864 1.761-.117 6.47-.21 6.407-3.351-.09-2.663-6.489-3.225-8.226-2.4Zm-1.08 3.214a.364.364 0 0 0-.417.064.377.377 0 0 0-.087.42c.317.801.85 2.165 1.348 3.625-2.135 1.178-4.132.919-4.132.919 1.186 1.329 4.19 5.022 6.561 3.02 1.992-1.73-1.555-7.178-3.273-8.047Zm-3.144 1.144a.369.369 0 0 0-.216-.264.359.359 0 0 0-.47.161 80.237 80.237 0 0 1-1.949 3.327c-2.232-.967-3.278-2.721-3.278-2.721-.283 1.774-1.253 6.469 1.766 7.114 2.568.508 4.55-5.712 4.147-7.617Zm-2.832-1.798a.39.39 0 0 0-.088-.554.364.364 0 0 0-.262-.057 75.98 75.98 0 0 1-3.773.523c-.648-2.384.048-4.304.048-4.304-1.54.874-5.75 3.029-4.367 5.828 1.209 2.365 7.223.069 8.442-1.436Zm-.389-3.376a.355.355 0 0 0 .303-.152.386.386 0 0 0-.048-.508 72.636 72.636 0 0 1-2.75-2.677c1.43-1.998 3.34-2.638 3.34-2.638-1.632-.684-5.908-2.702-7.2.151-1.065 2.433 4.44 5.794 6.355 5.824Zm2.664-2.262a.371.371 0 0 0 .246-.106.384.384 0 0 0 .114-.246c.053-.865.168-2.326.346-3.86 2.428-.107 4.108 1.016 4.108 1.016-.49-1.724-1.603-6.385-4.598-5.643-2.534.67-1.69 7.148-.523 8.697a.374.374 0 0 0 .307.142Z"})),iD=nH;var iH=({qrData:e,showQR:t,setShowQR:r})=>{let n=Qa(),[i,o]=(0,oD.useState)(!1),s=(0,sD.useCallback)(()=>{var a;(0,aD.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return g.createElement(g.Fragment,null,g.createElement(Vu,null,(n=="desktop"||t)&&g.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},g.createElement("div",{className:"text-29343f dark:text-white"},e?g.createElement(nD,{data:n=="desktop"?e.default:e.mobile}):g.createElement("div",{className:"flex h-[300px] w-[300px] items-center justify-center"},g.createElement(Do,{className:"h-[72px] w-[72px]"}))))),g.createElement("div",{className:"space-y-4"},g.createElement(zt.a,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-button",href:e==null?void 0:e.mobile,className:Vn("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d md:hidden")},g.createElement(iD,{className:"h-5 w-5"}),g.createElement(zt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),g.createElement("div",{className:"space-x-2 md:hidden"},g.createElement(zt.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&g.createElement(g.Fragment,null,g.createElement("span",{className:"text-9eafc0"},"\xB7"),g.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},uD=iH;var gd=Y(ue(),1);c();d();f();var sx=(a=>(a.ConnectionFailed="connection_failed",a.VerificationRejected="verification_rejected",a.AlreadySigned="already_signed",a.InvalidActionID="invalid_action_id",a.InvalidSignal="invalid_signal",a.UnexpectedResponse="unexpected_response",a.GenericError="generic_error",a))(sx||{});c();d();f();var Nk=Y(ue(),1);c();d();f();function ax(e,t){let r=new window.URL("https://worldcoin.org/verify");return r.searchParams.append("w",e),t&&r.searchParams.append("r",t),r.toString()}c();d();f();var lD="c3e6053f10efbb423808783ee874cf6a";c();d();f();var $7=Y(Cm());c();d();f();var Ui=Y(ko()),PE=Y(Cm()),zM=Y(ZD()),$l=Y(tO()),Me=Y(Ax());c();d();f();qm();var DO=Y(ko()),Jm=class extends jn{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var Zm=class extends jn{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},Qm=class{constructor(t,r){this.logger=t,this.core=r}},e0=class extends jn{constructor(t,r){super(),this.relayer=t,this.logger=r}},t0=class extends jn{constructor(t){super()}},r0=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var n0=class extends jn{constructor(t,r){super(),this.relayer=t,this.logger=r}};var i0=class extends jn{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function kf(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}function hl(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var jf=Y(oA()),$A=Y(Js()),UA=Y(Oi());c();d();f();var sA="EdDSA",aA="JWT",Yx=".",Xx="base64url",uA="utf8",lA="utf8",cA=":",fA="did",dA="key",Jx="base58btc",hA="z",pA="K36";c();d();f();c();d();f();c();d();f();c();d();f();function vl(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function c0(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?vl(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function mA(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=c0(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return vl(r)}c();d();f();c();d();f();c();d();f();var rb={};fr(rb,{identity:()=>jK});c();d();f();c();d();f();c();d();f();function FK(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var _=0,D=0,C=0,I=w.length;C!==I&&w[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=w[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var _=0;if(w[_]!==" "){for(var D=0,C=0;w[_]===u;)D++,_++;for(var I=(w.length-_)*l+1>>>0,P=new Uint8Array(I);w[_];){var R=r[w.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(w[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function v(w){var _=y(w);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var $K=FK,UK=$K,gA=UK;c();d();f();var gge=new Uint8Array(0);var yA=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},Ri=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};var vA=e=>new TextEncoder().encode(e),wA=e=>new TextDecoder().decode(e);var Zx=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},Qx=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return bA(this,t)}},eb=class{constructor(t){this.decoders=t}or(t){return bA(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},bA=(e,t)=>new eb(H(H({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),tb=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Zx(t,r,n),this.decoder=new Qx(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},wl=({name:e,prefix:t,encode:r,decode:n})=>new tb(e,t,r,n),Fo=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=gA(r,t);return wl({prefix:e,name:t,encode:n,decode:o=>Ri(i(o))})},VK=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},BK=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},Rt=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>wl({prefix:t,name:e,encode(i){return BK(i,n,r)},decode(i){return VK(i,n,r,e)}});var jK=wl({prefix:"\0",name:"identity",encode:e=>wA(e),decode:e=>vA(e)});var nb={};fr(nb,{base2:()=>zK});c();d();f();var zK=Rt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ib={};fr(ib,{base8:()=>HK});c();d();f();var HK=Rt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var ob={};fr(ob,{base10:()=>KK});c();d();f();var KK=Fo({prefix:"9",name:"base10",alphabet:"0123456789"});var sb={};fr(sb,{base16:()=>qK,base16upper:()=>WK});c();d();f();var qK=Rt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),WK=Rt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var ab={};fr(ab,{base32:()=>xl,base32hex:()=>JK,base32hexpad:()=>QK,base32hexpadupper:()=>eq,base32hexupper:()=>ZK,base32pad:()=>YK,base32padupper:()=>XK,base32upper:()=>GK,base32z:()=>tq});c();d();f();var xl=Rt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),GK=Rt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),YK=Rt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),XK=Rt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),JK=Rt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ZK=Rt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),QK=Rt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),eq=Rt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),tq=Rt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ub={};fr(ub,{base36:()=>rq,base36upper:()=>nq});c();d();f();var rq=Fo({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),nq=Fo({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var lb={};fr(lb,{base58btc:()=>ii,base58flickr:()=>iq});c();d();f();var ii=Fo({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),iq=Fo({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var cb={};fr(cb,{base64:()=>oq,base64pad:()=>sq,base64url:()=>aq,base64urlpad:()=>uq});c();d();f();var oq=Rt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),sq=Rt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),aq=Rt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),uq=Rt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var fb={};fr(fb,{base256emoji:()=>hq});c();d();f();var EA=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),lq=EA.reduce((e,t,r)=>(e[r]=t,e),[]),cq=EA.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function fq(e){return e.reduce((t,r)=>(t+=lq[r],t),"")}function dq(e){let t=[];for(let r of e){let n=cq[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var hq=wl({prefix:"\u{1F680}",name:"base256emoji",encode:fq,decode:dq});var mb={};fr(mb,{sha256:()=>Rq,sha512:()=>Nq});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var pq=CA,_A=128,mq=127,gq=~mq,yq=Math.pow(2,31);function CA(e,t,r){t=t||[],r=r||0;for(var n=r;e>=yq;)t[r++]=e&255|_A,e/=128;for(;e&gq;)t[r++]=e&255|_A,e>>>=7;return t[r]=e|0,CA.bytes=r-n+1,t}var vq=db,wq=128,SA=127;function db(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw db.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&SA)<<i:(s&SA)*Math.pow(2,i),i+=7}while(s>=wq);return db.bytes=o-n,r}var xq=Math.pow(2,7),bq=Math.pow(2,14),Eq=Math.pow(2,21),_q=Math.pow(2,28),Sq=Math.pow(2,35),Cq=Math.pow(2,42),Tq=Math.pow(2,49),Pq=Math.pow(2,56),Dq=Math.pow(2,63),Iq=function(e){return e<xq?1:e<bq?2:e<Eq?3:e<_q?4:e<Sq?5:e<Cq?6:e<Tq?7:e<Pq?8:e<Dq?9:10},Oq={encode:pq,decode:vq,encodingLength:Iq},Aq=Oq,$f=Aq;var Uf=(e,t=0)=>[$f.decode(e,t),$f.decode.bytes],bl=(e,t,r=0)=>($f.encode(e,t,r),t),El=e=>$f.encodingLength(e);var ta=(e,t)=>{let r=t.byteLength,n=El(e),i=n+El(r),o=new Uint8Array(i+r);return bl(e,o,0),bl(r,o,n),o.set(t,i),new _l(e,r,t,o)},TA=e=>{let t=Ri(e),[r,n]=Uf(t),[i,o]=Uf(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new _l(r,i,s,t)},PA=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&yA(e.bytes,t.bytes),_l=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var pb=({name:e,code:t,encode:r})=>new hb(e,t,r),hb=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?ta(this.code,r):r.then(n=>ta(this.code,n))}else throw Error("Unknown type, must be binary type")}};var IA=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Rq=pb({name:"sha2-256",code:18,encode:IA("SHA-256")}),Nq=pb({name:"sha2-512",code:19,encode:IA("SHA-512")});var gb={};fr(gb,{identity:()=>Lq});c();d();f();var OA=0,Mq="identity",AA=Ri,kq=e=>ta(OA,AA(e)),Lq={code:OA,name:Mq,encode:AA,digest:kq};c();d();f();c();d();f();var Fge=new TextEncoder,$ge=new TextDecoder;c();d();f();c();d();f();var Gt=class{constructor(t,r,n,i){this.code=r,this.version=t,this.multihash=n,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:h0,byteLength:h0,code:d0,version:d0,multihash:d0,bytes:d0,_baseCache:h0,asCID:h0})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==Bf)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==jq)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Gt.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=ta(t,r);return Gt.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&PA(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return Vq(r,i,t||ii.encoder);default:return Bq(r,i,t||xl.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return Hq(/^0\.0/,Kq),!!(t&&(t[NA]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof Gt)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new Gt(r,n,i,o||RA(r,n,i.bytes))}else if(t!=null&&t[NA]===!0){let{version:r,multihash:n,code:i}=t,o=TA(n);return Gt.create(r,i,o)}else return null}static create(t,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==Bf)throw new Error(`Version 0 CID must use dag-pb (code: ${Bf}) block encoding`);return new Gt(t,r,n,n.bytes)}case 1:{let i=RA(t,r,n.bytes);return new Gt(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return Gt.create(0,Bf,t)}static createV1(t,r){return Gt.create(1,t,r)}static decode(t){let[r,n]=Gt.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=Gt.inspectBytes(t),n=r.size-r.multihashSize,i=Ri(t.subarray(n,n+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),s=new _l(r.multihashCode,r.digestSize,o,i);return[r.version===0?Gt.createV0(s):Gt.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,y]=Uf(t.subarray(r));return r+=y,h},i=n(),o=Bf;if(i===18?(i=0,r=0):i===1&&(o=n()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let s=r,a=n(),u=n(),l=r+u,p=l-s;return{version:i,codec:o,multihashCode:a,digestSize:u,multihashSize:p,size:l}}static parse(t,r){let[n,i]=Uq(t,r),o=Gt.decode(i);return o._baseCache.set(n,t),o}},Uq=(e,t)=>{switch(e[0]){case"Q":{let r=t||ii;return[ii.prefix,r.decode(`${ii.prefix}${e}`)]}case ii.prefix:{let r=t||ii;return[ii.prefix,r.decode(e)]}case xl.prefix:{let r=t||xl;return[xl.prefix,r.decode(e)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}},Vq=(e,t,r)=>{let{prefix:n}=r;if(n!==ii.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(i==null){let o=r.encode(e).slice(1);return t.set(n,o),o}else return i},Bq=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(i==null){let o=r.encode(e);return t.set(n,o),o}else return i},Bf=112,jq=18,RA=(e,t,r)=>{let n=El(e),i=n+El(t),o=new Uint8Array(i+r.byteLength);return bl(e,o,0),bl(t,o,n),o.set(r,i),o},NA=Symbol.for("@ipld/js-cid/CID"),d0={writable:!1,configurable:!1,enumerable:!0},h0={writable:!1,enumerable:!1,configurable:!1},zq="0.0.0-dev",Hq=(e,t)=>{if(e.test(zq))console.warn(t);else throw new Error(t)},Kq=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
33
26
|
Following code pattern:
|
|
34
27
|
|
|
35
28
|
if (CID.isCID(value)) {
|
|
@@ -43,8 +36,8 @@ if (cid) {
|
|
|
43
36
|
// Make sure to use cid instead of value
|
|
44
37
|
doSomethingWithCID(cid)
|
|
45
38
|
}
|
|
46
|
-
`;var Wl=ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},ub),lb),cb),fb),db),hb),pb),mb),gb),yb),A1e=ne(ne({},bb),_b);function MM(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var AM=MM("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),Eb=MM("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=tg(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),nX=ne({utf8:AM,"utf-8":AM,hex:Wl.base16,latin1:Eb,ascii:Eb,binary:Eb},Wl),og=nX;function sg(e,t="utf8"){let r=og[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();function ag(e,t="utf8"){let r=og[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?jl(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function ug(e){return sg(ag(Fl(e),sM),rb)}function lg(e){let t=ag(dM,nb),r=fM+sg(hM([t,e]),nb);return[lM,cM,r].join(uM)}function iX(e){return sg(e,rb)}function NM(e){return ag([ug(e.header),ug(e.payload)].join(tb),aM)}function kM(e){return[ug(e.header),ug(e.payload),iX(e.signature)].join(tb)}function Sb(e=(0,FM.randomBytes)(32)){return md.generateKeyPairFromSeed(e)}async function $M(e,t,r,n,i=(0,LM.fromMiliseconds)(Date.now())){let o={alg:iM,typ:oM},s=lg(n.publicKey),a=i+r,u={iss:s,sub:e,aud:t,iat:i,exp:a},l=NM({header:o,payload:u}),p=md.sign(n.secretKey,l);return kM({header:o,payload:u,signature:p})}c();d();f();c();d();f();var Fb=me(pg()),RN=me(mg()),Lb=me(_a()),_d=me(vg()),Og=me(bg());c();d();f();c();d();f();c();d();f();c();d();f();function xd(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Yl(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=xd(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}c();d();f();c();d();f();c();d();f();function rN(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var tN=rN("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),Rb=rN("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=xd(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),kX=ne({utf8:tN,"utf-8":tN,hex:Wl.base16,latin1:Rb,ascii:Rb,binary:Rb},Wl),_g=kX;function rn(e,t="utf8"){let r=_g[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}c();d();f();function nn(e,t="utf8"){let r=_g[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();c();d();f();var nN=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},FX=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var LX=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var $X=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}();var UX=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var VX=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var jX=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,BX=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,iN=3,zX=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",jX]],oN=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function aN(e){return e?sN(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new VX:typeof navigator<"u"?sN(navigator.userAgent):KX()}function HX(e){return e!==""&&zX.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function sN(e){var t=HX(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new UX;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<iN&&(i=nN(nN([],i,!0),WX(iN-i.length),!0)):i=[];var o=i.join("."),s=qX(e),a=BX.exec(e);return a&&a[1]?new $X(r,o,s,a[1]):new FX(r,o,s)}function qX(e){for(var t=0,r=oN.length;t<r;t++){var n=oN[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function KX(){var e=typeof process<"u"&&process.version;return e?new LX(process.version.slice(1)):null}function WX(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Ss=me(go()),Oa=me(Da()),pZ=me(lN()),Zl=me(SN());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Dg={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}};var AN="base10",vn="base16",Nb="base64pad",$b="utf8",MN=0,Ia=1,mZ=0,CN=1,kb=12,Ub=32;function NN(){let e=Og.generateKeyPair();return{privateKey:nn(e.secretKey,vn),publicKey:nn(e.publicKey,vn)}}function Ig(){let e=(0,Lb.randomBytes)(Ub);return nn(e,vn)}function kN(e,t){let r=Og.sharedKey(rn(e,vn),rn(t,vn)),n=new RN.HKDF(_d.SHA256,r).expand(Ub);return nn(n,vn)}function FN(e){let t=(0,_d.hash)(rn(e,vn));return nn(t,vn)}function Ed(e){let t=(0,_d.hash)(rn(e,$b));return nn(t,vn)}function gZ(e){return rn(`${e}`,AN)}function Ql(e){return Number(nn(e,AN))}function LN(e){let t=gZ(typeof e.type<"u"?e.type:MN);if(Ql(t)===Ia&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?rn(e.senderPublicKey,vn):void 0,n=typeof e.iv<"u"?rn(e.iv,vn):(0,Lb.randomBytes)(kb),i=new Fb.ChaCha20Poly1305(rn(e.symKey,vn)).seal(n,rn(e.message,$b));return yZ({type:t,sealed:i,iv:n,senderPublicKey:r})}function $N(e){let t=new Fb.ChaCha20Poly1305(rn(e.symKey,vn)),{sealed:r,iv:n}=Rg(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return nn(i,$b)}function yZ(e){if(Ql(e.type)===Ia){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return nn(Yl([e.type,e.senderPublicKey,e.iv,e.sealed]),Nb)}return nn(Yl([e.type,e.iv,e.sealed]),Nb)}function Rg(e){let t=rn(e,Nb),r=t.slice(mZ,CN),n=CN;if(Ql(r)===Ia){let a=n+Ub,u=a+kb,l=t.slice(n,a),p=t.slice(a,u),h=t.slice(u);return{type:r,sealed:h,iv:p,senderPublicKey:l}}let i=n+kb,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function UN(e,t){let r=Rg(e);return Vb({type:Ql(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?nn(r.senderPublicKey,vn):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function Vb(e){let t=(e==null?void 0:e.type)||MN;if(t===Ia){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function jb(e){return e.type===Ia&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var vZ=Object.defineProperty,PN=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,xZ=Object.prototype.propertyIsEnumerable,TN=(e,t,r)=>t in e?vZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DN=(e,t)=>{for(var r in t||(t={}))wZ.call(t,r)&&TN(e,r,t[r]);if(PN)for(var r of PN(t))xZ.call(t,r)&&TN(e,r,t[r]);return e},bZ="ReactNative",bd={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var _Z="js";function VN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function EZ(){return!(0,Oa.getDocument)()&&!!(0,Oa.getNavigator)()&&navigator.product===bZ}function SZ(){return!VN()&&!!(0,Oa.getNavigator)()}function CZ(){return EZ()?bd.reactNative:VN()?bd.node:SZ()?bd.browser:bd.unknown}function PZ(e,t){let r=Zl.parse(e);return r=DN(DN({},r),t),e=Zl.stringify(r),e}function TZ(){let e=aN();if(e===null)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function DZ(){var e;let t=CZ();return t===bd.browser?[t,((e=(0,Oa.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function OZ(e,t,r){let n=TZ(),i=DZ();return[[e,t].join("-"),[_Z,r].join("-"),n,i].join("/")}function jN({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=OZ(e,t,n),u={auth:i,ua:a,projectId:o},l=PZ(s[1]||"",u);return s[0]+"?"+l}function Bb(e){return Object.fromEntries(e.entries())}function zb(e){return new Map(Object.entries(e))}function BN(e){let t=(0,Ss.toMiliseconds)(e||Ss.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function Hb(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function zN(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function HN(e){return zN("topic",e)}function qN(e){return zN("id",e)}function KN(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function Ag(e,t){return(0,Ss.fromMiliseconds)((t||Date.now())+(0,Ss.toMiliseconds)(e))}function qb(e){return Date.now()>=(0,Ss.toMiliseconds)(e)}function Mg(e,t){return`${e}${t?`:${t}`:""}`}var IZ="irn";function Ng(e){return(e==null?void 0:e.relay)||{protocol:IZ}}function kg(e){let t=Dg[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var RZ=Object.defineProperty,ON=Object.getOwnPropertySymbols,AZ=Object.prototype.hasOwnProperty,MZ=Object.prototype.propertyIsEnumerable,IN=(e,t,r)=>t in e?RZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NZ=(e,t)=>{for(var r in t||(t={}))AZ.call(t,r)&&IN(e,r,t[r]);if(ON)for(var r of ON(t))MZ.call(t,r)&&IN(e,r,t[r]);return e};function kZ(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(i=>{if(i.startsWith(n)){let o=i.replace(n,""),s=e[i];r[o]=s}}),r}function WN(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),i=e.substring(t+1,r).split("@"),o=typeof r<"u"?e.substring(r):"",s=Zl.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:kZ(s)}}function FZ(e,t="-"){let r="relay",n={};return Object.keys(e).forEach(i=>{let o=r+t+i;e[i]&&(n[o]=e[i])}),n}function GN(e){return`${e.protocol}:${e.topic}@${e.version}?`+Zl.stringify(NZ({symKey:e.symKey},FZ(e.relay)))}var LZ={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},$Z={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Pt(e,t){let{message:r,code:n}=$Z[e];return{message:t?`${r} ${t}`:r,code:n}}function Jl(e,t){let{message:r,code:n}=LZ[e];return{message:t?`${r} ${t}`:r,code:n}}function Sd(e){return typeof e>"u"}function Kb(e,t){return t&&Sd(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function YN(e){if(Kb(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function XN(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function ZN(e){return e==null?void 0:e.topic}function Fg(e){return typeof e<"u"&&typeof e!==null}var Ut=me(go());c();d();f();c();d();f();var kk=me(xs());var hr={};Ar(hr,{DEFAULT_ERROR:()=>Pd,IBaseJsonRpcProvider:()=>Wg,IEvents:()=>rc,IJsonRpcConnection:()=>Qb,IJsonRpcProvider:()=>Td,INTERNAL_ERROR:()=>Lg,INVALID_PARAMS:()=>tk,INVALID_REQUEST:()=>JN,METHOD_NOT_FOUND:()=>ek,PARSE_ERROR:()=>QN,RESERVED_ERROR_CODES:()=>Wb,SERVER_ERROR:()=>Cd,SERVER_ERROR_CODE_RANGE:()=>$g,STANDARD_ERROR_MAP:()=>Cs,formatErrorMessage:()=>Mk,formatJsonRpcError:()=>Ra,formatJsonRpcRequest:()=>Ds,formatJsonRpcResult:()=>tc,getError:()=>Vg,getErrorByCode:()=>jg,isHttpUrl:()=>YZ,isJsonRpcError:()=>on,isJsonRpcPayload:()=>e_,isJsonRpcRequest:()=>nc,isJsonRpcResponse:()=>Aa,isJsonRpcResult:()=>oi,isJsonRpcValidationInvalid:()=>XZ,isLocalhostUrl:()=>Jb,isNodeJs:()=>Rk,isReservedErrorCode:()=>Ug,isServerErrorCode:()=>UZ,isValidDefaultRoute:()=>qg,isValidErrorCode:()=>rk,isValidLeadingWildcardRoute:()=>HZ,isValidRoute:()=>zZ,isValidTrailingWildcardRoute:()=>qZ,isValidWildcardRoute:()=>Kg,isWsUrl:()=>Gg,parseConnectionError:()=>Gb,payloadId:()=>Ak,validateJsonRpcError:()=>VZ});c();d();f();c();d();f();var QN="PARSE_ERROR",JN="INVALID_REQUEST",ek="METHOD_NOT_FOUND",tk="INVALID_PARAMS",Lg="INTERNAL_ERROR",Cd="SERVER_ERROR",Wb=[-32700,-32600,-32601,-32602,-32603],$g=[-32e3,-32099],Cs={[QN]:{code:-32700,message:"Parse error"},[JN]:{code:-32600,message:"Invalid Request"},[ek]:{code:-32601,message:"Method not found"},[tk]:{code:-32602,message:"Invalid params"},[Lg]:{code:-32603,message:"Internal error"},[Cd]:{code:-32e3,message:"Server error"}},Pd=Cd;c();d();f();function UZ(e){return e<=$g[0]&&e>=$g[1]}function Ug(e){return Wb.includes(e)}function rk(e){return typeof e=="number"}function Vg(e){return Object.keys(Cs).includes(e)?Cs[e]:Cs[Pd]}function jg(e){let t=Object.values(Cs).find(r=>r.code===e);return t||Cs[Pd]}function VZ(e){if(typeof e.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof e.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!rk(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(Ug(e.error.code)){let t=jg(e.error.code);if(t.message!==Cs[Pd].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function Gb(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var tr={};Ar(tr,{isNodeJs:()=>Rk});c();d();f();var Ik=me(Zb());lr(tr,me(Zb()));var Rk=Ik.isNode;lr(hr,tr);c();d();f();function Ak(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Ds(e,t,r){return{id:r||Ak(),jsonrpc:"2.0",method:e,params:t}}function tc(e,t){return{id:e,jsonrpc:"2.0",result:t}}function Ra(e,t,r){return{id:e,jsonrpc:"2.0",error:Mk(t,r)}}function Mk(e,t){return typeof e>"u"?Vg(Lg):(typeof e=="string"&&(e=Object.assign(Object.assign({},Vg(Cd)),{message:e})),typeof t<"u"&&(e.data=t),Ug(e.code)&&(e=jg(e.code)),e)}c();d();f();function zZ(e){return e.includes("*")?Kg(e):!/\W/g.test(e)}function qg(e){return e==="*"}function Kg(e){return qg(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function HZ(e){return!qg(e)&&Kg(e)&&!e.split("*")[0].trim()}function qZ(e){return!qg(e)&&Kg(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var rc=class{};c();d();f();var Qb=class extends rc{constructor(t){super()}},Wg=class extends rc{constructor(){super()}},Td=class extends Wg{constructor(t){super()}};c();d();f();c();d();f();var KZ="^https?:",WZ="^wss?:";function GZ(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Nk(e,t){let r=GZ(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function YZ(e){return Nk(e,KZ)}function Gg(e){return Nk(e,WZ)}function Jb(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function e_(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function nc(e){return e_(e)&&"method"in e}function Aa(e){return e_(e)&&(oi(e)||on(e))}function oi(e){return"result"in e}function on(e){return"error"in e}function XZ(e){return"error"in e&&e.valid===!1}var Yg=class extends Td{constructor(t){super(t),this.events=new kk.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(Ds(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(o){i(o)}this.events.on(`${t.id}`,o=>{on(o)?i(o.error):n(o.result)});try{await this.connection.send(t,r)}catch(o){i(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Aa(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",t=>this.events.emit("error",t)),this.hasRegisteredEventListeners=!0)}};c();d();f();c();d();f();var Uk=me(xs());var $k=10,ZZ=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:Lk(),QZ=()=>typeof window<"u",JZ=ZZ(),t_=class{constructor(t){if(this.url=t,this.events=new Uk.EventEmitter,this.registering=!1,!Gg(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=()=>{this.onClose(),t()},this.socket.close()})}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Fl(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!Gg(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),i(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let i=(0,hr.isReactNative)()?void 0:{rejectUnauthorized:!Jb(t)},o=new JZ(t,[],i);QZ()?o.onerror=s=>{let a=s;n(this.emitError(a.error))}:o.on("error",s=>{n(this.emitError(s))}),o.onopen=()=>{this.onOpen(o),r(o)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=()=>this.onClose(),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;let r=typeof t.data=="string"?ud(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=Ra(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return Gb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>$k&&this.events.setMaxListeners($k)}emitError(t){let r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",r),r}},Vk=t_;var jk=Vk;var B7=me(_7());function IJ(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var C=0,R=0,P=0,M=w.length;P!==M&&w[P]===0;)P++,C++;for(var A=(M-P)*p+1>>>0,$=new Uint8Array(A);P!==M;){for(var W=w[P],ee=0,q=A-1;(W!==0||ee<R)&&q!==-1;q--,ee++)W+=256*$[q]>>>0,$[q]=W%a>>>0,W=W/a>>>0;if(W!==0)throw new Error("Non-zero carry");R=ee,P++}for(var K=A-R;K!==A&&$[K]===0;)K++;for(var ue=u.repeat(C);K<A;++K)ue+=e.charAt($[K]);return ue}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var C=0;if(w[C]!==" "){for(var R=0,P=0;w[C]===u;)R++,C++;for(var M=(w.length-C)*l+1>>>0,A=new Uint8Array(M);w[C];){var $=r[w.charCodeAt(C)];if($===255)return;for(var W=0,ee=M-1;($!==0||W<P)&&ee!==-1;ee--,W++)$+=a*A[ee]>>>0,A[ee]=$%256>>>0,$=$/256>>>0;if($!==0)throw new Error("Non-zero carry");P=W,C++}if(w[C]!==" "){for(var q=M-P;q!==M&&A[q]===0;)q++;for(var K=new Uint8Array(R+(M-q)),ue=R;q!==M;)K[ue++]=A[q++];return K}}}function v(w){var C=y(w);if(C)return C;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var RJ=IJ,AJ=RJ,z7=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},MJ=e=>new TextEncoder().encode(e),NJ=e=>new TextDecoder().decode(e),m_=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},g_=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return H7(this,t)}},y_=class{constructor(t){this.decoders=t}or(t){return H7(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},H7=(e,t)=>new y_(ne(ne({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),v_=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new m_(t,r,n),this.decoder=new g_(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},ly=({name:e,prefix:t,encode:r,decode:n})=>new v_(e,t,r,n),kd=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=AJ(r,t);return ly({prefix:e,name:t,encode:n,decode:o=>z7(i(o))})},kJ=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},FJ=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},Ir=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>ly({prefix:t,name:e,encode(i){return FJ(i,n,r)},decode(i){return kJ(i,n,r,e)}}),LJ=ly({prefix:"\0",name:"identity",encode:e=>NJ(e),decode:e=>MJ(e)}),$J=Object.freeze({__proto__:null,identity:LJ}),UJ=Ir({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),VJ=Object.freeze({__proto__:null,base2:UJ}),jJ=Ir({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),BJ=Object.freeze({__proto__:null,base8:jJ}),zJ=kd({prefix:"9",name:"base10",alphabet:"0123456789"}),HJ=Object.freeze({__proto__:null,base10:zJ}),qJ=Ir({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),KJ=Ir({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),WJ=Object.freeze({__proto__:null,base16:qJ,base16upper:KJ}),GJ=Ir({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),YJ=Ir({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),XJ=Ir({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ZJ=Ir({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),QJ=Ir({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),JJ=Ir({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eee=Ir({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),tee=Ir({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ree=Ir({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),nee=Object.freeze({__proto__:null,base32:GJ,base32upper:YJ,base32pad:XJ,base32padupper:ZJ,base32hex:QJ,base32hexupper:JJ,base32hexpad:eee,base32hexpadupper:tee,base32z:ree}),iee=kd({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),oee=kd({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),see=Object.freeze({__proto__:null,base36:iee,base36upper:oee}),aee=kd({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),uee=kd({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),lee=Object.freeze({__proto__:null,base58btc:aee,base58flickr:uee}),cee=Ir({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),fee=Ir({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),dee=Ir({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),hee=Ir({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),pee=Object.freeze({__proto__:null,base64:cee,base64pad:fee,base64url:dee,base64urlpad:hee}),q7=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),mee=q7.reduce((e,t,r)=>(e[r]=t,e),[]),gee=q7.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function yee(e){return e.reduce((t,r)=>(t+=mee[r],t),"")}function vee(e){let t=[];for(let r of e){let n=gee[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var wee=ly({prefix:"\u{1F680}",name:"base256emoji",encode:yee,decode:vee}),xee=Object.freeze({__proto__:null,base256emoji:wee}),bee=K7,E7=128,_ee=127,Eee=~_ee,See=Math.pow(2,31);function K7(e,t,r){t=t||[],r=r||0;for(var n=r;e>=See;)t[r++]=e&255|E7,e/=128;for(;e&Eee;)t[r++]=e&255|E7,e>>>=7;return t[r]=e|0,K7.bytes=r-n+1,t}var Cee=w_,Pee=128,S7=127;function w_(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw w_.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&S7)<<i:(s&S7)*Math.pow(2,i),i+=7}while(s>=Pee);return w_.bytes=o-n,r}var Tee=Math.pow(2,7),Dee=Math.pow(2,14),Oee=Math.pow(2,21),Iee=Math.pow(2,28),Ree=Math.pow(2,35),Aee=Math.pow(2,42),Mee=Math.pow(2,49),Nee=Math.pow(2,56),kee=Math.pow(2,63),Fee=function(e){return e<Tee?1:e<Dee?2:e<Oee?3:e<Iee?4:e<Ree?5:e<Aee?6:e<Mee?7:e<Nee?8:e<kee?9:10},Lee={encode:bee,decode:Cee,encodingLength:Fee},W7=Lee,C7=(e,t,r=0)=>(W7.encode(e,t,r),t),P7=e=>W7.encodingLength(e),x_=(e,t)=>{let r=t.byteLength,n=P7(e),i=n+P7(r),o=new Uint8Array(i+r);return C7(e,o,0),C7(r,o,n),o.set(t,i),new b_(e,r,t,o)},b_=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},G7=({name:e,code:t,encode:r})=>new __(e,t,r),__=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?x_(this.code,r):r.then(n=>x_(this.code,n))}else throw Error("Unknown type, must be binary type")}},Y7=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),$ee=G7({name:"sha2-256",code:18,encode:Y7("SHA-256")}),Uee=G7({name:"sha2-512",code:19,encode:Y7("SHA-512")}),Vee=Object.freeze({__proto__:null,sha256:$ee,sha512:Uee}),X7=0,jee="identity",Z7=z7,Bee=e=>x_(X7,Z7(e)),zee={code:X7,name:jee,encode:Z7,digest:Bee},Hee=Object.freeze({__proto__:null,identity:zee});new TextEncoder,new TextDecoder;var T7=ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},$J),VJ),BJ),HJ),WJ),nee),see),lee),pee),xee);ne(ne({},Vee),Hee);function qee(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Q7(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var D7=Q7("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),h_=Q7("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=qee(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Kee=ne({utf8:D7,"utf-8":D7,hex:T7.base16,latin1:h_,ascii:h_,binary:h_},T7);function Wee(e,t="utf8"){let r=Kee[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}var J7="wc",Gee=2,N_="core",Rs=`${J7}@${2}:${N_}:`,Yee={name:N_,logger:"error"},Xee={database:":memory:"},Zee="crypto",O7="client_ed25519_seed",Qee=Ut.ONE_DAY,Jee="keychain",ete="0.3",tte="messages",rte="0.3",nte=Ut.SIX_HOURS,ite="publisher",k_="irn",ote="error",ste="wss://relay.walletconnect.com",ate="relayer",Or={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},ute="_subscription",ay={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},I7=Ut.ONE_SECOND;var lte="2.4.0",cte="0.3",Ki={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var fte="subscription",dte="0.3",hte=Ut.FIVE_SECONDS*1e3,pte="pairing",mte="0.3";var Md={wc_pairingDelete:{req:{ttl:Ut.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Ut.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Ut.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Ut.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Ut.ONE_DAY,prompt:!1,tag:0},res:{ttl:Ut.ONE_DAY,prompt:!1,tag:0}}},qi={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},gte="history",yte="0.3",vte="expirer",jn={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},wte="0.3";var E_=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=Jee,this.version=ete,this.initialized=!1,this.storagePrefix=Rs,this.init=async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()},this.get=n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>"u"){let{message:o}=Pt("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(o)}return i},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=t,this.logger=(0,Tt.generateChildLogger)(r,this.name)}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,Bb(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?zb(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},S_=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=Zee,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();let i=await this.getClientSeed(),o=Sb(i);return lg(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=NN();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=Sb(o),a=Ig();return await $M(a,i,Qee,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),u=kN(a,o);return this.setSymKey(u,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||FN(i);return await this.keychain.set(s,i),s},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,o,s)=>{this.isInitialized();let a=Vb(s),u=Fl(o);if(jb(a)){let y=a.senderPublicKey,v=a.receiverPublicKey;i=await this.generateSharedKey(y,v)}let l=this.getSymKey(i),{type:p,senderPublicKey:h}=a;return LN({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(i,o,s)=>{this.isInitialized();let a=UN(o,s);if(jb(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(p,h)}let u=this.getSymKey(i),l=$N({symKey:u,encoded:o});return ud(l)},this.core=t,this.logger=(0,Tt.generateChildLogger)(r,this.name),this.keychain=n||new E_(this.core,this.logger)}get context(){return(0,Tt.getLoggerContext)(this.logger)}getPayloadType(t){let r=Rg(t);return Ql(r.type)}async setPrivateKey(t,r){return await this.keychain.set(t,r),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(O7)}catch(r){t=Ig(),await this.keychain.set(O7,t)}return Wee(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},C_=class extends Hm{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=tte,this.version=rte,this.initialized=!1,this.storagePrefix=Rs,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,i)=>{this.isInitialized();let o=Ed(i),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[o]<"u"||(s[o]=i,this.messages.set(n,s),await this.persist()),o},this.get=n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>"u"&&(i={}),i},this.has=(n,i)=>{this.isInitialized();let o=this.get(n),s=Ed(i);return typeof o[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,Tt.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,Bb(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?zb(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},P_=class extends qm{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Co.EventEmitter,this.name=ite,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,i,o)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}});try{let s=(o==null?void 0:o.ttl)||nte,a=Ng(o),u=(o==null?void 0:o.prompt)||!1,l=(o==null?void 0:o.tag)||0,p={topic:n,message:i,opts:{ttl:s,relay:a,prompt:u,tag:l}},h=Ed(i);this.queue.set(h,p);try{await await Hb(this.rpcPublish(n,i,s,a,u,l),this.publishTimeout),this.relayer.events.emit(Or.publish,p)}catch(y){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Or.connection_stalled);return}this.onPublish(h,p),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=t,this.logger=(0,Tt.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,Tt.getLoggerContext)(this.logger)}rpcPublish(t,r,n,i,o,s){var a,u,l,p;let h={method:kg(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Sd((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),Sd((l=h.params)==null?void 0:l.tag)&&((p=h.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:i}=t;await this.publish(r,n,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(ac.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},T_=class{constructor(){this.map=new Map,this.set=(t,r)=>{let n=this.get(t);this.exists(t,r)||this.map.set(t,[...n,r])},this.get=t=>this.map.get(t)||[],this.exists=(t,r)=>this.get(t).includes(r),this.delete=(t,r)=>{if(typeof r>"u"){this.map.delete(t);return}if(!this.map.has(t))return;let n=this.get(t);if(!this.exists(t,r))return;let i=n.filter(o=>o!==r);if(!i.length){this.map.delete(t);return}this.map.set(t,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},xte=Object.defineProperty,bte=Object.defineProperties,_te=Object.getOwnPropertyDescriptors,R7=Object.getOwnPropertySymbols,Ete=Object.prototype.hasOwnProperty,Ste=Object.prototype.propertyIsEnumerable,A7=(e,t,r)=>t in e?xte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uy=(e,t)=>{for(var r in t||(t={}))Ete.call(t,r)&&A7(e,r,t[r]);if(R7)for(var r of R7(t))Ste.call(t,r)&&A7(e,r,t[r]);return e},p_=(e,t)=>bte(e,_te(t)),D_=class extends Gm{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new T_,this.events=new Co.EventEmitter,this.name=fte,this.version=dte,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Rs,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{let o=Ng(i),s={topic:n,relay:o};this.pending.set(n,s);let a=await this.rpcSubscribe(n,o);return this.onSubscribe(a,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}}),a}catch(o){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(o),o}},this.unsubscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),typeof(i==null?void 0:i.id)<"u"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((i,o)=>{let s=new Ut.Watch;s.start(this.pendingSubscriptionWatchLabel);let a=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=hte&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!1))},this.pollingInterval)}),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Tt.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,r){let n=!1;try{n=this.getSubscription(t).topic===r}catch(i){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(t,r){let n=this.topicMap.get(t);await Promise.all(n.map(async i=>await this.unsubscribeById(t,i,r)))}async unsubscribeById(t,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}});try{let i=Ng(n);await this.rpcUnsubscribe(t,r,i);let o=Jl("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,o),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(t,r){let n={method:kg(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Hb(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Or.connection_stalled)}return Ed(t+this.clientId)}rpcUnsubscribe(t,r,n){let i={method:kg(n.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(t,r){this.setSubscription(t,p_(uy({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,p_(uy({},r),{id:t})),this.pending.delete(r.topic)}async onUnsubscribe(t,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,t)&&this.deleteSubscription(r,n),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,r){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:r}),this.addSubscription(t,r))}addSubscription(t,r){this.subscriptions.set(t,uy({},r)),this.topicMap.set(r.topic,t),this.events.emit(Ki.created,r)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});let r=this.subscriptions.get(t);if(!r){let{message:n}=Pt("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}deleteSubscription(t,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:r});let n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(Ki.deleted,p_(uy({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Ki.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(Ki.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=Pt("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){let{topic:r,relay:n}=t,i={topic:r,relay:n};this.pending.set(i.topic,i);let o=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(o,i)}}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}checkPending(){this.relayer.transportExplicitlyClosed||this.pending.forEach(async t=>{let r=await this.rpcSubscribe(t.topic,t.relay);this.onSubscribe(r,t)})}registerEventListeners(){this.relayer.core.heartbeat.on(ac.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(Or.connect,async()=>{await this.onConnect()}),this.relayer.on(Or.disconnect,()=>{this.onDisconnect()}),this.events.on(Ki.created,async t=>{let r=Ki.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(Ki.deleted,async t=>{let r=Ki.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise(t=>{let r=setInterval(()=>{this.restartInProgress||(clearInterval(r),t())},this.pollingInterval)})}},Cte=Object.defineProperty,M7=Object.getOwnPropertySymbols,Pte=Object.prototype.hasOwnProperty,Tte=Object.prototype.propertyIsEnumerable,N7=(e,t,r)=>t in e?Cte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dte=(e,t)=>{for(var r in t||(t={}))Pte.call(t,r)&&N7(e,r,t[r]);if(M7)for(var r of M7(t))Tte.call(t,r)&&N7(e,r,t[r]);return e},O_=class extends Km{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Co.EventEmitter,this.name=ate,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Tt.generateChildLogger)(t.logger,this.name):(0,M_.default)((0,Tt.getDefaultLoggerOptions)({level:t.logger||ote})),this.messages=new C_(this.logger,t.core),this.subscriber=new D_(this,this.logger),this.publisher=new P_(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||ste,this.projectId=t.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return(0,Tt.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,r,n){this.isInitialized(),await this.publisher.publish(t,r,n),await this.recordMessageEvent({topic:t,message:r})}async subscribe(t,r){this.isInitialized();let n="";return await Promise.all([new Promise(i=>{this.subscriber.once(Ki.created,o=>{o.topic===t&&i()})}),new Promise(async i=>{n=await this.subscriber.subscribe(t,r),i()})]),n}async unsubscribe(t,r){this.isInitialized(),await this.subscriber.unsubscribe(t,r)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Or.transport_closed))}async transportOpen(t){if(!this.reconnecting){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(Ki.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(Or.transport_closed,()=>{n(new Error("closeTransport called before connection was established"))}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw r;this.logger.error(r),this.events.emit(Or.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(t){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(r=>setTimeout(r,I7)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new Yg(new jk(jN({sdkVersion:lte,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t})))}async recordMessageEvent(t){let{topic:r,message:n}=t;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(t){let{topic:r,message:n}=t;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),nc(t)){if(!t.method.endsWith(ute))return;let r=t.params,{topic:n,message:i}=r.data,o={topic:n,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Dte({type:"event",event:r.id},o)),this.events.emit(r.id,o),await this.acknowledgePayload(t),await this.onMessageEvent(o)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(Or.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=tc(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(ay.payload,t=>this.onProviderPayload(t)),this.provider.on(ay.connect,()=>{this.events.emit(Or.connect)}),this.provider.on(ay.disconnect,()=>{this.events.emit(Or.disconnect),this.attemptToReconnect()}),this.provider.on(ay.error,t=>this.events.emit(Or.error,t)),this.events.on(Or.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,Ut.toMiliseconds)(I7))}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},Ote=Object.defineProperty,k7=Object.getOwnPropertySymbols,Ite=Object.prototype.hasOwnProperty,Rte=Object.prototype.propertyIsEnumerable,F7=(e,t,r)=>t in e?Ote(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L7=(e,t)=>{for(var r in t||(t={}))Ite.call(t,r)&&F7(e,r,t[r]);if(k7)for(var r of k7(t))Rte.call(t,r)&&F7(e,r,t[r]);return e},La=class extends Wm{constructor(t,r,n,i=Rs,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=cte,this.cached=[],this.initialized=!1,this.storagePrefix=Rs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{XN(s)?this.map.set(s.id,s):ZN(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Sd(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,a)=>{this.isInitialized(),this.map.has(s)?await this.update(s,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:a}),this.map.set(s,a),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(a=>Object.keys(s).every(u=>(0,B7.default)(a[u],s[u]))):this.values),this.update=async(s,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:a});let u=L7(L7({},this.getData(s)),a);this.map.set(s,u),await this.persist()},this.delete=async(s,a)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:a}),this.map.delete(s),await this.persist())},this.logger=(0,Tt.generateChildLogger)(r,this.name),this.storagePrefix=i,this.getKey=o}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){let r=this.map.get(t);if(!r){let{message:n}=Pt("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){let{message:r}=Pt("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},I_=class{constructor(t,r){this.core=t,this.logger=r,this.name=pte,this.version=mte,this.events=new Co.default,this.initialized=!1,this.storagePrefix=Rs,this.ignoredPayloadTypes=[Ia],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=Ig(),i=await this.core.crypto.setSymKey(n),o=Ag(Ut.FIVE_MINUTES),s={protocol:k_},a={topic:i,expiry:o,relay:s,active:!1},u=GN({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:n,relay:s});return await this.pairings.set(i,a),await this.core.relayer.subscribe(i),this.core.expirer.set(i,o),{topic:i,uri:u}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:i,symKey:o,relay:s}=WN(n.uri),a=Ag(Ut.FIVE_MINUTES),u={topic:i,relay:s,expiry:a,active:!1};return await this.pairings.set(i,u),await this.core.crypto.setSymKey(o,i),await this.core.relayer.subscribe(i,{relay:s}),this.core.expirer.set(i,a),n.activatePairing&&await this.activate({topic:i}),u},this.activate=async({topic:n})=>{this.isInitialized();let i=Ag(Ut.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:i}),this.core.expirer.set(n,i)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:i}=n;if(this.pairings.keys.includes(i)){let o=await this.sendRequest(i,"wc_pairingPing",{}),{done:s,resolve:a,reject:u}=BN();this.events.once(Mg("pairing_ping",o),({error:l})=>{l?u(l):a()}),await s()}},this.updateExpiry=async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})},this.updateMetadata=async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",Jl("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=Ds(i,o),a=await this.core.crypto.encode(n,s),u=Md[i].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,u),s.id},this.sendResult=async(n,i,o)=>{let s=tc(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Md[u.request.method].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.sendError=async(n,i,o)=>{let s=Ra(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Md[u.request.method]?Md[u.request.method].res:Md.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.deletePairing=async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Jl("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(i=>qb(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=n=>{let{topic:i,payload:o}=n,s=o.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(i,o);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,o);default:return this.onUnknownRpcMethodRequest(i,o)}},this.onRelayEventResponse=async n=>{let{topic:i,payload:o}=n,s=(await this.core.history.get(i,o.id)).request.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(i,o);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,i)=>{let{id:o}=i;try{this.isValidPing({topic:n}),await this.sendResult(o,n,!0),this.events.emit("pairing_ping",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,i)=>{let{id:o}=i;setTimeout(()=>{oi(i)?this.events.emit(Mg("pairing_ping",o),{}):on(i)&&this.events.emit(Mg("pairing_ping",o),{error:i.error})},500)},this.onPairingDeleteRequest=async(n,i)=>{let{id:o}=i;try{this.isValidDisconnect({topic:n}),await this.sendResult(o,n,!0),await this.deletePairing(n),this.events.emit("pairing_delete",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,i)=>{let{id:o,method:s}=i;try{if(this.registeredMethods.includes(s))return;let a=Jl("WC_METHOD_UNSUPPORTED",s);await this.sendError(o,n,a),this.logger.error(a)}catch(a){await this.sendError(o,n,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Jl("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Fg(n)){let{message:i}=Pt("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!YN(n.uri)){let{message:i}=Pt("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!Fg(n)){let{message:o}=Pt("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidDisconnect=async n=>{if(!Fg(n)){let{message:o}=Pt("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async n=>{if(!Kb(n,!1)){let{message:i}=Pt("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Pt("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(qb(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Pt("EXPIRED",`pairing topic: ${n}`);throw new Error(i)}},this.core=t,this.logger=(0,Tt.generateChildLogger)(r,this.name),this.pairings=new La(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Tt.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(Or.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let i=await this.core.crypto.decode(r,n);nc(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):Aa(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(jn.expired,async t=>{let{topic:r}=KN(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},R_=class extends zm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Co.EventEmitter,this.name=gte,this.version=yte,this.cached=[],this.initialized=!1,this.storagePrefix=Rs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,i,o)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:i,chainId:o}),this.records.has(i.id))return;let s={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:o};this.records.set(s.id,s),this.events.emit(qi.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>"u"&&(i.response=on(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(qi.updated,i))},this.get=async(n,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:i}),await this.getRecord(i)),this.delete=(n,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(o=>{if(o.topic===n){if(typeof i<"u"&&o.id!==i)return;this.records.delete(o.id),this.events.emit(qi.deleted,o)}})},this.exists=async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Tt.generateChildLogger)(r,this.name)}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let t=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;let n={topic:r.topic,request:Ds(r.request.method,r.request.params,r.id),chainId:r.chainId};return t.push(n)}),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();let r=this.records.get(t);if(!r){let{message:n}=Pt("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(qi.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=Pt("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(qi.created,t=>{let r=qi.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(qi.updated,t=>{let r=qi.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(qi.deleted,t=>{let r=qi.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},A_=class extends Ym{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Co.EventEmitter,this.name=vte,this.version=wte,this.cached=[],this.initialized=!1,this.storagePrefix=Rs,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<"u"}catch(i){return!1}},this.set=(n,i)=>{this.isInitialized();let o=this.formatTarget(n),s={target:o,expiry:i};this.expirations.set(o,s),this.checkExpiry(o,s),this.events.emit(jn.created,{target:o,expiration:s})},this.get=n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),o=this.getExpiration(i);this.expirations.delete(i),this.events.emit(jn.deleted,{target:i,expiration:o})}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Tt.generateChildLogger)(r,this.name)}get context(){return(0,Tt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if(typeof t=="string")return HN(t);if(typeof t=="number")return qN(t);let{message:r}=Pt("UNKNOWN_TYPE",`Target type: ${typeof t}`);throw new Error(r)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(jn.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=Pt("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){let r=this.expirations.get(t);if(!r){let{message:n}=Pt("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,Ut.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(jn.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(ac.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(jn.created,t=>{let r=jn.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(jn.expired,t=>{let r=jn.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(jn.deleted,t=>{let r=jn.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Pt("NOT_INITIALIZED",this.name);throw new Error(t)}}},Ate=Object.defineProperty,$7=Object.getOwnPropertySymbols,Mte=Object.prototype.hasOwnProperty,Nte=Object.prototype.propertyIsEnumerable,U7=(e,t,r)=>t in e?Ate(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V7=(e,t)=>{for(var r in t||(t={}))Mte.call(t,r)&&U7(e,r,t[r]);if($7)for(var r of $7(t))Nte.call(t,r)&&U7(e,r,t[r]);return e},Nd=class extends Bm{constructor(t){super(t),this.protocol=J7,this.version=Gee,this.name=N_,this.events=new Co.EventEmitter,this.initialized=!1,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.projectId=t==null?void 0:t.projectId;let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,M_.default)((0,Tt.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||Yee.logger}));this.logger=(0,Tt.generateChildLogger)(r,this.name),this.heartbeat=new ac.HeartBeat,this.crypto=new S_(this,this.logger,t==null?void 0:t.keychain),this.history=new R_(this,this.logger),this.expirer=new A_(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new j7.default(V7(V7({},Xee),t==null?void 0:t.storageOptions)),this.relayer=new O_({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new I_(this,this.logger)}static async init(t){let r=new Nd(t);return await r.initialize(),r}get context(){return(0,Tt.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},eF=Nd;var cc=me(L2());c();d();f();Lm();var tF=me(xs());var cy=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var fy=class{constructor(t){this.client=t}};c();d();f();var zte=me(pg()),Hte=me(mg()),qte=me(_a()),hF=me(vg()),pF=me(bg());var Ms=me(go()),L_=me(Da()),mF=me(nF()),gF=me(fF());function $_(e,t){return e.includes(":")?[e]:t.chains||[]}var yF=1;function vF(){return(0,mF.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function As(e,t){return e.filter(r=>t.includes(r)).length===e.length}function $a(e){let t=(0,Ms.toMiliseconds)(e||Ms.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function wF(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function Ns(e,t){return(0,Ms.fromMiliseconds)((t||Date.now())+(0,Ms.toMiliseconds)(e))}function Ua(e){return Date.now()>=(0,Ms.toMiliseconds)(e)}function pr(e,t){return`${e}${t?`:${t}`:""}`}function Fd(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function Kte(e){let t=[];return Object.values(e).forEach(r=>{t.push(...Fd(r.accounts))}),t}function Wte(e,t){let r=[];return Object.values(e).forEach(n=>{Fd(n.accounts).includes(t)&&r.push(...n.methods)}),r}function Gte(e,t){let r=[];return Object.values(e).forEach(n=>{Fd(n.accounts).includes(t)&&r.push(...n.events)}),r}function xF(e,t){let r=Ld(e,t);if(r)throw new Error(r.message);let n={};for(let[i,o]of Object.entries(e))n[i]={methods:o.methods,events:o.events,chains:o.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var Yte={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Xte={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function He(e,t){let{message:r,code:n}=Xte[e];return{message:t?`${r} ${t}`:r,code:n}}function xn(e,t){let{message:r,code:n}=Yte[e];return{message:t?`${r} ${t}`:r,code:n}}function hy(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function uc(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function Bn(e){return typeof e>"u"}function Rr(e,t){return t&&Bn(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function U_(e,t){return t&&Bn(e)?!0:typeof e=="number"&&!isNaN(e)}function bF(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return As(i,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l}=e.namespaces[s],p=Fd(a),h=r[s];(!As($_(s,h),p)||!As(h.methods,u)||!As(h.events,l))&&(o=!1)}),o):!1}function V_(e){return Rr(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function Zte(e){if(Rr(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&V_(r)}}return!1}function _F(e,t){let r=null;return Rr(e==null?void 0:e.publicKey,!1)||(r=He("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function dF(e){let t=!0;return hy(e)?e.length&&(t=e.every(r=>Rr(r,!1))):t=!1,t}function Qte(e,t,r){let n=null;return hy(t)?t.forEach(i=>{n||(!V_(i)||!i.includes(e))&&(n=xn("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=xn("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function Jte(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=Qte(n,$_(n,i),`${t} requiredNamespace`);o&&(r=o)}),r}function ere(e,t){let r=null;return hy(e)?e.forEach(n=>{r||Zte(n)||(r=xn("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=xn("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function tre(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=ere(n==null?void 0:n.accounts,`${t} namespace`);i&&(r=i)}),r}function rre(e,t){let r=null;return dF(e==null?void 0:e.methods)?dF(e==null?void 0:e.events)||(r=xn("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=xn("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function EF(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=rre(n,`${t}, namespace`);i&&(r=i)}),r}function SF(e,t,r){let n=null;if(e&&uc(e)){let i=EF(e,t);i&&(n=i);let o=Jte(e,t);o&&(n=o)}else n=He("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function Ld(e,t){let r=null;if(e&&uc(e)){let n=EF(e,t);n&&(r=n);let i=tre(e,t);i&&(r=i)}else r=He("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function j_(e){return Rr(e.protocol,!0)}function CF(e,t){let r=!1;return t&&!e?r=!0:e&&hy(e)&&e.length&&e.forEach(n=>{r=j_(n)}),r}function PF(e){return typeof e=="number"}function si(e){return typeof e<"u"&&typeof e!==null}function TF(e){return!(!e||typeof e!="object"||!e.code||!U_(e.code,!1)||!e.message||!Rr(e.message,!1))}function DF(e){return!(Bn(e)||!Rr(e.method,!1))}function OF(e){return!(Bn(e)||Bn(e.result)&&Bn(e.error)||!U_(e.id,!1)||!Rr(e.jsonrpc,!1))}function IF(e){return!(Bn(e)||!Rr(e.name,!1))}function B_(e,t){return!(!V_(t)||!Kte(e).includes(t))}function RF(e,t,r){return Rr(r,!1)?Wte(e,t).includes(r):!1}function AF(e,t,r){return Rr(r,!1)?Gte(e,t).includes(r):!1}function py(e,t,r,n){let i=null,o=Object.keys(e),s=Object.keys(t);return As(o,s)?o.forEach(a=>{if(i)return;let u=Fd(t[a].accounts);As($_(a,e[a]),u)?As(e[a].methods,t[a].methods)?As(e[a].events,t[a].events)||(i=He("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${a}`)):i=He("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${a}`):i=He("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace chains for ${a}`)}):i=He("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy ${n}`),i}function MF(e,t){return U_(e,!1)&&e<=t.max&&e>=t.min}var gy=me(xs()),Nt=me(go());var LF="wc",$F=2,UF="client",X_=`${LF}@${$F}:${UF}:`,z_={name:UF,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var nre="proposal";var ire="session",my=Nt.SEVEN_DAYS,ore="engine",$d={wc_sessionPropose:{req:{ttl:Nt.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Nt.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Nt.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Nt.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Nt.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Nt.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Nt.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Nt.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Nt.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Nt.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Nt.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Nt.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Nt.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Nt.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Nt.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Nt.THIRTY_SECONDS,prompt:!1,tag:1115}}},H_={min:Nt.FIVE_MINUTES,max:Nt.SEVEN_DAYS},sre="request",are=Object.defineProperty,ure=Object.defineProperties,lre=Object.getOwnPropertyDescriptors,NF=Object.getOwnPropertySymbols,cre=Object.prototype.hasOwnProperty,fre=Object.prototype.propertyIsEnumerable,kF=(e,t,r)=>t in e?are(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ai=(e,t)=>{for(var r in t||(t={}))cre.call(t,r)&&kF(e,r,t[r]);if(NF)for(var r of NF(t))fre.call(t,r)&&kF(e,r,t[r]);return e},q_=(e,t)=>ure(e,lre(t)),K_=class extends fy{constructor(t){super(t),this.name=ore,this.events=new gy.default,this.initialized=!1,this.ignoredPayloadTypes=[yF],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys($d)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=q_(ai({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:i,requiredNamespaces:o,optionalNamespaces:s,sessionProperties:a,relays:u}=n,l=i,p,h=!1;if(l&&(h=this.client.core.pairing.pairings.get(l).active),!l||!h){let{topic:A,uri:$}=await this.client.core.pairing.create();l=A,p=$}let y=await this.client.core.crypto.generateKeyPair(),v=ai({requiredNamespaces:o,optionalNamespaces:s,relays:u!=null?u:[{protocol:k_}],proposer:{publicKey:y,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:w,resolve:C,done:R}=$a();if(this.events.once(pr("session_connect"),async({error:A,session:$})=>{if(A)w(A);else if($){$.self.publicKey=y;let W=q_(ai({},$),{requiredNamespaces:$.requiredNamespaces,optionalNamespaces:$.optionalNamespaces});await this.client.session.set($.topic,W),await this.setExpiry($.topic,$.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:$.peer.metadata}),C(W)}}),!l){let{message:A}=He("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(A)}let P=await this.sendRequest(l,"wc_sessionPropose",v),M=Ns(Nt.FIVE_MINUTES);return await this.setProposal(P,ai({id:P,expiry:M},v)),{uri:p,approval:R}},this.pair=async r=>(this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);let{id:n,relayProtocol:i,namespaces:o,sessionProperties:s}=r,a=this.client.proposal.get(n),{pairingTopic:u,proposer:l,requiredNamespaces:p,optionalNamespaces:h}=a;uc(p)||(p=xF(o,"approve()"));let y=await this.client.core.crypto.generateKeyPair(),v=l.publicKey,w=await this.client.core.crypto.generateSharedKey(y,v);u&&n&&(await this.client.core.pairing.updateMetadata({topic:u,metadata:l.metadata}),await this.sendResult(n,u,{relay:{protocol:i!=null?i:"irn"},responderPublicKey:y}),await this.client.proposal.delete(n,xn("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:u}));let C=ai({relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:p,optionalNamespaces:h,controller:{publicKey:y,metadata:this.client.metadata},expiry:Ns(my)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(w);let R=await this.sendRequest(w,"wc_sessionSettle",C),{done:P,resolve:M,reject:A}=$a();this.events.once(pr("session_approve",R),({error:W})=>{W?A(W):M(this.client.session.get(w))});let $=q_(ai({},C),{topic:w,acknowledged:!1,self:C.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:y});return await this.client.session.set(w,$),await this.setExpiry(w,Ns(my)),{topic:w,acknowledged:P}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);let{id:n,reason:i}=r,{pairingTopic:o}=this.client.proposal.get(n);o&&(await this.sendError(n,o,i),await this.client.proposal.delete(n,xn("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);let{topic:n,namespaces:i}=r,o=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:i}),{done:s,resolve:a,reject:u}=$a();return this.events.once(pr("session_update",o),({error:l})=>{l?u(l):a()}),await this.client.session.update(n,{namespaces:i}),{acknowledged:s}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);let{topic:n}=r,i=await this.sendRequest(n,"wc_sessionExtend",{}),{done:o,resolve:s,reject:a}=$a();return this.events.once(pr("session_extend",i),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,Ns(my)),{acknowledged:o}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:i,topic:o,expiry:s}=r,a=await this.sendRequest(o,"wc_sessionRequest",{request:i,chainId:n},s),{done:u,resolve:l,reject:p}=$a(s);return this.events.once(pr("session_request",a),({error:h,result:y})=>{h?p(h):l(y)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;oi(i)?await this.sendResult(o,n,i.result):on(i)&&await this.sendError(o,n,i.error),this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=await this.sendRequest(n,"wc_sessionPing",{}),{done:o,resolve:s,reject:a}=$a();this.events.once(pr("session_ping",i),({error:u})=>{u?a(u):s()}),await o()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);let{topic:n,event:i,chainId:o}=r;await this.sendRequest(n,"wc_sessionEvent",{event:i,chainId:o})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);let{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",xn("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>bF(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(r,n)=>{let{self:i}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await Promise.all([this.client.session.delete(r,xn("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(i.publicKey),this.client.core.crypto.deleteSymKey(r),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,xn("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{let n=$d.wc_sessionRequest.req.ttl,{id:i,topic:o,params:s}=r;await this.client.pendingRequest.set(i,{id:i,topic:o,params:s}),n&&this.client.core.expirer.set(i,Ns(n))},this.sendRequest=async(r,n,i,o)=>{let s=Ds(n,i),a=await this.client.core.crypto.encode(r,s),u=$d[n].req;return o&&(u.ttl=o),this.client.core.history.set(r,s),this.client.core.relayer.publish(r,a,u),s.id},this.sendResult=async(r,n,i)=>{let o=tc(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=$d[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.sendError=async(r,n,i)=>{let o=Ra(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=$d[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{Ua(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{Ua(i.expiry)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession(i)),...n.map(i=>this.deleteProposal(i))])},this.onRelayEventRequest=r=>{let{topic:n,payload:i}=r,o=i.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeRequest(n,i);case"wc_sessionSettle":return this.onSessionSettleRequest(n,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,i);case"wc_sessionExtend":return this.onSessionExtendRequest(n,i);case"wc_sessionPing":return this.onSessionPingRequest(n,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,i);case"wc_sessionRequest":return this.onSessionRequest(n,i);case"wc_sessionEvent":return this.onSessionEventRequest(n,i);default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async r=>{let{topic:n,payload:i}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeResponse(n,i);case"wc_sessionSettle":return this.onSessionSettleResponse(n,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,i);case"wc_sessionExtend":return this.onSessionExtendResponse(n,i);case"wc_sessionPing":return this.onSessionPingResponse(n,i);case"wc_sessionRequest":return this.onSessionRequestResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}},this.onSessionProposeRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidConnect(ai({},n.params));let s=Ns(Nt.FIVE_MINUTES),a=ai({id:o,pairingTopic:r,expiry:s},i);await this.setProposal(o,a),this.client.events.emit("session_proposal",{id:o,params:a})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(r,n)=>{let{id:i}=n;if(oi(n)){let{result:o}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});let s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let a=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let u=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u});let l=await this.client.core.crypto.generateSharedKey(a,u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:r})}else on(n)&&(await this.client.proposal.delete(i,xn("USER_DISCONNECTED")),this.events.emit(pr("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidSessionSettleRequest(o);let{relay:s,controller:a,expiry:u,namespaces:l,requiredNamespaces:p,optionalNamespaces:h,sessionProperties:y}=n.params,v=ai({topic:r,relay:s,expiry:u,namespaces:l,acknowledged:!0,requiredNamespaces:p,optionalNamespaces:h,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},y&&{sessionProperties:y});await this.sendResult(n.id,r,!0),this.events.emit(pr("session_connect"),{session:v})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;oi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(pr("session_approve",i),{})):on(n)&&(await this.client.session.delete(r,xn("USER_DISCONNECTED")),this.events.emit(pr("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(ai({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(o,r,!0),this.client.events.emit("session_update",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(r,n)=>{let{id:i}=n;oi(n)?this.events.emit(pr("session_update",i),{}):on(n)&&this.events.emit(pr("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Ns(my)),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionExtendResponse=(r,n)=>{let{id:i}=n;oi(n)?this.events.emit(pr("session_extend",i),{}):on(n)&&this.events.emit(pr("session_extend",i),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionPingResponse=(r,n)=>{let{id:i}=n;setTimeout(()=>{oi(n)?this.events.emit(pr("session_ping",i),{}):on(n)&&this.events.emit(pr("session_ping",i),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),this.client.core.relayer.once(Or.publish,async()=>{await this.deleteSession(r)}),await this.sendResult(i,r,!0),this.client.events.emit("session_delete",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidRequest(ai({topic:r},o)),await this.setPendingSessionRequest({id:i,topic:r,params:o}),this.client.events.emit("session_request",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(r,n)=>{let{id:i}=n;oi(n)?this.events.emit(pr("session_request",i),{result:n.result}):on(n)&&this.events.emit(pr("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(ai({topic:r},o)),this.client.events.emit("session_event",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.isValidConnect=async r=>{if(!si(r)){let{message:u}=He("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(u)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:a}=r;if(Bn(n)||await this.isValidPairingTopic(n),!CF(a,!0)){let{message:u}=He("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(u)}!Bn(i)&&uc(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!Bn(o)&&uc(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),Bn(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let i=SF(r,"connect()",n);if(i)throw new Error(i.message)},this.isValidApprove=async r=>{if(!si(r))throw new Error(He("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:o,sessionProperties:s}=r;await this.isValidProposalId(n);let a=this.client.proposal.get(n),u=Ld(i,"approve()");if(u)throw new Error(u.message);let l=py(a.requiredNamespaces,i,"approve()","requiredNamespaces");if(l)throw new Error(l.message);if(!Rr(o,!0)){let{message:p}=He("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(p)}if(Object.keys(i).length>Object.keys(a.requiredNamespaces).length){let p=Object.keys(a.optionalNamespaces).filter(v=>i[v]),h={};for(let v in a.optionalNamespaces)p.includes(v)&&(h[v]=a.optionalNamespaces[v]);let y=py(h,i,"approve()","optionalNamespaces");if(y)throw new Error(y.message)}Bn(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!si(r)){let{message:o}=He("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(o)}let{id:n,reason:i}=r;if(await this.isValidProposalId(n),!TF(i)){let{message:o}=He("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!si(r)){let{message:l}=He("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:o,expiry:s}=r;if(!j_(n)){let{message:l}=He("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=_F(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=Ld(o,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(Ua(s)){let{message:l}=He("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!si(r)){let{message:u}=He("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(u)}let{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);let o=this.client.session.get(n),s=Ld(i,"update()");if(s)throw new Error(s.message);let a=py(o.requiredNamespaces,i,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!si(r)){let{message:i}=He("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!si(r)){let{message:u}=He("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(u)}let{topic:n,request:i,chainId:o,expiry:s}=r;await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!B_(a,o)){let{message:u}=He("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(u)}if(!DF(i)){let{message:u}=He("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!RF(a,o,i.method)){let{message:u}=He("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}if(s&&!MF(s,H_)){let{message:u}=He("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${H_.min} and ${H_.max}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!si(r)){let{message:o}=He("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(o)}let{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!OF(i)){let{message:o}=He("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!si(r)){let{message:i}=He("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!si(r)){let{message:a}=He("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:o}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!B_(s,o)){let{message:a}=He("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!IF(i)){let{message:a}=He("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!AF(s,o,i.name)){let{message:a}=He("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!si(r)){let{message:i}=He("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(i=>{if(!Rr(i,!1)){let{message:o}=He("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(i)}`);throw new Error(o)}})}}isInitialized(){if(!this.initialized){let{message:t}=He("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(Or.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let i=await this.client.core.crypto.decode(r,n);nc(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):Aa(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(jn.expired,async t=>{let{topic:r,id:n}=wF(t.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,He("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(t){if(!Rr(t,!1)){let{message:r}=He("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(Ua(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=He("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!Rr(t,!1)){let{message:r}=He("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(Ua(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=He("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.core.pairing.pairings.keys.includes(t))this.isValidPairingTopic(t);else if(Rr(t,!1)){let{message:r}=He("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=He("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!PF(t)){let{message:r}=He("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(Ua(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=He("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},W_=class extends La{constructor(t,r){super(t,r,nre,X_),this.core=t,this.logger=r}},G_=class extends La{constructor(t,r){super(t,r,ire,X_),this.core=t,this.logger=r}},Y_=class extends La{constructor(t,r){super(t,r,sre,X_),this.core=t,this.logger=r}},lc=class extends cy{constructor(t){super(t),this.protocol=LF,this.version=$F,this.name=z_.name,this.events=new gy.EventEmitter,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}},this.update=async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}},this.request=async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}},this.find=n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(t==null?void 0:t.name)||z_.name,this.metadata=(t==null?void 0:t.metadata)||vF();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,FF.default)((0,cc.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||z_.logger}));this.core=(t==null?void 0:t.core)||new eF(t),this.logger=(0,cc.generateChildLogger)(r,this.name),this.session=new G_(this.core,this.logger),this.proposal=new W_(this.core,this.logger),this.pendingRequest=new Y_(this.core,this.logger),this.engine=new K_(this)}static async init(t){let r=new lc(t);return await r.initialize(),r}get context(){return(0,cc.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}};c();d();f();var xre=me(pg()),bre=me(mg()),_re=me(_a()),XF=me(vg()),ZF=me(bg());var Q_=me(go()),J_=me(Da()),Ere=me(jF()),QF=me(YF());var Sre={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function JF(e,t){let{message:r,code:n}=Sre[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var S9=me(e9(),1);c();d();f();c();d();f();c();d();f();var y9=me(n9());c();d();f();c();d();f();c();d();f();var i9="logger/5.7.0";var o9=!1,s9=!1,wy={debug:1,default:2,info:2,warning:3,error:4,off:5},a9=wy.default,tE=null;function Cre(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")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 u9=Cre(),rE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(rE||(rE={}));var Ei;(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"})(Ei||(Ei={}));var l9="0123456789abcdef",ct=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();wy[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(a9>wy[n])&&console.log.apply(console,r)}debug(...t){this._log(ct.levels.DEBUG,t)}info(...t){this._log(ct.levels.INFO,t)}warn(...t){this._log(ct.levels.WARNING,t)}makeError(t,r,n){if(s9)return this.makeError("censored error",r,{});r||(r=ct.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(u=>{let l=n[u];try{if(l instanceof Uint8Array){let p="";for(let h=0;h<l.length;h++)p+=l9[l[h]>>4],p+=l9[l[h]&15];i.push(u+"=Uint8Array(0x"+p+")")}else i.push(u+"="+JSON.stringify(l))}catch(p){i.push(u+"="+JSON.stringify(n[u].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let o=t,s="";switch(r){case Ei.NUMERIC_FAULT:{s="NUMERIC_FAULT";let u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case Ei.CALL_EXCEPTION:case Ei.INSUFFICIENT_FUNDS:case Ei.MISSING_NEW:case Ei.NONCE_EXPIRED:case Ei.REPLACEMENT_UNDERPRICED:case Ei.TRANSACTION_REPLACED:case Ei.UNPREDICTABLE_GAS_LIMIT:s=r;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");let a=new Error(t);return a.reason=o,a.code=r,Object.keys(n).forEach(function(u){a[u]=n[u]}),a}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,ct.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),u9&&this.throwError("platform missing String.prototype.normalize",ct.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:u9})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,ct.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,ct.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,ct.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,ct.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",ct.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",ct.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",ct.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return tE||(tE=new ct(i9)),tE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",ct.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o9){if(!t)return;this.globalLogger().throwError("error censorship permanent",ct.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}s9=!!t,o9=!!r}static setLogLevel(t){let r=wy[t.toLowerCase()];if(r==null){ct.globalLogger().warn("invalid log level - "+t);return}a9=r}static from(t){return new ct(t)}};ct.errors=Ei;ct.levels=rE;c();d();f();var c9="bytes/5.7.0";var Va=new ct(c9);function d9(e){return!!e.toHexString}function fc(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return fc(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function h9(e){return dc(e)&&!(e.length%2)||Ud(e)}function f9(e){return typeof e=="number"&&e==e&&e%1===0}function Ud(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!f9(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!f9(r)||r<0||r>=256)return!1}return!0}function zn(e,t){if(t||(t={}),typeof e=="number"){Va.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),fc(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),d9(e)&&(e=e.toHexString()),dc(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":Va.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let i=0;i<r.length;i+=2)n.push(parseInt(r.substring(i,i+2),16));return fc(new Uint8Array(n))}return Ud(e)?fc(new Uint8Array(e)):Va.throwArgumentError("invalid arrayify value","value",e)}function Vd(e){let t=e.map(i=>zn(i)),r=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return t.reduce((i,o)=>(n.set(o,i),i+o.length),0),fc(n)}function xy(e,t){e=zn(e),e.length>t&&Va.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),fc(r)}function dc(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var nE="0123456789abcdef";function hc(e,t){if(t||(t={}),typeof e=="number"){Va.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=nE[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),d9(e))return e.toHexString();if(dc(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":Va.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Ud(e)){let r="0x";for(let n=0;n<e.length;n++){let i=e[n];r+=nE[(i&240)>>4]+nE[i&15]}return r}return Va.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var p9="bignumber/5.7.0";var oE=y9.default.BN,Do=new ct(p9),iE={},m9=9007199254740991;var g9=!1,xr=class{constructor(t,r){t!==iE&&Do.throwError("cannot call constructor directly; use BigNumber.from",ct.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return _n(ft(this).fromTwos(t))}toTwos(t){return _n(ft(this).toTwos(t))}abs(){return this._hex[0]==="-"?xr.from(this._hex.substring(1)):this}add(t){return _n(ft(this).add(ft(t)))}sub(t){return _n(ft(this).sub(ft(t)))}div(t){return xr.from(t).isZero()&&ui("division-by-zero","div"),_n(ft(this).div(ft(t)))}mul(t){return _n(ft(this).mul(ft(t)))}mod(t){let r=ft(t);return r.isNeg()&&ui("division-by-zero","mod"),_n(ft(this).umod(r))}pow(t){let r=ft(t);return r.isNeg()&&ui("negative-power","pow"),_n(ft(this).pow(r))}and(t){let r=ft(t);return(this.isNegative()||r.isNeg())&&ui("unbound-bitwise-result","and"),_n(ft(this).and(r))}or(t){let r=ft(t);return(this.isNegative()||r.isNeg())&&ui("unbound-bitwise-result","or"),_n(ft(this).or(r))}xor(t){let r=ft(t);return(this.isNegative()||r.isNeg())&&ui("unbound-bitwise-result","xor"),_n(ft(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&ui("negative-width","mask"),_n(ft(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&ui("negative-width","shl"),_n(ft(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&ui("negative-width","shr"),_n(ft(this).shrn(t))}eq(t){return ft(this).eq(ft(t))}lt(t){return ft(this).lt(ft(t))}lte(t){return ft(this).lte(ft(t))}gt(t){return ft(this).gt(ft(t))}gte(t){return ft(this).gte(ft(t))}isNegative(){return this._hex[0]==="-"}isZero(){return ft(this).isZero()}toNumber(){try{return ft(this).toNumber()}catch(t){ui("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Do.throwError("this platform does not support BigInt",ct.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?g9||(g9=!0,Do.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Do.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",ct.errors.UNEXPECTED_ARGUMENT,{}):Do.throwError("BigNumber.toString does not accept parameters",ct.errors.UNEXPECTED_ARGUMENT,{})),ft(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof xr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new xr(iE,jd(t)):t.match(/^-?[0-9]+$/)?new xr(iE,jd(new oE(t))):Do.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&ui("underflow","BigNumber.from",t),(t>=m9||t<=-m9)&&ui("overflow","BigNumber.from",t),xr.from(String(t));let r=t;if(typeof r=="bigint")return xr.from(r.toString());if(Ud(r))return xr.from(hc(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return xr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(dc(n)||n[0]==="-"&&dc(n.substring(1))))return xr.from(n)}return Do.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function jd(e){if(typeof e!="string")return jd(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Do.throwArgumentError("invalid hex","value",e),e=jd(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function _n(e){return xr.from(jd(e))}function ft(e){let t=xr.from(e).toHexString();return t[0]==="-"?new oE("-"+t.substring(3),16):new oE(t.substring(2),16)}function ui(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),Do.throwError(e,ct.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var v9="strings/5.7.0";var w9=new ct(v9),Bd;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Bd||(Bd={}));var ja;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(ja||(ja={}));function Pre(e,t,r,n,i){return w9.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function x9(e,t,r,n,i){if(e===ja.BAD_PREFIX||e===ja.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===ja.OVERRUN?r.length-t-1:0}function Tre(e,t,r,n,i){return e===ja.OVERLONG?(n.push(i),0):(n.push(65533),x9(e,t,r,n,i))}var Dre=Object.freeze({error:Pre,ignore:x9,replace:Tre});function sE(e,t=Bd.current){t!=Bd.current&&(w9.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;let o=e.charCodeAt(n);if(n>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");let s=65536+((i&1023)<<10)+(o&1023);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return zn(r)}c();d();f();var b9="solidity/5.7.0";var Ore=new RegExp("^bytes([0-9]+)$"),Ire=new RegExp("^(u?int)([0-9]*)$"),Rre=new RegExp("^(.*)\\[([0-9]*)\\]$"),Are="0000000000000000000000000000000000000000000000000000000000000000",pc=new ct(b9);function _9(e,t,r){switch(e){case"address":return r?xy(t,32):zn(t);case"string":return sE(t);case"bytes":return zn(t);case"bool":return t=t?"0x01":"0x00",r?xy(t,32):zn(t)}let n=e.match(Ire);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&pc.throwArgumentError("invalid number type","type",e),r&&(i=256),t=xr.from(t).toTwos(i),xy(t,i/8)}if(n=e.match(Ore),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&pc.throwArgumentError("invalid bytes type","type",e),zn(t).byteLength!==i&&pc.throwArgumentError(`invalid value for ${e}`,"value",t),r?zn((t+Are).substring(0,66)):t}if(n=e.match(Rre),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&pc.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(_9(i,a,!0))}),Vd(s)}return pc.throwArgumentError("invalid type","type",e)}function E9(e,t){e.length!=t.length&&pc.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(_9(n,t[i]))}),hc(Vd(r))}function C9(e){return h9(e)?aE(e):Mre(e)}function P9(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return aE(E9(t,r))}function Mre(e){let t=_.from(e);return aE(t)}function aE(e){let t=BigInt(Nre(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function Nre(e){let t=hc(Vd([zn(e)]));return"0x"+S9.default.keccak_256(zn(t))}var T9=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},kre=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},D9=e=>typeof e=="string"?C9(e):P9(e.types.map((t,r)=>[t,e.values[r]])),O9=(e,t)=>(typeof t=="string"&&(t=kre(["string"],[t])),P9([["uint256",C9(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])),I9=e=>typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(",");var Lre={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},$re=oh()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",client:null,createClient:async(r,n,i,o,s=aI)=>{e({config:{app_id:r,action:n,signal:i,action_description:o,walletConnectProjectId:s}});try{let a=await lc.init({projectId:s,metadata:{name:"IDKit",description:"Verify with World ID",url:"#",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:a}),t().connectClient(a)}catch(a){console.error(a)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:Lre});if(n){t().setUri(n);let o=await i();if(typeof o<"u")return e({topic:o.topic}),t().onConnectionEstablished(r)}}catch(n){e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${n}`)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:h2(r),mobile:h2(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:Ure(t().config)}).then(n=>{if(!Vre(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(d2).includes(o)&&(i=o),e({errorCode:i,verificationState:"failed"})}).finally(async()=>{await r.disconnect({topic:t().topic,reason:JF("USER_DISCONNECTED")})}).catch(n=>{console.error(`Unable to disconnect: ${n}`)})},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,client:null,verificationState:"loading_widget"})}})),Ure=e=>({jsonrpc:"2.0",method:"world_id_v1",id:wT(1e5,9999999),params:[{app_id:e.app_id,action:I9(e.action),signal:D9(e.signal).digest,action_description:e.action_description,external_nullifier:O9(e.app_id,e.action).digest}]}),Vre=e=>{if(!e||typeof e!="object")return!1;let t="proof"in e?e.proof:void 0,r="merkle_root"in e?e.merkle_root:void 0,n="nullifier_hash"in e?e.nullifier_hash:void 0;if(!("credential_type"in e?e.credential_type:void 0))return!1;for(let o of[r,n,t])if(!o||!T9(o))return!1;return!0},jre=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,client:e.client,createClient:e.createClient,connectClient:e.connectClient,verificationState:e.verificationState}),Bre=(e,t,r,n,i)=>{let{result:o,verificationState:s,errorCode:a,qrData:u,client:l,createClient:p,reset:h}=$re(jre);return(0,R9.useEffect)(()=>{!e||!t||!r||l||p(e,t,r,n,i)},[e,t,r,i,n,l,p,s]),{result:o,reset:h,verificationState:s,errorCode:a,qrData:u}},A9=Bre;c();d();f();c();d();f();var zre=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),x.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 0a3.555 3.555 0 0 0-3.563 3.547v.052A3.001 3.001 0 0 0 0 6.547V11a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6.547a3.001 3.001 0 0 0-2.438-2.948v-.052A3.555 3.555 0 0 0 5.999 0Zm2.437 3.547A2.432 2.432 0 0 0 5.999 1.12a2.432 2.432 0 0 0-2.437 2.427h4.875ZM7.5 8.773c0 .825-.671 1.494-1.5 1.494-.828 0-1.5-.669-1.5-1.494 0-.824.672-1.493 1.5-1.493.829 0 1.5.669 1.5 1.493Z",clipRule:"evenodd"})),M9=zre;c();d();f();var Hre=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),x.createElement("path",{fill:"currentColor",d:"M9.98 3.6c-.08-.345-.392-.553-.732-.477-.093.021-2.59.754-4.236.768C3.36 3.877.87 3.144.776 3.123a.629.629 0 0 0-.76.477.64.64 0 0 0 .467.767c.433.111 1.139.318 2.83.72 0 0-.02 2.28-.093 3.663-.1 1.99-.672 4.424-.672 4.424-.1.463.126.74.406.801.573.125.76-.276.826-.56l1.092-4.16A.128.128 0 0 1 5 9.164c.053 0 .106.027.126.09l1.093 4.16c.066.284.253.685.825.56.28-.062.507-.338.407-.801 0 0-.566-2.433-.673-4.424-.073-1.383-.093-3.664-.093-3.664 1.698-.4 2.398-.608 2.83-.719a.637.637 0 0 0 .467-.767Z"}),x.createElement("path",{fill:"currentColor",d:"M5.007 3.11a1.55 1.55 0 0 0 1.539-1.555C6.546.698 5.86 0 5.007 0A1.55 1.55 0 0 0 3.47 1.555c0 .857.686 1.555 1.538 1.555Z"})),N9=Hre;var qre=({className:e})=>x.createElement("div",{className:Mn(e,"space-y-4 text-left")},x.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),x.createElement("div",{className:"space-y-3"},x.createElement(k9,{title:"Proving unique-humanness",icon:N9},x.createElement("p",null,"Human is doing an action only once."),x.createElement("p",null,"Stop bots, stop abouse.")),x.createElement(k9,{title:"Completely private",icon:M9},x.createElement("p",null,"Using Zero-knowledge proofs so no traceable information is ever public.")))),k9=({icon:e,title:t,children:r})=>x.createElement("div",{className:"flex space-x-6"},x.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},x.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),x.createElement("div",null,x.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),x.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),F9=qre;var Kre=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage}),Wre=()=>{let e=Su(),[t,r]=(0,zd.useState)(!1),{copy:n,app_id:i,action:o,signal:s,setStage:a,handleVerify:u,action_description:l,walletConnectProjectId:p}=Sn(Kre),{result:h,qrData:y,verificationState:v,reset:w}=A9(i,o,s,l,p);return(0,zd.useEffect)(()=>w,[w]),(0,zd.useEffect)(()=>{v==="failed"&&a("ERROR"),h&&u(h)},[h,w,u,v,a]),x.createElement("div",{className:"-mt-6 space-y-6"},x.createElement("div",null,x.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm on the Worldcoin app":pa(n,"heading")),x.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},v==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":pa(n,"subheading"))),v==="awaiting_verification"?x.createElement("div",{className:"flex items-center justify-center"},x.createElement(hs,{className:"h-20 w-20"})):x.createElement(sI,{showQR:t,setShowQR:r,qrData:y}),(e=="desktop"||!t)&&x.createElement(F9,null))},L9=Wre;c();d();f();var Ze=me(Pe());c();d();f();var uE=me(Pe());var Gre=uE["useId".toString()]||(()=>{}),Yre=0;function by(e){let[t,r]=uE.useState(Gre());return ma(()=>{e||r(n=>n!=null?n:String(Yre++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var En=me(Pe());var lE="focusScope.autoFocusOnMount",cE="focusScope.autoFocusOnUnmount",$9={bubbles:!1,cancelable:!0};var B9=(0,En.forwardRef)((e,t)=>{let C=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=C,s=Le(C,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,En.useState)(null),l=hn(i),p=hn(o),h=(0,En.useRef)(null),y=Ur(t,R=>u(R)),v=(0,En.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,En.useEffect)(()=>{if(n){let R=function(M){if(v.paused||!a)return;let A=M.target;a.contains(A)?h.current=A:Ba(h.current,{select:!0})},P=function(M){v.paused||!a||a.contains(M.relatedTarget)||Ba(h.current,{select:!0})};return document.addEventListener("focusin",R),document.addEventListener("focusout",P),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",P)}}},[n,a,v.paused]),(0,En.useEffect)(()=>{if(a){V9.add(v);let R=document.activeElement;if(!a.contains(R)){let M=new CustomEvent(lE,$9);a.addEventListener(lE,l),a.dispatchEvent(M),M.defaultPrevented||(Xre(tne(z9(a)),{select:!0}),document.activeElement===R&&Ba(a))}return()=>{a.removeEventListener(lE,l),setTimeout(()=>{let M=new CustomEvent(cE,$9);a.addEventListener(cE,p),a.dispatchEvent(M),M.defaultPrevented||Ba(R!=null?R:document.body,{select:!0}),a.removeEventListener(cE,p),V9.remove(v)},0)}}},[a,l,p,v]);let w=(0,En.useCallback)(R=>{if(!r&&!n||v.paused)return;let P=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,M=document.activeElement;if(P&&M){let A=R.currentTarget,[$,W]=Zre(A);$&&W?!R.shiftKey&&M===W?(R.preventDefault(),r&&Ba($,{select:!0})):R.shiftKey&&M===$&&(R.preventDefault(),r&&Ba(W,{select:!0})):M===A&&R.preventDefault()}},[r,n,v.paused]);return(0,En.createElement)(wr.div,ht({tabIndex:-1},s,{ref:y,onKeyDown:w}))});function Xre(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Ba(n,{select:t}),document.activeElement!==r)return}function Zre(e){let t=z9(e),r=U9(t,e),n=U9(t.reverse(),e);return[r,n]}function z9(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function U9(e,t){for(let r of e)if(!Qre(r,{upTo:t}))return r}function Qre(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Jre(e){return e instanceof HTMLInputElement&&"select"in e}function Ba(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Jre(e)&&t&&e.select()}}var V9=ene();function ene(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=j9(e,t),e.unshift(t)},remove(t){var r;e=j9(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function j9(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function tne(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var q9=me(Pe()),fE=0;function K9(){(0,q9.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:H9()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:H9()),fE++,()=>{fE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),fE--}},[])}function H9(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c();d();f();c();d();f();var Cy=me(Pe());c();d();f();var zr=me(Pe());c();d();f();var za="right-scroll-bar-position",Ha="width-before-scroll-bar",dE="with-scroll-bars-hidden",hE="--removed-body-scroll-bar-size";c();d();f();c();d();f();function W9(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var G9=me(Pe());function Y9(e,t){var r=(0,G9.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}c();d();f();function pE(e,t){return Y9(t||null,function(r){return e.forEach(function(n){return W9(n,r)})})}c();d();f();c();d();f();c();d();f();function rne(e){return e}function nne(e,t){t===void 0&&(t=rne);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(o),s=r}var u=function(){var p=s;s=[],p.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){s.push(p),l()},filter:function(p){return s=s.filter(p),r}}}};return i}function mE(e){e===void 0&&(e={});var t=nne(null);return t.options=ni({async:!0,ssr:!1},e),t}c();d();f();var X9=me(Pe()),Z9=function(e){var t=e.sideCar,r=O0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return X9.createElement(n,ni({},r))};Z9.isSideCarExport=!0;function gE(e,t){return e.useMedium(t),Z9}var _y=mE();var yE=function(){},Hd=zr.forwardRef(function(e,t){var r=zr.useRef(null),n=zr.useState({onScrollCapture:yE,onWheelCapture:yE,onTouchMoveCapture:yE}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,y=e.sideCar,v=e.noIsolation,w=e.inert,C=e.allowPinchZoom,R=e.as,P=R===void 0?"div":R,M=O0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),A=y,$=pE([r,t]),W=ni(ni({},M),i);return zr.createElement(zr.Fragment,null,p&&zr.createElement(A,{sideCar:_y,removeScrollBar:l,shards:h,noIsolation:v,inert:w,setCallbacks:o,allowPinchZoom:!!C,lockRef:r}),s?zr.cloneElement(zr.Children.only(a),ni(ni({},W),{ref:$})):zr.createElement(P,ni({},W,{className:u,ref:$}),a))});Hd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hd.classNames={fullWidth:Ha,zeroRight:za};c();d();f();c();d();f();var Vt=me(Pe());c();d();f();c();d();f();var Ey=me(Pe());c();d();f();c();d();f();c();d();f();var eL=me(Pe());c();d();f();c();d();f();var Q9;var J9=function(){if(Q9)return Q9;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ine(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=J9();return t&&e.setAttribute("nonce",t),e}function one(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sne(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ine())&&(one(t,r),sne(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var wE=function(){var e=vE();return function(t,r){eL.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var qd=function(){var e=wE(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var ane={left:0,top:0,right:0,gap:0},xE=function(e){return parseInt(e||"",10)||0},une=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[xE(r),xE(n),xE(i)]},bE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ane;var t=une(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var lne=qd(),cne=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
47
|
-
.`.concat(
|
|
39
|
+
`;var Sl=H(H(H(H(H(H(H(H(H(H({},rb),nb),ib),ob),sb),ab),ub),lb),cb),fb),qge=H(H({},mb),gb);function kA(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var MA=kA("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),yb=kA("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=c0(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),qq=H({utf8:MA,"utf-8":MA,hex:Sl.base16,latin1:yb,ascii:yb,binary:yb},Sl),p0=qq;function m0(e,t="utf8"){let r=p0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();function g0(e,t="utf8"){let r=p0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?vl(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function y0(e){return m0(g0(hl(e),uA),Xx)}function v0(e){let t=g0(pA,Jx),r=hA+m0(mA([t,e]),Jx);return[fA,dA,r].join(cA)}function Wq(e){return m0(e,Xx)}function LA(e){return g0([y0(e.header),y0(e.payload)].join(Yx),lA)}function FA(e){return[y0(e.header),y0(e.payload),Wq(e.signature)].join(Yx)}function vb(e=(0,$A.randomBytes)(32)){return jf.generateKeyPairFromSeed(e)}async function VA(e,t,r,n,i=(0,UA.fromMiliseconds)(Date.now())){let o={alg:sA,typ:aA},s=v0(n.publicKey),a=i+r,u={iss:s,sub:e,aud:t,iat:i,exp:a},l=LA({header:o,payload:u}),p=jf.sign(n.secretKey,l);return FA({header:o,payload:u,signature:p})}c();d();f();c();d();f();var Ob=Y(_0()),NR=Y(S0()),Ab=Y(Js()),Yf=Y(P0()),$0=Y(O0());c();d();f();c();d();f();c();d();f();c();d();f();function Wf(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Tl(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=Wf(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}c();d();f();c();d();f();c();d();f();function iR(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var nR=iR("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),Cb=iR("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=Wf(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),SW=H({utf8:nR,"utf-8":nR,hex:Sl.base16,latin1:Cb,ascii:Cb,binary:Cb},Sl),A0=SW;function Or(e,t="utf8"){let r=A0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}c();d();f();function Ar(e,t="utf8"){let r=A0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();c();d();f();var oR=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},CW=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var TW=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var PW=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}();var DW=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var IW=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var OW=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,AW=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,sR=3,RW=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",OW]],aR=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function lR(e){return e?uR(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new IW:typeof navigator<"u"?uR(navigator.userAgent):kW()}function NW(e){return e!==""&&RW.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function uR(e){var t=NW(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new DW;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<sR&&(i=oR(oR([],i,!0),LW(sR-i.length),!0)):i=[];var o=i.join("."),s=MW(e),a=AW.exec(e);return a&&a[1]?new PW(r,o,s,a[1]):new CW(r,o,s)}function MW(e){for(var t=0,r=aR.length;t<r;t++){var n=aR[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function kW(){var e=typeof process<"u"&&process.version;return e?new TW(process.version.slice(1)):null}function LW(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Uo=Y(Oi()),ia=Y(na()),nG=Y(fR()),Dl=Y(TR());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var F0={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}};var MR="base10",zr="base16",Db="base64pad",Rb="utf8",kR=0,oa=1,iG=0,PR=1,Ib=12,Nb=32;function LR(){let e=$0.generateKeyPair();return{privateKey:Ar(e.secretKey,zr),publicKey:Ar(e.publicKey,zr)}}function U0(){let e=(0,Ab.randomBytes)(Nb);return Ar(e,zr)}function FR(e,t){let r=$0.sharedKey(Or(e,zr),Or(t,zr)),n=new NR.HKDF(Yf.SHA256,r).expand(Nb);return Ar(n,zr)}function $R(e){let t=(0,Yf.hash)(Or(e,zr));return Ar(t,zr)}function Xf(e){let t=(0,Yf.hash)(Or(e,Rb));return Ar(t,zr)}function oG(e){return Or(`${e}`,MR)}function Il(e){return Number(Ar(e,MR))}function UR(e){let t=oG(typeof e.type<"u"?e.type:kR);if(Il(t)===oa&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?Or(e.senderPublicKey,zr):void 0,n=typeof e.iv<"u"?Or(e.iv,zr):(0,Ab.randomBytes)(Ib),i=new Ob.ChaCha20Poly1305(Or(e.symKey,zr)).seal(n,Or(e.message,Rb));return sG({type:t,sealed:i,iv:n,senderPublicKey:r})}function VR(e){let t=new Ob.ChaCha20Poly1305(Or(e.symKey,zr)),{sealed:r,iv:n}=V0(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return Ar(i,Rb)}function sG(e){if(Il(e.type)===oa){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Ar(Tl([e.type,e.senderPublicKey,e.iv,e.sealed]),Db)}return Ar(Tl([e.type,e.iv,e.sealed]),Db)}function V0(e){let t=Or(e,Db),r=t.slice(iG,PR),n=PR;if(Il(r)===oa){let a=n+Nb,u=a+Ib,l=t.slice(n,a),p=t.slice(a,u),h=t.slice(u);return{type:r,sealed:h,iv:p,senderPublicKey:l}}let i=n+Ib,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function BR(e,t){let r=V0(e);return Mb({type:Il(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Ar(r.senderPublicKey,zr):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function Mb(e){let t=(e==null?void 0:e.type)||kR;if(t===oa){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function kb(e){return e.type===oa&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var aG=Object.defineProperty,DR=Object.getOwnPropertySymbols,uG=Object.prototype.hasOwnProperty,lG=Object.prototype.propertyIsEnumerable,IR=(e,t,r)=>t in e?aG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OR=(e,t)=>{for(var r in t||(t={}))uG.call(t,r)&&IR(e,r,t[r]);if(DR)for(var r of DR(t))lG.call(t,r)&&IR(e,r,t[r]);return e},cG="ReactNative",Gf={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var fG="js";function jR(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function dG(){return!(0,ia.getDocument)()&&!!(0,ia.getNavigator)()&&navigator.product===cG}function hG(){return!jR()&&!!(0,ia.getNavigator)()}function pG(){return dG()?Gf.reactNative:jR()?Gf.node:hG()?Gf.browser:Gf.unknown}function mG(e,t){let r=Dl.parse(e);return r=OR(OR({},r),t),e=Dl.stringify(r),e}function gG(){let e=lR();if(e===null)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function yG(){var e;let t=pG();return t===Gf.browser?[t,((e=(0,ia.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function vG(e,t,r){let n=gG(),i=yG();return[[e,t].join("-"),[fG,r].join("-"),n,i].join("/")}function zR({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=vG(e,t,n),u={auth:i,ua:a,projectId:o},l=mG(s[1]||"",u);return s[0]+"?"+l}function Lb(e){return Object.fromEntries(e.entries())}function Fb(e){return new Map(Object.entries(e))}function HR(e){let t=(0,Uo.toMiliseconds)(e||Uo.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function $b(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function KR(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function qR(e){return KR("topic",e)}function WR(e){return KR("id",e)}function GR(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function B0(e,t){return(0,Uo.fromMiliseconds)((t||Date.now())+(0,Uo.toMiliseconds)(e))}function Ub(e){return Date.now()>=(0,Uo.toMiliseconds)(e)}function j0(e,t){return`${e}${t?`:${t}`:""}`}var wG="irn";function z0(e){return(e==null?void 0:e.relay)||{protocol:wG}}function H0(e){let t=F0[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var xG=Object.defineProperty,AR=Object.getOwnPropertySymbols,bG=Object.prototype.hasOwnProperty,EG=Object.prototype.propertyIsEnumerable,RR=(e,t,r)=>t in e?xG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_G=(e,t)=>{for(var r in t||(t={}))bG.call(t,r)&&RR(e,r,t[r]);if(AR)for(var r of AR(t))EG.call(t,r)&&RR(e,r,t[r]);return e};function SG(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(i=>{if(i.startsWith(n)){let o=i.replace(n,""),s=e[i];r[o]=s}}),r}function YR(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),i=e.substring(t+1,r).split("@"),o=typeof r<"u"?e.substring(r):"",s=Dl.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:SG(s)}}function CG(e,t="-"){let r="relay",n={};return Object.keys(e).forEach(i=>{let o=r+t+i;e[i]&&(n[o]=e[i])}),n}function XR(e){return`${e.protocol}:${e.topic}@${e.version}?`+Dl.stringify(_G({symKey:e.symKey},CG(e.relay)))}var TG={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},PG={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ne(e,t){let{message:r,code:n}=PG[e];return{message:t?`${r} ${t}`:r,code:n}}function Ol(e,t){let{message:r,code:n}=TG[e];return{message:t?`${r} ${t}`:r,code:n}}function Jf(e){return typeof e>"u"}function Vb(e,t){return t&&Jf(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function JR(e){if(Vb(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function ZR(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function QR(e){return e==null?void 0:e.topic}function K0(e){return typeof e<"u"&&typeof e!==null}var Et=Y(Oi());c();d();f();c();d();f();var FN=Y(ko());var Yt={};fr(Yt,{DEFAULT_ERROR:()=>Qf,IBaseJsonRpcProvider:()=>rg,IEvents:()=>Nl,IJsonRpcConnection:()=>qb,IJsonRpcProvider:()=>ed,INTERNAL_ERROR:()=>q0,INVALID_PARAMS:()=>nN,INVALID_REQUEST:()=>tN,METHOD_NOT_FOUND:()=>rN,PARSE_ERROR:()=>eN,RESERVED_ERROR_CODES:()=>Bb,SERVER_ERROR:()=>Zf,SERVER_ERROR_CODE_RANGE:()=>W0,STANDARD_ERROR_MAP:()=>Vo,formatErrorMessage:()=>kN,formatJsonRpcError:()=>sa,formatJsonRpcRequest:()=>zo,formatJsonRpcResult:()=>Rl,getError:()=>Y0,getErrorByCode:()=>X0,isHttpUrl:()=>$G,isJsonRpcError:()=>Rr,isJsonRpcPayload:()=>Gb,isJsonRpcRequest:()=>Ml,isJsonRpcResponse:()=>aa,isJsonRpcResult:()=>Cn,isJsonRpcValidationInvalid:()=>UG,isLocalhostUrl:()=>Wb,isNodeJs:()=>NN,isReservedErrorCode:()=>G0,isServerErrorCode:()=>DG,isValidDefaultRoute:()=>eg,isValidErrorCode:()=>iN,isValidLeadingWildcardRoute:()=>NG,isValidRoute:()=>RG,isValidTrailingWildcardRoute:()=>MG,isValidWildcardRoute:()=>tg,isWsUrl:()=>ng,parseConnectionError:()=>jb,payloadId:()=>MN,validateJsonRpcError:()=>IG});c();d();f();c();d();f();var eN="PARSE_ERROR",tN="INVALID_REQUEST",rN="METHOD_NOT_FOUND",nN="INVALID_PARAMS",q0="INTERNAL_ERROR",Zf="SERVER_ERROR",Bb=[-32700,-32600,-32601,-32602,-32603],W0=[-32e3,-32099],Vo={[eN]:{code:-32700,message:"Parse error"},[tN]:{code:-32600,message:"Invalid Request"},[rN]:{code:-32601,message:"Method not found"},[nN]:{code:-32602,message:"Invalid params"},[q0]:{code:-32603,message:"Internal error"},[Zf]:{code:-32e3,message:"Server error"}},Qf=Zf;c();d();f();function DG(e){return e<=W0[0]&&e>=W0[1]}function G0(e){return Bb.includes(e)}function iN(e){return typeof e=="number"}function Y0(e){return Object.keys(Vo).includes(e)?Vo[e]:Vo[Qf]}function X0(e){let t=Object.values(Vo).find(r=>r.code===e);return t||Vo[Qf]}function IG(e){if(typeof e.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof e.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!iN(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(G0(e.error.code)){let t=X0(e.error.code);if(t.message!==Vo[Qf].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function jb(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var Ft={};fr(Ft,{isNodeJs:()=>NN});c();d();f();var RN=Y(Kb());Kt(Ft,Y(Kb()));var NN=RN.isNode;Kt(Yt,Ft);c();d();f();function MN(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function zo(e,t,r){return{id:r||MN(),jsonrpc:"2.0",method:e,params:t}}function Rl(e,t){return{id:e,jsonrpc:"2.0",result:t}}function sa(e,t,r){return{id:e,jsonrpc:"2.0",error:kN(t,r)}}function kN(e,t){return typeof e>"u"?Y0(q0):(typeof e=="string"&&(e=Object.assign(Object.assign({},Y0(Zf)),{message:e})),typeof t<"u"&&(e.data=t),G0(e.code)&&(e=X0(e.code)),e)}c();d();f();function RG(e){return e.includes("*")?tg(e):!/\W/g.test(e)}function eg(e){return e==="*"}function tg(e){return eg(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function NG(e){return!eg(e)&&tg(e)&&!e.split("*")[0].trim()}function MG(e){return!eg(e)&&tg(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Nl=class{};c();d();f();var qb=class extends Nl{constructor(t){super()}},rg=class extends Nl{constructor(){super()}},ed=class extends rg{constructor(t){super()}};c();d();f();c();d();f();var kG="^https?:",LG="^wss?:";function FG(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function LN(e,t){let r=FG(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function $G(e){return LN(e,kG)}function ng(e){return LN(e,LG)}function Wb(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function Gb(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Ml(e){return Gb(e)&&"method"in e}function aa(e){return Gb(e)&&(Cn(e)||Rr(e))}function Cn(e){return"result"in e}function Rr(e){return"error"in e}function UG(e){return"error"in e&&e.valid===!1}var ig=class extends ed{constructor(t){super(t),this.events=new FN.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(zo(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(o){i(o)}this.events.on(`${t.id}`,o=>{Rr(o)?i(o.error):n(o.result)});try{await this.connection.send(t,r)}catch(o){i(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),aa(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",t=>this.events.emit("error",t)),this.hasRegisteredEventListeners=!0)}};c();d();f();c();d();f();var BN=Y(ko());var VN=10,VG=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:UN(),BG=()=>typeof window<"u",jG=VG(),Yb=class{constructor(t){if(this.url=t,this.events=new BN.EventEmitter,this.registering=!1,!ng(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=()=>{this.onClose(),t()},this.socket.close()})}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(hl(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!ng(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),i(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let i=(0,Yt.isReactNative)()?void 0:{rejectUnauthorized:!Wb(t)},o=new jG(t,[],i);BG()?o.onerror=s=>{let a=s;n(this.emitError(a.error))}:o.on("error",s=>{n(this.emitError(s))}),o.onopen=()=>{this.onOpen(o),r(o)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=()=>this.onClose(),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;let r=typeof t.data=="string"?kf(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=sa(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return jb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>VN&&this.events.setMaxListeners(VN)}emitError(t){let r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",r),r}},jN=Yb;var zN=jN;var HM=Y(SM());function wX(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var _=0,D=0,C=0,I=w.length;C!==I&&w[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=w[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var _=0;if(w[_]!==" "){for(var D=0,C=0;w[_]===u;)D++,_++;for(var I=(w.length-_)*l+1>>>0,P=new Uint8Array(I);w[_];){var R=r[w.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(w[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function v(w){var _=y(w);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var xX=wX,bX=xX,KM=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},EX=e=>new TextEncoder().encode(e),_X=e=>new TextDecoder().decode(e),lE=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},cE=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return qM(this,t)}},fE=class{constructor(t){this.decoders=t}or(t){return qM(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},qM=(e,t)=>new fE(H(H({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),dE=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new lE(t,r,n),this.decoder=new cE(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},vg=({name:e,prefix:t,encode:r,decode:n})=>new dE(e,t,r,n),ud=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=bX(r,t);return vg({prefix:e,name:t,encode:n,decode:o=>KM(i(o))})},SX=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},CX=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},lr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>vg({prefix:t,name:e,encode(i){return CX(i,n,r)},decode(i){return SX(i,n,r,e)}}),TX=vg({prefix:"\0",name:"identity",encode:e=>_X(e),decode:e=>EX(e)}),PX=Object.freeze({__proto__:null,identity:TX}),DX=lr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),IX=Object.freeze({__proto__:null,base2:DX}),OX=lr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),AX=Object.freeze({__proto__:null,base8:OX}),RX=ud({prefix:"9",name:"base10",alphabet:"0123456789"}),NX=Object.freeze({__proto__:null,base10:RX}),MX=lr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),kX=lr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),LX=Object.freeze({__proto__:null,base16:MX,base16upper:kX}),FX=lr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$X=lr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),UX=lr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),VX=lr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),BX=lr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),jX=lr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),zX=lr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),HX=lr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),KX=lr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),qX=Object.freeze({__proto__:null,base32:FX,base32upper:$X,base32pad:UX,base32padupper:VX,base32hex:BX,base32hexupper:jX,base32hexpad:zX,base32hexpadupper:HX,base32z:KX}),WX=ud({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),GX=ud({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),YX=Object.freeze({__proto__:null,base36:WX,base36upper:GX}),XX=ud({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),JX=ud({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),ZX=Object.freeze({__proto__:null,base58btc:XX,base58flickr:JX}),QX=lr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),eJ=lr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),tJ=lr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),rJ=lr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),nJ=Object.freeze({__proto__:null,base64:QX,base64pad:eJ,base64url:tJ,base64urlpad:rJ}),WM=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),iJ=WM.reduce((e,t,r)=>(e[r]=t,e),[]),oJ=WM.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function sJ(e){return e.reduce((t,r)=>(t+=iJ[r],t),"")}function aJ(e){let t=[];for(let r of e){let n=oJ[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var uJ=vg({prefix:"\u{1F680}",name:"base256emoji",encode:sJ,decode:aJ}),lJ=Object.freeze({__proto__:null,base256emoji:uJ}),cJ=GM,CM=128,fJ=127,dJ=~fJ,hJ=Math.pow(2,31);function GM(e,t,r){t=t||[],r=r||0;for(var n=r;e>=hJ;)t[r++]=e&255|CM,e/=128;for(;e&dJ;)t[r++]=e&255|CM,e>>>=7;return t[r]=e|0,GM.bytes=r-n+1,t}var pJ=hE,mJ=128,TM=127;function hE(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw hE.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&TM)<<i:(s&TM)*Math.pow(2,i),i+=7}while(s>=mJ);return hE.bytes=o-n,r}var gJ=Math.pow(2,7),yJ=Math.pow(2,14),vJ=Math.pow(2,21),wJ=Math.pow(2,28),xJ=Math.pow(2,35),bJ=Math.pow(2,42),EJ=Math.pow(2,49),_J=Math.pow(2,56),SJ=Math.pow(2,63),CJ=function(e){return e<gJ?1:e<yJ?2:e<vJ?3:e<wJ?4:e<xJ?5:e<bJ?6:e<EJ?7:e<_J?8:e<SJ?9:10},TJ={encode:cJ,decode:pJ,encodingLength:CJ},YM=TJ,PM=(e,t,r=0)=>(YM.encode(e,t,r),t),DM=e=>YM.encodingLength(e),pE=(e,t)=>{let r=t.byteLength,n=DM(e),i=n+DM(r),o=new Uint8Array(i+r);return PM(e,o,0),PM(r,o,n),o.set(t,i),new mE(e,r,t,o)},mE=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},XM=({name:e,code:t,encode:r})=>new gE(e,t,r),gE=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?pE(this.code,r):r.then(n=>pE(this.code,n))}else throw Error("Unknown type, must be binary type")}},JM=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),PJ=XM({name:"sha2-256",code:18,encode:JM("SHA-256")}),DJ=XM({name:"sha2-512",code:19,encode:JM("SHA-512")}),IJ=Object.freeze({__proto__:null,sha256:PJ,sha512:DJ}),ZM=0,OJ="identity",QM=KM,AJ=e=>pE(ZM,QM(e)),RJ={code:ZM,name:OJ,encode:QM,digest:AJ},NJ=Object.freeze({__proto__:null,identity:RJ});new TextEncoder,new TextDecoder;var IM=H(H(H(H(H(H(H(H(H(H({},PX),IX),AX),NX),LX),qX),YX),ZX),nJ),lJ);H(H({},IJ),NJ);function MJ(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function e7(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var OM=e7("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),aE=e7("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=MJ(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),kJ=H({utf8:OM,"utf-8":OM,hex:IM.base16,latin1:aE,ascii:aE,binary:aE},IM);function LJ(e,t="utf8"){let r=kJ[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}var t7="wc",FJ=2,DE="core",qo=`${t7}@${2}:${DE}:`,$J={name:DE,logger:"error"},UJ={database:":memory:"},VJ="crypto",AM="client_ed25519_seed",BJ=Et.ONE_DAY,jJ="keychain",zJ="0.3",HJ="messages",KJ="0.3",qJ=Et.SIX_HOURS,WJ="publisher",IE="irn",GJ="error",YJ="wss://relay.walletconnect.com",XJ="relayer",ur={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},JJ="_subscription",gg={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},RM=Et.ONE_SECOND;var ZJ="2.4.0",QJ="0.3",li={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var eZ="subscription",tZ="0.3",rZ=Et.FIVE_SECONDS*1e3,nZ="pairing",iZ="0.3";var sd={wc_pairingDelete:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Et.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:0},res:{ttl:Et.ONE_DAY,prompt:!1,tag:0}}},ui={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},oZ="history",sZ="0.3",aZ="expirer",sn={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},uZ="0.3";var yE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=jJ,this.version=zJ,this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()},this.get=n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>"u"){let{message:o}=Ne("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(o)}return i},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,Lb(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Fb(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},vE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=VJ,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();let i=await this.getClientSeed(),o=vb(i);return v0(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=LR();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=vb(o),a=U0();return await VA(a,i,BJ,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),u=FR(a,o);return this.setSymKey(u,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||$R(i);return await this.keychain.set(s,i),s},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,o,s)=>{this.isInitialized();let a=Mb(s),u=hl(o);if(kb(a)){let y=a.senderPublicKey,v=a.receiverPublicKey;i=await this.generateSharedKey(y,v)}let l=this.getSymKey(i),{type:p,senderPublicKey:h}=a;return UR({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(i,o,s)=>{this.isInitialized();let a=BR(o,s);if(kb(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(p,h)}let u=this.getSymKey(i),l=VR({symKey:u,encoded:o});return kf(l)},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.keychain=n||new yE(this.core,this.logger)}get context(){return(0,Me.getLoggerContext)(this.logger)}getPayloadType(t){let r=V0(t);return Il(r.type)}async setPrivateKey(t,r){return await this.keychain.set(t,r),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(AM)}catch(r){t=U0(),await this.keychain.set(AM,t)}return LJ(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},wE=class extends Qm{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=HJ,this.version=KJ,this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,i)=>{this.isInitialized();let o=Xf(i),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[o]<"u"||(s[o]=i,this.messages.set(n,s),await this.persist()),o},this.get=n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>"u"&&(i={}),i},this.has=(n,i)=>{this.isInitialized();let o=this.get(n),s=Xf(i);return typeof o[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,Me.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,Lb(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Fb(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},xE=class extends e0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Ui.EventEmitter,this.name=WJ,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,i,o)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}});try{let s=(o==null?void 0:o.ttl)||qJ,a=z0(o),u=(o==null?void 0:o.prompt)||!1,l=(o==null?void 0:o.tag)||0,p={topic:n,message:i,opts:{ttl:s,relay:a,prompt:u,tag:l}},h=Xf(i);this.queue.set(h,p);try{await await $b(this.rpcPublish(n,i,s,a,u,l),this.publishTimeout),this.relayer.events.emit(ur.publish,p)}catch(y){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(ur.connection_stalled);return}this.onPublish(h,p),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,Me.getLoggerContext)(this.logger)}rpcPublish(t,r,n,i,o,s){var a,u,l,p;let h={method:H0(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Jf((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),Jf((l=h.params)==null?void 0:l.tag)&&((p=h.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:i}=t;await this.publish(r,n,i)})}registerEventListeners(){this.relayer.core.heartbeat.on($l.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},bE=class{constructor(){this.map=new Map,this.set=(t,r)=>{let n=this.get(t);this.exists(t,r)||this.map.set(t,[...n,r])},this.get=t=>this.map.get(t)||[],this.exists=(t,r)=>this.get(t).includes(r),this.delete=(t,r)=>{if(typeof r>"u"){this.map.delete(t);return}if(!this.map.has(t))return;let n=this.get(t);if(!this.exists(t,r))return;let i=n.filter(o=>o!==r);if(!i.length){this.map.delete(t);return}this.map.set(t,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},lZ=Object.defineProperty,cZ=Object.defineProperties,fZ=Object.getOwnPropertyDescriptors,NM=Object.getOwnPropertySymbols,dZ=Object.prototype.hasOwnProperty,hZ=Object.prototype.propertyIsEnumerable,MM=(e,t,r)=>t in e?lZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yg=(e,t)=>{for(var r in t||(t={}))dZ.call(t,r)&&MM(e,r,t[r]);if(NM)for(var r of NM(t))hZ.call(t,r)&&MM(e,r,t[r]);return e},uE=(e,t)=>cZ(e,fZ(t)),EE=class extends n0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new bE,this.events=new Ui.EventEmitter,this.name=eZ,this.version=tZ,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=qo,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{let o=z0(i),s={topic:n,relay:o};this.pending.set(n,s);let a=await this.rpcSubscribe(n,o);return this.onSubscribe(a,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}}),a}catch(o){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(o),o}},this.unsubscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),typeof(i==null?void 0:i.id)<"u"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((i,o)=>{let s=new Et.Watch;s.start(this.pendingSubscriptionWatchLabel);let a=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=rZ&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!1))},this.pollingInterval)}),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,r){let n=!1;try{n=this.getSubscription(t).topic===r}catch(i){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(t,r){let n=this.topicMap.get(t);await Promise.all(n.map(async i=>await this.unsubscribeById(t,i,r)))}async unsubscribeById(t,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}});try{let i=z0(n);await this.rpcUnsubscribe(t,r,i);let o=Ol("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,o),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(t,r){let n={method:H0(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await $b(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(ur.connection_stalled)}return Xf(t+this.clientId)}rpcUnsubscribe(t,r,n){let i={method:H0(n.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(t,r){this.setSubscription(t,uE(yg({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,uE(yg({},r),{id:t})),this.pending.delete(r.topic)}async onUnsubscribe(t,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,t)&&this.deleteSubscription(r,n),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,r){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:r}),this.addSubscription(t,r))}addSubscription(t,r){this.subscriptions.set(t,yg({},r)),this.topicMap.set(r.topic,t),this.events.emit(li.created,r)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});let r=this.subscriptions.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}deleteSubscription(t,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:r});let n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(li.deleted,uE(yg({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(li.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(li.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){let{topic:r,relay:n}=t,i={topic:r,relay:n};this.pending.set(i.topic,i);let o=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(o,i)}}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}checkPending(){this.relayer.transportExplicitlyClosed||this.pending.forEach(async t=>{let r=await this.rpcSubscribe(t.topic,t.relay);this.onSubscribe(r,t)})}registerEventListeners(){this.relayer.core.heartbeat.on($l.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(ur.connect,async()=>{await this.onConnect()}),this.relayer.on(ur.disconnect,()=>{this.onDisconnect()}),this.events.on(li.created,async t=>{let r=li.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(li.deleted,async t=>{let r=li.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise(t=>{let r=setInterval(()=>{this.restartInProgress||(clearInterval(r),t())},this.pollingInterval)})}},pZ=Object.defineProperty,kM=Object.getOwnPropertySymbols,mZ=Object.prototype.hasOwnProperty,gZ=Object.prototype.propertyIsEnumerable,LM=(e,t,r)=>t in e?pZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yZ=(e,t)=>{for(var r in t||(t={}))mZ.call(t,r)&&LM(e,r,t[r]);if(kM)for(var r of kM(t))gZ.call(t,r)&&LM(e,r,t[r]);return e},_E=class extends t0{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Ui.EventEmitter,this.name=XJ,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Me.generateChildLogger)(t.logger,this.name):(0,PE.default)((0,Me.getDefaultLoggerOptions)({level:t.logger||GJ})),this.messages=new wE(this.logger,t.core),this.subscriber=new EE(this,this.logger),this.publisher=new xE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||YJ,this.projectId=t.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return(0,Me.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,r,n){this.isInitialized(),await this.publisher.publish(t,r,n),await this.recordMessageEvent({topic:t,message:r})}async subscribe(t,r){this.isInitialized();let n="";return await Promise.all([new Promise(i=>{this.subscriber.once(li.created,o=>{o.topic===t&&i()})}),new Promise(async i=>{n=await this.subscriber.subscribe(t,r),i()})]),n}async unsubscribe(t,r){this.isInitialized(),await this.subscriber.unsubscribe(t,r)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(ur.transport_closed))}async transportOpen(t){if(!this.reconnecting){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(li.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(ur.transport_closed,()=>{n(new Error("closeTransport called before connection was established"))}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw r;this.logger.error(r),this.events.emit(ur.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(t){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(r=>setTimeout(r,RM)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new ig(new zN(zR({sdkVersion:ZJ,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t})))}async recordMessageEvent(t){let{topic:r,message:n}=t;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(t){let{topic:r,message:n}=t;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),Ml(t)){if(!t.method.endsWith(JJ))return;let r=t.params,{topic:n,message:i}=r.data,o={topic:n,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(yZ({type:"event",event:r.id},o)),this.events.emit(r.id,o),await this.acknowledgePayload(t),await this.onMessageEvent(o)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(ur.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=Rl(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(gg.payload,t=>this.onProviderPayload(t)),this.provider.on(gg.connect,()=>{this.events.emit(ur.connect)}),this.provider.on(gg.disconnect,()=>{this.events.emit(ur.disconnect),this.attemptToReconnect()}),this.provider.on(gg.error,t=>this.events.emit(ur.error,t)),this.events.on(ur.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,Et.toMiliseconds)(RM))}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},vZ=Object.defineProperty,FM=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,xZ=Object.prototype.propertyIsEnumerable,$M=(e,t,r)=>t in e?vZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UM=(e,t)=>{for(var r in t||(t={}))wZ.call(t,r)&&$M(e,r,t[r]);if(FM)for(var r of FM(t))xZ.call(t,r)&&$M(e,r,t[r]);return e},da=class extends r0{constructor(t,r,n,i=qo,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=QJ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{ZR(s)?this.map.set(s.id,s):QR(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Jf(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,a)=>{this.isInitialized(),this.map.has(s)?await this.update(s,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:a}),this.map.set(s,a),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(a=>Object.keys(s).every(u=>(0,HM.default)(a[u],s[u]))):this.values),this.update=async(s,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:a});let u=UM(UM({},this.getData(s)),a);this.map.set(s,u),await this.persist()},this.delete=async(s,a)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:a}),this.map.delete(s),await this.persist())},this.logger=(0,Me.generateChildLogger)(r,this.name),this.storagePrefix=i,this.getKey=o}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){let r=this.map.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},SE=class{constructor(t,r){this.core=t,this.logger=r,this.name=nZ,this.version=iZ,this.events=new Ui.default,this.initialized=!1,this.storagePrefix=qo,this.ignoredPayloadTypes=[oa],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=U0(),i=await this.core.crypto.setSymKey(n),o=B0(Et.FIVE_MINUTES),s={protocol:IE},a={topic:i,expiry:o,relay:s,active:!1},u=XR({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:n,relay:s});return await this.pairings.set(i,a),await this.core.relayer.subscribe(i),this.core.expirer.set(i,o),{topic:i,uri:u}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:i,symKey:o,relay:s}=YR(n.uri),a=B0(Et.FIVE_MINUTES),u={topic:i,relay:s,expiry:a,active:!1};return await this.pairings.set(i,u),await this.core.crypto.setSymKey(o,i),await this.core.relayer.subscribe(i,{relay:s}),this.core.expirer.set(i,a),n.activatePairing&&await this.activate({topic:i}),u},this.activate=async({topic:n})=>{this.isInitialized();let i=B0(Et.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:i}),this.core.expirer.set(n,i)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:i}=n;if(this.pairings.keys.includes(i)){let o=await this.sendRequest(i,"wc_pairingPing",{}),{done:s,resolve:a,reject:u}=HR();this.events.once(j0("pairing_ping",o),({error:l})=>{l?u(l):a()}),await s()}},this.updateExpiry=async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})},this.updateMetadata=async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",Ol("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=zo(i,o),a=await this.core.crypto.encode(n,s),u=sd[i].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,u),s.id},this.sendResult=async(n,i,o)=>{let s=Rl(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=sd[u.request.method].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.sendError=async(n,i,o)=>{let s=sa(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=sd[u.request.method]?sd[u.request.method].res:sd.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.deletePairing=async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Ol("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(i=>Ub(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=n=>{let{topic:i,payload:o}=n,s=o.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(i,o);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,o);default:return this.onUnknownRpcMethodRequest(i,o)}},this.onRelayEventResponse=async n=>{let{topic:i,payload:o}=n,s=(await this.core.history.get(i,o.id)).request.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(i,o);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,i)=>{let{id:o}=i;try{this.isValidPing({topic:n}),await this.sendResult(o,n,!0),this.events.emit("pairing_ping",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,i)=>{let{id:o}=i;setTimeout(()=>{Cn(i)?this.events.emit(j0("pairing_ping",o),{}):Rr(i)&&this.events.emit(j0("pairing_ping",o),{error:i.error})},500)},this.onPairingDeleteRequest=async(n,i)=>{let{id:o}=i;try{this.isValidDisconnect({topic:n}),await this.sendResult(o,n,!0),await this.deletePairing(n),this.events.emit("pairing_delete",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,i)=>{let{id:o,method:s}=i;try{if(this.registeredMethods.includes(s))return;let a=Ol("WC_METHOD_UNSUPPORTED",s);await this.sendError(o,n,a),this.logger.error(a)}catch(a){await this.sendError(o,n,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Ol("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!K0(n)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!JR(n.uri)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!K0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidDisconnect=async n=>{if(!K0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async n=>{if(!Vb(n,!1)){let{message:i}=Ne("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Ne("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(Ub(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Ne("EXPIRED",`pairing topic: ${n}`);throw new Error(i)}},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.pairings=new da(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Me.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(ur.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let i=await this.core.crypto.decode(r,n);Ml(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):aa(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(sn.expired,async t=>{let{topic:r}=GR(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},CE=class extends Zm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Ui.EventEmitter,this.name=oZ,this.version=sZ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,i,o)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:i,chainId:o}),this.records.has(i.id))return;let s={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:o};this.records.set(s.id,s),this.events.emit(ui.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>"u"&&(i.response=Rr(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(ui.updated,i))},this.get=async(n,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:i}),await this.getRecord(i)),this.delete=(n,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(o=>{if(o.topic===n){if(typeof i<"u"&&o.id!==i)return;this.records.delete(o.id),this.events.emit(ui.deleted,o)}})},this.exists=async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let t=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;let n={topic:r.topic,request:zo(r.request.method,r.request.params,r.id),chainId:r.chainId};return t.push(n)}),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();let r=this.records.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ui.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(ui.created,t=>{let r=ui.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ui.updated,t=>{let r=ui.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ui.deleted,t=>{let r=ui.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},TE=class extends i0{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Ui.EventEmitter,this.name=aZ,this.version=uZ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<"u"}catch(i){return!1}},this.set=(n,i)=>{this.isInitialized();let o=this.formatTarget(n),s={target:o,expiry:i};this.expirations.set(o,s),this.checkExpiry(o,s),this.events.emit(sn.created,{target:o,expiration:s})},this.get=n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),o=this.getExpiration(i);this.expirations.delete(i),this.events.emit(sn.deleted,{target:i,expiration:o})}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if(typeof t=="string")return qR(t);if(typeof t=="number")return WR(t);let{message:r}=Ne("UNKNOWN_TYPE",`Target type: ${typeof t}`);throw new Error(r)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(sn.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){let r=this.expirations.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,Et.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(sn.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on($l.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(sn.created,t=>{let r=sn.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(sn.expired,t=>{let r=sn.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(sn.deleted,t=>{let r=sn.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},bZ=Object.defineProperty,VM=Object.getOwnPropertySymbols,EZ=Object.prototype.hasOwnProperty,_Z=Object.prototype.propertyIsEnumerable,BM=(e,t,r)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jM=(e,t)=>{for(var r in t||(t={}))EZ.call(t,r)&&BM(e,r,t[r]);if(VM)for(var r of VM(t))_Z.call(t,r)&&BM(e,r,t[r]);return e},ad=class extends Jm{constructor(t){super(t),this.protocol=t7,this.version=FJ,this.name=DE,this.events=new Ui.EventEmitter,this.initialized=!1,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.projectId=t==null?void 0:t.projectId;let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,PE.default)((0,Me.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||$J.logger}));this.logger=(0,Me.generateChildLogger)(r,this.name),this.heartbeat=new $l.HeartBeat,this.crypto=new vE(this,this.logger,t==null?void 0:t.keychain),this.history=new CE(this,this.logger),this.expirer=new TE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new zM.default(jM(jM({},UJ),t==null?void 0:t.storageOptions)),this.relayer=new _E({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new SE(this,this.logger)}static async init(t){let r=new ad(t);return await r.initialize(),r}get context(){return(0,Me.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},r7=ad;var Bl=Y(Ax());c();d();f();qm();var n7=Y(ko());var wg=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var xg=class{constructor(t){this.client=t}};c();d();f();var RZ=Y(_0()),NZ=Y(S0()),MZ=Y(Js()),m7=Y(P0()),g7=Y(O0());var Go=Y(Oi()),AE=Y(na()),y7=Y(o7()),v7=Y(h7());function RE(e,t){return e.includes(":")?[e]:t.chains||[]}var w7=1;function x7(){return(0,y7.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Wo(e,t){return e.filter(r=>t.includes(r)).length===e.length}function ha(e){let t=(0,Go.toMiliseconds)(e||Go.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function b7(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function Yo(e,t){return(0,Go.fromMiliseconds)((t||Date.now())+(0,Go.toMiliseconds)(e))}function pa(e){return Date.now()>=(0,Go.toMiliseconds)(e)}function Xt(e,t){return`${e}${t?`:${t}`:""}`}function ld(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function kZ(e){let t=[];return Object.values(e).forEach(r=>{t.push(...ld(r.accounts))}),t}function LZ(e,t){let r=[];return Object.values(e).forEach(n=>{ld(n.accounts).includes(t)&&r.push(...n.methods)}),r}function FZ(e,t){let r=[];return Object.values(e).forEach(n=>{ld(n.accounts).includes(t)&&r.push(...n.events)}),r}function E7(e,t){let r=cd(e,t);if(r)throw new Error(r.message);let n={};for(let[i,o]of Object.entries(e))n[i]={methods:o.methods,events:o.events,chains:o.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var $Z={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},UZ={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ge(e,t){let{message:r,code:n}=UZ[e];return{message:t?`${r} ${t}`:r,code:n}}function Kr(e,t){let{message:r,code:n}=$Z[e];return{message:t?`${r} ${t}`:r,code:n}}function Eg(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Ul(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function an(e){return typeof e>"u"}function cr(e,t){return t&&an(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function NE(e,t){return t&&an(e)?!0:typeof e=="number"&&!isNaN(e)}function _7(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return Wo(i,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l}=e.namespaces[s],p=ld(a),h=r[s];(!Wo(RE(s,h),p)||!Wo(h.methods,u)||!Wo(h.events,l))&&(o=!1)}),o):!1}function ME(e){return cr(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function VZ(e){if(cr(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&ME(r)}}return!1}function S7(e,t){let r=null;return cr(e==null?void 0:e.publicKey,!1)||(r=ge("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function p7(e){let t=!0;return Eg(e)?e.length&&(t=e.every(r=>cr(r,!1))):t=!1,t}function BZ(e,t,r){let n=null;return Eg(t)?t.forEach(i=>{n||(!ME(i)||!i.includes(e))&&(n=Kr("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=Kr("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function jZ(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=BZ(n,RE(n,i),`${t} requiredNamespace`);o&&(r=o)}),r}function zZ(e,t){let r=null;return Eg(e)?e.forEach(n=>{r||VZ(n)||(r=Kr("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=Kr("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function HZ(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=zZ(n==null?void 0:n.accounts,`${t} namespace`);i&&(r=i)}),r}function KZ(e,t){let r=null;return p7(e==null?void 0:e.methods)?p7(e==null?void 0:e.events)||(r=Kr("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=Kr("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function C7(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=KZ(n,`${t}, namespace`);i&&(r=i)}),r}function T7(e,t,r){let n=null;if(e&&Ul(e)){let i=C7(e,t);i&&(n=i);let o=jZ(e,t);o&&(n=o)}else n=ge("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function cd(e,t){let r=null;if(e&&Ul(e)){let n=C7(e,t);n&&(r=n);let i=HZ(e,t);i&&(r=i)}else r=ge("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function kE(e){return cr(e.protocol,!0)}function P7(e,t){let r=!1;return t&&!e?r=!0:e&&Eg(e)&&e.length&&e.forEach(n=>{r=kE(n)}),r}function D7(e){return typeof e=="number"}function Tn(e){return typeof e<"u"&&typeof e!==null}function I7(e){return!(!e||typeof e!="object"||!e.code||!NE(e.code,!1)||!e.message||!cr(e.message,!1))}function O7(e){return!(an(e)||!cr(e.method,!1))}function A7(e){return!(an(e)||an(e.result)&&an(e.error)||!NE(e.id,!1)||!cr(e.jsonrpc,!1))}function R7(e){return!(an(e)||!cr(e.name,!1))}function LE(e,t){return!(!ME(t)||!kZ(e).includes(t))}function N7(e,t,r){return cr(r,!1)?LZ(e,t).includes(r):!1}function M7(e,t,r){return cr(r,!1)?FZ(e,t).includes(r):!1}function _g(e,t,r,n){let i=null,o=Object.keys(e),s=Object.keys(t);return Wo(o,s)?o.forEach(a=>{if(i)return;let u=ld(t[a].accounts);Wo(RE(a,e[a]),u)?Wo(e[a].methods,t[a].methods)?Wo(e[a].events,t[a].events)||(i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${a}`)):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${a}`):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace chains for ${a}`)}):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy ${n}`),i}function k7(e,t){return NE(e,!1)&&e<=t.max&&e>=t.min}var Cg=Y(ko()),Ve=Y(Oi());var U7="wc",V7=2,B7="client",HE=`${U7}@${V7}:${B7}:`,FE={name:B7,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var qZ="proposal";var WZ="session",Sg=Ve.SEVEN_DAYS,GZ="engine",fd={wc_sessionPropose:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1115}}},$E={min:Ve.FIVE_MINUTES,max:Ve.SEVEN_DAYS},YZ="request",XZ=Object.defineProperty,JZ=Object.defineProperties,ZZ=Object.getOwnPropertyDescriptors,L7=Object.getOwnPropertySymbols,QZ=Object.prototype.hasOwnProperty,eQ=Object.prototype.propertyIsEnumerable,F7=(e,t,r)=>t in e?XZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pn=(e,t)=>{for(var r in t||(t={}))QZ.call(t,r)&&F7(e,r,t[r]);if(L7)for(var r of L7(t))eQ.call(t,r)&&F7(e,r,t[r]);return e},UE=(e,t)=>JZ(e,ZZ(t)),VE=class extends xg{constructor(t){super(t),this.name=GZ,this.events=new Cg.default,this.initialized=!1,this.ignoredPayloadTypes=[w7],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(fd)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=UE(Pn({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:i,requiredNamespaces:o,optionalNamespaces:s,sessionProperties:a,relays:u}=n,l=i,p,h=!1;if(l&&(h=this.client.core.pairing.pairings.get(l).active),!l||!h){let{topic:P,uri:R}=await this.client.core.pairing.create();l=P,p=R}let y=await this.client.core.crypto.generateKeyPair(),v=Pn({requiredNamespaces:o,optionalNamespaces:s,relays:u!=null?u:[{protocol:IE}],proposer:{publicKey:y,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:w,resolve:_,done:D}=ha();if(this.events.once(Xt("session_connect"),async({error:P,session:R})=>{if(P)w(P);else if(R){R.self.publicKey=y;let U=UE(Pn({},R),{requiredNamespaces:R.requiredNamespaces,optionalNamespaces:R.optionalNamespaces});await this.client.session.set(R.topic,U),await this.setExpiry(R.topic,R.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:R.peer.metadata}),_(U)}}),!l){let{message:P}=ge("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(P)}let C=await this.sendRequest(l,"wc_sessionPropose",v),I=Yo(Ve.FIVE_MINUTES);return await this.setProposal(C,Pn({id:C,expiry:I},v)),{uri:p,approval:D}},this.pair=async r=>(this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);let{id:n,relayProtocol:i,namespaces:o,sessionProperties:s}=r,a=this.client.proposal.get(n),{pairingTopic:u,proposer:l,requiredNamespaces:p,optionalNamespaces:h}=a;Ul(p)||(p=E7(o,"approve()"));let y=await this.client.core.crypto.generateKeyPair(),v=l.publicKey,w=await this.client.core.crypto.generateSharedKey(y,v);u&&n&&(await this.client.core.pairing.updateMetadata({topic:u,metadata:l.metadata}),await this.sendResult(n,u,{relay:{protocol:i!=null?i:"irn"},responderPublicKey:y}),await this.client.proposal.delete(n,Kr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:u}));let _=Pn({relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:p,optionalNamespaces:h,controller:{publicKey:y,metadata:this.client.metadata},expiry:Yo(Sg)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(w);let D=await this.sendRequest(w,"wc_sessionSettle",_),{done:C,resolve:I,reject:P}=ha();this.events.once(Xt("session_approve",D),({error:U})=>{U?P(U):I(this.client.session.get(w))});let R=UE(Pn({},_),{topic:w,acknowledged:!1,self:_.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:y});return await this.client.session.set(w,R),await this.setExpiry(w,Yo(Sg)),{topic:w,acknowledged:C}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);let{id:n,reason:i}=r,{pairingTopic:o}=this.client.proposal.get(n);o&&(await this.sendError(n,o,i),await this.client.proposal.delete(n,Kr("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);let{topic:n,namespaces:i}=r,o=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:i}),{done:s,resolve:a,reject:u}=ha();return this.events.once(Xt("session_update",o),({error:l})=>{l?u(l):a()}),await this.client.session.update(n,{namespaces:i}),{acknowledged:s}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);let{topic:n}=r,i=await this.sendRequest(n,"wc_sessionExtend",{}),{done:o,resolve:s,reject:a}=ha();return this.events.once(Xt("session_extend",i),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,Yo(Sg)),{acknowledged:o}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:i,topic:o,expiry:s}=r,a=await this.sendRequest(o,"wc_sessionRequest",{request:i,chainId:n},s),{done:u,resolve:l,reject:p}=ha(s);return this.events.once(Xt("session_request",a),({error:h,result:y})=>{h?p(h):l(y)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;Cn(i)?await this.sendResult(o,n,i.result):Rr(i)&&await this.sendError(o,n,i.error),this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=await this.sendRequest(n,"wc_sessionPing",{}),{done:o,resolve:s,reject:a}=ha();this.events.once(Xt("session_ping",i),({error:u})=>{u?a(u):s()}),await o()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);let{topic:n,event:i,chainId:o}=r;await this.sendRequest(n,"wc_sessionEvent",{event:i,chainId:o})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);let{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",Kr("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>_7(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(r,n)=>{let{self:i}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await Promise.all([this.client.session.delete(r,Kr("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(i.publicKey),this.client.core.crypto.deleteSymKey(r),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,Kr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{let n=fd.wc_sessionRequest.req.ttl,{id:i,topic:o,params:s}=r;await this.client.pendingRequest.set(i,{id:i,topic:o,params:s}),n&&this.client.core.expirer.set(i,Yo(n))},this.sendRequest=async(r,n,i,o)=>{let s=zo(n,i),a=await this.client.core.crypto.encode(r,s),u=fd[n].req;return o&&(u.ttl=o),this.client.core.history.set(r,s),this.client.core.relayer.publish(r,a,u),s.id},this.sendResult=async(r,n,i)=>{let o=Rl(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=fd[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.sendError=async(r,n,i)=>{let o=sa(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=fd[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{pa(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{pa(i.expiry)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession(i)),...n.map(i=>this.deleteProposal(i))])},this.onRelayEventRequest=r=>{let{topic:n,payload:i}=r,o=i.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeRequest(n,i);case"wc_sessionSettle":return this.onSessionSettleRequest(n,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,i);case"wc_sessionExtend":return this.onSessionExtendRequest(n,i);case"wc_sessionPing":return this.onSessionPingRequest(n,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,i);case"wc_sessionRequest":return this.onSessionRequest(n,i);case"wc_sessionEvent":return this.onSessionEventRequest(n,i);default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async r=>{let{topic:n,payload:i}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeResponse(n,i);case"wc_sessionSettle":return this.onSessionSettleResponse(n,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,i);case"wc_sessionExtend":return this.onSessionExtendResponse(n,i);case"wc_sessionPing":return this.onSessionPingResponse(n,i);case"wc_sessionRequest":return this.onSessionRequestResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}},this.onSessionProposeRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidConnect(Pn({},n.params));let s=Yo(Ve.FIVE_MINUTES),a=Pn({id:o,pairingTopic:r,expiry:s},i);await this.setProposal(o,a),this.client.events.emit("session_proposal",{id:o,params:a})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(r,n)=>{let{id:i}=n;if(Cn(n)){let{result:o}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});let s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let a=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let u=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u});let l=await this.client.core.crypto.generateSharedKey(a,u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:r})}else Rr(n)&&(await this.client.proposal.delete(i,Kr("USER_DISCONNECTED")),this.events.emit(Xt("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidSessionSettleRequest(o);let{relay:s,controller:a,expiry:u,namespaces:l,requiredNamespaces:p,optionalNamespaces:h,sessionProperties:y}=n.params,v=Pn({topic:r,relay:s,expiry:u,namespaces:l,acknowledged:!0,requiredNamespaces:p,optionalNamespaces:h,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},y&&{sessionProperties:y});await this.sendResult(n.id,r,!0),this.events.emit(Xt("session_connect"),{session:v})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;Cn(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Xt("session_approve",i),{})):Rr(n)&&(await this.client.session.delete(r,Kr("USER_DISCONNECTED")),this.events.emit(Xt("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(Pn({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(o,r,!0),this.client.events.emit("session_update",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_update",i),{}):Rr(n)&&this.events.emit(Xt("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Yo(Sg)),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionExtendResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_extend",i),{}):Rr(n)&&this.events.emit(Xt("session_extend",i),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionPingResponse=(r,n)=>{let{id:i}=n;setTimeout(()=>{Cn(n)?this.events.emit(Xt("session_ping",i),{}):Rr(n)&&this.events.emit(Xt("session_ping",i),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),this.client.core.relayer.once(ur.publish,async()=>{await this.deleteSession(r)}),await this.sendResult(i,r,!0),this.client.events.emit("session_delete",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidRequest(Pn({topic:r},o)),await this.setPendingSessionRequest({id:i,topic:r,params:o}),this.client.events.emit("session_request",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_request",i),{result:n.result}):Rr(n)&&this.events.emit(Xt("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(Pn({topic:r},o)),this.client.events.emit("session_event",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.isValidConnect=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(u)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:a}=r;if(an(n)||await this.isValidPairingTopic(n),!P7(a,!0)){let{message:u}=ge("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(u)}!an(i)&&Ul(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!an(o)&&Ul(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),an(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let i=T7(r,"connect()",n);if(i)throw new Error(i.message)},this.isValidApprove=async r=>{if(!Tn(r))throw new Error(ge("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:o,sessionProperties:s}=r;await this.isValidProposalId(n);let a=this.client.proposal.get(n),u=cd(i,"approve()");if(u)throw new Error(u.message);let l=_g(a.requiredNamespaces,i,"approve()","requiredNamespaces");if(l)throw new Error(l.message);if(!cr(o,!0)){let{message:p}=ge("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(p)}if(Object.keys(i).length>Object.keys(a.requiredNamespaces).length){let p=Object.keys(a.optionalNamespaces).filter(v=>i[v]),h={};for(let v in a.optionalNamespaces)p.includes(v)&&(h[v]=a.optionalNamespaces[v]);let y=_g(h,i,"approve()","optionalNamespaces");if(y)throw new Error(y.message)}an(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!Tn(r)){let{message:o}=ge("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(o)}let{id:n,reason:i}=r;if(await this.isValidProposalId(n),!I7(i)){let{message:o}=ge("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!Tn(r)){let{message:l}=ge("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:o,expiry:s}=r;if(!kE(n)){let{message:l}=ge("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=S7(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=cd(o,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(pa(s)){let{message:l}=ge("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(u)}let{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);let o=this.client.session.get(n),s=cd(i,"update()");if(s)throw new Error(s.message);let a=_g(o.requiredNamespaces,i,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(u)}let{topic:n,request:i,chainId:o,expiry:s}=r;await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!LE(a,o)){let{message:u}=ge("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(u)}if(!O7(i)){let{message:u}=ge("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!N7(a,o,i.method)){let{message:u}=ge("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}if(s&&!k7(s,$E)){let{message:u}=ge("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${$E.min} and ${$E.max}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!Tn(r)){let{message:o}=ge("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(o)}let{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!A7(i)){let{message:o}=ge("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!Tn(r)){let{message:a}=ge("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:o}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!LE(s,o)){let{message:a}=ge("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!R7(i)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!M7(s,o,i.name)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(i=>{if(!cr(i,!1)){let{message:o}=ge("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(i)}`);throw new Error(o)}})}}isInitialized(){if(!this.initialized){let{message:t}=ge("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(ur.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let i=await this.client.core.crypto.decode(r,n);Ml(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):aa(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(sn.expired,async t=>{let{topic:r,id:n}=b7(t.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,ge("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(t){if(!cr(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=ge("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!cr(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=ge("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.core.pairing.pairings.keys.includes(t))this.isValidPairingTopic(t);else if(cr(t,!1)){let{message:r}=ge("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=ge("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!D7(t)){let{message:r}=ge("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=ge("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},BE=class extends da{constructor(t,r){super(t,r,qZ,HE),this.core=t,this.logger=r}},jE=class extends da{constructor(t,r){super(t,r,WZ,HE),this.core=t,this.logger=r}},zE=class extends da{constructor(t,r){super(t,r,YZ,HE),this.core=t,this.logger=r}},Vl=class extends wg{constructor(t){super(t),this.protocol=U7,this.version=V7,this.name=FE.name,this.events=new Cg.EventEmitter,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}},this.update=async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}},this.request=async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}},this.find=n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(t==null?void 0:t.name)||FE.name,this.metadata=(t==null?void 0:t.metadata)||x7();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,$7.default)((0,Bl.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||FE.logger}));this.core=(t==null?void 0:t.core)||new r7(t),this.logger=(0,Bl.generateChildLogger)(r,this.name),this.session=new jE(this.core,this.logger),this.proposal=new BE(this.core,this.logger),this.pendingRequest=new zE(this.core,this.logger),this.engine=new VE(this)}static async init(t){let r=new Vl(t);return await r.initialize(),r}get context(){return(0,Bl.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}};c();d();f();var lQ=Y(_0()),cQ=Y(S0()),fQ=Y(Js()),Z7=Y(P0()),Q7=Y(O0());var qE=Y(Oi()),WE=Y(na()),dQ=Y(z7()),ek=Y(J7());var hQ={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function tk(e,t){let{message:r,code:n}=hQ[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var Tk=Y(rk(),1);c();d();f();c();d();f();c();d();f();var wk=Y(ok());c();d();f();c();d();f();c();d();f();var sk="logger/5.7.0";var ak=!1,uk=!1,Dg={debug:1,default:2,info:2,warning:3,error:4,off:5},lk=Dg.default,YE=null;function pQ(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")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 ck=pQ(),XE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(XE||(XE={}));var zn;(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"})(zn||(zn={}));var fk="0123456789abcdef",be=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Dg[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(lk>Dg[n])&&console.log.apply(console,r)}debug(...t){this._log(be.levels.DEBUG,t)}info(...t){this._log(be.levels.INFO,t)}warn(...t){this._log(be.levels.WARNING,t)}makeError(t,r,n){if(uk)return this.makeError("censored error",r,{});r||(r=be.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(u=>{let l=n[u];try{if(l instanceof Uint8Array){let p="";for(let h=0;h<l.length;h++)p+=fk[l[h]>>4],p+=fk[l[h]&15];i.push(u+"=Uint8Array(0x"+p+")")}else i.push(u+"="+JSON.stringify(l))}catch(p){i.push(u+"="+JSON.stringify(n[u].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let o=t,s="";switch(r){case zn.NUMERIC_FAULT:{s="NUMERIC_FAULT";let u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case zn.CALL_EXCEPTION:case zn.INSUFFICIENT_FUNDS:case zn.MISSING_NEW:case zn.NONCE_EXPIRED:case zn.REPLACEMENT_UNDERPRICED:case zn.TRANSACTION_REPLACED:case zn.UNPREDICTABLE_GAS_LIMIT:s=r;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");let a=new Error(t);return a.reason=o,a.code=r,Object.keys(n).forEach(function(u){a[u]=n[u]}),a}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,be.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),ck&&this.throwError("platform missing String.prototype.normalize",be.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ck})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,be.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,be.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",be.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return YE||(YE=new be(sk)),YE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ak){if(!t)return;this.globalLogger().throwError("error censorship permanent",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}uk=!!t,ak=!!r}static setLogLevel(t){let r=Dg[t.toLowerCase()];if(r==null){be.globalLogger().warn("invalid log level - "+t);return}lk=r}static from(t){return new be(t)}};be.errors=zn;be.levels=XE;c();d();f();var dk="bytes/5.7.0";var ma=new be(dk);function pk(e){return!!e.toHexString}function jl(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return jl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function mk(e){return zl(e)&&!(e.length%2)||dd(e)}function hk(e){return typeof e=="number"&&e==e&&e%1===0}function dd(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!hk(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!hk(r)||r<0||r>=256)return!1}return!0}function un(e,t){if(t||(t={}),typeof e=="number"){ma.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),jl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),pk(e)&&(e=e.toHexString()),zl(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ma.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let i=0;i<r.length;i+=2)n.push(parseInt(r.substring(i,i+2),16));return jl(new Uint8Array(n))}return dd(e)?jl(new Uint8Array(e)):ma.throwArgumentError("invalid arrayify value","value",e)}function hd(e){let t=e.map(i=>un(i)),r=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return t.reduce((i,o)=>(n.set(o,i),i+o.length),0),jl(n)}function Ig(e,t){e=un(e),e.length>t&&ma.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),jl(r)}function zl(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var JE="0123456789abcdef";function Hl(e,t){if(t||(t={}),typeof e=="number"){ma.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=JE[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),pk(e))return e.toHexString();if(zl(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ma.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(dd(e)){let r="0x";for(let n=0;n<e.length;n++){let i=e[n];r+=JE[(i&240)>>4]+JE[i&15]}return r}return ma.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var gk="bignumber/5.7.0";var QE=wk.default.BN,ji=new be(gk),ZE={},yk=9007199254740991;var vk=!1,rr=class{constructor(t,r){t!==ZE&&ji.throwError("cannot call constructor directly; use BigNumber.from",be.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Wr(Ee(this).fromTwos(t))}toTwos(t){return Wr(Ee(this).toTwos(t))}abs(){return this._hex[0]==="-"?rr.from(this._hex.substring(1)):this}add(t){return Wr(Ee(this).add(Ee(t)))}sub(t){return Wr(Ee(this).sub(Ee(t)))}div(t){return rr.from(t).isZero()&&Dn("division-by-zero","div"),Wr(Ee(this).div(Ee(t)))}mul(t){return Wr(Ee(this).mul(Ee(t)))}mod(t){let r=Ee(t);return r.isNeg()&&Dn("division-by-zero","mod"),Wr(Ee(this).umod(r))}pow(t){let r=Ee(t);return r.isNeg()&&Dn("negative-power","pow"),Wr(Ee(this).pow(r))}and(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","and"),Wr(Ee(this).and(r))}or(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","or"),Wr(Ee(this).or(r))}xor(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","xor"),Wr(Ee(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&Dn("negative-width","mask"),Wr(Ee(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Dn("negative-width","shl"),Wr(Ee(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Dn("negative-width","shr"),Wr(Ee(this).shrn(t))}eq(t){return Ee(this).eq(Ee(t))}lt(t){return Ee(this).lt(Ee(t))}lte(t){return Ee(this).lte(Ee(t))}gt(t){return Ee(this).gt(Ee(t))}gte(t){return Ee(this).gte(Ee(t))}isNegative(){return this._hex[0]==="-"}isZero(){return Ee(this).isZero()}toNumber(){try{return Ee(this).toNumber()}catch(t){Dn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return ji.throwError("this platform does not support BigInt",be.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?vk||(vk=!0,ji.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?ji.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",be.errors.UNEXPECTED_ARGUMENT,{}):ji.throwError("BigNumber.toString does not accept parameters",be.errors.UNEXPECTED_ARGUMENT,{})),Ee(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof rr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new rr(ZE,pd(t)):t.match(/^-?[0-9]+$/)?new rr(ZE,pd(new QE(t))):ji.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&Dn("underflow","BigNumber.from",t),(t>=yk||t<=-yk)&&Dn("overflow","BigNumber.from",t),rr.from(String(t));let r=t;if(typeof r=="bigint")return rr.from(r.toString());if(dd(r))return rr.from(Hl(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return rr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(zl(n)||n[0]==="-"&&zl(n.substring(1))))return rr.from(n)}return ji.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function pd(e){if(typeof e!="string")return pd(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&ji.throwArgumentError("invalid hex","value",e),e=pd(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function Wr(e){return rr.from(pd(e))}function Ee(e){let t=rr.from(e).toHexString();return t[0]==="-"?new QE("-"+t.substring(3),16):new QE(t.substring(2),16)}function Dn(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),ji.throwError(e,be.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var xk="strings/5.7.0";var bk=new be(xk),md;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(md||(md={}));var ga;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(ga||(ga={}));function mQ(e,t,r,n,i){return bk.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function Ek(e,t,r,n,i){if(e===ga.BAD_PREFIX||e===ga.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===ga.OVERRUN?r.length-t-1:0}function gQ(e,t,r,n,i){return e===ga.OVERLONG?(n.push(i),0):(n.push(65533),Ek(e,t,r,n,i))}var yQ=Object.freeze({error:mQ,ignore:Ek,replace:gQ});function e2(e,t=md.current){t!=md.current&&(bk.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;let o=e.charCodeAt(n);if(n>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");let s=65536+((i&1023)<<10)+(o&1023);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return un(r)}c();d();f();var _k="solidity/5.7.0";var vQ=new RegExp("^bytes([0-9]+)$"),wQ=new RegExp("^(u?int)([0-9]*)$"),xQ=new RegExp("^(.*)\\[([0-9]*)\\]$"),bQ="0000000000000000000000000000000000000000000000000000000000000000",Kl=new be(_k);function Sk(e,t,r){switch(e){case"address":return r?Ig(t,32):un(t);case"string":return e2(t);case"bytes":return un(t);case"bool":return t=t?"0x01":"0x00",r?Ig(t,32):un(t)}let n=e.match(wQ);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&Kl.throwArgumentError("invalid number type","type",e),r&&(i=256),t=rr.from(t).toTwos(i),Ig(t,i/8)}if(n=e.match(vQ),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&Kl.throwArgumentError("invalid bytes type","type",e),un(t).byteLength!==i&&Kl.throwArgumentError(`invalid value for ${e}`,"value",t),r?un((t+bQ).substring(0,66)):t}if(n=e.match(xQ),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&Kl.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(Sk(i,a,!0))}),hd(s)}return Kl.throwArgumentError("invalid type","type",e)}function Ck(e,t){e.length!=t.length&&Kl.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(Sk(n,t[i]))}),Hl(hd(r))}function Pk(e){return mk(e)?t2(e):EQ(e)}function Dk(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return t2(Ck(t,r))}function EQ(e){let t=x.from(e);return t2(t)}function t2(e){let t=BigInt(_Q(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function _Q(e){let t=Hl(hd([un(e)]));return"0x"+Tk.default.keccak_256(un(t))}var Ik=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},SQ=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},Ok=e=>typeof e=="string"?Pk(e):Dk(e.types.map((t,r)=>[t,e.values[r]])),Ak=(e,t)=>(typeof t=="string"&&(t=SQ(["string"],[t])),Dk([["uint256",Pk(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])),Rk=e=>typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(",");var TQ={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},PQ=Rd()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",client:null,createClient:async(r,n,i,o,s=lD)=>{e({config:{app_id:r,action:n,signal:i,action_description:o,walletConnectProjectId:s}});try{let a=await Vl.init({projectId:s,metadata:{name:"IDKit",description:"Verify with World ID",url:"#",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:a}),t().connectClient(a)}catch(a){console.error(a)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:TQ});if(n){t().setUri(n);let o=await i();if(typeof o<"u")return e({topic:o.topic}),t().onConnectionEstablished(r)}}catch(n){e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${n}`)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:ax(r),mobile:ax(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:DQ(t().config)}).then(n=>{if(!IQ(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(sx).includes(o)&&(i=o),e({errorCode:i,verificationState:"failed"})}).finally(()=>void r.disconnect({topic:t().topic,reason:tk("USER_DISCONNECTED")})).catch(n=>{console.error(`Unable to disconnect: ${n}`)})},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,client:null,verificationState:"loading_widget"})}})),DQ=e=>({jsonrpc:"2.0",method:"world_id_v1",id:hT(1e5,9999999),params:[{app_id:e.app_id,action:Rk(e.action),signal:Ok(e.signal).digest,action_description:e.action_description,external_nullifier:Ak(e.app_id,e.action).digest}]}),IQ=e=>{if(!e||typeof e!="object")return!1;let t="proof"in e?e.proof:void 0,r="merkle_root"in e?e.merkle_root:void 0,n="nullifier_hash"in e?e.nullifier_hash:void 0;if(!("credential_type"in e?e.credential_type:void 0))return!1;for(let o of[r,n,t])if(!o||!Ik(o))return!1;return!0},OQ=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,client:e.client,createClient:e.createClient,connectClient:e.connectClient,verificationState:e.verificationState}),AQ=(e,t,r,n,i)=>{let{result:o,verificationState:s,errorCode:a,qrData:u,client:l,createClient:p,reset:h}=PQ(OQ);return(0,Nk.useEffect)(()=>{!e||!t||!r||l||p(e,t,r,n,i)},[e,t,r,i,n,l,p,s]),{result:o,reset:h,verificationState:s,errorCode:a,qrData:u}},Mk=AQ;c();d();f();c();d();f();var RQ=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 0a3.555 3.555 0 0 0-3.563 3.547v.052A3.001 3.001 0 0 0 0 6.547V11a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6.547a3.001 3.001 0 0 0-2.438-2.948v-.052A3.555 3.555 0 0 0 5.999 0Zm2.437 3.547A2.432 2.432 0 0 0 5.999 1.12a2.432 2.432 0 0 0-2.437 2.427h4.875ZM7.5 8.773c0 .825-.671 1.494-1.5 1.494-.828 0-1.5-.669-1.5-1.494 0-.824.672-1.493 1.5-1.493.829 0 1.5.669 1.5 1.493Z",clipRule:"evenodd"})),kk=RQ;c();d();f();var NQ=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),g.createElement("path",{fill:"currentColor",d:"M9.98 3.6c-.08-.345-.392-.553-.732-.477-.093.021-2.59.754-4.236.768C3.36 3.877.87 3.144.776 3.123a.629.629 0 0 0-.76.477.64.64 0 0 0 .467.767c.433.111 1.139.318 2.83.72 0 0-.02 2.28-.093 3.663-.1 1.99-.672 4.424-.672 4.424-.1.463.126.74.406.801.573.125.76-.276.826-.56l1.092-4.16A.128.128 0 0 1 5 9.164c.053 0 .106.027.126.09l1.093 4.16c.066.284.253.685.825.56.28-.062.507-.338.407-.801 0 0-.566-2.433-.673-4.424-.073-1.383-.093-3.664-.093-3.664 1.698-.4 2.398-.608 2.83-.719a.637.637 0 0 0 .467-.767Z"}),g.createElement("path",{fill:"currentColor",d:"M5.007 3.11a1.55 1.55 0 0 0 1.539-1.555C6.546.698 5.86 0 5.007 0A1.55 1.55 0 0 0 3.47 1.555c0 .857.686 1.555 1.538 1.555Z"})),Lk=NQ;var MQ=({className:e})=>g.createElement("div",{className:Vn(e,"space-y-4 text-left")},g.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),g.createElement("div",{className:"space-y-3"},g.createElement(Fk,{title:"Proving unique-humanness",icon:Lk},g.createElement("p",null,"Human is doing an action only once."),g.createElement("p",null,"Stop bots, stop abouse.")),g.createElement(Fk,{title:"Completely private",icon:kk},g.createElement("p",null,"Using Zero-knowledge proofs so no traceable information is ever public.")))),Fk=({icon:e,title:t,children:r})=>g.createElement("div",{className:"flex space-x-6"},g.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},g.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),g.createElement("div",null,g.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),g.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),$k=MQ;var kQ=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage}),LQ=()=>{let e=Qa(),[t,r]=(0,gd.useState)(!1),{copy:n,app_id:i,action:o,signal:s,setStage:a,handleVerify:u,action_description:l,walletConnectProjectId:p}=Yr(kQ),{result:h,qrData:y,verificationState:v,reset:w}=Mk(i,o,s,l,p);return(0,gd.useEffect)(()=>w,[w]),(0,gd.useEffect)(()=>{v==="failed"&&a("ERROR"),h&&u(h)},[h,w,u,v,a]),g.createElement("div",{className:"-mt-6 space-y-6"},g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm on the Worldcoin app":Ks(n,"heading")),g.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},v==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":Ks(n,"subheading"))),v==="awaiting_verification"?g.createElement("div",{className:"flex items-center justify-center"},g.createElement(Do,{className:"h-20 w-20"})):g.createElement(uD,{showQR:t,setShowQR:r,qrData:y}),(e=="desktop"||!t)&&g.createElement($k,null))},Uk=LQ;c();d();f();var ye=Y(ue());c();d();f();var r2=Y(ue());var FQ=r2["useId".toString()]||(()=>{}),$Q=0;function Og(e){let[t,r]=r2.useState(FQ());return qs(()=>{e||r(n=>n!=null?n:String($Q++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var Gr=Y(ue());var n2="focusScope.autoFocusOnMount",i2="focusScope.autoFocusOnUnmount",Vk={bubbles:!1,cancelable:!0};var Hk=(0,Gr.forwardRef)((e,t)=>{let _=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=_,s=de(_,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,Gr.useState)(null),l=Vr(i),p=Vr(o),h=(0,Gr.useRef)(null),y=vr(t,D=>u(D)),v=(0,Gr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Gr.useEffect)(()=>{if(n){let D=function(I){if(v.paused||!a)return;let P=I.target;a.contains(P)?h.current=P:ya(h.current,{select:!0})},C=function(I){v.paused||!a||a.contains(I.relatedTarget)||ya(h.current,{select:!0})};return document.addEventListener("focusin",D),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",C)}}},[n,a,v.paused]),(0,Gr.useEffect)(()=>{if(a){jk.add(v);let D=document.activeElement;if(!a.contains(D)){let I=new CustomEvent(n2,Vk);a.addEventListener(n2,l),a.dispatchEvent(I),I.defaultPrevented||(UQ(HQ(Kk(a)),{select:!0}),document.activeElement===D&&ya(a))}return()=>{a.removeEventListener(n2,l),setTimeout(()=>{let I=new CustomEvent(i2,Vk);a.addEventListener(i2,p),a.dispatchEvent(I),I.defaultPrevented||ya(D!=null?D:document.body,{select:!0}),a.removeEventListener(i2,p),jk.remove(v)},0)}}},[a,l,p,v]);let w=(0,Gr.useCallback)(D=>{if(!r&&!n||v.paused)return;let C=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,I=document.activeElement;if(C&&I){let P=D.currentTarget,[R,U]=VQ(P);R&&U?!D.shiftKey&&I===U?(D.preventDefault(),r&&ya(R,{select:!0})):D.shiftKey&&I===R&&(D.preventDefault(),r&&ya(U,{select:!0})):I===P&&D.preventDefault()}},[r,n,v.paused]);return(0,Gr.createElement)(tr.div,_e({tabIndex:-1},s,{ref:y,onKeyDown:w}))});function UQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ya(n,{select:t}),document.activeElement!==r)return}function VQ(e){let t=Kk(e),r=Bk(t,e),n=Bk(t.reverse(),e);return[r,n]}function Kk(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Bk(e,t){for(let r of e)if(!BQ(r,{upTo:t}))return r}function BQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jQ(e){return e instanceof HTMLInputElement&&"select"in e}function ya(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&jQ(e)&&t&&e.select()}}var jk=zQ();function zQ(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=zk(e,t),e.unshift(t)},remove(t){var r;e=zk(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function zk(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function HQ(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var Wk=Y(ue()),o2=0;function Gk(){(0,Wk.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:qk()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:qk()),o2++,()=>{o2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),o2--}},[])}function qk(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c();d();f();c();d();f();var Mg=Y(ue());c();d();f();var Er=Y(ue());c();d();f();var va="right-scroll-bar-position",wa="width-before-scroll-bar",s2="with-scroll-bars-hidden",a2="--removed-body-scroll-bar-size";c();d();f();c();d();f();function Yk(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var Xk=Y(ue());function Jk(e,t){var r=(0,Xk.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}c();d();f();function u2(e,t){return Jk(t||null,function(r){return e.forEach(function(n){return Yk(n,r)})})}c();d();f();c();d();f();c();d();f();function KQ(e){return e}function qQ(e,t){t===void 0&&(t=KQ);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(o),s=r}var u=function(){var p=s;s=[],p.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){s.push(p),l()},filter:function(p){return s=s.filter(p),r}}}};return i}function l2(e){e===void 0&&(e={});var t=qQ(null);return t.options=En({async:!0,ssr:!1},e),t}c();d();f();var Zk=Y(ue()),Qk=function(e){var t=e.sideCar,r=rm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return Zk.createElement(n,En({},r))};Qk.isSideCarExport=!0;function c2(e,t){return e.useMedium(t),Qk}var Ag=l2();var f2=function(){},yd=Er.forwardRef(function(e,t){var r=Er.useRef(null),n=Er.useState({onScrollCapture:f2,onWheelCapture:f2,onTouchMoveCapture:f2}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,y=e.sideCar,v=e.noIsolation,w=e.inert,_=e.allowPinchZoom,D=e.as,C=D===void 0?"div":D,I=rm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=y,R=u2([r,t]),U=En(En({},I),i);return Er.createElement(Er.Fragment,null,p&&Er.createElement(P,{sideCar:Ag,removeScrollBar:l,shards:h,noIsolation:v,inert:w,setCallbacks:o,allowPinchZoom:!!_,lockRef:r}),s?Er.cloneElement(Er.Children.only(a),En(En({},U),{ref:R})):Er.createElement(C,En({},U,{className:u,ref:R}),a))});yd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yd.classNames={fullWidth:wa,zeroRight:va};c();d();f();c();d();f();var _t=Y(ue());c();d();f();c();d();f();var Rg=Y(ue());c();d();f();c();d();f();c();d();f();var rL=Y(ue());c();d();f();c();d();f();var eL;var tL=function(){if(eL)return eL;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tL();return t&&e.setAttribute("nonce",t),e}function GQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var d2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=WQ())&&(GQ(t,r),YQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var h2=function(){var e=d2();return function(t,r){rL.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var vd=function(){var e=h2(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var XQ={left:0,top:0,right:0,gap:0},p2=function(e){return parseInt(e||"",10)||0},JQ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[p2(r),p2(n),p2(i)]},m2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return XQ;var t=JQ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var ZQ=vd(),QQ=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
40
|
+
.`.concat(s2,` {
|
|
48
41
|
overflow: hidden `).concat(n,`;
|
|
49
42
|
padding-right: `).concat(a,"px ").concat(n,`;
|
|
50
43
|
}
|
|
@@ -61,29 +54,29 @@ if (cid) {
|
|
|
61
54
|
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
62
55
|
}
|
|
63
56
|
|
|
64
|
-
.`).concat(
|
|
57
|
+
.`).concat(va,` {
|
|
65
58
|
right: `).concat(a,"px ").concat(n,`;
|
|
66
59
|
}
|
|
67
60
|
|
|
68
|
-
.`).concat(
|
|
61
|
+
.`).concat(wa,` {
|
|
69
62
|
margin-right: `).concat(a,"px ").concat(n,`;
|
|
70
63
|
}
|
|
71
64
|
|
|
72
|
-
.`).concat(
|
|
65
|
+
.`).concat(va," .").concat(va,` {
|
|
73
66
|
right: 0 `).concat(n,`;
|
|
74
67
|
}
|
|
75
68
|
|
|
76
|
-
.`).concat(
|
|
69
|
+
.`).concat(wa," .").concat(wa,` {
|
|
77
70
|
margin-right: 0 `).concat(n,`;
|
|
78
71
|
}
|
|
79
72
|
|
|
80
73
|
body {
|
|
81
|
-
`).concat(
|
|
74
|
+
`).concat(a2,": ").concat(a,`px;
|
|
82
75
|
}
|
|
83
|
-
`)},
|
|
76
|
+
`)},g2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=Rg.useMemo(function(){return m2(i)},[i]);return Rg.createElement(ZQ,{styles:QQ(o,!t,i,r?"":"!important")})};c();d();f();var y2=!1;if(typeof window<"u")try{wd=Object.defineProperty({},"passive",{get:function(){return y2=!0,!0}}),window.addEventListener("test",wd,wd),window.removeEventListener("test",wd,wd)}catch(e){y2=!1}var wd,xa=y2?{passive:!1}:!1;c();d();f();var eee=function(e){return e.tagName==="TEXTAREA"},nL=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!eee(e)&&r[t]==="visible")},tee=function(e){return nL(e,"overflowY")},ree=function(e){return nL(e,"overflowX")},v2=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=iL(e,r);if(n){var i=oL(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},nee=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},iee=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},iL=function(e,t){return e==="v"?tee(t):ree(t)},oL=function(e,t){return e==="v"?nee(t):iee(t)},oee=function(e,t){return e==="h"&&t==="rtl"?-1:1},sL=function(e,t,r,n,i){var o=oee(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,u=t.contains(a),l=!1,p=s>0,h=0,y=0;do{var v=oL(e,a),w=v[0],_=v[1],D=v[2],C=_-D-o*w;(w||C)&&iL(e,a)&&(h+=C,y+=w),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&(i&&h===0||!i&&s>h)||!p&&(i&&y===0||!i&&-s>y))&&(l=!0),l};var Ng=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},aL=function(e){return[e.deltaX,e.deltaY]},uL=function(e){return e&&"current"in e?e.current:e},see=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aee=function(e){return`
|
|
84
77
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
85
78
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
86
|
-
`)},wne=0,mc=[];function aL(e){var t=Vt.useRef([]),r=Vt.useRef([0,0]),n=Vt.useRef(),i=Vt.useState(wne++)[0],o=Vt.useState(function(){return qd()})[0],s=Vt.useRef(e);Vt.useEffect(function(){s.current=e},[e]),Vt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var C=vT([e.lockRef.current],(e.shards||[]).map(sL),!0).filter(Boolean);return C.forEach(function(R){return R.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),C.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=Vt.useCallback(function(C,R){if("touches"in C&&C.touches.length===2)return!s.current.allowPinchZoom;var P=Sy(C),M=r.current,A="deltaX"in C?C.deltaX:M[0]-P[0],$="deltaY"in C?C.deltaY:M[1]-P[1],W,ee=C.target,q=Math.abs(A)>Math.abs($)?"h":"v";if("touches"in C&&q==="h"&&ee.type==="range")return!1;var K=SE(q,ee);if(!K)return!0;if(K?W=q:(W=q==="v"?"h":"v",K=SE(q,ee)),!K)return!1;if(!n.current&&"changedTouches"in C&&(A||$)&&(n.current=W),!W)return!0;var ue=n.current||W;return iL(ue,R,C,ue==="h"?A:$,!0)},[]),u=Vt.useCallback(function(C){var R=C;if(!(!mc.length||mc[mc.length-1]!==o)){var P="deltaY"in R?oL(R):Sy(R),M=t.current.filter(function(W){return W.name===R.type&&W.target===R.target&&yne(W.delta,P)})[0];if(M&&M.should){R.cancelable&&R.preventDefault();return}if(!M){var A=(s.current.shards||[]).map(sL).filter(Boolean).filter(function(W){return W.contains(R.target)}),$=A.length>0?a(R,A[0]):!s.current.noIsolation;$&&R.cancelable&&R.preventDefault()}}},[]),l=Vt.useCallback(function(C,R,P,M){var A={name:C,delta:R,target:P,should:M};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function($){return $!==A})},1)},[]),p=Vt.useCallback(function(C){r.current=Sy(C),n.current=void 0},[]),h=Vt.useCallback(function(C){l(C.type,oL(C),C.target,a(C,e.lockRef.current))},[]),y=Vt.useCallback(function(C){l(C.type,Sy(C),C.target,a(C,e.lockRef.current))},[]);Vt.useEffect(function(){return mc.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",u,qa),document.addEventListener("touchmove",u,qa),document.addEventListener("touchstart",p,qa),function(){mc=mc.filter(function(C){return C!==o}),document.removeEventListener("wheel",u,qa),document.removeEventListener("touchmove",u,qa),document.removeEventListener("touchstart",p,qa)}},[]);var v=e.removeScrollBar,w=e.inert;return Vt.createElement(Vt.Fragment,null,w?Vt.createElement(o,{styles:vne(i)}):null,v?Vt.createElement(_E,{gapMode:"margin"}):null)}var uL=gE(_y,aL);var lL=Cy.forwardRef(function(e,t){return Cy.createElement(Hd,ni({},e,{ref:t,sideCar:uL}))});lL.classNames=Hd.classNames;var CE=lL;c();d();f();var xne=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gc=new WeakMap,Py=new WeakMap,Ty={},PE=0,cL=function(e){return e&&(e.host||cL(e.parentNode))},bne=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=cL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},_ne=function(e,t,r,n){var i=bne(t,Array.isArray(e)?e:[e]);Ty[r]||(Ty[r]=new WeakMap);var o=Ty[r],s=[],a=new Set,u=new Set(i),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};i.forEach(l);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(y){if(a.has(y))p(y);else{var v=y.getAttribute(n),w=v!==null&&v!=="false",C=(gc.get(y)||0)+1,R=(o.get(y)||0)+1;gc.set(y,C),o.set(y,R),s.push(y),C===1&&w&&Py.set(y,!0),R===1&&y.setAttribute(r,"true"),w||y.setAttribute(n,"true")}})};return p(t),a.clear(),PE++,function(){s.forEach(function(h){var y=gc.get(h)-1,v=o.get(h)-1;gc.set(h,y),o.set(h,v),y||(Py.has(h)||h.removeAttribute(n),Py.delete(h)),v||h.removeAttribute(r)}),PE--,PE||(gc=new WeakMap,gc=new WeakMap,Py=new WeakMap,Ty={})}},fL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||xne(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),_ne(n,i,r,"aria-hidden")):function(){return null}};var dL="Dialog",[hL,vEe]=ml(dL),[Ene,Oo]=hL(dL),Sne=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,Ze.useRef)(null),u=(0,Ze.useRef)(null),[l=!1,p]=LT({prop:n,defaultProp:i,onChange:o});return(0,Ze.createElement)(Ene,{scope:t,triggerRef:a,contentRef:u,contentId:by(),titleId:by(),descriptionId:by(),open:l,onOpenChange:p,onOpenToggle:(0,Ze.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var pL="DialogPortal",[Cne,mL]=hL(pL,{forceMount:void 0}),Pne=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=Oo(pL,t);return(0,Ze.createElement)(Cne,{scope:t,forceMount:r},Ze.Children.map(n,s=>(0,Ze.createElement)(jf,{present:r||o.open},(0,Ze.createElement)(A0,{asChild:!0,container:i},s))))},TE="DialogOverlay",Tne=(0,Ze.forwardRef)((e,t)=>{let r=mL(TE,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=Le(s,["forceMount"]),o=Oo(TE,e.__scopeDialog);return o.modal?(0,Ze.createElement)(jf,{present:n||o.open},(0,Ze.createElement)(Dne,ht({},i,{ref:t}))):null}),Dne=(0,Ze.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=Le(o,["__scopeDialog"]),i=Oo(TE,r);return(0,Ze.createElement)(CE,{as:ps,allowPinchZoom:!0,shards:[i.contentRef]},(0,Ze.createElement)(wr.div,ht({"data-state":vL(i.open)},n,{ref:t,style:ne({pointerEvents:"auto"},n.style)})))}),yc="DialogContent",One=(0,Ze.forwardRef)((e,t)=>{let r=mL(yc,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=Le(s,["forceMount"]),o=Oo(yc,e.__scopeDialog);return(0,Ze.createElement)(jf,{present:n||o.open},o.modal?(0,Ze.createElement)(Ine,ht({},i,{ref:t})):(0,Ze.createElement)(Rne,ht({},i,{ref:t})))}),Ine=(0,Ze.forwardRef)((e,t)=>{let r=Oo(yc,e.__scopeDialog),n=(0,Ze.useRef)(null),i=Ur(t,r.contentRef,n);return(0,Ze.useEffect)(()=>{let o=n.current;if(o)return fL(o)},[]),(0,Ze.createElement)(gL,ht({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$r(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:$r(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:$r(e.onFocusOutside,o=>o.preventDefault())}))}),Rne=(0,Ze.forwardRef)((e,t)=>{let r=Oo(yc,e.__scopeDialog),n=(0,Ze.useRef)(!1);return(0,Ze.createElement)(gL,ht({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);let a=i.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(a))&&i.preventDefault()}}))}),gL=(0,Ze.forwardRef)((e,t)=>{let p=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o}=p,s=Le(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=Oo(yc,r),u=(0,Ze.useRef)(null),l=Ur(t,u);return K9(),(0,Ze.createElement)(Ze.Fragment,null,(0,Ze.createElement)(B9,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,Ze.createElement)(_x,ht({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":vL(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),yL="DialogTitle",Ane=(0,Ze.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=Le(o,["__scopeDialog"]),i=Oo(yL,r);return(0,Ze.createElement)(wr.h2,ht({id:i.titleId},n,{ref:t}))});var Mne="DialogClose",Nne=(0,Ze.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=Le(o,["__scopeDialog"]),i=Oo(Mne,r);return(0,Ze.createElement)(wr.button,ht({type:"button"},n,{ref:t,onClick:$r(e.onClick,()=>i.onOpenChange(!1))}))});function vL(e){return e?"open":"closed"}var kne="DialogTitleWarning",[wEe,xEe]=ET(kne,{contentName:yc,titleName:yL,docsSlug:"dialog"});var wL=Sne;var xL=Pne,bL=Tne,_L=One,EL=Ane;var SL=Nne;var vc=me(Pe(),1);c();d();f();var Lne=e=>x.createElement("svg",_e(ne({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),x.createElement("path",{d:"M13.961 2.717c-1.404-1.055-4.348 2.108-4.646 3.371a.262.262 0 0 0 .108.263.25.25 0 0 0 .28.001 54.105 54.105 0 0 1 2.108-1.436c1.072 1.234 1.206 2.596 1.206 2.596l.122-.177c.75-1.084 2.367-3.42.822-4.618Zm-3.536 5.354a.238.238 0 0 1 .09-.074c1.159-.55 5.424-.176 5.485 1.6.039 1.975-2.75 2.142-4.053 2.22l-.22.014s.96-.954 1.242-2.577a52.692 52.692 0 0 0-2.415-.788.247.247 0 0 1-.141-.11.254.254 0 0 1-.032-.176.243.243 0 0 1 .044-.109Zm-.775 2.046c.05-.007.1 0 .145.023 1.146.58 3.51 4.212 2.182 5.365-1.49 1.26-3.357-.86-4.228-1.848-.052-.06-.1-.115-.146-.165 0 0 1.331.173 2.755-.612a55.368 55.368 0 0 0-.899-2.417.255.255 0 0 1 .058-.28.244.244 0 0 1 .133-.066Zm-2.001.68c.025.03.042.066.05.105.27 1.27-1.052 5.417-2.764 5.078-1.898-.405-1.432-3.21-1.214-4.521l.036-.221s.698 1.17 2.186 1.814c.54-.87 1.02-1.716 1.299-2.218a.24.24 0 0 1 .314-.107.24.24 0 0 1 .093.07Zm-1.79-1.199a.26.26 0 0 1-.048.106C5 10.707.99 12.238.183 10.66c-.872-1.765 1.594-3.146 2.731-3.784l.18-.101s-.463 1.28-.031 2.87a50.668 50.668 0 0 0 2.515-.35.25.25 0 0 1 .278.186c.01.038.01.078.003.116Zm-.194-2.17a.236.236 0 0 1-.113.025c-1.276-.02-4.947-2.26-4.236-3.882.814-1.799 3.407-.694 4.607-.183l.192.082s-1.273.426-2.227 1.759c.71.732 1.415 1.397 1.834 1.784a.256.256 0 0 1 .032.34.241.241 0 0 1-.089.075Zm1.827-1.553a.247.247 0 0 1-.369-.024c-.777-1.033-1.34-5.352.35-5.798 1.889-.469 2.655 2.289 3.008 3.56l.056.202s-1.12-.75-2.738-.677a50.779 50.779 0 0 0-.23 2.573.256.256 0 0 1-.077.164Zm34.03 1.792c0 1.049-.197 1.947-.59 2.695-.389.745-.92 1.315-1.594 1.71-.671.397-1.432.595-2.284.595-.85 0-1.614-.198-2.288-.594-.67-.4-1.202-.971-1.595-1.716-.389-.748-.584-1.644-.584-2.69 0-1.049.195-1.946.584-2.69.393-.748.925-1.32 1.595-1.716.675-.396 1.437-.594 2.288-.594.852 0 1.613.198 2.284.594.674.396 1.206.968 1.595 1.716.392.744.588 1.641.588 2.69Zm-1.771 0c0-.738-.116-1.36-.347-1.868-.228-.51-.544-.895-.95-1.155a2.514 2.514 0 0 0-1.4-.394c-.528 0-.995.131-1.4.394-.405.26-.723.645-.954 1.155-.228.507-.342 1.13-.342 1.868 0 .738.114 1.362.342 1.873.23.507.549.892.954 1.155.405.26.872.39 1.4.39.529 0 .996-.13 1.4-.39.406-.263.722-.648.95-1.155.231-.51.347-1.135.347-1.873Zm-17.674 4.867L19.333 2.8h1.894l1.752 7.153h.09L24.94 2.8h1.724l1.875 7.158h.085L30.375 2.8h1.894l-2.744 9.734h-1.737l-1.947-6.83h-.075l-1.951 6.83h-1.738ZM43.053 2.8v9.734h1.76V8.969h1.793l1.91 3.565h1.966L48.379 8.68c.063-.025.125-.053.185-.081.513-.25.9-.604 1.163-1.06.266-.46.399-1.002.399-1.626 0-.62-.131-1.164-.394-1.63a2.66 2.66 0 0 0-1.154-1.093c-.506-.26-1.133-.39-1.88-.39h-3.645Zm1.76 4.705h1.624c.437 0 .795-.06 1.073-.18.279-.124.484-.303.617-.537.136-.238.204-.53.204-.875s-.068-.64-.204-.884a1.3 1.3 0 0 0-.622-.56c-.278-.13-.637-.196-1.077-.196h-1.614v3.232Zm6.8 5.029V2.8h1.761v8.256h4.282v1.478h-6.043Zm7.438 0h3.294c.988 0 1.833-.195 2.535-.585a3.907 3.907 0 0 0 1.62-1.677c.376-.73.564-1.6.564-2.615 0-1.01-.187-1.878-.56-2.604a3.906 3.906 0 0 0-1.605-1.668c-.693-.39-1.522-.585-2.487-.585h-3.36v9.734Zm3.21-1.526h-1.449V4.326h1.5c.659 0 1.21.123 1.652.37.447.244.784.614 1.011 1.108.228.491.342 1.109.342 1.853 0 .745-.114 1.366-.342 1.864a2.37 2.37 0 0 1-1.02 1.116c-.453.248-1.018.371-1.695.371ZM73.546 2.8v9.734h-1.761V2.8h1.761Zm1.773 9.734h3.295c.987 0 1.832-.195 2.535-.585a3.906 3.906 0 0 0 1.618-1.677c.377-.73.565-1.6.565-2.615 0-1.01-.186-1.878-.56-2.604a3.905 3.905 0 0 0-1.604-1.668c-.693-.39-1.522-.585-2.488-.585h-3.36v9.734Zm3.21-1.526h-1.448V4.326h1.5c.658 0 1.209.123 1.652.37.446.244.783.614 1.01 1.108.228.491.343 1.109.343 1.853 0 .745-.115 1.366-.342 1.864a2.371 2.371 0 0 1-1.02 1.116c-.453.248-1.018.371-1.696.371Z"})),CL=Lne;c();d();f();var $ne=e=>x.createElement("svg",_e(ne({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),PL=$ne;c();d();f();var TL=me(Pe(),1);var Une=()=>x.createElement("div",{className:"space-y-6"},x.createElement("div",{className:"flex justify-center"},x.createElement(hs,{className:"h-24 w-24"})),x.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),DL=(0,TL.memo)(Une);var jne=({copy:e,open:t,processing:r,onOpenChange:n,stage:i,setStage:o,theme:s,computed:a,setOptions:u})=>({copy:e,stage:i,theme:s,setStage:o,processing:r,setOptions:u,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(i)}),Bne=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:u,autoClose:l,copy:p})=>{let{isOpen:h,onOpenChange:y,processing:v,stage:w,setStage:C,canGoBack:R,setOptions:P,copy:M,theme:A}=Sn(jne),$=Su();(0,vc.useEffect)(()=>{P({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:u,handleVerify:a,autoClose:l,copy:p,theme:i},"props")},[p,t,r,i,o,l,u,P,a,n,s]);let W=(0,vc.useMemo)(()=>{switch(w){case"WORLD_ID":return L9;case"SUCCESS":return JT;case"ERROR":return bT;case"ABOUT":return xT;case"PRIVACY":return ZT;case"HOST_APP_VERIFICATION":return DL;default:throw new Error("Invalid IDKitStage.")}},[w]);return x.createElement(wL,{open:h,onOpenChange:y},e==null?void 0:e({open:()=>y(!0)}),x.createElement(xL,{forceMount:!0},x.createElement(vc.Fragment,null,x.createElement(fl,null,h&&x.createElement(yC.div,{mode:"open",id:"idkit-widget"},x.createElement(vC,null),x.createElement("div",{id:"modal",className:Mn(A=="dark"&&"dark","fixed z-10 font-sans")},x.createElement(bL,{asChild:!0},x.createElement(ur.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),x.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},x.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},x.createElement(_L,{asChild:!0},x.createElement(ur.div,{layout:$=="mobile"?"position":!0,exit:$=="mobile"?"initMob":"init",initial:$=="mobile"?"initMob":"init",animate:$=="mobile"?"animateMob":"animate",variants:{init:{opacity:0,scale:.9},initMob:{translateY:"100%"},animate:{opacity:1,scale:1},animateMob:{translateY:0}},transition:{layout:{duration:.15}},className:"dark:bg-0d151d relative z-50 w-full rounded-t-3xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-3xl"},x.createElement(KT,null,x.createElement(WT,{className:"flex justify-center"}),x.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},x.createElement("button",{onClick:()=>C("WORLD_ID"),disabled:!R,className:Mn(!R&&"invisible pointer-events-none","dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white")},x.createElement(PL,{className:"w-4"})),x.createElement(EL,{className:"dark:text-d3dfea font-medium text-gray-900"},w!="ABOUT"&&pa(M,"title")),x.createElement(SL,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},x.createElement(Tp,{className:"h-5 w-5"}))),x.createElement("div",{className:"relative"},x.createElement(ur.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:v?"hidden":"visible"},transition:{layout:{duration:.15}}},x.createElement(W,null)),x.createElement(fl,null,v&&x.createElement(ur.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},x.createElement(hs,{className:"h-24 w-24"})))),x.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-3xl"},x.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},x.createElement("span",null,"Verified with"),x.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},x.createElement(CL,{className:"text-0d151d h-4 dark:text-white"}))),w!="PRIVACY"?x.createElement("button",{onClick:()=>C("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):x.createElement("a",{target:"_blank",href:"https://id.worldcoin.org/privacy",className:"text-0d151d dark:text-9eafc0 text-sm",rel:"noreferrer"},"Learn More \u2192")))))))))))))},OL=Bne;var RL=(0,IL.memo)(OL);var DE,wc=!1,zne=e=>{if(wc)throw new Error("IDKit is already initialized");if(!e.app_id||!e.action)throw new Error("You must provide your App ID & Action");e.walletConnectProjectId||(console.warn("WalletConnect project ID not detected. Using default, but this is not advisable for production usage!"),console.warn("Get your own project ID at https://cloud.walletconnect.com/"));let t=()=>{try{if(!wc){let r=document.createElement("div");document.body.appendChild(r),DE=(0,AL.createRoot)(r),DE.render(x.createElement(RL,ne({},e))),N3(e.enableTelemetry),wc=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},Hne=e=>{if(!wc)throw new Error("IDKit is not initialized");Sn.getState().setOptions(e,"props")},qne=()=>new Promise((e,t)=>{if(!wc)return t("IDKitWidget is not initialized");Sn.getState().addSuccessCallback(e,"manual"),Sn.setState({open:!0})}),Kne=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),DE.unmount(),wc=!1,Sn.destroy()};return AE(Wne);})();
|
|
79
|
+
`)},uee=0,ql=[];function lL(e){var t=_t.useRef([]),r=_t.useRef([0,0]),n=_t.useRef(),i=_t.useState(uee++)[0],o=_t.useState(function(){return vd()})[0],s=_t.useRef(e);_t.useEffect(function(){s.current=e},[e]),_t.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=dT([e.lockRef.current],(e.shards||[]).map(uL),!0).filter(Boolean);return _.forEach(function(D){return D.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=_t.useCallback(function(_,D){if("touches"in _&&_.touches.length===2)return!s.current.allowPinchZoom;var C=Ng(_),I=r.current,P="deltaX"in _?_.deltaX:I[0]-C[0],R="deltaY"in _?_.deltaY:I[1]-C[1],U,j=_.target,F=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in _&&F==="h"&&j.type==="range")return!1;var $=v2(F,j);if(!$)return!0;if($?U=F:(U=F==="v"?"h":"v",$=v2(F,j)),!$)return!1;if(!n.current&&"changedTouches"in _&&(P||R)&&(n.current=U),!U)return!0;var G=n.current||U;return sL(G,D,_,G==="h"?P:R,!0)},[]),u=_t.useCallback(function(_){var D=_;if(!(!ql.length||ql[ql.length-1]!==o)){var C="deltaY"in D?aL(D):Ng(D),I=t.current.filter(function(U){return U.name===D.type&&U.target===D.target&&see(U.delta,C)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var P=(s.current.shards||[]).map(uL).filter(Boolean).filter(function(U){return U.contains(D.target)}),R=P.length>0?a(D,P[0]):!s.current.noIsolation;R&&D.cancelable&&D.preventDefault()}}},[]),l=_t.useCallback(function(_,D,C,I){var P={name:_,delta:D,target:C,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),p=_t.useCallback(function(_){r.current=Ng(_),n.current=void 0},[]),h=_t.useCallback(function(_){l(_.type,aL(_),_.target,a(_,e.lockRef.current))},[]),y=_t.useCallback(function(_){l(_.type,Ng(_),_.target,a(_,e.lockRef.current))},[]);_t.useEffect(function(){return ql.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",u,xa),document.addEventListener("touchmove",u,xa),document.addEventListener("touchstart",p,xa),function(){ql=ql.filter(function(_){return _!==o}),document.removeEventListener("wheel",u,xa),document.removeEventListener("touchmove",u,xa),document.removeEventListener("touchstart",p,xa)}},[]);var v=e.removeScrollBar,w=e.inert;return _t.createElement(_t.Fragment,null,w?_t.createElement(o,{styles:aee(i)}):null,v?_t.createElement(g2,{gapMode:"margin"}):null)}var cL=c2(Ag,lL);var fL=Mg.forwardRef(function(e,t){return Mg.createElement(yd,En({},e,{ref:t,sideCar:cL}))});fL.classNames=yd.classNames;var w2=fL;c();d();f();var lee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wl=new WeakMap,kg=new WeakMap,Lg={},x2=0,dL=function(e){return e&&(e.host||dL(e.parentNode))},cee=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=dL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},fee=function(e,t,r,n){var i=cee(t,Array.isArray(e)?e:[e]);Lg[r]||(Lg[r]=new WeakMap);var o=Lg[r],s=[],a=new Set,u=new Set(i),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};i.forEach(l);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(y){if(a.has(y))p(y);else{var v=y.getAttribute(n),w=v!==null&&v!=="false",_=(Wl.get(y)||0)+1,D=(o.get(y)||0)+1;Wl.set(y,_),o.set(y,D),s.push(y),_===1&&w&&kg.set(y,!0),D===1&&y.setAttribute(r,"true"),w||y.setAttribute(n,"true")}})};return p(t),a.clear(),x2++,function(){s.forEach(function(h){var y=Wl.get(h)-1,v=o.get(h)-1;Wl.set(h,y),o.set(h,v),y||(kg.has(h)||h.removeAttribute(n),kg.delete(h)),v||h.removeAttribute(r)}),x2--,x2||(Wl=new WeakMap,Wl=new WeakMap,kg=new WeakMap,Lg={})}},hL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||lee(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),fee(n,i,r,"aria-hidden")):function(){return null}};var pL="Dialog",[mL,Rbe]=Hu(pL),[dee,zi]=mL(pL),hee=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,ye.useRef)(null),u=(0,ye.useRef)(null),[l=!1,p]=AT({prop:n,defaultProp:i,onChange:o});return(0,ye.createElement)(dee,{scope:t,triggerRef:a,contentRef:u,contentId:Og(),titleId:Og(),descriptionId:Og(),open:l,onOpenChange:p,onOpenToggle:(0,ye.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var gL="DialogPortal",[pee,yL]=mL(gL,{forceMount:void 0}),mee=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=zi(gL,t);return(0,ye.createElement)(pee,{scope:t,forceMount:r},ye.Children.map(n,s=>(0,ye.createElement)(vf,{present:r||o.open},(0,ye.createElement)(om,{asChild:!0,container:i},s))))},b2="DialogOverlay",gee=(0,ye.forwardRef)((e,t)=>{let r=yL(b2,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zi(b2,e.__scopeDialog);return o.modal?(0,ye.createElement)(vf,{present:n||o.open},(0,ye.createElement)(yee,_e({},i,{ref:t}))):null}),yee=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(b2,r);return(0,ye.createElement)(w2,{as:Io,allowPinchZoom:!0,shards:[i.contentRef]},(0,ye.createElement)(tr.div,_e({"data-state":xL(i.open)},n,{ref:t,style:H({pointerEvents:"auto"},n.style)})))}),Gl="DialogContent",vee=(0,ye.forwardRef)((e,t)=>{let r=yL(Gl,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zi(Gl,e.__scopeDialog);return(0,ye.createElement)(vf,{present:n||o.open},o.modal?(0,ye.createElement)(wee,_e({},i,{ref:t})):(0,ye.createElement)(xee,_e({},i,{ref:t})))}),wee=(0,ye.forwardRef)((e,t)=>{let r=zi(Gl,e.__scopeDialog),n=(0,ye.useRef)(null),i=vr(t,r.contentRef,n);return(0,ye.useEffect)(()=>{let o=n.current;if(o)return hL(o)},[]),(0,ye.createElement)(vL,_e({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yr(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:yr(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:yr(e.onFocusOutside,o=>o.preventDefault())}))}),xee=(0,ye.forwardRef)((e,t)=>{let r=zi(Gl,e.__scopeDialog),n=(0,ye.useRef)(!1);return(0,ye.createElement)(vL,_e({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);let a=i.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(a))&&i.preventDefault()}}))}),vL=(0,ye.forwardRef)((e,t)=>{let p=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o}=p,s=de(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=zi(Gl,r),u=(0,ye.useRef)(null),l=vr(t,u);return Gk(),(0,ye.createElement)(ye.Fragment,null,(0,ye.createElement)(Hk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,ye.createElement)(Aw,_e({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":xL(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),wL="DialogTitle",bee=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(wL,r);return(0,ye.createElement)(tr.h2,_e({id:i.titleId},n,{ref:t}))});var Eee="DialogClose",_ee=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(Eee,r);return(0,ye.createElement)(tr.button,_e({type:"button"},n,{ref:t,onClick:yr(e.onClick,()=>i.onOpenChange(!1))}))});function xL(e){return e?"open":"closed"}var See="DialogTitleWarning",[Nbe,Mbe]=yT(See,{contentName:Gl,titleName:wL,docsSlug:"dialog"});var bL=hee;var EL=mee,_L=gee,SL=vee,CL=bee;var TL=_ee;var Yl=Y(ue(),1);c();d();f();var Tee=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),g.createElement("path",{d:"M13.961 2.717c-1.404-1.055-4.348 2.108-4.646 3.371a.262.262 0 0 0 .108.263.25.25 0 0 0 .28.001 54.105 54.105 0 0 1 2.108-1.436c1.072 1.234 1.206 2.596 1.206 2.596l.122-.177c.75-1.084 2.367-3.42.822-4.618Zm-3.536 5.354a.238.238 0 0 1 .09-.074c1.159-.55 5.424-.176 5.485 1.6.039 1.975-2.75 2.142-4.053 2.22l-.22.014s.96-.954 1.242-2.577a52.692 52.692 0 0 0-2.415-.788.247.247 0 0 1-.141-.11.254.254 0 0 1-.032-.176.243.243 0 0 1 .044-.109Zm-.775 2.046c.05-.007.1 0 .145.023 1.146.58 3.51 4.212 2.182 5.365-1.49 1.26-3.357-.86-4.228-1.848-.052-.06-.1-.115-.146-.165 0 0 1.331.173 2.755-.612a55.368 55.368 0 0 0-.899-2.417.255.255 0 0 1 .058-.28.244.244 0 0 1 .133-.066Zm-2.001.68c.025.03.042.066.05.105.27 1.27-1.052 5.417-2.764 5.078-1.898-.405-1.432-3.21-1.214-4.521l.036-.221s.698 1.17 2.186 1.814c.54-.87 1.02-1.716 1.299-2.218a.24.24 0 0 1 .314-.107.24.24 0 0 1 .093.07Zm-1.79-1.199a.26.26 0 0 1-.048.106C5 10.707.99 12.238.183 10.66c-.872-1.765 1.594-3.146 2.731-3.784l.18-.101s-.463 1.28-.031 2.87a50.668 50.668 0 0 0 2.515-.35.25.25 0 0 1 .278.186c.01.038.01.078.003.116Zm-.194-2.17a.236.236 0 0 1-.113.025c-1.276-.02-4.947-2.26-4.236-3.882.814-1.799 3.407-.694 4.607-.183l.192.082s-1.273.426-2.227 1.759c.71.732 1.415 1.397 1.834 1.784a.256.256 0 0 1 .032.34.241.241 0 0 1-.089.075Zm1.827-1.553a.247.247 0 0 1-.369-.024c-.777-1.033-1.34-5.352.35-5.798 1.889-.469 2.655 2.289 3.008 3.56l.056.202s-1.12-.75-2.738-.677a50.779 50.779 0 0 0-.23 2.573.256.256 0 0 1-.077.164Zm34.03 1.792c0 1.049-.197 1.947-.59 2.695-.389.745-.92 1.315-1.594 1.71-.671.397-1.432.595-2.284.595-.85 0-1.614-.198-2.288-.594-.67-.4-1.202-.971-1.595-1.716-.389-.748-.584-1.644-.584-2.69 0-1.049.195-1.946.584-2.69.393-.748.925-1.32 1.595-1.716.675-.396 1.437-.594 2.288-.594.852 0 1.613.198 2.284.594.674.396 1.206.968 1.595 1.716.392.744.588 1.641.588 2.69Zm-1.771 0c0-.738-.116-1.36-.347-1.868-.228-.51-.544-.895-.95-1.155a2.514 2.514 0 0 0-1.4-.394c-.528 0-.995.131-1.4.394-.405.26-.723.645-.954 1.155-.228.507-.342 1.13-.342 1.868 0 .738.114 1.362.342 1.873.23.507.549.892.954 1.155.405.26.872.39 1.4.39.529 0 .996-.13 1.4-.39.406-.263.722-.648.95-1.155.231-.51.347-1.135.347-1.873Zm-17.674 4.867L19.333 2.8h1.894l1.752 7.153h.09L24.94 2.8h1.724l1.875 7.158h.085L30.375 2.8h1.894l-2.744 9.734h-1.737l-1.947-6.83h-.075l-1.951 6.83h-1.738ZM43.053 2.8v9.734h1.76V8.969h1.793l1.91 3.565h1.966L48.379 8.68c.063-.025.125-.053.185-.081.513-.25.9-.604 1.163-1.06.266-.46.399-1.002.399-1.626 0-.62-.131-1.164-.394-1.63a2.66 2.66 0 0 0-1.154-1.093c-.506-.26-1.133-.39-1.88-.39h-3.645Zm1.76 4.705h1.624c.437 0 .795-.06 1.073-.18.279-.124.484-.303.617-.537.136-.238.204-.53.204-.875s-.068-.64-.204-.884a1.3 1.3 0 0 0-.622-.56c-.278-.13-.637-.196-1.077-.196h-1.614v3.232Zm6.8 5.029V2.8h1.761v8.256h4.282v1.478h-6.043Zm7.438 0h3.294c.988 0 1.833-.195 2.535-.585a3.907 3.907 0 0 0 1.62-1.677c.376-.73.564-1.6.564-2.615 0-1.01-.187-1.878-.56-2.604a3.906 3.906 0 0 0-1.605-1.668c-.693-.39-1.522-.585-2.487-.585h-3.36v9.734Zm3.21-1.526h-1.449V4.326h1.5c.659 0 1.21.123 1.652.37.447.244.784.614 1.011 1.108.228.491.342 1.109.342 1.853 0 .745-.114 1.366-.342 1.864a2.37 2.37 0 0 1-1.02 1.116c-.453.248-1.018.371-1.695.371ZM73.546 2.8v9.734h-1.761V2.8h1.761Zm1.773 9.734h3.295c.987 0 1.832-.195 2.535-.585a3.906 3.906 0 0 0 1.618-1.677c.377-.73.565-1.6.565-2.615 0-1.01-.186-1.878-.56-2.604a3.905 3.905 0 0 0-1.604-1.668c-.693-.39-1.522-.585-2.488-.585h-3.36v9.734Zm3.21-1.526h-1.448V4.326h1.5c.658 0 1.209.123 1.652.37.446.244.783.614 1.01 1.108.228.491.343 1.109.343 1.853 0 .745-.115 1.366-.342 1.864a2.371 2.371 0 0 1-1.02 1.116c-.453.248-1.018.371-1.696.371Z"})),PL=Tee;c();d();f();var Pee=e=>g.createElement("svg",se(H({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),DL=Pee;c();d();f();var IL=Y(ue(),1);var Dee=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"flex justify-center"},g.createElement(Do,{className:"h-24 w-24"})),g.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),OL=(0,IL.memo)(Dee);var Oee=({copy:e,open:t,processing:r,onOpenChange:n,stage:i,setStage:o,theme:s,computed:a,setOptions:u})=>({copy:e,stage:i,theme:s,setStage:o,processing:r,setOptions:u,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(i)}),Aee=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:u,autoClose:l,copy:p})=>{let{isOpen:h,onOpenChange:y,processing:v,stage:w,setStage:_,canGoBack:D,setOptions:C,copy:I,theme:P}=Yr(Oee),R=Qa();(0,Yl.useEffect)(()=>{C({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:u,handleVerify:a,autoClose:l,copy:p,theme:i},"props")},[p,t,r,i,o,l,u,C,a,n,s]);let U=(0,Yl.useMemo)(()=>{switch(w){case"WORLD_ID":return Uk;case"SUCCESS":return WT;case"ERROR":return mT;case"ABOUT":return pT;case"PRIVACY":return KT;case"HOST_APP_VERIFICATION":return OL;default:throw new Error("Invalid IDKitStage.")}},[w]);return g.createElement(bL,{open:h,onOpenChange:y},e==null?void 0:e({open:()=>y(!0)}),g.createElement(EL,{forceMount:!0},g.createElement(Yl.Fragment,null,g.createElement(Vu,null,h&&g.createElement(f5.div,{mode:"open",id:"idkit-widget"},g.createElement(d5,null),g.createElement("div",{id:"modal",className:Vn(P=="dark"&&"dark","fixed z-10 font-sans")},g.createElement(_L,{asChild:!0},g.createElement(zt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),g.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},g.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},g.createElement(SL,{asChild:!0},g.createElement(zt.div,{layout:R=="mobile"?"position":!0,exit:R=="mobile"?"initMob":"init",initial:R=="mobile"?"initMob":"init",animate:R=="mobile"?"animateMob":"animate",variants:{init:{opacity:0,scale:.9},initMob:{translateY:"100%"},animate:{opacity:1,scale:1},animateMob:{translateY:0}},transition:{layout:{duration:.15}},className:"dark:bg-0d151d relative z-50 w-full rounded-t-3xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-3xl"},g.createElement(VT,null,g.createElement(BT,{className:"flex justify-center"}),g.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},g.createElement("button",{onClick:()=>_("WORLD_ID"),disabled:!D,className:Vn(!D&&"invisible pointer-events-none","dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white")},g.createElement(DL,{className:"w-4"})),g.createElement(CL,{className:"dark:text-d3dfea font-medium text-gray-900"},w!="ABOUT"&&Ks(I,"title")),g.createElement(TL,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},g.createElement(ep,{className:"h-5 w-5"}))),g.createElement("div",{className:"relative"},g.createElement(zt.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:v?"hidden":"visible"},transition:{layout:{duration:.15}}},g.createElement(U,null)),g.createElement(Vu,null,v&&g.createElement(zt.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},g.createElement(Do,{className:"h-24 w-24"})))),g.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-3xl"},g.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},g.createElement("span",null,"Verified with"),g.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},g.createElement(PL,{className:"text-0d151d h-4 dark:text-white"}))),w!="PRIVACY"?g.createElement("button",{onClick:()=>_("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):g.createElement("a",{target:"_blank",href:"https://id.worldcoin.org/privacy",className:"text-0d151d dark:text-9eafc0 text-sm",rel:"noreferrer"},"Learn More \u2192")))))))))))))},AL=Aee;var NL=(0,RL.memo)(AL);var E2,Xl=!1,Ree=e=>{if(Xl)throw new Error("IDKit is already initialized");if(!e.app_id||!e.action)throw new Error("You must provide your App ID & Action");e.walletConnectProjectId||(console.warn("WalletConnect project ID not detected. Using default, but this is not advisable for production usage!"),console.warn("Get your own project ID at https://cloud.walletconnect.com/"));let t=()=>{try{if(!Xl){let r=document.createElement("div");document.body.appendChild(r),E2=(0,ML.createRoot)(r),E2.render(g.createElement(NL,H({},e))),D_(e.enableTelemetry),Xl=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},Nee=e=>{if(!Xl)throw new Error("IDKit is not initialized");Yr.getState().setOptions(e,"props")},Mee=()=>new Promise((e,t)=>{if(!Xl)return t("IDKitWidget is not initialized");Yr.getState().addSuccessCallback(e,"manual"),Yr.setState({open:!0})}),kee=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),E2.unmount(),Xl=!1,Yr.destroy()};return T2(Lee);})();
|
|
87
80
|
/*!
|
|
88
81
|
* The buffer module from node.js, for the browser.
|
|
89
82
|
*
|
|
@@ -104,24 +97,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
104
97
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
105
98
|
PERFORMANCE OF THIS SOFTWARE.
|
|
106
99
|
***************************************************************************** */
|
|
107
|
-
/**
|
|
108
|
-
* @license React
|
|
109
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
110
|
-
*
|
|
111
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the MIT license found in the
|
|
114
|
-
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/
|
|
116
|
-
/**
|
|
117
|
-
* @license React
|
|
118
|
-
* react-dom-server.browser.production.min.js
|
|
119
|
-
*
|
|
120
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the MIT license found in the
|
|
123
|
-
* LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/
|
|
125
100
|
/**
|
|
126
101
|
* @license React
|
|
127
102
|
* react-dom.production.min.js
|