@worldcoin/idkit 0.4.8 → 0.4.9
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 +24 -24
- package/build/index.cjs +2 -2
- package/build/index.cjs.map +3 -3
- package/build/index.css +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +3 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/idkit-js.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
var IDKit=(()=>{var o7=Object.create;var Hl=Object.defineProperty,s7=Object.defineProperties,a7=Object.getOwnPropertyDescriptor,u7=Object.getOwnPropertyDescriptors,l7=Object.getOwnPropertyNames,hd=Object.getOwnPropertySymbols,c7=Object.getPrototypeOf,Kg=Object.prototype.hasOwnProperty,y_=Object.prototype.propertyIsEnumerable;var g_=(e,t,r)=>t in e?Hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))Kg.call(t,r)&&g_(e,r,t[r]);if(hd)for(var r of hd(t))y_.call(t,r)&&g_(e,r,t[r]);return e},ue=(e,t)=>s7(e,u7(t));var v_=(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)Kg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hd)for(var n of hd(e))t.indexOf(n)<0&&y_.call(e,n)&&(r[n]=e[n]);return r};var pa=(e,t)=>()=>(e&&(t=e(e=0)),t);var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ur=(e,t)=>{for(var r in t)Hl(e,r,{get:t[r],enumerable:!0})},pd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l7(t))!Kg.call(e,i)&&i!==r&&Hl(e,i,{get:()=>t[i],enumerable:!(n=a7(t,i))||n.enumerable});return e},jt=(e,t,r)=>(pd(e,t,"default"),r&&pd(r,t,"default")),Y=(e,t,r)=>(r=e!=null?o7(c7(e)):{},pd(t||!e||!e.__esModule?Hl(r,"default",{value:e,enumerable:!0}):r,e)),w_=e=>pd(Hl({},"__esModule",{value:!0}),e);var f7,S,c=pa(()=>{f7="production",S={MODE:f7}});function S_(){Wg=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Un[t]=e[t],rn[e.charCodeAt(t)]=t;rn["-".charCodeAt(0)]=62,rn["_".charCodeAt(0)]=63}function h7(e){Wg||S_();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 d7(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=rn[e.charCodeAt(t)]<<18|rn[e.charCodeAt(t+1)]<<12|rn[e.charCodeAt(t+2)]<<6|rn[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=i&255;return o===2?(i=rn[e.charCodeAt(t)]<<2|rn[e.charCodeAt(t+1)]>>4,s[u++]=i&255):o===1&&(i=rn[e.charCodeAt(t)]<<10|rn[e.charCodeAt(t+1)]<<4|rn[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=i&255),s}function p7(e){return Un[e>>18&63]+Un[e>>12&63]+Un[e>>6&63]+Un[e&63]}function m7(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(p7(n));return i.join("")}function b_(e){Wg||S_();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(m7(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],i+=Un[t>>2],i+=Un[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Un[t>>10],i+=Un[t>>4&63],i+=Un[t<<2&63],i+="="),o.push(i),o.join("")}function md(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function oi(e,t){if(md()<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 Gg(this,e)}return C_(this,e,t,r)}function C_(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?v7(e,t,r,n):typeof t=="string"?y7(e,t,r):w7(e,t)}function T_(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 g7(e,t,r,n){return T_(t),t<=0?oi(e,t):r!==void 0?typeof n=="string"?oi(e,t).fill(r,n):oi(e,t).fill(r):oi(e,t)}function Gg(e,t){if(T_(t),e=oi(e,t<0?0:Yg(t)|0),!x.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function y7(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=P_(t,r)|0;e=oi(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function qg(e,t){var r=t.length<0?0:Yg(t.length)|0;e=oi(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function v7(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=qg(e,t),e}function w7(e,t){if(Vn(t)){var r=Yg(t.length)|0;return e=oi(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"||$7(t.length)?oi(e,0):qg(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return qg(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Yg(e){if(e>=md())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+md().toString(16)+" bytes");return e|0}function Vn(e){return!!(e!=null&&e._isBuffer)}function P_(e,t){if(Vn(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 gd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return M_(e).length;default:if(n)return gd(e).length;t=(""+t).toLowerCase(),n=!0}}function x7(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 A7(this,t,r);case"utf8":case"utf-8":return A_(this,t,r);case"ascii":return D7(this,t,r);case"latin1":case"binary":return I7(this,t,r);case"base64":return T7(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O7(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ss(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function D_(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)),Vn(t))return t.length===0?-1:E_(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):E_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function E_(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(w,v){return o===1?w[v]:w.readUInt16BE(v*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,g=0;g<a;g++)if(u(e,l+g)!==u(t,g)){h=!1;break}if(h)return l}return-1}function b7(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 E7(e,t,r,n){return wd(gd(t,e.length-r),e,r,n)}function I_(e,t,r,n){return wd(L7(t),e,r,n)}function _7(e,t,r,n){return I_(e,t,r,n)}function S7(e,t,r,n){return wd(M_(t),e,r,n)}function C7(e,t,r,n){return wd(F7(t,e.length-r),e,r,n)}function T7(e,t,r){return t===0&&r===e.length?b_(e):b_(e.slice(t,r))}function A_(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 P7(n)}function P7(e){var t=e.length;if(t<=__)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=__));return r}function D7(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 I7(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 A7(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+=k7(e[o]);return i}function O7(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 Gt(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 Ar(e,t,r,n,i,o){if(!Vn(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 yd(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 vd(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 O_(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 R_(e,t,r,n,i){return i||O_(e,t,r,4,34028234663852886e22,-34028234663852886e22),L_(e,t,r,n,23,4),r+4}function N_(e,t,r,n,i){return i||O_(e,t,r,8,17976931348623157e292,-17976931348623157e292),L_(e,t,r,n,52,8),r+8}function N7(e){if(e=M7(e).replace(R7,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function M7(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function k7(e){return e<16?"0"+e.toString(16):e.toString(16)}function gd(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 L7(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function F7(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 M_(e){return h7(N7(e))}function wd(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 $7(e){return e!==e}function U7(e){return e!=null&&(!!e._isBuffer||k_(e)||V7(e))}function k_(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function V7(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&k_(e.slice(0,0))}function xd(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,g=r?-1:1,w=e[t+h];for(h+=g,o=w&(1<<-p)-1,w>>=-p,p+=a;p>0;o=o*256+e[t+h],h+=g,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=g,p-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(w?-1:1)*s*Math.pow(2,o-n)}function L_(e,t,r,n,i,o){var s,a,u,l=o*8-i-1,p=(1<<l)-1,h=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=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+=g/u:t+=g*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+w]=a&255,w+=v,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+w]=s&255,w+=v,s/=256,l-=8);e[r+w-v]|=_*128}var Un,rn,d7,Wg,__,R7,F_=pa(()=>{c();d();f();Un=[],rn=[],d7=typeof Uint8Array<"u"?Uint8Array:Array,Wg=!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 C_(null,e,t,r)};x.kMaxLength=md();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 g7(null,e,t,r)};x.allocUnsafe=function(e){return Gg(null,e)};x.allocUnsafeSlow=function(e){return Gg(null,e)};x.isBuffer=U7;x.compare=function(t,r){if(!Vn(t)||!Vn(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(!Vn(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};x.byteLength=P_;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)ss(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)ss(this,r,r+3),ss(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)ss(this,r,r+7),ss(this,r+1,r+6),ss(this,r+2,r+5),ss(this,r+3,r+4);return this};x.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?A_(this,0,t):x7.apply(this,arguments)};x.prototype.equals=function(t){if(!Vn(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(!Vn(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 D_(this,t,r,n,!0)};x.prototype.lastIndexOf=function(t,r,n){return D_(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 b7(this,t,r,n);case"utf8":case"utf-8":return E7(this,t,r,n);case"ascii":return I_(this,t,r,n);case"latin1":case"binary":return _7(this,t,r,n);case"base64":return S7(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C7(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)}};__=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||Gt(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||Gt(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||Gt(t,1,this.length),this[t]};x.prototype.readUInt16LE=function(t,r){return r||Gt(t,2,this.length),this[t]|this[t+1]<<8};x.prototype.readUInt16BE=function(t,r){return r||Gt(t,2,this.length),this[t]<<8|this[t+1]};x.prototype.readUInt32LE=function(t,r){return r||Gt(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||Gt(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||Gt(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||Gt(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||Gt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};x.prototype.readInt16LE=function(t,r){r||Gt(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||Gt(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||Gt(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||Gt(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||Gt(t,4,this.length),xd(this,t,!0,23,4)};x.prototype.readFloatBE=function(t,r){return r||Gt(t,4,this.length),xd(this,t,!1,23,4)};x.prototype.readDoubleLE=function(t,r){return r||Gt(t,8,this.length),xd(this,t,!0,52,8)};x.prototype.readDoubleBE=function(t,r){return r||Gt(t,8,this.length),xd(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;Ar(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;Ar(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||Ar(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||Ar(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):yd(this,t,r,!0),r+2};x.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):yd(this,t,r,!1),r+2};x.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ar(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):vd(this,t,r,!0),r+4};x.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ar(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):vd(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);Ar(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);Ar(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||Ar(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||Ar(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):yd(this,t,r,!0),r+2};x.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):yd(this,t,r,!1),r+2};x.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ar(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):vd(this,t,r,!0),r+4};x.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ar(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):vd(this,t,r,!1),r+4};x.prototype.writeFloatLE=function(t,r,n){return R_(this,t,r,!0,n)};x.prototype.writeFloatBE=function(t,r,n){return R_(this,t,r,!1,n)};x.prototype.writeDoubleLE=function(t,r,n){return N_(this,t,r,!0,n)};x.prototype.writeDoubleBE=function(t,r,n){return N_(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=Vn(t)?t:gd(new x(t,i).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};R7=/[^+\/0-9A-Za-z-_]/g});var f=pa(()=>{F_()});var G_=ee(xe=>{"use strict";c();d();f();var Kl=Symbol.for("react.element"),B7=Symbol.for("react.portal"),j7=Symbol.for("react.fragment"),z7=Symbol.for("react.strict_mode"),H7=Symbol.for("react.profiler"),K7=Symbol.for("react.provider"),q7=Symbol.for("react.context"),W7=Symbol.for("react.forward_ref"),G7=Symbol.for("react.suspense"),Y7=Symbol.for("react.memo"),X7=Symbol.for("react.lazy"),$_=Symbol.iterator;function J7(e){return e===null||typeof e!="object"?null:(e=$_&&e[$_]||e["@@iterator"],typeof e=="function"?e:null)}var B_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j_=Object.assign,z_={};function ma(e,t,r){this.props=e,this.context=t,this.refs=z_,this.updater=r||B_}ma.prototype.isReactComponent={};ma.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")};ma.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H_(){}H_.prototype=ma.prototype;function Jg(e,t,r){this.props=e,this.context=t,this.refs=z_,this.updater=r||B_}var Qg=Jg.prototype=new H_;Qg.constructor=Jg;j_(Qg,ma.prototype);Qg.isPureReactComponent=!0;var U_=Array.isArray,K_=Object.prototype.hasOwnProperty,Zg={current:null},q_={key:!0,ref:!0,__self:!0,__source:!0};function W_(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)K_.call(t,n)&&!q_.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:Kl,type:e,key:o,ref:s,props:i,_owner:Zg.current}}function Q7(e,t){return{$$typeof:Kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ey(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kl}function Z7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var V_=/\/+/g;function Xg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Z7(""+e.key):t.toString(36)}function Ed(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 Kl:case B7:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+Xg(s,0):n,U_(i)?(r="",e!=null&&(r=e.replace(V_,"$&/")+"/"),Ed(i,t,r,"",function(l){return l})):i!=null&&(ey(i)&&(i=Q7(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(V_,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",U_(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+Xg(o,a);s+=Ed(o,t,r,u,i)}else if(u=J7(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+Xg(o,a++),s+=Ed(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 bd(e,t,r){if(e==null)return e;var n=[],i=0;return Ed(e,n,"","",function(o){return t.call(r,o,i++)}),n}function eF(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 xr={current:null},_d={transition:null},tF={ReactCurrentDispatcher:xr,ReactCurrentBatchConfig:_d,ReactCurrentOwner:Zg};xe.Children={map:bd,forEach:function(e,t,r){bd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return bd(e,function(){t++}),t},toArray:function(e){return bd(e,function(t){return t})||[]},only:function(e){if(!ey(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=ma;xe.Fragment=j7;xe.Profiler=H7;xe.PureComponent=Jg;xe.StrictMode=z7;xe.Suspense=G7;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tF;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=j_({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Zg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)K_.call(t,u)&&!q_.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:Kl,type:e.type,key:i,ref:o,props:n,_owner:s}};xe.createContext=function(e){return e={$$typeof:q7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:K7,_context:e},e.Consumer=e};xe.createElement=W_;xe.createFactory=function(e){var t=W_.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:W7,render:e}};xe.isValidElement=ey;xe.lazy=function(e){return{$$typeof:X7,_payload:{_status:-1,_result:e},_init:eF}};xe.memo=function(e,t){return{$$typeof:Y7,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=_d.transition;_d.transition={};try{e()}finally{_d.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return xr.current.useCallback(e,t)};xe.useContext=function(e){return xr.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return xr.current.useDeferredValue(e)};xe.useEffect=function(e,t){return xr.current.useEffect(e,t)};xe.useId=function(){return xr.current.useId()};xe.useImperativeHandle=function(e,t,r){return xr.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return xr.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return xr.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return xr.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return xr.current.useReducer(e,t,r)};xe.useRef=function(e){return xr.current.useRef(e)};xe.useState=function(e){return xr.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return xr.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return xr.current.useTransition()};xe.version="18.2.0"});var ae=ee((YZ,Y_)=>{"use strict";c();d();f();Y_.exports=G_()});var y,d=pa(()=>{y=Y(ae(),1)});var Z_=ee(Q_=>{"use strict";c();d();f();var ga=ae();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,iF=ga.useState,oF=ga.useEffect,sF=ga.useLayoutEffect,aF=ga.useDebugValue;function uF(e,t){var r=t(),n=iF({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return sF(function(){i.value=r,i.getSnapshot=t,ty(i)&&o({inst:i})},[e,r,t]),oF(function(){return ty(i)&&o({inst:i}),e(function(){ty(i)&&o({inst:i})})},[e]),aF(r),r}function ty(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nF(e,r)}catch(n){return!0}}function lF(e,t){return t()}var cF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lF:uF;Q_.useSyncExternalStore=ga.useSyncExternalStore!==void 0?ga.useSyncExternalStore:cF});var t2=ee((ZZ,e2)=>{"use strict";c();d();f();e2.exports=Z_()});var n2=ee(r2=>{"use strict";c();d();f();var Sd=ae(),fF=t2();function dF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hF=typeof Object.is=="function"?Object.is:dF,pF=fF.useSyncExternalStore,mF=Sd.useRef,gF=Sd.useEffect,yF=Sd.useMemo,vF=Sd.useDebugValue;r2.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=mF(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=yF(function(){function u(w){if(!l){if(l=!0,p=w,w=n(w),i!==void 0&&s.hasValue){var v=s.value;if(i(v,w))return h=v}return h=w}if(v=h,hF(p,w))return v;var _=n(w);return i!==void 0&&i(v,_)?v:(p=w,h=_)}var l=!1,p,h,g=r===void 0?null:r;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,r,n,i]);var a=pF(e,o[0],o[1]);return gF(function(){s.hasValue=!0,s.value=a},[a]),vF(a),a}});var o2=ee((tee,i2)=>{"use strict";c();d();f();i2.exports=n2()});var N2=ee(ke=>{"use strict";c();d();f();function ay(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<Dd(i,t))e[n]=t,e[r]=i,r=n;else break e}}function Cn(e){return e.length===0?null:e[0]}function Ad(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>Dd(a,r))u<i&&0>Dd(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<i&&0>Dd(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function Dd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(S2=performance,ke.unstable_now=function(){return S2.now()}):(iy=Date,C2=iy.now(),ke.unstable_now=function(){return iy.now()-C2});var S2,iy,C2,Bn=[],ji=[],$F=1,nn=null,lr=3,Od=!1,ls=!1,Jl=!1,D2=typeof setTimeout=="function"?setTimeout:null,I2=typeof clearTimeout=="function"?clearTimeout:null,T2=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function uy(e){for(var t=Cn(ji);t!==null;){if(t.callback===null)Ad(ji);else if(t.startTime<=e)Ad(ji),t.sortIndex=t.expirationTime,ay(Bn,t);else break;t=Cn(ji)}}function ly(e){if(Jl=!1,uy(e),!ls)if(Cn(Bn)!==null)ls=!0,fy(cy);else{var t=Cn(ji);t!==null&&dy(ly,t.startTime-e)}}function cy(e,t){ls=!1,Jl&&(Jl=!1,I2(Ql),Ql=-1),Od=!0;var r=lr;try{for(uy(t),nn=Cn(Bn);nn!==null&&(!(nn.expirationTime>t)||e&&!R2());){var n=nn.callback;if(typeof n=="function"){nn.callback=null,lr=nn.priorityLevel;var i=n(nn.expirationTime<=t);t=ke.unstable_now(),typeof i=="function"?nn.callback=i:nn===Cn(Bn)&&Ad(Bn),uy(t)}else Ad(Bn);nn=Cn(Bn)}if(nn!==null)var o=!0;else{var s=Cn(ji);s!==null&&dy(ly,s.startTime-t),o=!1}return o}finally{nn=null,lr=r,Od=!1}}var Rd=!1,Id=null,Ql=-1,A2=5,O2=-1;function R2(){return!(ke.unstable_now()-O2<A2)}function oy(){if(Id!==null){var e=ke.unstable_now();O2=e;var t=!0;try{t=Id(!0,e)}finally{t?Xl():(Rd=!1,Id=null)}}else Rd=!1}var Xl;typeof T2=="function"?Xl=function(){T2(oy)}:typeof MessageChannel<"u"?(sy=new MessageChannel,P2=sy.port2,sy.port1.onmessage=oy,Xl=function(){P2.postMessage(null)}):Xl=function(){D2(oy,0)};var sy,P2;function fy(e){Id=e,Rd||(Rd=!0,Xl())}function dy(e,t){Ql=D2(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(){ls||Od||(ls=!0,fy(cy))};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"):A2=0<e?Math.floor(1e3/e):5};ke.unstable_getCurrentPriorityLevel=function(){return lr};ke.unstable_getFirstCallbackNode=function(){return Cn(Bn)};ke.unstable_next=function(e){switch(lr){case 1:case 2:case 3:var t=3;break;default:t=lr}var r=lr;lr=t;try{return e()}finally{lr=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=lr;lr=e;try{return t()}finally{lr=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:$F++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,ay(ji,e),Cn(Bn)===null&&e===Cn(ji)&&(Jl?(I2(Ql),Ql=-1):Jl=!0,dy(ly,r-n))):(e.sortIndex=i,ay(Bn,e),ls||Od||(ls=!0,fy(cy))),e};ke.unstable_shouldYield=R2;ke.unstable_wrapCallback=function(e){var t=lr;return function(){var r=lr;lr=t;try{return e.apply(this,arguments)}finally{lr=r}}}});var k2=ee((yee,M2)=>{"use strict";c();d();f();M2.exports=N2()});var B6=ee(Yr=>{"use strict";c();d();f();var j3=ae(),Wr=k2();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 z3=new Set,xc={};function Es(e,t){$a(e,t),$a(e+"Capture",t)}function $a(e,t){for(xc[e]=t,e=0;e<t.length;e++)z3.add(t[e])}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ky=Object.prototype.hasOwnProperty,UF=/^[: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]*$/,L2={},F2={};function VF(e){return ky.call(F2,e)?!0:ky.call(L2,e)?!1:UF.test(e)?F2[e]=!0:(L2[e]=!0,!1)}function BF(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 jF(e,t,r,n){if(t===null||typeof t>"u"||BF(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 _r(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 tr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tr[e]=new _r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tr[t]=new _r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tr[e]=new _r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tr[e]=new _r(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){tr[e]=new _r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tr[e]=new _r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tr[e]=new _r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tr[e]=new _r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tr[e]=new _r(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pv=/[\-:]([a-z])/g;function Dv(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(Pv,Dv);tr[t]=new _r(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(Pv,Dv);tr[t]=new _r(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(Pv,Dv);tr[t]=new _r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tr[e]=new _r(e,1,!1,e.toLowerCase(),null,!1,!1)});tr.xlinkHref=new _r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tr[e]=new _r(e,1,!1,e.toLowerCase(),null,!0,!0)});function Iv(e,t,r,n){var i=tr.hasOwnProperty(t)?tr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jF(t,r,i,n)&&(r=null),n||i===null?VF(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 mi=j3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nd=Symbol.for("react.element"),xa=Symbol.for("react.portal"),ba=Symbol.for("react.fragment"),Av=Symbol.for("react.strict_mode"),Ly=Symbol.for("react.profiler"),H3=Symbol.for("react.provider"),K3=Symbol.for("react.context"),Ov=Symbol.for("react.forward_ref"),Fy=Symbol.for("react.suspense"),$y=Symbol.for("react.suspense_list"),Rv=Symbol.for("react.memo"),Hi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var q3=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var $2=Symbol.iterator;function Zl(e){return e===null||typeof e!="object"?null:(e=$2&&e[$2]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,hy;function ac(e){if(hy===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);hy=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var IDKit=(()=>{var wk=Object.create;var Lu=Object.defineProperty,xk=Object.defineProperties,bk=Object.getOwnPropertyDescriptor,Ek=Object.getOwnPropertyDescriptors,_k=Object.getOwnPropertyNames,rd=Object.getOwnPropertySymbols,Sk=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable;var r_=(e,t,r)=>t in e?Lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))_g.call(t,r)&&r_(e,r,t[r]);if(rd)for(var r of rd(t))n_.call(t,r)&&r_(e,r,t[r]);return e},de=(e,t)=>xk(e,Ek(t));var i_=(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 ge=(e,t)=>{var r={};for(var n in e)_g.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rd)for(var n of rd(e))t.indexOf(n)<0&&n_.call(e,n)&&(r[n]=e[n]);return r};var ga=(e,t)=>()=>(e&&(t=e(e=0)),t);var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cr=(e,t)=>{for(var r in t)Lu(e,r,{get:t[r],enumerable:!0})},nd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _k(t))!_g.call(e,i)&&i!==r&&Lu(e,i,{get:()=>t[i],enumerable:!(n=bk(t,i))||n.enumerable});return e},jt=(e,t,r)=>(nd(e,t,"default"),r&&nd(r,t,"default")),Z=(e,t,r)=>(r=e!=null?wk(Sk(e)):{},nd(t||!e||!e.__esModule?Lu(r,"default",{value:e,enumerable:!0}):r,e)),o_=e=>nd(Lu({},"__esModule",{value:!0}),e);var Ck,S,c=ga(()=>{Ck="production",S={MODE:Ck}});function c_(){Cg=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)$n[t]=e[t],nn[e.charCodeAt(t)]=t;nn["-".charCodeAt(0)]=62,nn["_".charCodeAt(0)]=63}function Dk(e){Cg||c_();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 Tk(a*3/4-o),n=o>0?a-4:a;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)i=nn[e.charCodeAt(t)]<<18|nn[e.charCodeAt(t+1)]<<12|nn[e.charCodeAt(t+2)]<<6|nn[e.charCodeAt(t+3)],s[l++]=i>>16&255,s[l++]=i>>8&255,s[l++]=i&255;return o===2?(i=nn[e.charCodeAt(t)]<<2|nn[e.charCodeAt(t+1)]>>4,s[l++]=i&255):o===1&&(i=nn[e.charCodeAt(t)]<<10|nn[e.charCodeAt(t+1)]<<4|nn[e.charCodeAt(t+2)]>>2,s[l++]=i>>8&255,s[l++]=i&255),s}function Pk(e){return $n[e>>18&63]+$n[e>>12&63]+$n[e>>6&63]+$n[e&63]}function Ik(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(Pk(n));return i.join("")}function a_(e){Cg||c_();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,l=r-n;a<l;a+=s)o.push(Ik(e,a,a+s>l?l:a+s));return n===1?(t=e[r-1],i+=$n[t>>2],i+=$n[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=$n[t>>10],i+=$n[t>>4&63],i+=$n[t<<2&63],i+="="),o.push(i),o.join("")}function id(){return w.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function li(e,t){if(id()<t)throw new RangeError("Invalid typed array length");return w.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=w.prototype):(e===null&&(e=new w(t)),e.length=t),e}function w(e,t,r){if(!w.TYPED_ARRAY_SUPPORT&&!(this instanceof w))return new w(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 Tg(this,e)}return f_(this,e,t,r)}function f_(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?Ok(e,t,r,n):typeof t=="string"?Ak(e,t,r):Mk(e,t)}function d_(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 Rk(e,t,r,n){return d_(t),t<=0?li(e,t):r!==void 0?typeof n=="string"?li(e,t).fill(r,n):li(e,t).fill(r):li(e,t)}function Tg(e,t){if(d_(t),e=li(e,t<0?0:Dg(t)|0),!w.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Ak(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!w.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=h_(t,r)|0;e=li(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Sg(e,t){var r=t.length<0?0:Dg(t.length)|0;e=li(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function Ok(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),w.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=w.prototype):e=Sg(e,t),e}function Mk(e,t){if(Un(t)){var r=Dg(t.length)|0;return e=li(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"||Qk(t.length)?li(e,0):Sg(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Sg(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Dg(e){if(e>=id())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+id().toString(16)+" bytes");return e|0}function Un(e){return!!(e!=null&&e._isBuffer)}function h_(e,t){if(Un(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 od(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return x_(e).length;default:if(n)return od(e).length;t=(""+t).toLowerCase(),n=!0}}function Nk(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 Hk(this,t,r);case"utf8":case"utf-8":return g_(this,t,r);case"ascii":return jk(this,t,r);case"latin1":case"binary":return zk(this,t,r);case"base64":return Vk(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kk(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function us(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p_(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=w.from(t,n)),Un(t))return t.length===0?-1:l_(e,t,r,n,i);if(typeof t=="number")return t=t&255,w.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):l_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function l_(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 l(x,E){return o===1?x[E]:x.readUInt16BE(E*o)}var u;if(i){var h=-1;for(u=r;u<s;u++)if(l(e,u)===l(t,h===-1?0:u-h)){if(h===-1&&(h=u),u-h+1===a)return h*o}else h!==-1&&(u-=u-h),h=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){for(var m=!0,g=0;g<a;g++)if(l(e,u+g)!==l(t,g)){m=!1;break}if(m)return u}return-1}function kk(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 Lk(e,t,r,n){return ld(od(t,e.length-r),e,r,n)}function m_(e,t,r,n){return ld(Xk(t),e,r,n)}function Fk(e,t,r,n){return m_(e,t,r,n)}function $k(e,t,r,n){return ld(x_(t),e,r,n)}function Uk(e,t,r,n){return ld(Jk(t,e.length-r),e,r,n)}function Vk(e,t,r){return t===0&&r===e.length?a_(e):a_(e.slice(t,r))}function g_(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 l,u,h,m;switch(a){case 1:o<128&&(s=o);break;case 2:l=e[i+1],(l&192)===128&&(m=(o&31)<<6|l&63,m>127&&(s=m));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(m=(o&15)<<12|(l&63)<<6|u&63,m>2047&&(m<55296||m>57343)&&(s=m));break;case 4:l=e[i+1],u=e[i+2],h=e[i+3],(l&192)===128&&(u&192)===128&&(h&192)===128&&(m=(o&15)<<18|(l&63)<<12|(u&63)<<6|h&63,m>65535&&m<1114112&&(s=m))}}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 Bk(n)}function Bk(e){var t=e.length;if(t<=u_)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=u_));return r}function jk(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 zk(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 Hk(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+=Yk(e[o]);return i}function Kk(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 Yt(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 Or(e,t,r,n,i,o){if(!Un(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 ad(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 y_(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 v_(e,t,r,n,i){return i||y_(e,t,r,4,34028234663852886e22,-34028234663852886e22),E_(e,t,r,n,23,4),r+4}function w_(e,t,r,n,i){return i||y_(e,t,r,8,17976931348623157e292,-17976931348623157e292),E_(e,t,r,n,52,8),r+8}function Wk(e){if(e=Gk(e).replace(qk,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Gk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Yk(e){return e<16?"0"+e.toString(16):e.toString(16)}function od(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 Xk(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Jk(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 x_(e){return Dk(Wk(e))}function ld(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 Qk(e){return e!==e}function Zk(e){return e!=null&&(!!e._isBuffer||b_(e)||e7(e))}function b_(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function e7(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&b_(e.slice(0,0))}function ud(e,t,r,n,i){var o,s,a=i*8-n-1,l=(1<<a)-1,u=l>>1,h=-7,m=r?i-1:0,g=r?-1:1,x=e[t+m];for(m+=g,o=x&(1<<-h)-1,x>>=-h,h+=a;h>0;o=o*256+e[t+m],m+=g,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=s*256+e[t+m],m+=g,h-=8);if(o===0)o=1-u;else{if(o===l)return s?NaN:(x?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(x?-1:1)*s*Math.pow(2,o-n)}function E_(e,t,r,n,i,o){var s,a,l,u=o*8-i-1,h=(1<<u)-1,m=h>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:o-1,E=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=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+m>=1?t+=g/l:t+=g*Math.pow(2,1-m),t*l>=2&&(s++,l/=2),s+m>=h?(a=0,s=h):s+m>=1?(a=(t*l-1)*Math.pow(2,i),s=s+m):(a=t*Math.pow(2,m-1)*Math.pow(2,i),s=0));i>=8;e[r+x]=a&255,x+=E,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+x]=s&255,x+=E,s/=256,u-=8);e[r+x-E]|=_*128}var $n,nn,Tk,Cg,u_,qk,__=ga(()=>{c();d();f();$n=[],nn=[],Tk=typeof Uint8Array<"u"?Uint8Array:Array,Cg=!1;w.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;w.poolSize=8192;w._augment=function(e){return e.__proto__=w.prototype,e};w.from=function(e,t,r){return f_(null,e,t,r)};w.kMaxLength=id();w.TYPED_ARRAY_SUPPORT&&(w.prototype.__proto__=Uint8Array.prototype,w.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&w[Symbol.species]);w.alloc=function(e,t,r){return Rk(null,e,t,r)};w.allocUnsafe=function(e){return Tg(null,e)};w.allocUnsafeSlow=function(e){return Tg(null,e)};w.isBuffer=Zk;w.compare=function(t,r){if(!Un(t)||!Un(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};w.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}};w.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return w.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=w.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!Un(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};w.byteLength=h_;w.prototype._isBuffer=!0;w.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)us(this,r,r+1);return this};w.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)us(this,r,r+3),us(this,r+1,r+2);return this};w.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)us(this,r,r+7),us(this,r+1,r+6),us(this,r+2,r+5),us(this,r+3,r+4);return this};w.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?g_(this,0,t):Nk.apply(this,arguments)};w.prototype.equals=function(t){if(!Un(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:w.compare(this,t)===0};w.prototype.compare=function(t,r,n,i,o){if(!Un(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,l=Math.min(s,a),u=this.slice(i,o),h=t.slice(r,n),m=0;m<l;++m)if(u[m]!==h[m]){s=u[m],a=h[m];break}return s<a?-1:a<s?1:0};w.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};w.prototype.indexOf=function(t,r,n){return p_(this,t,r,n,!0)};w.prototype.lastIndexOf=function(t,r,n){return p_(this,t,r,n,!1)};w.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 kk(this,t,r,n);case"utf8":case"utf-8":return Lk(this,t,r,n);case"ascii":return m_(this,t,r,n);case"latin1":case"binary":return Fk(this,t,r,n);case"base64":return $k(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Uk(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};u_=4096;w.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(w.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=w.prototype;else{var o=r-t;i=new w(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};w.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Yt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return i};w.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Yt(t,r,this.length);for(var i=this[t+--r],o=1;r>0&&(o*=256);)i+=this[t+--r]*o;return i};w.prototype.readUInt8=function(t,r){return r||Yt(t,1,this.length),this[t]};w.prototype.readUInt16LE=function(t,r){return r||Yt(t,2,this.length),this[t]|this[t+1]<<8};w.prototype.readUInt16BE=function(t,r){return r||Yt(t,2,this.length),this[t]<<8|this[t+1]};w.prototype.readUInt32LE=function(t,r){return r||Yt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};w.prototype.readUInt32BE=function(t,r){return r||Yt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};w.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Yt(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};w.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Yt(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};w.prototype.readInt8=function(t,r){return r||Yt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};w.prototype.readInt16LE=function(t,r){r||Yt(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};w.prototype.readInt16BE=function(t,r){r||Yt(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};w.prototype.readInt32LE=function(t,r){return r||Yt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};w.prototype.readInt32BE=function(t,r){return r||Yt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};w.prototype.readFloatLE=function(t,r){return r||Yt(t,4,this.length),ud(this,t,!0,23,4)};w.prototype.readFloatBE=function(t,r){return r||Yt(t,4,this.length),ud(this,t,!1,23,4)};w.prototype.readDoubleLE=function(t,r){return r||Yt(t,8,this.length),ud(this,t,!0,52,8)};w.prototype.readDoubleBE=function(t,r){return r||Yt(t,8,this.length),ud(this,t,!1,52,8)};w.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;Or(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};w.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;Or(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};w.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,1,255,0),w.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};w.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,2,65535,0),w.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):sd(this,t,r,!0),r+2};w.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,2,65535,0),w.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):sd(this,t,r,!1),r+2};w.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,4,4294967295,0),w.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):ad(this,t,r,!0),r+4};w.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,4,4294967295,0),w.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):ad(this,t,r,!1),r+4};w.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Or(this,t,r,n,o-1,-o)}var s=0,a=1,l=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&l===0&&this[r+s-1]!==0&&(l=1),this[r+s]=(t/a>>0)-l&255;return r+n};w.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Or(this,t,r,n,o-1,-o)}var s=n-1,a=1,l=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&l===0&&this[r+s+1]!==0&&(l=1),this[r+s]=(t/a>>0)-l&255;return r+n};w.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,1,127,-128),w.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};w.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,2,32767,-32768),w.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):sd(this,t,r,!0),r+2};w.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,2,32767,-32768),w.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):sd(this,t,r,!1),r+2};w.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,4,2147483647,-2147483648),w.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):ad(this,t,r,!0),r+4};w.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Or(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),w.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):ad(this,t,r,!1),r+4};w.prototype.writeFloatLE=function(t,r,n){return v_(this,t,r,!0,n)};w.prototype.writeFloatBE=function(t,r,n){return v_(this,t,r,!1,n)};w.prototype.writeDoubleLE=function(t,r,n){return w_(this,t,r,!0,n)};w.prototype.writeDoubleBE=function(t,r,n){return w_(this,t,r,!1,n)};w.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||!w.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};w.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"&&!w.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=Un(t)?t:od(new w(t,i).toString()),l=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%l]}return this};qk=/[^+\/0-9A-Za-z-_]/g});var f=ga(()=>{__()});var N_=te(xe=>{"use strict";c();d();f();var Fu=Symbol.for("react.element"),t7=Symbol.for("react.portal"),r7=Symbol.for("react.fragment"),n7=Symbol.for("react.strict_mode"),i7=Symbol.for("react.profiler"),o7=Symbol.for("react.provider"),s7=Symbol.for("react.context"),a7=Symbol.for("react.forward_ref"),l7=Symbol.for("react.suspense"),u7=Symbol.for("react.memo"),c7=Symbol.for("react.lazy"),S_=Symbol.iterator;function f7(e){return e===null||typeof e!="object"?null:(e=S_&&e[S_]||e["@@iterator"],typeof e=="function"?e:null)}var D_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P_=Object.assign,I_={};function ya(e,t,r){this.props=e,this.context=t,this.refs=I_,this.updater=r||D_}ya.prototype.isReactComponent={};ya.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")};ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function R_(){}R_.prototype=ya.prototype;function Ig(e,t,r){this.props=e,this.context=t,this.refs=I_,this.updater=r||D_}var Rg=Ig.prototype=new R_;Rg.constructor=Ig;P_(Rg,ya.prototype);Rg.isPureReactComponent=!0;var C_=Array.isArray,A_=Object.prototype.hasOwnProperty,Ag={current:null},O_={key:!0,ref:!0,__self:!0,__source:!0};function M_(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)A_.call(t,n)&&!O_.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Fu,type:e,key:o,ref:s,props:i,_owner:Ag.current}}function d7(e,t){return{$$typeof:Fu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Og(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fu}function h7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var T_=/\/+/g;function Pg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?h7(""+e.key):t.toString(36)}function fd(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 Fu:case t7:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+Pg(s,0):n,C_(i)?(r="",e!=null&&(r=e.replace(T_,"$&/")+"/"),fd(i,t,r,"",function(u){return u})):i!=null&&(Og(i)&&(i=d7(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(T_,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",C_(e))for(var a=0;a<e.length;a++){o=e[a];var l=n+Pg(o,a);s+=fd(o,t,r,l,i)}else if(l=f7(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=n+Pg(o,a++),s+=fd(o,t,r,l,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 cd(e,t,r){if(e==null)return e;var n=[],i=0;return fd(e,n,"","",function(o){return t.call(r,o,i++)}),n}function p7(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 Sr={current:null},dd={transition:null},m7={ReactCurrentDispatcher:Sr,ReactCurrentBatchConfig:dd,ReactCurrentOwner:Ag};xe.Children={map:cd,forEach:function(e,t,r){cd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return cd(e,function(){t++}),t},toArray:function(e){return cd(e,function(t){return t})||[]},only:function(e){if(!Og(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=ya;xe.Fragment=r7;xe.Profiler=i7;xe.PureComponent=Ig;xe.StrictMode=n7;xe.Suspense=l7;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m7;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=P_({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ag.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)A_.call(t,l)&&!O_.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:Fu,type:e.type,key:i,ref:o,props:n,_owner:s}};xe.createContext=function(e){return e={$$typeof:s7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o7,_context:e},e.Consumer=e};xe.createElement=M_;xe.createFactory=function(e){var t=M_.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:a7,render:e}};xe.isValidElement=Og;xe.lazy=function(e){return{$$typeof:c7,_payload:{_status:-1,_result:e},_init:p7}};xe.memo=function(e,t){return{$$typeof:u7,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=dd.transition;dd.transition={};try{e()}finally{dd.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return Sr.current.useCallback(e,t)};xe.useContext=function(e){return Sr.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return Sr.current.useDeferredValue(e)};xe.useEffect=function(e,t){return Sr.current.useEffect(e,t)};xe.useId=function(){return Sr.current.useId()};xe.useImperativeHandle=function(e,t,r){return Sr.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return Sr.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return Sr.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return Sr.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return Sr.current.useReducer(e,t,r)};xe.useRef=function(e){return Sr.current.useRef(e)};xe.useState=function(e){return Sr.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return Sr.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return Sr.current.useTransition()};xe.version="18.2.0"});var ae=te((cQ,k_)=>{"use strict";c();d();f();k_.exports=N_()});var y,d=ga(()=>{y=Z(ae(),1)});var U_=te($_=>{"use strict";c();d();f();var va=ae();function g7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var y7=typeof Object.is=="function"?Object.is:g7,v7=va.useState,w7=va.useEffect,x7=va.useLayoutEffect,b7=va.useDebugValue;function E7(e,t){var r=t(),n=v7({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return x7(function(){i.value=r,i.getSnapshot=t,Mg(i)&&o({inst:i})},[e,r,t]),w7(function(){return Mg(i)&&o({inst:i}),e(function(){Mg(i)&&o({inst:i})})},[e]),b7(r),r}function Mg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!y7(e,r)}catch(n){return!0}}function _7(e,t){return t()}var S7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_7:E7;$_.useSyncExternalStore=va.useSyncExternalStore!==void 0?va.useSyncExternalStore:S7});var B_=te((pQ,V_)=>{"use strict";c();d();f();V_.exports=U_()});var z_=te(j_=>{"use strict";c();d();f();var hd=ae(),C7=B_();function T7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var D7=typeof Object.is=="function"?Object.is:T7,P7=C7.useSyncExternalStore,I7=hd.useRef,R7=hd.useEffect,A7=hd.useMemo,O7=hd.useDebugValue;j_.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=I7(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=A7(function(){function l(x){if(!u){if(u=!0,h=x,x=n(x),i!==void 0&&s.hasValue){var E=s.value;if(i(E,x))return m=E}return m=x}if(E=m,D7(h,x))return E;var _=n(x);return i!==void 0&&i(E,_)?E:(h=x,m=_)}var u=!1,h,m,g=r===void 0?null:r;return[function(){return l(t())},g===null?void 0:function(){return l(g())}]},[t,r,n,i]);var a=P7(e,o[0],o[1]);return R7(function(){s.hasValue=!0,s.value=a},[a]),O7(a),a}});var K_=te((gQ,H_)=>{"use strict";c();d();f();H_.exports=z_()});var w2=te(Ne=>{"use strict";c();d();f();function Ug(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<yd(i,t))e[n]=t,e[r]=i,r=n;else break e}}function Sn(e){return e.length===0?null:e[0]}function wd(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],l=s+1,u=e[l];if(0>yd(a,r))l<i&&0>yd(u,a)?(e[n]=u,e[l]=r,n=l):(e[n]=a,e[s]=r,n=s);else if(l<i&&0>yd(u,r))e[n]=u,e[l]=r,n=l;else break e}}return t}function yd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(c2=performance,Ne.unstable_now=function(){return c2.now()}):(Lg=Date,f2=Lg.now(),Ne.unstable_now=function(){return Lg.now()-f2});var c2,Lg,f2,Vn=[],Qi=[],Q7=1,on=null,fr=3,xd=!1,ds=!1,zu=!1,p2=typeof setTimeout=="function"?setTimeout:null,m2=typeof clearTimeout=="function"?clearTimeout:null,d2=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Vg(e){for(var t=Sn(Qi);t!==null;){if(t.callback===null)wd(Qi);else if(t.startTime<=e)wd(Qi),t.sortIndex=t.expirationTime,Ug(Vn,t);else break;t=Sn(Qi)}}function Bg(e){if(zu=!1,Vg(e),!ds)if(Sn(Vn)!==null)ds=!0,zg(jg);else{var t=Sn(Qi);t!==null&&Hg(Bg,t.startTime-e)}}function jg(e,t){ds=!1,zu&&(zu=!1,m2(Hu),Hu=-1),xd=!0;var r=fr;try{for(Vg(t),on=Sn(Vn);on!==null&&(!(on.expirationTime>t)||e&&!v2());){var n=on.callback;if(typeof n=="function"){on.callback=null,fr=on.priorityLevel;var i=n(on.expirationTime<=t);t=Ne.unstable_now(),typeof i=="function"?on.callback=i:on===Sn(Vn)&&wd(Vn),Vg(t)}else wd(Vn);on=Sn(Vn)}if(on!==null)var o=!0;else{var s=Sn(Qi);s!==null&&Hg(Bg,s.startTime-t),o=!1}return o}finally{on=null,fr=r,xd=!1}}var bd=!1,vd=null,Hu=-1,g2=5,y2=-1;function v2(){return!(Ne.unstable_now()-y2<g2)}function Fg(){if(vd!==null){var e=Ne.unstable_now();y2=e;var t=!0;try{t=vd(!0,e)}finally{t?ju():(bd=!1,vd=null)}}else bd=!1}var ju;typeof d2=="function"?ju=function(){d2(Fg)}:typeof MessageChannel<"u"?($g=new MessageChannel,h2=$g.port2,$g.port1.onmessage=Fg,ju=function(){h2.postMessage(null)}):ju=function(){p2(Fg,0)};var $g,h2;function zg(e){vd=e,bd||(bd=!0,ju())}function Hg(e,t){Hu=p2(function(){e(Ne.unstable_now())},t)}Ne.unstable_IdlePriority=5;Ne.unstable_ImmediatePriority=1;Ne.unstable_LowPriority=4;Ne.unstable_NormalPriority=3;Ne.unstable_Profiling=null;Ne.unstable_UserBlockingPriority=2;Ne.unstable_cancelCallback=function(e){e.callback=null};Ne.unstable_continueExecution=function(){ds||xd||(ds=!0,zg(jg))};Ne.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"):g2=0<e?Math.floor(1e3/e):5};Ne.unstable_getCurrentPriorityLevel=function(){return fr};Ne.unstable_getFirstCallbackNode=function(){return Sn(Vn)};Ne.unstable_next=function(e){switch(fr){case 1:case 2:case 3:var t=3;break;default:t=fr}var r=fr;fr=t;try{return e()}finally{fr=r}};Ne.unstable_pauseExecution=function(){};Ne.unstable_requestPaint=function(){};Ne.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=fr;fr=e;try{return t()}finally{fr=r}};Ne.unstable_scheduleCallback=function(e,t,r){var n=Ne.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:Q7++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,Ug(Qi,e),Sn(Vn)===null&&e===Sn(Qi)&&(zu?(m2(Hu),Hu=-1):zu=!0,Hg(Bg,r-n))):(e.sortIndex=i,Ug(Vn,e),ds||xd||(ds=!0,zg(jg))),e};Ne.unstable_shouldYield=v2;Ne.unstable_wrapCallback=function(e){var t=fr;return function(){var r=fr;fr=t;try{return e.apply(this,arguments)}finally{fr=r}}}});var b2=te((OQ,x2)=>{"use strict";c();d();f();x2.exports=w2()});var D6=te(Xr=>{"use strict";c();d();f();var P3=ae(),Gr=b2();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 I3=new Set,dc={};function Cs(e,t){Va(e,t),Va(e+"Capture",t)}function Va(e,t){for(dc[e]=t,e=0;e<t.length;e++)I3.add(t[e])}var pi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hy=Object.prototype.hasOwnProperty,Z7=/^[: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]*$/,E2={},_2={};function eL(e){return hy.call(_2,e)?!0:hy.call(E2,e)?!1:Z7.test(e)?_2[e]=!0:(E2[e]=!0,!1)}function tL(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 rL(e,t,r,n){if(t===null||typeof t>"u"||tL(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 Dr(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 Dr(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 Dr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){or[e]=new Dr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){or[e]=new Dr(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 Dr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){or[e]=new Dr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){or[e]=new Dr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){or[e]=new Dr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){or[e]=new Dr(e,5,!1,e.toLowerCase(),null,!1,!1)});var ov=/[\-:]([a-z])/g;function sv(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(ov,sv);or[t]=new Dr(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(ov,sv);or[t]=new Dr(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(ov,sv);or[t]=new Dr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){or[e]=new Dr(e,1,!1,e.toLowerCase(),null,!1,!1)});or.xlinkHref=new Dr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){or[e]=new Dr(e,1,!1,e.toLowerCase(),null,!0,!0)});function av(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")&&(rL(t,r,i,n)&&(r=null),n||i===null?eL(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 vi=P3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ed=Symbol.for("react.element"),Ea=Symbol.for("react.portal"),_a=Symbol.for("react.fragment"),lv=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),R3=Symbol.for("react.provider"),A3=Symbol.for("react.context"),uv=Symbol.for("react.forward_ref"),my=Symbol.for("react.suspense"),gy=Symbol.for("react.suspense_list"),cv=Symbol.for("react.memo"),eo=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var O3=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var S2=Symbol.iterator;function Ku(e){return e===null||typeof e!="object"?null:(e=S2&&e[S2]||e["@@iterator"],typeof e=="function"?e:null)}var Tt=Object.assign,Kg;function Zu(e){if(Kg===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Kg=t&&t[1]||""}return`
|
|
2
|
+
`+Kg+e}var qg=!1;function Wg(e,t){if(!e||qg)return"";qg=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
3
3
|
`),o=n.stack.split(`
|
|
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
|
|
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{py=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ac(e):""}function zF(e){switch(e.tag){case 5:return ac(e.type);case 16:return ac("Lazy");case 13:return ac("Suspense");case 19:return ac("SuspenseList");case 0:case 2:case 15:return e=my(e.type,!1),e;case 11:return e=my(e.type.render,!1),e;case 1:return e=my(e.type,!0),e;default:return""}}function Uy(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 ba:return"Fragment";case xa:return"Portal";case Ly:return"Profiler";case Av:return"StrictMode";case Fy:return"Suspense";case $y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K3:return(e.displayName||"Context")+".Consumer";case H3:return(e._context.displayName||"Context")+".Provider";case Ov:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rv:return t=e.displayName||null,t!==null?t:Uy(e.type)||"Memo";case Hi:t=e._payload,e=e._init;try{return Uy(e(t))}catch(r){}}return null}function HF(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 Uy(t);case 8:return t===Av?"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 io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function W3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function KF(e){var t=W3(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 Md(e){e._valueTracker||(e._valueTracker=KF(e))}function G3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=W3(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function uh(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 Vy(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 U2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=io(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 Y3(e,t){t=t.checked,t!=null&&Iv(e,"checked",t,!1)}function By(e,t){Y3(e,t);var r=io(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")?jy(e,t.type,r):t.hasOwnProperty("defaultValue")&&jy(e,t.type,io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function V2(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 jy(e,t,r){(t!=="number"||uh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var uc=Array.isArray;function Ra(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=""+io(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 zy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function B2(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(uc(r)){if(1<r.length)throw Error(oe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:io(r)}}function X3(e,t){var r=io(t.value),n=io(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 j2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function J3(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 Hy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?J3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kd,Q3=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(kd=kd||document.createElement("div"),kd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fc={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},qF=["Webkit","ms","Moz","O"];Object.keys(fc).forEach(function(e){qF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fc[t]=fc[e]})});function Z3(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fc.hasOwnProperty(e)&&fc[e]?(""+t).trim():t+"px"}function eS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Z3(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var WF=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 Ky(e,t){if(t){if(WF[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 qy(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 Wy=null;function Nv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gy=null,Na=null,Ma=null;function z2(e){if(e=Uc(e)){if(typeof Gy!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Lh(t),Gy(e.stateNode,e.type,t))}}function tS(e){Na?Ma?Ma.push(e):Ma=[e]:Na=e}function rS(){if(Na){var e=Na,t=Ma;if(Ma=Na=null,z2(e),t)for(e=0;e<t.length;e++)z2(t[e])}}function nS(e,t){return e(t)}function iS(){}var gy=!1;function oS(e,t,r){if(gy)return e(t,r);gy=!0;try{return nS(e,t,r)}finally{gy=!1,(Na!==null||Ma!==null)&&(iS(),rS())}}function Ec(e,t){var r=e.stateNode;if(r===null)return null;var n=Lh(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 Yy=!1;if(fi)try{va={},Object.defineProperty(va,"passive",{get:function(){Yy=!0}}),window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch(e){Yy=!1}var va;function GF(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 dc=!1,lh=null,ch=!1,Xy=null,YF={onError:function(e){dc=!0,lh=e}};function XF(e,t,r,n,i,o,s,a,u){dc=!1,lh=null,GF.apply(YF,arguments)}function JF(e,t,r,n,i,o,s,a,u){if(XF.apply(this,arguments),dc){if(dc){var l=lh;dc=!1,lh=null}else throw Error(oe(198));ch||(ch=!0,Xy=l)}}function _s(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 sS(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 H2(e){if(_s(e)!==e)throw Error(oe(188))}function QF(e){var t=e.alternate;if(!t){if(t=_s(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 H2(i),e;if(o===n)return H2(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 aS(e){return e=QF(e),e!==null?uS(e):null}function uS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uS(e);if(t!==null)return t;e=e.sibling}return null}var lS=Wr.unstable_scheduleCallback,K2=Wr.unstable_cancelCallback,ZF=Wr.unstable_shouldYield,e$=Wr.unstable_requestPaint,kt=Wr.unstable_now,t$=Wr.unstable_getCurrentPriorityLevel,Mv=Wr.unstable_ImmediatePriority,cS=Wr.unstable_UserBlockingPriority,fh=Wr.unstable_NormalPriority,r$=Wr.unstable_LowPriority,fS=Wr.unstable_IdlePriority,Rh=null,Kn=null;function n$(e){if(Kn&&typeof Kn.onCommitFiberRoot=="function")try{Kn.onCommitFiberRoot(Rh,e,void 0,(e.current.flags&128)===128)}catch(t){}}var An=Math.clz32?Math.clz32:s$,i$=Math.log,o$=Math.LN2;function s$(e){return e>>>=0,e===0?32:31-(i$(e)/o$|0)|0}var Ld=64,Fd=4194304;function lc(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 dh(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=lc(a):(o&=s,o!==0&&(n=lc(o)))}else s=r&~i,s!==0?n=lc(s):o!==0&&(n=lc(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-An(t),i=1<<r,n|=e[r],t&=~i;return n}function a$(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 u$(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-An(o),a=1<<s,u=i[s];u===-1?((a&r)===0||(a&n)!==0)&&(i[s]=a$(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Jy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dS(){var e=Ld;return Ld<<=1,(Ld&4194240)===0&&(Ld=64),e}function yy(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Fc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-An(t),e[t]=r}function l$(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-An(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function kv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-An(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Ae=0;function hS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var pS,Lv,mS,gS,yS,Qy=!1,$d=[],Xi=null,Ji=null,Qi=null,_c=new Map,Sc=new Map,qi=[],c$="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 q2(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":_c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(t.pointerId)}}function ec(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=Uc(t),t!==null&&Lv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function f$(e,t,r,n,i){switch(t){case"focusin":return Xi=ec(Xi,e,t,r,n,i),!0;case"dragenter":return Ji=ec(Ji,e,t,r,n,i),!0;case"mouseover":return Qi=ec(Qi,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return _c.set(o,ec(_c.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Sc.set(o,ec(Sc.get(o)||null,e,t,r,n,i)),!0}return!1}function vS(e){var t=ds(e.target);if(t!==null){var r=_s(t);if(r!==null){if(t=r.tag,t===13){if(t=sS(r),t!==null){e.blockedOn=t,yS(e.priority,function(){mS(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 Qd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Zy(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Wy=n,r.target.dispatchEvent(n),Wy=null}else return t=Uc(r),t!==null&&Lv(t),e.blockedOn=r,!1;t.shift()}return!0}function W2(e,t,r){Qd(e)&&r.delete(t)}function d$(){Qy=!1,Xi!==null&&Qd(Xi)&&(Xi=null),Ji!==null&&Qd(Ji)&&(Ji=null),Qi!==null&&Qd(Qi)&&(Qi=null),_c.forEach(W2),Sc.forEach(W2)}function tc(e,t){e.blockedOn===t&&(e.blockedOn=null,Qy||(Qy=!0,Wr.unstable_scheduleCallback(Wr.unstable_NormalPriority,d$)))}function Cc(e){function t(i){return tc(i,e)}if(0<$d.length){tc($d[0],e);for(var r=1;r<$d.length;r++){var n=$d[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xi!==null&&tc(Xi,e),Ji!==null&&tc(Ji,e),Qi!==null&&tc(Qi,e),_c.forEach(t),Sc.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);)vS(r),r.blockedOn===null&&qi.shift()}var ka=mi.ReactCurrentBatchConfig,hh=!0;function h$(e,t,r,n){var i=Ae,o=ka.transition;ka.transition=null;try{Ae=1,Fv(e,t,r,n)}finally{Ae=i,ka.transition=o}}function p$(e,t,r,n){var i=Ae,o=ka.transition;ka.transition=null;try{Ae=4,Fv(e,t,r,n)}finally{Ae=i,ka.transition=o}}function Fv(e,t,r,n){if(hh){var i=Zy(e,t,r,n);if(i===null)Sy(e,t,n,ph,r),q2(e,n);else if(f$(i,e,t,r,n))n.stopPropagation();else if(q2(e,n),t&4&&-1<c$.indexOf(e)){for(;i!==null;){var o=Uc(i);if(o!==null&&pS(o),o=Zy(e,t,r,n),o===null&&Sy(e,t,n,ph,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Sy(e,t,n,null,r)}}var ph=null;function Zy(e,t,r,n){if(ph=null,e=Nv(n),e=ds(e),e!==null)if(t=_s(e),t===null)e=null;else if(r=t.tag,r===13){if(e=sS(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 ph=e,null}function wS(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(t$()){case Mv:return 1;case cS:return 4;case fh:case r$:return 16;case fS:return 536870912;default:return 16}default:return 16}}var Gi=null,$v=null,Zd=null;function xS(){if(Zd)return Zd;var e,t=$v,r=t.length,n,i="value"in Gi?Gi.value:Gi.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 Zd=i.slice(e,1<n?1-n:void 0)}function eh(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 Ud(){return!0}function G2(){return!1}function Gr(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)?Ud:G2,this.isPropagationStopped=G2,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=Ud)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ud)},persist:function(){},isPersistent:Ud}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uv=Gr(Ka),$c=Dt({},Ka,{view:0,detail:0}),m$=Gr($c),vy,wy,rc,Nh=Dt({},$c,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vv,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!==rc&&(rc&&e.type==="mousemove"?(vy=e.screenX-rc.screenX,wy=e.screenY-rc.screenY):wy=vy=0,rc=e),vy)},movementY:function(e){return"movementY"in e?e.movementY:wy}}),Y2=Gr(Nh),g$=Dt({},Nh,{dataTransfer:0}),y$=Gr(g$),v$=Dt({},$c,{relatedTarget:0}),xy=Gr(v$),w$=Dt({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),x$=Gr(w$),b$=Dt({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),E$=Gr(b$),_$=Dt({},Ka,{data:0}),X2=Gr(_$),S$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C$={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"},T$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function P$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=T$[e])?!!t[e]:!1}function Vv(){return P$}var D$=Dt({},$c,{key:function(e){if(e.key){var t=S$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vv,charCode:function(e){return e.type==="keypress"?eh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I$=Gr(D$),A$=Dt({},Nh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J2=Gr(A$),O$=Dt({},$c,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vv}),R$=Gr(O$),N$=Dt({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),M$=Gr(N$),k$=Dt({},Nh,{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}),L$=Gr(k$),F$=[9,13,27,32],Bv=fi&&"CompositionEvent"in window,hc=null;fi&&"documentMode"in document&&(hc=document.documentMode);var $$=fi&&"TextEvent"in window&&!hc,bS=fi&&(!Bv||hc&&8<hc&&11>=hc),Q2=String.fromCharCode(32),Z2=!1;function ES(e,t){switch(e){case"keyup":return F$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _S(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ea=!1;function U$(e,t){switch(e){case"compositionend":return _S(t);case"keypress":return t.which!==32?null:(Z2=!0,Q2);case"textInput":return e=t.data,e===Q2&&Z2?null:e;default:return null}}function V$(e,t){if(Ea)return e==="compositionend"||!Bv&&ES(e,t)?(e=xS(),Zd=$v=Gi=null,Ea=!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 bS&&t.locale!=="ko"?null:t.data;default:return null}}var B$={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 e3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B$[e.type]:t==="textarea"}function SS(e,t,r,n){tS(n),t=mh(t,"onChange"),0<t.length&&(r=new Uv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var pc=null,Tc=null;function j$(e){kS(e,0)}function Mh(e){var t=Ca(e);if(G3(t))return e}function z$(e,t){if(e==="change")return t}var CS=!1;fi&&(fi?(Bd="oninput"in document,Bd||(by=document.createElement("div"),by.setAttribute("oninput","return;"),Bd=typeof by.oninput=="function"),Vd=Bd):Vd=!1,CS=Vd&&(!document.documentMode||9<document.documentMode));var Vd,Bd,by;function t3(){pc&&(pc.detachEvent("onpropertychange",TS),Tc=pc=null)}function TS(e){if(e.propertyName==="value"&&Mh(Tc)){var t=[];SS(t,Tc,e,Nv(e)),oS(j$,t)}}function H$(e,t,r){e==="focusin"?(t3(),pc=t,Tc=r,pc.attachEvent("onpropertychange",TS)):e==="focusout"&&t3()}function K$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mh(Tc)}function q$(e,t){if(e==="click")return Mh(t)}function W$(e,t){if(e==="input"||e==="change")return Mh(t)}function G$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:G$;function Pc(e,t){if(Rn(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(!ky.call(t,i)||!Rn(e[i],t[i]))return!1}return!0}function r3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function n3(e,t){var r=r3(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=r3(r)}}function PS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?PS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function DS(){for(var e=window,t=uh();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=uh(e.document)}return t}function jv(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 Y$(e){var t=DS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&PS(r.ownerDocument.documentElement,r)){if(n!==null&&jv(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=n3(r,o);var s=n3(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 X$=fi&&"documentMode"in document&&11>=document.documentMode,_a=null,ev=null,mc=null,tv=!1;function i3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tv||_a==null||_a!==uh(n)||(n=_a,"selectionStart"in n&&jv(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}),mc&&Pc(mc,n)||(mc=n,n=mh(ev,"onSelect"),0<n.length&&(t=new Uv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=_a)))}function jd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sa={animationend:jd("Animation","AnimationEnd"),animationiteration:jd("Animation","AnimationIteration"),animationstart:jd("Animation","AnimationStart"),transitionend:jd("Transition","TransitionEnd")},Ey={},IS={};fi&&(IS=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function kh(e){if(Ey[e])return Ey[e];if(!Sa[e])return e;var t=Sa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in IS)return Ey[e]=t[r];return e}var AS=kh("animationend"),OS=kh("animationiteration"),RS=kh("animationstart"),NS=kh("transitionend"),MS=new Map,o3="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 so(e,t){MS.set(e,t),Es(t,[e])}for(zd=0;zd<o3.length;zd++)Hd=o3[zd],s3=Hd.toLowerCase(),a3=Hd[0].toUpperCase()+Hd.slice(1),so(s3,"on"+a3);var Hd,s3,a3,zd;so(AS,"onAnimationEnd");so(OS,"onAnimationIteration");so(RS,"onAnimationStart");so("dblclick","onDoubleClick");so("focusin","onFocus");so("focusout","onBlur");so(NS,"onTransitionEnd");$a("onMouseEnter",["mouseout","mouseover"]);$a("onMouseLeave",["mouseout","mouseover"]);$a("onPointerEnter",["pointerout","pointerover"]);$a("onPointerLeave",["pointerout","pointerover"]);Es("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Es("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Es("onBeforeInput",["compositionend","keypress","textInput","paste"]);Es("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="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(" "),J$=new Set("cancel close invalid load scroll toggle".split(" ").concat(cc));function u3(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,JF(n,t,void 0,e),e.currentTarget=null}function kS(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;u3(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;u3(i,a,l),o=u}}}if(ch)throw e=Xy,ch=!1,Xy=null,e}function wt(e,t){var r=t[sv];r===void 0&&(r=t[sv]=new Set);var n=e+"__bubble";r.has(n)||(LS(t,e,2,!1),r.add(n))}function _y(e,t,r){var n=0;t&&(n|=4),LS(r,e,n,t)}var Kd="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[Kd]){e[Kd]=!0,z3.forEach(function(r){r!=="selectionchange"&&(J$.has(r)||_y(r,!1,e),_y(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kd]||(t[Kd]=!0,_y("selectionchange",!1,t))}}function LS(e,t,r,n){switch(wS(t)){case 1:var i=h$;break;case 4:i=p$;break;default:i=Fv}r=i.bind(null,t,r,e),i=void 0,!Yy||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 Sy(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=ds(a),s===null)return;if(u=s.tag,u===5||u===6){n=o=s;continue e}a=a.parentNode}}n=n.return}oS(function(){var l=o,p=Nv(r),h=[];e:{var g=MS.get(e);if(g!==void 0){var w=Uv,v=e;switch(e){case"keypress":if(eh(r)===0)break e;case"keydown":case"keyup":w=I$;break;case"focusin":v="focus",w=xy;break;case"focusout":v="blur",w=xy;break;case"beforeblur":case"afterblur":w=xy;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":w=Y2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=y$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=R$;break;case AS:case OS:case RS:w=x$;break;case NS:w=M$;break;case"scroll":w=m$;break;case"wheel":w=L$;break;case"copy":case"cut":case"paste":w=E$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=J2}var _=(t&4)!==0,D=!_&&e==="scroll",C=_?g!==null?g+"Capture":null:g;_=[];for(var I=l,P;I!==null;){P=I;var R=P.stateNode;if(P.tag===5&&R!==null&&(P=R,C!==null&&(R=Ec(I,C),R!=null&&_.push(Ic(I,R,P)))),D)break;I=I.return}0<_.length&&(g=new w(g,v,null,r,p),h.push({event:g,listeners:_}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",g&&r!==Wy&&(v=r.relatedTarget||r.fromElement)&&(ds(v)||v[di]))break e;if((w||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,w?(v=r.relatedTarget||r.toElement,w=l,v=v?ds(v):null,v!==null&&(D=_s(v),v!==D||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=l),w!==v)){if(_=Y2,R="onMouseLeave",C="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(_=J2,R="onPointerLeave",C="onPointerEnter",I="pointer"),D=w==null?g:Ca(w),P=v==null?g:Ca(v),g=new _(R,I+"leave",w,r,p),g.target=D,g.relatedTarget=P,R=null,ds(p)===l&&(_=new _(C,I+"enter",v,r,p),_.target=P,_.relatedTarget=D,R=_),D=R,w&&v)t:{for(_=w,C=v,I=0,P=_;P;P=wa(P))I++;for(P=0,R=C;R;R=wa(R))P++;for(;0<I-P;)_=wa(_),I--;for(;0<P-I;)C=wa(C),P--;for(;I--;){if(_===C||C!==null&&_===C.alternate)break t;_=wa(_),C=wa(C)}_=null}else _=null;w!==null&&l3(h,g,w,_,!1),v!==null&&D!==null&&l3(h,D,v,_,!0)}}e:{if(g=l?Ca(l):window,w=g.nodeName&&g.nodeName.toLowerCase(),w==="select"||w==="input"&&g.type==="file")var U=z$;else if(e3(g))if(CS)U=W$;else{U=K$;var j=H$}else(w=g.nodeName)&&w.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(U=q$);if(U&&(U=U(e,l))){SS(h,U,r,p);break e}j&&j(e,g,l),e==="focusout"&&(j=g._wrapperState)&&j.controlled&&g.type==="number"&&jy(g,"number",g.value)}switch(j=l?Ca(l):window,e){case"focusin":(e3(j)||j.contentEditable==="true")&&(_a=j,ev=l,mc=null);break;case"focusout":mc=ev=_a=null;break;case"mousedown":tv=!0;break;case"contextmenu":case"mouseup":case"dragend":tv=!1,i3(h,r,p);break;case"selectionchange":if(X$)break;case"keydown":case"keyup":i3(h,r,p)}var F;if(Bv)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Ea?ES(e,r)&&($="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&($="onCompositionStart");$&&(bS&&r.locale!=="ko"&&(Ea||$!=="onCompositionStart"?$==="onCompositionEnd"&&Ea&&(F=xS()):(Gi=p,$v="value"in Gi?Gi.value:Gi.textContent,Ea=!0)),j=mh(l,$),0<j.length&&($=new X2($,e,null,r,p),h.push({event:$,listeners:j}),F?$.data=F:(F=_S(r),F!==null&&($.data=F)))),(F=$$?U$(e,r):V$(e,r))&&(l=mh(l,"onBeforeInput"),0<l.length&&(p=new X2("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=F))}kS(h,t)})}function Ic(e,t,r){return{instance:e,listener:t,currentTarget:r}}function mh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ec(e,r),o!=null&&n.unshift(Ic(e,o,i)),o=Ec(e,t),o!=null&&n.push(Ic(e,o,i))),e=e.return}return n}function wa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function l3(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=Ec(r,o),u!=null&&s.unshift(Ic(r,u,a))):i||(u=Ec(r,o),u!=null&&s.push(Ic(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var Q$=/\r\n?/g,Z$=/\u0000|\uFFFD/g;function c3(e){return(typeof e=="string"?e:""+e).replace(Q$,`
|
|
6
|
-
`).replace(Z$,"")}function qd(e,t,r){if(t=c3(t),c3(e)!==t&&r)throw Error(oe(425))}function gh(){}var rv=null,nv=null;function iv(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 ov=typeof setTimeout=="function"?setTimeout:void 0,eU=typeof clearTimeout=="function"?clearTimeout:void 0,f3=typeof Promise=="function"?Promise:void 0,tU=typeof queueMicrotask=="function"?queueMicrotask:typeof f3<"u"?function(e){return f3.resolve(null).then(e).catch(rU)}:ov;function rU(e){setTimeout(function(){throw e})}function Cy(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),Cc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Cc(t)}function Zi(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 d3(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 qa=Math.random().toString(36).slice(2),Hn="__reactFiber$"+qa,Ac="__reactProps$"+qa,di="__reactContainer$"+qa,sv="__reactEvents$"+qa,nU="__reactListeners$"+qa,iU="__reactHandles$"+qa;function ds(e){var t=e[Hn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[di]||r[Hn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=d3(e);e!==null;){if(r=e[Hn])return r;e=d3(e)}return t}e=r,r=e.parentNode}return null}function Uc(e){return e=e[Hn]||e[di],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ca(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function Lh(e){return e[Ac]||null}var av=[],Ta=-1;function ao(e){return{current:e}}function xt(e){0>Ta||(e.current=av[Ta],av[Ta]=null,Ta--)}function Le(e,t){Ta++,av[Ta]=e.current,e.current=t}var oo={},hr=ao(oo),Nr=ao(!1),ys=oo;function Ua(e,t){var r=e.type.contextTypes;if(!r)return oo;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 Mr(e){return e=e.childContextTypes,e!=null}function yh(){xt(Nr),xt(hr)}function h3(e,t,r){if(hr.current!==oo)throw Error(oe(168));Le(hr,t),Le(Nr,r)}function FS(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,HF(e)||"Unknown",i));return Dt({},r,n)}function vh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oo,ys=hr.current,Le(hr,e),Le(Nr,Nr.current),!0}function p3(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=FS(e,t,ys),n.__reactInternalMemoizedMergedChildContext=e,xt(Nr),xt(hr),Le(hr,e)):xt(Nr),Le(Nr,r)}var ai=null,Fh=!1,Ty=!1;function $S(e){ai===null?ai=[e]:ai.push(e)}function oU(e){Fh=!0,$S(e)}function uo(){if(!Ty&&ai!==null){Ty=!0;var e=0,t=Ae;try{var r=ai;for(Ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}ai=null,Fh=!1}catch(i){throw ai!==null&&(ai=ai.slice(e+1)),lS(Mv,uo),i}finally{Ae=t,Ty=!1}}return null}var Pa=[],Da=0,wh=null,xh=0,on=[],sn=0,vs=null,ui=1,li="";function cs(e,t){Pa[Da++]=xh,Pa[Da++]=wh,wh=e,xh=t}function US(e,t,r){on[sn++]=ui,on[sn++]=li,on[sn++]=vs,vs=e;var n=ui;e=li;var i=32-An(n)-1;n&=~(1<<i),r+=1;var o=32-An(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,ui=1<<32-An(t)+i|r<<i|n,li=o+e}else ui=1<<o|r<<i|n,li=e}function zv(e){e.return!==null&&(cs(e,1),US(e,1,0))}function Hv(e){for(;e===wh;)wh=Pa[--Da],Pa[Da]=null,xh=Pa[--Da],Pa[Da]=null;for(;e===vs;)vs=on[--sn],on[sn]=null,li=on[--sn],on[sn]=null,ui=on[--sn],on[sn]=null}var qr=null,Kr=null,St=!1,In=null;function VS(e,t){var r=an(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 m3(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,qr=e,Kr=Zi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qr=e,Kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vs!==null?{id:ui,overflow:li}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=an(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,qr=e,Kr=null,!0):!1;default:return!1}}function uv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function lv(e){if(St){var t=Kr;if(t){var r=t;if(!m3(e,t)){if(uv(e))throw Error(oe(418));t=Zi(r.nextSibling);var n=qr;t&&m3(e,t)?VS(n,r):(e.flags=e.flags&-4097|2,St=!1,qr=e)}}else{if(uv(e))throw Error(oe(418));e.flags=e.flags&-4097|2,St=!1,qr=e}}}function g3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qr=e}function Wd(e){if(e!==qr)return!1;if(!St)return g3(e),St=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!iv(e.type,e.memoizedProps)),t&&(t=Kr)){if(uv(e))throw BS(),Error(oe(418));for(;t;)VS(e,t),t=Zi(t.nextSibling)}if(g3(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){Kr=Zi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Kr=null}}else Kr=qr?Zi(e.stateNode.nextSibling):null;return!0}function BS(){for(var e=Kr;e;)e=Zi(e.nextSibling)}function Va(){Kr=qr=null,St=!1}function Kv(e){In===null?In=[e]:In.push(e)}var sU=mi.ReactCurrentBatchConfig;function Pn(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 bh=ao(null),Eh=null,Ia=null,qv=null;function Wv(){qv=Ia=Eh=null}function Gv(e){var t=bh.current;xt(bh),e._currentValue=t}function cv(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 La(e,t){Eh=e,qv=Ia=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rr=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(qv!==e)if(e={context:e,memoizedValue:t,next:null},Ia===null){if(Eh===null)throw Error(oe(308));Ia=e,Eh.dependencies={lanes:0,firstContext:e}}else Ia=Ia.next=e;return t}var hs=null;function Yv(e){hs===null?hs=[e]:hs.push(e)}function jS(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Yv(t)):(r.next=i.next,i.next=r),t.interleaved=r,hi(e,n)}function hi(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 Ki=!1;function Xv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zS(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 ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Se&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,hi(e,r)}return i=n.interleaved,i===null?(t.next=t,Yv(n)):(t.next=i.next,i.next=t),n.interleaved=t,hi(e,r)}function th(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,kv(e,r)}}function y3(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 _h(e,t,r,n){var i=e.updateQueue;Ki=!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 g=a.lane,w=a.eventTime;if((n&g)===g){p!==null&&(p=p.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,_=a;switch(g=t,w=r,_.tag){case 1:if(v=_.payload,typeof v=="function"){h=v.call(w,h,g);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=_.payload,g=typeof v=="function"?v.call(w,h,g):v,g==null)break e;h=Dt({},h,g);break e;case 2:Ki=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else w={eventTime:w,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=w,u=h):p=p.next=w,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,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);xs|=s,e.lanes=s,e.memoizedState=h}}function v3(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 HS=new j3.Component().refs;function fv(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 $h={isMounted:function(e){return(e=e._reactInternals)?_s(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Er(),i=ro(e),o=ci(n,i);o.payload=t,r!=null&&(o.callback=r),t=eo(e,o,i),t!==null&&(On(t,e,i,n),th(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Er(),i=ro(e),o=ci(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=eo(e,o,i),t!==null&&(On(t,e,i,n),th(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Er(),n=ro(e),i=ci(r,n);i.tag=2,t!=null&&(i.callback=t),t=eo(e,i,n),t!==null&&(On(t,e,n,r),th(t,e,n))}};function w3(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?!Pc(r,n)||!Pc(i,o):!0}function KS(e,t,r){var n=!1,i=oo,o=t.contextType;return typeof o=="object"&&o!==null?o=ln(o):(i=Mr(t)?ys:hr.current,n=t.contextTypes,o=(n=n!=null)?Ua(e,i):oo),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$h,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function x3(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&&$h.enqueueReplaceState(t,t.state,null)}function dv(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=HS,Xv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ln(o):(o=Mr(t)?ys:hr.current,i.context=Ua(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fv(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&&$h.enqueueReplaceState(i,i.state,null),_h(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function nc(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===HS&&(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 Gd(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function b3(e){var t=e._init;return t(e._payload)}function qS(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=no(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=Ny(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===ba?p(C,I,P.props.children,R,P.key):I!==null&&(I.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Hi&&b3(U)===I.type)?(R=i(I,P.props),R.ref=nc(C,I,P),R.return=C,R):(R=ah(P.type,P.key,P.props,null,C.mode,R),R.ref=nc(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=My(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=gs(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=Ny(""+I,C.mode,P),I.return=C,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Nd:return P=ah(I.type,I.key,I.props,null,C.mode,P),P.ref=nc(C,null,I),P.return=C,P;case xa:return I=My(I,C.mode,P),I.return=C,I;case Hi:var R=I._init;return h(C,R(I._payload),P)}if(uc(I)||Zl(I))return I=gs(I,C.mode,P,null),I.return=C,I;Gd(C,I)}return null}function g(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 Nd:return P.key===U?u(C,I,P,R):null;case xa:return P.key===U?l(C,I,P,R):null;case Hi:return U=P._init,g(C,I,U(P._payload),R)}if(uc(P)||Zl(P))return U!==null?null:p(C,I,P,R,null);Gd(C,P)}return null}function w(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 Nd:return C=C.get(R.key===null?P:R.key)||null,u(I,C,R,U);case xa:return C=C.get(R.key===null?P:R.key)||null,l(I,C,R,U);case Hi:var j=R._init;return w(C,I,P,j(R._payload),U)}if(uc(R)||Zl(R))return C=C.get(P)||null,p(I,C,R,U,null);Gd(I,R)}return null}function v(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=g(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&&cs(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&&cs(C,$),U}for(F=n(C,F);$<P.length;$++)G=w(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&&cs(C,$),U}function _(C,I,P,R){var U=Zl(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=g(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&&cs(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&&cs(C,$),U}for(F=n(C,F);!X.done;$++,X=P.next())X=w(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&&cs(C,$),U}function D(C,I,P,R){if(typeof P=="object"&&P!==null&&P.type===ba&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Nd:e:{for(var U=P.key,j=I;j!==null;){if(j.key===U){if(U=P.type,U===ba){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===Hi&&b3(U)===j.type){r(C,j.sibling),I=i(j,P.props),I.ref=nc(C,j,P),I.return=C,C=I;break e}r(C,j);break}else t(C,j);j=j.sibling}P.type===ba?(I=gs(P.props.children,C.mode,R,P.key),I.return=C,C=I):(R=ah(P.type,P.key,P.props,null,C.mode,R),R.ref=nc(C,I,P),R.return=C,C=R)}return s(C);case xa: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=My(P,C.mode,R),I.return=C,C=I}return s(C);case Hi:return j=P._init,D(C,I,j(P._payload),R)}if(uc(P))return v(C,I,P,R);if(Zl(P))return _(C,I,P,R);Gd(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=Ny(P,C.mode,R),I.return=C,C=I),s(C)):r(C,I)}return D}var Ba=qS(!0),WS=qS(!1),Vc={},qn=ao(Vc),Oc=ao(Vc),Rc=ao(Vc);function ps(e){if(e===Vc)throw Error(oe(174));return e}function Jv(e,t){switch(Le(Rc,t),Le(Oc,e),Le(qn,Vc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hy(t,e)}xt(qn),Le(qn,t)}function ja(){xt(qn),xt(Oc),xt(Rc)}function GS(e){ps(Rc.current);var t=ps(qn.current),r=Hy(t,e.type);t!==r&&(Le(Oc,e),Le(qn,r))}function Qv(e){Oc.current===e&&(xt(qn),xt(Oc))}var Tt=ao(0);function Sh(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 Py=[];function Zv(){for(var e=0;e<Py.length;e++)Py[e]._workInProgressVersionPrimary=null;Py.length=0}var rh=mi.ReactCurrentDispatcher,Dy=mi.ReactCurrentBatchConfig,ws=0,Pt=null,zt=null,Yt=null,Ch=!1,gc=!1,Nc=0,aU=0;function cr(){throw Error(oe(321))}function e1(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Rn(e[r],t[r]))return!1;return!0}function t1(e,t,r,n,i,o){if(ws=o,Pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rh.current=e===null||e.memoizedState===null?fU:dU,e=r(n,i),gc){o=0;do{if(gc=!1,Nc=0,25<=o)throw Error(oe(301));o+=1,Yt=zt=null,t.updateQueue=null,rh.current=hU,e=r(n,i)}while(gc)}if(rh.current=Th,t=zt!==null&&zt.next!==null,ws=0,Yt=zt=Pt=null,Ch=!1,t)throw Error(oe(300));return e}function r1(){var e=Nc!==0;return Nc=0,e}function zn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Pt.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function cn(){if(zt===null){var e=Pt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Yt===null?Pt.memoizedState:Yt.next;if(t!==null)Yt=t,zt=e;else{if(e===null)throw Error(oe(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Yt===null?Pt.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Mc(e,t){return typeof t=="function"?t(e):t}function Iy(e){var t=cn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=zt,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((ws&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,xs|=p}l=l.next}while(l!==null&&l!==o);u===null?s=n:u.next=a,Rn(n,t.memoizedState)||(Rr=!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,xs|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ay(e){var t=cn(),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);Rn(o,t.memoizedState)||(Rr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function YS(){}function XS(e,t){var r=Pt,n=cn(),i=t(),o=!Rn(n.memoizedState,i);if(o&&(n.memoizedState=i,Rr=!0),n=n.queue,n1(ZS.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Yt!==null&&Yt.memoizedState.tag&1){if(r.flags|=2048,kc(9,QS.bind(null,r,n,i,t),void 0,null),Xt===null)throw Error(oe(349));(ws&30)!==0||JS(r,t,i)}return i}function JS(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 QS(e,t,r,n){t.value=r,t.getSnapshot=n,e6(t)&&t6(e)}function ZS(e,t,r){return r(function(){e6(t)&&t6(e)})}function e6(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Rn(e,r)}catch(n){return!0}}function t6(e){var t=hi(e,1);t!==null&&On(t,e,1,-1)}function E3(e){var t=zn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mc,lastRenderedState:e},t.queue=e,e=e.dispatch=cU.bind(null,Pt,e),[t.memoizedState,e]}function kc(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 r6(){return cn().memoizedState}function nh(e,t,r,n){var i=zn();Pt.flags|=e,i.memoizedState=kc(1|t,r,void 0,n===void 0?null:n)}function Uh(e,t,r,n){var i=cn();n=n===void 0?null:n;var o=void 0;if(zt!==null){var s=zt.memoizedState;if(o=s.destroy,n!==null&&e1(n,s.deps)){i.memoizedState=kc(t,r,o,n);return}}Pt.flags|=e,i.memoizedState=kc(1|t,r,o,n)}function _3(e,t){return nh(8390656,8,e,t)}function n1(e,t){return Uh(2048,8,e,t)}function n6(e,t){return Uh(4,2,e,t)}function i6(e,t){return Uh(4,4,e,t)}function o6(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 s6(e,t,r){return r=r!=null?r.concat([e]):null,Uh(4,4,o6.bind(null,t,e),r)}function i1(){}function a6(e,t){var r=cn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&e1(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function u6(e,t){var r=cn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&e1(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function l6(e,t,r){return(ws&21)===0?(e.baseState&&(e.baseState=!1,Rr=!0),e.memoizedState=r):(Rn(r,t)||(r=dS(),Pt.lanes|=r,xs|=r,e.baseState=!0),t)}function uU(e,t){var r=Ae;Ae=r!==0&&4>r?r:4,e(!0);var n=Dy.transition;Dy.transition={};try{e(!1),t()}finally{Ae=r,Dy.transition=n}}function c6(){return cn().memoizedState}function lU(e,t,r){var n=ro(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},f6(e))d6(t,r);else if(r=jS(e,t,r,n),r!==null){var i=Er();On(r,e,n,i),h6(r,t,n)}}function cU(e,t,r){var n=ro(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(f6(e))d6(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,Rn(a,s)){var u=t.interleaved;u===null?(i.next=i,Yv(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch(l){}finally{}r=jS(e,t,i,n),r!==null&&(i=Er(),On(r,e,n,i),h6(r,t,n))}}function f6(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function d6(e,t){gc=Ch=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function h6(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,kv(e,r)}}var Th={readContext:ln,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},fU={readContext:ln,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:_3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,nh(4194308,4,o6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var r=zn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zn();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=lU.bind(null,Pt,e),[n.memoizedState,e]},useRef:function(e){var t=zn();return e={current:e},t.memoizedState=e},useState:E3,useDebugValue:i1,useDeferredValue:function(e){return zn().memoizedState=e},useTransition:function(){var e=E3(!1),t=e[0];return e=uU.bind(null,e[1]),zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pt,i=zn();if(St){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Xt===null)throw Error(oe(349));(ws&30)!==0||JS(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,_3(ZS.bind(null,n,o,e),[e]),n.flags|=2048,kc(9,QS.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=zn(),t=Xt.identifierPrefix;if(St){var r=li,n=ui;r=(n&~(1<<32-An(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Nc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=aU++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},dU={readContext:ln,useCallback:a6,useContext:ln,useEffect:n1,useImperativeHandle:s6,useInsertionEffect:n6,useLayoutEffect:i6,useMemo:u6,useReducer:Iy,useRef:r6,useState:function(){return Iy(Mc)},useDebugValue:i1,useDeferredValue:function(e){var t=cn();return l6(t,zt.memoizedState,e)},useTransition:function(){var e=Iy(Mc)[0],t=cn().memoizedState;return[e,t]},useMutableSource:YS,useSyncExternalStore:XS,useId:c6,unstable_isNewReconciler:!1},hU={readContext:ln,useCallback:a6,useContext:ln,useEffect:n1,useImperativeHandle:s6,useInsertionEffect:n6,useLayoutEffect:i6,useMemo:u6,useReducer:Ay,useRef:r6,useState:function(){return Ay(Mc)},useDebugValue:i1,useDeferredValue:function(e){var t=cn();return zt===null?t.memoizedState=e:l6(t,zt.memoizedState,e)},useTransition:function(){var e=Ay(Mc)[0],t=cn().memoizedState;return[e,t]},useMutableSource:YS,useSyncExternalStore:XS,useId:c6,unstable_isNewReconciler:!1};function za(e,t){try{var r="",n=t;do r+=zF(n),n=n.return;while(n);var i=r}catch(o){i=`
|
|
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 l=`
|
|
5
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{qg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zu(e):""}function nL(e){switch(e.tag){case 5:return Zu(e.type);case 16:return Zu("Lazy");case 13:return Zu("Suspense");case 19:return Zu("SuspenseList");case 0:case 2:case 15:return e=Wg(e.type,!1),e;case 11:return e=Wg(e.type.render,!1),e;case 1:return e=Wg(e.type,!0),e;default:return""}}function yy(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 _a:return"Fragment";case Ea:return"Portal";case py:return"Profiler";case lv:return"StrictMode";case my:return"Suspense";case gy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A3:return(e.displayName||"Context")+".Consumer";case R3:return(e._context.displayName||"Context")+".Provider";case uv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cv:return t=e.displayName||null,t!==null?t:yy(e.type)||"Memo";case eo:t=e._payload,e=e._init;try{return yy(e(t))}catch(r){}}return null}function iL(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 yy(t);case 8:return t===lv?"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 mo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function M3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oL(e){var t=M3(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 _d(e){e._valueTracker||(e._valueTracker=oL(e))}function N3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=M3(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Jd(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 vy(e,t){var r=t.checked;return Tt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function C2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mo(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 k3(e,t){t=t.checked,t!=null&&av(e,"checked",t,!1)}function wy(e,t){k3(e,t);var r=mo(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")?xy(e,t.type,r):t.hasOwnProperty("defaultValue")&&xy(e,t.type,mo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function T2(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 xy(e,t,r){(t!=="number"||Jd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ec=Array.isArray;function Na(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=""+mo(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 by(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Tt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function D2(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(ec(r)){if(1<r.length)throw Error(oe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:mo(r)}}function L3(e,t){var r=mo(t.value),n=mo(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 P2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function F3(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 Ey(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?F3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sd,$3=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(Sd=Sd||document.createElement("div"),Sd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var nc={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},sL=["Webkit","ms","Moz","O"];Object.keys(nc).forEach(function(e){sL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),nc[t]=nc[e]})});function U3(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||nc.hasOwnProperty(e)&&nc[e]?(""+t).trim():t+"px"}function V3(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=U3(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var aL=Tt({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 _y(e,t){if(t){if(aL[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 Sy(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 Cy=null;function fv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ty=null,ka=null,La=null;function I2(e){if(e=Ac(e)){if(typeof Ty!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Ch(t),Ty(e.stateNode,e.type,t))}}function B3(e){ka?La?La.push(e):La=[e]:ka=e}function j3(){if(ka){var e=ka,t=La;if(La=ka=null,I2(e),t)for(e=0;e<t.length;e++)I2(t[e])}}function z3(e,t){return e(t)}function H3(){}var Gg=!1;function K3(e,t,r){if(Gg)return e(t,r);Gg=!0;try{return z3(e,t,r)}finally{Gg=!1,(ka!==null||La!==null)&&(H3(),j3())}}function pc(e,t){var r=e.stateNode;if(r===null)return null;var n=Ch(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 Dy=!1;if(pi)try{xa={},Object.defineProperty(xa,"passive",{get:function(){Dy=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch(e){Dy=!1}var xa;function lL(e,t,r,n,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(h){this.onError(h)}}var ic=!1,Qd=null,Zd=!1,Py=null,uL={onError:function(e){ic=!0,Qd=e}};function cL(e,t,r,n,i,o,s,a,l){ic=!1,Qd=null,lL.apply(uL,arguments)}function fL(e,t,r,n,i,o,s,a,l){if(cL.apply(this,arguments),ic){if(ic){var u=Qd;ic=!1,Qd=null}else throw Error(oe(198));Zd||(Zd=!0,Py=u)}}function Ts(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 q3(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 R2(e){if(Ts(e)!==e)throw Error(oe(188))}function dL(e){var t=e.alternate;if(!t){if(t=Ts(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 R2(i),e;if(o===n)return R2(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 W3(e){return e=dL(e),e!==null?G3(e):null}function G3(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=G3(e);if(t!==null)return t;e=e.sibling}return null}var Y3=Gr.unstable_scheduleCallback,A2=Gr.unstable_cancelCallback,hL=Gr.unstable_shouldYield,pL=Gr.unstable_requestPaint,Nt=Gr.unstable_now,mL=Gr.unstable_getCurrentPriorityLevel,dv=Gr.unstable_ImmediatePriority,X3=Gr.unstable_UserBlockingPriority,eh=Gr.unstable_NormalPriority,gL=Gr.unstable_LowPriority,J3=Gr.unstable_IdlePriority,bh=null,Hn=null;function yL(e){if(Hn&&typeof Hn.onCommitFiberRoot=="function")try{Hn.onCommitFiberRoot(bh,e,void 0,(e.current.flags&128)===128)}catch(t){}}var In=Math.clz32?Math.clz32:xL,vL=Math.log,wL=Math.LN2;function xL(e){return e>>>=0,e===0?32:31-(vL(e)/wL|0)|0}var Cd=64,Td=4194304;function tc(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 th(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=tc(a):(o&=s,o!==0&&(n=tc(o)))}else s=r&~i,s!==0?n=tc(s):o!==0&&(n=tc(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-In(t),i=1<<r,n|=e[r],t&=~i;return n}function bL(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 EL(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-In(o),a=1<<s,l=i[s];l===-1?((a&r)===0||(a&n)!==0)&&(i[s]=bL(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Iy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Q3(){var e=Cd;return Cd<<=1,(Cd&4194240)===0&&(Cd=64),e}function Yg(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ic(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-In(t),e[t]=r}function _L(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-In(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function hv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-In(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Re=0;function Z3(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var eS,pv,tS,rS,nS,Ry=!1,Dd=[],so=null,ao=null,lo=null,mc=new Map,gc=new Map,ro=[],SL="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 O2(e,t){switch(e){case"focusin":case"focusout":so=null;break;case"dragenter":case"dragleave":ao=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":mc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gc.delete(t.pointerId)}}function qu(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=Ac(t),t!==null&&pv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function CL(e,t,r,n,i){switch(t){case"focusin":return so=qu(so,e,t,r,n,i),!0;case"dragenter":return ao=qu(ao,e,t,r,n,i),!0;case"mouseover":return lo=qu(lo,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return mc.set(o,qu(mc.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,gc.set(o,qu(gc.get(o)||null,e,t,r,n,i)),!0}return!1}function iS(e){var t=ms(e.target);if(t!==null){var r=Ts(t);if(r!==null){if(t=r.tag,t===13){if(t=q3(r),t!==null){e.blockedOn=t,nS(e.priority,function(){tS(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 Bd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ay(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Cy=n,r.target.dispatchEvent(n),Cy=null}else return t=Ac(r),t!==null&&pv(t),e.blockedOn=r,!1;t.shift()}return!0}function M2(e,t,r){Bd(e)&&r.delete(t)}function TL(){Ry=!1,so!==null&&Bd(so)&&(so=null),ao!==null&&Bd(ao)&&(ao=null),lo!==null&&Bd(lo)&&(lo=null),mc.forEach(M2),gc.forEach(M2)}function Wu(e,t){e.blockedOn===t&&(e.blockedOn=null,Ry||(Ry=!0,Gr.unstable_scheduleCallback(Gr.unstable_NormalPriority,TL)))}function yc(e){function t(i){return Wu(i,e)}if(0<Dd.length){Wu(Dd[0],e);for(var r=1;r<Dd.length;r++){var n=Dd[r];n.blockedOn===e&&(n.blockedOn=null)}}for(so!==null&&Wu(so,e),ao!==null&&Wu(ao,e),lo!==null&&Wu(lo,e),mc.forEach(t),gc.forEach(t),r=0;r<ro.length;r++)n=ro[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ro.length&&(r=ro[0],r.blockedOn===null);)iS(r),r.blockedOn===null&&ro.shift()}var Fa=vi.ReactCurrentBatchConfig,rh=!0;function DL(e,t,r,n){var i=Re,o=Fa.transition;Fa.transition=null;try{Re=1,mv(e,t,r,n)}finally{Re=i,Fa.transition=o}}function PL(e,t,r,n){var i=Re,o=Fa.transition;Fa.transition=null;try{Re=4,mv(e,t,r,n)}finally{Re=i,Fa.transition=o}}function mv(e,t,r,n){if(rh){var i=Ay(e,t,r,n);if(i===null)ry(e,t,n,nh,r),O2(e,n);else if(CL(i,e,t,r,n))n.stopPropagation();else if(O2(e,n),t&4&&-1<SL.indexOf(e)){for(;i!==null;){var o=Ac(i);if(o!==null&&eS(o),o=Ay(e,t,r,n),o===null&&ry(e,t,n,nh,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else ry(e,t,n,null,r)}}var nh=null;function Ay(e,t,r,n){if(nh=null,e=fv(n),e=ms(e),e!==null)if(t=Ts(e),t===null)e=null;else if(r=t.tag,r===13){if(e=q3(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 nh=e,null}function oS(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(mL()){case dv:return 1;case X3:return 4;case eh:case gL:return 16;case J3:return 536870912;default:return 16}default:return 16}}var io=null,gv=null,jd=null;function sS(){if(jd)return jd;var e,t=gv,r=t.length,n,i="value"in io?io.value:io.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 jd=i.slice(e,1<n?1-n:void 0)}function zd(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 Pd(){return!0}function N2(){return!1}function Yr(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)?Pd:N2,this.isPropagationStopped=N2,this}return Tt(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=Pd)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Pd)},persist:function(){},isPersistent:Pd}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yv=Yr(Wa),Rc=Tt({},Wa,{view:0,detail:0}),IL=Yr(Rc),Xg,Jg,Gu,Eh=Tt({},Rc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vv,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!==Gu&&(Gu&&e.type==="mousemove"?(Xg=e.screenX-Gu.screenX,Jg=e.screenY-Gu.screenY):Jg=Xg=0,Gu=e),Xg)},movementY:function(e){return"movementY"in e?e.movementY:Jg}}),k2=Yr(Eh),RL=Tt({},Eh,{dataTransfer:0}),AL=Yr(RL),OL=Tt({},Rc,{relatedTarget:0}),Qg=Yr(OL),ML=Tt({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),NL=Yr(ML),kL=Tt({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LL=Yr(kL),FL=Tt({},Wa,{data:0}),L2=Yr(FL),$L={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UL={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"},VL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BL(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=VL[e])?!!t[e]:!1}function vv(){return BL}var jL=Tt({},Rc,{key:function(e){if(e.key){var t=$L[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vv,charCode:function(e){return e.type==="keypress"?zd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zL=Yr(jL),HL=Tt({},Eh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),F2=Yr(HL),KL=Tt({},Rc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vv}),qL=Yr(KL),WL=Tt({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),GL=Yr(WL),YL=Tt({},Eh,{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}),XL=Yr(YL),JL=[9,13,27,32],wv=pi&&"CompositionEvent"in window,oc=null;pi&&"documentMode"in document&&(oc=document.documentMode);var QL=pi&&"TextEvent"in window&&!oc,aS=pi&&(!wv||oc&&8<oc&&11>=oc),$2=String.fromCharCode(32),U2=!1;function lS(e,t){switch(e){case"keyup":return JL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function ZL(e,t){switch(e){case"compositionend":return uS(t);case"keypress":return t.which!==32?null:(U2=!0,$2);case"textInput":return e=t.data,e===$2&&U2?null:e;default:return null}}function eF(e,t){if(Sa)return e==="compositionend"||!wv&&lS(e,t)?(e=sS(),jd=gv=io=null,Sa=!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 aS&&t.locale!=="ko"?null:t.data;default:return null}}var tF={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 V2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tF[e.type]:t==="textarea"}function cS(e,t,r,n){B3(n),t=ih(t,"onChange"),0<t.length&&(r=new yv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var sc=null,vc=null;function rF(e){bS(e,0)}function _h(e){var t=Da(e);if(N3(t))return e}function nF(e,t){if(e==="change")return t}var fS=!1;pi&&(pi?(Rd="oninput"in document,Rd||(Zg=document.createElement("div"),Zg.setAttribute("oninput","return;"),Rd=typeof Zg.oninput=="function"),Id=Rd):Id=!1,fS=Id&&(!document.documentMode||9<document.documentMode));var Id,Rd,Zg;function B2(){sc&&(sc.detachEvent("onpropertychange",dS),vc=sc=null)}function dS(e){if(e.propertyName==="value"&&_h(vc)){var t=[];cS(t,vc,e,fv(e)),K3(rF,t)}}function iF(e,t,r){e==="focusin"?(B2(),sc=t,vc=r,sc.attachEvent("onpropertychange",dS)):e==="focusout"&&B2()}function oF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _h(vc)}function sF(e,t){if(e==="click")return _h(t)}function aF(e,t){if(e==="input"||e==="change")return _h(t)}function lF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var An=typeof Object.is=="function"?Object.is:lF;function wc(e,t){if(An(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(!hy.call(t,i)||!An(e[i],t[i]))return!1}return!0}function j2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z2(e,t){var r=j2(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=j2(r)}}function hS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pS(){for(var e=window,t=Jd();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=Jd(e.document)}return t}function xv(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 uF(e){var t=pS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&hS(r.ownerDocument.documentElement,r)){if(n!==null&&xv(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=z2(r,o);var s=z2(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 cF=pi&&"documentMode"in document&&11>=document.documentMode,Ca=null,Oy=null,ac=null,My=!1;function H2(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;My||Ca==null||Ca!==Jd(n)||(n=Ca,"selectionStart"in n&&xv(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}),ac&&wc(ac,n)||(ac=n,n=ih(Oy,"onSelect"),0<n.length&&(t=new yv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ca)))}function Ad(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ta={animationend:Ad("Animation","AnimationEnd"),animationiteration:Ad("Animation","AnimationIteration"),animationstart:Ad("Animation","AnimationStart"),transitionend:Ad("Transition","TransitionEnd")},ey={},mS={};pi&&(mS=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Sh(e){if(ey[e])return ey[e];if(!Ta[e])return e;var t=Ta[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in mS)return ey[e]=t[r];return e}var gS=Sh("animationend"),yS=Sh("animationiteration"),vS=Sh("animationstart"),wS=Sh("transitionend"),xS=new Map,K2="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 yo(e,t){xS.set(e,t),Cs(t,[e])}for(Od=0;Od<K2.length;Od++)Md=K2[Od],q2=Md.toLowerCase(),W2=Md[0].toUpperCase()+Md.slice(1),yo(q2,"on"+W2);var Md,q2,W2,Od;yo(gS,"onAnimationEnd");yo(yS,"onAnimationIteration");yo(vS,"onAnimationStart");yo("dblclick","onDoubleClick");yo("focusin","onFocus");yo("focusout","onBlur");yo(wS,"onTransitionEnd");Va("onMouseEnter",["mouseout","mouseover"]);Va("onMouseLeave",["mouseout","mouseover"]);Va("onPointerEnter",["pointerout","pointerover"]);Va("onPointerLeave",["pointerout","pointerover"]);Cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rc="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(" "),fF=new Set("cancel close invalid load scroll toggle".split(" ").concat(rc));function G2(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,fL(n,t,void 0,e),e.currentTarget=null}function bS(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],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;G2(i,a,u),o=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;G2(i,a,u),o=l}}}if(Zd)throw e=Py,Zd=!1,Py=null,e}function yt(e,t){var r=t[$y];r===void 0&&(r=t[$y]=new Set);var n=e+"__bubble";r.has(n)||(ES(t,e,2,!1),r.add(n))}function ty(e,t,r){var n=0;t&&(n|=4),ES(r,e,n,t)}var Nd="_reactListening"+Math.random().toString(36).slice(2);function xc(e){if(!e[Nd]){e[Nd]=!0,I3.forEach(function(r){r!=="selectionchange"&&(fF.has(r)||ty(r,!1,e),ty(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nd]||(t[Nd]=!0,ty("selectionchange",!1,t))}}function ES(e,t,r,n){switch(oS(t)){case 1:var i=DL;break;case 4:i=PL;break;default:i=mv}r=i.bind(null,t,r,e),i=void 0,!Dy||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 ry(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 l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ms(a),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}a=a.parentNode}}n=n.return}K3(function(){var u=o,h=fv(r),m=[];e:{var g=xS.get(e);if(g!==void 0){var x=yv,E=e;switch(e){case"keypress":if(zd(r)===0)break e;case"keydown":case"keyup":x=zL;break;case"focusin":E="focus",x=Qg;break;case"focusout":E="blur",x=Qg;break;case"beforeblur":case"afterblur":x=Qg;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":x=k2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=AL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=qL;break;case gS:case yS:case vS:x=NL;break;case wS:x=GL;break;case"scroll":x=IL;break;case"wheel":x=XL;break;case"copy":case"cut":case"paste":x=LL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=F2}var _=(t&4)!==0,A=!_&&e==="scroll",C=_?g!==null?g+"Capture":null:g;_=[];for(var P=u,D;P!==null;){D=P;var O=D.stateNode;if(D.tag===5&&O!==null&&(D=O,C!==null&&(O=pc(P,C),O!=null&&_.push(bc(P,O,D)))),A)break;P=P.return}0<_.length&&(g=new x(g,E,null,r,h),m.push({event:g,listeners:_}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&r!==Cy&&(E=r.relatedTarget||r.fromElement)&&(ms(E)||E[mi]))break e;if((x||g)&&(g=h.window===h?h:(g=h.ownerDocument)?g.defaultView||g.parentWindow:window,x?(E=r.relatedTarget||r.toElement,x=u,E=E?ms(E):null,E!==null&&(A=Ts(E),E!==A||E.tag!==5&&E.tag!==6)&&(E=null)):(x=null,E=u),x!==E)){if(_=k2,O="onMouseLeave",C="onMouseEnter",P="mouse",(e==="pointerout"||e==="pointerover")&&(_=F2,O="onPointerLeave",C="onPointerEnter",P="pointer"),A=x==null?g:Da(x),D=E==null?g:Da(E),g=new _(O,P+"leave",x,r,h),g.target=A,g.relatedTarget=D,O=null,ms(h)===u&&(_=new _(C,P+"enter",E,r,h),_.target=D,_.relatedTarget=A,O=_),A=O,x&&E)t:{for(_=x,C=E,P=0,D=_;D;D=ba(D))P++;for(D=0,O=C;O;O=ba(O))D++;for(;0<P-D;)_=ba(_),P--;for(;0<D-P;)C=ba(C),D--;for(;P--;){if(_===C||C!==null&&_===C.alternate)break t;_=ba(_),C=ba(C)}_=null}else _=null;x!==null&&Y2(m,g,x,_,!1),E!==null&&A!==null&&Y2(m,A,E,_,!0)}}e:{if(g=u?Da(u):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var $=nF;else if(V2(g))if(fS)$=aF;else{$=oF;var j=iF}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&($=sF);if($&&($=$(e,u))){cS(m,$,r,h);break e}j&&j(e,g,u),e==="focusout"&&(j=g._wrapperState)&&j.controlled&&g.type==="number"&&xy(g,"number",g.value)}switch(j=u?Da(u):window,e){case"focusin":(V2(j)||j.contentEditable==="true")&&(Ca=j,Oy=u,ac=null);break;case"focusout":ac=Oy=Ca=null;break;case"mousedown":My=!0;break;case"contextmenu":case"mouseup":case"dragend":My=!1,H2(m,r,h);break;case"selectionchange":if(cF)break;case"keydown":case"keyup":H2(m,r,h)}var F;if(wv)e:{switch(e){case"compositionstart":var U="onCompositionStart";break e;case"compositionend":U="onCompositionEnd";break e;case"compositionupdate":U="onCompositionUpdate";break e}U=void 0}else Sa?lS(e,r)&&(U="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(U="onCompositionStart");U&&(aS&&r.locale!=="ko"&&(Sa||U!=="onCompositionStart"?U==="onCompositionEnd"&&Sa&&(F=sS()):(io=h,gv="value"in io?io.value:io.textContent,Sa=!0)),j=ih(u,U),0<j.length&&(U=new L2(U,e,null,r,h),m.push({event:U,listeners:j}),F?U.data=F:(F=uS(r),F!==null&&(U.data=F)))),(F=QL?ZL(e,r):eF(e,r))&&(u=ih(u,"onBeforeInput"),0<u.length&&(h=new L2("onBeforeInput","beforeinput",null,r,h),m.push({event:h,listeners:u}),h.data=F))}bS(m,t)})}function bc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ih(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=pc(e,r),o!=null&&n.unshift(bc(e,o,i)),o=pc(e,t),o!=null&&n.push(bc(e,o,i))),e=e.return}return n}function ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Y2(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,i?(l=pc(r,o),l!=null&&s.unshift(bc(r,l,a))):i||(l=pc(r,o),l!=null&&s.push(bc(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var dF=/\r\n?/g,hF=/\u0000|\uFFFD/g;function X2(e){return(typeof e=="string"?e:""+e).replace(dF,`
|
|
6
|
+
`).replace(hF,"")}function kd(e,t,r){if(t=X2(t),X2(e)!==t&&r)throw Error(oe(425))}function oh(){}var Ny=null,ky=null;function Ly(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 Fy=typeof setTimeout=="function"?setTimeout:void 0,pF=typeof clearTimeout=="function"?clearTimeout:void 0,J2=typeof Promise=="function"?Promise:void 0,mF=typeof queueMicrotask=="function"?queueMicrotask:typeof J2<"u"?function(e){return J2.resolve(null).then(e).catch(gF)}:Fy;function gF(e){setTimeout(function(){throw e})}function ny(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),yc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);yc(t)}function uo(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 Q2(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 Ga=Math.random().toString(36).slice(2),zn="__reactFiber$"+Ga,Ec="__reactProps$"+Ga,mi="__reactContainer$"+Ga,$y="__reactEvents$"+Ga,yF="__reactListeners$"+Ga,vF="__reactHandles$"+Ga;function ms(e){var t=e[zn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mi]||r[zn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Q2(e);e!==null;){if(r=e[zn])return r;e=Q2(e)}return t}e=r,r=e.parentNode}return null}function Ac(e){return e=e[zn]||e[mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Da(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function Ch(e){return e[Ec]||null}var Uy=[],Pa=-1;function vo(e){return{current:e}}function vt(e){0>Pa||(e.current=Uy[Pa],Uy[Pa]=null,Pa--)}function ke(e,t){Pa++,Uy[Pa]=e.current,e.current=t}var go={},mr=vo(go),kr=vo(!1),xs=go;function Ba(e,t){var r=e.type.contextTypes;if(!r)return go;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 Lr(e){return e=e.childContextTypes,e!=null}function sh(){vt(kr),vt(mr)}function Z2(e,t,r){if(mr.current!==go)throw Error(oe(168));ke(mr,t),ke(kr,r)}function _S(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,iL(e)||"Unknown",i));return Tt({},r,n)}function ah(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||go,xs=mr.current,ke(mr,e),ke(kr,kr.current),!0}function e3(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=_S(e,t,xs),n.__reactInternalMemoizedMergedChildContext=e,vt(kr),vt(mr),ke(mr,e)):vt(kr),ke(kr,r)}var ci=null,Th=!1,iy=!1;function SS(e){ci===null?ci=[e]:ci.push(e)}function wF(e){Th=!0,SS(e)}function wo(){if(!iy&&ci!==null){iy=!0;var e=0,t=Re;try{var r=ci;for(Re=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}ci=null,Th=!1}catch(i){throw ci!==null&&(ci=ci.slice(e+1)),Y3(dv,wo),i}finally{Re=t,iy=!1}}return null}var Ia=[],Ra=0,lh=null,uh=0,sn=[],an=0,bs=null,fi=1,di="";function hs(e,t){Ia[Ra++]=uh,Ia[Ra++]=lh,lh=e,uh=t}function CS(e,t,r){sn[an++]=fi,sn[an++]=di,sn[an++]=bs,bs=e;var n=fi;e=di;var i=32-In(n)-1;n&=~(1<<i),r+=1;var o=32-In(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,fi=1<<32-In(t)+i|r<<i|n,di=o+e}else fi=1<<o|r<<i|n,di=e}function bv(e){e.return!==null&&(hs(e,1),CS(e,1,0))}function Ev(e){for(;e===lh;)lh=Ia[--Ra],Ia[Ra]=null,uh=Ia[--Ra],Ia[Ra]=null;for(;e===bs;)bs=sn[--an],sn[an]=null,di=sn[--an],sn[an]=null,fi=sn[--an],sn[an]=null}var Wr=null,qr=null,Et=!1,Pn=null;function TS(e,t){var r=ln(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 t3(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,Wr=e,qr=uo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Wr=e,qr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=bs!==null?{id:fi,overflow:di}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ln(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Wr=e,qr=null,!0):!1;default:return!1}}function Vy(e){return(e.mode&1)!==0&&(e.flags&128)===0}function By(e){if(Et){var t=qr;if(t){var r=t;if(!t3(e,t)){if(Vy(e))throw Error(oe(418));t=uo(r.nextSibling);var n=Wr;t&&t3(e,t)?TS(n,r):(e.flags=e.flags&-4097|2,Et=!1,Wr=e)}}else{if(Vy(e))throw Error(oe(418));e.flags=e.flags&-4097|2,Et=!1,Wr=e}}}function r3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wr=e}function Ld(e){if(e!==Wr)return!1;if(!Et)return r3(e),Et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ly(e.type,e.memoizedProps)),t&&(t=qr)){if(Vy(e))throw DS(),Error(oe(418));for(;t;)TS(e,t),t=uo(t.nextSibling)}if(r3(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){qr=uo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}qr=null}}else qr=Wr?uo(e.stateNode.nextSibling):null;return!0}function DS(){for(var e=qr;e;)e=uo(e.nextSibling)}function ja(){qr=Wr=null,Et=!1}function _v(e){Pn===null?Pn=[e]:Pn.push(e)}var xF=vi.ReactCurrentBatchConfig;function Tn(e,t){if(e&&e.defaultProps){t=Tt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ch=vo(null),fh=null,Aa=null,Sv=null;function Cv(){Sv=Aa=fh=null}function Tv(e){var t=ch.current;vt(ch),e._currentValue=t}function jy(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 $a(e,t){fh=e,Sv=Aa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Nr=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(Sv!==e)if(e={context:e,memoizedValue:t,next:null},Aa===null){if(fh===null)throw Error(oe(308));Aa=e,fh.dependencies={lanes:0,firstContext:e}}else Aa=Aa.next=e;return t}var gs=null;function Dv(e){gs===null?gs=[e]:gs.push(e)}function PS(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Dv(t)):(r.next=i.next,i.next=r),t.interleaved=r,gi(e,n)}function gi(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 to=!1;function Pv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IS(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 hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(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,gi(e,r)}return i=n.interleaved,i===null?(t.next=t,Dv(n)):(t.next=i.next,i.next=t),n.interleaved=t,gi(e,r)}function Hd(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,hv(e,r)}}function n3(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 dh(e,t,r,n){var i=e.updateQueue;to=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==s&&(a===null?h.firstBaseUpdate=u:a.next=u,h.lastBaseUpdate=l))}if(o!==null){var m=i.baseState;s=0,h=u=l=null,a=o;do{var g=a.lane,x=a.eventTime;if((n&g)===g){h!==null&&(h=h.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,_=a;switch(g=t,x=r,_.tag){case 1:if(E=_.payload,typeof E=="function"){m=E.call(x,m,g);break e}m=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=_.payload,g=typeof E=="function"?E.call(x,m,g):E,g==null)break e;m=Tt({},m,g);break e;case 2:to=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else x={eventTime:x,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(u=h=x,l=m):h=h.next=x,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(1);if(h===null&&(l=m),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=h,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);_s|=s,e.lanes=s,e.memoizedState=m}}function i3(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 RS=new P3.Component().refs;function zy(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Tt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Dh={isMounted:function(e){return(e=e._reactInternals)?Ts(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Tr(),i=ho(e),o=hi(n,i);o.payload=t,r!=null&&(o.callback=r),t=co(e,o,i),t!==null&&(Rn(t,e,i,n),Hd(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Tr(),i=ho(e),o=hi(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=co(e,o,i),t!==null&&(Rn(t,e,i,n),Hd(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Tr(),n=ho(e),i=hi(r,n);i.tag=2,t!=null&&(i.callback=t),t=co(e,i,n),t!==null&&(Rn(t,e,n,r),Hd(t,e,n))}};function o3(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?!wc(r,n)||!wc(i,o):!0}function AS(e,t,r){var n=!1,i=go,o=t.contextType;return typeof o=="object"&&o!==null?o=cn(o):(i=Lr(t)?xs:mr.current,n=t.contextTypes,o=(n=n!=null)?Ba(e,i):go),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function s3(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&&Dh.enqueueReplaceState(t,t.state,null)}function Hy(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=RS,Pv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=cn(o):(o=Lr(t)?xs:mr.current,i.context=Ba(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zy(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&&Dh.enqueueReplaceState(i,i.state,null),dh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Yu(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===RS&&(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 Fd(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function a3(e){var t=e._init;return t(e._payload)}function OS(e){function t(C,P){if(e){var D=C.deletions;D===null?(C.deletions=[P],C.flags|=16):D.push(P)}}function r(C,P){if(!e)return null;for(;P!==null;)t(C,P),P=P.sibling;return null}function n(C,P){for(C=new Map;P!==null;)P.key!==null?C.set(P.key,P):C.set(P.index,P),P=P.sibling;return C}function i(C,P){return C=po(C,P),C.index=0,C.sibling=null,C}function o(C,P,D){return C.index=D,e?(D=C.alternate,D!==null?(D=D.index,D<P?(C.flags|=2,P):D):(C.flags|=2,P)):(C.flags|=1048576,P)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,P,D,O){return P===null||P.tag!==6?(P=fy(D,C.mode,O),P.return=C,P):(P=i(P,D),P.return=C,P)}function l(C,P,D,O){var $=D.type;return $===_a?h(C,P,D.props.children,O,D.key):P!==null&&(P.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===eo&&a3($)===P.type)?(O=i(P,D.props),O.ref=Yu(C,P,D),O.return=C,O):(O=Xd(D.type,D.key,D.props,null,C.mode,O),O.ref=Yu(C,P,D),O.return=C,O)}function u(C,P,D,O){return P===null||P.tag!==4||P.stateNode.containerInfo!==D.containerInfo||P.stateNode.implementation!==D.implementation?(P=dy(D,C.mode,O),P.return=C,P):(P=i(P,D.children||[]),P.return=C,P)}function h(C,P,D,O,$){return P===null||P.tag!==7?(P=ws(D,C.mode,O,$),P.return=C,P):(P=i(P,D),P.return=C,P)}function m(C,P,D){if(typeof P=="string"&&P!==""||typeof P=="number")return P=fy(""+P,C.mode,D),P.return=C,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Ed:return D=Xd(P.type,P.key,P.props,null,C.mode,D),D.ref=Yu(C,null,P),D.return=C,D;case Ea:return P=dy(P,C.mode,D),P.return=C,P;case eo:var O=P._init;return m(C,O(P._payload),D)}if(ec(P)||Ku(P))return P=ws(P,C.mode,D,null),P.return=C,P;Fd(C,P)}return null}function g(C,P,D,O){var $=P!==null?P.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return $!==null?null:a(C,P,""+D,O);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Ed:return D.key===$?l(C,P,D,O):null;case Ea:return D.key===$?u(C,P,D,O):null;case eo:return $=D._init,g(C,P,$(D._payload),O)}if(ec(D)||Ku(D))return $!==null?null:h(C,P,D,O,null);Fd(C,D)}return null}function x(C,P,D,O,$){if(typeof O=="string"&&O!==""||typeof O=="number")return C=C.get(D)||null,a(P,C,""+O,$);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ed:return C=C.get(O.key===null?D:O.key)||null,l(P,C,O,$);case Ea:return C=C.get(O.key===null?D:O.key)||null,u(P,C,O,$);case eo:var j=O._init;return x(C,P,D,j(O._payload),$)}if(ec(O)||Ku(O))return C=C.get(D)||null,h(P,C,O,$,null);Fd(P,O)}return null}function E(C,P,D,O){for(var $=null,j=null,F=P,U=P=0,W=null;F!==null&&U<D.length;U++){F.index>U?(W=F,F=null):W=F.sibling;var X=g(C,F,D[U],O);if(X===null){F===null&&(F=W);break}e&&F&&X.alternate===null&&t(C,F),P=o(X,P,U),j===null?$=X:j.sibling=X,j=X,F=W}if(U===D.length)return r(C,F),Et&&hs(C,U),$;if(F===null){for(;U<D.length;U++)F=m(C,D[U],O),F!==null&&(P=o(F,P,U),j===null?$=F:j.sibling=F,j=F);return Et&&hs(C,U),$}for(F=n(C,F);U<D.length;U++)W=x(F,C,U,D[U],O),W!==null&&(e&&W.alternate!==null&&F.delete(W.key===null?U:W.key),P=o(W,P,U),j===null?$=W:j.sibling=W,j=W);return e&&F.forEach(function(G){return t(C,G)}),Et&&hs(C,U),$}function _(C,P,D,O){var $=Ku(D);if(typeof $!="function")throw Error(oe(150));if(D=$.call(D),D==null)throw Error(oe(151));for(var j=$=null,F=P,U=P=0,W=null,X=D.next();F!==null&&!X.done;U++,X=D.next()){F.index>U?(W=F,F=null):W=F.sibling;var G=g(C,F,X.value,O);if(G===null){F===null&&(F=W);break}e&&F&&G.alternate===null&&t(C,F),P=o(G,P,U),j===null?$=G:j.sibling=G,j=G,F=W}if(X.done)return r(C,F),Et&&hs(C,U),$;if(F===null){for(;!X.done;U++,X=D.next())X=m(C,X.value,O),X!==null&&(P=o(X,P,U),j===null?$=X:j.sibling=X,j=X);return Et&&hs(C,U),$}for(F=n(C,F);!X.done;U++,X=D.next())X=x(F,C,U,X.value,O),X!==null&&(e&&X.alternate!==null&&F.delete(X.key===null?U:X.key),P=o(X,P,U),j===null?$=X:j.sibling=X,j=X);return e&&F.forEach(function(Y){return t(C,Y)}),Et&&hs(C,U),$}function A(C,P,D,O){if(typeof D=="object"&&D!==null&&D.type===_a&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Ed:e:{for(var $=D.key,j=P;j!==null;){if(j.key===$){if($=D.type,$===_a){if(j.tag===7){r(C,j.sibling),P=i(j,D.props.children),P.return=C,C=P;break e}}else if(j.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===eo&&a3($)===j.type){r(C,j.sibling),P=i(j,D.props),P.ref=Yu(C,j,D),P.return=C,C=P;break e}r(C,j);break}else t(C,j);j=j.sibling}D.type===_a?(P=ws(D.props.children,C.mode,O,D.key),P.return=C,C=P):(O=Xd(D.type,D.key,D.props,null,C.mode,O),O.ref=Yu(C,P,D),O.return=C,C=O)}return s(C);case Ea:e:{for(j=D.key;P!==null;){if(P.key===j)if(P.tag===4&&P.stateNode.containerInfo===D.containerInfo&&P.stateNode.implementation===D.implementation){r(C,P.sibling),P=i(P,D.children||[]),P.return=C,C=P;break e}else{r(C,P);break}else t(C,P);P=P.sibling}P=dy(D,C.mode,O),P.return=C,C=P}return s(C);case eo:return j=D._init,A(C,P,j(D._payload),O)}if(ec(D))return E(C,P,D,O);if(Ku(D))return _(C,P,D,O);Fd(C,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,P!==null&&P.tag===6?(r(C,P.sibling),P=i(P,D),P.return=C,C=P):(r(C,P),P=fy(D,C.mode,O),P.return=C,C=P),s(C)):r(C,P)}return A}var za=OS(!0),MS=OS(!1),Oc={},Kn=vo(Oc),_c=vo(Oc),Sc=vo(Oc);function ys(e){if(e===Oc)throw Error(oe(174));return e}function Iv(e,t){switch(ke(Sc,t),ke(_c,e),ke(Kn,Oc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ey(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ey(t,e)}vt(Kn),ke(Kn,t)}function Ha(){vt(Kn),vt(_c),vt(Sc)}function NS(e){ys(Sc.current);var t=ys(Kn.current),r=Ey(t,e.type);t!==r&&(ke(_c,e),ke(Kn,r))}function Rv(e){_c.current===e&&(vt(Kn),vt(_c))}var St=vo(0);function hh(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 oy=[];function Av(){for(var e=0;e<oy.length;e++)oy[e]._workInProgressVersionPrimary=null;oy.length=0}var Kd=vi.ReactCurrentDispatcher,sy=vi.ReactCurrentBatchConfig,Es=0,Ct=null,zt=null,Xt=null,ph=!1,lc=!1,Cc=0,bF=0;function dr(){throw Error(oe(321))}function Ov(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!An(e[r],t[r]))return!1;return!0}function Mv(e,t,r,n,i,o){if(Es=o,Ct=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kd.current=e===null||e.memoizedState===null?CF:TF,e=r(n,i),lc){o=0;do{if(lc=!1,Cc=0,25<=o)throw Error(oe(301));o+=1,Xt=zt=null,t.updateQueue=null,Kd.current=DF,e=r(n,i)}while(lc)}if(Kd.current=mh,t=zt!==null&&zt.next!==null,Es=0,Xt=zt=Ct=null,ph=!1,t)throw Error(oe(300));return e}function Nv(){var e=Cc!==0;return Cc=0,e}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?Ct.memoizedState=Xt=e:Xt=Xt.next=e,Xt}function fn(){if(zt===null){var e=Ct.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Xt===null?Ct.memoizedState:Xt.next;if(t!==null)Xt=t,zt=e;else{if(e===null)throw Error(oe(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Xt===null?Ct.memoizedState=Xt=e:Xt=Xt.next=e}return Xt}function Tc(e,t){return typeof t=="function"?t(e):t}function ay(e){var t=fn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=zt,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,l=null,u=o;do{var h=u.lane;if((Es&h)===h)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var m={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=m,s=n):l=l.next=m,Ct.lanes|=h,_s|=h}u=u.next}while(u!==null&&u!==o);l===null?s=n:l.next=a,An(n,t.memoizedState)||(Nr=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,Ct.lanes|=o,_s|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ly(e){var t=fn(),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);An(o,t.memoizedState)||(Nr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function kS(){}function LS(e,t){var r=Ct,n=fn(),i=t(),o=!An(n.memoizedState,i);if(o&&(n.memoizedState=i,Nr=!0),n=n.queue,kv(US.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Xt!==null&&Xt.memoizedState.tag&1){if(r.flags|=2048,Dc(9,$S.bind(null,r,n,i,t),void 0,null),Jt===null)throw Error(oe(349));(Es&30)!==0||FS(r,t,i)}return i}function FS(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ct.updateQueue,t===null?(t={lastEffect:null,stores:null},Ct.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function $S(e,t,r,n){t.value=r,t.getSnapshot=n,VS(t)&&BS(e)}function US(e,t,r){return r(function(){VS(t)&&BS(e)})}function VS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!An(e,r)}catch(n){return!0}}function BS(e){var t=gi(e,1);t!==null&&Rn(t,e,1,-1)}function l3(e){var t=jn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tc,lastRenderedState:e},t.queue=e,e=e.dispatch=SF.bind(null,Ct,e),[t.memoizedState,e]}function Dc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ct.updateQueue,t===null?(t={lastEffect:null,stores:null},Ct.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 jS(){return fn().memoizedState}function qd(e,t,r,n){var i=jn();Ct.flags|=e,i.memoizedState=Dc(1|t,r,void 0,n===void 0?null:n)}function Ph(e,t,r,n){var i=fn();n=n===void 0?null:n;var o=void 0;if(zt!==null){var s=zt.memoizedState;if(o=s.destroy,n!==null&&Ov(n,s.deps)){i.memoizedState=Dc(t,r,o,n);return}}Ct.flags|=e,i.memoizedState=Dc(1|t,r,o,n)}function u3(e,t){return qd(8390656,8,e,t)}function kv(e,t){return Ph(2048,8,e,t)}function zS(e,t){return Ph(4,2,e,t)}function HS(e,t){return Ph(4,4,e,t)}function KS(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 qS(e,t,r){return r=r!=null?r.concat([e]):null,Ph(4,4,KS.bind(null,t,e),r)}function Lv(){}function WS(e,t){var r=fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ov(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function GS(e,t){var r=fn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ov(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function YS(e,t,r){return(Es&21)===0?(e.baseState&&(e.baseState=!1,Nr=!0),e.memoizedState=r):(An(r,t)||(r=Q3(),Ct.lanes|=r,_s|=r,e.baseState=!0),t)}function EF(e,t){var r=Re;Re=r!==0&&4>r?r:4,e(!0);var n=sy.transition;sy.transition={};try{e(!1),t()}finally{Re=r,sy.transition=n}}function XS(){return fn().memoizedState}function _F(e,t,r){var n=ho(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},JS(e))QS(t,r);else if(r=PS(e,t,r,n),r!==null){var i=Tr();Rn(r,e,n,i),ZS(r,t,n)}}function SF(e,t,r){var n=ho(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(JS(e))QS(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,An(a,s)){var l=t.interleaved;l===null?(i.next=i,Dv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(u){}finally{}r=PS(e,t,i,n),r!==null&&(i=Tr(),Rn(r,e,n,i),ZS(r,t,n))}}function JS(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function QS(e,t){lc=ph=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZS(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hv(e,r)}}var mh={readContext:cn,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},CF={readContext:cn,useCallback:function(e,t){return jn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:u3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,qd(4194308,4,KS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qd(4194308,4,e,t)},useInsertionEffect:function(e,t){return qd(4,2,e,t)},useMemo:function(e,t){var r=jn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jn();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=_F.bind(null,Ct,e),[n.memoizedState,e]},useRef:function(e){var t=jn();return e={current:e},t.memoizedState=e},useState:l3,useDebugValue:Lv,useDeferredValue:function(e){return jn().memoizedState=e},useTransition:function(){var e=l3(!1),t=e[0];return e=EF.bind(null,e[1]),jn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ct,i=jn();if(Et){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Jt===null)throw Error(oe(349));(Es&30)!==0||FS(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,u3(US.bind(null,n,o,e),[e]),n.flags|=2048,Dc(9,$S.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=jn(),t=Jt.identifierPrefix;if(Et){var r=di,n=fi;r=(n&~(1<<32-In(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=bF++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},TF={readContext:cn,useCallback:WS,useContext:cn,useEffect:kv,useImperativeHandle:qS,useInsertionEffect:zS,useLayoutEffect:HS,useMemo:GS,useReducer:ay,useRef:jS,useState:function(){return ay(Tc)},useDebugValue:Lv,useDeferredValue:function(e){var t=fn();return YS(t,zt.memoizedState,e)},useTransition:function(){var e=ay(Tc)[0],t=fn().memoizedState;return[e,t]},useMutableSource:kS,useSyncExternalStore:LS,useId:XS,unstable_isNewReconciler:!1},DF={readContext:cn,useCallback:WS,useContext:cn,useEffect:kv,useImperativeHandle:qS,useInsertionEffect:zS,useLayoutEffect:HS,useMemo:GS,useReducer:ly,useRef:jS,useState:function(){return ly(Tc)},useDebugValue:Lv,useDeferredValue:function(e){var t=fn();return zt===null?t.memoizedState=e:YS(t,zt.memoizedState,e)},useTransition:function(){var e=ly(Tc)[0],t=fn().memoizedState;return[e,t]},useMutableSource:kS,useSyncExternalStore:LS,useId:XS,unstable_isNewReconciler:!1};function Ka(e,t){try{var r="",n=t;do r+=nL(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 Oy(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function hv(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var pU=typeof WeakMap=="function"?WeakMap:Map;function p6(e,t,r){r=ci(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Dh||(Dh=!0,_v=n),hv(e,t)},r}function m6(e,t,r){r=ci(-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(){hv(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){hv(e,t),typeof n!="function"&&(to===null?to=new Set([this]):to.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function S3(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new pU;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=DU.bind(null,e,t,r),t.then(e,e))}function C3(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 T3(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=ci(-1,1),t.tag=2,eo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var mU=mi.ReactCurrentOwner,Rr=!1;function br(e,t,r,n){t.child=e===null?WS(t,null,r,n):Ba(t,e.child,r,n)}function P3(e,t,r,n,i){r=r.render;var o=t.ref;return La(t,i),n=t1(e,t,r,n,o,i),r=r1(),e!==null&&!Rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pi(e,t,i)):(St&&r&&zv(t),t.flags|=1,br(e,t,n,i),t.child)}function D3(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!d1(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,g6(e,t,o,n,i)):(e=ah(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:Pc,r(s,n)&&e.ref===t.ref)return pi(e,t,i)}return t.flags|=1,e=no(o,n),e.ref=t.ref,e.return=t,t.child=e}function g6(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Pc(o,n)&&e.ref===t.ref)if(Rr=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Rr=!0);else return t.lanes=e.lanes,pi(e,t,i)}return pv(e,t,r,n,i)}function y6(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(Oa,Hr),Hr|=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(Oa,Hr),Hr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Le(Oa,Hr),Hr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Le(Oa,Hr),Hr|=n;return br(e,t,i,r),t.child}function v6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function pv(e,t,r,n,i){var o=Mr(r)?ys:hr.current;return o=Ua(t,o),La(t,i),r=t1(e,t,r,n,o,i),n=r1(),e!==null&&!Rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pi(e,t,i)):(St&&n&&zv(t),t.flags|=1,br(e,t,r,i),t.child)}function I3(e,t,r,n,i){if(Mr(r)){var o=!0;vh(t)}else o=!1;if(La(t,i),t.stateNode===null)ih(e,t),KS(t,r,n),dv(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=ln(l):(l=Mr(r)?ys:hr.current,l=Ua(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)&&x3(t,s,n,l),Ki=!1;var g=t.memoizedState;s.state=g,_h(t,n,s,i),u=t.memoizedState,a!==n||g!==u||Nr.current||Ki?(typeof p=="function"&&(fv(t,r,p,n),u=t.memoizedState),(a=Ki||w3(t,r,a,n,g,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,zS(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Pn(t.type,a),s.props=l,h=t.pendingProps,g=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=ln(u):(u=Mr(r)?ys:hr.current,u=Ua(t,u));var w=r.getDerivedStateFromProps;(p=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||g!==u)&&x3(t,s,n,u),Ki=!1,g=t.memoizedState,s.state=g,_h(t,n,s,i);var v=t.memoizedState;a!==h||g!==v||Nr.current||Ki?(typeof w=="function"&&(fv(t,r,w,n),v=t.memoizedState),(l=Ki||w3(t,r,l,n,g,v,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,v,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,v,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),s.props=n,s.state=v,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return mv(e,t,r,n,o,i)}function mv(e,t,r,n,i,o){v6(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&p3(t,r,!1),pi(e,t,o);n=t.stateNode,mU.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ba(t,e.child,null,o),t.child=Ba(t,null,a,o)):br(e,t,a,o),t.memoizedState=n.state,i&&p3(t,r,!0),t.child}function w6(e){var t=e.stateNode;t.pendingContext?h3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&h3(e,t.context,!1),Jv(e,t.containerInfo)}function A3(e,t,r,n,i){return Va(),Kv(i),t.flags|=256,br(e,t,r,n),t.child}var gv={dehydrated:null,treeContext:null,retryLane:0};function yv(e){return{baseLanes:e,cachePool:null,transitions:null}}function x6(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 lv(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=jh(s,n,0,null),e=gs(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=yv(r),t.memoizedState=gv,e):o1(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return gU(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=no(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=no(a,o):(o=gs(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?yv(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=gv,n}return o=e.child,e=o.sibling,n=no(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 o1(e,t){return t=jh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yd(e,t,r,n){return n!==null&&Kv(n),Ba(t,e.child,null,r),e=o1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gU(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=Oy(Error(oe(422))),Yd(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=jh({mode:"visible",children:n.children},i,0,null),o=gs(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Ba(t,e.child,null,s),t.child.memoizedState=yv(s),t.memoizedState=gv,o);if((t.mode&1)===0)return Yd(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=Oy(o,n,void 0),Yd(e,t,s,n)}if(a=(s&e.childLanes)!==0,Rr||a){if(n=Xt,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,hi(e,i),On(n,e,i,-1))}return f1(),n=Oy(Error(oe(421))),Yd(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=IU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Kr=Zi(i.nextSibling),qr=t,St=!0,In=null,e!==null&&(on[sn++]=ui,on[sn++]=li,on[sn++]=vs,ui=e.id,li=e.overflow,vs=t),t=o1(t,n.children),t.flags|=4096,t)}function O3(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),cv(e.return,t,r)}function Ry(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 b6(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(br(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&&O3(e,r,t);else if(e.tag===19)O3(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&&Sh(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ry(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&&Sh(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ry(t,!0,r,null,o);break;case"together":Ry(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ih(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),xs|=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=no(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=no(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function yU(e,t,r){switch(t.tag){case 3:w6(t),Va();break;case 5:GS(t);break;case 1:Mr(t.type)&&vh(t);break;case 4:Jv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Le(bh,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?x6(e,t,r):(Le(Tt,Tt.current&1),e=pi(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 b6(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,y6(e,t,r)}return pi(e,t,r)}var E6,vv,_6,S6;E6=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}};vv=function(){};_6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ps(qn.current);var o=null;switch(r){case"input":i=Vy(e,i),n=Vy(e,n),o=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),o=[];break;case"textarea":i=zy(e,i),n=zy(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=gh)}Ky(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"&&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)}};S6=function(e,t,r,n){r!==n&&(t.flags|=4)};function ic(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 fr(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 vU(e,t,r){var n=t.pendingProps;switch(Hv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(t),null;case 1:return Mr(t.type)&&yh(),fr(t),null;case 3:return n=t.stateNode,ja(),xt(Nr),xt(hr),Zv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,In!==null&&(Tv(In),In=null))),vv(e,t),fr(t),null;case 5:Qv(t);var i=ps(Rc.current);if(r=t.type,e!==null&&t.stateNode!=null)_6(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 fr(t),null}if(e=ps(qn.current),Wd(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Hn]=t,n[Ac]=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<cc.length;i++)wt(cc[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":U2(n,o),wt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},wt("invalid",n);break;case"textarea":B2(n,o),wt("invalid",n)}Ky(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&&qd(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&qd(n.textContent,a,e),i=["children",""+a]):xc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&wt("scroll",n)}switch(r){case"input":Md(n),V2(n,o,!0);break;case"textarea":Md(n),j2(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=gh)}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=J3(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[Hn]=t,e[Ac]=n,E6(e,t,!1,!1),t.stateNode=e;e:{switch(s=qy(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<cc.length;i++)wt(cc[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":U2(e,n),i=Vy(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":B2(e,n),i=zy(e,n),wt("invalid",e);break;default:i=n}Ky(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?eS(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Q3(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&bc(e,u):typeof u=="number"&&bc(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xc.hasOwnProperty(o)?u!=null&&o==="onScroll"&&wt("scroll",e):u!=null&&Iv(e,o,u,s))}switch(r){case"input":Md(e),V2(e,n,!1);break;case"textarea":Md(e),j2(e);break;case"option":n.value!=null&&e.setAttribute("value",""+io(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ra(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ra(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gh)}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 fr(t),null;case 6:if(e&&t.stateNode!=null)S6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=ps(Rc.current),ps(qn.current),Wd(t)){if(n=t.stateNode,r=t.memoizedProps,n[Hn]=t,(o=n.nodeValue!==r)&&(e=qr,e!==null))switch(e.tag){case 3:qd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qd(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Hn]=t,t.stateNode=n}return fr(t),null;case 13:if(xt(Tt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(St&&Kr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)BS(),Va(),t.flags|=98560,o=!1;else if(o=Wd(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[Hn]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;fr(t),o=!1}else In!==null&&(Tv(In),In=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?Ht===0&&(Ht=3):f1())),t.updateQueue!==null&&(t.flags|=4),fr(t),null);case 4:return ja(),vv(e,t),e===null&&Dc(t.stateNode.containerInfo),fr(t),null;case 10:return Gv(t.type._context),fr(t),null;case 17:return Mr(t.type)&&yh(),fr(t),null;case 19:if(xt(Tt),o=t.memoizedState,o===null)return fr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)ic(o,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Sh(e),s!==null){for(t.flags|=128,ic(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()>Ha&&(t.flags|=128,n=!0,ic(o,!1),t.lanes=4194304)}else{if(!n)if(e=Sh(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ic(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!St)return fr(t),null}else 2*kt()-o.renderingStartTime>Ha&&r!==1073741824&&(t.flags|=128,n=!0,ic(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):(fr(t),null);case 22:case 23:return c1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Hr&1073741824)!==0&&(fr(t),t.subtreeFlags&6&&(t.flags|=8192)):fr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function wU(e,t){switch(Hv(t),t.tag){case 1:return Mr(t.type)&&yh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja(),xt(Nr),xt(hr),Zv(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Qv(t),null;case 13:if(xt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(Tt),null;case 4:return ja(),null;case 10:return Gv(t.type._context),null;case 22:case 23:return c1(),null;case 24:return null;default:return null}}var Xd=!1,dr=!1,xU=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Aa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ot(e,t,n)}else r.current=null}function wv(e,t,r){try{r()}catch(n){Ot(e,t,n)}}var R3=!1;function bU(e,t){if(rv=hh,e=DS(),jv(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,g=null;t:for(;;){for(var w;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),(w=h.firstChild)!==null;)g=h,h=w;for(;;){if(h===e)break t;if(g===r&&++l===i&&(a=s),g===o&&++p===n&&(u=s),(w=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=w}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(nv={focusedElem:e,selectionRange:r},hh=!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 v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var _=v.memoizedProps,D=v.memoizedState,C=t.stateNode,I=C.getSnapshotBeforeUpdate(t.elementType===t.type?_:Pn(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){Ot(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return v=R3,R3=!1,v}function yc(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&&wv(t,r,o)}i=i.next}while(i!==n)}}function Vh(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 xv(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 C6(e){var t=e.alternate;t!==null&&(e.alternate=null,C6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hn],delete t[Ac],delete t[sv],delete t[nU],delete t[iU])),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 T6(e){return e.tag===5||e.tag===3||e.tag===4}function N3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T6(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 bv(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=gh));else if(n!==4&&(e=e.child,e!==null))for(bv(e,t,r),e=e.sibling;e!==null;)bv(e,t,r),e=e.sibling}function Ev(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(Ev(e,t,r),e=e.sibling;e!==null;)Ev(e,t,r),e=e.sibling}var Zt=null,Dn=!1;function zi(e,t,r){for(r=r.child;r!==null;)P6(e,t,r),r=r.sibling}function P6(e,t,r){if(Kn&&typeof Kn.onCommitFiberUnmount=="function")try{Kn.onCommitFiberUnmount(Rh,r)}catch(a){}switch(r.tag){case 5:dr||Aa(r,t);case 6:var n=Zt,i=Dn;Zt=null,zi(e,t,r),Zt=n,Dn=i,Zt!==null&&(Dn?(e=Zt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Zt.removeChild(r.stateNode));break;case 18:Zt!==null&&(Dn?(e=Zt,r=r.stateNode,e.nodeType===8?Cy(e.parentNode,r):e.nodeType===1&&Cy(e,r),Cc(e)):Cy(Zt,r.stateNode));break;case 4:n=Zt,i=Dn,Zt=r.stateNode.containerInfo,Dn=!0,zi(e,t,r),Zt=n,Dn=i;break;case 0:case 11:case 14:case 15:if(!dr&&(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)&&wv(r,t,s),i=i.next}while(i!==n)}zi(e,t,r);break;case 1:if(!dr&&(Aa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ot(r,t,a)}zi(e,t,r);break;case 21:zi(e,t,r);break;case 22:r.mode&1?(dr=(n=dr)||r.memoizedState!==null,zi(e,t,r),dr=n):zi(e,t,r);break;default:zi(e,t,r)}}function M3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new xU),t.forEach(function(n){var i=AU.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Tn(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:Zt=a.stateNode,Dn=!1;break e;case 3:Zt=a.stateNode.containerInfo,Dn=!0;break e;case 4:Zt=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(Zt===null)throw Error(oe(160));P6(o,s,i),Zt=null,Dn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Ot(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D6(t,e),t=t.sibling}function D6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tn(t,e),jn(e),n&4){try{yc(3,e,e.return),Vh(3,e)}catch(_){Ot(e,e.return,_)}try{yc(5,e,e.return)}catch(_){Ot(e,e.return,_)}}break;case 1:Tn(t,e),jn(e),n&512&&r!==null&&Aa(r,r.return);break;case 5:if(Tn(t,e),jn(e),n&512&&r!==null&&Aa(r,r.return),e.flags&32){var i=e.stateNode;try{bc(i,"")}catch(_){Ot(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&&Y3(i,o),qy(a,s);var l=qy(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?eS(i,h):p==="dangerouslySetInnerHTML"?Q3(i,h):p==="children"?bc(i,h):Iv(i,p,h,l)}switch(a){case"input":By(i,o);break;case"textarea":X3(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Ra(i,!!o.multiple,w,!1):g!==!!o.multiple&&(o.defaultValue!=null?Ra(i,!!o.multiple,o.defaultValue,!0):Ra(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ac]=o}catch(_){Ot(e,e.return,_)}}break;case 6:if(Tn(t,e),jn(e),n&4){if(e.stateNode===null)throw Error(oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Ot(e,e.return,_)}}break;case 3:if(Tn(t,e),jn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Cc(t.containerInfo)}catch(_){Ot(e,e.return,_)}break;case 4:Tn(t,e),jn(e);break;case 13:Tn(t,e),jn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(u1=kt())),n&4&&M3(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(dr=(l=dr)||p,Tn(t,e),dr=l):Tn(t,e),jn(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(g=ce,w=g.child,g.tag){case 0:case 11:case 14:case 15:yc(4,g,g.return);break;case 1:Aa(g,g.return);var v=g.stateNode;if(typeof v.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(_){Ot(n,r,_)}}break;case 5:Aa(g,g.return);break;case 22:if(g.memoizedState!==null){L3(h);continue}}w!==null?(w.return=g,ce=w):L3(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=Z3("display",s))}catch(_){Ot(e,e.return,_)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(_){Ot(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:Tn(t,e),jn(e),n&4&&M3(e);break;case 21:break;default:Tn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(T6(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&&(bc(i,""),n.flags&=-33);var o=N3(e);Ev(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=N3(e);bv(e,a,s);break;default:throw Error(oe(161))}}catch(u){Ot(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function EU(e,t,r){ce=e,I6(e,t,r)}function I6(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||Xd;if(!s){var a=i.alternate,u=a!==null&&a.memoizedState!==null||dr;a=Xd;var l=dr;if(Xd=s,(dr=u)&&!l)for(ce=i;ce!==null;)s=ce,u=s.child,s.tag===22&&s.memoizedState!==null?F3(i):u!==null?(u.return=s,ce=u):F3(i);for(;o!==null;)ce=o,I6(o,t,r),o=o.sibling;ce=i,Xd=a,dr=l}k3(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,ce=o):k3(e,t,r)}}function k3(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:dr||Vh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!dr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Pn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&v3(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}v3(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&&Cc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}dr||t.flags&512&&xv(t)}catch(g){Ot(t,t.return,g)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function L3(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 F3(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vh(4,t)}catch(u){Ot(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Ot(t,i,u)}}var o=t.return;try{xv(t)}catch(u){Ot(t,o,u)}break;case 5:var s=t.return;try{xv(t)}catch(u){Ot(t,s,u)}}}catch(u){Ot(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 _U=Math.ceil,Ph=mi.ReactCurrentDispatcher,s1=mi.ReactCurrentOwner,un=mi.ReactCurrentBatchConfig,Se=0,Xt=null,$t=null,er=0,Hr=0,Oa=ao(0),Ht=0,Lc=null,xs=0,Bh=0,a1=0,vc=null,Or=null,u1=0,Ha=1/0,si=null,Dh=!1,_v=null,to=null,Jd=!1,Yi=null,Ih=0,wc=0,Sv=null,oh=-1,sh=0;function Er(){return(Se&6)!==0?kt():oh!==-1?oh:oh=kt()}function ro(e){return(e.mode&1)===0?1:(Se&2)!==0&&er!==0?er&-er:sU.transition!==null?(sh===0&&(sh=dS()),sh):(e=Ae,e!==0||(e=window.event,e=e===void 0?16:wS(e.type)),e)}function On(e,t,r,n){if(50<wc)throw wc=0,Sv=null,Error(oe(185));Fc(e,r,n),((Se&2)===0||e!==Xt)&&(e===Xt&&((Se&2)===0&&(Bh|=r),Ht===4&&Wi(e,er)),kr(e,n),r===1&&Se===0&&(t.mode&1)===0&&(Ha=kt()+500,Fh&&uo()))}function kr(e,t){var r=e.callbackNode;u$(e,t);var n=dh(e,e===Xt?er:0);if(n===0)r!==null&&K2(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&K2(r),t===1)e.tag===0?oU($3.bind(null,e)):$S($3.bind(null,e)),tU(function(){(Se&6)===0&&uo()}),r=null;else{switch(hS(n)){case 1:r=Mv;break;case 4:r=cS;break;case 16:r=fh;break;case 536870912:r=fS;break;default:r=fh}r=F6(r,A6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function A6(e,t){if(oh=-1,sh=0,(Se&6)!==0)throw Error(oe(327));var r=e.callbackNode;if(Fa()&&e.callbackNode!==r)return null;var n=dh(e,e===Xt?er:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Ah(e,n);else{t=n;var i=Se;Se|=2;var o=R6();(Xt!==e||er!==t)&&(si=null,Ha=kt()+500,ms(e,t));do try{TU();break}catch(a){O6(e,a)}while(1);Wv(),Ph.current=o,Se=i,$t!==null?t=0:(Xt=null,er=0,t=Ht)}if(t!==0){if(t===2&&(i=Jy(e),i!==0&&(n=i,t=Cv(e,i))),t===1)throw r=Lc,ms(e,0),Wi(e,n),kr(e,kt()),r;if(t===6)Wi(e,n);else{if(i=e.current.alternate,(n&30)===0&&!SU(i)&&(t=Ah(e,n),t===2&&(o=Jy(e),o!==0&&(n=o,t=Cv(e,o))),t===1))throw r=Lc,ms(e,0),Wi(e,n),kr(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(oe(345));case 2:fs(e,Or,si);break;case 3:if(Wi(e,n),(n&130023424)===n&&(t=u1+500-kt(),10<t)){if(dh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Er(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ov(fs.bind(null,e,Or,si),t);break}fs(e,Or,si);break;case 4:if(Wi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-An(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*_U(n/1960))-n,10<n){e.timeoutHandle=ov(fs.bind(null,e,Or,si),n);break}fs(e,Or,si);break;case 5:fs(e,Or,si);break;default:throw Error(oe(329))}}}return kr(e,kt()),e.callbackNode===r?A6.bind(null,e):null}function Cv(e,t){var r=vc;return e.current.memoizedState.isDehydrated&&(ms(e,t).flags|=256),e=Ah(e,t),e!==2&&(t=Or,Or=r,t!==null&&Tv(t)),e}function Tv(e){Or===null?Or=e:Or.push.apply(Or,e)}function SU(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(!Rn(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 Wi(e,t){for(t&=~a1,t&=~Bh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-An(t),n=1<<r;e[r]=-1,t&=~n}}function $3(e){if((Se&6)!==0)throw Error(oe(327));Fa();var t=dh(e,0);if((t&1)===0)return kr(e,kt()),null;var r=Ah(e,t);if(e.tag!==0&&r===2){var n=Jy(e);n!==0&&(t=n,r=Cv(e,n))}if(r===1)throw r=Lc,ms(e,0),Wi(e,t),kr(e,kt()),r;if(r===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,fs(e,Or,si),kr(e,kt()),null}function l1(e,t){var r=Se;Se|=1;try{return e(t)}finally{Se=r,Se===0&&(Ha=kt()+500,Fh&&uo())}}function bs(e){Yi!==null&&Yi.tag===0&&(Se&6)===0&&Fa();var t=Se;Se|=1;var r=un.transition,n=Ae;try{if(un.transition=null,Ae=1,e)return e()}finally{Ae=n,un.transition=r,Se=t,(Se&6)===0&&uo()}}function c1(){Hr=Oa.current,xt(Oa)}function ms(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,eU(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(Hv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&yh();break;case 3:ja(),xt(Nr),xt(hr),Zv();break;case 5:Qv(n);break;case 4:ja();break;case 13:xt(Tt);break;case 19:xt(Tt);break;case 10:Gv(n.type._context);break;case 22:case 23:c1()}r=r.return}if(Xt=e,$t=e=no(e.current,null),er=Hr=t,Ht=0,Lc=null,a1=Bh=xs=0,Or=vc=null,hs!==null){for(t=0;t<hs.length;t++)if(r=hs[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}hs=null}return e}function O6(e,t){do{var r=$t;try{if(Wv(),rh.current=Th,Ch){for(var n=Pt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ch=!1}if(ws=0,Yt=zt=Pt=null,gc=!1,Nc=0,s1.current=null,r===null||r.return===null){Ht=1,Lc=t,$t=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=er,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 g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var w=C3(s);if(w!==null){w.flags&=-257,T3(w,s,a,o,t),w.mode&1&&S3(o,l,t),t=w,u=l;var v=t.updateQueue;if(v===null){var _=new Set;_.add(u),t.updateQueue=_}else v.add(u);break e}else{if((t&1)===0){S3(o,l,t),f1();break e}u=Error(oe(426))}}else if(St&&a.mode&1){var D=C3(s);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),T3(D,s,a,o,t),Kv(za(u,a));break e}}o=u=za(u,a),Ht!==4&&(Ht=2),vc===null?vc=[o]:vc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=p6(o,u,t);y3(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"&&(to===null||!to.has(P)))){o.flags|=65536,t&=-t,o.lanes|=t;var R=m6(o,a,t);y3(o,R);break e}}o=o.return}while(o!==null)}M6(r)}catch(U){t=U,$t===r&&r!==null&&($t=r=r.return);continue}break}while(1)}function R6(){var e=Ph.current;return Ph.current=Th,e===null?Th:e}function f1(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),Xt===null||(xs&268435455)===0&&(Bh&268435455)===0||Wi(Xt,er)}function Ah(e,t){var r=Se;Se|=2;var n=R6();(Xt!==e||er!==t)&&(si=null,ms(e,t));do try{CU();break}catch(i){O6(e,i)}while(1);if(Wv(),Se=r,Ph.current=n,$t!==null)throw Error(oe(261));return Xt=null,er=0,Ht}function CU(){for(;$t!==null;)N6($t)}function TU(){for(;$t!==null&&!ZF();)N6($t)}function N6(e){var t=L6(e.alternate,e,Hr);e.memoizedProps=e.pendingProps,t===null?M6(e):$t=t,s1.current=null}function M6(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=vU(r,t,Hr),r!==null){$t=r;return}}else{if(r=wU(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ht=6,$t=null;return}}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Ht===0&&(Ht=5)}function fs(e,t,r){var n=Ae,i=un.transition;try{un.transition=null,Ae=1,PU(e,t,r,n)}finally{un.transition=i,Ae=n}return null}function PU(e,t,r,n){do Fa();while(Yi!==null);if((Se&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(l$(e,o),e===Xt&&($t=Xt=null,er=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Jd||(Jd=!0,F6(fh,function(){return Fa(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=un.transition,un.transition=null;var s=Ae;Ae=1;var a=Se;Se|=4,s1.current=null,bU(e,r),D6(r,e),Y$(nv),hh=!!rv,nv=rv=null,e.current=r,EU(r,e,i),e$(),Se=a,Ae=s,un.transition=o}else e.current=r;if(Jd&&(Jd=!1,Yi=e,Ih=i),o=e.pendingLanes,o===0&&(to=null),n$(r.stateNode,n),kr(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(Dh)throw Dh=!1,e=_v,_v=null,e;return(Ih&1)!==0&&e.tag!==0&&Fa(),o=e.pendingLanes,(o&1)!==0?e===Sv?wc++:(wc=0,Sv=e):wc=0,uo(),null}function Fa(){if(Yi!==null){var e=hS(Ih),t=un.transition,r=Ae;try{if(un.transition=null,Ae=16>e?16:e,Yi===null)var n=!1;else{if(e=Yi,Yi=null,Ih=0,(Se&6)!==0)throw Error(oe(331));var i=Se;for(Se|=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:yc(8,p,o)}var h=p.child;if(h!==null)h.return=p,ce=h;else for(;ce!==null;){p=ce;var g=p.sibling,w=p.return;if(C6(p),p===l){ce=null;break}if(g!==null){g.return=w,ce=g;break}ce=w}}}var v=o.alternate;if(v!==null){var _=v.child;if(_!==null){v.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:yc(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:Vh(9,a)}}catch(U){Ot(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(Se=i,uo(),Kn&&typeof Kn.onPostCommitFiberRoot=="function")try{Kn.onPostCommitFiberRoot(Rh,e)}catch(U){}n=!0}return n}finally{Ae=r,un.transition=t}}return!1}function U3(e,t,r){t=za(r,t),t=p6(e,t,1),e=eo(e,t,1),t=Er(),e!==null&&(Fc(e,1,t),kr(e,t))}function Ot(e,t,r){if(e.tag===3)U3(e,e,r);else for(;t!==null;){if(t.tag===3){U3(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(to===null||!to.has(n))){e=za(r,e),e=m6(t,e,1),t=eo(t,e,1),e=Er(),t!==null&&(Fc(t,1,e),kr(t,e));break}}t=t.return}}function DU(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Er(),e.pingedLanes|=e.suspendedLanes&r,Xt===e&&(er&r)===r&&(Ht===4||Ht===3&&(er&130023424)===er&&500>kt()-u1?ms(e,0):a1|=r),kr(e,t)}function k6(e,t){t===0&&((e.mode&1)===0?t=1:(t=Fd,Fd<<=1,(Fd&130023424)===0&&(Fd=4194304)));var r=Er();e=hi(e,t),e!==null&&(Fc(e,t,r),kr(e,r))}function IU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),k6(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),k6(e,r)}var L6;L6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nr.current)Rr=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Rr=!1,yU(e,t,r);Rr=(e.flags&131072)!==0}else Rr=!1,St&&(t.flags&1048576)!==0&&US(t,xh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ih(e,t),e=t.pendingProps;var i=Ua(t,hr.current);La(t,r),i=t1(null,t,n,e,i,r);var o=r1();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,Mr(n)?(o=!0,vh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xv(t),i.updater=$h,t.stateNode=i,i._reactInternals=t,dv(t,n,e,r),t=mv(null,t,n,!0,o,r)):(t.tag=0,St&&o&&zv(t),br(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ih(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=RU(n),e=Pn(n,e),i){case 0:t=pv(null,t,n,e,r);break e;case 1:t=I3(null,t,n,e,r);break e;case 11:t=P3(null,t,n,e,r);break e;case 14:t=D3(null,t,n,Pn(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:Pn(n,i),pv(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),I3(e,t,n,i,r);case 3:e:{if(w6(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,zS(e,t),_h(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=za(Error(oe(423)),t),t=A3(e,t,n,r,i);break e}else if(n!==i){i=za(Error(oe(424)),t),t=A3(e,t,n,r,i);break e}else for(Kr=Zi(t.stateNode.containerInfo.firstChild),qr=t,St=!0,In=null,r=WS(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Va(),n===i){t=pi(e,t,r);break e}br(e,t,n,r)}t=t.child}return t;case 5:return GS(t),e===null&&lv(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,iv(n,i)?s=null:o!==null&&iv(n,o)&&(t.flags|=32),v6(e,t),br(e,t,s,r),t.child;case 6:return e===null&&lv(t),null;case 13:return x6(e,t,r);case 4:return Jv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ba(t,null,n,r):br(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),P3(e,t,n,i,r);case 7:return br(e,t,t.pendingProps,r),t.child;case 8:return br(e,t,t.pendingProps.children,r),t.child;case 12:return br(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(bh,n._currentValue),n._currentValue=s,o!==null)if(Rn(o.value,s)){if(o.children===i.children&&!Nr.current){t=pi(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=ci(-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),cv(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),cv(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}br(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,La(t,r),i=ln(i),n=n(i),t.flags|=1,br(e,t,n,r),t.child;case 14:return n=t.type,i=Pn(n,t.pendingProps),i=Pn(n.type,i),D3(e,t,n,i,r);case 15:return g6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),ih(e,t),t.tag=1,Mr(n)?(e=!0,vh(t)):e=!1,La(t,r),KS(t,n,i),dv(t,n,i,r),mv(null,t,n,!0,e,r);case 19:return b6(e,t,r);case 22:return y6(e,t,r)}throw Error(oe(156,t.tag))};function F6(e,t){return lS(e,t)}function OU(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 an(e,t,r,n){return new OU(e,t,r,n)}function d1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RU(e){if(typeof e=="function")return d1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ov)return 11;if(e===Rv)return 14}return 2}function no(e,t){var r=e.alternate;return r===null?(r=an(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 ah(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")d1(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ba:return gs(r.children,i,o,t);case Av:s=8,i|=8;break;case Ly:return e=an(12,r,t,i|2),e.elementType=Ly,e.lanes=o,e;case Fy:return e=an(13,r,t,i),e.elementType=Fy,e.lanes=o,e;case $y:return e=an(19,r,t,i),e.elementType=$y,e.lanes=o,e;case q3:return jh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H3:s=10;break e;case K3:s=9;break e;case Ov:s=11;break e;case Rv:s=14;break e;case Hi:s=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=an(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function gs(e,t,r,n){return e=an(7,e,n,t),e.lanes=r,e}function jh(e,t,r,n){return e=an(22,e,n,t),e.elementType=q3,e.lanes=r,e.stateNode={isHidden:!1},e}function Ny(e,t,r){return e=an(6,e,null,t),e.lanes=r,e}function My(e,t,r){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NU(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=yy(0),this.expirationTimes=yy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yy(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function h1(e,t,r,n,i,o,s,a,u){return e=new NU(e,t,r,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=an(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xv(o),e}function MU(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xa,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function $6(e){if(!e)return oo;e=e._reactInternals;e:{if(_s(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(Mr(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(Mr(r))return FS(e,r,t)}return t}function U6(e,t,r,n,i,o,s,a,u){return e=h1(r,n,!0,e,i,o,s,a,u),e.context=$6(null),r=e.current,n=Er(),i=ro(r),o=ci(n,i),o.callback=t!=null?t:null,eo(r,o,i),e.current.lanes=i,Fc(e,i,n),kr(e,n),e}function zh(e,t,r,n){var i=t.current,o=Er(),s=ro(i);return r=$6(r),t.context===null?t.context=r:t.pendingContext=r,t=ci(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=eo(i,t,s),e!==null&&(On(e,i,s,o),th(e,i,s)),s}function Oh(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 V3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function p1(e,t){V3(e,t),(e=e.alternate)&&V3(e,t)}function kU(){return null}var V6=typeof reportError=="function"?reportError:function(e){console.error(e)};function m1(e){this._internalRoot=e}Hh.prototype.render=m1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));zh(e,t,null,null)};Hh.prototype.unmount=m1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bs(function(){zh(null,e,null,null)}),t[di]=null}};function Hh(e){this._internalRoot=e}Hh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gS();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&&vS(e)}};function g1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function B3(){}function LU(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=Oh(s);o.call(l)}}var s=U6(t,n,e,0,null,!1,!1,"",B3);return e._reactRootContainer=s,e[di]=s.current,Dc(e.nodeType===8?e.parentNode:e),bs(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=Oh(u);a.call(l)}}var u=h1(e,0,!1,null,null,!1,!1,"",B3);return e._reactRootContainer=u,e[di]=u.current,Dc(e.nodeType===8?e.parentNode:e),bs(function(){zh(t,u,r,n)}),u}function qh(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=Oh(s);a.call(u)}}zh(t,s,e,i)}else s=LU(r,t,e,i,n);return Oh(s)}pS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=lc(t.pendingLanes);r!==0&&(kv(t,r|1),kr(t,kt()),(Se&6)===0&&(Ha=kt()+500,uo()))}break;case 13:bs(function(){var n=hi(e,1);if(n!==null){var i=Er();On(n,e,1,i)}}),p1(e,1)}};Lv=function(e){if(e.tag===13){var t=hi(e,134217728);if(t!==null){var r=Er();On(t,e,134217728,r)}p1(e,134217728)}};mS=function(e){if(e.tag===13){var t=ro(e),r=hi(e,t);if(r!==null){var n=Er();On(r,e,t,n)}p1(e,t)}};gS=function(){return Ae};yS=function(e,t){var r=Ae;try{return Ae=e,t()}finally{Ae=r}};Gy=function(e,t,r){switch(t){case"input":if(By(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=Lh(n);if(!i)throw Error(oe(90));G3(n),By(n,i)}}}break;case"textarea":X3(e,r);break;case"select":t=r.value,t!=null&&Ra(e,!!r.multiple,t,!1)}};nS=l1;iS=bs;var FU={usingClientEntryPoint:!1,Events:[Uc,Ca,Lh,tS,rS,l1]},oc={findFiberByHostInstance:ds,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},$U={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=aS(e),e===null?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||kU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(sc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!sc.isDisabled&&sc.supportsFiber))try{Rh=sc.inject($U),Kn=sc}catch(e){}var sc;Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FU;Yr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g1(t))throw Error(oe(200));return MU(e,t,null,r)};Yr.createRoot=function(e,t){if(!g1(e))throw Error(oe(299));var r=!1,n="",i=V6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=h1(e,1,!1,null,null,r,!1,n,i),e[di]=t.current,Dc(e.nodeType===8?e.parentNode:e),new m1(t)};Yr.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=aS(t),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return bs(e)};Yr.hydrate=function(e,t,r){if(!Kh(t))throw Error(oe(200));return qh(null,e,t,!0,r)};Yr.hydrateRoot=function(e,t,r){if(!g1(e))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=V6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=U6(t,null,e,1,r!=null?r:null,i,!1,o,s),e[di]=t.current,Dc(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 Hh(t)};Yr.render=function(e,t,r){if(!Kh(t))throw Error(oe(200));return qh(null,e,t,!1,r)};Yr.unmountComponentAtNode=function(e){if(!Kh(e))throw Error(oe(40));return e._reactRootContainer?(bs(function(){qh(null,null,e,!1,function(){e._reactRootContainer=null,e[di]=null})}),!0):!1};Yr.unstable_batchedUpdates=l1;Yr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Kh(r))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return qh(e,t,r,!1,n)};Yr.version="18.2.0-next-9e3b772b8-20220608"});var Ss=ee((wee,z6)=>{"use strict";c();d();f();function j6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j6)}catch(e){console.error(e)}}j6(),z6.exports=B6()});var K6=ee(y1=>{"use strict";c();d();f();var H6=Ss();y1.createRoot=H6.createRoot,y1.hydrateRoot=H6.hydrateRoot;var xee});var W6=ee((Eee,q6)=>{"use strict";c();d();f();var UU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";q6.exports=UU});var J6=ee((_ee,X6)=>{"use strict";c();d();f();var VU=W6();function G6(){}function Y6(){}Y6.resetWarningCache=G6;X6.exports=function(){function e(n,i,o,s,a,u){if(u!==VU){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:Y6,resetWarningCache:G6};return r.PropTypes=r,r}});var Z6=ee((Tee,Q6)=>{c();d();f();Q6.exports=J6()();var See,Cee});var B5=ee((Hte,V5)=>{c();d();f();V5.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 H5=ee((Kte,z5)=>{"use strict";c();d();f();var J9=B5(),j5={"text/plain":"Text","text/html":"Url",default:"Text"},Q9="Copy to clipboard: #{key}, Enter";function Z9(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function eV(e,t){var r,n,i,o,s,a,u=!1;t||(t={}),r=t.debug||!1;try{i=J9(),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=j5[t.format]||j5.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=Z9("message"in t?t.message:Q9),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return u}z5.exports=eV});var q5=ee((qte,K5)=>{c();d();f();K5.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ho=ee(Ts=>{c();d();f();var I1,tV=[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];Ts.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};Ts.getSymbolTotalCodewords=function(t){return tV[t]};Ts.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ts.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');I1=t};Ts.isKanjiModeEnabled=function(){return typeof I1<"u"};Ts.toSJIS=function(t){return I1(t)}});var np=ee(fn=>{c();d();f();fn.L={bit:1};fn.M={bit:0};fn.Q={bit:3};fn.H={bit:2};function rV(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return fn.L;case"m":case"medium":return fn.M;case"q":case"quartile":return fn.Q;case"h":case"high":return fn.H;default:throw new Error("Unknown EC Level: "+e)}}fn.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};fn.from=function(t,r){if(fn.isValid(t))return t;try{return rV(t)}catch(n){return r}}});var Y5=ee((Yte,G5)=>{c();d();f();function W5(){this.buffer=[],this.length=0}W5.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++}};G5.exports=W5});var J5=ee((Xte,X5)=>{c();d();f();function jc(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)}jc.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};jc.prototype.get=function(e,t){return this.data[e*this.size+t]};jc.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};jc.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};X5.exports=jc});var Q5=ee(ip=>{c();d();f();var nV=ho().getSymbolSize;ip.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=nV(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()};ip.getPositions=function(t){let r=[],n=ip.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 tC=ee(eC=>{c();d();f();var iV=ho().getSymbolSize,Z5=7;eC.getPositions=function(t){let r=iV(t);return[[0,0],[r-Z5,0],[0,r-Z5]]}});var rC=ee($e=>{c();d();f();$e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Ps={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+=Ps.N1+(i-5)),s=p,i=1),p=t.get(l,u),p===a?o++:(o>=5&&(n+=Ps.N1+(o-5)),a=p,o=1)}i>=5&&(n+=Ps.N1+(i-5)),o>=5&&(n+=Ps.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*Ps.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*Ps.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)*Ps.N4};function oV(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,oV(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 O1=ee(A1=>{c();d();f();var po=np(),op=[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],sp=[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];A1.getBlocksCount=function(t,r){switch(r){case po.L:return op[(t-1)*4+0];case po.M:return op[(t-1)*4+1];case po.Q:return op[(t-1)*4+2];case po.H:return op[(t-1)*4+3];default:return}};A1.getTotalCodewordsCount=function(t,r){switch(r){case po.L:return sp[(t-1)*4+0];case po.M:return sp[(t-1)*4+1];case po.Q:return sp[(t-1)*4+2];case po.H:return sp[(t-1)*4+3];default:return}}});var nC=ee(up=>{c();d();f();var zc=new Uint8Array(512),ap=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)zc[r]=t,ap[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)zc[r]=zc[r-255]})();up.log=function(t){if(t<1)throw new Error("log("+t+")");return ap[t]};up.exp=function(t){return zc[t]};up.mul=function(t,r){return t===0||r===0?0:zc[ap[t]+ap[r]]}});var iC=ee(Hc=>{c();d();f();var R1=nC();Hc.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]^=R1.mul(t[i],r[o]);return n};Hc.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]^=R1.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};Hc.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=Hc.mul(r,new Uint8Array([1,R1.exp(n)]));return r}});var aC=ee((nre,sC)=>{c();d();f();var oC=iC();function N1(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}N1.prototype.initialize=function(t){this.degree=t,this.genPoly=oC.generateECPolynomial(this.degree)};N1.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=oC.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};sC.exports=N1});var M1=ee(uC=>{c();d();f();uC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var k1=ee(vi=>{c();d();f();var lC="[0-9]+",sV="[A-Z $%*+\\-./:]+",Kc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Kc=Kc.replace(/u/g,"\\u");var aV="(?:(?![A-Z0-9 $%*+\\-./:]|"+Kc+`)(?:.|[\r
|
|
9
|
-
]))+`;
|
|
10
|
-
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};
|
|
11
|
-
Suggested mode is: `+
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function uy(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function Ky(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var PF=typeof WeakMap=="function"?WeakMap:Map;function e6(e,t,r){r=hi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yh||(yh=!0,tv=n),Ky(e,t)},r}function t6(e,t,r){r=hi(-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(){Ky(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Ky(e,t),typeof n!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function c3(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new PF;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=jF.bind(null,e,t,r),t.then(e,e))}function f3(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 d3(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=hi(-1,1),t.tag=2,co(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var IF=vi.ReactCurrentOwner,Nr=!1;function Cr(e,t,r,n){t.child=e===null?MS(t,null,r,n):za(t,e.child,r,n)}function h3(e,t,r,n,i){r=r.render;var o=t.ref;return $a(t,i),n=Mv(e,t,r,n,o,i),r=Nv(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yi(e,t,i)):(Et&&r&&bv(t),t.flags|=1,Cr(e,t,n,i),t.child)}function p3(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!Hv(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,r6(e,t,o,n,i)):(e=Xd(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:wc,r(s,n)&&e.ref===t.ref)return yi(e,t,i)}return t.flags|=1,e=po(o,n),e.ref=t.ref,e.return=t,t.child=e}function r6(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(wc(o,n)&&e.ref===t.ref)if(Nr=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Nr=!0);else return t.lanes=e.lanes,yi(e,t,i)}return qy(e,t,r,n,i)}function n6(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},ke(Ma,Kr),Kr|=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,ke(Ma,Kr),Kr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ke(Ma,Kr),Kr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ke(Ma,Kr),Kr|=n;return Cr(e,t,i,r),t.child}function i6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function qy(e,t,r,n,i){var o=Lr(r)?xs:mr.current;return o=Ba(t,o),$a(t,i),r=Mv(e,t,r,n,o,i),n=Nv(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yi(e,t,i)):(Et&&n&&bv(t),t.flags|=1,Cr(e,t,r,i),t.child)}function m3(e,t,r,n,i){if(Lr(r)){var o=!0;ah(t)}else o=!1;if($a(t,i),t.stateNode===null)Wd(e,t),AS(t,r,n),Hy(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=Lr(r)?xs:mr.current,u=Ba(t,u));var h=r.getDerivedStateFromProps,m=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&s3(t,s,n,u),to=!1;var g=t.memoizedState;s.state=g,dh(t,n,s,i),l=t.memoizedState,a!==n||g!==l||kr.current||to?(typeof h=="function"&&(zy(t,r,h,n),l=t.memoizedState),(a=to||o3(t,r,a,n,g,l,u))?(m||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=l),s.props=n,s.state=l,s.context=u,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,IS(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Tn(t.type,a),s.props=u,m=t.pendingProps,g=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=cn(l):(l=Lr(r)?xs:mr.current,l=Ba(t,l));var x=r.getDerivedStateFromProps;(h=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||g!==l)&&s3(t,s,n,l),to=!1,g=t.memoizedState,s.state=g,dh(t,n,s,i);var E=t.memoizedState;a!==m||g!==E||kr.current||to?(typeof x=="function"&&(zy(t,r,x,n),E=t.memoizedState),(u=to||o3(t,r,u,n,g,E,l)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,E,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,E,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=E),s.props=n,s.state=E,s.context=l,n=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return Wy(e,t,r,n,o,i)}function Wy(e,t,r,n,i,o){i6(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&e3(t,r,!1),yi(e,t,o);n=t.stateNode,IF.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=za(t,e.child,null,o),t.child=za(t,null,a,o)):Cr(e,t,a,o),t.memoizedState=n.state,i&&e3(t,r,!0),t.child}function o6(e){var t=e.stateNode;t.pendingContext?Z2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Z2(e,t.context,!1),Iv(e,t.containerInfo)}function g3(e,t,r,n,i){return ja(),_v(i),t.flags|=256,Cr(e,t,r,n),t.child}var Gy={dehydrated:null,treeContext:null,retryLane:0};function Yy(e){return{baseLanes:e,cachePool:null,transitions:null}}function s6(e,t,r){var n=t.pendingProps,i=St.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),ke(St,i&1),e===null)return By(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=Ah(s,n,0,null),e=ws(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Yy(r),t.memoizedState=Gy,e):Fv(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return RF(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=po(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=po(a,o):(o=ws(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?Yy(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Gy,n}return o=e.child,e=o.sibling,n=po(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=Ah({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $d(e,t,r,n){return n!==null&&_v(n),za(t,e.child,null,r),e=Fv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function RF(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=uy(Error(oe(422))),$d(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Ah({mode:"visible",children:n.children},i,0,null),o=ws(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&za(t,e.child,null,s),t.child.memoizedState=Yy(s),t.memoizedState=Gy,o);if((t.mode&1)===0)return $d(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=uy(o,n,void 0),$d(e,t,s,n)}if(a=(s&e.childLanes)!==0,Nr||a){if(n=Jt,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,gi(e,i),Rn(n,e,i,-1))}return zv(),n=uy(Error(oe(421))),$d(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=zF.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qr=uo(i.nextSibling),Wr=t,Et=!0,Pn=null,e!==null&&(sn[an++]=fi,sn[an++]=di,sn[an++]=bs,fi=e.id,di=e.overflow,bs=t),t=Fv(t,n.children),t.flags|=4096,t)}function y3(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),jy(e.return,t,r)}function cy(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 a6(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Cr(e,t,n.children,r),n=St.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&&y3(e,r,t);else if(e.tag===19)y3(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(ke(St,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&&hh(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),cy(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&&hh(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}cy(t,!0,r,null,o);break;case"together":cy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wd(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),_s|=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=po(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=po(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function AF(e,t,r){switch(t.tag){case 3:o6(t),ja();break;case 5:NS(t);break;case 1:Lr(t.type)&&ah(t);break;case 4:Iv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ke(ch,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(St,St.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?s6(e,t,r):(ke(St,St.current&1),e=yi(e,t,r),e!==null?e.sibling:null);ke(St,St.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return a6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ke(St,St.current),n)break;return null;case 22:case 23:return t.lanes=0,n6(e,t,r)}return yi(e,t,r)}var l6,Xy,u6,c6;l6=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}};Xy=function(){};u6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ys(Kn.current);var o=null;switch(r){case"input":i=vy(e,i),n=vy(e,n),o=[];break;case"select":i=Tt({},i,{value:void 0}),n=Tt({},n,{value:void 0}),o=[];break;case"textarea":i=by(e,i),n=by(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=oh)}_y(r,n);var s;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(dc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(dc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&yt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};c6=function(e,t,r,n){r!==n&&(t.flags|=4)};function Xu(e,t){if(!Et)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 hr(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 OF(e,t,r){var n=t.pendingProps;switch(Ev(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(t),null;case 1:return Lr(t.type)&&sh(),hr(t),null;case 3:return n=t.stateNode,Ha(),vt(kr),vt(mr),Av(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ld(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pn!==null&&(iv(Pn),Pn=null))),Xy(e,t),hr(t),null;case 5:Rv(t);var i=ys(Sc.current);if(r=t.type,e!==null&&t.stateNode!=null)u6(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 hr(t),null}if(e=ys(Kn.current),Ld(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[zn]=t,n[Ec]=o,e=(t.mode&1)!==0,r){case"dialog":yt("cancel",n),yt("close",n);break;case"iframe":case"object":case"embed":yt("load",n);break;case"video":case"audio":for(i=0;i<rc.length;i++)yt(rc[i],n);break;case"source":yt("error",n);break;case"img":case"image":case"link":yt("error",n),yt("load",n);break;case"details":yt("toggle",n);break;case"input":C2(n,o),yt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},yt("invalid",n);break;case"textarea":D2(n,o),yt("invalid",n)}_y(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&&kd(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&kd(n.textContent,a,e),i=["children",""+a]):dc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&yt("scroll",n)}switch(r){case"input":_d(n),T2(n,o,!0);break;case"textarea":_d(n),P2(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=oh)}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=F3(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[zn]=t,e[Ec]=n,l6(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sy(r,n),r){case"dialog":yt("cancel",e),yt("close",e),i=n;break;case"iframe":case"object":case"embed":yt("load",e),i=n;break;case"video":case"audio":for(i=0;i<rc.length;i++)yt(rc[i],e);i=n;break;case"source":yt("error",e),i=n;break;case"img":case"image":case"link":yt("error",e),yt("load",e),i=n;break;case"details":yt("toggle",e),i=n;break;case"input":C2(e,n),i=vy(e,n),yt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Tt({},n,{value:void 0}),yt("invalid",e);break;case"textarea":D2(e,n),i=by(e,n),yt("invalid",e);break;default:i=n}_y(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?V3(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&$3(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&hc(e,l):typeof l=="number"&&hc(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(dc.hasOwnProperty(o)?l!=null&&o==="onScroll"&&yt("scroll",e):l!=null&&av(e,o,l,s))}switch(r){case"input":_d(e),T2(e,n,!1);break;case"textarea":_d(e),P2(e);break;case"option":n.value!=null&&e.setAttribute("value",""+mo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Na(e,!!n.multiple,o,!1):n.defaultValue!=null&&Na(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=oh)}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 hr(t),null;case 6:if(e&&t.stateNode!=null)c6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=ys(Sc.current),ys(Kn.current),Ld(t)){if(n=t.stateNode,r=t.memoizedProps,n[zn]=t,(o=n.nodeValue!==r)&&(e=Wr,e!==null))switch(e.tag){case 3:kd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kd(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[zn]=t,t.stateNode=n}return hr(t),null;case 13:if(vt(St),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Et&&qr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)DS(),ja(),t.flags|=98560,o=!1;else if(o=Ld(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[zn]=t}else ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;hr(t),o=!1}else Pn!==null&&(iv(Pn),Pn=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||(St.current&1)!==0?Ht===0&&(Ht=3):zv())),t.updateQueue!==null&&(t.flags|=4),hr(t),null);case 4:return Ha(),Xy(e,t),e===null&&xc(t.stateNode.containerInfo),hr(t),null;case 10:return Tv(t.type._context),hr(t),null;case 17:return Lr(t.type)&&sh(),hr(t),null;case 19:if(vt(St),o=t.memoizedState,o===null)return hr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Xu(o,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=hh(e),s!==null){for(t.flags|=128,Xu(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 ke(St,St.current&1|2),t.child}e=e.sibling}o.tail!==null&&Nt()>qa&&(t.flags|=128,n=!0,Xu(o,!1),t.lanes=4194304)}else{if(!n)if(e=hh(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Et)return hr(t),null}else 2*Nt()-o.renderingStartTime>qa&&r!==1073741824&&(t.flags|=128,n=!0,Xu(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=Nt(),t.sibling=null,r=St.current,ke(St,n?r&1|2:r&1),t):(hr(t),null);case 22:case 23:return jv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Kr&1073741824)!==0&&(hr(t),t.subtreeFlags&6&&(t.flags|=8192)):hr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function MF(e,t){switch(Ev(t),t.tag){case 1:return Lr(t.type)&&sh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ha(),vt(kr),vt(mr),Av(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Rv(t),null;case 13:if(vt(St),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(St),null;case 4:return Ha(),null;case 10:return Tv(t.type._context),null;case 22:case 23:return jv(),null;case 24:return null;default:return null}}var Ud=!1,pr=!1,NF=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Oa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Rt(e,t,n)}else r.current=null}function Jy(e,t,r){try{r()}catch(n){Rt(e,t,n)}}var v3=!1;function kF(e,t){if(Ny=rh,e=pS(),xv(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(O){r=null;break e}var s=0,a=-1,l=-1,u=0,h=0,m=e,g=null;t:for(;;){for(var x;m!==r||i!==0&&m.nodeType!==3||(a=s+i),m!==o||n!==0&&m.nodeType!==3||(l=s+n),m.nodeType===3&&(s+=m.nodeValue.length),(x=m.firstChild)!==null;)g=m,m=x;for(;;){if(m===e)break t;if(g===r&&++u===i&&(a=s),g===o&&++h===n&&(l=s),(x=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=x}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ky={focusedElem:e,selectionRange:r},rh=!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 E=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var _=E.memoizedProps,A=E.memoizedState,C=t.stateNode,P=C.getSnapshotBeforeUpdate(t.elementType===t.type?_:Tn(t.type,_),A);C.__reactInternalSnapshotBeforeUpdate=P}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(O){Rt(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return E=v3,v3=!1,E}function uc(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&&Jy(t,r,o)}i=i.next}while(i!==n)}}function Ih(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 Qy(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 f6(e){var t=e.alternate;t!==null&&(e.alternate=null,f6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zn],delete t[Ec],delete t[$y],delete t[yF],delete t[vF])),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 d6(e){return e.tag===5||e.tag===3||e.tag===4}function w3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d6(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 Zy(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=oh));else if(n!==4&&(e=e.child,e!==null))for(Zy(e,t,r),e=e.sibling;e!==null;)Zy(e,t,r),e=e.sibling}function ev(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(ev(e,t,r),e=e.sibling;e!==null;)ev(e,t,r),e=e.sibling}var nr=null,Dn=!1;function Zi(e,t,r){for(r=r.child;r!==null;)h6(e,t,r),r=r.sibling}function h6(e,t,r){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(bh,r)}catch(a){}switch(r.tag){case 5:pr||Oa(r,t);case 6:var n=nr,i=Dn;nr=null,Zi(e,t,r),nr=n,Dn=i,nr!==null&&(Dn?(e=nr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nr.removeChild(r.stateNode));break;case 18:nr!==null&&(Dn?(e=nr,r=r.stateNode,e.nodeType===8?ny(e.parentNode,r):e.nodeType===1&&ny(e,r),yc(e)):ny(nr,r.stateNode));break;case 4:n=nr,i=Dn,nr=r.stateNode.containerInfo,Dn=!0,Zi(e,t,r),nr=n,Dn=i;break;case 0:case 11:case 14:case 15:if(!pr&&(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)&&Jy(r,t,s),i=i.next}while(i!==n)}Zi(e,t,r);break;case 1:if(!pr&&(Oa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Rt(r,t,a)}Zi(e,t,r);break;case 21:Zi(e,t,r);break;case 22:r.mode&1?(pr=(n=pr)||r.memoizedState!==null,Zi(e,t,r),pr=n):Zi(e,t,r);break;default:Zi(e,t,r)}}function x3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new NF),t.forEach(function(n){var i=HF.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Cn(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,Dn=!1;break e;case 3:nr=a.stateNode.containerInfo,Dn=!0;break e;case 4:nr=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(nr===null)throw Error(oe(160));h6(o,s,i),nr=null,Dn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Rt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)p6(t,e),t=t.sibling}function p6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cn(t,e),Bn(e),n&4){try{uc(3,e,e.return),Ih(3,e)}catch(_){Rt(e,e.return,_)}try{uc(5,e,e.return)}catch(_){Rt(e,e.return,_)}}break;case 1:Cn(t,e),Bn(e),n&512&&r!==null&&Oa(r,r.return);break;case 5:if(Cn(t,e),Bn(e),n&512&&r!==null&&Oa(r,r.return),e.flags&32){var i=e.stateNode;try{hc(i,"")}catch(_){Rt(e,e.return,_)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&k3(i,o),Sy(a,s);var u=Sy(a,o);for(s=0;s<l.length;s+=2){var h=l[s],m=l[s+1];h==="style"?V3(i,m):h==="dangerouslySetInnerHTML"?$3(i,m):h==="children"?hc(i,m):av(i,h,m,u)}switch(a){case"input":wy(i,o);break;case"textarea":L3(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?Na(i,!!o.multiple,x,!1):g!==!!o.multiple&&(o.defaultValue!=null?Na(i,!!o.multiple,o.defaultValue,!0):Na(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ec]=o}catch(_){Rt(e,e.return,_)}}break;case 6:if(Cn(t,e),Bn(e),n&4){if(e.stateNode===null)throw Error(oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Rt(e,e.return,_)}}break;case 3:if(Cn(t,e),Bn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{yc(t.containerInfo)}catch(_){Rt(e,e.return,_)}break;case 4:Cn(t,e),Bn(e);break;case 13:Cn(t,e),Bn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Vv=Nt())),n&4&&x3(e);break;case 22:if(h=r!==null&&r.memoizedState!==null,e.mode&1?(pr=(u=pr)||h,Cn(t,e),pr=u):Cn(t,e),Bn(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&(e.mode&1)!==0)for(ce=e,h=e.child;h!==null;){for(m=ce=h;ce!==null;){switch(g=ce,x=g.child,g.tag){case 0:case 11:case 14:case 15:uc(4,g,g.return);break;case 1:Oa(g,g.return);var E=g.stateNode;if(typeof E.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,E.props=t.memoizedProps,E.state=t.memoizedState,E.componentWillUnmount()}catch(_){Rt(n,r,_)}}break;case 5:Oa(g,g.return);break;case 22:if(g.memoizedState!==null){E3(m);continue}}x!==null?(x.return=g,ce=x):E3(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{i=m.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=m.stateNode,l=m.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=U3("display",s))}catch(_){Rt(e,e.return,_)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(_){Rt(e,e.return,_)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Cn(t,e),Bn(e),n&4&&x3(e);break;case 21:break;default:Cn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(d6(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&&(hc(i,""),n.flags&=-33);var o=w3(e);ev(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=w3(e);Zy(e,a,s);break;default:throw Error(oe(161))}}catch(l){Rt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function LF(e,t,r){ce=e,m6(e,t,r)}function m6(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||Ud;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||pr;a=Ud;var u=pr;if(Ud=s,(pr=l)&&!u)for(ce=i;ce!==null;)s=ce,l=s.child,s.tag===22&&s.memoizedState!==null?_3(i):l!==null?(l.return=s,ce=l):_3(i);for(;o!==null;)ce=o,m6(o,t,r),o=o.sibling;ce=i,Ud=a,pr=u}b3(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,ce=o):b3(e,t,r)}}function b3(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:pr||Ih(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!pr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Tn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&i3(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}i3(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&yc(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}pr||t.flags&512&&Qy(t)}catch(g){Rt(t,t.return,g)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function E3(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 _3(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ih(4,t)}catch(l){Rt(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Rt(t,i,l)}}var o=t.return;try{Qy(t)}catch(l){Rt(t,o,l)}break;case 5:var s=t.return;try{Qy(t)}catch(l){Rt(t,s,l)}}}catch(l){Rt(t,t.return,l)}if(t===e){ce=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ce=a;break}ce=t.return}}var FF=Math.ceil,gh=vi.ReactCurrentDispatcher,$v=vi.ReactCurrentOwner,un=vi.ReactCurrentBatchConfig,Ce=0,Jt=null,$t=null,ir=0,Kr=0,Ma=vo(0),Ht=0,Pc=null,_s=0,Rh=0,Uv=0,cc=null,Mr=null,Vv=0,qa=1/0,ui=null,yh=!1,tv=null,fo=null,Vd=!1,oo=null,vh=0,fc=0,rv=null,Gd=-1,Yd=0;function Tr(){return(Ce&6)!==0?Nt():Gd!==-1?Gd:Gd=Nt()}function ho(e){return(e.mode&1)===0?1:(Ce&2)!==0&&ir!==0?ir&-ir:xF.transition!==null?(Yd===0&&(Yd=Q3()),Yd):(e=Re,e!==0||(e=window.event,e=e===void 0?16:oS(e.type)),e)}function Rn(e,t,r,n){if(50<fc)throw fc=0,rv=null,Error(oe(185));Ic(e,r,n),((Ce&2)===0||e!==Jt)&&(e===Jt&&((Ce&2)===0&&(Rh|=r),Ht===4&&no(e,ir)),Fr(e,n),r===1&&Ce===0&&(t.mode&1)===0&&(qa=Nt()+500,Th&&wo()))}function Fr(e,t){var r=e.callbackNode;EL(e,t);var n=th(e,e===Jt?ir:0);if(n===0)r!==null&&A2(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&A2(r),t===1)e.tag===0?wF(S3.bind(null,e)):SS(S3.bind(null,e)),mF(function(){(Ce&6)===0&&wo()}),r=null;else{switch(Z3(n)){case 1:r=dv;break;case 4:r=X3;break;case 16:r=eh;break;case 536870912:r=J3;break;default:r=eh}r=_6(r,g6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function g6(e,t){if(Gd=-1,Yd=0,(Ce&6)!==0)throw Error(oe(327));var r=e.callbackNode;if(Ua()&&e.callbackNode!==r)return null;var n=th(e,e===Jt?ir:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=wh(e,n);else{t=n;var i=Ce;Ce|=2;var o=v6();(Jt!==e||ir!==t)&&(ui=null,qa=Nt()+500,vs(e,t));do try{VF();break}catch(a){y6(e,a)}while(1);Cv(),gh.current=o,Ce=i,$t!==null?t=0:(Jt=null,ir=0,t=Ht)}if(t!==0){if(t===2&&(i=Iy(e),i!==0&&(n=i,t=nv(e,i))),t===1)throw r=Pc,vs(e,0),no(e,n),Fr(e,Nt()),r;if(t===6)no(e,n);else{if(i=e.current.alternate,(n&30)===0&&!$F(i)&&(t=wh(e,n),t===2&&(o=Iy(e),o!==0&&(n=o,t=nv(e,o))),t===1))throw r=Pc,vs(e,0),no(e,n),Fr(e,Nt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(oe(345));case 2:ps(e,Mr,ui);break;case 3:if(no(e,n),(n&130023424)===n&&(t=Vv+500-Nt(),10<t)){if(th(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Tr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Fy(ps.bind(null,e,Mr,ui),t);break}ps(e,Mr,ui);break;case 4:if(no(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-In(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=Nt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*FF(n/1960))-n,10<n){e.timeoutHandle=Fy(ps.bind(null,e,Mr,ui),n);break}ps(e,Mr,ui);break;case 5:ps(e,Mr,ui);break;default:throw Error(oe(329))}}}return Fr(e,Nt()),e.callbackNode===r?g6.bind(null,e):null}function nv(e,t){var r=cc;return e.current.memoizedState.isDehydrated&&(vs(e,t).flags|=256),e=wh(e,t),e!==2&&(t=Mr,Mr=r,t!==null&&iv(t)),e}function iv(e){Mr===null?Mr=e:Mr.push.apply(Mr,e)}function $F(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(!An(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 no(e,t){for(t&=~Uv,t&=~Rh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-In(t),n=1<<r;e[r]=-1,t&=~n}}function S3(e){if((Ce&6)!==0)throw Error(oe(327));Ua();var t=th(e,0);if((t&1)===0)return Fr(e,Nt()),null;var r=wh(e,t);if(e.tag!==0&&r===2){var n=Iy(e);n!==0&&(t=n,r=nv(e,n))}if(r===1)throw r=Pc,vs(e,0),no(e,t),Fr(e,Nt()),r;if(r===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ps(e,Mr,ui),Fr(e,Nt()),null}function Bv(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(qa=Nt()+500,Th&&wo())}}function Ss(e){oo!==null&&oo.tag===0&&(Ce&6)===0&&Ua();var t=Ce;Ce|=1;var r=un.transition,n=Re;try{if(un.transition=null,Re=1,e)return e()}finally{Re=n,un.transition=r,Ce=t,(Ce&6)===0&&wo()}}function jv(){Kr=Ma.current,vt(Ma)}function vs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,pF(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(Ev(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&sh();break;case 3:Ha(),vt(kr),vt(mr),Av();break;case 5:Rv(n);break;case 4:Ha();break;case 13:vt(St);break;case 19:vt(St);break;case 10:Tv(n.type._context);break;case 22:case 23:jv()}r=r.return}if(Jt=e,$t=e=po(e.current,null),ir=Kr=t,Ht=0,Pc=null,Uv=Rh=_s=0,Mr=cc=null,gs!==null){for(t=0;t<gs.length;t++)if(r=gs[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}gs=null}return e}function y6(e,t){do{var r=$t;try{if(Cv(),Kd.current=mh,ph){for(var n=Ct.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ph=!1}if(Es=0,Xt=zt=Ct=null,lc=!1,Cc=0,$v.current=null,r===null||r.return===null){Ht=1,Pc=t,$t=null;break}e:{var o=e,s=r.return,a=r,l=t;if(t=ir,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,h=a,m=h.tag;if((h.mode&1)===0&&(m===0||m===11||m===15)){var g=h.alternate;g?(h.updateQueue=g.updateQueue,h.memoizedState=g.memoizedState,h.lanes=g.lanes):(h.updateQueue=null,h.memoizedState=null)}var x=f3(s);if(x!==null){x.flags&=-257,d3(x,s,a,o,t),x.mode&1&&c3(o,u,t),t=x,l=u;var E=t.updateQueue;if(E===null){var _=new Set;_.add(l),t.updateQueue=_}else E.add(l);break e}else{if((t&1)===0){c3(o,u,t),zv();break e}l=Error(oe(426))}}else if(Et&&a.mode&1){var A=f3(s);if(A!==null){(A.flags&65536)===0&&(A.flags|=256),d3(A,s,a,o,t),_v(Ka(l,a));break e}}o=l=Ka(l,a),Ht!==4&&(Ht=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,l,t);n3(o,C);break e;case 1:a=l;var P=o.type,D=o.stateNode;if((o.flags&128)===0&&(typeof P.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(fo===null||!fo.has(D)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=t6(o,a,t);n3(o,O);break e}}o=o.return}while(o!==null)}x6(r)}catch($){t=$,$t===r&&r!==null&&($t=r=r.return);continue}break}while(1)}function v6(){var e=gh.current;return gh.current=mh,e===null?mh:e}function zv(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),Jt===null||(_s&268435455)===0&&(Rh&268435455)===0||no(Jt,ir)}function wh(e,t){var r=Ce;Ce|=2;var n=v6();(Jt!==e||ir!==t)&&(ui=null,vs(e,t));do try{UF();break}catch(i){y6(e,i)}while(1);if(Cv(),Ce=r,gh.current=n,$t!==null)throw Error(oe(261));return Jt=null,ir=0,Ht}function UF(){for(;$t!==null;)w6($t)}function VF(){for(;$t!==null&&!hL();)w6($t)}function w6(e){var t=E6(e.alternate,e,Kr);e.memoizedProps=e.pendingProps,t===null?x6(e):$t=t,$v.current=null}function x6(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=OF(r,t,Kr),r!==null){$t=r;return}}else{if(r=MF(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ht=6,$t=null;return}}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Ht===0&&(Ht=5)}function ps(e,t,r){var n=Re,i=un.transition;try{un.transition=null,Re=1,BF(e,t,r,n)}finally{un.transition=i,Re=n}return null}function BF(e,t,r,n){do Ua();while(oo!==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(_L(e,o),e===Jt&&($t=Jt=null,ir=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Vd||(Vd=!0,_6(eh,function(){return Ua(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=un.transition,un.transition=null;var s=Re;Re=1;var a=Ce;Ce|=4,$v.current=null,kF(e,r),p6(r,e),uF(ky),rh=!!Ny,ky=Ny=null,e.current=r,LF(r,e,i),pL(),Ce=a,Re=s,un.transition=o}else e.current=r;if(Vd&&(Vd=!1,oo=e,vh=i),o=e.pendingLanes,o===0&&(fo=null),yL(r.stateNode,n),Fr(e,Nt()),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(yh)throw yh=!1,e=tv,tv=null,e;return(vh&1)!==0&&e.tag!==0&&Ua(),o=e.pendingLanes,(o&1)!==0?e===rv?fc++:(fc=0,rv=e):fc=0,wo(),null}function Ua(){if(oo!==null){var e=Z3(vh),t=un.transition,r=Re;try{if(un.transition=null,Re=16>e?16:e,oo===null)var n=!1;else{if(e=oo,oo=null,vh=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 l=0;l<a.length;l++){var u=a[l];for(ce=u;ce!==null;){var h=ce;switch(h.tag){case 0:case 11:case 15:uc(8,h,o)}var m=h.child;if(m!==null)m.return=h,ce=m;else for(;ce!==null;){h=ce;var g=h.sibling,x=h.return;if(f6(h),h===u){ce=null;break}if(g!==null){g.return=x,ce=g;break}ce=x}}}var E=o.alternate;if(E!==null){var _=E.child;if(_!==null){E.child=null;do{var A=_.sibling;_.sibling=null,_=A}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:uc(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,ce=C;break e}ce=o.return}}var P=e.current;for(ce=P;ce!==null;){s=ce;var D=s.child;if((s.subtreeFlags&2064)!==0&&D!==null)D.return=s,ce=D;else e:for(s=P;ce!==null;){if(a=ce,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Ih(9,a)}}catch($){Rt(a,a.return,$)}if(a===s){ce=null;break e}var O=a.sibling;if(O!==null){O.return=a.return,ce=O;break e}ce=a.return}}if(Ce=i,wo(),Hn&&typeof Hn.onPostCommitFiberRoot=="function")try{Hn.onPostCommitFiberRoot(bh,e)}catch($){}n=!0}return n}finally{Re=r,un.transition=t}}return!1}function C3(e,t,r){t=Ka(r,t),t=e6(e,t,1),e=co(e,t,1),t=Tr(),e!==null&&(Ic(e,1,t),Fr(e,t))}function Rt(e,t,r){if(e.tag===3)C3(e,e,r);else for(;t!==null;){if(t.tag===3){C3(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fo===null||!fo.has(n))){e=Ka(r,e),e=t6(t,e,1),t=co(t,e,1),e=Tr(),t!==null&&(Ic(t,1,e),Fr(t,e));break}}t=t.return}}function jF(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Tr(),e.pingedLanes|=e.suspendedLanes&r,Jt===e&&(ir&r)===r&&(Ht===4||Ht===3&&(ir&130023424)===ir&&500>Nt()-Vv?vs(e,0):Uv|=r),Fr(e,t)}function b6(e,t){t===0&&((e.mode&1)===0?t=1:(t=Td,Td<<=1,(Td&130023424)===0&&(Td=4194304)));var r=Tr();e=gi(e,t),e!==null&&(Ic(e,t,r),Fr(e,r))}function zF(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),b6(e,r)}function HF(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),b6(e,r)}var E6;E6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kr.current)Nr=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Nr=!1,AF(e,t,r);Nr=(e.flags&131072)!==0}else Nr=!1,Et&&(t.flags&1048576)!==0&&CS(t,uh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Wd(e,t),e=t.pendingProps;var i=Ba(t,mr.current);$a(t,r),i=Mv(null,t,n,e,i,r);var o=Nv();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,Lr(n)?(o=!0,ah(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pv(t),i.updater=Dh,t.stateNode=i,i._reactInternals=t,Hy(t,n,e,r),t=Wy(null,t,n,!0,o,r)):(t.tag=0,Et&&o&&bv(t),Cr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Wd(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=qF(n),e=Tn(n,e),i){case 0:t=qy(null,t,n,e,r);break e;case 1:t=m3(null,t,n,e,r);break e;case 11:t=h3(null,t,n,e,r);break e;case 14:t=p3(null,t,n,Tn(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:Tn(n,i),qy(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tn(n,i),m3(e,t,n,i,r);case 3:e:{if(o6(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,IS(e,t),dh(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=Ka(Error(oe(423)),t),t=g3(e,t,n,r,i);break e}else if(n!==i){i=Ka(Error(oe(424)),t),t=g3(e,t,n,r,i);break e}else for(qr=uo(t.stateNode.containerInfo.firstChild),Wr=t,Et=!0,Pn=null,r=MS(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ja(),n===i){t=yi(e,t,r);break e}Cr(e,t,n,r)}t=t.child}return t;case 5:return NS(t),e===null&&By(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ly(n,i)?s=null:o!==null&&Ly(n,o)&&(t.flags|=32),i6(e,t),Cr(e,t,s,r),t.child;case 6:return e===null&&By(t),null;case 13:return s6(e,t,r);case 4:return Iv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=za(t,null,n,r):Cr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tn(n,i),h3(e,t,n,i,r);case 7:return Cr(e,t,t.pendingProps,r),t.child;case 8:return Cr(e,t,t.pendingProps.children,r),t.child;case 12:return Cr(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,ke(ch,n._currentValue),n._currentValue=s,o!==null)if(An(o.value,s)){if(o.children===i.children&&!kr.current){t=yi(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 l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=hi(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),jy(o.return,r,t),a.lanes|=r;break}l=l.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),jy(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}Cr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,$a(t,r),i=cn(i),n=n(i),t.flags|=1,Cr(e,t,n,r),t.child;case 14:return n=t.type,i=Tn(n,t.pendingProps),i=Tn(n.type,i),p3(e,t,n,i,r);case 15:return r6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Tn(n,i),Wd(e,t),t.tag=1,Lr(n)?(e=!0,ah(t)):e=!1,$a(t,r),AS(t,n,i),Hy(t,n,i,r),Wy(null,t,n,!0,e,r);case 19:return a6(e,t,r);case 22:return n6(e,t,r)}throw Error(oe(156,t.tag))};function _6(e,t){return Y3(e,t)}function KF(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 ln(e,t,r,n){return new KF(e,t,r,n)}function Hv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qF(e){if(typeof e=="function")return Hv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uv)return 11;if(e===cv)return 14}return 2}function po(e,t){var r=e.alternate;return r===null?(r=ln(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 Xd(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")Hv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case _a:return ws(r.children,i,o,t);case lv:s=8,i|=8;break;case py:return e=ln(12,r,t,i|2),e.elementType=py,e.lanes=o,e;case my:return e=ln(13,r,t,i),e.elementType=my,e.lanes=o,e;case gy:return e=ln(19,r,t,i),e.elementType=gy,e.lanes=o,e;case O3:return Ah(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R3:s=10;break e;case A3:s=9;break e;case uv:s=11;break e;case cv:s=14;break e;case eo:s=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=ln(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function ws(e,t,r,n){return e=ln(7,e,n,t),e.lanes=r,e}function Ah(e,t,r,n){return e=ln(22,e,n,t),e.elementType=O3,e.lanes=r,e.stateNode={isHidden:!1},e}function fy(e,t,r){return e=ln(6,e,null,t),e.lanes=r,e}function dy(e,t,r){return t=ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WF(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=Yg(0),this.expirationTimes=Yg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yg(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Kv(e,t,r,n,i,o,s,a,l){return e=new WF(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ln(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pv(o),e}function GF(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ea,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function S6(e){if(!e)return go;e=e._reactInternals;e:{if(Ts(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(Lr(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(Lr(r))return _S(e,r,t)}return t}function C6(e,t,r,n,i,o,s,a,l){return e=Kv(r,n,!0,e,i,o,s,a,l),e.context=S6(null),r=e.current,n=Tr(),i=ho(r),o=hi(n,i),o.callback=t!=null?t:null,co(r,o,i),e.current.lanes=i,Ic(e,i,n),Fr(e,n),e}function Oh(e,t,r,n){var i=t.current,o=Tr(),s=ho(i);return r=S6(r),t.context===null?t.context=r:t.pendingContext=r,t=hi(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=co(i,t,s),e!==null&&(Rn(e,i,s,o),Hd(e,i,s)),s}function xh(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 T3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function qv(e,t){T3(e,t),(e=e.alternate)&&T3(e,t)}function YF(){return null}var T6=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wv(e){this._internalRoot=e}Mh.prototype.render=Wv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));Oh(e,t,null,null)};Mh.prototype.unmount=Wv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ss(function(){Oh(null,e,null,null)}),t[mi]=null}};function Mh(e){this._internalRoot=e}Mh.prototype.unstable_scheduleHydration=function(e){if(e){var t=rS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ro.length&&t!==0&&t<ro[r].priority;r++);ro.splice(r,0,e),r===0&&iS(e)}};function Gv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function D3(){}function XF(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var u=xh(s);o.call(u)}}var s=C6(t,n,e,0,null,!1,!1,"",D3);return e._reactRootContainer=s,e[mi]=s.current,xc(e.nodeType===8?e.parentNode:e),Ss(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var u=xh(l);a.call(u)}}var l=Kv(e,0,!1,null,null,!1,!1,"",D3);return e._reactRootContainer=l,e[mi]=l.current,xc(e.nodeType===8?e.parentNode:e),Ss(function(){Oh(t,l,r,n)}),l}function kh(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=xh(s);a.call(l)}}Oh(t,s,e,i)}else s=XF(r,t,e,i,n);return xh(s)}eS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=tc(t.pendingLanes);r!==0&&(hv(t,r|1),Fr(t,Nt()),(Ce&6)===0&&(qa=Nt()+500,wo()))}break;case 13:Ss(function(){var n=gi(e,1);if(n!==null){var i=Tr();Rn(n,e,1,i)}}),qv(e,1)}};pv=function(e){if(e.tag===13){var t=gi(e,134217728);if(t!==null){var r=Tr();Rn(t,e,134217728,r)}qv(e,134217728)}};tS=function(e){if(e.tag===13){var t=ho(e),r=gi(e,t);if(r!==null){var n=Tr();Rn(r,e,t,n)}qv(e,t)}};rS=function(){return Re};nS=function(e,t){var r=Re;try{return Re=e,t()}finally{Re=r}};Ty=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=Ch(n);if(!i)throw Error(oe(90));N3(n),wy(n,i)}}}break;case"textarea":L3(e,r);break;case"select":t=r.value,t!=null&&Na(e,!!r.multiple,t,!1)}};z3=Bv;H3=Ss;var JF={usingClientEntryPoint:!1,Events:[Ac,Da,Ch,B3,j3,Bv]},Ju={findFiberByHostInstance:ms,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},QF={bundleType:Ju.bundleType,version:Ju.version,rendererPackageName:Ju.rendererPackageName,rendererConfig:Ju.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=W3(e),e===null?null:e.stateNode},findFiberByHostInstance:Ju.findFiberByHostInstance||YF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Qu.isDisabled&&Qu.supportsFiber))try{bh=Qu.inject(QF),Hn=Qu}catch(e){}var Qu;Xr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JF;Xr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gv(t))throw Error(oe(200));return GF(e,t,null,r)};Xr.createRoot=function(e,t){if(!Gv(e))throw Error(oe(299));var r=!1,n="",i=T6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Kv(e,1,!1,null,null,r,!1,n,i),e[mi]=t.current,xc(e.nodeType===8?e.parentNode:e),new Wv(t)};Xr.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=W3(t),e=e===null?null:e.stateNode,e};Xr.flushSync=function(e){return Ss(e)};Xr.hydrate=function(e,t,r){if(!Nh(t))throw Error(oe(200));return kh(null,e,t,!0,r)};Xr.hydrateRoot=function(e,t,r){if(!Gv(e))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=T6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=C6(t,null,e,1,r!=null?r:null,i,!1,o,s),e[mi]=t.current,xc(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 Mh(t)};Xr.render=function(e,t,r){if(!Nh(t))throw Error(oe(200));return kh(null,e,t,!1,r)};Xr.unmountComponentAtNode=function(e){if(!Nh(e))throw Error(oe(40));return e._reactRootContainer?(Ss(function(){kh(null,null,e,!1,function(){e._reactRootContainer=null,e[mi]=null})}),!0):!1};Xr.unstable_batchedUpdates=Bv;Xr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Nh(r))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return kh(e,t,r,!1,n)};Xr.version="18.2.0-next-9e3b772b8-20220608"});var Ds=te((NQ,I6)=>{"use strict";c();d();f();function P6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P6)}catch(e){console.error(e)}}P6(),I6.exports=D6()});var A6=te(Yv=>{"use strict";c();d();f();var R6=Ds();Yv.createRoot=R6.createRoot,Yv.hydrateRoot=R6.hydrateRoot;var kQ});var M6=te((FQ,O6)=>{"use strict";c();d();f();var ZF="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";O6.exports=ZF});var F6=te(($Q,L6)=>{"use strict";c();d();f();var e$=M6();function N6(){}function k6(){}k6.resetWarningCache=N6;L6.exports=function(){function e(n,i,o,s,a,l){if(l!==e$){var u=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 u.name="Invariant Violation",u}}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:k6,resetWarningCache:N6};return r.PropTypes=r,r}});var U6=te((BQ,$6)=>{c();d();f();$6.exports=F6()();var UQ,VQ});var D5=te((oee,T5)=>{c();d();f();T5.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 R5=te((see,I5)=>{"use strict";c();d();f();var f9=D5(),P5={"text/plain":"Text","text/html":"Url",default:"Text"},d9="Copy to clipboard: #{key}, Enter";function h9(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function p9(e,t){var r,n,i,o,s,a,l=!1;t||(t={}),r=t.debug||!1;try{i=f9(),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(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=P5[t.format]||P5.default;window.clipboardData.setData(m,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(h){r&&console.error("unable to copy using execCommand: ",h),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(m){r&&console.error("unable to copy using clipboardData: ",m),r&&console.error("falling back to prompt"),n=h9("message"in t?t.message:d9),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}I5.exports=p9});var O5=te((aee,A5)=>{c();d();f();A5.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var _o=te(Is=>{c();d();f();var a1,m9=[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];Is.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};Is.getSymbolTotalCodewords=function(t){return m9[t]};Is.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Is.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');a1=t};Is.isKanjiModeEnabled=function(){return typeof a1<"u"};Is.toSJIS=function(t){return a1(t)}});var qh=te(dn=>{c();d();f();dn.L={bit:1};dn.M={bit:0};dn.Q={bit:3};dn.H={bit:2};function g9(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return dn.L;case"m":case"medium":return dn.M;case"q":case"quartile":return dn.Q;case"h":case"high":return dn.H;default:throw new Error("Unknown EC Level: "+e)}}dn.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};dn.from=function(t,r){if(dn.isValid(t))return t;try{return g9(t)}catch(n){return r}}});var k5=te((cee,N5)=>{c();d();f();function M5(){this.buffer=[],this.length=0}M5.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++}};N5.exports=M5});var F5=te((fee,L5)=>{c();d();f();function Nc(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)}Nc.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};Nc.prototype.get=function(e,t){return this.data[e*this.size+t]};Nc.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Nc.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};L5.exports=Nc});var $5=te(Wh=>{c();d();f();var y9=_o().getSymbolSize;Wh.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=y9(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()};Wh.getPositions=function(t){let r=[],n=Wh.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 B5=te(V5=>{c();d();f();var v9=_o().getSymbolSize,U5=7;V5.getPositions=function(t){let r=v9(t);return[[0,0],[r-U5,0],[0,r-U5]]}});var j5=te(Fe=>{c();d();f();Fe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Rs={N1:3,N2:3,N3:40,N4:10};Fe.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Fe.from=function(t){return Fe.isValid(t)?parseInt(t,10):void 0};Fe.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<r;l++){i=o=0,s=a=null;for(let u=0;u<r;u++){let h=t.get(l,u);h===s?i++:(i>=5&&(n+=Rs.N1+(i-5)),s=h,i=1),h=t.get(u,l),h===a?o++:(o>=5&&(n+=Rs.N1+(o-5)),a=h,o=1)}i>=5&&(n+=Rs.N1+(i-5)),o>=5&&(n+=Rs.N1+(o-5))}return n};Fe.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*Rs.N2};Fe.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*Rs.N3};Fe.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)*Rs.N4};function w9(e,t,r){switch(e){case Fe.Patterns.PATTERN000:return(t+r)%2===0;case Fe.Patterns.PATTERN001:return t%2===0;case Fe.Patterns.PATTERN010:return r%3===0;case Fe.Patterns.PATTERN011:return(t+r)%3===0;case Fe.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Fe.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Fe.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Fe.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Fe.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,w9(t,o,i))};Fe.getBestMask=function(t,r){let n=Object.keys(Fe.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),Fe.applyMask(s,t);let a=Fe.getPenaltyN1(t)+Fe.getPenaltyN2(t)+Fe.getPenaltyN3(t)+Fe.getPenaltyN4(t);Fe.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var u1=te(l1=>{c();d();f();var So=qh(),Gh=[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],Yh=[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];l1.getBlocksCount=function(t,r){switch(r){case So.L:return Gh[(t-1)*4+0];case So.M:return Gh[(t-1)*4+1];case So.Q:return Gh[(t-1)*4+2];case So.H:return Gh[(t-1)*4+3];default:return}};l1.getTotalCodewordsCount=function(t,r){switch(r){case So.L:return Yh[(t-1)*4+0];case So.M:return Yh[(t-1)*4+1];case So.Q:return Yh[(t-1)*4+2];case So.H:return Yh[(t-1)*4+3];default:return}}});var z5=te(Jh=>{c();d();f();var kc=new Uint8Array(512),Xh=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)kc[r]=t,Xh[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)kc[r]=kc[r-255]})();Jh.log=function(t){if(t<1)throw new Error("log("+t+")");return Xh[t]};Jh.exp=function(t){return kc[t]};Jh.mul=function(t,r){return t===0||r===0?0:kc[Xh[t]+Xh[r]]}});var H5=te(Lc=>{c();d();f();var c1=z5();Lc.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]^=c1.mul(t[i],r[o]);return n};Lc.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]^=c1.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};Lc.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=Lc.mul(r,new Uint8Array([1,c1.exp(n)]));return r}});var W5=te((vee,q5)=>{c();d();f();var K5=H5();function f1(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}f1.prototype.initialize=function(t){this.degree=t,this.genPoly=K5.generateECPolynomial(this.degree)};f1.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=K5.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};q5.exports=f1});var d1=te(G5=>{c();d();f();G5.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var h1=te(bi=>{c();d();f();var Y5="[0-9]+",x9="[A-Z $%*+\\-./:]+",Fc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Fc=Fc.replace(/u/g,"\\u");var b9="(?:(?![A-Z0-9 $%*+\\-./:]|"+Fc+`)(?:.|[\r
|
|
9
|
+
]))+`;bi.KANJI=new RegExp(Fc,"g");bi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");bi.BYTE=new RegExp(b9,"g");bi.NUMERIC=new RegExp(Y5,"g");bi.ALPHANUMERIC=new RegExp(x9,"g");var E9=new RegExp("^"+Fc+"$"),_9=new RegExp("^"+Y5+"$"),S9=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");bi.testKanji=function(t){return E9.test(t)};bi.testNumeric=function(t){return _9.test(t)};bi.testAlphanumeric=function(t){return S9.test(t)}});var Co=te(Ut=>{c();d();f();var C9=d1(),p1=h1();Ut.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};Ut.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};Ut.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};Ut.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};Ut.MIXED={bit:-1};Ut.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!C9.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Ut.getBestModeForData=function(t){return p1.testNumeric(t)?Ut.NUMERIC:p1.testAlphanumeric(t)?Ut.ALPHANUMERIC:p1.testKanji(t)?Ut.KANJI:Ut.BYTE};Ut.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ut.isValid=function(t){return t&&t.bit&&t.ccBits};function T9(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ut.NUMERIC;case"alphanumeric":return Ut.ALPHANUMERIC;case"kanji":return Ut.KANJI;case"byte":return Ut.BYTE;default:throw new Error("Unknown mode: "+e)}}Ut.from=function(t,r){if(Ut.isValid(t))return t;try{return T9(t)}catch(n){return r}}});var eC=te(As=>{c();d();f();var Qh=_o(),D9=u1(),X5=qh(),To=Co(),m1=d1(),Q5=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,J5=Qh.getBCHDigit(Q5);function P9(e,t,r){for(let n=1;n<=40;n++)if(t<=As.getCapacity(n,r,e))return n}function Z5(e,t){return To.getCharCountIndicator(e,t)+4}function I9(e,t){let r=0;return e.forEach(function(n){r+=Z5(n.mode,t)+n.getBitsLength()}),r}function R9(e,t){for(let r=1;r<=40;r++)if(I9(e,r)<=As.getCapacity(r,t,To.MIXED))return r}As.from=function(t,r){return m1.isValid(t)?parseInt(t,10):r};As.getCapacity=function(t,r,n){if(!m1.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=To.BYTE);let i=Qh.getSymbolTotalCodewords(t),o=D9.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===To.MIXED)return s;let a=s-Z5(n,t);switch(n){case To.NUMERIC:return Math.floor(a/10*3);case To.ALPHANUMERIC:return Math.floor(a/11*2);case To.KANJI:return Math.floor(a/13);case To.BYTE:default:return Math.floor(a/8)}};As.getBestVersionForData=function(t,r){let n,i=X5.from(r,X5.M);if(Array.isArray(t)){if(t.length>1)return R9(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return P9(n.mode,n.getLength(),i)};As.getEncodedBits=function(t){if(!m1.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;Qh.getBCHDigit(r)-J5>=0;)r^=Q5<<Qh.getBCHDigit(r)-J5;return t<<12|r}});var iC=te(nC=>{c();d();f();var g1=_o(),rC=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,A9=1<<14|1<<12|1<<10|1<<4|1<<1,tC=g1.getBCHDigit(rC);nC.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;g1.getBCHDigit(i)-tC>=0;)i^=rC<<g1.getBCHDigit(i)-tC;return(n<<10|i)^A9}});var sC=te((See,oC)=>{c();d();f();var O9=Co();function el(e){this.mode=O9.NUMERIC,this.data=e.toString()}el.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};el.prototype.getLength=function(){return this.data.length};el.prototype.getBitsLength=function(){return el.getBitsLength(this.data.length)};el.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))};oC.exports=el});var lC=te((Cee,aC)=>{c();d();f();var M9=Co(),y1=["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 tl(e){this.mode=M9.ALPHANUMERIC,this.data=e}tl.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};tl.prototype.getLength=function(){return this.data.length};tl.prototype.getBitsLength=function(){return tl.getBitsLength(this.data.length)};tl.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=y1.indexOf(this.data[r])*45;n+=y1.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(y1.indexOf(this.data[r]),6)};aC.exports=tl});var cC=te((Tee,uC)=>{"use strict";c();d();f();uC.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 dC=te((Dee,fC)=>{c();d();f();var N9=cC(),k9=Co();function rl(e){this.mode=k9.BYTE,typeof e=="string"&&(e=N9(e)),this.data=new Uint8Array(e)}rl.getBitsLength=function(t){return t*8};rl.prototype.getLength=function(){return this.data.length};rl.prototype.getBitsLength=function(){return rl.getBitsLength(this.data.length)};rl.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};fC.exports=rl});var pC=te((Pee,hC)=>{c();d();f();var L9=Co(),F9=_o();function nl(e){this.mode=L9.KANJI,this.data=e}nl.getBitsLength=function(t){return t*13};nl.prototype.getLength=function(){return this.data.length};nl.prototype.getBitsLength=function(){return nl.getBitsLength(this.data.length)};nl.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=F9.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)}};hC.exports=nl});var mC=te((Iee,v1)=>{"use strict";c();d();f();var $c={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=$c.PriorityQueue.make();o.push(t,0);for(var s,a,l,u,h,m,g,x,E;!o.empty();){s=o.pop(),a=s.value,u=s.cost,h=e[a]||{};for(l in h)h.hasOwnProperty(l)&&(m=h[l],g=u+m,x=i[l],E=typeof i[l]>"u",(E||x>g)&&(i[l]=g,o.push(l,g),n[l]=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=$c.single_source_shortest_paths(e,t,r);return $c.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=$c.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 v1<"u"&&(v1.exports=$c)});var _C=te(il=>{c();d();f();var Pe=Co(),vC=sC(),wC=lC(),xC=dC(),bC=pC(),Uc=h1(),Zh=_o(),$9=mC();function gC(e){return unescape(encodeURIComponent(e)).length}function Vc(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 EC(e){let t=Vc(Uc.NUMERIC,Pe.NUMERIC,e),r=Vc(Uc.ALPHANUMERIC,Pe.ALPHANUMERIC,e),n,i;return Zh.isKanjiModeEnabled()?(n=Vc(Uc.BYTE,Pe.BYTE,e),i=Vc(Uc.KANJI,Pe.KANJI,e)):(n=Vc(Uc.BYTE_KANJI,Pe.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 w1(e,t){switch(t){case Pe.NUMERIC:return vC.getBitsLength(e);case Pe.ALPHANUMERIC:return wC.getBitsLength(e);case Pe.KANJI:return bC.getBitsLength(e);case Pe.BYTE:return xC.getBitsLength(e)}}function U9(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 V9(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case Pe.NUMERIC:t.push([n,{data:n.data,mode:Pe.ALPHANUMERIC,length:n.length},{data:n.data,mode:Pe.BYTE,length:n.length}]);break;case Pe.ALPHANUMERIC:t.push([n,{data:n.data,mode:Pe.BYTE,length:n.length}]);break;case Pe.KANJI:t.push([n,{data:n.data,mode:Pe.BYTE,length:gC(n.data)}]);break;case Pe.BYTE:t.push([{data:n.data,mode:Pe.BYTE,length:gC(n.data)}])}}return t}function B9(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let l=0;l<s.length;l++){let u=s[l],h=""+o+l;a.push(h),r[h]={node:u,lastCount:0},n[h]={};for(let m=0;m<i.length;m++){let g=i[m];r[g]&&r[g].node.mode===u.mode?(n[g][h]=w1(r[g].lastCount+u.length,u.mode)-w1(r[g].lastCount,u.mode),r[g].lastCount+=u.length):(r[g]&&(r[g].lastCount=u.length),n[g][h]=w1(u.length,u.mode)+4+Pe.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function yC(e,t){let r,n=Pe.getBestModeForData(e);if(r=Pe.from(t,n),r!==Pe.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Pe.toString(r)+`.
|
|
11
|
+
Suggested mode is: `+Pe.toString(n));switch(r===Pe.KANJI&&!Zh.isKanjiModeEnabled()&&(r=Pe.BYTE),r){case Pe.NUMERIC:return new vC(e);case Pe.ALPHANUMERIC:return new wC(e);case Pe.KANJI:return new bC(e);case Pe.BYTE:return new xC(e)}}il.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(yC(n,null)):n.data&&r.push(yC(n.data,n.mode)),r},[])};il.fromString=function(t,r){let n=EC(t,Zh.isKanjiModeEnabled()),i=V9(n),o=B9(i,r),s=$9.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return il.fromArray(U9(a))};il.rawSplit=function(t){return il.fromArray(EC(t,Zh.isKanjiModeEnabled()))}});var CC=te(SC=>{c();d();f();var tp=_o(),x1=qh(),j9=k5(),z9=F5(),H9=$5(),K9=B5(),_1=j5(),S1=u1(),q9=W5(),ep=eC(),W9=iC(),G9=Co(),b1=_C();function Y9(e,t){let r=e.size,n=K9.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 l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,s+l,!0,!0):e.set(o+a,s+l,!1,!0))}}function X9(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 J9(e,t){let r=H9.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 Q9(e,t){let r=e.size,n=ep.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 E1(e,t,r){let n=e.size,i=W9.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 Z9(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 l=0;l<2;l++)if(!e.isReserved(i,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>o&1)===1),e.set(i,a-l,u),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function eU(e,t,r){let n=new j9;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),G9.getCharCountIndicator(l.mode,e)),l.write(n)});let i=tp.getSymbolTotalCodewords(e),o=S1.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 l=0;l<a;l++)n.put(l%2?17:236,8);return tU(n,e,t)}function tU(e,t,r){let n=tp.getSymbolTotalCodewords(t),i=S1.getTotalCodewordsCount(t,r),o=n-i,s=S1.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),h=Math.floor(o/s),m=h+1,g=u-h,x=new q9(g),E=0,_=new Array(s),A=new Array(s),C=0,P=new Uint8Array(e.buffer);for(let F=0;F<s;F++){let U=F<l?h:m;_[F]=P.slice(E,E+U),A[F]=x.encode(_[F]),E+=U,C=Math.max(C,U)}let D=new Uint8Array(n),O=0,$,j;for($=0;$<C;$++)for(j=0;j<s;j++)$<_[j].length&&(D[O++]=_[j][$]);for($=0;$<g;$++)for(j=0;j<s;j++)D[O++]=A[j][$];return D}function rU(e,t,r,n){let i;if(Array.isArray(e))i=b1.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let h=b1.rawSplit(e);u=ep.getBestVersionForData(h,r)}i=b1.fromString(e,u||40)}else throw new Error("Invalid data");let o=ep.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
12
|
The chosen QR Code version cannot contain this amount of data.
|
|
13
13
|
Minimum version required to store current data is: `+o+`.
|
|
14
|
-
`);let s=
|
|
15
|
-
`;return typeof n=="function"&&n(null,g),g}});var qC=ee(Yc=>{c();d();f();var WV=q5(),X1=UC(),KC=BC(),GV=HC();function J1(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!WV())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=X1.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=X1.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Yc.create=X1.create;Yc.toCanvas=J1.bind(null,KC.render);Yc.toDataURL=J1.bind(null,KC.renderToDataURL);Yc.toString=J1.bind(null,function(e,t,r){return GV.render(e,r)})});var _T=ee(rw=>{"use strict";c();d();f();Object.defineProperty(rw,"__esModule",{value:!0});function lB(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}rw.default=lB});var ST=ee(nw=>{"use strict";c();d();f();Object.defineProperty(nw,"__esModule",{value:!0});function cB(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var fB=cB(_T()),dB=/^((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)-.*))$/,hB=fB(function(e){return dB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});nw.default=hB});var q8=ee((Tpe,mm)=>{c();d();f();var b8,E8,_8,S8,C8,T8,P8,D8,I8,A8,O8,R8,N8,hm,Zw,M8,k8,L8,Hu,F8,$8,U8,V8,B8,j8,z8,H8,K8,pm;(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 mm=="object"&&typeof mm.exports=="object"?e(r(t,r(mm.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])};b8=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)},E8=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},_8=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},S8=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},C8=function(n,i){return function(o,s){i(o,s,n)}},T8=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",g=!i&&n?s.static?n:n.prototype:null,w=i||(g?Object.getOwnPropertyDescriptor(g,s.name):{}),v,_=!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:w.get,set:w.set}:w[h],C);if(p==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(v=l(P.get))&&(w.get=v),(v=l(P.set))&&(w.set=v),(v=l(P.init))&&a.push(v)}else(v=l(P))&&(p==="field"?a.push(v):w[h]=v)}g&&Object.defineProperty(g,s.name,w),_=!0},P8=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},D8=function(n){return typeof n=="symbol"?n:"".concat(n)},I8=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})},A8=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},O8=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(w){try{g(s.next(w))}catch(v){l(v)}}function h(w){try{g(s.throw(w))}catch(v){l(v)}}function g(w){w.done?u(w.value):a(w.value).then(p,h)}g((s=s.apply(n,i||[])).next())})},R8=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(g){return function(w){return h([g,w])}}function h(g){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,g[0]&&(o=0)),o;)try{if(s=1,a&&(u=g[0]&2?a.return:g[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,g[1])).done)return u;switch(a=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,a=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){o.label=g[1];break}if(g[0]===6&&o.label<u[1]){o.label=u[1],u=g;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(g);break}u[2]&&o.ops.pop(),o.trys.pop();continue}g=i.call(n,o)}catch(w){g=[6,w],a=0}finally{s=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},N8=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&pm(i,n,o)},pm=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]},hm=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.")},Zw=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},M8=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Zw(arguments[i]));return n},k8=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},L8=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))},Hu=function(n){return this instanceof Hu?(this.v=n,this):new Hu(n)},F8=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){v(u[0][3],C)}}function h(_){_.value instanceof Hu?Promise.resolve(_.value.v).then(g,w):v(u[0][2],_)}function g(_){p("next",_)}function w(_){p("throw",_)}function v(_,D){_(D),u.shift(),u.length&&p(u[0][0],u[0][1])}},$8=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:Hu(n[a](l)),done:!1}:u?u(l):l}:u}},U8=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 hm=="function"?hm(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(g){u({value:g,done:p})},l)}},V8=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};B8=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)&&pm(i,n,o);return r(i,n),i},j8=function(n){return n&&n.__esModule?n:{default:n}},z8=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)},H8=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},K8=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",b8),e("__assign",E8),e("__rest",_8),e("__decorate",S8),e("__param",C8),e("__esDecorate",T8),e("__runInitializers",P8),e("__propKey",D8),e("__setFunctionName",I8),e("__metadata",A8),e("__awaiter",O8),e("__generator",R8),e("__exportStar",N8),e("__createBinding",pm),e("__values",hm),e("__read",Zw),e("__spread",M8),e("__spreadArrays",k8),e("__spreadArray",L8),e("__await",Hu),e("__asyncGenerator",F8),e("__asyncDelegator",$8),e("__asyncValues",U8),e("__makeTemplateObject",V8),e("__importStar",B8),e("__importDefault",j8),e("__classPrivateFieldGet",z8),e("__classPrivateFieldSet",H8),e("__classPrivateFieldIn",K8)})});var nI=ee((xme,rI)=>{"use strict";c();d();f();function Dz(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}rI.exports=Iz;function Iz(e,t,r){var n=r&&r.stringify||Dz,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,g=e&&e.length||0,w=0;w<g;){if(e.charCodeAt(w)===37&&w+1<g){switch(h=h>-1?h:0,e.charCodeAt(w+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<w&&(l+=e.slice(h,w)),l+=Number(t[p]),h=w+2,w++;break;case 105:if(p>=u||t[p]==null)break;h<w&&(l+=e.slice(h,w)),l+=Math.floor(Number(t[p])),h=w+2,w++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<w&&(l+=e.slice(h,w));var v=typeof t[p];if(v==="string"){l+="'"+t[p]+"'",h=w+2,w++;break}if(v==="function"){l+=t[p].name||"<anonymous>",h=w+2,w++;break}l+=n(t[p]),h=w+2,w++;break;case 115:if(p>=u)break;h<w&&(l+=e.slice(h,w)),l+=String(t[p]),h=w+2,w++;break;case 37:h<w&&(l+=e.slice(h,w)),l+="%",h=w+2,w++,p--;break}++p}++w}return h===-1?e:(h<g&&(l+=e.slice(h)),l)}});var bm=ee((bme,aI)=>{"use strict";c();d();f();var iI=nI();aI.exports=Qn;var xf=Uz().console||{},Az={mapHttpRequest:wm,mapHttpResponse:wm,wrapRequestSerializer:tx,wrapResponseSerializer:tx,wrapErrorSerializer:tx,req:wm,res:wm,err:kz};function Oz(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Qn(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||xf;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=Oz(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=bf),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:g});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:Lz(e)};u.levels=Qn.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=bf,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=w,t&&(u._logEvent=rx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function g(v){if(v!=="silent"&&!this.levels.values[v])throw Error("unknown level "+v);this._level=v,Ku(l,u,"error","log"),Ku(l,u,"fatal","error"),Ku(l,u,"warn","error"),Ku(l,u,"info","log"),Ku(l,u,"debug","log"),Ku(l,u,"trace","log")}function w(v,_){if(!v)throw new Error("missing bindings for child Pino");_=_||{},i&&v.serializers&&(_.serializers=v.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete v.serializers,xm([v],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=qu(R,v,"error"),this.fatal=qu(R,v,"fatal"),this.warn=qu(R,v,"warn"),this.info=qu(R,v,"info"),this.debug=qu(R,v,"debug"),this.trace=qu(R,v,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=rx([].concat(R._logEvent.bindings,v)))}return P.prototype=this,new P(this)}return u}Qn.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"}};Qn.stdSerializers=Az;Qn.stdTimeFunctions=Object.assign({},{nullTime:oI,epochTime:sI,unixTime:Fz,isoTime:$z});function Ku(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?bf:i[r]?i[r]:xf[r]||xf[n]||bf,Rz(e,t,r)}function Rz(e,t,r){!e.transmit&&t[r]===bf||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===xf?xf:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&xm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,Nz(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=Qn.levels.values[l],h=Qn.levels.values[r];if(h<p)return;Mz(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:Qn.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function Nz(e,t,r,n){e._serialize&&xm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=Qn.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?iI(i.shift(),i):void 0}else typeof o=="string"&&(o=iI(i.shift(),i));return o!==void 0&&(s.msg=o),s}function xm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Qn.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 Mz(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;xm(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=rx(u)}function rx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function kz(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 Lz(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?oI:sI}function wm(){return{}}function tx(e){return e}function bf(){}function oI(){return!1}function sI(){return Date.now()}function Fz(){return Math.round(Date.now()/1e3)}function $z(){return new Date(Date.now()).toISOString()}function Uz(){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 Do=ee((Eme,nx)=>{"use strict";c();d();f();var Wu=typeof Reflect=="object"?Reflect:null,uI=Wu&&typeof Wu.apply=="function"?Wu.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Em;Wu&&typeof Wu.ownKeys=="function"?Em=Wu.ownKeys:Object.getOwnPropertySymbols?Em=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Em=function(t){return Object.getOwnPropertyNames(t)};function Vz(e){console&&console.warn&&console.warn(e)}var cI=Number.isNaN||function(t){return t!==t};function Oe(){Oe.init.call(this)}nx.exports=Oe;nx.exports.once=Hz;Oe.EventEmitter=Oe;Oe.prototype._events=void 0;Oe.prototype._eventsCount=0;Oe.prototype._maxListeners=void 0;var lI=10;function _m(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Oe,"defaultMaxListeners",{enumerable:!0,get:function(){return lI},set:function(e){if(typeof e!="number"||e<0||cI(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lI=e}});Oe.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};Oe.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||cI(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 fI(e){return e._maxListeners===void 0?Oe.defaultMaxListeners:e._maxListeners}Oe.prototype.getMaxListeners=function(){return fI(this)};Oe.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")uI(u,this,r);else for(var l=u.length,p=gI(u,l),n=0;n<l;++n)uI(p[n],this,r);return!0};function dI(e,t,r,n){var i,o,s;if(_m(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=fI(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,Vz(a)}return e}Oe.prototype.addListener=function(t,r){return dI(this,t,r,!1)};Oe.prototype.on=Oe.prototype.addListener;Oe.prototype.prependListener=function(t,r){return dI(this,t,r,!0)};function Bz(){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 hI(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Bz.bind(n);return i.listener=r,n.wrapFn=i,i}Oe.prototype.once=function(t,r){return _m(r),this.on(t,hI(this,t,r)),this};Oe.prototype.prependOnceListener=function(t,r){return _m(r),this.prependListener(t,hI(this,t,r)),this};Oe.prototype.removeListener=function(t,r){var n,i,o,s,a;if(_m(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():jz(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Oe.prototype.off=Oe.prototype.removeListener;Oe.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 pI(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?zz(i):gI(i,i.length)}Oe.prototype.listeners=function(t){return pI(this,t,!0)};Oe.prototype.rawListeners=function(t){return pI(this,t,!1)};Oe.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):mI.call(e,t)};Oe.prototype.listenerCount=mI;function mI(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}Oe.prototype.eventNames=function(){return this._eventsCount>0?Em(this._events):[]};function gI(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function jz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function zz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Hz(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))}yI(e,t,o,{once:!0}),t!=="error"&&Kz(e,i,{once:!0})})}function Kz(e,t,r){typeof e.on=="function"&&yI(e,"error",t,r)}function yI(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 ox=ee((_me,Cm)=>{c();d();f();var vI,wI,xI,bI,EI,_I,SI,CI,TI,Sm,ix,PI,DI,Gu,II,AI,OI,RI,NI,MI,kI,LI,FI;(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 Cm=="object"&&typeof Cm.exports=="object"?e(r(t,r(Cm.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])};vI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},wI=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},xI=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},bI=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},EI=function(r,n){return function(i,o){n(i,o,r)}},_I=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},SI=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(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},CI=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(g){return p([h,g])}}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(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},FI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},TI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Sm=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.")},ix=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},PI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ix(arguments[n]));return r},DI=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},Gu=function(r){return this instanceof Gu?(this.v=r,this):new Gu(r)},II=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(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Gu?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),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:Gu(r[s](u)),done:s==="return"}:a?a(u):u}:a}},OI=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 Sm=="function"?Sm(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)}},RI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},NI=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}},kI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},LI=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",vI),e("__assign",wI),e("__rest",xI),e("__decorate",bI),e("__param",EI),e("__metadata",_I),e("__awaiter",SI),e("__generator",CI),e("__exportStar",TI),e("__createBinding",FI),e("__values",Sm),e("__read",ix),e("__spread",PI),e("__spreadArrays",DI),e("__await",Gu),e("__asyncGenerator",II),e("__asyncDelegator",AI),e("__asyncValues",OI),e("__makeTemplateObject",RI),e("__importStar",NI),e("__importDefault",MI),e("__classPrivateFieldGet",kI),e("__classPrivateFieldSet",LI)})});var sx=ee(Tm=>{"use strict";c();d();f();Object.defineProperty(Tm,"__esModule",{value:!0});function qz(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}}Tm.safeJsonParse=qz;function Wz(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Tm.safeJsonStringify=Wz});var $I=ee((Cme,Pm)=>{"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?Pm.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Pm.exports=window.localStorage:Pm.exports=new t})()});var UI=ee(Dm=>{"use strict";c();d();f();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.IKeyValueStorage=void 0;var ax=class{};Dm.IKeyValueStorage=ax});var VI=ee(Im=>{"use strict";c();d();f();Object.defineProperty(Im,"__esModule",{value:!0});Im.parseEntry=void 0;var Gz=sx();function Yz(e){var t;return[e[0],Gz.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Im.parseEntry=Yz});var jI=ee(Am=>{"use strict";c();d();f();Object.defineProperty(Am,"__esModule",{value:!0});var BI=ox();BI.__exportStar(UI(),Am);BI.__exportStar(VI(),Am)});var HI=ee(Ef=>{"use strict";c();d();f();Object.defineProperty(Ef,"__esModule",{value:!0});Ef.KeyValueStorage=void 0;var Yu=ox(),zI=sx(),Xz=Yu.__importDefault($I()),Jz=jI(),Om=class{constructor(){this.localStorage=Xz.default}getKeys(){return Yu.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return Yu.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(Jz.parseEntry)})}getItem(t){return Yu.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return zI.safeJsonParse(r)})}setItem(t,r){return Yu.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,zI.safeJsonStringify(r))})}removeItem(t){return Yu.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Ef.KeyValueStorage=Om;Ef.default=Om});var _f=ee((Ame,Nm)=>{c();d();f();var KI,qI,WI,GI,YI,XI,JI,QI,ZI,Rm,ux,e4,t4,Xu,r4,n4,i4,o4,s4,a4,u4,l4,c4;(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 Nm=="object"&&typeof Nm.exports=="object"?e(r(t,r(Nm.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])};KI=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},WI=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},GI=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},YI=function(r,n){return function(i,o){n(i,o,r)}},XI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},JI=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(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},QI=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(g){return p([h,g])}}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(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},c4=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},ZI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Rm=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.")},ux=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},e4=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ux(arguments[n]));return r},t4=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},Xu=function(r){return this instanceof Xu?(this.v=r,this):new Xu(r)},r4=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(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Xu?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},n4=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:Xu(r[s](u)),done:s==="return"}:a?a(u):u}:a}},i4=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 Rm=="function"?Rm(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)}},o4=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},s4=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},a4=function(r){return r&&r.__esModule?r:{default:r}},u4=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},l4=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",KI),e("__assign",qI),e("__rest",WI),e("__decorate",GI),e("__param",YI),e("__metadata",XI),e("__awaiter",JI),e("__generator",QI),e("__exportStar",ZI),e("__createBinding",c4),e("__values",Rm),e("__read",ux),e("__spread",e4),e("__spreadArrays",t4),e("__await",Xu),e("__asyncGenerator",r4),e("__asyncDelegator",n4),e("__asyncValues",i4),e("__makeTemplateObject",o4),e("__importStar",s4),e("__importDefault",a4),e("__classPrivateFieldGet",u4),e("__classPrivateFieldSet",l4)})});var Sf=ee((Ome,km)=>{c();d();f();var f4,d4,h4,p4,m4,g4,y4,v4,w4,Mm,lx,x4,b4,Ju,E4,_4,S4,C4,T4,P4,D4,I4,A4;(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 km=="object"&&typeof km.exports=="object"?e(r(t,r(km.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])};f4=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},d4=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},h4=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},p4=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},m4=function(r,n){return function(i,o){n(i,o,r)}},g4=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},y4=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(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},v4=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(g){return p([h,g])}}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(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},A4=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},w4=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Mm=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.")},lx=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},x4=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(lx(arguments[n]));return r},b4=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},Ju=function(r){return this instanceof Ju?(this.v=r,this):new Ju(r)},E4=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(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Ju?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},_4=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:Ju(r[s](u)),done:s==="return"}:a?a(u):u}:a}},S4=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 Mm=="function"?Mm(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)}},C4=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},T4=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},P4=function(r){return r&&r.__esModule?r:{default:r}},D4=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},I4=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",f4),e("__assign",d4),e("__rest",h4),e("__decorate",p4),e("__param",m4),e("__metadata",g4),e("__awaiter",y4),e("__generator",v4),e("__exportStar",w4),e("__createBinding",A4),e("__values",Mm),e("__read",lx),e("__spread",x4),e("__spreadArrays",b4),e("__await",Ju),e("__asyncGenerator",E4),e("__asyncDelegator",_4),e("__asyncValues",S4),e("__makeTemplateObject",C4),e("__importStar",T4),e("__importDefault",P4),e("__classPrivateFieldGet",D4),e("__classPrivateFieldSet",I4)})});var O4=ee(Lm=>{"use strict";c();d();f();Object.defineProperty(Lm,"__esModule",{value:!0});Lm.delay=void 0;function Qz(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Lm.delay=Qz});var R4=ee(Qu=>{"use strict";c();d();f();Object.defineProperty(Qu,"__esModule",{value:!0});Qu.ONE_THOUSAND=Qu.ONE_HUNDRED=void 0;Qu.ONE_HUNDRED=100;Qu.ONE_THOUSAND=1e3});var N4=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 cx=ee(Fm=>{"use strict";c();d();f();Object.defineProperty(Fm,"__esModule",{value:!0});var M4=Sf();M4.__exportStar(R4(),Fm);M4.__exportStar(N4(),Fm)});var L4=ee(Zu=>{"use strict";c();d();f();Object.defineProperty(Zu,"__esModule",{value:!0});Zu.fromMiliseconds=Zu.toMiliseconds=void 0;var k4=cx();function Zz(e){return e*k4.ONE_THOUSAND}Zu.toMiliseconds=Zz;function eH(e){return Math.floor(e/k4.ONE_THOUSAND)}Zu.fromMiliseconds=eH});var $4=ee($m=>{"use strict";c();d();f();Object.defineProperty($m,"__esModule",{value:!0});var F4=Sf();F4.__exportStar(O4(),$m);F4.__exportStar(L4(),$m)});var U4=ee(Cf=>{"use strict";c();d();f();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Watch=void 0;var Um=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}};Cf.Watch=Um;Cf.default=Um});var V4=ee(Vm=>{"use strict";c();d();f();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.IWatch=void 0;var fx=class{};Vm.IWatch=fx});var B4=ee(dx=>{"use strict";c();d();f();Object.defineProperty(dx,"__esModule",{value:!0});var tH=Sf();tH.__exportStar(V4(),dx)});var Ti=ee(el=>{"use strict";c();d();f();Object.defineProperty(el,"__esModule",{value:!0});var Bm=Sf();Bm.__exportStar($4(),el);Bm.__exportStar(U4(),el);Bm.__exportStar(B4(),el);Bm.__exportStar(cx(),el)});var Fn,j4=pa(()=>{c();d();f();Fn=class{}});var z4={};ur(z4,{IEvents:()=>Fn});var jm=pa(()=>{c();d();f();j4()});var H4=ee(zm=>{"use strict";c();d();f();Object.defineProperty(zm,"__esModule",{value:!0});zm.IHeartBeat=void 0;var rH=(jm(),w_(z4)),hx=class extends rH.IEvents{constructor(t){super()}};zm.IHeartBeat=hx});var mx=ee(px=>{"use strict";c();d();f();Object.defineProperty(px,"__esModule",{value:!0});var nH=_f();nH.__exportStar(H4(),px)});var K4=ee(tl=>{"use strict";c();d();f();Object.defineProperty(tl,"__esModule",{value:!0});tl.HEARTBEAT_EVENTS=tl.HEARTBEAT_INTERVAL=void 0;var iH=Ti();tl.HEARTBEAT_INTERVAL=iH.FIVE_SECONDS;tl.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var yx=ee(gx=>{"use strict";c();d();f();Object.defineProperty(gx,"__esModule",{value:!0});var oH=_f();oH.__exportStar(K4(),gx)});var q4=ee(Hm=>{"use strict";c();d();f();Object.defineProperty(Hm,"__esModule",{value:!0});Hm.HeartBeat=void 0;var vx=_f(),sH=Do(),aH=Ti(),uH=mx(),wx=yx(),Tf=class extends uH.IHeartBeat{constructor(t){super(t),this.events=new sH.EventEmitter,this.interval=wx.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||wx.HEARTBEAT_INTERVAL}static init(t){return vx.__awaiter(this,void 0,void 0,function*(){let r=new Tf(t);return yield r.init(),r})}init(){return vx.__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 vx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),aH.toMiliseconds(this.interval))})}pulse(){this.events.emit(wx.HEARTBEAT_EVENTS.pulse)}};Hm.HeartBeat=Tf});var W4=ee(Pf=>{"use strict";c();d();f();Object.defineProperty(Pf,"__esModule",{value:!0});var xx=_f();xx.__exportStar(q4(),Pf);xx.__exportStar(mx(),Pf);xx.__exportStar(yx(),Pf)});var pA=ee((Xme,qm)=>{c();d();f();var G4,Y4,X4,J4,Q4,Z4,eA,tA,rA,Km,bx,nA,iA,rl,oA,sA,aA,uA,lA,cA,fA,dA,hA;(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 qm=="object"&&typeof qm.exports=="object"?e(r(t,r(qm.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])};G4=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Y4=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},X4=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},J4=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},Q4=function(r,n){return function(i,o){n(i,o,r)}},Z4=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},eA=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(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},tA=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(g){return p([h,g])}}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(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},hA=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},rA=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Km=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.")},bx=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},nA=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(bx(arguments[n]));return r},iA=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},rl=function(r){return this instanceof rl?(this.v=r,this):new rl(r)},oA=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(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof rl?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},sA=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:rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},aA=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 Km=="function"?Km(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)}},uA=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},lA=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},cA=function(r){return r&&r.__esModule?r:{default:r}},fA=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},dA=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",G4),e("__assign",Y4),e("__rest",X4),e("__decorate",J4),e("__param",Q4),e("__metadata",Z4),e("__awaiter",eA),e("__generator",tA),e("__exportStar",rA),e("__createBinding",hA),e("__values",Km),e("__read",bx),e("__spread",nA),e("__spreadArrays",iA),e("__await",rl),e("__asyncGenerator",oA),e("__asyncDelegator",sA),e("__asyncValues",aA),e("__makeTemplateObject",uA),e("__importStar",lA),e("__importDefault",cA),e("__classPrivateFieldGet",fA),e("__classPrivateFieldSet",dA)})});var Ex=ee(nl=>{"use strict";c();d();f();Object.defineProperty(nl,"__esModule",{value:!0});nl.PINO_CUSTOM_CONTEXT_KEY=nl.PINO_LOGGER_DEFAULTS=void 0;nl.PINO_LOGGER_DEFAULTS={level:"info"};nl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var wA=ee($r=>{"use strict";c();d();f();Object.defineProperty($r,"__esModule",{value:!0});$r.generateChildLogger=$r.formatChildLoggerContext=$r.getLoggerContext=$r.setBrowserLoggerContext=$r.getBrowserLoggerContext=$r.getDefaultLoggerOptions=void 0;var il=Ex();function lH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||il.PINO_LOGGER_DEFAULTS.level})}$r.getDefaultLoggerOptions=lH;function mA(e,t=il.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}$r.getBrowserLoggerContext=mA;function gA(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}$r.setBrowserLoggerContext=gA;function yA(e,t=il.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=mA(e,t):r=e.bindings().context||"",r}$r.getLoggerContext=yA;function vA(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){let n=yA(e,r);return n.trim()?`${n}/${t}`:t}$r.formatChildLoggerContext=vA;function cH(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){let n=vA(e,t,r),i=e.child({context:n});return gA(i,n,r)}$r.generateChildLogger=cH});var Sx=ee(ol=>{"use strict";c();d();f();Object.defineProperty(ol,"__esModule",{value:!0});ol.pino=void 0;var _x=pA(),fH=_x.__importDefault(bm());Object.defineProperty(ol,"pino",{enumerable:!0,get:function(){return fH.default}});_x.__exportStar(Ex(),ol);_x.__exportStar(wA(),ol)});var EA=ee(t0=>{"use strict";c();d();f();Object.defineProperty(t0,"__esModule",{value:!0});t0.BrowserRandomSource=void 0;var bA=65536,Cx=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+=bA)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,bA)));return r}};t0.BrowserRandomSource=Cx});var vn=ee(Tx=>{"use strict";c();d();f();Object.defineProperty(Tx,"__esModule",{value:!0});function dH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Tx.wipe=dH});var _A=ee(()=>{c();d();f()});var SA=ee(r0=>{"use strict";c();d();f();Object.defineProperty(r0,"__esModule",{value:!0});r0.NodeRandomSource=void 0;var hH=vn(),Px=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof v_<"u"){let t=_A();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}};r0.NodeRandomSource=Px});var CA=ee(n0=>{"use strict";c();d();f();Object.defineProperty(n0,"__esModule",{value:!0});n0.SystemRandomSource=void 0;var pH=EA(),mH=SA(),Dx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new pH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new mH.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)}};n0.SystemRandomSource=Dx});var TA=ee(Qr=>{"use strict";c();d();f();Object.defineProperty(Qr,"__esModule",{value:!0});function gH(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}Qr.mul=Math.imul||gH;function yH(e,t){return e+t|0}Qr.add=yH;function vH(e,t){return e-t|0}Qr.sub=vH;function wH(e,t){return e<<t|e>>>32-t}Qr.rotl=wH;function xH(e,t){return e<<32-t|e>>>t}Qr.rotr=xH;function bH(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}Qr.isInteger=Number.isInteger||bH;Qr.MAX_SAFE_INTEGER=9007199254740991;Qr.isSafeInteger=function(e){return Qr.isInteger(e)&&e>=-Qr.MAX_SAFE_INTEGER&&e<=Qr.MAX_SAFE_INTEGER}});var al=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var PA=TA();function EH(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=EH;function _H(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=_H;function SH(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=SH;function CH(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=CH;function DA(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=DA;we.writeInt16BE=DA;function IA(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=IA;we.writeInt16LE=IA;function Ix(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Ix;function Ax(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=Ax;function Ox(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=Ox;function Rx(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=Rx;function i0(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=i0;we.writeInt32BE=i0;function o0(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=o0;we.writeInt32LE=o0;function TH(e,t){t===void 0&&(t=0);var r=Ix(e,t),n=Ix(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=TH;function PH(e,t){t===void 0&&(t=0);var r=Ax(e,t),n=Ax(e,t+4);return r*4294967296+n}we.readUint64BE=PH;function DH(e,t){t===void 0&&(t=0);var r=Ox(e,t),n=Ox(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=DH;function IH(e,t){t===void 0&&(t=0);var r=Rx(e,t),n=Rx(e,t+4);return n*4294967296+r}we.readUint64LE=IH;function AA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),i0(e/4294967296>>>0,t,r),i0(e>>>0,t,r+4),t}we.writeUint64BE=AA;we.writeInt64BE=AA;function OA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),o0(e>>>0,t,r),o0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=OA;we.writeInt64LE=OA;function AH(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=AH;function OH(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=OH;function RH(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(!PA.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=RH;function NH(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(!PA.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=NH;function MH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=MH;function kH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=kH;function LH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=LH;function FH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=FH;function $H(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=$H;function UH(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=UH;function VH(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=VH;function BH(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=BH});var Hs=ee(yr=>{"use strict";c();d();f();Object.defineProperty(yr,"__esModule",{value:!0});yr.randomStringForEntropy=yr.randomString=yr.randomUint32=yr.randomBytes=yr.defaultRandomSource=void 0;var jH=CA(),zH=al(),RA=vn();yr.defaultRandomSource=new jH.SystemRandomSource;function Nx(e,t=yr.defaultRandomSource){return t.randomBytes(e)}yr.randomBytes=Nx;function HH(e=yr.defaultRandomSource){let t=Nx(4,e),r=(0,zH.readUint32LE)(t);return(0,RA.wipe)(t),r}yr.randomUint32=HH;var NA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function MA(e,t=NA,r=yr.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=Nx(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,RA.wipe)(s)}return n}yr.randomString=MA;function KH(e,t=NA,r=yr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return MA(n,t,r)}yr.randomStringForEntropy=KH});var FA=ee(Pi=>{"use strict";c();d();f();Object.defineProperty(Pi,"__esModule",{value:!0});var ll=al(),ul=vn();Pi.DIGEST_LENGTH=64;Pi.BLOCK_SIZE=128;var LA=function(){function e(){this.digestLength=Pi.DIGEST_LENGTH,this.blockSize=Pi.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(){ul.wipe(this._buffer),ul.wipe(this._tempHi),ul.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<Pi.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Mx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Mx(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;ll.writeUint32BE(i,this._buffer,s-8),ll.writeUint32BE(o,this._buffer,s-4),Mx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)ll.writeUint32BE(this._stateHi[a],t,a*8),ll.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){ul.wipe(t.stateHi),ul.wipe(t.stateLo),t.buffer&&ul.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Pi.SHA512=LA;var kA=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 Mx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],g=r[5],w=r[6],v=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 A=8*E+o;e[E]=ll.readUint32BE(i,A),t[E]=ll.readUint32BE(i,A+4)}for(var E=0;E<80;E++){var O=a,M=u,V=l,B=p,k=h,b=g,L=w,Q=v,T=_,z=D,H=C,q=I,Z=P,ie=R,re=U,te=j;if(F=v,$=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&g^~h&w,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=kA[E*2],$=kA[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,Q=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=O,l=M,p=V,h=B,g=k,w=b,v=L,a=Q,D=T,C=z,I=H,P=q,R=Z,U=ie,j=re,_=te,E%16===15)for(var A=0;A<16;A++)F=e[A],$=t[A],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(A+9)%16],$=t[(A+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(A+1)%16],X=t[(A+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[(A+14)%16],X=t[(A+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[A]=N&65535|m<<16,t[A]=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=g,$=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]=g=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=w,$=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]=w=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=v,$=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]=v=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function qH(e){var t=new LA;t.update(e);var r=t.digest();return t.clean(),r}Pi.hash=qH});var JA=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 WH=Hs(),If=FA(),jA=vn();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 GH=new Uint8Array(32);GH[0]=9;var Fx=me(),cl=me([1]),YH=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),XH=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),$A=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),UA=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),JH=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Io(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function kx(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 zA(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 Af(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];kx(n),kx(n),kx(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,zA(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 HA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function VA(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return Af(r,e),Af(n,t),HA(r,n)}function KA(e){let t=new Uint8Array(32);return Af(t,e),t[0]&1}function QH(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Ks(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function Ws(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,g=0,w=0,v=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,A=0,O=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Q=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Z=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Q,p+=n*T,h+=n*z,g+=n*H,w+=n*q,v+=n*Z,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*se,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Q,h+=n*T,g+=n*z,w+=n*H,v+=n*q,_+=n*Z,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*se,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Q,g+=n*T,w+=n*z,v+=n*H,_+=n*q,D+=n*Z,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*se,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,g+=n*Q,w+=n*T,v+=n*z,_+=n*H,D+=n*q,C+=n*Z,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*se,n=t[4],l+=n*B,p+=n*k,h+=n*b,g+=n*L,w+=n*Q,v+=n*T,_+=n*z,D+=n*H,C+=n*q,I+=n*Z,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*se,n=t[5],p+=n*B,h+=n*k,g+=n*b,w+=n*L,v+=n*Q,_+=n*T,D+=n*z,C+=n*H,I+=n*q,P+=n*Z,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*se,n=t[6],h+=n*B,g+=n*k,w+=n*b,v+=n*L,_+=n*Q,D+=n*T,C+=n*z,I+=n*H,P+=n*q,R+=n*Z,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*se,n=t[7],g+=n*B,w+=n*k,v+=n*b,_+=n*L,D+=n*Q,C+=n*T,I+=n*z,P+=n*H,R+=n*q,U+=n*Z,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*se,n=t[8],w+=n*B,v+=n*k,_+=n*b,D+=n*L,C+=n*Q,I+=n*T,P+=n*z,R+=n*H,U+=n*q,j+=n*Z,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*se,n=t[9],v+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Q,P+=n*T,R+=n*z,U+=n*H,j+=n*q,F+=n*Z,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*se,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Q,R+=n*T,U+=n*z,j+=n*H,F+=n*q,$+=n*Z,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*se,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Q,U+=n*T,j+=n*z,F+=n*H,$+=n*q,G+=n*Z,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*se,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Q,j+=n*T,F+=n*z,$+=n*H,G+=n*q,X+=n*Z,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,A+=n*se,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Q,F+=n*T,$+=n*z,G+=n*H,X+=n*q,W+=n*Z,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,A+=n*ne,O+=n*se,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Q,$+=n*T,G+=n*z,X+=n*H,W+=n*q,J+=n*Z,N+=n*ie,m+=n*re,E+=n*te,A+=n*he,O+=n*ne,M+=n*se,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Q,G+=n*T,X+=n*z,W+=n*H,J+=n*q,N+=n*Z,m+=n*ie,E+=n*re,A+=n*te,O+=n*he,M+=n*ne,V+=n*se,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,g+=38*J,w+=38*N,v+=38*m,_+=38*E,D+=38*A,C+=38*O,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=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=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=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=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]=g,e[8]=w,e[9]=v,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 qA(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 ZH(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 $x(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();Ws(r,e[1],e[0]),Ws(p,t[1],t[0]),Re(r,r,p),Ks(n,e[0],e[1]),Ks(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,XH),Re(o,e[2],t[2]),Ks(o,o,o),Ws(s,n,r),Ws(a,o,i),Ks(u,o,i),Ks(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function BA(e,t,r){for(let n=0;n<4;n++)zA(e[n],t[n],r)}function Vx(e,t){let r=me(),n=me(),i=me();qA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),Af(e,n),e[31]^=KA(r)<<7}function WA(e,t,r){Io(e[0],Fx),Io(e[1],cl),Io(e[2],cl),Io(e[3],Fx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;BA(e,t,i),$x(t,e),$x(e,e),BA(e,t,i)}}function Bx(e,t){let r=[me(),me(),me(),me()];Io(r[0],$A),Io(r[1],UA),Io(r[2],cl),Re(r[3],$A,UA),WA(e,r,t)}function GA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,If.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Bx(n,t),Vx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=GA;function eK(e){let t=(0,WH.randomBytes)(32,e),r=GA(t);return(0,jA.wipe)(t),r}Ie.generateKeyPair=eK;function tK(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=tK;var Lx=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 YA(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]*Lx[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)*Lx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Lx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Ux(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;YA(e,t)}function rK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,If.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 If.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),Ux(a),Bx(n,a),Vx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();Ux(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 YA(o.subarray(32),r),o}Ie.sign=rK;function XA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Io(e[2],cl),QH(e[1],t),qs(i,e[1]),Re(o,i,YH),Ws(i,i,e[2]),Ks(o,e[2],o),qs(s,o),qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),ZH(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),VA(n,i)&&Re(e[0],e[0],JH),qs(n,e[0]),Re(n,n,o),VA(n,i)?-1:(KA(e[0])===t[31]>>7&&Ws(e[0],Fx,e[0]),Re(e[3],e[0],e[1]),0)}function nK(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(XA(o,e))return!1;let s=new If.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Ux(a),WA(i,o,a),Bx(o,r.subarray(32)),$x(i,o),Vx(n,i),!HA(r,n)}Ie.verify=nK;function iK(e){let t=[me(),me(),me(),me()];if(XA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Ks(r,cl,i),Ws(n,cl,i),qA(n,n),Re(r,r,n);let o=new Uint8Array(32);return Af(o,r),o}Ie.convertPublicKeyToX25519=iK;function oK(e){let t=(0,If.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,jA.wipe)(t),r}Ie.convertSecretKeyToX25519=oK});var MO=ee(m0=>{"use strict";c();d();f();Object.defineProperty(m0,"__esModule",{value:!0});var vr=al(),db=vn(),wq=20;function xq(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],g=r[23]<<24|r[22]<<16|r[21]<<8|r[20],w=r[27]<<24|r[26]<<16|r[25]<<8|r[24],v=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=g,N=w,m=v,E=_,A=D,O=C,M=I,V=0;V<wq;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,A^=R,A=A>>>32-16|A<<16,J=J+A|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,O^=U,O=O>>>32-16|O<<16,N=N+O|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,O^=U,O=O>>>32-8|O<<8,N=N+O|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,A^=R,A=A>>>32-8|A<<8,J=J+A|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,A^=U,A=A>>>32-16|A<<16,W=W+A|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,O^=j,O=O>>>32-16|O<<16,J=J+O|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,A^=U,A=A>>>32-8|A<<8,W=W+A|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,O^=j,O=O>>>32-8|O<<8,J=J+O|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;vr.writeUint32LE(P+n|0,e,0),vr.writeUint32LE(R+i|0,e,4),vr.writeUint32LE(U+o|0,e,8),vr.writeUint32LE(j+s|0,e,12),vr.writeUint32LE(F+a|0,e,16),vr.writeUint32LE($+u|0,e,20),vr.writeUint32LE(G+l|0,e,24),vr.writeUint32LE(X+p|0,e,28),vr.writeUint32LE(W+h|0,e,32),vr.writeUint32LE(J+g|0,e,36),vr.writeUint32LE(N+w|0,e,40),vr.writeUint32LE(m+v|0,e,44),vr.writeUint32LE(E+_|0,e,48),vr.writeUint32LE(A+D|0,e,52),vr.writeUint32LE(O+C|0,e,56),vr.writeUint32LE(M+I|0,e,60)}function NO(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){xq(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];Eq(o,0,s)}return db.wipe(a),i===0&&db.wipe(o),n}m0.streamXOR=NO;function bq(e,t,r,n){return n===void 0&&(n=0),db.wipe(r),NO(e,t,r,r,n)}m0.stream=bq;function Eq(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 g0=ee(vl=>{"use strict";c();d();f();Object.defineProperty(vl,"__esModule",{value:!0});function _q(e,t,r){return~(e-1)&t|e-1&r}vl.select=_q;function Sq(e,t){return(e|0)-(t|0)-1>>>31&1}vl.lessOrEqual=Sq;function kO(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}vl.compare=kO;function Cq(e,t){return e.length===0||t.length===0?!1:kO(e,t)!==0}vl.equal=Cq});var FO=ee(Ii=>{"use strict";c();d();f();Object.defineProperty(Ii,"__esModule",{value:!0});var Tq=g0(),y0=vn();Ii.DIGEST_LENGTH=16;var LO=function(){function e(t){this.digestLength=Ii.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],g=this._h[7],w=this._h[8],v=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;g+=(m>>>11|E<<5)&8191;var A=t[r+14]|t[r+15]<<8;w+=(E>>>8|A<<8)&8191,v+=A>>>5|i;var O=0,M=O;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),O=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=g*(5*I),M+=w*(5*C),M+=v*(5*D),O+=M>>>13,M&=8191;var V=O;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),O=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=g*(5*P),V+=w*(5*I),V+=v*(5*C),O+=V>>>13,V&=8191;var B=O;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),O=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=g*(5*R),B+=w*(5*P),B+=v*(5*I),O+=B>>>13,B&=8191;var k=O;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),O=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=g*(5*U),k+=w*(5*R),k+=v*(5*P),O+=k>>>13,k&=8191;var b=O;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,O=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=g*(5*j),b+=w*(5*U),b+=v*(5*R),O+=b>>>13,b&=8191;var L=O;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,O=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=g*(5*F),L+=w*(5*j),L+=v*(5*U),O+=L>>>13,L&=8191;var Q=O;Q+=o*U,Q+=s*R,Q+=a*P,Q+=u*I,Q+=l*C,O=Q>>>13,Q&=8191,Q+=p*D,Q+=h*_,Q+=g*(5*$),Q+=w*(5*F),Q+=v*(5*j),O+=Q>>>13,Q&=8191;var T=O;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,O=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=g*_,T+=w*(5*$),T+=v*(5*F),O+=T>>>13,T&=8191;var z=O;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,O=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=g*D,z+=w*_,z+=v*(5*$),O+=z>>>13,z&=8191;var H=O;H+=o*$,H+=s*F,H+=a*j,H+=u*U,H+=l*R,O=H>>>13,H&=8191,H+=p*P,H+=h*I,H+=g*C,H+=w*D,H+=v*_,O+=H>>>13,H&=8191,O=(O<<2)+O|0,O=O+M|0,M=O&8191,O=O>>>13,V+=O,o=M,s=V,a=B,u=k,l=b,p=L,h=Q,g=T,w=z,v=H,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]=g,this._h[8]=w,this._h[9]=v},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 y0.wipe(this._buffer),y0.wipe(this._r),y0.wipe(this._h),y0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ii.Poly1305=LO;function Pq(e,t){var r=new LO(e);r.update(t);var n=r.digest();return r.clean(),n}Ii.oneTimeAuth=Pq;function Dq(e,t){return e.length!==Ii.DIGEST_LENGTH||t.length!==Ii.DIGEST_LENGTH?!1:Tq.equal(e,t)}Ii.equal=Dq});var w0=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var v0=MO(),Iq=FO(),Lf=vn(),$O=al(),Aq=g0();Ai.KEY_LENGTH=32;Ai.NONCE_LENGTH=12;Ai.TAG_LENGTH=16;var UO=new Uint8Array(16),Oq=function(){function e(t){if(this.nonceLength=Ai.NONCE_LENGTH,this.tagLength=Ai.TAG_LENGTH,t.length!==Ai.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);v0.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 v0.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),Lf.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);v0.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),!Aq.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 v0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),Lf.wipe(o),l},e.prototype.clean=function(){return Lf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new Iq.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(UO.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(UO.subarray(n.length%16));var s=new Uint8Array(8);i&&$O.writeUint64LE(i.length,s),o.update(s),$O.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),Lf.wipe(a),Lf.wipe(s)},e}();Ai.ChaCha20Poly1305=Oq});var VO=ee(hb=>{"use strict";c();d();f();Object.defineProperty(hb,"__esModule",{value:!0});function Rq(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}hb.isSerializableHash=Rq});var jO=ee(Ff=>{"use strict";c();d();f();Object.defineProperty(Ff,"__esModule",{value:!0});var ei=VO(),Nq=g0(),Mq=vn(),BO=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),ei.isSerializableHash(this._inner)&&ei.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),Mq.wipe(n)}return e.prototype.reset=function(){if(!ei.isSerializableHash(this._inner)||!ei.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(){ei.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),ei.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(!ei.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(!ei.isSerializableHash(this._inner)||!ei.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(!ei.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Ff.HMAC=BO;function kq(e,t,r){var n=new BO(e,t);n.update(r);var i=n.digest();return n.clean(),i}Ff.hmac=kq;Ff.equal=Nq.equal});var x0=ee(pb=>{"use strict";c();d();f();Object.defineProperty(pb,"__esModule",{value:!0});var zO=jO(),HO=vn(),Lq=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=zO.hmac(this._hash,n,r);this._hmac=new zO.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(),HO.wipe(this._buffer),HO.wipe(this._counter),this._bufpos=0},e}();pb.HKDF=Lq});var _0=ee(Oo=>{"use strict";c();d();f();Object.defineProperty(Oo,"__esModule",{value:!0});var E0=al(),b0=vn();Oo.DIGEST_LENGTH=32;Oo.BLOCK_SIZE=64;var KO=function(){function e(){this.digestLength=Oo.DIGEST_LENGTH,this.blockSize=Oo.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(){b0.wipe(this._buffer),b0.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&&(mb(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=mb(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;E0.writeUint32BE(i,this._buffer,s-8),E0.writeUint32BE(o,this._buffer,s-4),mb(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)E0.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){b0.wipe(t.state),t.buffer&&b0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Oo.SHA256=KO;var Fq=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 mb(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],g=t[7],w=0;w<16;w++){var v=n+w*4;e[w]=E0.readUint32BE(r,v)}for(var w=16;w<64;w++){var _=e[w-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[w-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[w]=(D+e[w-7]|0)+(C+e[w-16]|0)}for(var w=0;w<64;w++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(g+(Fq[w]+e[w]|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;g=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]+=g,n+=64,i-=64}return n}function $q(e){var t=new KO;t.update(e);var r=t.digest();return t.clean(),r}Oo.hash=$q});var T0=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 Uq=Hs(),Vq=vn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function ti(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var qO=new Uint8Array(32);qO[0]=9;var Bq=ti([56129,1]);function gb(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 $f(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 jq(e,t){let r=ti(),n=ti();for(let i=0;i<16;i++)n[i]=t[i];gb(n),gb(n),gb(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,$f(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 zq(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function S0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function C0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Oi(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,g=0,w=0,v=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,A=0,O=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Q=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Z=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Q,p+=n*T,h+=n*z,g+=n*H,w+=n*q,v+=n*Z,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*se,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Q,h+=n*T,g+=n*z,w+=n*H,v+=n*q,_+=n*Z,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*se,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Q,g+=n*T,w+=n*z,v+=n*H,_+=n*q,D+=n*Z,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*se,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,g+=n*Q,w+=n*T,v+=n*z,_+=n*H,D+=n*q,C+=n*Z,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*se,n=t[4],l+=n*B,p+=n*k,h+=n*b,g+=n*L,w+=n*Q,v+=n*T,_+=n*z,D+=n*H,C+=n*q,I+=n*Z,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*se,n=t[5],p+=n*B,h+=n*k,g+=n*b,w+=n*L,v+=n*Q,_+=n*T,D+=n*z,C+=n*H,I+=n*q,P+=n*Z,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*se,n=t[6],h+=n*B,g+=n*k,w+=n*b,v+=n*L,_+=n*Q,D+=n*T,C+=n*z,I+=n*H,P+=n*q,R+=n*Z,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*se,n=t[7],g+=n*B,w+=n*k,v+=n*b,_+=n*L,D+=n*Q,C+=n*T,I+=n*z,P+=n*H,R+=n*q,U+=n*Z,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*se,n=t[8],w+=n*B,v+=n*k,_+=n*b,D+=n*L,C+=n*Q,I+=n*T,P+=n*z,R+=n*H,U+=n*q,j+=n*Z,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*se,n=t[9],v+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Q,P+=n*T,R+=n*z,U+=n*H,j+=n*q,F+=n*Z,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*se,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Q,R+=n*T,U+=n*z,j+=n*H,F+=n*q,$+=n*Z,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*se,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Q,U+=n*T,j+=n*z,F+=n*H,$+=n*q,G+=n*Z,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*se,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Q,j+=n*T,F+=n*z,$+=n*H,G+=n*q,X+=n*Z,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,A+=n*se,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Q,F+=n*T,$+=n*z,G+=n*H,X+=n*q,W+=n*Z,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,A+=n*ne,O+=n*se,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Q,$+=n*T,G+=n*z,X+=n*H,W+=n*q,J+=n*Z,N+=n*ie,m+=n*re,E+=n*te,A+=n*he,O+=n*ne,M+=n*se,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Q,G+=n*T,X+=n*z,W+=n*H,J+=n*q,N+=n*Z,m+=n*ie,E+=n*re,A+=n*te,O+=n*he,M+=n*ne,V+=n*se,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,g+=38*J,w+=38*N,v+=38*m,_+=38*E,D+=38*A,C+=38*O,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=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=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=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=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]=g,e[8]=w,e[9]=v,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Uf(e,t){Oi(e,t,t)}function Hq(e,t){let r=ti();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Uf(r,r),n!==2&&n!==4&&Oi(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function yb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=ti(),o=ti(),s=ti(),a=ti(),u=ti(),l=ti();for(let w=0;w<31;w++)r[w]=e[w];r[31]=e[31]&127|64,r[0]&=248,zq(n,t);for(let w=0;w<16;w++)o[w]=n[w];i[0]=a[0]=1;for(let w=254;w>=0;--w){let v=r[w>>>3]>>>(w&7)&1;$f(i,o,v),$f(s,a,v),S0(u,i,s),C0(i,i,s),S0(s,o,a),C0(o,o,a),Uf(a,u),Uf(l,i),Oi(i,s,i),Oi(s,o,u),S0(u,i,s),C0(i,i,s),Uf(o,i),C0(s,a,l),Oi(i,s,Bq),S0(i,i,a),Oi(s,s,i),Oi(i,a,l),Oi(a,o,n),Uf(o,u),$f(i,o,v),$f(s,a,v)}for(let w=0;w<16;w++)n[w+16]=i[w],n[w+32]=s[w],n[w+48]=o[w],n[w+64]=a[w];let p=n.subarray(32),h=n.subarray(16);Hq(p,p),Oi(h,h,p);let g=new Uint8Array(32);return jq(g,h),g}Nt.scalarMult=yb;function WO(e){return yb(e,qO)}Nt.scalarMultBase=WO;function GO(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:WO(t),secretKey:t}}Nt.generateKeyPairFromSeed=GO;function Kq(e){let t=(0,Uq.randomBytes)(32,e),r=GO(t);return(0,Vq.wipe)(t),r}Nt.generateKeyPair=Kq;function qq(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=yb(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=qq});var Xs=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 Ys(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=Ys;function xl(e){let t=Ys(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=xl;function sW(){return xl("document")}Ue.getDocumentOrThrow=sW;function aW(){return Ys("document")}Ue.getDocument=aW;function uW(){return xl("navigator")}Ue.getNavigatorOrThrow=uW;function lW(){return Ys("navigator")}Ue.getNavigator=lW;function cW(){return xl("location")}Ue.getLocationOrThrow=cW;function fW(){return Ys("location")}Ue.getLocation=fW;function dW(){return xl("crypto")}Ue.getCryptoOrThrow=dW;function hW(){return Ys("crypto")}Ue.getCrypto=hW;function pW(){return xl("localStorage")}Ue.getLocalStorageOrThrow=pW;function mW(){return Ys("localStorage")}Ue.getLocalStorage=mW});var nR=ee(D0=>{"use strict";c();d();f();Object.defineProperty(D0,"__esModule",{value:!0});D0.getWindowMetadata=void 0;var rR=Xs();function gW(){let e,t;try{e=rR.getDocumentOrThrow(),t=rR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.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}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.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}}D0.getWindowMetadata=gW});var oR=ee((sye,iR)=>{"use strict";c();d();f();iR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var cR=ee((aye,lR)=>{"use strict";c();d();f();var uR="%[a-f0-9]{2}",sR=new RegExp("("+uR+")|([^%]+?)","gi"),aR=new RegExp("("+uR+")+","gi");function wb(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([],wb(r),wb(n))}function yW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(sR)||[],r=1;r<t.length;r++)e=wb(t,r).join(""),t=e.match(sR)||[];return e}}function vW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=aR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=yW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=aR.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}lR.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 vW(e)}}});var dR=ee((uye,fR)=>{"use strict";c();d();f();fR.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 pR=ee((lye,hR)=>{"use strict";c();d();f();hR.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 I0=ee(Ur=>{"use strict";c();d();f();var wW=oR(),xW=cR(),gR=dR(),bW=pR(),EW=e=>e==null,xb=Symbol("encodeFragmentIdentifier");function _W(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 SW(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&&Ri(n,e).includes(e.arrayFormatSeparator);n=s?Ri(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Ri(u,e)):n===null?n:Ri(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Ri(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Ri(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 yR(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?wW(e):encodeURIComponent(e):e}function Ri(e,t){return t.decode?xW(e):e}function vR(e){return Array.isArray(e)?e.sort():typeof e=="object"?vR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function wR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function CW(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function xR(e){e=wR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function mR(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 bR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),yR(t.arrayFormatSeparator);let r=SW(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]=gR(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Ri(s,t),r(Ri(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]=mR(o[s],t);else n[i]=mR(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]=vR(s):i[o]=s,i},Object.create(null))}Ur.extract=xR;Ur.parse=bR;Ur.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),yR(t.arrayFormatSeparator);let r=s=>t.skipNull&&EW(e[s])||t.skipEmptyString&&e[s]==="",n=_W(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("&")};Ur.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=gR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:bR(xR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Ri(n,t)}:{})};Ur.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[xb]:!0},t);let r=wR(e.url).split("?")[0]||"",n=Ur.extract(e.url),i=Ur.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Ur.stringify(o,t);s&&(s=`?${s}`);let a=CW(e.url);return e.fragmentIdentifier&&(a=`#${t[xb]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Ur.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[xb]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Ur.parseUrl(e,r);return Ur.stringifyUrl({url:n,query:bW(i,t),fragmentIdentifier:o},r)};Ur.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Ur.pick(e,n,r)}});var xN=ee((Bye,K0)=>{c();d();f();var eN,tN,rN,nN,iN,oN,sN,aN,uN,H0,Lb,lN,cN,Sl,fN,dN,hN,pN,mN,gN,yN,vN,wN;(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 K0=="object"&&typeof K0.exports=="object"?e(r(t,r(K0.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])};eN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},tN=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},rN=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},nN=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},iN=function(r,n){return function(i,o){n(i,o,r)}},oN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},sN=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(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},aN=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(g){return p([h,g])}}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(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},wN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},uN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},H0=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.")},Lb=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},lN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Lb(arguments[n]));return r},cN=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)},fN=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(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Sl?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},dN=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}},hN=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 H0=="function"?H0(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)}},pN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},mN=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},gN=function(r){return r&&r.__esModule?r:{default:r}},yN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},vN=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",eN),e("__assign",tN),e("__rest",rN),e("__decorate",nN),e("__param",iN),e("__metadata",oN),e("__awaiter",sN),e("__generator",aN),e("__exportStar",uN),e("__createBinding",wN),e("__values",H0),e("__read",Lb),e("__spread",lN),e("__spreadArrays",cN),e("__await",Sl),e("__asyncGenerator",fN),e("__asyncDelegator",dN),e("__asyncValues",hN),e("__makeTemplateObject",pN),e("__importStar",mN),e("__importDefault",gN),e("__classPrivateFieldGet",yN),e("__classPrivateFieldSet",vN)})});var EN=ee(Mo=>{"use strict";c();d();f();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.isBrowserCryptoAvailable=Mo.getSubtleCrypto=Mo.getBrowerCrypto=void 0;function Fb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Mo.getBrowerCrypto=Fb;function bN(){let e=Fb();return e.subtle||e.webkitSubtle}Mo.getSubtleCrypto=bN;function ZW(){return!!Fb()&&!!bN()}Mo.isBrowserCryptoAvailable=ZW});var CN=ee(ko=>{"use strict";c();d();f();Object.defineProperty(ko,"__esModule",{value:!0});ko.isBrowser=ko.isNode=ko.isReactNative=void 0;function _N(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ko.isReactNative=_N;function SN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ko.isNode=SN;function eG(){return!_N()&&!SN()}ko.isBrowser=eG});var $b=ee(q0=>{"use strict";c();d();f();Object.defineProperty(q0,"__esModule",{value:!0});var TN=xN();TN.__exportStar(EN(),q0);TN.__exportStar(CN(),q0)});var MN=ee((Eve,NN)=>{"use strict";c();d();f();NN.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var wM=ee((Gf,Il)=>{c();d();f();var dG=200,Zb="__lodash_hash_undefined__",og=1,XN=2,JN=9007199254740991,Q0="[object Arguments]",qb="[object Array]",hG="[object AsyncFunction]",QN="[object Boolean]",ZN="[object Date]",eM="[object Error]",tM="[object Function]",pG="[object GeneratorFunction]",Z0="[object Map]",rM="[object Number]",mG="[object Null]",Dl="[object Object]",UN="[object Promise]",gG="[object Proxy]",nM="[object RegExp]",eg="[object Set]",iM="[object String]",yG="[object Symbol]",vG="[object Undefined]",Wb="[object WeakMap]",oM="[object ArrayBuffer]",tg="[object DataView]",wG="[object Float32Array]",xG="[object Float64Array]",bG="[object Int8Array]",EG="[object Int16Array]",_G="[object Int32Array]",SG="[object Uint8Array]",CG="[object Uint8ClampedArray]",TG="[object Uint16Array]",PG="[object Uint32Array]",DG=/[\\^$.*+?()[\]{}|]/g,IG=/^\[object .+?Constructor\]$/,AG=/^(?:0|[1-9]\d*)$/,bt={};bt[wG]=bt[xG]=bt[bG]=bt[EG]=bt[_G]=bt[SG]=bt[CG]=bt[TG]=bt[PG]=!0;bt[Q0]=bt[qb]=bt[oM]=bt[QN]=bt[tg]=bt[ZN]=bt[eM]=bt[tM]=bt[Z0]=bt[rM]=bt[Dl]=bt[nM]=bt[eg]=bt[iM]=bt[Wb]=!1;var sM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,OG=typeof self=="object"&&self&&self.Object===Object&&self,Ni=sM||OG||Function("return this")(),aM=typeof Gf=="object"&&Gf&&!Gf.nodeType&&Gf,VN=aM&&typeof Il=="object"&&Il&&!Il.nodeType&&Il,uM=VN&&VN.exports===aM,zb=uM&&sM.process,BN=function(){try{return zb&&zb.binding&&zb.binding("util")}catch(e){}}(),jN=BN&&BN.isTypedArray;function RG(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 NG(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function MG(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 kG(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function LG(e){return function(t){return e(t)}}function FG(e,t){return e.has(t)}function $G(e,t){return e==null?void 0:e[t]}function UG(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function VG(e,t){return function(r){return e(t(r))}}function BG(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var jG=Array.prototype,zG=Function.prototype,sg=Object.prototype,Hb=Ni["__core-js_shared__"],lM=zG.toString,ri=sg.hasOwnProperty,zN=function(){var e=/[^.]+$/.exec(Hb&&Hb.keys&&Hb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cM=sg.toString,HG=RegExp("^"+lM.call(ri).replace(DG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HN=uM?Ni.Buffer:void 0,rg=Ni.Symbol,KN=Ni.Uint8Array,fM=sg.propertyIsEnumerable,KG=jG.splice,ta=rg?rg.toStringTag:void 0,qN=Object.getOwnPropertySymbols,qG=HN?HN.isBuffer:void 0,WG=VG(Object.keys,Object),Gb=Al(Ni,"DataView"),Yf=Al(Ni,"Map"),Yb=Al(Ni,"Promise"),Xb=Al(Ni,"Set"),Jb=Al(Ni,"WeakMap"),Xf=Al(Object,"create"),GG=ia(Gb),YG=ia(Yf),XG=ia(Yb),JG=ia(Xb),QG=ia(Jb),WN=rg?rg.prototype:void 0,Kb=WN?WN.valueOf:void 0;function ra(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 ZG(){this.__data__=Xf?Xf(null):{},this.size=0}function eY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function tY(e){var t=this.__data__;if(Xf){var r=t[e];return r===Zb?void 0:r}return ri.call(t,e)?t[e]:void 0}function rY(e){var t=this.__data__;return Xf?t[e]!==void 0:ri.call(t,e)}function nY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xf&&t===void 0?Zb:t,this}ra.prototype.clear=ZG;ra.prototype.delete=eY;ra.prototype.get=tY;ra.prototype.has=rY;ra.prototype.set=nY;function Mi(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 iY(){this.__data__=[],this.size=0}function oY(e){var t=this.__data__,r=ag(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():KG.call(t,r,1),--this.size,!0}function sY(e){var t=this.__data__,r=ag(t,e);return r<0?void 0:t[r][1]}function aY(e){return ag(this.__data__,e)>-1}function uY(e,t){var r=this.__data__,n=ag(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Mi.prototype.clear=iY;Mi.prototype.delete=oY;Mi.prototype.get=sY;Mi.prototype.has=aY;Mi.prototype.set=uY;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 lY(){this.size=0,this.__data__={hash:new ra,map:new(Yf||Mi),string:new ra}}function cY(e){var t=ug(this,e).delete(e);return this.size-=t?1:0,t}function fY(e){return ug(this,e).get(e)}function dY(e){return ug(this,e).has(e)}function hY(e,t){var r=ug(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}na.prototype.clear=lY;na.prototype.delete=cY;na.prototype.get=fY;na.prototype.has=dY;na.prototype.set=hY;function ng(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new na;++t<r;)this.add(e[t])}function pY(e){return this.__data__.set(e,Zb),this}function mY(e){return this.__data__.has(e)}ng.prototype.add=ng.prototype.push=pY;ng.prototype.has=mY;function $o(e){var t=this.__data__=new Mi(e);this.size=t.size}function gY(){this.__data__=new Mi,this.size=0}function yY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function vY(e){return this.__data__.get(e)}function wY(e){return this.__data__.has(e)}function xY(e,t){var r=this.__data__;if(r instanceof Mi){var n=r.__data__;if(!Yf||n.length<dG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new na(n)}return r.set(e,t),this.size=r.size,this}$o.prototype.clear=gY;$o.prototype.delete=yY;$o.prototype.get=vY;$o.prototype.has=wY;$o.prototype.set=xY;function bY(e,t){var r=ig(e),n=!r&&LY(e),i=!r&&!n&&Qb(e),o=!r&&!n&&!i&&vM(e),s=r||n||i||o,a=s?kG(e.length,String):[],u=a.length;for(var l in e)(t||ri.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||OY(l,u)))&&a.push(l);return a}function ag(e,t){for(var r=e.length;r--;)if(pM(e[r][0],t))return r;return-1}function EY(e,t,r){var n=t(e);return ig(e)?n:NG(n,r(e))}function Qf(e){return e==null?e===void 0?vG:mG:ta&&ta in Object(e)?IY(e):kY(e)}function GN(e){return Jf(e)&&Qf(e)==Q0}function dM(e,t,r,n,i){return e===t?!0:e==null||t==null||!Jf(e)&&!Jf(t)?e!==e&&t!==t:_Y(e,t,r,n,dM,i)}function _Y(e,t,r,n,i,o){var s=ig(e),a=ig(t),u=s?qb:Fo(e),l=a?qb:Fo(t);u=u==Q0?Dl:u,l=l==Q0?Dl:l;var p=u==Dl,h=l==Dl,g=u==l;if(g&&Qb(e)){if(!Qb(t))return!1;s=!0,p=!1}if(g&&!p)return o||(o=new $o),s||vM(e)?hM(e,t,r,n,i,o):PY(e,t,u,r,n,i,o);if(!(r&og)){var w=p&&ri.call(e,"__wrapped__"),v=h&&ri.call(t,"__wrapped__");if(w||v){var _=w?e.value():e,D=v?t.value():t;return o||(o=new $o),i(_,D,r,n,o)}}return g?(o||(o=new $o),DY(e,t,r,n,i,o)):!1}function SY(e){if(!yM(e)||NY(e))return!1;var t=mM(e)?HG:IG;return t.test(ia(e))}function CY(e){return Jf(e)&&gM(e.length)&&!!bt[Qf(e)]}function TY(e){if(!MY(e))return WG(e);var t=[];for(var r in Object(e))ri.call(e,r)&&r!="constructor"&&t.push(r);return t}function hM(e,t,r,n,i,o){var s=r&og,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,g=r&XN?new ng:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var w=e[p],v=t[p];if(n)var _=s?n(v,w,p,t,e,o):n(w,v,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(g){if(!MG(t,function(D,C){if(!FG(g,C)&&(w===D||i(w,D,r,n,o)))return g.push(C)})){h=!1;break}}else if(!(w===v||i(w,v,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function PY(e,t,r,n,i,o,s){switch(r){case tg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case oM:return!(e.byteLength!=t.byteLength||!o(new KN(e),new KN(t)));case QN:case ZN:case rM:return pM(+e,+t);case eM:return e.name==t.name&&e.message==t.message;case nM:case iM:return e==t+"";case Z0:var a=UG;case eg:var u=n&og;if(a||(a=BG),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=XN,s.set(e,t);var p=hM(a(e),a(t),n,i,o,s);return s.delete(e),p;case yG:if(Kb)return Kb.call(e)==Kb.call(t)}return!1}function DY(e,t,r,n,i,o){var s=r&og,a=YN(e),u=a.length,l=YN(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var g=a[h];if(!(s?g in t:ri.call(t,g)))return!1}var w=o.get(e);if(w&&o.get(t))return w==t;var v=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){g=a[h];var D=e[g],C=t[g];if(n)var I=s?n(C,D,g,t,e,o):n(D,C,g,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){v=!1;break}_||(_=g=="constructor")}if(v&&!_){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)&&(v=!1)}return o.delete(e),o.delete(t),v}function YN(e){return EY(e,UY,AY)}function ug(e,t){var r=e.__data__;return RY(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Al(e,t){var r=$G(e,t);return SY(r)?r:void 0}function IY(e){var t=ri.call(e,ta),r=e[ta];try{e[ta]=void 0;var n=!0}catch(o){}var i=cM.call(e);return n&&(t?e[ta]=r:delete e[ta]),i}var AY=qN?function(e){return e==null?[]:(e=Object(e),RG(qN(e),function(t){return fM.call(e,t)}))}:VY,Fo=Qf;(Gb&&Fo(new Gb(new ArrayBuffer(1)))!=tg||Yf&&Fo(new Yf)!=Z0||Yb&&Fo(Yb.resolve())!=UN||Xb&&Fo(new Xb)!=eg||Jb&&Fo(new Jb)!=Wb)&&(Fo=function(e){var t=Qf(e),r=t==Dl?e.constructor:void 0,n=r?ia(r):"";if(n)switch(n){case GG:return tg;case YG:return Z0;case XG:return UN;case JG:return eg;case QG:return Wb}return t});function OY(e,t){return t=t==null?JN:t,!!t&&(typeof e=="number"||AG.test(e))&&e>-1&&e%1==0&&e<t}function RY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function NY(e){return!!zN&&zN in e}function MY(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sg;return e===r}function kY(e){return cM.call(e)}function ia(e){if(e!=null){try{return lM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function pM(e,t){return e===t||e!==e&&t!==t}var LY=GN(function(){return arguments}())?GN:function(e){return Jf(e)&&ri.call(e,"callee")&&!fM.call(e,"callee")},ig=Array.isArray;function FY(e){return e!=null&&gM(e.length)&&!mM(e)}var Qb=qG||BY;function $Y(e,t){return dM(e,t)}function mM(e){if(!yM(e))return!1;var t=Qf(e);return t==tM||t==pG||t==hG||t==gG}function gM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JN}function yM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Jf(e){return e!=null&&typeof e=="object"}var vM=jN?LG(jN):CY;function UY(e){return FY(e)?bY(e):TY(e)}function VY(){return[]}function BY(){return!1}Il.exports=$Y});var ek=ee(pg=>{"use strict";c();d();f();Object.defineProperty(pg,"__esModule",{value:!0});pg.getWindowMetadata=void 0;var ZM=Xs();function WJ(){let e,t;try{e=ZM.getDocumentOrThrow(),t=ZM.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.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}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.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}}pg.getWindowMetadata=WJ});var Ak=ee(wg=>{"use strict";c();d();f();Object.defineProperty(wg,"__esModule",{value:!0});wg.getWindowMetadata=void 0;var Ik=Xs();function yQ(){let e,t;try{e=Ik.getDocumentOrThrow(),t=Ik.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.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}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.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}}wg.getWindowMetadata=yQ});var kk=ee((Jve,xg)=>{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 xg=="object"&&xg.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],g=[1,256,65536,16777216],w=[6,1536,393216,100663296],v=[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,H){return function(q){return new b(T,z,T).update(q)[H]()}},U=function(T,z,H){return function(q,Z){return new b(T,z,Z).update(q)[H]()}},j=function(T,z,H){return function(q,Z,ie,re){return m["cshake"+T].update(q,Z,ie,re)[H]()}},F=function(T,z,H){return function(q,Z,ie,re){return m["kmac"+T].update(q,Z,ie,re)[H]()}},$=function(T,z,H,q){for(var Z=0;Z<I.length;++Z){var ie=I[Z];T[ie]=z(H,q,ie)}return T},G=function(T,z){var H=R(T,z,"hex");return H.create=function(){return new b(T,z,T)},H.update=function(q){return H.create().update(q)},$(H,R,T,z)},X=function(T,z){var H=U(T,z,"hex");return H.create=function(q){return new b(T,z,q)},H.update=function(q,Z){return H.create(Z).update(q)},$(H,U,T,z)},W=function(T,z){var H=P[T],q=j(T,z,"hex");return q.create=function(Z,ie,re){return!ie&&!re?m["shake"+T].create(Z):new b(T,z,Z).bytepad([ie,re],H)},q.update=function(Z,ie,re,te){return q.create(ie,re,te).update(Z)},$(q,j,T,z)},J=function(T,z){var H=P[T],q=F(T,z,"hex");return q.create=function(Z,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],H).bytepad([Z],H)},q.update=function(Z,ie,re,te){return q.create(Z,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:g,bits:D,createMethod:G},{name:"sha3",padding:w,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=[],A=0;A<N.length;++A)for(var O=N[A],M=O.bits,V=0;V<M.length;++V){var B=O.name+"_"+M[V];if(E.push(B),m[B]=O.createMethod(M[V],O.padding),O.name!=="sha3"){var k=O.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,H){this.blocks=[],this.s=[],this.padding=z,this.outputBits=H,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=H>>5,this.extraBytes=(H&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,H=typeof T;if(H!=="string"){if(H==="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,Z=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,se;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<Z;++te)q[ne>>2]|=T[te]<<v[ne++&3];else for(ne=this.start;te<ie&&ne<Z;++te)se=T.charCodeAt(te),se<128?q[ne>>2]|=se<<v[ne++&3]:se<2048?(q[ne>>2]|=(192|se>>6)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]):se<55296||se>=57344?(q[ne>>2]|=(224|se>>12)<<v[ne++&3],q[ne>>2]|=(128|se>>6&63)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]):(se=65536+((se&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|se>>18)<<v[ne++&3],q[ne>>2]|=(128|se>>12&63)<<v[ne++&3],q[ne>>2]|=(128|se>>6&63)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]);if(this.lastByteIndex=ne,ne>=Z){for(this.start=ne-Z,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Q(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var H=T&255,q=1,Z=[H];for(T=T>>8,H=T&255;H>0;)Z.unshift(H),T=T>>8,H=T&255,++q;return z?Z.push(q):Z.unshift(q),this.update(Z),Z.length},b.prototype.encodeString=function(T){var z,H=typeof T;if(H!=="string"){if(H==="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,Z=T.length;if(z)q=Z;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 H=this.encode(z),q=0;q<T.length;++q)H+=this.encodeString(T[q]);var Z=z-H%z,ie=[];return ie.length=Z,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,H=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[H],z=1;z<H+1;++z)T[z]=0;for(T[H-1]|=2147483648,z=0;z<H;++z)q[z]^=T[z];Q(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re="",te;ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)te=z[Z],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&&(Q(z),Z=0)}return q&&(te=z[Z],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,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(H+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)he[ie]=z[Z];ie%T===0&&Q(z)}return q&&(he[Z]=z[Z],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,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re=[],te,he;ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)te=ie<<2,he=z[Z],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&&Q(z)}return q&&(te=ie<<2,he=z[Z],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,H){b.call(this,T,z,H)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Q=function(T){var z,H,q,Z,ie,re,te,he,ne,se,Ho,Be,je,Ko,ze,He,qo,Ke,qe,Wo,We,Ge,Go,Ye,Xe,Yo,Je,Qe,Xo,Ze,et,Jo,tt,rt,Qo,nt,it,Zo,ot,st,es,at,ut,ts,lt,ct,rs,ft,dt,ns,ht,pt,is,mt,gt,os,yt,vt,Fi,$i,Ui,Vi,Bi;for(q=0;q<48;q+=2)Z=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],se=T[6]^T[16]^T[26]^T[36]^T[46],Ho=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),H=je^(te<<1|re>>>31),T[0]^=z,T[1]^=H,T[10]^=z,T[11]^=H,T[20]^=z,T[21]^=H,T[30]^=z,T[31]^=H,T[40]^=z,T[41]^=H,z=Z^(he<<1|ne>>>31),H=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=H,T[12]^=z,T[13]^=H,T[22]^=z,T[23]^=H,T[32]^=z,T[33]^=H,T[42]^=z,T[43]^=H,z=re^(se<<1|Ho>>>31),H=te^(Ho<<1|se>>>31),T[4]^=z,T[5]^=H,T[14]^=z,T[15]^=H,T[24]^=z,T[25]^=H,T[34]^=z,T[35]^=H,T[44]^=z,T[45]^=H,z=he^(Be<<1|je>>>31),H=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=H,T[16]^=z,T[17]^=H,T[26]^=z,T[27]^=H,T[36]^=z,T[37]^=H,T[46]^=z,T[47]^=H,z=se^(Z<<1|ie>>>31),H=Ho^(ie<<1|Z>>>31),T[8]^=z,T[9]^=H,T[18]^=z,T[19]^=H,T[28]^=z,T[29]^=H,T[38]^=z,T[39]^=H,T[48]^=z,T[49]^=H,Ko=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,rs=T[10]<<4|T[11]>>>28,Qe=T[20]<<3|T[21]>>>29,Xo=T[21]<<3|T[20]>>>29,$i=T[31]<<9|T[30]>>>23,Ui=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,Qo=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,qo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Ze=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Vi=T[42]<<2|T[43]>>>30,Bi=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,ns=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,Jo=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,os=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,Zo=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Wo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,is=T[46]<<24|T[47]>>>8,ts=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,Yo=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Fi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,es=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,Go=T[49]<<14|T[48]>>>18,T[0]=Ko^~He&Ke,T[1]=ze^~qo&qe,T[10]=Ye^~Yo&Qe,T[11]=Xe^~Je&Xo,T[20]=rt^~nt&Zo,T[21]=Qo^~it&ot,T[30]=ts^~ct&ft,T[31]=lt^~rs&dt,T[40]=mt^~os&vt,T[41]=gt^~yt&Fi,T[2]=He^~Ke&Wo,T[3]=qo^~qe&We,T[12]=Yo^~Qe&Ze,T[13]=Je^~Xo&et,T[22]=nt^~Zo&st,T[23]=it^~ot&es,T[32]=ct^~ft&ns,T[33]=rs^~dt&ht,T[42]=os^~vt&$i,T[43]=yt^~Fi&Ui,T[4]=Ke^~Wo&Ge,T[5]=qe^~We&Go,T[14]=Qe^~Ze&Jo,T[15]=Xo^~et&tt,T[24]=Zo^~st&at,T[25]=ot^~es&ut,T[34]=ft^~ns&pt,T[35]=dt^~ht&is,T[44]=vt^~$i&Vi,T[45]=Fi^~Ui&Bi,T[6]=Wo^~Ge&Ko,T[7]=We^~Go&ze,T[16]=Ze^~Jo&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=es^~ut&Qo,T[36]=ns^~pt&ts,T[37]=ht^~is<,T[46]=$i^~Vi&mt,T[47]=Ui^~Bi>,T[8]=Ge^~Ko&He,T[9]=Go^~ze&qo,T[18]=Jo^~Ye&Yo,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~Qo&it,T[38]=pt^~ts&ct,T[39]=is^~lt&rs,T[48]=Vi^~mt&os,T[49]=Bi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)xg.exports=m;else{for(A=0;A<E.length;++A)n[E[A]]=m[E[A]];a&&define(function(){return m})}})()});var Lk=ee(()=>{c();d();f()});var $k=ee((Fk,UE)=>{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=Lk().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,A){if(typeof m=="number")return this._initNumber(m,E,A);if(typeof m=="object")return this._initArray(m,E,A);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var O=0;m[0]==="-"&&(O++,this.negative=1),O<m.length&&(E===16?this._parseHex(m,O,A):(this._parseBase(m,E,O),A==="le"&&this._initArray(this.toArray(),E,A)))},i.prototype._initNumber=function(m,E,A){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),A==="le"&&this._initArray(this.toArray(),E,A)},i.prototype._initArray=function(m,E,A){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 O=0;O<this.length;O++)this.words[O]=0;var M,V,B=0;if(A==="be")for(O=m.length-1,M=0;O>=0;O-=3)V=m[O]|m[O-1]<<8|m[O-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(A==="le")for(O=0,M=0;O<m.length;O+=3)V=m[O]|m[O+1]<<8|m[O+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 A=s(N,E);return E-1>=m&&(A|=s(N,E-1)<<4),A}i.prototype._parseHex=function(m,E,A){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var M=0,V=0,B;if(A==="be")for(O=m.length-1;O>=E;O-=2)B=a(m,E,O)<<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(O=k%2===0?E+1:E;O<m.length;O+=2)B=a(m,E,O)<<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,A){for(var O=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;O*=A,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<A,"Invalid character"),O+=M}return O}i.prototype._parseBase=function(m,E,A){this.words=[0],this.length=1;for(var O=0,M=1;M<=67108863;M*=E)O++;O--,M=M/E|0;for(var V=m.length-A,B=V%O,k=Math.min(V,V-B)+A,b=0,L=A;L<k;L+=O)b=u(m,L,L+O,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Q=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Q*=E;this.imuln(Q),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"],g=[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],w=[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 A;if(m===16||m==="hex"){A="";for(var O=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<O|M)&16777215).toString(16);M=B>>>24-O&16777215,O+=2,O>=26&&(O-=26,V--),M!==0||V!==this.length-1?A=h[6-k.length]+k+A:A=k+A}for(M!==0&&(A=M.toString(16)+A);A.length%E!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(m===(m|0)&&m>=2&&m<=36){var b=g[m],L=w[m];A="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var T=Q.modrn(L).toString(m);Q=Q.idivn(L),Q.isZero()?A=T+A:A=h[b-T.length]+T+A}for(this.isZero()&&(A="0"+A);A.length%E!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}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 v=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,A){this._strip();var O=this.byteLength(),M=A||Math.max(1,O);r(O<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=v(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,O),V},i.prototype._toArrayLikeLE=function(m,E){for(var A=0,O=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|O;m[A++]=B&255,A<m.length&&(m[A++]=B>>8&255),A<m.length&&(m[A++]=B>>16&255),V===6?(A<m.length&&(m[A++]=B>>24&255),O=0,V=0):(O=B>>>24,V+=2)}if(A<m.length)for(m[A++]=O;A<m.length;)m[A++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var A=m.length-1,O=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|O;m[A--]=B&255,A>=0&&(m[A--]=B>>8&255),A>=0&&(m[A--]=B>>16&255),V===6?(A>=0&&(m[A--]=B>>24&255),O=0,V=0):(O=B>>>24,V+=2)}if(A>=0)for(m[A--]=O;A>=0;)m[A--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,A=0;return E>=4096&&(A+=13,E>>>=13),E>=64&&(A+=7,E>>>=7),E>=8&&(A+=4,E>>>=4),E>=2&&(A+=2,E>>>=2),A+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,A=0;return(E&8191)===0&&(A+=13,E>>>=13),(E&127)===0&&(A+=7,E>>>=7),(E&15)===0&&(A+=4,E>>>=4),(E&3)===0&&(A+=2,E>>>=2),(E&1)===0&&A++,A},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 A=E/26|0,O=E%26;m[E]=N.words[A]>>>O&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var A=this._zeroBits(this.words[E]);if(m+=A,A!==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 A=0;A<E.length;A++)this.words[A]=this.words[A]&m.words[A];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,A;this.length>m.length?(E=this,A=m):(E=m,A=this);for(var O=0;O<A.length;O++)this.words[O]=E.words[O]^A.words[O];if(this!==E)for(;O<E.length;O++)this.words[O]=E.words[O];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,A=m%26;this._expand(E),A>0&&E--;for(var O=0;O<E;O++)this.words[O]=~this.words[O]&67108863;return A>0&&(this.words[O]=~this.words[O]&67108863>>26-A),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 A=m/26|0,O=m%26;return this._expand(A+1),E?this.words[A]=this.words[A]|1<<O:this.words[A]=this.words[A]&~(1<<O),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 A,O;this.length>m.length?(A=this,O=m):(A=m,O=this);for(var M=0,V=0;V<O.length;V++)E=(A.words[V]|0)+(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<A.length;V++)E=(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=A.length,M!==0)this.words[this.length]=M,this.length++;else if(A!==this)for(;V<A.length;V++)this.words[V]=A.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 A=this.cmp(m);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,M;A>0?(O=this,M=m):(O=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(O.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<O.length;B++)E=(O.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<O.length&&O!==this)for(;B<O.length;B++)this.words[B]=O.words[B];return this.length=Math.max(this.length,B),O!==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 A=N.length+m.length|0;E.length=A,A=A-1|0;var O=N.words[0]|0,M=m.words[0]|0,V=O*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<A;b++){for(var L=k>>>26,Q=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var H=b-z|0;O=N.words[H]|0,M=m.words[z]|0,V=O*M+Q,L+=V/67108864|0,Q=V&67108863}E.words[b]=Q|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,A){var O=m.words,M=E.words,V=A.words,B=0,k,b,L,Q=O[0]|0,T=Q&8191,z=Q>>>13,H=O[1]|0,q=H&8191,Z=H>>>13,ie=O[2]|0,re=ie&8191,te=ie>>>13,he=O[3]|0,ne=he&8191,se=he>>>13,Ho=O[4]|0,Be=Ho&8191,je=Ho>>>13,Ko=O[5]|0,ze=Ko&8191,He=Ko>>>13,qo=O[6]|0,Ke=qo&8191,qe=qo>>>13,Wo=O[7]|0,We=Wo&8191,Ge=Wo>>>13,Go=O[8]|0,Ye=Go&8191,Xe=Go>>>13,Yo=O[9]|0,Je=Yo&8191,Qe=Yo>>>13,Xo=M[0]|0,Ze=Xo&8191,et=Xo>>>13,Jo=M[1]|0,tt=Jo&8191,rt=Jo>>>13,Qo=M[2]|0,nt=Qo&8191,it=Qo>>>13,Zo=M[3]|0,ot=Zo&8191,st=Zo>>>13,es=M[4]|0,at=es&8191,ut=es>>>13,ts=M[5]|0,lt=ts&8191,ct=ts>>>13,rs=M[6]|0,ft=rs&8191,dt=rs>>>13,ns=M[7]|0,ht=ns&8191,pt=ns>>>13,is=M[8]|0,mt=is&8191,gt=is>>>13,os=M[9]|0,yt=os&8191,vt=os>>>13;A.negative=m.negative^E.negative,A.length=19,k=Math.imul(T,Ze),b=Math.imul(T,et),b=b+Math.imul(z,Ze)|0,L=Math.imul(z,et);var Fi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,k=Math.imul(q,Ze),b=Math.imul(q,et),b=b+Math.imul(Z,Ze)|0,L=Math.imul(Z,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 $i=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($i>>>26)|0,$i&=67108863,k=Math.imul(re,Ze),b=Math.imul(re,et),b=b+Math.imul(te,Ze)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Z,tt)|0,L=L+Math.imul(Z,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 Ui=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,k=Math.imul(ne,Ze),b=Math.imul(ne,et),b=b+Math.imul(se,Ze)|0,L=Math.imul(se,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(Z,nt)|0,L=L+Math.imul(Z,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 Vi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,k=Math.imul(Be,Ze),b=Math.imul(Be,et),b=b+Math.imul(je,Ze)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(se,tt)|0,L=L+Math.imul(se,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(Z,ot)|0,L=L+Math.imul(Z,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 Bi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,k=Math.imul(ze,Ze),b=Math.imul(ze,et),b=b+Math.imul(He,Ze)|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(se,nt)|0,L=L+Math.imul(se,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(Z,at)|0,L=L+Math.imul(Z,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 Og=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Og>>>26)|0,Og&=67108863,k=Math.imul(Ke,Ze),b=Math.imul(Ke,et),b=b+Math.imul(qe,Ze)|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(se,ot)|0,L=L+Math.imul(se,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(Z,lt)|0,L=L+Math.imul(Z,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 Rg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Rg>>>26)|0,Rg&=67108863,k=Math.imul(We,Ze),b=Math.imul(We,et),b=b+Math.imul(Ge,Ze)|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(se,at)|0,L=L+Math.imul(se,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(Z,ft)|0,L=L+Math.imul(Z,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 Ng=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ng>>>26)|0,Ng&=67108863,k=Math.imul(Ye,Ze),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Ze)|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(se,lt)|0,L=L+Math.imul(se,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(Z,ht)|0,L=L+Math.imul(Z,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 Mg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Mg>>>26)|0,Mg&=67108863,k=Math.imul(Je,Ze),b=Math.imul(Je,et),b=b+Math.imul(Qe,Ze)|0,L=Math.imul(Qe,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(se,ft)|0,L=L+Math.imul(se,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(Z,mt)|0,L=L+Math.imul(Z,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 kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(kg>>>26)|0,kg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Qe,tt)|0,L=Math.imul(Qe,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(se,ht)|0,L=L+Math.imul(se,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(Z,yt)|0,L=L+Math.imul(Z,vt)|0;var Lg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Lg>>>26)|0,Lg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Qe,nt)|0,L=Math.imul(Qe,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(se,mt)|0,L=L+Math.imul(se,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 Fg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Fg>>>26)|0,Fg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Qe,ot)|0,L=Math.imul(Qe,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(se,yt)|0,L=L+Math.imul(se,vt)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Qe,at)|0,L=Math.imul(Qe,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 Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Qe,lt)|0,L=Math.imul(Qe,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 Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Qe,ft)|0,L=Math.imul(Qe,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 Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Qe,ht)|0,L=Math.imul(Qe,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 jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Qe,mt)|0,L=Math.imul(Qe,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 zg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Qe,yt)|0,L=Math.imul(Qe,vt);var Hg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(Hg>>>26)|0,Hg&=67108863,V[0]=Fi,V[1]=$i,V[2]=Ui,V[3]=Vi,V[4]=Bi,V[5]=Og,V[6]=Rg,V[7]=Ng,V[8]=Mg,V[9]=kg,V[10]=Lg,V[11]=Fg,V[12]=$g,V[13]=Ug,V[14]=Vg,V[15]=Bg,V[16]=jg,V[17]=zg,V[18]=Hg,B!==0&&(V[19]=B,A.length++),A};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var A=0,O=0,M=0;M<E.length-1;M++){var V=O;O=0;for(var B=A&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Q=N.words[L]|0,T=m.words[b]|0,z=Q*T,H=z&67108863;V=V+(z/67108864|0)|0,H=H+B|0,B=H&67108863,V=V+(H>>>26)|0,O+=V>>>26,V&=67108863}E.words[M]=B,A=V,V=O}return A!==0?E.words[M]=A:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var A,O=this.length+m.length;return this.length===10&&m.length===10?A=C(this,m,E):O<63?A=D(this,m,E):O<1024?A=I(this,m,E):A=P(this,m,E),A};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),A=i.prototype._countBits(m)-1,O=0;O<m;O++)E[O]=this.revBin(O,A,m);return E},R.prototype.revBin=function(m,E,A){if(m===0||m===A-1)return m;for(var O=0,M=0;M<E;M++)O|=(m&1)<<E-M-1,m>>=1;return O},R.prototype.permute=function(m,E,A,O,M,V){for(var B=0;B<V;B++)O[B]=E[m[B]],M[B]=A[m[B]]},R.prototype.transform=function(m,E,A,O,M,V){this.permute(V,m,E,A,O,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),Q=0;Q<M;Q+=k)for(var T=b,z=L,H=0;H<B;H++){var q=A[Q+H],Z=O[Q+H],ie=A[Q+H+B],re=O[Q+H+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,A[Q+H]=q+ie,O[Q+H]=Z+re,A[Q+H+B]=q-ie,O[Q+H+B]=Z-re,H!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var A=Math.max(E,m)|1,O=A&1,M=0;for(A=A/2|0;A;A=A>>>1)M++;return 1<<M+1+O},R.prototype.conjugate=function(m,E,A){if(!(A<=1))for(var O=0;O<A/2;O++){var M=m[O];m[O]=m[A-O-1],m[A-O-1]=M,M=E[O],E[O]=-E[A-O-1],E[A-O-1]=-M}},R.prototype.normalize13b=function(m,E){for(var A=0,O=0;O<E/2;O++){var M=Math.round(m[2*O+1]/E)*8192+Math.round(m[2*O]/E)+A;m[O]=M&67108863,M<67108864?A=0:A=M/67108864|0}return m},R.prototype.convert13b=function(m,E,A,O){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),A[2*V]=M&8191,M=M>>>13,A[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<O;++V)A[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),A=0;A<m;A++)E[A]=0;return E},R.prototype.mulp=function(m,E,A){var O=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(O),V=this.stub(O),B=new Array(O),k=new Array(O),b=new Array(O),L=new Array(O),Q=new Array(O),T=new Array(O),z=A.words;z.length=O,this.convert13b(m.words,m.length,B,O),this.convert13b(E.words,E.length,L,O),this.transform(B,V,k,b,O,M),this.transform(L,V,Q,T,O,M);for(var H=0;H<O;H++){var q=k[H]*Q[H]-b[H]*T[H];b[H]=k[H]*T[H]+b[H]*Q[H],k[H]=q}return this.conjugate(k,b,O),this.transform(k,b,z,V,O,M),this.conjugate(z,V,O),this.normalize13b(z,O),A.negative=m.negative^E.negative,A.length=m.length+E.length,A._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 A=0,O=0;O<this.length;O++){var M=(this.words[O]|0)*m,V=(M&67108863)+(A&67108863);A>>=26,A+=M/67108864|0,A+=V>>>26,this.words[O]=V&67108863}return A!==0&&(this.words[O]=A,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 A=this,O=0;O<E.length&&E[O]===0;O++,A=A.sqr());if(++O<E.length)for(var M=A.sqr();O<E.length;O++,M=M.sqr())E[O]!==0&&(A=A.mul(M));return A},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,A=(m-E)/26,O=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&O,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(A!==0){for(M=this.length-1;M>=0;M--)this.words[M+A]=this.words[M];for(M=0;M<A;M++)this.words[M]=0;this.length+=A}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,A){r(typeof m=="number"&&m>=0);var O;E?O=(E-E%26)/26:O=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=A;if(O-=V,O=Math.max(0,O),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>=O);b--){var Q=this.words[b]|0;this.words[b]=L<<26-M|Q>>>M,L=Q&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,A){return r(this.negative===0),this.iushrn(m,E,A)},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,A=(m-E)/26,O=1<<E;if(this.length<=A)return!1;var M=this.words[A];return!!(M&O)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,A=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(E!==0&&A++,this.length=Math.min(A,this.length),E!==0){var O=67108863^67108863>>>E<<E;this.words[this.length-1]&=O}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,A){var O=m.length+A,M;this._expand(O);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+A]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+A]=V&67108863}for(;M<this.length-A;M++)V=(this.words[M+A]|0)+B,B=V>>26,this.words[M+A]=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 A=this.length-m.length,O=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);A=26-B,A!==0&&(M=M.ushln(A),O.iushln(A),V=M.words[M.length-1]|0);var k=O.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 Q=O.clone()._ishlnsubmul(M,1,k);Q.negative===0&&(O=Q,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(O.words[M.length+T]|0)*67108864+(O.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),O._ishlnsubmul(M,z,T);O.negative!==0;)z--,O.negative=0,O._ishlnsubmul(M,1,T),O.isZero()||(O.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),O._strip(),E!=="div"&&A!==0&&O.iushrn(A),{div:b||null,mod:O}},i.prototype.divmod=function(m,E,A){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var O,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(O=V.div.neg()),E!=="div"&&(M=V.mod.neg(),A&&M.negative!==0&&M.iadd(m)),{div:O,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(O=V.div.neg()),{div:O,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),A&&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 A=E.div.negative!==0?E.mod.isub(m):E.mod,O=m.ushrn(1),M=m.andln(1),V=A.cmp(O);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 A=(1<<26)%m,O=0,M=this.length-1;M>=0;M--)O=(A*O+(this.words[M]|0))%m;return E?-O:O},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 A=0,O=this.length-1;O>=0;O--){var M=(this.words[O]|0)+A*67108864;this.words[O]=M/m|0,A=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,A=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var O=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&A.isEven();)E.iushrn(1),A.iushrn(1),++k;for(var b=A.clone(),L=E.clone();!E.isZero();){for(var Q=0,T=1;(E.words[0]&T)===0&&Q<26;++Q,T<<=1);if(Q>0)for(E.iushrn(Q);Q-- >0;)(O.isOdd()||M.isOdd())&&(O.iadd(b),M.isub(L)),O.iushrn(1),M.iushrn(1);for(var z=0,H=1;(A.words[0]&H)===0&&z<26;++z,H<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(A)>=0?(E.isub(A),O.isub(V),M.isub(B)):(A.isub(E),V.isub(O),B.isub(M))}return{a:V,b:B,gcd:A.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,A=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var O=new i(1),M=new i(0),V=A.clone();E.cmpn(1)>0&&A.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;)O.isOdd()&&O.iadd(V),O.iushrn(1);for(var b=0,L=1;(A.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(A.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(A)>=0?(E.isub(A),O.isub(M)):(A.isub(E),M.isub(O))}var Q;return E.cmpn(1)===0?Q=O:Q=M,Q.cmpn(0)<0&&Q.iadd(m),Q},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),A=m.clone();E.negative=0,A.negative=0;for(var O=0;E.isEven()&&A.isEven();O++)E.iushrn(1),A.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;A.isEven();)A.iushrn(1);var M=E.cmp(A);if(M<0){var V=E;E=A,A=V}else if(M===0||A.cmpn(1)===0)break;E.isub(A)}while(!0);return A.iushln(O)},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,A=(m-E)/26,O=1<<E;if(this.length<=A)return this._expand(A+1),this.words[A]|=O,this;for(var M=O,V=A;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 A;if(this.length>1)A=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var O=this.words[0]|0;A=O===m?0:O<m?-1:1}return this.negative!==0?-A|0:A},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,A=this.length-1;A>=0;A--){var O=this.words[A]|0,M=m.words[A]|0;if(O!==M){O<M?E=-1:O>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,A;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),A=E.bitLength();while(A>this.n);var O=A<this.n?-1:E.ucmp(this.p);return O===0?(E.words[0]=0,E.length=1):O>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 A=4194303,O=Math.min(m.length,9),M=0;M<O;M++)E.words[M]=m.words[M];if(E.length=O,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&A,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&A)<<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,A=0;A<m.length;A++){var O=m.words[A]|0;E+=O*977,m.words[A]=E&67108863,E=O*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,A=0;A<m.length;A++){var O=(m.words[A]|0)*19+E,M=O&67108863;O>>>=26,m.words[A]=M,E=O}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 A=m.add(E);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var A=m.iadd(E);return A.cmp(this.m)>=0&&A.isub(this.m),A},W.prototype.sub=function(m,E){this._verify2(m,E);var A=m.sub(E);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var A=m.isub(E);return A.cmpn(0)<0&&A.iadd(this.m),A},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 A=this.m.add(new i(1)).iushrn(2);return this.pow(m,A)}for(var O=this.m.subn(1),M=0;!O.isZero()&&O.andln(1)===0;)M++,O.iushrn(1);r(!O.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,O),Q=this.pow(m,O.addn(1).iushrn(1)),T=this.pow(m,O),z=M;T.cmp(V)!==0;){for(var H=T,q=0;H.cmp(V)!==0;q++)H=H.redSqr();r(q<z);var Z=this.pow(L,new i(1).iushln(z-q-1));Q=Q.redMul(Z),L=Z.redSqr(),T=T.redMul(L),z=q}return Q},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 A=4,O=new Array(1<<A);O[0]=new i(1).toRed(this),O[1]=m;for(var M=2;M<O.length;M++)O[M]=this.mul(O[M-1],m);var V=O[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],Q=b-1;Q>=0;Q--){var T=L>>Q&1;if(V!==O[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==A&&(M!==0||Q!==0))&&(V=this.mul(V,O[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 A=m.imul(E),O=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=A.isub(O).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 A=m.mul(E),O=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=A.isub(O).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 UE>"u"||UE,Fk)});var jZ={};ur(jZ,{init:()=>$Z,open:()=>VZ,reset:()=>BZ,update:()=>UZ});c();d();f();c();d();f();c();d();f();c();d();f();var X_=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(g=>g(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{var u;((u=S)==null?void 0:u.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead 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},J_=e=>e?X_(e):X_;var a2=Y(ae(),1),u2=Y(o2(),1),{useSyncExternalStoreWithSelector:wF}=u2.default;function xF(e,t=e.getState,r){let n=wF(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,a2.useDebugValue)(n),n}var s2=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?J_(e):e,n=(i,o)=>xF(r,i,o);return Object.assign(n,r),n},Cd=e=>e?s2(e):s2;c();d();f();var ya=(g=>(g.ConnectionFailed="connection_failed",g.VerificationRejected="verification_rejected",g.MaxVerificationsReached="max_verifications_reached",g.AlreadySigned="already_signed",g.CredentialUnavailable="credential_unavailable",g.MalformedRequest="malformed_request",g.InvalidNetwork="invalid_network",g.InclusionProofFailed="inclusion_proof_failed",g.InclusionProofPending="inclusion_proof_pending",g.UnexpectedResponse="unexpected_response",g.FailedByHostApp="failed_by_host_app",g.GenericError="generic_error",g))(ya||{});c();d();f();var Td=(r=>(r.Orb="orb",r.Phone="phone",r))(Td||{});c();d();f();c();d();f();var ny=function(e,t){return ny=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])},ny(e,t)};function bF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ny(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=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},_e.apply(this,arguments)};function as(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 us(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 EF(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 _F(e,t){if(!e)throw new Error(t)}function SF(e){return e==null?void 0:e.replace(/\/+$/,"")}function CF(e,t){return t===void 0&&(t={}),as(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return us(this,function(g){switch(g.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,g.label=1;case 1:if(!(l<n+1))return[3,8];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,e()];case 3:return p=g.sent(),[2,p];case 4:if(h=g.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(w){return setTimeout(w,o)})];case 6:g.sent(),g.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function l2(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 m2(){return new Date().getTime()}function c2(){return new Date().toISOString()}function f2(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var ql=String.fromCharCode,d2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pd={};function TF(e,t){if(!Pd[e]){Pd[e]={};for(var r=0;r<e.length;r++)Pd[e][e.charAt(r)]=r}return Pd[e][t]}var Yl={compressToBase64:function(e){if(e==null)return"";var t=Yl._compress(e,6,function(r){return d2.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:Yl._decompress(e.length,32,function(t){return TF(d2,e.charAt(t))})},compress:function(e){return Yl._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,g=3,w=2,v=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=g++,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<w;s++)v=v<<1,_==t-1?(_=0,o.push(r(v)),v=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,w),w++),delete i[p]}else for(a=n[p],s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,w),w++),n[l]=g++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<w;s++)v=v<<1,_==t-1?(_=0,o.push(r(v)),v=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,w),w++),delete i[p]}else for(a=n[p],s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,w),w++)}for(a=2,s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;for(;;)if(v=v<<1,_==t-1){o.push(r(v));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:Yl._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,g,w,v,_,D;for(p=0;p<3;p+=1)n[p]=p;for(g=0,v=Math.pow(2,2),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;switch(g){case 0:for(g=0,v=Math.pow(2,8),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;D=ql(g);break;case 1:for(g=0,v=Math.pow(2,16),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;D=ql(g);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(g=0,v=Math.pow(2,u),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;switch(D=g){case 0:for(g=0,v=Math.pow(2,8),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;n[a++]=ql(g),D=a-1,s--;break;case 1:for(g=0,v=Math.pow(2,16),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;n[a++]=ql(g),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++)}}},PF=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}(),DF=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new PF,_F(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=SF((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&&f2(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 _e({$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=EF([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:_e(_e(_e(_e({},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=l2(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=l2(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=_e(_e({},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=_e(_e({},this.buildPayload({distinct_id:t,event:"$identify",properties:_e(_e({},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:_e(_e({},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:_e(_e({},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:_e({$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,_e(_e({},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]=_e(_e({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,_e(_e({},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),as(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return us(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),as(this,void 0,void 0,function(){return us(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 as(r,void 0,void 0,function(){var n;return us(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 as(n,void 0,void 0,function(){var i;return us(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=_e(_e({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:c2()});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=f2(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:c2()},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(m2(),"&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(Yl.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 g=new Error(h.response.statusText);return a(g)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return as(this,void 0,void 0,function(){var s=this;return us(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,CF(function(){return s.fetch(t,_e({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return as(this,void 0,void 0,function(){return us(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}(),g2="2.0.0";function IF(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=_e(_e({},t),{$os:OF(e),$browser:y2(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:NF(e.document.referrer),$device:RF(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:AF(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=_e(_e({},t),{$lib:"js",$lib_version:g2,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:m2()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function y2(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 AF(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=y2(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 OF(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 RF(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 NF(e){var t=e.split("/");return t.length>=3?t[2]:""}var v2={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{v2.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}},h2=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}}},p2=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}},ry=void 0,Wl=void 0,Gl=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},MF=function(e,t){if(t){if(!localStorage){var r=h2(t.localStorage);ry=p2(r)?r:void 0}if(!Wl){var n=h2(t.sessionStorage);Wl=p2(n)?n:void 0}}switch(e){case"cookie":return v2||ry||Wl||Gl();case"localStorage":return ry||Wl||Gl();case"sessionStorage":return Wl||Gl();case"memory":return Gl();default:return Gl()}},w2=function(e){bF(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=MF((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 g2},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return _e(_e({},e.prototype.getCommonEventProperties.call(this)),IF(window))},t}(DF);function kF(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function LF(e,t){try{return await fetch(e,t)}catch(r){throw kF(r)}}var _n=null;typeof globalThis.window<"u"&&(_n=new w2("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),_n.fetch=LF);var x2={version:"0.4.8",package:"idkit-js"};var b2=e=>{e?_n==null||_n.capture("idkit loaded",x2):_n==null||_n.optOut()},E2=()=>{_n==null||_n.capture("idkit opened",x2)};var FF=Cd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",credential_types:[],open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},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}),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,credential_types:a,action_description:u,walletConnectProjectId:l,autoClose:p,copy:h,theme:g},w)=>{let v=a==null?void 0:a.filter(_=>Object.values(Td).includes(_));e(_=>({theme:g,signal:i,action:o,app_id:s,credential_types:v,autoClose:p,action_description:u,walletConnectProjectId:l,copy:K(K({},_.copy),h)})),n&&t().addSuccessCallback(n,w),r&&t().addVerificationCallback(r,w)},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:"failed_by_host_app",message:i}})})},onOpenChange:r=>{if(r)return E2(),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,errorState:null,processing:!1,stage:"WORLD_ID"})}})),Sn=FF;c();d();f();var i7=Y(K6(),1);c();d();f();var r7=Y(ae(),1);c();d();f();c();d();f();var Ut=Y(ae()),t5=Y(Ss()),gi=Y(Z6()),BU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function r5(e,t){return e(t={exports:{}},t.exports),t.exports}var jU=r5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||g(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 w(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]"},g=function(D){return s.call(D)=="[object Boolean]"},w=function(D){return(D-=0)==D},v=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(v(n,C),D)},decamelizeKeys:function(D,C){return r(v(o,C),D,C)},pascalizeKeys:function(D,C){return r(v(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(BU)}).decamelize,zU=r5(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}),HU=function(e){if(Array.isArray(e))return e},KU=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}},e5=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},qU=function(e,t){if(e){if(typeof e=="string")return e5(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)?e5(e,t):void 0}},WU=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.`)},
|
|
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!important}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-px{bottom:1px;left:1px;right:1px;top:1px}.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}.\\!-m-px{margin:-1px!important}.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-2{margin-bottom:.5rem}.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-px{height:1px!important}.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-\\[244px\\]{height:244px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.\\!w-px{width:1px!important}.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-\\[244px\\]{width:244px}.w-\\[34px\\]{width:34px}.w-\\[72px\\]{width:72px}.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%}.scale-x-\\[2\\.0\\]{--tw-scale-x:2.0}.scale-x-\\[2\\.0\\],.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))}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.place-items-center{place-items:center}.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-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*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-hidden{overflow:hidden!important}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.\\!whitespace-nowrap{white-space:nowrap!important}.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-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-4{border-width:4px}.border-solid{border-style:solid}.border-none{border-style:none}.border-current{border-color:currentColor}.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)}.border-r-transparent{border-right-color:transparent}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/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-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/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))}.bg-gradient-conic{background-image:conic-gradient(var(--tw-gradient-stops))}.from-black{--tw-gradient-from:#000;--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-f2f5f9{--tw-gradient-from:#f2f5f9;--tw-gradient-to:rgba(242,245,249,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-gray-200{--tw-gradient-to:rgba(229,231,235,0);--tw-gradient-stops:var(--tw-gradient-from),#e5e7eb,var(--tw-gradient-to)}.via-white\\/30{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.3),var(--tw-gradient-to)}.to-black{--tw-gradient-to:#000}.to-gray-200{--tw-gradient-to:#e5e7eb}.\\!p-0{padding:0!important}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-24{padding-left:6rem;padding-right:6rem}.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-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.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}.font-sora{font-family:Sora,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-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-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))}.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)}.blur{--tw-blur:blur(8px)}.blur,.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)}.will-change-transform{will-change:transform}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.\\!\\[clip\\:rect\\(0\\2c 0\\2c 0\\2c 0\\)\\]{clip:rect(0,0,0,0)!important}.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-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))}@media (prefers-reduced-motion:reduce){@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}}.dark .dark\\:border{border-width:1px}.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-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@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-2xl{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.md\\:p-4{padding:1rem}}`,i5=()=>y.createElement("style",null,t9);c();d();f();var Wh=Y(ae(),1),r9=()=>{let[e,t]=(0,Wh.useState)("desktop");return(0,Wh.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},Wa=r9;c();d();f();var yi=(...e)=>e.filter(Boolean).join(" "),o5=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);c();d();f();function Ga(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}c();d();f();var n9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.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"})),Gh=n9;c();d();f();var i9=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),s5={["failed_by_host_app"]:"Verification Declined",["generic_error"]:"Verification Failed"},o9={["connection_failed"]:"Connection to the World App or identity wallet failed. Please try again.",["verification_rejected"]:"Verification request rejected in the World App.",["max_verifications_reached"]:"You have already verified the maximum number of times for this action.",["already_signed"]:"You have already verified for this action.",["credential_unavailable"]:"It seems you do not have the credential required by this app.",["malformed_request"]:"There was a problem with this request. Please try again or contact the app owner.",["invalid_network"]:"This app is not available on the network you are connected to. Visit docs.worldcoin.org/test for details.",["inclusion_proof_failed"]:"There was an issue fetching your credential. Please try again.",["inclusion_proof_pending"]:"Your credential is still being registered. Please wait a few minutes and try again.",["failed_by_host_app"]:"Verification failed by the app. Please contact the app owner for details.",["unexpected_response"]:"Unexpected response from the World App or identity wallet. Please try again.",["generic_error"]:"Something unexpected went wrong. Please try again."},s9=()=>{var r;let{retryFlow:e,errorState:t}=Sn(i9,Ga);return y.createElement("div",{className:"space-y-8"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},y.createElement(Gh,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(t==null?void 0:t.code)&&s5[t.code]||s5["generic_error"]),y.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||o9[(r=t==null?void 0:t.code)!=null?r:"generic_error"])),y.createElement("div",{className:"flex justify-center"},y.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")),y.createElement("div",null,y.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},a5=s9;c();d();f();var a9=({className:e=""})=>y.createElement("div",{className:"flex items-center justify-center"},y.createElement("div",{className:`inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ${e}`,role:"status"},y.createElement("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading..."))),lo=a9;c();d();f();c();d();f();function Ce(){return Ce=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},Ce.apply(this,arguments)}var fe=Y(ae()),T5=Y(Ss());c();d();f();function pr(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 u5=Y(ae());function u9(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function x1(...e){return t=>e.forEach(r=>u9(r,t))}function mr(...e){return(0,u5.useCallback)(x1(...e),e)}c();d();f();var Nn=Y(ae());c();d();f();var Sr=Y(ae());function l5(e,t){let r=(0,Sr.createContext)(t);function n(o){let l=o,{children:s}=l,a=de(l,["children"]),u=(0,Sr.useMemo)(()=>a,Object.values(a));return(0,Sr.createElement)(r.Provider,{value:u},s)}function i(o){let s=(0,Sr.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 Ya(e,t=[]){let r=[];function n(o,s){let a=(0,Sr.createContext)(s),u=r.length;r=[...r,s];function l(h){let C=h,{scope:g,children:w}=C,v=de(C,["scope","children"]),_=(g==null?void 0:g[e][u])||a,D=(0,Sr.useMemo)(()=>v,Object.values(v));return(0,Sr.createElement)(_.Provider,{value:D},w)}function p(h,g){let w=(g==null?void 0:g[e][u])||a,v=(0,Sr.useContext)(w);if(v)return v;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,Sr.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||o;return(0,Sr.useMemo)(()=>({[`__scope${e}`]:ue(K({},a),{[e]:u})}),[a,u])}};return i.scopeName=e,[n,l9(i,...t)]}function l9(...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 K(K({},a),h)},{});return(0,Sr.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var It=Y(ae());var co=(0,It.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=de(s,["children"]),i=It.Children.toArray(r),o=i.find(f9);if(o){let a=o.props.children,u=i.map(l=>l===o?It.Children.count(a)>1?It.Children.only(null):(0,It.isValidElement)(a)?a.props.children:null:l);return(0,It.createElement)(b1,Ce({},n,{ref:t}),(0,It.isValidElement)(a)?(0,It.cloneElement)(a,void 0,u):null)}return(0,It.createElement)(b1,Ce({},n,{ref:t}),r)});co.displayName="Slot";var b1=(0,It.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=de(i,["children"]);return(0,It.isValidElement)(r)?(0,It.cloneElement)(r,ue(K({},d9(n,r.props)),{ref:x1(t,r.ref)})):It.Children.count(r)>1?It.Children.only(null):null});b1.displayName="SlotClone";var c9=({children:e})=>(0,It.createElement)(It.Fragment,null,e);function f9(e){return(0,It.isValidElement)(e)&&e.type===c9}function d9(e,t){let r=K({},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]=K(K({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return K(K({},e),r)}function c5(e){let t=e+"CollectionProvider",[r,n]=Ya(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{let{scope:v,children:_}=w,D=Nn.default.useRef(null),C=Nn.default.useRef(new Map).current;return Nn.default.createElement(i,{scope:v,itemMap:C,collectionRef:D},_)},a=e+"CollectionSlot",u=Nn.default.forwardRef((w,v)=>{let{scope:_,children:D}=w,C=o(a,_),I=mr(v,C.collectionRef);return Nn.default.createElement(co,{ref:I},D)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=Nn.default.forwardRef((w,v)=>{let U=w,{scope:_,children:D}=U,C=de(U,["scope","children"]),I=Nn.default.useRef(null),P=mr(v,I),R=o(l,_);return Nn.default.useEffect(()=>(R.itemMap.set(I,K({ref:I},C)),()=>void R.itemMap.delete(I))),Nn.default.createElement(co,{[p]:"",ref:P},D)});function g(w){let v=o(e+"CollectionConsumer",w);return Nn.default.useCallback(()=>{let D=v.collectionRef.current;if(!D)return[];let C=Array.from(D.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((R,U)=>C.indexOf(R.ref.current)-C.indexOf(U.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},g,n]}c();d();f();var Fe=Y(ae());c();d();f();var Xa=Y(ae()),f5=Y(Ss());var h9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rr=h9.reduce((e,t)=>{let r=(0,Xa.forwardRef)((n,i)=>{let u=n,{asChild:o}=u,s=de(u,["asChild"]),a=o?co:t;return(0,Xa.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Xa.createElement)(a,Ce({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,ue(K({},e),{[t]:r})},{});function Yh(e,t){e&&(0,f5.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var Ja=Y(ae());function Lr(e){let t=(0,Ja.useRef)(e);return(0,Ja.useEffect)(()=>{t.current=e}),(0,Ja.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var d5=Y(ae());function h5(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(e);(0,d5.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var E1="dismissableLayer.update",p9="dismissableLayer.pointerDownOutside",m9="dismissableLayer.focusOutside",p5,g5=(0,Fe.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_1=(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)(g5),[h,g]=(0,Fe.useState)(null),w=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=(0,Fe.useState)({}),_=mr(t,G=>g(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=y9(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())},w),F=v9(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())},w);return h5(G=>{P===p.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&u&&(G.preventDefault(),u()))},w),(0,Fe.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(p5=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),m5(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=p5)}},[h,w,n,p]),(0,Fe.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),m5())},[h,p]),(0,Fe.useEffect)(()=>{let G=()=>v({});return document.addEventListener(E1,G),()=>document.removeEventListener(E1,G)},[]),(0,Fe.createElement)(rr.div,Ce({},l,{ref:_,style:K({pointerEvents:R?U?"auto":"none":void 0},e.style),onFocusCapture:pr(e.onFocusCapture,F.onFocusCapture),onBlurCapture:pr(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:pr(e.onPointerDownCapture,j.onPointerDownCapture)}))});var g9=(0,Fe.forwardRef)((e,t)=>{let r=(0,Fe.useContext)(g5),n=(0,Fe.useRef)(null),i=mr(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)(rr.div,Ce({},e,{ref:i}))});function y9(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(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(){y5(p9,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 v9(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(e),n=(0,Fe.useRef)(!1);return(0,Fe.useEffect)(()=>{let i=o=>{o.target&&!n.current&&y5(m9,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 m5(){let e=new CustomEvent(E1);document.dispatchEvent(e)}function y5(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?Yh(i,o):i.dispatchEvent(o)}var v5=_1,w5=g9;c();d();f();var Xh=Y(ae()),x5=Y(Ss());var Jh=(0,Xh.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?x5.default.createPortal((0,Xh.createElement)(rr.div,Ce({},i,{ref:t})),n):null});c();d();f();var gr=Y(ae()),E5=Y(Ss());c();d();f();var b5=Y(ae()),Cs=Boolean(globalThis==null?void 0:globalThis.document)?b5.useLayoutEffect:()=>{};function w9(e,t){return(0,gr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var Bc=e=>{let{present:t,children:r}=e,n=x9(t),i=typeof r=="function"?r({present:n.isPresent}):gr.Children.only(r),o=mr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,gr.cloneElement)(i,{ref:o}):null};Bc.displayName="Presence";function x9(e){let[t,r]=(0,gr.useState)(),n=(0,gr.useRef)({}),i=(0,gr.useRef)(e),o=(0,gr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=w9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,gr.useEffect)(()=>{let l=Qh(n.current);o.current=a==="mounted"?l:"none"},[a]),Cs(()=>{let l=n.current,p=i.current;if(p!==e){let g=o.current,w=Qh(l);e?u("MOUNT"):w==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&g!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Cs(()=>{if(t){let l=h=>{let w=Qh(n.current).includes(h.animationName);h.target===t&&w&&(0,E5.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(o.current=Qh(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,gr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Qh(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var fo=Y(ae());function _5({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=b9({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=Lr(r),u=(0,fo.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 b9({defaultProp:e,onChange:t}){let r=(0,fo.useState)(e),[n]=r,i=(0,fo.useRef)(n),o=Lr(t);return(0,fo.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var Zh=Y(ae());var S1=(0,Zh.forwardRef)((e,t)=>(0,Zh.createElement)(rr.span,Ce({},e,{ref:t,style:K({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 P5="ToastProvider",[D1,E9,_9]=c5("Toast"),[D5,Rte]=Ya("Toast",[_9]),[S9,tp]=D5(P5),I5=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),g=(0,fe.useRef)(!1);return(0,fe.createElement)(D1.Provider,{scope:t},(0,fe.createElement)(S9,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,fe.useCallback)(()=>p(w=>w+1),[]),onToastRemove:(0,fe.useCallback)(()=>p(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:g},s))};I5.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${P5}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var C9="ToastViewport",T9=["F8"],T1="toast.viewportPause",P1="toast.viewportResume",P9=(0,fe.forwardRef)((e,t)=>{let D=e,{__scopeToast:r,hotkey:n=T9,label:i="Notifications ({hotkey})"}=D,o=de(D,["__scopeToast","hotkey","label"]),s=tp(C9,r),a=E9(r),u=(0,fe.useRef)(null),l=(0,fe.useRef)(null),p=(0,fe.useRef)(null),h=(0,fe.useRef)(null),g=mr(t,h,s.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=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(v&&C&&I){let P=()=>{if(!s.isClosePausedRef.current){let F=new CustomEvent(T1);I.dispatchEvent(F),s.isClosePausedRef.current=!0}},R=()=>{if(s.isClosePausedRef.current){let F=new CustomEvent(P1);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)}}},[v,s.isClosePausedRef]);let _=(0,fe.useCallback)(({tabbingDirection:C})=>{let P=a().map(R=>{let U=R.ref.current,j=[U,...z9(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(C1(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)(w5,{ref:u,role:"region","aria-label":i.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&(0,fe.createElement)(S5,{ref:l,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"forwards"});C1(C)}}),(0,fe.createElement)(D1.Slot,{scope:r},(0,fe.createElement)(rr.ol,Ce({tabIndex:-1},o,{ref:g}))),v&&(0,fe.createElement)(S5,{ref:p,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"backwards"});C1(C)}}))}),D9="ToastFocusProxy",S5=(0,fe.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=de(s,["__scopeToast","onFocusFromOutsideViewport"]),o=tp(D9,r);return(0,fe.createElement)(S1,Ce({"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()}}))}),rp="Toast",I9="toast.swipeStart",A9="toast.swipeMove",O9="toast.swipeCancel",R9="toast.swipeEnd";var[N9,M9]=D5(rp,{onClose(){}}),k9=(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:g,onSwipeEnd:w}=m,v=de(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),_=tp(rp,r),[D,C]=(0,fe.useState)(null),I=mr(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=Lr(()=>{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 A=()=>{J(F.current),l==null||l()},O=()=>{let M=new Date().getTime()-j.current;F.current=F.current-M,window.clearTimeout($.current),u==null||u()};return E.addEventListener(T1,O),E.addEventListener(P1,A),()=>{E.removeEventListener(T1,O),E.removeEventListener(P1,A)}}},[_.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?O5(D):null,[D]);return _.viewport?(0,fe.createElement)(fe.Fragment,null,N&&(0,fe.createElement)(L9,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},N),(0,fe.createElement)(N9,{scope:r,onClose:W},(0,T5.createPortal)((0,fe.createElement)(D1.ItemSlot,{scope:r},(0,fe.createElement)(v5,{asChild:!0,onEscapeKeyDown:pr(a,()=>{_.isFocusedToastEscapeKeyDownRef.current||W(),_.isFocusedToastEscapeKeyDownRef.current=!1})},(0,fe.createElement)(rr.li,Ce({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":_.swipeDirection},v,{ref:I,style:K({userSelect:"none",touchAction:"none"},e.style),onKeyDown:pr(e.onKeyDown,E=>{E.key==="Escape"&&(a==null||a(E.nativeEvent),E.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:pr(e.onPointerDown,E=>{E.button===0&&(P.current={x:E.clientX,y:E.clientY})}),onPointerMove:pr(e.onPointerMove,E=>{if(!P.current)return;let A=E.clientX-P.current.x,O=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,A):0,b=V?0:B(0,O),L=E.pointerType==="touch"?10:2,Q={x:k,y:b},T={originalEvent:E,delta:Q};M?(R.current=Q,ep(A9,h,T,{discrete:!1})):C5(Q,_.swipeDirection,L)?(R.current=Q,ep(I9,p,T,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(A)>L||Math.abs(O)>L)&&(P.current=null)}),onPointerUp:pr(e.onPointerUp,E=>{let A=R.current,O=E.target;if(O.hasPointerCapture(E.pointerId)&&O.releasePointerCapture(E.pointerId),R.current=null,P.current=null,A){let M=E.currentTarget,V={originalEvent:E,delta:A};C5(A,_.swipeDirection,_.swipeThreshold)?ep(R9,w,V,{discrete:!0}):ep(O9,g,V,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})))),_.viewport))):null});k9.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${rp}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var L9=e=>{let l=e,{__scopeToast:t,children:r}=l,n=de(l,["__scopeToast","children"]),i=tp(rp,t),[o,s]=(0,fe.useState)(!1),[a,u]=(0,fe.useState)(!1);return B9(()=>s(!0)),(0,fe.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,fe.createElement)(Jh,{asChild:!0},(0,fe.createElement)(S1,n,o&&(0,fe.createElement)(fe.Fragment,null,i.label," ",r)))};var F9="ToastAction",$9=(0,fe.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=de(i,["altText"]);return r?(0,fe.createElement)(A5,{altText:r,asChild:!0},(0,fe.createElement)(V9,Ce({},n,{ref:t}))):null});$9.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${F9}\``)}};var U9="ToastClose",V9=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=de(o,["__scopeToast"]),i=M9(U9,r);return(0,fe.createElement)(A5,{asChild:!0},(0,fe.createElement)(rr.button,Ce({type:"button"},n,{ref:t,onClick:pr(e.onClick,i.onClose)})))}),A5=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=de(o,["__scopeToast","altText"]);return(0,fe.createElement)(rr.div,Ce({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function O5(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),j9(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(...O5(n))}}),t}function ep(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?Yh(i,o):i.dispatchEvent(o)}var C5=(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 B9(e=()=>{}){let t=Lr(e);Cs(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function j9(e){return e.nodeType===e.ELEMENT_NODE}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 C1(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var R5=I5,N5=P9;c();d();f();c();d();f();var M5="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 q9=n=>{var i=n,{border:e,size:t="sm"}=i,r=de(i,["border","size"]);let o=t==="md"?36:24;return y.createElement(y.Fragment,null,e&&y.createElement("svg",{className:yi(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"},y.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"})),y.createElement("img",ue(K({src:M5},r),{alt:"Verified",width:o,height:o})))},k5=q9;c();d();f();var W9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),y.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"})),L5=W9;var G9=()=>y.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6 font-sans text-sm"},y.createElement(k5,{className:"h-12 w-12"}),y.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"Privacy preserving to the core."),y.createElement("ul",{className:"text-9eafc0 mb-6 list-disc space-y-3 px-12 dark:text-white"},y.createElement("li",{className:"text-left"},"World ID uses Zero-Knowledge Proofs to make it cryptographically impossible to track persons across applications."),y.createElement("li",{className:"text-left"},"Orb biometrics analyzed by the Orb are not stored."),y.createElement("li",{className:"text-left "},"Code and hardware are open source or source available on"," ",y.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0",rel:"noreferrer"},"GitHub"),".")),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 -ml-4 flex items-center space-x-3"},y.createElement(L5,{className:" h-4 w-4 "}),y.createElement("p",{className:"whitespace-nowrap text-sm font-medium"},"Biometrics are never shared."))),F5=G9;c();d();f();c();d();f();var Y9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),$5=Y9;var X9=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},y.createElement($5,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),y.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},"World ID verification was successful"))),U5=X9;c();d();f();c();d();f();var Y8=Y(H5(),1);c();d();f();var WC=Y(qC(),1),pp=Y(ae(),1),YV=e=>{let t=WC.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),[])},XV=({data:e,size:t=300})=>{let r=(0,pp.useMemo)(()=>{let n=[],i=YV(e),o=t/i.length;return[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:a,y:u})=>{let l=(i.length-7)*o*a,p=(i.length-7)*o*u;for(let h=0;h<3;h++)n.push(y.createElement("rect",{fill:"currentColor",x:l+o*h,y:p+o*h,key:`${h}-${a}-${u}`,width:o*(7-h*2),height:o*(7-h*2),rx:(h-2)*-5,ry:(h-2)*-5,className:h%3===0?"text-black":h%3===1?"text-white":"text-black"}))}),i.forEach((a,u)=>{a.forEach((l,p)=>{!i[u][p]||u<7&&p<7||u>i.length-8&&p<7||u<7&&p>i.length-8||n.push(y.createElement("circle",{fill:"currentColor",r:o/3,key:`circle-${u}-${p}`,cx:u*o+o/2,cy:p*o+o/2,className:"text-black dark:text-white"}))})}),n},[t,e]);return y.createElement("svg",{height:t,width:t},r)},GC=(0,pp.memo)(XV);var vm=Y(ae(),1);c();d();f();c();d();f();c();d();f();var Q1=Y(ae(),1),Rs=Y(ae(),1);c();d();f();var YC=Y(ae(),1),nu=(0,YC.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var mp=Y(ae(),1),As=(0,mp.createContext)({});function XC(){return(0,mp.useContext)(As).visualElement}c();d();f();var iu=Y(ae(),1);c();d();f();var JC=Y(ae(),1),Wn=(0,JC.createContext)(null);c();d();f();var gp=Y(ae(),1);c();d();f();var dn=typeof document<"u";var yo=dn?gp.useLayoutEffect:gp.useEffect;c();d();f();var QC=Y(ae(),1),yp=(0,QC.createContext)({strict:!1});function ZC(e,t,r,n){let i=XC(),o=(0,iu.useContext)(yp),s=(0,iu.useContext)(Wn),a=(0,iu.useContext)(nu).reducedMotion,u=(0,iu.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 eT=Y(ae(),1);c();d();f();function wi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tT(e,t,r){return(0,eT.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):wi(r)&&(r.current=n))},[t])}c();d();f();var wp=Y(ae(),1);c();d();f();c();d();f();function xi(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 JV=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Os(e){return vo(e.animate)||JV.some(t=>xi(e[t]))}function vp(e){return Boolean(Os(e)||e.variants)}function rT(e,t){if(Os(e)){let{initial:r,animate:n}=e;return{initial:r===!1||xi(r)?r:void 0,animate:xi(n)?n:void 0}}return e.inherit!==!1?t:{}}function iT(e){let{initial:t,animate:r}=rT(e,(0,wp.useContext)(As));return(0,wp.useMemo)(()=>({initial:t,animate:r}),[nT(t),nT(r)])}function nT(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var bi=e=>({isEnabled:t=>e.some(r=>!!t[r])}),wo={measureLayout:bi(["layout","layoutId","drag"]),animation:bi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:bi(["exit"]),drag:bi(["drag","dragControls"]),focus:bi(["whileFocus"]),hover:bi(["whileHover","onHoverStart","onHoverEnd"]),tap:bi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:bi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:bi(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function oT(e){for(let t in e)t==="projectionNodeConstructor"?wo.projectionNodeConstructor=e[t]:wo[t].Component=e[t]}c();d();f();c();d();f();var sT=Y(ae(),1);function xo(e){let t=(0,sT.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var QV=1;function aT(){return xo(()=>{if(bo.hasEverUpdated)return QV++})}c();d();f();var uT=Y(ae(),1),ou=(0,uT.createContext)({});c();d();f();var lT=Y(ae(),1),xp=class extends lT.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 cT=Y(ae(),1),bp=(0,cT.createContext)({});c();d();f();var fT=Symbol.for("motionComponentSymbol");function dT({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&oT(e);function s(u,l){let p=ue(K(K({},(0,Rs.useContext)(nu)),u),{layoutId:ZV(u)}),{isStatic:h}=p,g=null,w=iT(u),v=h?void 0:aT(),_=i(u,h);if(!h&&dn){w.visualElement=ZC(o,_,p,t);let D=(0,Rs.useContext)(yp).strict,C=(0,Rs.useContext)(bp);w.visualElement&&(g=w.visualElement.loadFeatures(p,D,e,v,r||wo.projectionNodeConstructor,C))}return Q1.createElement(xp,{visualElement:w.visualElement,props:p},g,Q1.createElement(As.Provider,{value:w},n(o,u,v,tT(_,w.visualElement,l),_,h,w.visualElement)))}let a=(0,Rs.forwardRef)(s);return a[fT]=o,a}function ZV({layoutId:e}){let t=(0,Rs.useContext)(ou).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function hT(e){function t(n,i={}){return dT(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 pT=["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 su(e){return typeof e!="string"||e.includes("-")?!1:!!(pT.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var RT=Y(ae(),1);c();d();f();var bT=Y(ae(),1);c();d();f();c();d();f();var au={};function mT(e){Object.assign(au,e)}c();d();f();var uu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fr=new Set(uu);function Ep(e,{layout:t,layoutId:r}){return Fr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!au[e]||e==="opacity")}c();d();f();var Jt=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var eB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tB=(e,t)=>uu.indexOf(e)-uu.indexOf(t);function gT({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(tB);for(let a of t)s+=`${eB[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 _p(e){return e.startsWith("--")}c();d();f();var yT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var Mn=(e,t,r)=>Math.min(Math.max(r,e),t);var hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo=ue(K({},hn),{transform:e=>Mn(0,1,e)}),Xc=ue(K({},hn),{default:1});c();d();f();c();d();f();var _o=e=>Math.round(e*1e5)/1e5,So=/(-)?([\d]*\.?[\d])+/g,Sp=/(#[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,vT=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ei(e){return typeof e=="string"}var Jc=e=>({test:t=>Ei(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gn=Jc("deg"),Cr=Jc("%"),pe=Jc("px"),wT=Jc("vh"),xT=Jc("vw"),Z1=ue(K({},Cr),{parse:e=>Cr.parse(e)/100,transform:e=>Cr.transform(e*100)});c();d();f();var ew=ue(K({},hn),{transform:Math.round});var Cp={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:Gn,rotateX:Gn,rotateY:Gn,rotateZ:Gn,scale:Xc,scaleX:Xc,scaleY:Xc,scaleZ:Xc,skew:Gn,skewX:Gn,skewY:Gn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Eo,originX:Z1,originY:Z1,originZ:pe,zIndex:ew,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:ew};function lu(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 g in t){let w=t[g];if(_p(g)){o[g]=w;continue}let v=Cp[g],_=yT(w,v);if(Fr.has(g)){if(l=!0,s[g]=_,a.push(g),!h)continue;w!==(v.default||0)&&(h=!1)}else g.startsWith("origin")?(p=!0,u[g]=_):i[g]=_}if(t.transform||(l||n?i.transform=gT(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:g="50%",originY:w="50%",originZ:v=0}=u;i.transformOrigin=`${g} ${w} ${v}`}}c();d();f();var cu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function tw(e,t,r){for(let n in t)!Jt(t[n])&&!Ep(n,r)&&(e[n]=t[n])}function rB({transformTemplate:e},t,r){return(0,bT.useMemo)(()=>{let n=cu();return lu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function nB(e,t,r){let n=e.style||{},i={};return tw(i,n,e),Object.assign(i,rB(e,t,r)),e.transformValues?e.transformValues(i):i}function ET(e,t,r){let n={},i=nB(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 iB=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],oB=["whileTap","onTap","onTapStart","onTapCancel"],sB=["onPan","onPanStart","onPanSessionStart","onPanEnd"],aB=["whileInView","onViewportEnter","onViewportLeave","viewport"],uB=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",...aB,...oB,...iB,...sB]);function Qc(e){return uB.has(e)}var CT=e=>!Qc(e);function pB(e){!e||(CT=t=>t.startsWith("on")?!Qc(t):e(t))}try{pB(ST().default)}catch(e){}function TT(e,t,r){let n={};for(let i in e)(CT(i)||r===!0&&Qc(i)||!t&&!Qc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var AT=Y(ae(),1);c();d();f();c();d();f();function PT(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function DT(e,t,r){let n=PT(t,e.x,e.width),i=PT(r,e.y,e.height);return`${n} ${i}`}c();d();f();var mB={offset:"stroke-dashoffset",array:"stroke-dasharray"},gB={offset:"strokeDashoffset",array:"strokeDasharray"};function IT(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?mB:gB;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function fu(e,g,l,p,h){var w=g,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=w,u=de(w,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(lu(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:_,dimensions:D}=e;v.transform&&(D&&(_.transform=v.transform),delete v.transform),D&&(n!==void 0||i!==void 0||_.transform)&&(_.transformOrigin=DT(D,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(v.x=t),r!==void 0&&(v.y=r),o!==void 0&&IT(v,o,s,a,!1)}c();d();f();var Tp=()=>ue(K({},cu()),{attrs:{}});c();d();f();var du=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OT(e,t,r,n){let i=(0,AT.useMemo)(()=>{let o=Tp();return fu(o,t,{enableHardwareAcceleration:!1},du(n),e.transformTemplate),ue(K({},o.attrs),{style:K({},o.style)})},[t]);if(e.style){let o={};tw(o,e.style,e),i.style=K(K({},o),i.style)}return i}function NT(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(su(r)?OT:ET)(n,s,a,r),p=TT(n,typeof r=="string",e),h=ue(K(K({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,RT.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var hu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function Pp(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 Dp=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 Ip(e,t,r,n){Pp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(Dp.has(i)?i:hu(i),t.attrs[i])}c();d();f();c();d();f();function pu(e){let{style:t}=e,r={};for(let n in t)(Jt(t[n])||Ep(n,e))&&(r[n]=t[n]);return r}function Ap(e){let t=pu(e);for(let r in e)if(Jt(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var iw=Y(ae(),1);c();d();f();function mu(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 Ns=e=>Array.isArray(e);var MT=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),kT=e=>Ns(e)?e[e.length-1]||0:e;function gu(e){let t=Jt(e)?e.get():e;return MT(t)?t.toValue():t}function yB({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:vB(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var Op=e=>(t,r)=>{let n=(0,iw.useContext)(As),i=(0,iw.useContext)(Wn),o=()=>yB(e,t,n,i);return r?o():xo(o)};function vB(e,t,r,n){let i={},o=n(e);for(let g in o)i[g]=gu(o[g]);let{initial:s,animate:a}=e,u=Os(e),l=vp(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(w=>{let v=mu(e,w);if(!v)return;let I=v,{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 LT={useVisualState:Op({scrapeMotionValuesFromProps:Ap,createRenderState:Tp,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}}fu(r,n,{enableHardwareAcceleration:!1},du(t.tagName),e.transformTemplate),Ip(t,r)}})};c();d();f();var FT={useVisualState:Op({scrapeMotionValuesFromProps:pu,createRenderState:cu})};function $T(e,{forwardMotionProps:t=!1},r,n,i){let o=su(e)?LT:FT;return ue(K({},o),{preloadedFeatures:r,useRender:NT(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 UT=Y(ae(),1);function Ms(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zc(e,t,r,n){(0,UT.useEffect)(()=>{let i=e.current;if(r&&i)return Ms(i,t,r,n)},[e,t,r,n])}function VT({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(Te.Focus,!0)},i=()=>{r&&r.setActive(Te.Focus,!1)};Zc(t,"focus",e?n:void 0),Zc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function Rp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Np(e){return!!e.touches}c();d();f();c();d();f();function wB(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var xB={pageX:0,pageY:0};function bB(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||xB;return{x:n[t+"X"],y:n[t+"Y"]}}function EB(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function ef(e,t="page"){return{point:Np(e)?bB(e,t):EB(e,t)}}var ow=(e,t=!1)=>{let r=n=>e(n,ef(n));return t?wB(r):r};c();d();f();var BT=()=>dn&&window.onpointerdown===null,jT=()=>dn&&window.ontouchstart===null,zT=()=>dn&&window.onmousedown===null;var _B={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 HT(e){return BT()?e:jT()?SB[e]:zT()?_B[e]:e}function _i(e,t,r,n){return Ms(e,HT(t),ow(r,t==="pointerdown"),n)}function ks(e,t,r,n){return Zc(e,HT(t),r&&ow(r,t==="pointerdown"),n)}c();d();f();function WT(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var KT=WT("dragHorizontal"),qT=WT("dragVertical");function sw(e){let t=!1;if(e==="y")t=qT();else if(e==="x")t=KT();else{let r=KT(),n=qT();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Mp(){let e=sw(!0);return e?(e(),!1):!0}function GT(e,t,r){return(n,i)=>{!Rp(n)||Mp()||(e.animationState&&e.animationState.setActive(Te.Hover,t),r&&r(n,i))}}function YT({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){ks(n,"pointerenter",e||r?GT(n,!0,e):void 0,{passive:!e}),ks(n,"pointerleave",t||r?GT(n,!1,t):void 0,{passive:!t})}c();d();f();var uw=Y(ae(),1);c();d();f();var aw=(e,t)=>t?e===t?!0:aw(e,t.parentElement):!1;c();d();f();var XT=Y(ae(),1);function yu(e){return(0,XT.useEffect)(()=>()=>e(),[])}c();d();f();var CB=(e,t)=>r=>t(e(r)),Co=(...e)=>e.reduce(CB);function JT({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,uw.useRef)(!1),a=(0,uw.useRef)(null),u={passive:!(t||e||r||w)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(Te.Tap,!1),!Mp()}function h(v,_){!p()||(aw(i.current,v.target)?e&&e(v,_):r&&r(v,_))}function g(v,_){!p()||r&&r(v,_)}function w(v,_){l(),!s.current&&(s.current=!0,a.current=Co(_i(window,"pointerup",h,u),_i(window,"pointercancel",g,u)),i.animationState&&i.animationState.setActive(Te.Tap,!0),t&&t(v,_))}ks(i,"pointerdown",o?w:void 0,u),yu(l)}c();d();f();c();d();f();var TB="production",vu=typeof process>"u"||process.env===void 0?TB:"production";var tf=Y(ae(),1);c();d();f();var QT=new Set;function kp(e,t,r){e||QT.has(t)||(console.warn(t),r&&console.warn(r),QT.add(t))}c();d();f();var cw=new WeakMap,lw=new WeakMap,PB=e=>{let t=cw.get(e.target);t&&t(e)},DB=e=>{e.forEach(PB)};function IB(r){var n=r,{root:e}=n,t=de(n,["root"]);let i=e||document;lw.has(i)||lw.set(i,{});let o=lw.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(DB,K({root:e},t))),o[s]}function ZT(e,t,r){let n=IB(t);return cw.set(e,r),n.observe(e),()=>{cw.delete(e),n.unobserve(e)}}function eP({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,tf.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?RB:OB)(s,o.current,e,i)}var AB={some:0,all:1};function OB(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,tf.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:AB[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(),g=p?h.onViewportEnter:h.onViewportLeave;g&&g(l)};return ZT(r.current,a,u)},[e,n,i,o])}function RB(e,t,r,{fallback:n=!0}){(0,tf.useEffect)(()=>{!e||!n||(vu!=="production"&&kp(!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 kn=e=>t=>(e(t),null);var tP={inView:kn(eP),tap:kn(JT),focus:kn(VT),hover:kn(YT)};c();d();f();var pf=Y(ae(),1);c();d();f();var wu=Y(ae(),1);function Lp(){let e=(0,wu.useContext)(Wn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,wu.useId)();return(0,wu.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function fw(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 rP=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var nP=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var Xr={delta:0,timestamp:0};c();d();f();c();d();f();var dw=16.666666666666668,NB=typeof performance<"u"?()=>performance.now():()=>Date.now(),hw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(NB()),dw);c();d();f();function iP(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,g=h?t:r;return l&&s.add(u),g.indexOf(u)===-1&&(g.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 MB=40,pw=!0,rf=!1,mw=!1,nf=["read","update","preRender","render","postRender"],Fp=nf.reduce((e,t)=>(e[t]=iP(()=>rf=!0),e),{}),Ct=nf.reduce((e,t)=>{let r=Fp[t];return e[t]=(n,i=!1,o=!1)=>(rf||LB(),r.schedule(n,i,o)),e},{}),Jr=nf.reduce((e,t)=>(e[t]=Fp[t].cancel,e),{}),$p=nf.reduce((e,t)=>(e[t]=()=>Fp[t].process(Xr),e),{}),kB=e=>Fp[e].process(Xr),oP=e=>{rf=!1,Xr.delta=pw?dw:Math.max(Math.min(e-Xr.timestamp,MB),1),Xr.timestamp=e,mw=!0,nf.forEach(kB),mw=!1,rf&&(pw=!1,hw(oP))},LB=()=>{rf=!0,pw=!0,mw||hw(oP)};c();d();f();c();d();f();function xu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var To=class{constructor(){this.subscriptions=[]}add(t){return xu(this.subscriptions,t),()=>bu(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 Eu(e,t){return t?e*(1e3/t):0}var FB=e=>!isNaN(parseFloat(e)),gw=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}=Xr;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=FB(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?Eu(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 Yn(e,t){return new gw(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var _u=(e,t)=>r=>Boolean(Ei(r)&&vT.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Up=(e,t,r)=>n=>{if(!Ei(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 $B=e=>Mn(0,255,e),yw=ue(K({},hn),{transform:e=>Math.round($B(e))}),Xn={test:_u("rgb","red"),parse:Up("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+yw.transform(e)+", "+yw.transform(t)+", "+yw.transform(r)+", "+_o(Eo.transform(n))+")"};function UB(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 of={test:_u("#"),parse:UB,transform:Xn.transform};c();d();f();var Po={test:_u("hsl","hue"),parse:Up("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cr.transform(_o(t))+", "+Cr.transform(_o(r))+", "+_o(Eo.transform(n))+")"};var Bt={test:e=>Xn.test(e)||of.test(e)||Po.test(e),parse:e=>Xn.test(e)?Xn.parse(e):Po.test(e)?Po.parse(e):of.parse(e),transform:e=>Ei(e)?e:e.hasOwnProperty("red")?Xn.transform(e):Po.transform(e)};var sP="${c}",aP="${n}";function VB(e){var t,r;return isNaN(e)&&Ei(e)&&(((t=e.match(So))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Sp))===null||r===void 0?void 0:r.length)||0)>0}function sf(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(Sp);i&&(r=i.length,e=e.replace(Sp,sP),t.push(...i.map(Bt.parse)));let o=e.match(So);return o&&(n=o.length,e=e.replace(So,aP),t.push(...o.map(hn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function uP(e){return sf(e).values}function lP(e){let{values:t,numColors:r,tokenised:n}=sf(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?sP:aP,a<r?Bt.transform(o[a]):_o(o[a]));return s}}var BB=e=>typeof e=="number"?0:e;function jB(e){let t=uP(e);return lP(e)(t.map(BB))}var Tr={test:VB,parse:uP,createTransformer:lP,getAnimatableNone:jB};c();d();f();c();d();f();var zB=new Set(["brightness","contrast","saturate","opacity"]);function HB(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=zB.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var KB=/([a-z-]*)\(.*?\)/g,af=ue(K({},Tr),{getAnimatableNone:e=>{let t=e.match(KB);return t?t.map(HB).join(" "):e}});c();d();f();var qB=ue(K({},Cp),{color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:af,WebkitFilter:af}),Su=e=>qB[e];function Cu(e,t){var r;let n=Su(e);return n!==af&&(n=Tr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Vp=e=>t=>t.test(e);c();d();f();var cP={test:e=>e==="auto",parse:e=>e};var vw=[hn,pe,Cr,Gn,xT,wT,cP],Tu=e=>vw.find(Vp(e));var WB=[...vw,Bt,Tr],fP=e=>WB.find(Vp(e));c();d();f();function GB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function YB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ls(e,t,r){let n=e.getProps();return mu(n,t,r!==void 0?r:n.custom,GB(e),YB(e))}function XB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Yn(r))}function dP(e,t){let r=Ls(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=de(s,["transitionEnd","transition"]);o=K(K({},o),n);for(let a in o){let u=kT(o[a]);XB(e,a,u)}}function hP(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"&&(rP(p)||nP(p))?p=parseFloat(p):!fP(p)&&Tr.test(l)&&(p=Cu(u,l)),e.addValue(u,Yn(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function JB(e,t){return t?(t[e]||t.default||t).from:void 0}function pP(e,t,r){var n;let i={};for(let o in e){let s=JB(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 Fs(e){return Boolean(Jt(e)&&e.add)}c();d();f();c();d();f();var mP=(e,t)=>`${e}: ${t}`;function gP(e,t){let{MotionAppearAnimations:r}=window,n=mP(e,Fr.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 QB="framerAppearId",yP="data-"+hu(QB);c();d();f();c();d();f();var Pu=function(){},nr=function(){};c();d();f();var Du=e=>e*1e3;c();d();f();var vP={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Iu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Au=e=>t=>1-e(1-t);var Bp=e=>e*e,wP=Au(Bp),uf=Iu(Bp);c();d();f();c();d();f();var Pe=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function ww(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 xP({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=ww(u,a,e+1/3),o=ww(u,a,e),s=ww(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var xw=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},ZB=[of,Xn,Po],ej=e=>ZB.find(t=>t.test(e));function bP(e){let t=ej(e);nr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=xP(r)),r}var jp=(e,t)=>{let r=bP(e),n=bP(t),i=K({},r);return o=>(i.red=xw(r.red,n.red,o),i.green=xw(r.green,n.green,o),i.blue=xw(r.blue,n.blue,o),i.alpha=Pe(r.alpha,n.alpha,o),Xn.transform(i))};c();d();f();function EP(e,t){return typeof e=="number"?r=>Pe(e,t,r):Bt.test(e)?jp(e,t):Ew(e,t)}var bw=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>EP(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},_P=(e,t)=>{let r=K(K({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=EP(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},Ew=(e,t)=>{let r=Tr.createTransformer(t),n=sf(e),i=sf(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Co(bw(n.values,i.values),r):(Pu(!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 $s=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var SP=(e,t)=>r=>Pe(e,t,r);function tj(e){return typeof e=="number"?SP:typeof e=="string"?Bt.test(e)?jp:Ew:Array.isArray(e)?bw:typeof e=="object"?_P:SP}function rj(e,t,r){let n=[],i=r||tj(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 zp(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;nr(o===t.length,"Both input and output ranges must be the same length"),nr(!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=rj(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=$s(e[p],e[p+1],l);return s[p](h)};return r?l=>u(Mn(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Ou=e=>e;var CP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,nj=1e-7,ij=12;function oj(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=CP(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>nj&&++a<ij);return s}function Hp(e,t,r,n){if(e===t&&r===n)return Ou;let i=o=>oj(o,0,1,e,r);return o=>o===0||o===1?o:CP(i(o),t,n)}c();d();f();var _w=e=>1-Math.sin(Math.acos(e)),lf=Au(_w),TP=Iu(lf);c();d();f();var Sw=Hp(.33,1.53,.69,.99),cf=Au(Sw),PP=Iu(cf);c();d();f();var DP=e=>(e*=2)<1?.5*cf(e):.5*(2-Math.pow(2,-10*(e-1)));var IP={linear:Ou,easeIn:Bp,easeInOut:uf,easeOut:wP,circIn:_w,circInOut:TP,circOut:lf,backIn:cf,backInOut:PP,backOut:Sw,anticipate:DP},Cw=e=>{if(Array.isArray(e)){nr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Hp(t,r,n,i)}else if(typeof e=="string")return nr(IP[e]!==void 0,`Invalid easing type '${e}'`),IP[e];return e},AP=e=>Array.isArray(e)&&typeof e[0]!="number";function sj(e,t){return e.map(()=>t||uf).splice(0,e.length-1)}function aj(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function uj(e,t){return e.map(r=>r*t)}function ff({keyframes:e,ease:t=uf,times:r,duration:n=300}){e=[...e];let i=ff[0],o=AP(t)?t.map(Cw):Cw(t),s={done:!1,value:i},a=uj(r&&r.length===ff.length?r:aj(e),n);function u(){return zp(a,e,{ease:Array.isArray(o)?o:sj(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 Tw=.001,lj=.01,OP=10,cj=.05,fj=1;function RP({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Pu(e<=OP*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=Mn(cj,fj,s),e=Mn(lj,OP,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,g=p-r,w=Kp(l,s),v=Math.exp(-h);return Tw-g/w*v},o=l=>{let h=l*s*e,g=h*r+r,w=Math.pow(s,2)*Math.pow(l,2)*e,v=Math.exp(-h),_=Kp(Math.pow(l,2),s);return(-i(l)+Tw>0?-1:1)*((g-w)*v)/_}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-Tw+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=hj(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 dj=12;function hj(e,t,r){let n=r;for(let i=1;i<dj;i++)n=n-e(n)/t(n);return n}function Kp(e,t){return e*Math.sqrt(1-t*t)}var pj=["duration","bounce"],mj=["stiffness","damping","mass"];function NP(e,t){return t.some(r=>e[r]!==void 0)}function gj(e){let t=K({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!NP(e,mj)&&NP(e,pj)){let r=RP(e);t=ue(K(K({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var yj=5;function Pw(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:g,duration:w,isResolvedFromDuration:v}=gj(n),_=vj,D=g?-(g/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=Kp(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(v)u.done=P>=w;else{let U=D;if(P!==0)if(C<1){let $=Math.max(0,P-yj);U=Eu(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()}}}Pw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var vj=e=>0;c();d();f();function MP({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 g=-u*Math.exp(-h/n);return a.done=!(g>i||g<-i),a.value=a.done?p:p+g,a},flipTarget:()=>{}}}var wj={decay:MP,keyframes:ff,tween:ff,spring:Pw};function kP(e,t,r=0){return e-t-r}function xj(e,t=0,r=0,n=!0){return n?kP(t+-e,t,r):t-(e-t)+r}function bj(e,t,r,n){return n?e>=t+r:e<=-r}var Ej=e=>{let t=({delta:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>Jr.update(t)}};function Us(_){var D=_,{duration:e,driver:t=Ej,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:g,type:w="keyframes"}=D,v=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=wj[s.length>2?"keyframes":w],W=s[0],J=s[s.length-1];!((I=(C=X).needsInterpolation)===null||I===void 0)&&I.call(C,W,J)&&(G=zp([0,100],[W,J],{clamp:!1}),s=[0,100]);let N=X(ue(K({},v),{duration:e,keyframes:s}));function m(){R++,i==="reverse"?($=R%2===0,r=xj(r,U,o,$)):(r=kP(r,U,o),i==="mirror"&&N.flipTarget()),F=!1,h&&h()}function E(){P.stop(),p&&p()}function A(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}g&&g(j),F&&(R===0&&(U=U!==void 0?U:r),R<n?bj(r,U,o,$)&&m():E())}function O(){u&&u(),P=t(A),P.start()}return a&&O(),{stop:()=>{l&&l(),P.stop()},sample:M=>N.next(Math.max(0,M))}}c();d();f();c();d();f();function LP(e){return!e||Array.isArray(e)||typeof e=="string"&&FP[e]}var df=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,FP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:df([0,.65,.55,1]),circOut:df([.55,0,1,.45]),backIn:df([.31,.01,.66,-.59]),backOut:df([.33,1.53,.69,.99])};function $P(e){if(!!e)return Array.isArray(e)?df(e):FP[e]}function UP(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:$P(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var qp=10;function VP(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"||!LP(i.ease)){let g=Us(i),w={done:!1,value:a[0]},v=[],_=0;for(;!w.done;)w=g.sample(_),v.push(w.value),_+=qp;a=v,u=_-qp,p="linear"}let h=UP(e.owner.current,t,a,ue(K({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:g}=h;if(g){let w=Us(i);e.setWithVelocity(w.sample(g-qp).value,w.sample(g).value,qp)}Ct.update(()=>h.cancel())}}c();d();f();c();d();f();function Wp(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(Jr.read(n),e(o-t))};return Ct.read(n,!0),()=>Jr.read(n)}function BP({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?Wp(i,-t):i()}c();d();f();function jP({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:g,onStop:w}){let v=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(),_=Us(ue(K({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:g,onStop:w}))}function P(R){I(K({type:"spring",stiffness:s,damping:a,restDelta:u},R))}if(D(v))P({velocity:t,keyframes:[v,C(v)]});else{let R=i*t+v;typeof l<"u"&&(R=l(R));let U=C(R),j=U===r?-1:1,F,$,G=X=>{F=$,$=X,t=Eu(X-F,Xr.delta),(j===1&&X>U||j===-1&&X<U)&&P({keyframes:[X,U],velocity:t})};I({type:"decay",keyframes:[v,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 Vs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Gp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dw=()=>({type:"keyframes",ease:"linear",duration:.3}),_j={type:"keyframes",duration:.8},zP={x:Vs,y:Vs,z:Vs,rotate:Vs,rotateX:Vs,rotateY:Vs,rotateZ:Vs,scaleX:Gp,scaleY:Gp,scale:Gp,opacity:Dw,backgroundColor:Dw,color:Dw,default:Gp},HP=(e,{keyframes:t})=>t.length>2?_j:(zP[e]||zP.default)(t[1]);c();d();f();var hf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Tr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function KP(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 Iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Aw(e){return typeof e=="number"?0:Cu("",e)}function Yp(e,t){return e[t]||e.default||e}function qP(e,t,r,n){let i=hf(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=Cu(t,r):Iw(o)&&typeof r=="string"?o=Aw(r):!Array.isArray(r)&&Iw(r)&&typeof o=="string"&&(r=Aw(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var WP={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ow={},Rw={};for(let e in WP)Rw[e]=()=>(Ow[e]===void 0&&(Ow[e]=WP[e]()),Ow[e]);var Sj=new Set(["opacity"]),Ru=(e,t,r,n={})=>i=>{let o=Yp(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Du(s);let u=qP(t,e,r,o),l=u[0],p=u[u.length-1],h=hf(e,l),g=hf(e,p);Pu(h===g,`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 w=ue(K({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||!g||vP.current||o.type===!1)return BP(w);if(o.type==="inertia"){let C=jP(w);return()=>C.stop()}KP(o)||(w=K(K({},w),HP(e,w))),w.duration&&(w.duration=Du(w.duration)),w.repeatDelay&&(w.repeatDelay=Du(w.repeatDelay));let v=t.owner,_=v&&v.current;if(Rw.waapi()&&Sj.has(e)&&!w.repeatDelay&&w.repeatType!=="mirror"&&w.damping!==0&&v&&_ instanceof HTMLElement&&!v.getProps().onUpdate)return VP(t,e,w);{let C=Us(w);return()=>C.stop()}};function GP(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>Nw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Nw(e,t,r);else{let i=typeof t=="function"?Ls(e,t,r.custom):t;n=YP(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function Nw(e,t,r={}){var n;let i=Ls(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>YP(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:g}=o;return Cj(e,t,p+l,h,g,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 YP(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let g=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=g,u=de(g,["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 w in u){let v=e.getValue(w),_=u[w];if(!v||_===void 0||h&&Pj(h,w))continue;let D=K({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&Fr.has(w)&&(D=ue(K({},D),{type:!1,delay:0})),!v.hasAnimated){let I=e.getProps()[yP];I&&(D.elapsed=gP(I,w))}let C=v.start(Ru(w,v,_,D));Fs(l)&&(l.add(w),C=C.then(()=>l.remove(w))),p.push(C)}return Promise.all(p).then(()=>{a&&dP(e,a)})}function Cj(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(Tj).forEach((l,p)=>{s.push(Nw(l,t,ue(K({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function Tj(e,t){return e.sortNodePosition(t)}function Pj({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Xp=[Te.Animate,Te.InView,Te.Focus,Te.Hover,Te.Tap,Te.Drag,Te.Exit],Dj=[...Xp].reverse(),Ij=Xp.length;function Aj(e){return t=>Promise.all(t.map(({animation:r,options:n})=>GP(e,r,n)))}function XP(e){let t=Aj(e),r=Rj(),n=!0,i=(u,l)=>{let p=Ls(e,l);if(p){let h=p,{transition:g,transitionEnd:w}=h,v=de(h,["transition","transitionEnd"]);u=K(K(K({},u),v),w)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},g=[],w=new Set,v={},_=1/0;for(let C=0;C<Ij;C++){let I=Dj[C],P=r[I],R=p[I]!==void 0?p[I]:h[I],U=xi(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=K({},v),!P.isActive&&j===null||!R&&!P.prevProp||vo(R)||typeof R=="boolean")continue;let $=Oj(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=K(K({},J),W),m=E=>{G=!0,w.delete(E),P.needsAnimating[E]=!0};for(let E in N){let A=W[E],O=J[E];v.hasOwnProperty(E)||(A!==O?Ns(A)&&Ns(O)?!fw(A,O)||$?m(E):P.protectedKeys[E]=!0:A!==void 0?m(E):w.add(E):A!==void 0&&w.has(E)?m(E):P.protectedKeys[E]=!0)}P.prevProp=R,P.prevResolvedValues=W,P.isActive&&(v=K(K({},v),W)),n&&e.blockInitialAnimation&&(G=!1),G&&!F&&g.push(...X.map(E=>({animation:E,options:K({type:I},u)})))}if(w.size){let C={};w.forEach(I=>{let P=e.getBaseTarget(I);P!==void 0&&(C[I]=P)}),g.push({animation:C})}let D=Boolean(g.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),n=!1,D?t(g):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(w=>{var v;return(v=w.animationState)===null||v===void 0?void 0:v.setActive(u,l)}),r[u].isActive=l;let g=s(p,u);for(let w in r)r[w].protectedKeys={};return g}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function Oj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fw(t,e):!1}function Bs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rj(){return{[Te.Animate]:Bs(!0),[Te.InView]:Bs(),[Te.Hover]:Bs(),[Te.Tap]:Bs(),[Te.Drag]:Bs(),[Te.Focus]:Bs(),[Te.Exit]:Bs()}}var JP={animation:kn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=XP(e)),vo(t)&&(0,pf.useEffect)(()=>t.subscribe(e),[t])}),exit:kn(e=>{let{custom:t,visualElement:r}=e,[n,i]=Lp(),o=(0,pf.useContext)(Wn);(0,pf.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 Bw=Y(ae(),1);c();d();f();c();d();f();c();d();f();var QP=(e,t)=>Math.abs(e-t);function ZP(e,t){let r=QP(e.x,t.x),n=QP(e.y,t.y);return Math.sqrt(r**2+n**2)}var Nu=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=kw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=ZP(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:g}=l,{timestamp:w}=Xr;this.history.push(ue(K({},g),{timestamp:w}));let{onStart:v,onMove:_}=this.handlers;p||(v&&v(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=Mw(p,this.transformPagePoint),Rp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Ct.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:g}=this.handlers,w=kw(Mw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,w),g&&g(l,w)},Np(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=ef(t),o=Mw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=Xr;this.history=[ue(K({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,kw(o,this.history)),this.removeListeners=Co(_i(window,"pointermove",this.handlePointerMove),_i(window,"pointerup",this.handlePointerUp),_i(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Jr.update(this.updatePoint)}};function Mw(e,t){return t?{point:t(e.point)}:e}function eD(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kw({point:e},t){return{point:e,delta:eD(e,tD(t)),offset:eD(e,Nj(t)),velocity:Mj(t,.1)}}function Nj(e){return e[0]}function tD(e){return e[e.length-1]}function Mj(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=tD(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Du(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 ir(e){return e.max-e.min}function Jp(e,t=0,r=.01){return Math.abs(e-t)<=r}function rD(e,t,r,n=.5){e.origin=n,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ir(r)/ir(t),(Jp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(r.min,r.max,e.origin)-e.originPoint,(Jp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Mu(e,t,r,n){rD(e.x,t.x,r.x,n==null?void 0:n.originX),rD(e.y,t.y,r.y,n==null?void 0:n.originY)}function nD(e,t,r){e.min=r.min+t.min,e.max=e.min+ir(t)}function oD(e,t,r){nD(e.x,t.x,r.x),nD(e.y,t.y,r.y)}function iD(e,t,r){e.min=t.min-r.min,e.max=e.min+ir(t)}function ku(e,t,r){iD(e.x,t.x,r.x),iD(e.y,t.y,r.y)}function cD(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 sD(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 fD(e,{top:t,left:r,bottom:n,right:i}){return{x:sD(e.x,r,i),y:sD(e.y,t,n)}}function aD(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 dD(e,t){return{x:aD(e.x,t.x),y:aD(e.y,t.y)}}function hD(e,t){let r=.5,n=ir(e),i=ir(t);return i>n?r=$s(t.min,t.max-n,e.min):n>i&&(r=$s(e.min,e.max-i,t.min)),Mn(0,1,r)}function pD(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 Qp=.35;function mD(e=Qp){return e===!1?e=0:e===!0&&(e=Qp),{x:uD(e,"left","right"),y:uD(e,"top","bottom")}}function uD(e,t,r){return{min:lD(e,t),max:lD(e,r)}}function lD(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var gD=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lu=()=>({x:gD(),y:gD()}),yD=()=>({min:0,max:0}),At=()=>({x:yD(),y:yD()});c();d();f();function pn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function Zp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function vD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wD(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 Lw(e){return e===void 0||e===1}function em({scale:e,scaleX:t,scaleY:r}){return!Lw(e)||!Lw(t)||!Lw(r)}function Si(e){return em(e)||Fw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Fw(e){return xD(e.x)||xD(e.y)}function xD(e){return e&&e!=="0%"}function mf(e,t,r){let n=e-r,i=t*n;return r+i}function bD(e,t,r,n,i){return i!==void 0&&(e=mf(e,i,n)),mf(e,r,n)+t}function $w(e,t=0,r=1,n,i){e.min=bD(e.min,t,r,n,i),e.max=bD(e.max,t,r,n,i)}function Uw(e,{x:t,y:r}){$w(e.x,t.translate,t.scale,t.originPoint),$w(e.y,r.translate,r.scale,r.originPoint)}function SD(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&&js(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Uw(e,u)),n&&Si(a.latestValues)&&js(e,a.latestValues));t.x=ED(t.x),t.y=ED(t.y)}function ED(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Jn(e,t){e.min=e.min+t,e.max=e.max+t}function _D(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,o);$w(e,t[r],t[n],s,t.scale)}var kj=["x","scaleX","originX"],Lj=["y","scaleY","originY"];function js(e,t){_D(e.x,t,kj),_D(e.y,t,Lj)}function Vw(e,t){return Zp(wD(e.getBoundingClientRect(),t))}function CD(e,t,r){let n=Vw(e,r),{scroll:i}=t;return i&&(Jn(n.x,i.offset.x),Jn(n.y,i.offset.y)),n}var Fj=new WeakMap,rm=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=At(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(ef(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=sw(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),pn(w=>{var v,_;let D=this.getAxisMotionValue(w).get()||0;if(Cr.test(D)){let C=(_=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||_===void 0?void 0:_.layoutBox[w];C&&(D=ir(C)*(parseFloat(D)/100))}this.originPoint[w]=D}),g==null||g(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:g}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:w}=u;if(p&&this.currentDirection===null){this.currentDirection=$j(w),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),g==null||g(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Nu(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||!tm(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=cD(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&&wi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=fD(n.layoutBox,t):this.constraints=!1,this.elastic=mD(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&pn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=pD(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!wi(t))return!1;let n=t.current;nr(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=CD(n,i.root,this.visualElement.getTransformPagePoint()),s=dD(i.layout.layoutBox,o);if(r){let a=r(vD(s));this.hasMutatedConstraints=!!a,a&&(s=Zp(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=pn(p=>{if(!tm(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let g=i?200:1e6,w=i?40:1e7,v=K(K({type:"inertia",velocity:n?t[p]:0,bounceStiffness:g,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,v)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Ru(t,n,0,r))}stopAnimation(){pn(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){pn(r=>{let{drag:n}=this.getProps();if(!tm(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(!wi(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};pn(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=hD({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(),pn(a=>{if(!tm(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;Fj.set(this.visualElement,this);let r=this.visualElement.current,n=_i(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();wi(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=Ms(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(pn(h=>{let g=this.getAxisMotionValue(h);!g||(this.originPoint[h]+=l[h].translate,g.set(g.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=Qp,dragMomentum:a=!0}=t;return ue(K({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function tm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $j(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function TD(e){let{dragControls:t,visualElement:r}=e,n=xo(()=>new rm(r));(0,Bw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,Bw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Fu=Y(ae(),1);function PD({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,Fu.useRef)(null),{transformPagePoint:a}=(0,Fu.useContext)(nu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,Fu.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Nu(p,u,{transformPagePoint:a})}ks(i,"pointerdown",o&&l),yu(()=>s.current&&s.current.end())}var DD={pan:kn(PD),drag:kn(TD)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function jw(e){return typeof e=="string"&&e.startsWith("var(--")}var Hw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Uj(e){let t=Hw.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var Vj=4;function zw(e,t,r=1){nr(r<=Vj,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=Uj(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():jw(i)?zw(i,t,r+1):i}function ID(e,n,r){var t=de(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=K({},r)),e.values.forEach(o=>{let s=o.get();if(!jw(s))return;let a=zw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!jw(s))continue;let a=zw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var Bj=new Set(["width","height","top","left","right","bottom","x","y"]),MD=e=>Bj.has(e),jj=e=>Object.keys(e).some(MD),kD=(e,t)=>{e.set(t,!1),e.set(t)},nm=e=>e===hn||e===pe,AD;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(AD||(AD={}));var OD=(e,t)=>parseFloat(e.split(", ")[t]),RD=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return OD(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?OD(o[1],e):0}},zj=new Set(["x","y","z"]),Hj=uu.filter(e=>!zj.has(e));function Kj(e){let t=[];return Hj.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 ND={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:RD(4,13),y:RD(5,14)},qj=(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]=ND[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);kD(p,a[l]),e[l]=ND[l](u,o)}),e},Wj=(e,t,r={},n={})=>{t=K({},t),n=K({},n);let i=Object.keys(t).filter(MD),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Tu(p),g=t[u],w;if(Ns(g)){let v=g.length,_=g[0]===null?1:0;p=g[_],h=Tu(p);for(let D=_;D<v;D++)w?nr(Tu(g[D])===w,"All keyframes must be of the same type"):(w=Tu(g[D]),nr(w===h||nm(h)&&nm(w),"Keyframes must be of the same dimension as the current value"))}else w=Tu(g);if(h!==w)if(nm(h)&&nm(w)){let v=l.get();typeof v=="string"&&l.set(parseFloat(v)),typeof g=="string"?t[u]=parseFloat(g):Array.isArray(g)&&w===pe&&(t[u]=g.map(parseFloat))}else(h==null?void 0:h.transform)&&(w==null?void 0:w.transform)&&(p===0||g===0)?p===0?l.set(w.transform(p)):t[u]=h.transform(g):(s||(o=Kj(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],kD(l,g))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=qj(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),dn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function LD(e,t,r,n){return jj(t)?Wj(e,t,r,n):{target:t,transitionEnd:n}}var FD=(e,t,r,n)=>{let i=ID(e,t,n);return t=i.target,n=i.transitionEnd,LD(e,t,r,n)};c();d();f();var BD=Y(ae(),1);c();d();f();c();d();f();var gf={current:null},im={current:!1};function $D(){if(im.current=!0,!!dn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gf.current=e.matches;e.addListener(t),t()}else gf.current=!1}c();d();f();function UD(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(Jt(o))e.addValue(i,o),Fs(n)&&n.add(i);else if(Jt(s))e.addValue(i,Yn(o,{owner:e})),Fs(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,Yn(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var jD=Object.keys(wo),Gj=jD.length,VD=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],om=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=K({},s),this.initialValues=r.initial?K({},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=Os(r),this.isVariantNode=vp(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 g=l[h];s[h]!==void 0&&Jt(g)&&(g.set(s[h],!1),Fs(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)),im.current||$D(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gf.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(),Jr.update(this.notifyUpdate),Jr.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=Fr.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=[];vu!=="production"&&n&&r&&nr(!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<Gj;u++){let l=jD[u],{isEnabled:p,Component:h}=wo[l];p(t)&&h&&a.push((0,BD.createElement)(h,ue(K({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:g}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&wi(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:g})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):At()}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<VD.length;r++){let n=VD[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=UD(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<Yj;o++){let s=zD[o],a=this.props[s];(xi(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=Yn(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=mu(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&&!Jt(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)}},zD=["initial",...Xp],Yj=zD.length;var $u=class extends om{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=pP(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){hP(this,n,u);let l=FD(this,n,u,r);r=l.transitionEnd,n=l.target}return K({transition:t,transitionEnd:r},n)}};function Xj(e){return window.getComputedStyle(e)}var sm=class extends $u{readValueFromInstance(t,r){if(Fr.has(r)){let n=Su(r);return n&&n.default||0}else{let n=Xj(t),i=(_p(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Vw(t,r)}build(t,r,n,i){lu(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return pu(t)}renderInstance(t,r,n,i){Pp(t,r,n,i)}};c();d();f();var am=class extends $u{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Fr.has(r)?((n=Su(r))===null||n===void 0?void 0:n.default)||0:(r=Dp.has(r)?r:hu(r),t.getAttribute(r))}measureInstanceViewportBox(){return At()}scrapeMotionValuesFromProps(t){return Ap(t)}build(t,r,n,i){fu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Ip(t,r,n,i)}mount(t){this.isSVGTag=du(t.tagName),super.mount(t)}};var HD=(e,t)=>su(e)?new am(t,{enableHardwareAcceleration:!1}):new sm(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var Vu=Y(ae(),1);c();d();f();function KD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Uu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=KD(e,t.target.x),n=KD(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var qD="_$css",WD={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(Hw,w=>(o.push(w),qD)));let s=Tr.parse(e);if(s.length>5)return n;let a=Tr.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 g=a(s);if(i){let w=0;g=g.replace(qD,()=>{let v=o[w];return w++,v})}return g}};var Kw=class extends Vu.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;mT(Jj),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(ue(K({},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 GD(e){let[t,r]=Lp(),n=(0,Vu.useContext)(ou);return Vu.default.createElement(Kw,ue(K({},e),{layoutGroup:n,switchLayoutGroup:(0,Vu.useContext)(bp),isPresent:t,safeToRemove:r}))}var Jj={borderRadius:ue(K({},Uu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Uu,borderTopRightRadius:Uu,borderBottomLeftRadius:Uu,borderBottomRightRadius:Uu,boxShadow:WD};var YD={measureLayout:GD};c();d();f();c();d();f();c();d();f();function XD(e,t,r={}){let n=Jt(e)?e:Yn(e);return n.start(Ru("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var e8=["TopLeft","TopRight","BottomLeft","BottomRight"],Qj=e8.length,JD=e=>typeof e=="string"?parseFloat(e):e,QD=e=>typeof e=="number"||pe.test(e);function t8(e,t,r,n,i,o){i?(e.opacity=Pe(0,r.opacity!==void 0?r.opacity:1,Zj(n)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,ez(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<Qj;s++){let a=`border${e8[s]}Radius`,u=ZD(t,a),l=ZD(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||QD(u)===QD(l)?(e[a]=Math.max(Pe(JD(u),JD(l),n),0),(Cr.test(l)||Cr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Pe(t.rotate||0,r.rotate||0,n))}function ZD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Zj=r8(0,.5,lf),ez=r8(.5,.95,Ou);function r8(e,t,r){return n=>n<e?0:n>t?1:r($s(e,t,n))}c();d();f();function n8(e,t){e.min=t.min,e.max=t.max}function mn(e,t){n8(e.x,t.x),n8(e.y,t.y)}c();d();f();function i8(e,t,r,n,i){return e-=t,e=mf(e,1/r,n),i!==void 0&&(e=mf(e,1/i,n)),e}function tz(e,t=0,r=1,n=.5,i,o=e,s=e){if(Cr.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=i8(e.min,t,r,a,i),e.max=i8(e.max,t,r,a,i)}function o8(e,t,[r,n,i],o,s){tz(e,t[r],t[n],t[i],t.scale,o,s)}var rz=["x","scaleX","originX"],nz=["y","scaleY","originY"];function qw(e,t,r,n){o8(e.x,t,rz,r==null?void 0:r.x,n==null?void 0:n.x),o8(e.y,t,nz,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function s8(e){return e.translate===0&&e.scale===1}function Ww(e){return s8(e.x)&&s8(e.y)}function Gw(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 Yw(e){return ir(e.x)/ir(e.y)}c();d();f();var um=class{constructor(){this.members=[]}add(t){xu(this.members,t),t.scheduleRender()}remove(t){if(bu(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 Xw(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 a8=(e,t)=>e.depth-t.depth;var lm=class{constructor(){this.children=[],this.isDirty=!1}add(t){xu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(a8),this.isDirty=!1,this.children.forEach(t)}};var u8=["","X","Y","Z"],l8=1e3,iz=0;function cm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=iz++,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(az),this.nodes.forEach(cz),this.nodes.forEach(fz)},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 lm)}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 g,w=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Wp(w,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEach(f8))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:w,hasRelativeTargetChanged:v,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:gz,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=h.getProps(),$=!this.targetLayout||!Gw(this.targetLayout,_)||v,G=!w&&v;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||G||w&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,G);let X=ue(K({},Yp(U,"layout")),{onPlay:j,onComplete:F});h.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!w&&this.animationProgress===0&&f8(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,Jr.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(dz),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 w=0;w<this.path.length;w++){let v=this.path[w];v.shouldResetTransform=!0,v.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let g=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(c8);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(yz),this.potentialNodes.clear()),this.nodes.forEach(lz),this.nodes.forEach(oz),this.nodes.forEach(sz),this.clearAllSnapshots(),$p.update(),$p.preRender(),$p.render())}clearAllSnapshots(){this.nodes.forEach(uz),this.sharedNodes.forEach(hz)}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=At(),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&&!Ww(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||Si(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)),vz(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return At();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(Jn(a.x,u.offset.x),Jn(a.y,u.offset.y)),a}removeElementScroll(s){let a=At();mn(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){mn(a,s);let{scroll:g}=this.root;g&&(Jn(a.x,-g.offset.x),Jn(a.y,-g.offset.y))}Jn(a.x,p.offset.x),Jn(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=At();mn(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&&js(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Si(p.latestValues)&&js(u,p.latestValues)}return Si(this.latestValues)&&js(u,this.latestValues),u}removeTransform(s){var a;let u=At();mn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Si(p.latestValues))continue;em(p.latestValues)&&p.updateSnapshot();let h=At(),g=p.measurePageBox();mn(h,g),qw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Si(this.latestValues)&&qw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=ue(K(K({},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=At(),this.relativeTargetOrigin=At(),ku(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=At(),this.targetWithTransforms=At()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?oD(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):mn(this.target,this.layout.layoutBox),Uw(this.target,this.targetDelta)):mn(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=At(),this.relativeTargetOrigin=At(),ku(this.relativeTargetOrigin,this.target,p.target),mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||em(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:g,layoutId:w}=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||!(g||w))return;mn(this.layoutCorrected,this.layout.layoutBox),SD(this.layoutCorrected,this.treeScale,this.path,p);let{target:v}=l;if(!v)return;this.projectionDelta||(this.projectionDelta=Lu(),this.projectionDeltaWithTransform=Lu());let _=this.treeScale.x,D=this.treeScale.y,C=this.projectionTransform;Mu(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=Xw(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==_||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}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)||{},g=K({},this.latestValues),w=Lu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let v=At(),_=(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(mz));this.animationProgress=0,this.mixTargetDelta=I=>{var P;let R=I/1e3;d8(w.x,s.x,R),d8(w.y,s.y,R),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(ku(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pz(this.relativeTarget,this.relativeTargetOrigin,v,R)),_&&(this.animationValues=g,t8(g,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&&(Jr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{bo.hasAnimatedSinceResize=!0,this.currentAnimation=XD(0,l8,ue(K({},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,l8),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&&m8(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||At();let h=ir(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let g=ir(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+g}mn(a,u),js(a,p),Mu(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new um),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<u8.length;p++){let h="rotate"+u8[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=gu(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){let D={};return this.options.layoutId&&(D.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,D.pointerEvents=gu(s.pointerEvents)||""),this.hasProjected&&!Si(this.latestValues)&&(D.transform=h?h({},""):"none",this.hasProjected=!1),D}let w=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=Xw(this.projectionDeltaWithTransform,this.treeScale,w),h&&(p.transform=h(w,p.transform));let{x:v,y:_}=this.projectionDelta;p.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,g.animationValues?p.opacity=g===this?(l=(u=w.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=g===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(let D in au){if(w[D]===void 0)continue;let{correct:C,applyTo:I}=au[D],P=C(w[D],g);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=g===this?gu(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(c8),this.root.sharedNodes.clear()}}}function oz(e){e.updateLayout()}function sz(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"?pn(w=>{let v=u?i.measuredBox[w]:i.layoutBox[w],_=ir(v);v.min=o[w].min,v.max=v.min+_}):m8(a,i.layoutBox,o)&&pn(w=>{let v=u?i.measuredBox[w]:i.layoutBox[w],_=ir(o[w]);v.max=v.min+_});let l=Lu();Mu(l,o,i.layoutBox);let p=Lu();u?Mu(p,e.applyTransform(s,!0),i.measuredBox):Mu(p,o,i.layoutBox);let h=!Ww(l),g=!1;if(!e.resumeFrom){let w=e.getClosestProjectingParent();if(w&&!w.resumeFrom){let{snapshot:v,layout:_}=w;if(v&&_){let D=At();ku(D,i.layoutBox,v.layoutBox);let C=At();ku(C,o,_.layoutBox),Gw(D,C)||(g=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:g})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function az(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function uz(e){e.clearSnapshot()}function c8(e){e.clearMeasurements()}function lz(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function f8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function cz(e){e.resolveTargetDelta()}function fz(e){e.calcProjection()}function dz(e){e.resetRotation()}function hz(e){e.removeLeadSnapshot()}function d8(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 h8(e,t,r,n){e.min=Pe(t.min,r.min,n),e.max=Pe(t.max,r.max,n)}function pz(e,t,r,n){h8(e.x,t.x,r.x,n),h8(e.y,t.y,r.y,n)}function mz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var gz={duration:.45,ease:[.4,0,.1,1]};function yz(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 p8(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function vz(e){p8(e.x),p8(e.y)}function m8(e,t,r){return e==="position"||e==="preserve-aspect"&&!Jp(Yw(t),Yw(r),.2)}c();d();f();var g8=cm({attachResizeListener:(e,t)=>Ms(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Jw={current:void 0},y8=cm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jw.current){let e=new g8(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Jw.current=e}return Jw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var wz=K(K(K(K({},JP),tP),DD),YD),Ln=hT((e,t)=>$T(e,t,wz,HD,y8));c();d();f();var Ci=Y(ae(),1),gn=Y(ae(),1);c();d();f();var yf=Y(ae(),1);c();d();f();var v8=Y(ae(),1);function fm(){let e=(0,v8.useRef)(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function w8(){let e=fm(),[t,r]=(0,yf.useState)(0),n=(0,yf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,yf.useCallback)(()=>Ct.postRender(n),[n]),t]}c();d();f();var vf=Y(ae(),1),wf=Y(ae(),1);c();d();f();var Bu=Y(ae(),1),zs=Y(ae(),1),Qw=class extends Bu.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 x8({children:e,isPresent:t}){let r=(0,zs.useId)(),n=(0,zs.useRef)(null),i=(0,zs.useRef)({width:0,height:0,top:0,left:0});return(0,zs.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(`
|
|
14
|
+
`);let s=eU(t,r,i),a=tp.getSymbolSize(t),l=new z9(a);return Y9(l,t),X9(l),J9(l,t),E1(l,r,0),t>=7&&Q9(l,t),Z9(l,s),isNaN(n)&&(n=_1.getBestMask(l,E1.bind(null,l,r))),_1.applyMask(n,l),E1(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}SC.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=x1.M,i,o;return typeof r<"u"&&(n=x1.from(r.errorCorrectionLevel,x1.M),i=ep.from(r.version),o=_1.from(r.maskPattern),r.toSJISFunc&&tp.setToSJISFunction(r.toSJISFunc)),rU(t,i,n,o)}});var C1=te(Os=>{c();d();f();function TC(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("")}}Os.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:TC(t.color.dark||"#000000ff"),light:TC(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Os.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Os.getImageWidth=function(t,r){let n=Os.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Os.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=Os.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let h=0;h<a;h++)for(let m=0;m<a;m++){let g=(h*a+m)*4,x=n.color.light;if(h>=l&&m>=l&&h<a-l&&m<a-l){let E=Math.floor((h-l)/s),_=Math.floor((m-l)/s);x=u[o[E*i+_]?1:0]}t[g++]=x.r,t[g++]=x.g,t[g++]=x.b,t[g]=x.a}}});var DC=te(rp=>{c();d();f();var T1=C1();function nU(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 iU(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}rp.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=iU()),i=T1.getOptions(i);let s=T1.getImageWidth(t.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return T1.qrToImageData(l.data,t,i),nU(a,o,s),a.putImageData(l,0,0),o};rp.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=rp.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var RC=te(IC=>{c();d();f();var oU=C1();function PC(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function D1(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function sU(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!o&&(o=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=o?D1("M",l+r,.5+u+r):D1("m",i,0),i=0,o=!1),l+1<t&&e[a+1]||(n+=D1("h",s),s=0)):i++}return n}IC.render=function(t,r,n){let i=oU.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+PC(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+PC(i.color.dark,"stroke")+' d="'+sU(s,o,i.margin)+'"/>',h='viewBox="0 0 '+a+" "+a+'"',m=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",g='<svg xmlns="http://www.w3.org/2000/svg" '+m+h+' shape-rendering="crispEdges">'+l+u+`</svg>
|
|
15
|
+
`;return typeof n=="function"&&n(null,g),g}});var OC=te(Bc=>{c();d();f();var aU=O5(),P1=CC(),AC=DC(),lU=RC();function I1(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!aU())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(l,u){try{let h=P1.create(r,n);l(e(h,t,n))}catch(h){u(h)}})}try{let l=P1.create(r,n);i(null,e(l,t,n))}catch(l){i(l)}}Bc.create=P1.create;Bc.toCanvas=I1.bind(null,AC.render);Bc.toDataURL=I1.bind(null,AC.renderToDataURL);Bc.toString=I1.bind(null,function(e,t,r){return lU.render(e,r)})});var d8=te(k1=>{"use strict";c();d();f();Object.defineProperty(k1,"__esModule",{value:!0});function AU(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}k1.default=AU});var h8=te(L1=>{"use strict";c();d();f();Object.defineProperty(L1,"__esModule",{value:!0});function OU(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var MU=OU(d8()),NU=/^((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)-.*))$/,kU=MU(function(e){return NU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});L1.default=kU});var s4=te((Lie,Op)=>{c();d();f();var U8,V8,B8,j8,z8,H8,K8,q8,W8,Rp,B1,G8,Y8,X8,bl,J8,Q8,Z8,e4,t4,r4,n4,i4,o4,Ap;(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 Op=="object"&&typeof Op.exports=="object"?e(r(t,r(Op.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])};U8=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)},V8=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},B8=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},j8=function(n,i,o,s){var a=arguments.length,l=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,i,o,s);else for(var h=n.length-1;h>=0;h--)(u=n[h])&&(l=(a<3?u(l):a>3?u(i,o,l):u(i,o))||l);return a>3&&l&&Object.defineProperty(i,o,l),l},z8=function(n,i){return function(o,s){i(o,s,n)}},H8=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},K8=function(n,i,o,s){function a(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function h(x){try{g(s.next(x))}catch(E){u(E)}}function m(x){try{g(s.throw(x))}catch(E){u(E)}}function g(x){x.done?l(x.value):a(x.value).then(h,m)}g((s=s.apply(n,i||[])).next())})},q8=function(n,i){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,a,l,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(g){return function(x){return m([g,x])}}function m(g){if(s)throw new TypeError("Generator is already executing.");for(;o;)try{if(s=1,a&&(l=g[0]&2?a.return:g[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,g[1])).done)return l;switch(a=0,l&&(g=[g[0]&2,l.value]),g[0]){case 0:case 1:l=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,a=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]<l[3])){o.label=g[1];break}if(g[0]===6&&o.label<l[1]){o.label=l[1],l=g;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(g);break}l[2]&&o.ops.pop(),o.trys.pop();continue}g=i.call(n,o)}catch(x){g=[6,x],a=0}finally{s=l=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},W8=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&Ap(i,n,o)},Ap=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]},Rp=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.")},B1=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,l=[],u;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)l.push(a.value)}catch(h){u={error:h}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(u)throw u.error}}return l},G8=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(B1(arguments[i]));return n},Y8=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 l=arguments[i],u=0,h=l.length;u<h;u++,a++)s[a]=l[u];return s},X8=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,l;s<a;s++)(l||!(s in i))&&(l||(l=Array.prototype.slice.call(i,0,s)),l[s]=i[s]);return n.concat(l||Array.prototype.slice.call(i))},bl=function(n){return this instanceof bl?(this.v=n,this):new bl(n)},J8=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,l=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(_){s[_]&&(a[_]=function(A){return new Promise(function(C,P){l.push([_,A,C,P])>1||h(_,A)})})}function h(_,A){try{m(s[_](A))}catch(C){E(l[0][3],C)}}function m(_){_.value instanceof bl?Promise.resolve(_.value.v).then(g,x):E(l[0][2],_)}function g(_){h("next",_)}function x(_){h("throw",_)}function E(_,A){_(A),l.shift(),l.length&&h(l[0][0],l[0][1])}},Q8=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,l){i[a]=n[a]?function(u){return(o=!o)?{value:bl(n[a](u)),done:a==="return"}:l?l(u):u}:l}},Z8=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 Rp=="function"?Rp(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(l){o[l]=n[l]&&function(u){return new Promise(function(h,m){u=n[l](u),a(h,m,u.done,u.value)})}}function a(l,u,h,m){Promise.resolve(m).then(function(g){l({value:g,done:h})},u)}},e4=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};t4=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)&&Ap(i,n,o);return r(i,n),i},r4=function(n){return n&&n.__esModule?n:{default:n}},n4=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)},i4=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},o4=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",U8),e("__assign",V8),e("__rest",B8),e("__decorate",j8),e("__param",z8),e("__metadata",H8),e("__awaiter",K8),e("__generator",q8),e("__exportStar",W8),e("__createBinding",Ap),e("__values",Rp),e("__read",B1),e("__spread",G8),e("__spreadArrays",Y8),e("__spreadArray",X8),e("__await",bl),e("__asyncGenerator",J8),e("__asyncDelegator",Q8),e("__asyncValues",Z8),e("__makeTemplateObject",e4),e("__importStar",t4),e("__importDefault",r4),e("__classPrivateFieldGet",n4),e("__classPrivateFieldSet",i4),e("__classPrivateFieldIn",o4)})});var AD=te((Jde,RD)=>{"use strict";c();d();f();function ZB(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}RD.exports=ej;function ej(e,t,r){var n=r&&r.stringify||ZB,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 l=t.length;if(l===0)return e;for(var u="",h=1-i,m=-1,g=e&&e.length||0,x=0;x<g;){if(e.charCodeAt(x)===37&&x+1<g){switch(m=m>-1?m:0,e.charCodeAt(x+1)){case 100:case 102:if(h>=l||t[h]==null)break;m<x&&(u+=e.slice(m,x)),u+=Number(t[h]),m=x+2,x++;break;case 105:if(h>=l||t[h]==null)break;m<x&&(u+=e.slice(m,x)),u+=Math.floor(Number(t[h])),m=x+2,x++;break;case 79:case 111:case 106:if(h>=l||t[h]===void 0)break;m<x&&(u+=e.slice(m,x));var E=typeof t[h];if(E==="string"){u+="'"+t[h]+"'",m=x+2,x++;break}if(E==="function"){u+=t[h].name||"<anonymous>",m=x+2,x++;break}u+=n(t[h]),m=x+2,x++;break;case 115:if(h>=l)break;m<x&&(u+=e.slice(m,x)),u+=String(t[h]),m=x+2,x++;break;case 37:m<x&&(u+=e.slice(m,x)),u+="%",m=x+2,x++,h--;break}++h}++x}return m===-1?e:(m<g&&(u+=e.slice(m)),u)}});var v0=te((Qde,kD)=>{"use strict";c();d();f();var OD=AD();kD.exports=Qn;var df=cj().console||{},tj={mapHttpRequest:g0,mapHttpResponse:g0,wrapRequestSerializer:Uw,wrapResponseSerializer:Uw,wrapErrorSerializer:Uw,req:g0,res:g0,err:sj};function rj(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Qn(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||df;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=rj(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",l=Object.create(r);l.log||(l.log=hf),Object.defineProperty(l,"levelVal",{get:h}),Object.defineProperty(l,"level",{get:m,set:g});let u={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:aj(e)};l.levels=Qn.levels,l.level=a,l.setMaxListeners=l.getMaxListeners=l.emit=l.addListener=l.on=l.prependListener=l.once=l.prependOnceListener=l.removeListener=l.removeAllListeners=l.listeners=l.listenerCount=l.eventNames=l.write=l.flush=hf,l.serializers=n,l._serialize=i,l._stdErrSerialize=o,l.child=x,t&&(l._logEvent=Vw());function h(){return this.level==="silent"?1/0:this.levels.values[this.level]}function m(){return this._level}function g(E){if(E!=="silent"&&!this.levels.values[E])throw Error("unknown level "+E);this._level=E,Hl(u,l,"error","log"),Hl(u,l,"fatal","error"),Hl(u,l,"warn","error"),Hl(u,l,"info","log"),Hl(u,l,"debug","log"),Hl(u,l,"trace","log")}function x(E,_){if(!E)throw new Error("missing bindings for child Pino");_=_||{},i&&E.serializers&&(_.serializers=E.serializers);let A=_.serializers;if(i&&A){var C=Object.assign({},n,A),P=e.browser.serialize===!0?Object.keys(C):i;delete E.serializers,y0([E],P,C,this._stdErrSerialize)}function D(O){this._childLevel=(O._childLevel|0)+1,this.error=Kl(O,E,"error"),this.fatal=Kl(O,E,"fatal"),this.warn=Kl(O,E,"warn"),this.info=Kl(O,E,"info"),this.debug=Kl(O,E,"debug"),this.trace=Kl(O,E,"trace"),C&&(this.serializers=C,this._serialize=P),t&&(this._logEvent=Vw([].concat(O._logEvent.bindings,E)))}return D.prototype=this,new D(this)}return l}Qn.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"}};Qn.stdSerializers=tj;Qn.stdTimeFunctions=Object.assign({},{nullTime:MD,epochTime:ND,unixTime:lj,isoTime:uj});function Hl(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?hf:i[r]?i[r]:df[r]||df[n]||hf,nj(e,t,r)}function nj(e,t,r){!e.transmit&&t[r]===hf||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===df?df:this;for(var l=0;l<s.length;l++)s[l]=arguments[l];if(e.serialize&&!e.asObject&&y0(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,ij(this,r,s,o)):n.apply(a,s),e.transmit){let u=e.transmit.level||t.level,h=Qn.levels.values[u],m=Qn.levels.values[r];if(m<h)return;oj(this,{ts:o,methodLevel:r,methodValue:m,transmitLevel:u,transmitValue:Qn.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function ij(e,t,r,n){e._serialize&&y0(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=Qn.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?OD(i.shift(),i):void 0}else typeof o=="string"&&(o=OD(i.shift(),i));return o!==void 0&&(s.msg=o),s}function y0(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Qn.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 Kl(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 oj(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,l=e._logEvent.bindings;y0(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(u){return l.indexOf(u)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=Vw(l)}function Vw(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function sj(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 aj(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?MD:ND}function g0(){return{}}function Uw(e){return e}function hf(){}function MD(){return!1}function ND(){return Date.now()}function lj(){return Math.round(Date.now()/1e3)}function uj(){return new Date(Date.now()).toISOString()}function cj(){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 Ys=te((Zde,Bw)=>{"use strict";c();d();f();var ql=typeof Reflect=="object"?Reflect:null,LD=ql&&typeof ql.apply=="function"?ql.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},w0;ql&&typeof ql.ownKeys=="function"?w0=ql.ownKeys:Object.getOwnPropertySymbols?w0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:w0=function(t){return Object.getOwnPropertyNames(t)};function fj(e){console&&console.warn&&console.warn(e)}var $D=Number.isNaN||function(t){return t!==t};function Ae(){Ae.init.call(this)}Bw.exports=Ae;Bw.exports.once=mj;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var FD=10;function x0(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 FD},set:function(e){if(typeof e!="number"||e<0||$D(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");FD=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||$D(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 UD(e){return e._maxListeners===void 0?Ae.defaultMaxListeners:e._maxListeners}Ae.prototype.getMaxListeners=function(){return UD(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 l=o[t];if(l===void 0)return!1;if(typeof l=="function")LD(l,this,r);else for(var u=l.length,h=HD(l,u),n=0;n<u;++n)LD(h[n],this,r);return!0};function VD(e,t,r,n){var i,o,s;if(x0(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=UD(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,fj(a)}return e}Ae.prototype.addListener=function(t,r){return VD(this,t,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(t,r){return VD(this,t,r,!0)};function dj(){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=dj.bind(n);return i.listener=r,n.wrapFn=i,i}Ae.prototype.once=function(t,r){return x0(r),this.on(t,BD(this,t,r)),this};Ae.prototype.prependOnceListener=function(t,r){return x0(r),this.prependListener(t,BD(this,t,r)),this};Ae.prototype.removeListener=function(t,r){var n,i,o,s,a;if(x0(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():hj(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 jD(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?pj(i):HD(i,i.length)}Ae.prototype.listeners=function(t){return jD(this,t,!0)};Ae.prototype.rawListeners=function(t){return jD(this,t,!1)};Ae.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):zD.call(e,t)};Ae.prototype.listenerCount=zD;function zD(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?w0(this._events):[]};function HD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function hj(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function pj(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function mj(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))}KD(e,t,o,{once:!0}),t!=="error"&&gj(e,i,{once:!0})})}function gj(e,t,r){typeof e.on=="function"&&KD(e,"error",t,r)}function KD(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 Zr=te((ehe,E0)=>{c();d();f();var qD,WD,GD,YD,XD,JD,QD,ZD,eP,b0,jw,tP,rP,Wl,nP,iP,oP,sP,aP,lP,uP,cP,fP;(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 E0=="object"&&typeof E0.exports=="object"?e(r(t,r(E0.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)},WD=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},GD=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},YD=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,i,a):l(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},XD=function(r,n){return function(i,o){n(i,o,r)}},JD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},QD=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(l){l(a)})}return new(i||(i=Promise))(function(a,l){function u(g){try{m(o.next(g))}catch(x){l(x)}}function h(g){try{m(o.throw(g))}catch(x){l(x)}}function m(g){g.done?a(g.value):s(g.value).then(u,h)}m((o=o.apply(r,n||[])).next())})},ZD=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(m){return function(g){return h([m,g])}}function h(m){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=m[0]&2?s.return:m[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,m[1])).done)return a;switch(s=0,a&&(m=[m[0]&2,a.value]),m[0]){case 0:case 1:a=m;break;case 4:return i.label++,{value:m[1],done:!1};case 5:i.label++,s=m[1],m=[0];continue;case 7:m=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(m[0]===6||m[0]===2)){i=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]<a[3])){i.label=m[1];break}if(m[0]===6&&i.label<a[1]){i.label=a[1],a=m;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(m);break}a[2]&&i.ops.pop(),i.trys.pop();continue}m=n.call(r,i)}catch(g){m=[6,g],s=0}finally{o=a=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},fP=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},eP=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},b0=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.")},jw=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(l)throw l.error}}return a},tP=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(jw(arguments[n]));return r},rP=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],l=0,u=a.length;l<u;l++,s++)o[s]=a[l];return o},Wl=function(r){return this instanceof Wl?(this.v=r,this):new Wl(r)},nP=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={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(E){o[E]&&(s[E]=function(_){return new Promise(function(A,C){a.push([E,_,A,C])>1||u(E,_)})})}function u(E,_){try{h(o[E](_))}catch(A){x(a[0][3],A)}}function h(E){E.value instanceof Wl?Promise.resolve(E.value.v).then(m,g):x(a[0][2],E)}function m(E){u("next",E)}function g(E){u("throw",E)}function x(E,_){E(_),a.shift(),a.length&&u(a[0][0],a[0][1])}},iP=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(l){return(i=!i)?{value:Wl(r[s](l)),done:s==="return"}:a?a(l):l}:a}},oP=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 b0=="function"?b0(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(l){return new Promise(function(u,h){l=r[a](l),s(u,h,l.done,l.value)})}}function s(a,l,u,h){Promise.resolve(h).then(function(m){a({value:m,done:u})},l)}},sP=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},aP=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},lP=function(r){return r&&r.__esModule?r:{default:r}},uP=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},cP=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",WD),e("__rest",GD),e("__decorate",YD),e("__param",XD),e("__metadata",JD),e("__awaiter",QD),e("__generator",ZD),e("__exportStar",eP),e("__createBinding",fP),e("__values",b0),e("__read",jw),e("__spread",tP),e("__spreadArrays",rP),e("__await",Wl),e("__asyncGenerator",nP),e("__asyncDelegator",iP),e("__asyncValues",oP),e("__makeTemplateObject",sP),e("__importStar",aP),e("__importDefault",lP),e("__classPrivateFieldGet",uP),e("__classPrivateFieldSet",cP)})});var zw=te(_0=>{"use strict";c();d();f();Object.defineProperty(_0,"__esModule",{value:!0});function yj(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}}_0.safeJsonParse=yj;function vj(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}_0.safeJsonStringify=vj});var dP=te((rhe,S0)=>{"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?S0.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?S0.exports=window.localStorage:S0.exports=new t})()});var hP=te(C0=>{"use strict";c();d();f();Object.defineProperty(C0,"__esModule",{value:!0});C0.IKeyValueStorage=void 0;var Hw=class{};C0.IKeyValueStorage=Hw});var pP=te(T0=>{"use strict";c();d();f();Object.defineProperty(T0,"__esModule",{value:!0});T0.parseEntry=void 0;var wj=zw();function xj(e){var t;return[e[0],wj.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}T0.parseEntry=xj});var gP=te(D0=>{"use strict";c();d();f();Object.defineProperty(D0,"__esModule",{value:!0});var mP=Zr();mP.__exportStar(hP(),D0);mP.__exportStar(pP(),D0)});var vP=te(pf=>{"use strict";c();d();f();Object.defineProperty(pf,"__esModule",{value:!0});pf.KeyValueStorage=void 0;var Gl=Zr(),yP=zw(),bj=Gl.__importDefault(dP()),Ej=gP(),P0=class{constructor(){this.localStorage=bj.default}getKeys(){return Gl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return Gl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(Ej.parseEntry)})}getItem(t){return Gl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return yP.safeJsonParse(r)})}setItem(t,r){return Gl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,yP.safeJsonStringify(r))})}removeItem(t){return Gl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};pf.KeyValueStorage=P0;pf.default=P0});var wP=te(I0=>{"use strict";c();d();f();Object.defineProperty(I0,"__esModule",{value:!0});I0.delay=void 0;function _j(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}I0.delay=_j});var xP=te(Yl=>{"use strict";c();d();f();Object.defineProperty(Yl,"__esModule",{value:!0});Yl.ONE_THOUSAND=Yl.ONE_HUNDRED=void 0;Yl.ONE_HUNDRED=100;Yl.ONE_THOUSAND=1e3});var bP=te(ue=>{"use strict";c();d();f();Object.defineProperty(ue,"__esModule",{value:!0});ue.ONE_YEAR=ue.FOUR_WEEKS=ue.THREE_WEEKS=ue.TWO_WEEKS=ue.ONE_WEEK=ue.THIRTY_DAYS=ue.SEVEN_DAYS=ue.FIVE_DAYS=ue.THREE_DAYS=ue.ONE_DAY=ue.TWENTY_FOUR_HOURS=ue.TWELVE_HOURS=ue.SIX_HOURS=ue.THREE_HOURS=ue.ONE_HOUR=ue.SIXTY_MINUTES=ue.THIRTY_MINUTES=ue.TEN_MINUTES=ue.FIVE_MINUTES=ue.ONE_MINUTE=ue.SIXTY_SECONDS=ue.THIRTY_SECONDS=ue.TEN_SECONDS=ue.FIVE_SECONDS=ue.ONE_SECOND=void 0;ue.ONE_SECOND=1;ue.FIVE_SECONDS=5;ue.TEN_SECONDS=10;ue.THIRTY_SECONDS=30;ue.SIXTY_SECONDS=60;ue.ONE_MINUTE=ue.SIXTY_SECONDS;ue.FIVE_MINUTES=ue.ONE_MINUTE*5;ue.TEN_MINUTES=ue.ONE_MINUTE*10;ue.THIRTY_MINUTES=ue.ONE_MINUTE*30;ue.SIXTY_MINUTES=ue.ONE_MINUTE*60;ue.ONE_HOUR=ue.SIXTY_MINUTES;ue.THREE_HOURS=ue.ONE_HOUR*3;ue.SIX_HOURS=ue.ONE_HOUR*6;ue.TWELVE_HOURS=ue.ONE_HOUR*12;ue.TWENTY_FOUR_HOURS=ue.ONE_HOUR*24;ue.ONE_DAY=ue.TWENTY_FOUR_HOURS;ue.THREE_DAYS=ue.ONE_DAY*3;ue.FIVE_DAYS=ue.ONE_DAY*5;ue.SEVEN_DAYS=ue.ONE_DAY*7;ue.THIRTY_DAYS=ue.ONE_DAY*30;ue.ONE_WEEK=ue.SEVEN_DAYS;ue.TWO_WEEKS=ue.ONE_WEEK*2;ue.THREE_WEEKS=ue.ONE_WEEK*3;ue.FOUR_WEEKS=ue.ONE_WEEK*4;ue.ONE_YEAR=ue.ONE_DAY*365});var Kw=te(R0=>{"use strict";c();d();f();Object.defineProperty(R0,"__esModule",{value:!0});var EP=Zr();EP.__exportStar(xP(),R0);EP.__exportStar(bP(),R0)});var SP=te(Xl=>{"use strict";c();d();f();Object.defineProperty(Xl,"__esModule",{value:!0});Xl.fromMiliseconds=Xl.toMiliseconds=void 0;var _P=Kw();function Sj(e){return e*_P.ONE_THOUSAND}Xl.toMiliseconds=Sj;function Cj(e){return Math.floor(e/_P.ONE_THOUSAND)}Xl.fromMiliseconds=Cj});var TP=te(A0=>{"use strict";c();d();f();Object.defineProperty(A0,"__esModule",{value:!0});var CP=Zr();CP.__exportStar(wP(),A0);CP.__exportStar(SP(),A0)});var DP=te(mf=>{"use strict";c();d();f();Object.defineProperty(mf,"__esModule",{value:!0});mf.Watch=void 0;var O0=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}};mf.Watch=O0;mf.default=O0});var PP=te(M0=>{"use strict";c();d();f();Object.defineProperty(M0,"__esModule",{value:!0});M0.IWatch=void 0;var qw=class{};M0.IWatch=qw});var IP=te(Ww=>{"use strict";c();d();f();Object.defineProperty(Ww,"__esModule",{value:!0});var Tj=Zr();Tj.__exportStar(PP(),Ww)});var ko=te(Jl=>{"use strict";c();d();f();Object.defineProperty(Jl,"__esModule",{value:!0});var N0=Zr();N0.__exportStar(TP(),Jl);N0.__exportStar(DP(),Jl);N0.__exportStar(IP(),Jl);N0.__exportStar(Kw(),Jl)});var Zn,RP=ga(()=>{c();d();f();Zn=class{}});var AP={};cr(AP,{IEvents:()=>Zn});var Gw=ga(()=>{c();d();f();RP()});var OP=te(k0=>{"use strict";c();d();f();Object.defineProperty(k0,"__esModule",{value:!0});k0.IHeartBeat=void 0;var Dj=(Gw(),o_(AP)),Yw=class extends Dj.IEvents{constructor(t){super()}};k0.IHeartBeat=Yw});var Jw=te(Xw=>{"use strict";c();d();f();Object.defineProperty(Xw,"__esModule",{value:!0});var Pj=Zr();Pj.__exportStar(OP(),Xw)});var MP=te(Ql=>{"use strict";c();d();f();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.HEARTBEAT_EVENTS=Ql.HEARTBEAT_INTERVAL=void 0;var Ij=ko();Ql.HEARTBEAT_INTERVAL=Ij.FIVE_SECONDS;Ql.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Zw=te(Qw=>{"use strict";c();d();f();Object.defineProperty(Qw,"__esModule",{value:!0});var Rj=Zr();Rj.__exportStar(MP(),Qw)});var NP=te(L0=>{"use strict";c();d();f();Object.defineProperty(L0,"__esModule",{value:!0});L0.HeartBeat=void 0;var ex=Zr(),Aj=Ys(),Oj=ko(),Mj=Jw(),tx=Zw(),gf=class extends Mj.IHeartBeat{constructor(t){super(t),this.events=new Aj.EventEmitter,this.interval=tx.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||tx.HEARTBEAT_INTERVAL}static init(t){return ex.__awaiter(this,void 0,void 0,function*(){let r=new gf(t);return yield r.init(),r})}init(){return ex.__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 ex.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),Oj.toMiliseconds(this.interval))})}pulse(){this.events.emit(tx.HEARTBEAT_EVENTS.pulse)}};L0.HeartBeat=gf});var kP=te(yf=>{"use strict";c();d();f();Object.defineProperty(yf,"__esModule",{value:!0});var rx=Zr();rx.__exportStar(NP(),yf);rx.__exportStar(Jw(),yf);rx.__exportStar(Zw(),yf)});var nx=te(Zl=>{"use strict";c();d();f();Object.defineProperty(Zl,"__esModule",{value:!0});Zl.PINO_CUSTOM_CONTEXT_KEY=Zl.PINO_LOGGER_DEFAULTS=void 0;Zl.PINO_LOGGER_DEFAULTS={level:"info"};Zl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var VP=te(Ur=>{"use strict";c();d();f();Object.defineProperty(Ur,"__esModule",{value:!0});Ur.generateChildLogger=Ur.formatChildLoggerContext=Ur.getLoggerContext=Ur.setBrowserLoggerContext=Ur.getBrowserLoggerContext=Ur.getDefaultLoggerOptions=void 0;var eu=nx();function Nj(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||eu.PINO_LOGGER_DEFAULTS.level})}Ur.getDefaultLoggerOptions=Nj;function LP(e,t=eu.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Ur.getBrowserLoggerContext=LP;function FP(e,t,r=eu.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Ur.setBrowserLoggerContext=FP;function $P(e,t=eu.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=LP(e,t):r=e.bindings().context||"",r}Ur.getLoggerContext=$P;function UP(e,t,r=eu.PINO_CUSTOM_CONTEXT_KEY){let n=$P(e,r);return n.trim()?`${n}/${t}`:t}Ur.formatChildLoggerContext=UP;function kj(e,t,r=eu.PINO_CUSTOM_CONTEXT_KEY){let n=UP(e,t,r),i=e.child({context:n});return FP(i,n,r)}Ur.generateChildLogger=kj});var ox=te(tu=>{"use strict";c();d();f();Object.defineProperty(tu,"__esModule",{value:!0});tu.pino=void 0;var ix=Zr(),Lj=ix.__importDefault(v0());Object.defineProperty(tu,"pino",{enumerable:!0,get:function(){return Lj.default}});ix.__exportStar(nx(),tu);ix.__exportStar(VP(),tu)});var zP=te(W0=>{"use strict";c();d();f();Object.defineProperty(W0,"__esModule",{value:!0});W0.BrowserRandomSource=void 0;var jP=65536,sx=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+=jP)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,jP)));return r}};W0.BrowserRandomSource=sx});var vn=te(ax=>{"use strict";c();d();f();Object.defineProperty(ax,"__esModule",{value:!0});function Uj(e){for(var t=0;t<e.length;t++)e[t]=0;return e}ax.wipe=Uj});var HP=te(()=>{c();d();f()});var KP=te(G0=>{"use strict";c();d();f();Object.defineProperty(G0,"__esModule",{value:!0});G0.NodeRandomSource=void 0;var Vj=vn(),lx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof i_<"u"){let t=HP();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,Vj.wipe)(r),n}};G0.NodeRandomSource=lx});var qP=te(Y0=>{"use strict";c();d();f();Object.defineProperty(Y0,"__esModule",{value:!0});Y0.SystemRandomSource=void 0;var Bj=zP(),jj=KP(),ux=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Bj.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new jj.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)}};Y0.SystemRandomSource=ux});var WP=te(en=>{"use strict";c();d();f();Object.defineProperty(en,"__esModule",{value:!0});function zj(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}en.mul=Math.imul||zj;function Hj(e,t){return e+t|0}en.add=Hj;function Kj(e,t){return e-t|0}en.sub=Kj;function qj(e,t){return e<<t|e>>>32-t}en.rotl=qj;function Wj(e,t){return e<<32-t|e>>>t}en.rotr=Wj;function Gj(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}en.isInteger=Number.isInteger||Gj;en.MAX_SAFE_INTEGER=9007199254740991;en.isSafeInteger=function(e){return en.isInteger(e)&&e>=-en.MAX_SAFE_INTEGER&&e<=en.MAX_SAFE_INTEGER}});var nu=te(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var GP=WP();function Yj(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=Yj;function Xj(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=Xj;function Jj(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=Jj;function Qj(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=Qj;function YP(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=YP;we.writeInt16BE=YP;function XP(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=XP;we.writeInt16LE=XP;function cx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=cx;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 dx(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=dx;function hx(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=hx;function X0(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=X0;we.writeInt32BE=X0;function J0(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=J0;we.writeInt32LE=J0;function Zj(e,t){t===void 0&&(t=0);var r=cx(e,t),n=cx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=Zj;function ez(e,t){t===void 0&&(t=0);var r=fx(e,t),n=fx(e,t+4);return r*4294967296+n}we.readUint64BE=ez;function tz(e,t){t===void 0&&(t=0);var r=dx(e,t),n=dx(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=tz;function rz(e,t){t===void 0&&(t=0);var r=hx(e,t),n=hx(e,t+4);return n*4294967296+r}we.readUint64LE=rz;function JP(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),X0(e/4294967296>>>0,t,r),X0(e>>>0,t,r+4),t}we.writeUint64BE=JP;we.writeInt64BE=JP;function QP(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),J0(e>>>0,t,r),J0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=QP;we.writeInt64LE=QP;function nz(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=nz;function iz(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=iz;function oz(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(!GP.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=oz;function sz(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(!GP.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=sz;function az(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=az;function lz(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=lz;function uz(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=uz;function cz(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=cz;function fz(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=fz;function dz(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=dz;function hz(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=hz;function pz(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=pz});var iu=te(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 mz=qP(),gz=nu(),ZP=vn();xr.defaultRandomSource=new mz.SystemRandomSource;function px(e,t=xr.defaultRandomSource){return t.randomBytes(e)}xr.randomBytes=px;function yz(e=xr.defaultRandomSource){let t=px(4,e),r=(0,gz.readUint32LE)(t);return(0,ZP.wipe)(t),r}xr.randomUint32=yz;var eI="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function tI(e,t=eI,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=px(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let l=s[a];l<o&&(n+=t.charAt(l%i),e--)}(0,ZP.wipe)(s)}return n}xr.randomString=tI;function vz(e,t=eI,r=xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return tI(n,t,r)}xr.randomStringForEntropy=vz});var iI=te(Mi=>{"use strict";c();d();f();Object.defineProperty(Mi,"__esModule",{value:!0});var su=nu(),ou=vn();Mi.DIGEST_LENGTH=64;Mi.BLOCK_SIZE=128;var nI=function(){function e(){this.digestLength=Mi.DIGEST_LENGTH,this.blockSize=Mi.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(){ou.wipe(this._buffer),ou.wipe(this._tempHi),ou.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<Mi.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(mx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=mx(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;su.writeUint32BE(i,this._buffer,s-8),su.writeUint32BE(o,this._buffer,s-4),mx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)su.writeUint32BE(this._stateHi[a],t,a*8),su.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){ou.wipe(t.stateHi),ou.wipe(t.stateLo),t.buffer&&ou.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Mi.SHA512=nI;var rI=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 mx(e,t,r,n,i,o,s){for(var a=r[0],l=r[1],u=r[2],h=r[3],m=r[4],g=r[5],x=r[6],E=r[7],_=n[0],A=n[1],C=n[2],P=n[3],D=n[4],O=n[5],$=n[6],j=n[7],F,U,W,X,G,Y,M,p;s>=128;){for(var b=0;b<16;b++){var I=8*b+o;e[b]=su.readUint32BE(i,I),t[b]=su.readUint32BE(i,I+4)}for(var b=0;b<80;b++){var R=a,N=l,V=u,B=h,k=m,v=g,L=x,J=E,T=_,z=A,H=C,q=P,Q=D,ie=O,re=$,ee=j;if(F=E,U=j,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=(m>>>14|D<<32-14)^(m>>>18|D<<32-18)^(D>>>41-32|m<<32-(41-32)),U=(D>>>14|m<<32-14)^(D>>>18|m<<32-18)^(m>>>41-32|D<<32-(41-32)),G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,F=m&g^~m&x,U=D&O^~D&$,G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,F=rI[b*2],U=rI[b*2+1],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,F=e[b%16],U=t[b%16],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,W=M&65535|p<<16,X=G&65535|Y<<16,F=W,U=X,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),U=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,F=a&l^a&u^l&u,U=_&A^_&C^A&C,G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,J=M&65535|p<<16,ee=G&65535|Y<<16,F=B,U=q,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=W,U=X,G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,B=M&65535|p<<16,q=G&65535|Y<<16,l=R,u=N,h=V,m=B,g=k,x=v,E=L,a=J,A=T,C=z,P=H,D=q,O=Q,$=ie,j=re,_=ee,b%16===15)for(var I=0;I<16;I++)F=e[I],U=t[I],G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=e[(I+9)%16],U=t[(I+9)%16],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,W=e[(I+1)%16],X=t[(I+1)%16],F=(W>>>1|X<<32-1)^(W>>>8|X<<32-8)^W>>>7,U=(X>>>1|W<<32-1)^(X>>>8|W<<32-8)^(X>>>7|W<<32-7),G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,W=e[(I+14)%16],X=t[(I+14)%16],F=(W>>>19|X<<32-19)^(X>>>61-32|W<<32-(61-32))^W>>>6,U=(X>>>19|W<<32-19)^(W>>>61-32|X<<32-(61-32))^(X>>>6|W<<32-6),G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,e[I]=M&65535|p<<16,t[I]=G&65535|Y<<16}F=a,U=_,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[0],U=n[0],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[0]=a=M&65535|p<<16,n[0]=_=G&65535|Y<<16,F=l,U=A,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[1],U=n[1],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[1]=l=M&65535|p<<16,n[1]=A=G&65535|Y<<16,F=u,U=C,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[2],U=n[2],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[2]=u=M&65535|p<<16,n[2]=C=G&65535|Y<<16,F=h,U=P,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[3],U=n[3],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[3]=h=M&65535|p<<16,n[3]=P=G&65535|Y<<16,F=m,U=D,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[4],U=n[4],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[4]=m=M&65535|p<<16,n[4]=D=G&65535|Y<<16,F=g,U=O,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[5],U=n[5],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[5]=g=M&65535|p<<16,n[5]=O=G&65535|Y<<16,F=x,U=$,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[6],U=n[6],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[6]=x=M&65535|p<<16,n[6]=$=G&65535|Y<<16,F=E,U=j,G=U&65535,Y=U>>>16,M=F&65535,p=F>>>16,F=r[7],U=n[7],G+=U&65535,Y+=U>>>16,M+=F&65535,p+=F>>>16,Y+=G>>>16,M+=Y>>>16,p+=M>>>16,r[7]=E=M&65535|p<<16,n[7]=j=G&65535|Y<<16,o+=128,s-=128}return o}function wz(e){var t=new nI;t.update(e);var r=t.digest();return t.clean(),r}Mi.hash=wz});var vI=te(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 xz=iu(),wf=iI(),uI=vn();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 bz=new Uint8Array(32);bz[0]=9;var vx=me(),au=me([1]),Ez=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),_z=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),oI=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),sI=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),Sz=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 gx(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 cI(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 xf(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];gx(n),gx(n),gx(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,cI(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 fI(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function aI(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return xf(r,e),xf(n,t),fI(r,n)}function dI(e){let t=new Uint8Array(32);return xf(t,e),t[0]&1}function Cz(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Xs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function Qs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Oe(e,t,r){let n,i,o=0,s=0,a=0,l=0,u=0,h=0,m=0,g=0,x=0,E=0,_=0,A=0,C=0,P=0,D=0,O=0,$=0,j=0,F=0,U=0,W=0,X=0,G=0,Y=0,M=0,p=0,b=0,I=0,R=0,N=0,V=0,B=r[0],k=r[1],v=r[2],L=r[3],J=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],ee=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*v,l+=n*L,u+=n*J,h+=n*T,m+=n*z,g+=n*H,x+=n*q,E+=n*Q,_+=n*ie,A+=n*re,C+=n*ee,P+=n*he,D+=n*ne,O+=n*se,n=t[1],s+=n*B,a+=n*k,l+=n*v,u+=n*L,h+=n*J,m+=n*T,g+=n*z,x+=n*H,E+=n*q,_+=n*Q,A+=n*ie,C+=n*re,P+=n*ee,D+=n*he,O+=n*ne,$+=n*se,n=t[2],a+=n*B,l+=n*k,u+=n*v,h+=n*L,m+=n*J,g+=n*T,x+=n*z,E+=n*H,_+=n*q,A+=n*Q,C+=n*ie,P+=n*re,D+=n*ee,O+=n*he,$+=n*ne,j+=n*se,n=t[3],l+=n*B,u+=n*k,h+=n*v,m+=n*L,g+=n*J,x+=n*T,E+=n*z,_+=n*H,A+=n*q,C+=n*Q,P+=n*ie,D+=n*re,O+=n*ee,$+=n*he,j+=n*ne,F+=n*se,n=t[4],u+=n*B,h+=n*k,m+=n*v,g+=n*L,x+=n*J,E+=n*T,_+=n*z,A+=n*H,C+=n*q,P+=n*Q,D+=n*ie,O+=n*re,$+=n*ee,j+=n*he,F+=n*ne,U+=n*se,n=t[5],h+=n*B,m+=n*k,g+=n*v,x+=n*L,E+=n*J,_+=n*T,A+=n*z,C+=n*H,P+=n*q,D+=n*Q,O+=n*ie,$+=n*re,j+=n*ee,F+=n*he,U+=n*ne,W+=n*se,n=t[6],m+=n*B,g+=n*k,x+=n*v,E+=n*L,_+=n*J,A+=n*T,C+=n*z,P+=n*H,D+=n*q,O+=n*Q,$+=n*ie,j+=n*re,F+=n*ee,U+=n*he,W+=n*ne,X+=n*se,n=t[7],g+=n*B,x+=n*k,E+=n*v,_+=n*L,A+=n*J,C+=n*T,P+=n*z,D+=n*H,O+=n*q,$+=n*Q,j+=n*ie,F+=n*re,U+=n*ee,W+=n*he,X+=n*ne,G+=n*se,n=t[8],x+=n*B,E+=n*k,_+=n*v,A+=n*L,C+=n*J,P+=n*T,D+=n*z,O+=n*H,$+=n*q,j+=n*Q,F+=n*ie,U+=n*re,W+=n*ee,X+=n*he,G+=n*ne,Y+=n*se,n=t[9],E+=n*B,_+=n*k,A+=n*v,C+=n*L,P+=n*J,D+=n*T,O+=n*z,$+=n*H,j+=n*q,F+=n*Q,U+=n*ie,W+=n*re,X+=n*ee,G+=n*he,Y+=n*ne,M+=n*se,n=t[10],_+=n*B,A+=n*k,C+=n*v,P+=n*L,D+=n*J,O+=n*T,$+=n*z,j+=n*H,F+=n*q,U+=n*Q,W+=n*ie,X+=n*re,G+=n*ee,Y+=n*he,M+=n*ne,p+=n*se,n=t[11],A+=n*B,C+=n*k,P+=n*v,D+=n*L,O+=n*J,$+=n*T,j+=n*z,F+=n*H,U+=n*q,W+=n*Q,X+=n*ie,G+=n*re,Y+=n*ee,M+=n*he,p+=n*ne,b+=n*se,n=t[12],C+=n*B,P+=n*k,D+=n*v,O+=n*L,$+=n*J,j+=n*T,F+=n*z,U+=n*H,W+=n*q,X+=n*Q,G+=n*ie,Y+=n*re,M+=n*ee,p+=n*he,b+=n*ne,I+=n*se,n=t[13],P+=n*B,D+=n*k,O+=n*v,$+=n*L,j+=n*J,F+=n*T,U+=n*z,W+=n*H,X+=n*q,G+=n*Q,Y+=n*ie,M+=n*re,p+=n*ee,b+=n*he,I+=n*ne,R+=n*se,n=t[14],D+=n*B,O+=n*k,$+=n*v,j+=n*L,F+=n*J,U+=n*T,W+=n*z,X+=n*H,G+=n*q,Y+=n*Q,M+=n*ie,p+=n*re,b+=n*ee,I+=n*he,R+=n*ne,N+=n*se,n=t[15],O+=n*B,$+=n*k,j+=n*v,F+=n*L,U+=n*J,W+=n*T,X+=n*z,G+=n*H,Y+=n*q,M+=n*Q,p+=n*ie,b+=n*re,I+=n*ee,R+=n*he,N+=n*ne,V+=n*se,o+=38*$,s+=38*j,a+=38*F,l+=38*U,u+=38*W,h+=38*X,m+=38*G,g+=38*Y,x+=38*M,E+=38*p,_+=38*b,A+=38*I,C+=38*R,P+=38*N,D+=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=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=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=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=l,e[4]=u,e[5]=h,e[6]=m,e[7]=g,e[8]=x,e[9]=E,e[10]=_,e[11]=A,e[12]=C,e[13]=P,e[14]=D,e[15]=O}function Js(e,t){Oe(e,t,t)}function hI(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Js(r,r),n!==2&&n!==4&&Oe(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function Tz(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Js(r,r),n!==1&&Oe(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function wx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),l=me(),u=me(),h=me();Qs(r,e[1],e[0]),Qs(h,t[1],t[0]),Oe(r,r,h),Xs(n,e[0],e[1]),Xs(h,t[0],t[1]),Oe(n,n,h),Oe(i,e[3],t[3]),Oe(i,i,_z),Oe(o,e[2],t[2]),Xs(o,o,o),Qs(s,n,r),Qs(a,o,i),Xs(l,o,i),Xs(u,n,r),Oe(e[0],s,a),Oe(e[1],u,l),Oe(e[2],l,a),Oe(e[3],s,u)}function lI(e,t,r){for(let n=0;n<4;n++)cI(e[n],t[n],r)}function bx(e,t){let r=me(),n=me(),i=me();hI(i,t[2]),Oe(r,t[0],i),Oe(n,t[1],i),xf(e,n),e[31]^=dI(r)<<7}function pI(e,t,r){Lo(e[0],vx),Lo(e[1],au),Lo(e[2],au),Lo(e[3],vx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;lI(e,t,i),wx(t,e),wx(e,e),lI(e,t,i)}}function Ex(e,t){let r=[me(),me(),me(),me()];Lo(r[0],oI),Lo(r[1],sI),Lo(r[2],au),Oe(r[3],oI,sI),pI(e,r,t)}function mI(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,wf.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Ex(n,t),bx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=mI;function Dz(e){let t=(0,xz.randomBytes)(32,e),r=mI(t);return(0,uI.wipe)(t),r}Ie.generateKeyPair=Dz;function Pz(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=Pz;var yx=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 gI(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]*yx[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)*yx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*yx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function xx(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;gI(e,t)}function Iz(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,wf.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 wf.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),xx(a),Ex(n,a),bx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let l=s.digest();xx(l);for(let u=0;u<32;u++)r[u]=a[u];for(let u=0;u<32;u++)for(let h=0;h<32;h++)r[u+h]+=l[u]*i[h];return gI(o.subarray(32),r),o}Ie.sign=Iz;function yI(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),l=me();return Lo(e[2],au),Cz(e[1],t),Js(i,e[1]),Oe(o,i,Ez),Qs(i,i,e[2]),Xs(o,e[2],o),Js(s,o),Js(a,s),Oe(l,a,s),Oe(r,l,i),Oe(r,r,o),Tz(r,r),Oe(r,r,i),Oe(r,r,o),Oe(r,r,o),Oe(e[0],r,o),Js(n,e[0]),Oe(n,n,o),aI(n,i)&&Oe(e[0],e[0],Sz),Js(n,e[0]),Oe(n,n,o),aI(n,i)?-1:(dI(e[0])===t[31]>>7&&Qs(e[0],vx,e[0]),Oe(e[3],e[0],e[1]),0)}function Rz(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(yI(o,e))return!1;let s=new wf.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return xx(a),pI(i,o,a),Ex(o,r.subarray(32)),wx(i,o),bx(n,i),!fI(r,n)}Ie.verify=Rz;function Az(e){let t=[me(),me(),me(),me()];if(yI(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Xs(r,au,i),Qs(n,au,i),hI(n,n),Oe(r,r,n);let o=new Uint8Array(32);return xf(o,r),o}Ie.convertPublicKeyToX25519=Az;function Oz(e){let t=(0,wf.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,uI.wipe)(t),r}Ie.convertSecretKeyToX25519=Oz});var eR=te(im=>{"use strict";c();d();f();Object.defineProperty(im,"__esModule",{value:!0});var br=nu(),Gx=vn(),qH=20;function WH(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],l=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],m=r[19]<<24|r[18]<<16|r[17]<<8|r[16],g=r[23]<<24|r[22]<<16|r[21]<<8|r[20],x=r[27]<<24|r[26]<<16|r[25]<<8|r[24],E=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],A=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],P=t[15]<<24|t[14]<<16|t[13]<<8|t[12],D=n,O=i,$=o,j=s,F=a,U=l,W=u,X=h,G=m,Y=g,M=x,p=E,b=_,I=A,R=C,N=P,V=0;V<qH;V+=2)D=D+F|0,b^=D,b=b>>>32-16|b<<16,G=G+b|0,F^=G,F=F>>>32-12|F<<12,O=O+U|0,I^=O,I=I>>>32-16|I<<16,Y=Y+I|0,U^=Y,U=U>>>32-12|U<<12,$=$+W|0,R^=$,R=R>>>32-16|R<<16,M=M+R|0,W^=M,W=W>>>32-12|W<<12,j=j+X|0,N^=j,N=N>>>32-16|N<<16,p=p+N|0,X^=p,X=X>>>32-12|X<<12,$=$+W|0,R^=$,R=R>>>32-8|R<<8,M=M+R|0,W^=M,W=W>>>32-7|W<<7,j=j+X|0,N^=j,N=N>>>32-8|N<<8,p=p+N|0,X^=p,X=X>>>32-7|X<<7,O=O+U|0,I^=O,I=I>>>32-8|I<<8,Y=Y+I|0,U^=Y,U=U>>>32-7|U<<7,D=D+F|0,b^=D,b=b>>>32-8|b<<8,G=G+b|0,F^=G,F=F>>>32-7|F<<7,D=D+U|0,N^=D,N=N>>>32-16|N<<16,M=M+N|0,U^=M,U=U>>>32-12|U<<12,O=O+W|0,b^=O,b=b>>>32-16|b<<16,p=p+b|0,W^=p,W=W>>>32-12|W<<12,$=$+X|0,I^=$,I=I>>>32-16|I<<16,G=G+I|0,X^=G,X=X>>>32-12|X<<12,j=j+F|0,R^=j,R=R>>>32-16|R<<16,Y=Y+R|0,F^=Y,F=F>>>32-12|F<<12,$=$+X|0,I^=$,I=I>>>32-8|I<<8,G=G+I|0,X^=G,X=X>>>32-7|X<<7,j=j+F|0,R^=j,R=R>>>32-8|R<<8,Y=Y+R|0,F^=Y,F=F>>>32-7|F<<7,O=O+W|0,b^=O,b=b>>>32-8|b<<8,p=p+b|0,W^=p,W=W>>>32-7|W<<7,D=D+U|0,N^=D,N=N>>>32-8|N<<8,M=M+N|0,U^=M,U=U>>>32-7|U<<7;br.writeUint32LE(D+n|0,e,0),br.writeUint32LE(O+i|0,e,4),br.writeUint32LE($+o|0,e,8),br.writeUint32LE(j+s|0,e,12),br.writeUint32LE(F+a|0,e,16),br.writeUint32LE(U+l|0,e,20),br.writeUint32LE(W+u|0,e,24),br.writeUint32LE(X+h|0,e,28),br.writeUint32LE(G+m|0,e,32),br.writeUint32LE(Y+g|0,e,36),br.writeUint32LE(M+x|0,e,40),br.writeUint32LE(p+E|0,e,44),br.writeUint32LE(b+_|0,e,48),br.writeUint32LE(I+A|0,e,52),br.writeUint32LE(R+C|0,e,56),br.writeUint32LE(N+P|0,e,60)}function ZI(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),l=0;l<r.length;l+=64){WH(a,o,e);for(var u=l;u<l+64&&u<r.length;u++)n[u]=r[u]^a[u-l];YH(o,0,s)}return Gx.wipe(a),i===0&&Gx.wipe(o),n}im.streamXOR=ZI;function GH(e,t,r,n){return n===void 0&&(n=0),Gx.wipe(r),ZI(e,t,r,r,n)}im.stream=GH;function YH(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 om=te(hu=>{"use strict";c();d();f();Object.defineProperty(hu,"__esModule",{value:!0});function XH(e,t,r){return~(e-1)&t|e-1&r}hu.select=XH;function JH(e,t){return(e|0)-(t|0)-1>>>31&1}hu.lessOrEqual=JH;function tR(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}hu.compare=tR;function QH(e,t){return e.length===0||t.length===0?!1:tR(e,t)!==0}hu.equal=QH});var nR=te(ki=>{"use strict";c();d();f();Object.defineProperty(ki,"__esModule",{value:!0});var ZH=om(),sm=vn();ki.DIGEST_LENGTH=16;var rR=function(){function e(t){this.digestLength=ki.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 l=t[12]|t[13]<<8;this._r[7]=(a>>>11|l<<5)&8065;var u=t[14]|t[15]<<8;this._r[8]=(l>>>8|u<<8)&8191,this._r[9]=u>>>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],l=this._h[3],u=this._h[4],h=this._h[5],m=this._h[6],g=this._h[7],x=this._h[8],E=this._h[9],_=this._r[0],A=this._r[1],C=this._r[2],P=this._r[3],D=this._r[4],O=this._r[5],$=this._r[6],j=this._r[7],F=this._r[8],U=this._r[9];n>=16;){var W=t[r+0]|t[r+1]<<8;o+=W&8191;var X=t[r+2]|t[r+3]<<8;s+=(W>>>13|X<<3)&8191;var G=t[r+4]|t[r+5]<<8;a+=(X>>>10|G<<6)&8191;var Y=t[r+6]|t[r+7]<<8;l+=(G>>>7|Y<<9)&8191;var M=t[r+8]|t[r+9]<<8;u+=(Y>>>4|M<<12)&8191,h+=M>>>1&8191;var p=t[r+10]|t[r+11]<<8;m+=(M>>>14|p<<2)&8191;var b=t[r+12]|t[r+13]<<8;g+=(p>>>11|b<<5)&8191;var I=t[r+14]|t[r+15]<<8;x+=(b>>>8|I<<8)&8191,E+=I>>>5|i;var R=0,N=R;N+=o*_,N+=s*(5*U),N+=a*(5*F),N+=l*(5*j),N+=u*(5*$),R=N>>>13,N&=8191,N+=h*(5*O),N+=m*(5*D),N+=g*(5*P),N+=x*(5*C),N+=E*(5*A),R+=N>>>13,N&=8191;var V=R;V+=o*A,V+=s*_,V+=a*(5*U),V+=l*(5*F),V+=u*(5*j),R=V>>>13,V&=8191,V+=h*(5*$),V+=m*(5*O),V+=g*(5*D),V+=x*(5*P),V+=E*(5*C),R+=V>>>13,V&=8191;var B=R;B+=o*C,B+=s*A,B+=a*_,B+=l*(5*U),B+=u*(5*F),R=B>>>13,B&=8191,B+=h*(5*j),B+=m*(5*$),B+=g*(5*O),B+=x*(5*D),B+=E*(5*P),R+=B>>>13,B&=8191;var k=R;k+=o*P,k+=s*C,k+=a*A,k+=l*_,k+=u*(5*U),R=k>>>13,k&=8191,k+=h*(5*F),k+=m*(5*j),k+=g*(5*$),k+=x*(5*O),k+=E*(5*D),R+=k>>>13,k&=8191;var v=R;v+=o*D,v+=s*P,v+=a*C,v+=l*A,v+=u*_,R=v>>>13,v&=8191,v+=h*(5*U),v+=m*(5*F),v+=g*(5*j),v+=x*(5*$),v+=E*(5*O),R+=v>>>13,v&=8191;var L=R;L+=o*O,L+=s*D,L+=a*P,L+=l*C,L+=u*A,R=L>>>13,L&=8191,L+=h*_,L+=m*(5*U),L+=g*(5*F),L+=x*(5*j),L+=E*(5*$),R+=L>>>13,L&=8191;var J=R;J+=o*$,J+=s*O,J+=a*D,J+=l*P,J+=u*C,R=J>>>13,J&=8191,J+=h*A,J+=m*_,J+=g*(5*U),J+=x*(5*F),J+=E*(5*j),R+=J>>>13,J&=8191;var T=R;T+=o*j,T+=s*$,T+=a*O,T+=l*D,T+=u*P,R=T>>>13,T&=8191,T+=h*C,T+=m*A,T+=g*_,T+=x*(5*U),T+=E*(5*F),R+=T>>>13,T&=8191;var z=R;z+=o*F,z+=s*j,z+=a*$,z+=l*O,z+=u*D,R=z>>>13,z&=8191,z+=h*P,z+=m*C,z+=g*A,z+=x*_,z+=E*(5*U),R+=z>>>13,z&=8191;var H=R;H+=o*U,H+=s*F,H+=a*j,H+=l*$,H+=u*O,R=H>>>13,H&=8191,H+=h*D,H+=m*P,H+=g*C,H+=x*A,H+=E*_,R+=H>>>13,H&=8191,R=(R<<2)+R|0,R=R+N|0,N=R&8191,R=R>>>13,V+=R,o=N,s=V,a=B,l=k,u=v,h=L,m=J,g=T,x=z,E=H,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=l,this._h[4]=u,this._h[5]=h,this._h[6]=m,this._h[7]=g,this._h[8]=x,this._h[9]=E},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 sm.wipe(this._buffer),sm.wipe(this._r),sm.wipe(this._h),sm.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();ki.Poly1305=rR;function eK(e,t){var r=new rR(e);r.update(t);var n=r.digest();return r.clean(),n}ki.oneTimeAuth=eK;function tK(e,t){return e.length!==ki.DIGEST_LENGTH||t.length!==ki.DIGEST_LENGTH?!1:ZH.equal(e,t)}ki.equal=tK});var Yx=te(Li=>{"use strict";c();d();f();Object.defineProperty(Li,"__esModule",{value:!0});var am=eR(),rK=nR(),Df=vn(),iR=nu(),nK=om();Li.KEY_LENGTH=32;Li.NONCE_LENGTH=12;Li.TAG_LENGTH=16;var oR=new Uint8Array(16),iK=function(){function e(t){if(this.nonceLength=Li.NONCE_LENGTH,this.tagLength=Li.TAG_LENGTH,t.length!==Li.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);am.stream(this._key,o,s,4);var a=r.length+this.tagLength,l;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(a);return am.streamXOR(this._key,o,r,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),Df.wipe(o),l},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);am.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),!nK.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var l=r.length-this.tagLength,u;if(i){if(i.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(l);return am.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),u,4),Df.wipe(o),u},e.prototype.clean=function(){return Df.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new rK.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(oR.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(oR.subarray(n.length%16));var s=new Uint8Array(8);i&&iR.writeUint64LE(i.length,s),o.update(s),iR.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),l=0;l<a.length;l++)t[l]=a[l];o.clean(),Df.wipe(a),Df.wipe(s)},e}();Li.ChaCha20Poly1305=iK});var sR=te(Xx=>{"use strict";c();d();f();Object.defineProperty(Xx,"__esModule",{value:!0});function oK(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}Xx.isSerializableHash=oK});var lR=te(Pf=>{"use strict";c();d();f();Object.defineProperty(Pf,"__esModule",{value:!0});var ti=sR(),sK=om(),aK=vn(),aR=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),ti.isSerializableHash(this._inner)&&ti.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),aK.wipe(n)}return e.prototype.reset=function(){if(!ti.isSerializableHash(this._inner)||!ti.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(){ti.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),ti.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(!ti.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(!ti.isSerializableHash(this._inner)||!ti.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(!ti.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Pf.HMAC=aR;function lK(e,t,r){var n=new aR(e,t);n.update(r);var i=n.digest();return n.clean(),i}Pf.hmac=lK;Pf.equal=sK.equal});var Qx=te(Jx=>{"use strict";c();d();f();Object.defineProperty(Jx,"__esModule",{value:!0});var uR=lR(),cR=vn(),uK=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=uR.hmac(this._hash,n,r);this._hmac=new uR.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(),cR.wipe(this._buffer),cR.wipe(this._counter),this._bufpos=0},e}();Jx.HKDF=uK});var eb=te($o=>{"use strict";c();d();f();Object.defineProperty($o,"__esModule",{value:!0});var um=nu(),lm=vn();$o.DIGEST_LENGTH=32;$o.BLOCK_SIZE=64;var fR=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(){lm.wipe(this._buffer),lm.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&&(Zx(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Zx(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;um.writeUint32BE(i,this._buffer,s-8),um.writeUint32BE(o,this._buffer,s-4),Zx(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)um.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){lm.wipe(t.state),t.buffer&&lm.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();$o.SHA256=fR;var cK=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 Zx(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],l=t[3],u=t[4],h=t[5],m=t[6],g=t[7],x=0;x<16;x++){var E=n+x*4;e[x]=um.readUint32BE(r,E)}for(var x=16;x<64;x++){var _=e[x-2],A=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[x-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[x]=(A+e[x-7]|0)+(C+e[x-16]|0)}for(var x=0;x<64;x++){var A=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&h^~u&m)|0)+(g+(cK[x]+e[x]|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;g=m,m=h,h=u,u=l+A|0,l=a,a=s,s=o,o=A+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=l,t[4]+=u,t[5]+=h,t[6]+=m,t[7]+=g,n+=64,i-=64}return n}function fK(e){var t=new fR;t.update(e);var r=t.digest();return t.clean(),r}$o.hash=fK});var nb=te(Ot=>{"use strict";c();d();f();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.sharedKey=Ot.generateKeyPair=Ot.generateKeyPairFromSeed=Ot.scalarMultBase=Ot.scalarMult=Ot.SHARED_KEY_LENGTH=Ot.SECRET_KEY_LENGTH=Ot.PUBLIC_KEY_LENGTH=void 0;var dK=iu(),hK=vn();Ot.PUBLIC_KEY_LENGTH=32;Ot.SECRET_KEY_LENGTH=32;Ot.SHARED_KEY_LENGTH=32;function ri(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var dR=new Uint8Array(32);dR[0]=9;var pK=ri([56129,1]);function tb(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 If(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 mK(e,t){let r=ri(),n=ri();for(let i=0;i<16;i++)n[i]=t[i];tb(n),tb(n),tb(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,If(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 gK(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function cm(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function fm(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Fi(e,t,r){let n,i,o=0,s=0,a=0,l=0,u=0,h=0,m=0,g=0,x=0,E=0,_=0,A=0,C=0,P=0,D=0,O=0,$=0,j=0,F=0,U=0,W=0,X=0,G=0,Y=0,M=0,p=0,b=0,I=0,R=0,N=0,V=0,B=r[0],k=r[1],v=r[2],L=r[3],J=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],ee=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*v,l+=n*L,u+=n*J,h+=n*T,m+=n*z,g+=n*H,x+=n*q,E+=n*Q,_+=n*ie,A+=n*re,C+=n*ee,P+=n*he,D+=n*ne,O+=n*se,n=t[1],s+=n*B,a+=n*k,l+=n*v,u+=n*L,h+=n*J,m+=n*T,g+=n*z,x+=n*H,E+=n*q,_+=n*Q,A+=n*ie,C+=n*re,P+=n*ee,D+=n*he,O+=n*ne,$+=n*se,n=t[2],a+=n*B,l+=n*k,u+=n*v,h+=n*L,m+=n*J,g+=n*T,x+=n*z,E+=n*H,_+=n*q,A+=n*Q,C+=n*ie,P+=n*re,D+=n*ee,O+=n*he,$+=n*ne,j+=n*se,n=t[3],l+=n*B,u+=n*k,h+=n*v,m+=n*L,g+=n*J,x+=n*T,E+=n*z,_+=n*H,A+=n*q,C+=n*Q,P+=n*ie,D+=n*re,O+=n*ee,$+=n*he,j+=n*ne,F+=n*se,n=t[4],u+=n*B,h+=n*k,m+=n*v,g+=n*L,x+=n*J,E+=n*T,_+=n*z,A+=n*H,C+=n*q,P+=n*Q,D+=n*ie,O+=n*re,$+=n*ee,j+=n*he,F+=n*ne,U+=n*se,n=t[5],h+=n*B,m+=n*k,g+=n*v,x+=n*L,E+=n*J,_+=n*T,A+=n*z,C+=n*H,P+=n*q,D+=n*Q,O+=n*ie,$+=n*re,j+=n*ee,F+=n*he,U+=n*ne,W+=n*se,n=t[6],m+=n*B,g+=n*k,x+=n*v,E+=n*L,_+=n*J,A+=n*T,C+=n*z,P+=n*H,D+=n*q,O+=n*Q,$+=n*ie,j+=n*re,F+=n*ee,U+=n*he,W+=n*ne,X+=n*se,n=t[7],g+=n*B,x+=n*k,E+=n*v,_+=n*L,A+=n*J,C+=n*T,P+=n*z,D+=n*H,O+=n*q,$+=n*Q,j+=n*ie,F+=n*re,U+=n*ee,W+=n*he,X+=n*ne,G+=n*se,n=t[8],x+=n*B,E+=n*k,_+=n*v,A+=n*L,C+=n*J,P+=n*T,D+=n*z,O+=n*H,$+=n*q,j+=n*Q,F+=n*ie,U+=n*re,W+=n*ee,X+=n*he,G+=n*ne,Y+=n*se,n=t[9],E+=n*B,_+=n*k,A+=n*v,C+=n*L,P+=n*J,D+=n*T,O+=n*z,$+=n*H,j+=n*q,F+=n*Q,U+=n*ie,W+=n*re,X+=n*ee,G+=n*he,Y+=n*ne,M+=n*se,n=t[10],_+=n*B,A+=n*k,C+=n*v,P+=n*L,D+=n*J,O+=n*T,$+=n*z,j+=n*H,F+=n*q,U+=n*Q,W+=n*ie,X+=n*re,G+=n*ee,Y+=n*he,M+=n*ne,p+=n*se,n=t[11],A+=n*B,C+=n*k,P+=n*v,D+=n*L,O+=n*J,$+=n*T,j+=n*z,F+=n*H,U+=n*q,W+=n*Q,X+=n*ie,G+=n*re,Y+=n*ee,M+=n*he,p+=n*ne,b+=n*se,n=t[12],C+=n*B,P+=n*k,D+=n*v,O+=n*L,$+=n*J,j+=n*T,F+=n*z,U+=n*H,W+=n*q,X+=n*Q,G+=n*ie,Y+=n*re,M+=n*ee,p+=n*he,b+=n*ne,I+=n*se,n=t[13],P+=n*B,D+=n*k,O+=n*v,$+=n*L,j+=n*J,F+=n*T,U+=n*z,W+=n*H,X+=n*q,G+=n*Q,Y+=n*ie,M+=n*re,p+=n*ee,b+=n*he,I+=n*ne,R+=n*se,n=t[14],D+=n*B,O+=n*k,$+=n*v,j+=n*L,F+=n*J,U+=n*T,W+=n*z,X+=n*H,G+=n*q,Y+=n*Q,M+=n*ie,p+=n*re,b+=n*ee,I+=n*he,R+=n*ne,N+=n*se,n=t[15],O+=n*B,$+=n*k,j+=n*v,F+=n*L,U+=n*J,W+=n*T,X+=n*z,G+=n*H,Y+=n*q,M+=n*Q,p+=n*ie,b+=n*re,I+=n*ee,R+=n*he,N+=n*ne,V+=n*se,o+=38*$,s+=38*j,a+=38*F,l+=38*U,u+=38*W,h+=38*X,m+=38*G,g+=38*Y,x+=38*M,E+=38*p,_+=38*b,A+=38*I,C+=38*R,P+=38*N,D+=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=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=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=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=A+i+65535,i=Math.floor(n/65536),A=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=O+i+65535,i=Math.floor(n/65536),O=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=l,e[4]=u,e[5]=h,e[6]=m,e[7]=g,e[8]=x,e[9]=E,e[10]=_,e[11]=A,e[12]=C,e[13]=P,e[14]=D,e[15]=O}function Rf(e,t){Fi(e,t,t)}function yK(e,t){let r=ri();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Rf(r,r),n!==2&&n!==4&&Fi(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function rb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=ri(),o=ri(),s=ri(),a=ri(),l=ri(),u=ri();for(let x=0;x<31;x++)r[x]=e[x];r[31]=e[31]&127|64,r[0]&=248,gK(n,t);for(let x=0;x<16;x++)o[x]=n[x];i[0]=a[0]=1;for(let x=254;x>=0;--x){let E=r[x>>>3]>>>(x&7)&1;If(i,o,E),If(s,a,E),cm(l,i,s),fm(i,i,s),cm(s,o,a),fm(o,o,a),Rf(a,l),Rf(u,i),Fi(i,s,i),Fi(s,o,l),cm(l,i,s),fm(i,i,s),Rf(o,i),fm(s,a,u),Fi(i,s,pK),cm(i,i,a),Fi(s,s,i),Fi(i,a,u),Fi(a,o,n),Rf(o,l),If(i,o,E),If(s,a,E)}for(let x=0;x<16;x++)n[x+16]=i[x],n[x+32]=s[x],n[x+48]=o[x],n[x+64]=a[x];let h=n.subarray(32),m=n.subarray(16);yK(h,h),Fi(m,m,h);let g=new Uint8Array(32);return mK(g,m),g}Ot.scalarMult=rb;function hR(e){return rb(e,dR)}Ot.scalarMultBase=hR;function pR(e){if(e.length!==Ot.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Ot.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:hR(t),secretKey:t}}Ot.generateKeyPairFromSeed=pR;function vK(e){let t=(0,dK.randomBytes)(32,e),r=pR(t);return(0,hK.wipe)(t),r}Ot.generateKeyPair=vK;function wK(e,t,r=!1){if(e.length!==Ot.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Ot.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=rb(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}Ot.sharedKey=wK});var dm=te($e=>{"use strict";c();d();f();Object.defineProperty($e,"__esModule",{value:!0});$e.getLocalStorage=$e.getLocalStorageOrThrow=$e.getCrypto=$e.getCryptoOrThrow=$e.getLocation=$e.getLocationOrThrow=$e.getNavigator=$e.getNavigatorOrThrow=$e.getDocument=$e.getDocumentOrThrow=$e.getFromWindowOrThrow=$e.getFromWindow=void 0;function ta(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}$e.getFromWindow=ta;function pu(e){let t=ta(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}$e.getFromWindowOrThrow=pu;function OK(){return pu("document")}$e.getDocumentOrThrow=OK;function MK(){return ta("document")}$e.getDocument=MK;function NK(){return pu("navigator")}$e.getNavigatorOrThrow=NK;function kK(){return ta("navigator")}$e.getNavigator=kK;function LK(){return pu("location")}$e.getLocationOrThrow=LK;function FK(){return ta("location")}$e.getLocation=FK;function $K(){return pu("crypto")}$e.getCryptoOrThrow=$K;function UK(){return ta("crypto")}$e.getCrypto=UK;function VK(){return pu("localStorage")}$e.getLocalStorageOrThrow=VK;function BK(){return ta("localStorage")}$e.getLocalStorage=BK});var ib=te(hm=>{"use strict";c();d();f();Object.defineProperty(hm,"__esModule",{value:!0});hm.getWindowMetadata=void 0;var xR=dm();function jK(){let e,t;try{e=xR.getDocumentOrThrow(),t=xR.getLocationOrThrow()}catch(m){return null}function r(){let m=e.getElementsByTagName("link"),g=[];for(let x=0;x<m.length;x++){let E=m[x],_=E.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let A=E.getAttribute("href");if(A)if(A.toLowerCase().indexOf("https:")===-1&&A.toLowerCase().indexOf("http:")===-1&&A.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(A.indexOf("/")===0)C+=A;else{let P=t.pathname.split("/");P.pop(),C+=P.join("/")+"/"+A}g.push(C)}else if(A.indexOf("//")===0){let C=t.protocol+A;g.push(C)}else g.push(A)}}return g}function n(...m){let g=e.getElementsByTagName("meta");for(let x=0;x<g.length;x++){let E=g[x],_=["itemprop","property","name"].map(A=>E.getAttribute(A)).filter(A=>A?m.includes(A):!1);if(_.length&&_){let A=E.getAttribute("content");if(A)return A}}return""}function i(){let m=n("name","og:site_name","og:title","twitter:title");return m||(m=e.title),m}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),l=t.origin,u=r();return{description:a,url:l,icons:u,name:s}}hm.getWindowMetadata=jK});var ER=te((x0e,bR)=>{"use strict";c();d();f();bR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var DR=te((b0e,TR)=>{"use strict";c();d();f();var CR="%[a-f0-9]{2}",_R=new RegExp("("+CR+")|([^%]+?)","gi"),SR=new RegExp("("+CR+")+","gi");function ob(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([],ob(r),ob(n))}function zK(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(_R)||[],r=1;r<t.length;r++)e=ob(t,r).join(""),t=e.match(_R)||[];return e}}function HK(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=SR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=zK(r[0]);n!==r[0]&&(t[r[0]]=n)}r=SR.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}TR.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 HK(e)}}});var IR=te((E0e,PR)=>{"use strict";c();d();f();PR.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 AR=te((_0e,RR)=>{"use strict";c();d();f();RR.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 ab=te(Vr=>{"use strict";c();d();f();var KK=ER(),qK=DR(),MR=IR(),WK=AR(),GK=e=>e==null,sb=Symbol("encodeFragmentIdentifier");function YK(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 XK(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&&$i(n,e).includes(e.arrayFormatSeparator);n=s?$i(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(l=>$i(l,e)):n===null?n:$i(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&$i(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>$i(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 NR(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?KK(e):encodeURIComponent(e):e}function $i(e,t){return t.decode?qK(e):e}function kR(e){return Array.isArray(e)?e.sort():typeof e=="object"?kR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function LR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function JK(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function FR(e){e=LR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function OR(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 $R(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),NR(t.arrayFormatSeparator);let r=XK(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]=MR(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:$i(s,t),r($i(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]=OR(o[s],t);else n[i]=OR(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]=kR(s):i[o]=s,i},Object.create(null))}Vr.extract=FR;Vr.parse=$R;Vr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),NR(t.arrayFormatSeparator);let r=s=>t.skipNull&&GK(e[s])||t.skipEmptyString&&e[s]==="",n=YK(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("&")};Vr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=MR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:$R(FR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:$i(n,t)}:{})};Vr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[sb]:!0},t);let r=LR(e.url).split("?")[0]||"",n=Vr.extract(e.url),i=Vr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Vr.stringify(o,t);s&&(s=`?${s}`);let a=JK(e.url);return e.fragmentIdentifier&&(a=`#${t[sb]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Vr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[sb]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Vr.parseUrl(e,r);return Vr.stringifyUrl({url:n,query:WK(i,t),fragmentIdentifier:o},r)};Vr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Vr.pick(e,n,r)}});var LA=te(Vo=>{"use strict";c();d();f();Object.defineProperty(Vo,"__esModule",{value:!0});Vo.isBrowserCryptoAvailable=Vo.getSubtleCrypto=Vo.getBrowerCrypto=void 0;function Db(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Vo.getBrowerCrypto=Db;function kA(){let e=Db();return e.subtle||e.webkitSubtle}Vo.getSubtleCrypto=kA;function Rq(){return!!Db()&&!!kA()}Vo.isBrowserCryptoAvailable=Rq});var UA=te(Bo=>{"use strict";c();d();f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.isBrowser=Bo.isNode=Bo.isReactNative=void 0;function FA(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Bo.isReactNative=FA;function $A(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Bo.isNode=$A;function Aq(){return!FA()&&!$A()}Bo.isBrowser=Aq});var Pb=te(Tm=>{"use strict";c();d();f();Object.defineProperty(Tm,"__esModule",{value:!0});var VA=Zr();VA.__exportStar(LA(),Tm);VA.__exportStar(UA(),Tm)});var WA=te((kme,qA)=>{"use strict";c();d();f();qA.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var OO=te((Uf,bu)=>{c();d();f();var zq=200,Kb="__lodash_hash_undefined__",Um=1,uO=2,cO=9007199254740991,Om="[object Arguments]",$b="[object Array]",Hq="[object AsyncFunction]",fO="[object Boolean]",dO="[object Date]",hO="[object Error]",pO="[object Function]",Kq="[object GeneratorFunction]",Mm="[object Map]",mO="[object Number]",qq="[object Null]",xu="[object Object]",QA="[object Promise]",Wq="[object Proxy]",gO="[object RegExp]",Nm="[object Set]",yO="[object String]",Gq="[object Symbol]",Yq="[object Undefined]",Ub="[object WeakMap]",vO="[object ArrayBuffer]",km="[object DataView]",Xq="[object Float32Array]",Jq="[object Float64Array]",Qq="[object Int8Array]",Zq="[object Int16Array]",eW="[object Int32Array]",tW="[object Uint8Array]",rW="[object Uint8ClampedArray]",nW="[object Uint16Array]",iW="[object Uint32Array]",oW=/[\\^$.*+?()[\]{}|]/g,sW=/^\[object .+?Constructor\]$/,aW=/^(?:0|[1-9]\d*)$/,wt={};wt[Xq]=wt[Jq]=wt[Qq]=wt[Zq]=wt[eW]=wt[tW]=wt[rW]=wt[nW]=wt[iW]=!0;wt[Om]=wt[$b]=wt[vO]=wt[fO]=wt[km]=wt[dO]=wt[hO]=wt[pO]=wt[Mm]=wt[mO]=wt[xu]=wt[gO]=wt[Nm]=wt[yO]=wt[Ub]=!1;var wO=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,lW=typeof self=="object"&&self&&self.Object===Object&&self,ji=wO||lW||Function("return this")(),xO=typeof Uf=="object"&&Uf&&!Uf.nodeType&&Uf,ZA=xO&&typeof bu=="object"&&bu&&!bu.nodeType&&bu,bO=ZA&&ZA.exports===xO,kb=bO&&wO.process,eO=function(){try{return kb&&kb.binding&&kb.binding("util")}catch(e){}}(),tO=eO&&eO.isTypedArray;function uW(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 cW(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function fW(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 dW(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function hW(e){return function(t){return e(t)}}function pW(e,t){return e.has(t)}function mW(e,t){return e==null?void 0:e[t]}function gW(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function yW(e,t){return function(r){return e(t(r))}}function vW(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var wW=Array.prototype,xW=Function.prototype,Vm=Object.prototype,Lb=ji["__core-js_shared__"],EO=xW.toString,oi=Vm.hasOwnProperty,rO=function(){var e=/[^.]+$/.exec(Lb&&Lb.keys&&Lb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_O=Vm.toString,bW=RegExp("^"+EO.call(oi).replace(oW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nO=bO?ji.Buffer:void 0,Lm=ji.Symbol,iO=ji.Uint8Array,SO=Vm.propertyIsEnumerable,EW=wW.splice,oa=Lm?Lm.toStringTag:void 0,oO=Object.getOwnPropertySymbols,_W=nO?nO.isBuffer:void 0,SW=yW(Object.keys,Object),Vb=Eu(ji,"DataView"),Vf=Eu(ji,"Map"),Bb=Eu(ji,"Promise"),jb=Eu(ji,"Set"),zb=Eu(ji,"WeakMap"),Bf=Eu(Object,"create"),CW=la(Vb),TW=la(Vf),DW=la(Bb),PW=la(jb),IW=la(zb),sO=Lm?Lm.prototype:void 0,Fb=sO?sO.valueOf:void 0;function sa(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 RW(){this.__data__=Bf?Bf(null):{},this.size=0}function AW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function OW(e){var t=this.__data__;if(Bf){var r=t[e];return r===Kb?void 0:r}return oi.call(t,e)?t[e]:void 0}function MW(e){var t=this.__data__;return Bf?t[e]!==void 0:oi.call(t,e)}function NW(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bf&&t===void 0?Kb:t,this}sa.prototype.clear=RW;sa.prototype.delete=AW;sa.prototype.get=OW;sa.prototype.has=MW;sa.prototype.set=NW;function zi(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 kW(){this.__data__=[],this.size=0}function LW(e){var t=this.__data__,r=Bm(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():EW.call(t,r,1),--this.size,!0}function FW(e){var t=this.__data__,r=Bm(t,e);return r<0?void 0:t[r][1]}function $W(e){return Bm(this.__data__,e)>-1}function UW(e,t){var r=this.__data__,n=Bm(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}zi.prototype.clear=kW;zi.prototype.delete=LW;zi.prototype.get=FW;zi.prototype.has=$W;zi.prototype.set=UW;function aa(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 VW(){this.size=0,this.__data__={hash:new sa,map:new(Vf||zi),string:new sa}}function BW(e){var t=jm(this,e).delete(e);return this.size-=t?1:0,t}function jW(e){return jm(this,e).get(e)}function zW(e){return jm(this,e).has(e)}function HW(e,t){var r=jm(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}aa.prototype.clear=VW;aa.prototype.delete=BW;aa.prototype.get=jW;aa.prototype.has=zW;aa.prototype.set=HW;function Fm(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new aa;++t<r;)this.add(e[t])}function KW(e){return this.__data__.set(e,Kb),this}function qW(e){return this.__data__.has(e)}Fm.prototype.add=Fm.prototype.push=KW;Fm.prototype.has=qW;function Ho(e){var t=this.__data__=new zi(e);this.size=t.size}function WW(){this.__data__=new zi,this.size=0}function GW(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function YW(e){return this.__data__.get(e)}function XW(e){return this.__data__.has(e)}function JW(e,t){var r=this.__data__;if(r instanceof zi){var n=r.__data__;if(!Vf||n.length<zq-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new aa(n)}return r.set(e,t),this.size=r.size,this}Ho.prototype.clear=WW;Ho.prototype.delete=GW;Ho.prototype.get=YW;Ho.prototype.has=XW;Ho.prototype.set=JW;function QW(e,t){var r=$m(e),n=!r&&hG(e),i=!r&&!n&&Hb(e),o=!r&&!n&&!i&&AO(e),s=r||n||i||o,a=s?dW(e.length,String):[],l=a.length;for(var u in e)(t||oi.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lG(u,l)))&&a.push(u);return a}function Bm(e,t){for(var r=e.length;r--;)if(DO(e[r][0],t))return r;return-1}function ZW(e,t,r){var n=t(e);return $m(e)?n:cW(n,r(e))}function zf(e){return e==null?e===void 0?Yq:qq:oa&&oa in Object(e)?sG(e):dG(e)}function aO(e){return jf(e)&&zf(e)==Om}function CO(e,t,r,n,i){return e===t?!0:e==null||t==null||!jf(e)&&!jf(t)?e!==e&&t!==t:eG(e,t,r,n,CO,i)}function eG(e,t,r,n,i,o){var s=$m(e),a=$m(t),l=s?$b:zo(e),u=a?$b:zo(t);l=l==Om?xu:l,u=u==Om?xu:u;var h=l==xu,m=u==xu,g=l==u;if(g&&Hb(e)){if(!Hb(t))return!1;s=!0,h=!1}if(g&&!h)return o||(o=new Ho),s||AO(e)?TO(e,t,r,n,i,o):iG(e,t,l,r,n,i,o);if(!(r&Um)){var x=h&&oi.call(e,"__wrapped__"),E=m&&oi.call(t,"__wrapped__");if(x||E){var _=x?e.value():e,A=E?t.value():t;return o||(o=new Ho),i(_,A,r,n,o)}}return g?(o||(o=new Ho),oG(e,t,r,n,i,o)):!1}function tG(e){if(!RO(e)||cG(e))return!1;var t=PO(e)?bW:sW;return t.test(la(e))}function rG(e){return jf(e)&&IO(e.length)&&!!wt[zf(e)]}function nG(e){if(!fG(e))return SW(e);var t=[];for(var r in Object(e))oi.call(e,r)&&r!="constructor"&&t.push(r);return t}function TO(e,t,r,n,i,o){var s=r&Um,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var h=-1,m=!0,g=r&uO?new Fm:void 0;for(o.set(e,t),o.set(t,e);++h<a;){var x=e[h],E=t[h];if(n)var _=s?n(E,x,h,t,e,o):n(x,E,h,e,t,o);if(_!==void 0){if(_)continue;m=!1;break}if(g){if(!fW(t,function(A,C){if(!pW(g,C)&&(x===A||i(x,A,r,n,o)))return g.push(C)})){m=!1;break}}else if(!(x===E||i(x,E,r,n,o))){m=!1;break}}return o.delete(e),o.delete(t),m}function iG(e,t,r,n,i,o,s){switch(r){case km:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vO:return!(e.byteLength!=t.byteLength||!o(new iO(e),new iO(t)));case fO:case dO:case mO:return DO(+e,+t);case hO:return e.name==t.name&&e.message==t.message;case gO:case yO:return e==t+"";case Mm:var a=gW;case Nm:var l=n&Um;if(a||(a=vW),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=uO,s.set(e,t);var h=TO(a(e),a(t),n,i,o,s);return s.delete(e),h;case Gq:if(Fb)return Fb.call(e)==Fb.call(t)}return!1}function oG(e,t,r,n,i,o){var s=r&Um,a=lO(e),l=a.length,u=lO(t),h=u.length;if(l!=h&&!s)return!1;for(var m=l;m--;){var g=a[m];if(!(s?g in t:oi.call(t,g)))return!1}var x=o.get(e);if(x&&o.get(t))return x==t;var E=!0;o.set(e,t),o.set(t,e);for(var _=s;++m<l;){g=a[m];var A=e[g],C=t[g];if(n)var P=s?n(C,A,g,t,e,o):n(A,C,g,e,t,o);if(!(P===void 0?A===C||i(A,C,r,n,o):P)){E=!1;break}_||(_=g=="constructor")}if(E&&!_){var D=e.constructor,O=t.constructor;D!=O&&"constructor"in e&&"constructor"in t&&!(typeof D=="function"&&D instanceof D&&typeof O=="function"&&O instanceof O)&&(E=!1)}return o.delete(e),o.delete(t),E}function lO(e){return ZW(e,gG,aG)}function jm(e,t){var r=e.__data__;return uG(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Eu(e,t){var r=mW(e,t);return tG(r)?r:void 0}function sG(e){var t=oi.call(e,oa),r=e[oa];try{e[oa]=void 0;var n=!0}catch(o){}var i=_O.call(e);return n&&(t?e[oa]=r:delete e[oa]),i}var aG=oO?function(e){return e==null?[]:(e=Object(e),uW(oO(e),function(t){return SO.call(e,t)}))}:yG,zo=zf;(Vb&&zo(new Vb(new ArrayBuffer(1)))!=km||Vf&&zo(new Vf)!=Mm||Bb&&zo(Bb.resolve())!=QA||jb&&zo(new jb)!=Nm||zb&&zo(new zb)!=Ub)&&(zo=function(e){var t=zf(e),r=t==xu?e.constructor:void 0,n=r?la(r):"";if(n)switch(n){case CW:return km;case TW:return Mm;case DW:return QA;case PW:return Nm;case IW:return Ub}return t});function lG(e,t){return t=t==null?cO:t,!!t&&(typeof e=="number"||aW.test(e))&&e>-1&&e%1==0&&e<t}function uG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cG(e){return!!rO&&rO in e}function fG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vm;return e===r}function dG(e){return _O.call(e)}function la(e){if(e!=null){try{return EO.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function DO(e,t){return e===t||e!==e&&t!==t}var hG=aO(function(){return arguments}())?aO:function(e){return jf(e)&&oi.call(e,"callee")&&!SO.call(e,"callee")},$m=Array.isArray;function pG(e){return e!=null&&IO(e.length)&&!PO(e)}var Hb=_W||vG;function mG(e,t){return CO(e,t)}function PO(e){if(!RO(e))return!1;var t=zf(e);return t==pO||t==Kq||t==Hq||t==Wq}function IO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cO}function RO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function jf(e){return e!=null&&typeof e=="object"}var AO=tO?hW(tO):rG;function gG(e){return pG(e)?QW(e):nG(e)}function yG(){return[]}function vG(){return!1}bu.exports=mG});var bM=te((nge,Gm)=>{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 Gm=="object"&&Gm.exports,a=typeof define=="function"&&define.amd,l=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),h=[31,7936,2031616,520093696],m=[4,1024,262144,67108864],g=[1,256,65536,16777216],x=[6,1536,393216,100663296],E=[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],A=[224,256,384,512],C=[128,256],P=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),l&&(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 O=function(T,z,H){return function(q){return new v(T,z,T).update(q)[H]()}},$=function(T,z,H){return function(q,Q){return new v(T,z,Q).update(q)[H]()}},j=function(T,z,H){return function(q,Q,ie,re){return p["cshake"+T].update(q,Q,ie,re)[H]()}},F=function(T,z,H){return function(q,Q,ie,re){return p["kmac"+T].update(q,Q,ie,re)[H]()}},U=function(T,z,H,q){for(var Q=0;Q<P.length;++Q){var ie=P[Q];T[ie]=z(H,q,ie)}return T},W=function(T,z){var H=O(T,z,"hex");return H.create=function(){return new v(T,z,T)},H.update=function(q){return H.create().update(q)},U(H,O,T,z)},X=function(T,z){var H=$(T,z,"hex");return H.create=function(q){return new v(T,z,q)},H.update=function(q,Q){return H.create(Q).update(q)},U(H,$,T,z)},G=function(T,z){var H=D[T],q=j(T,z,"hex");return q.create=function(Q,ie,re){return!ie&&!re?p["shake"+T].create(Q):new v(T,z,Q).bytepad([ie,re],H)},q.update=function(Q,ie,re,ee){return q.create(ie,re,ee).update(Q)},U(q,j,T,z)},Y=function(T,z){var H=D[T],q=F(T,z,"hex");return q.create=function(Q,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],H).bytepad([Q],H)},q.update=function(Q,ie,re,ee){return q.create(Q,re,ee).update(ie)},U(q,F,T,z)},M=[{name:"keccak",padding:g,bits:A,createMethod:W},{name:"sha3",padding:x,bits:A,createMethod:W},{name:"shake",padding:h,bits:C,createMethod:X},{name:"cshake",padding:m,bits:C,createMethod:G},{name:"kmac",padding:m,bits:C,createMethod:Y}],p={},b=[],I=0;I<M.length;++I)for(var R=M[I],N=R.bits,V=0;V<N.length;++V){var B=R.name+"_"+N[V];if(b.push(B),p[B]=R.createMethod(N[V],R.padding),R.name!=="sha3"){var k=R.name+N[V];b.push(k),p[k]=p[B]}}function v(T,z,H){this.blocks=[],this.s=[],this.padding=z,this.outputBits=H,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=H>>5,this.extraBytes=(H&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}v.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,H=typeof T;if(H!=="string"){if(H==="object"){if(T===null)throw new Error(e);if(l&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!l||!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,ee=0,he=this.s,ne,se;ee<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;ee<ie&&ne<Q;++ee)q[ne>>2]|=T[ee]<<E[ne++&3];else for(ne=this.start;ee<ie&&ne<Q;++ee)se=T.charCodeAt(ee),se<128?q[ne>>2]|=se<<E[ne++&3]:se<2048?(q[ne>>2]|=(192|se>>6)<<E[ne++&3],q[ne>>2]|=(128|se&63)<<E[ne++&3]):se<55296||se>=57344?(q[ne>>2]|=(224|se>>12)<<E[ne++&3],q[ne>>2]|=(128|se>>6&63)<<E[ne++&3],q[ne>>2]|=(128|se&63)<<E[ne++&3]):(se=65536+((se&1023)<<10|T.charCodeAt(++ee)&1023),q[ne>>2]|=(240|se>>18)<<E[ne++&3],q[ne>>2]|=(128|se>>12&63)<<E[ne++&3],q[ne>>2]|=(128|se>>6&63)<<E[ne++&3],q[ne>>2]|=(128|se&63)<<E[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];J(he),this.reset=!0}else this.start=ne}return this},v.prototype.encode=function(T,z){var H=T&255,q=1,Q=[H];for(T=T>>8,H=T&255;H>0;)Q.unshift(H),T=T>>8,H=T&255,++q;return z?Q.push(q):Q.unshift(q),this.update(Q),Q.length},v.prototype.encodeString=function(T){var z,H=typeof T;if(H!=="string"){if(H==="object"){if(T===null)throw new Error(e);if(l&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!l||!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},v.prototype.bytepad=function(T,z){for(var H=this.encode(z),q=0;q<T.length;++q)H+=this.encodeString(T[q]);var Q=z-H%z,ie=[];return ie.length=Q,this.update(ie),this},v.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,H=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[H],z=1;z<H+1;++z)T[z]=0;for(T[H-1]|=2147483648,z=0;z<H;++z)q[z]^=T[z];J(q)}},v.prototype.toString=v.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re="",ee;ie<H;){for(Q=0;Q<T&&ie<H;++Q,++ie)ee=z[Q],re+=u[ee>>4&15]+u[ee&15]+u[ee>>12&15]+u[ee>>8&15]+u[ee>>20&15]+u[ee>>16&15]+u[ee>>28&15]+u[ee>>24&15];ie%T===0&&(J(z),Q=0)}return q&&(ee=z[Q],re+=u[ee>>4&15]+u[ee&15],q>1&&(re+=u[ee>>12&15]+u[ee>>8&15]),q>2&&(re+=u[ee>>20&15]+u[ee>>16&15])),re},v.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=this.outputBits>>3,ee;q?ee=new ArrayBuffer(H+1<<2):ee=new ArrayBuffer(re);for(var he=new Uint32Array(ee);ie<H;){for(Q=0;Q<T&&ie<H;++Q,++ie)he[ie]=z[Q];ie%T===0&&J(z)}return q&&(he[Q]=z[Q],ee=ee.slice(0,re)),ee},v.prototype.buffer=v.prototype.arrayBuffer,v.prototype.digest=v.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=[],ee,he;ie<H;){for(Q=0;Q<T&&ie<H;++Q,++ie)ee=ie<<2,he=z[Q],re[ee]=he&255,re[ee+1]=he>>8&255,re[ee+2]=he>>16&255,re[ee+3]=he>>24&255;ie%T===0&&J(z)}return q&&(ee=ie<<2,he=z[Q],re[ee]=he&255,q>1&&(re[ee+1]=he>>8&255),q>2&&(re[ee+2]=he>>16&255)),re};function L(T,z,H){v.call(this,T,z,H)}L.prototype=new v,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),v.prototype.finalize.call(this)};var J=function(T){var z,H,q,Q,ie,re,ee,he,ne,se,Wo,Ue,Ve,Go,Be,je,Yo,ze,He,Xo,Ke,qe,Jo,We,Ge,Qo,Ye,Xe,Zo,Je,Qe,es,Ze,et,ts,tt,rt,rs,nt,it,ns,ot,st,is,at,lt,os,ut,ct,ss,ft,dt,as,ht,pt,ls,mt,gt,Wi,Gi,Yi,Xi,Ji;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],ee=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],se=T[6]^T[16]^T[26]^T[36]^T[46],Wo=T[7]^T[17]^T[27]^T[37]^T[47],Ue=T[8]^T[18]^T[28]^T[38]^T[48],Ve=T[9]^T[19]^T[29]^T[39]^T[49],z=Ue^(re<<1|ee>>>31),H=Ve^(ee<<1|re>>>31),T[0]^=z,T[1]^=H,T[10]^=z,T[11]^=H,T[20]^=z,T[21]^=H,T[30]^=z,T[31]^=H,T[40]^=z,T[41]^=H,z=Q^(he<<1|ne>>>31),H=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=H,T[12]^=z,T[13]^=H,T[22]^=z,T[23]^=H,T[32]^=z,T[33]^=H,T[42]^=z,T[43]^=H,z=re^(se<<1|Wo>>>31),H=ee^(Wo<<1|se>>>31),T[4]^=z,T[5]^=H,T[14]^=z,T[15]^=H,T[24]^=z,T[25]^=H,T[34]^=z,T[35]^=H,T[44]^=z,T[45]^=H,z=he^(Ue<<1|Ve>>>31),H=ne^(Ve<<1|Ue>>>31),T[6]^=z,T[7]^=H,T[16]^=z,T[17]^=H,T[26]^=z,T[27]^=H,T[36]^=z,T[37]^=H,T[46]^=z,T[47]^=H,z=se^(Q<<1|ie>>>31),H=Wo^(ie<<1|Q>>>31),T[8]^=z,T[9]^=H,T[18]^=z,T[19]^=H,T[28]^=z,T[29]^=H,T[38]^=z,T[39]^=H,T[48]^=z,T[49]^=H,Go=T[0],Be=T[1],lt=T[11]<<4|T[10]>>>28,os=T[10]<<4|T[11]>>>28,Xe=T[20]<<3|T[21]>>>29,Zo=T[21]<<3|T[20]>>>29,Gi=T[31]<<9|T[30]>>>23,Yi=T[30]<<9|T[31]>>>23,ot=T[40]<<18|T[41]>>>14,st=T[41]<<18|T[40]>>>14,et=T[2]<<1|T[3]>>>31,ts=T[3]<<1|T[2]>>>31,je=T[13]<<12|T[12]>>>20,Yo=T[12]<<12|T[13]>>>20,ut=T[22]<<10|T[23]>>>22,ct=T[23]<<10|T[22]>>>22,Je=T[33]<<13|T[32]>>>19,Qe=T[32]<<13|T[33]>>>19,Xi=T[42]<<2|T[43]>>>30,Ji=T[43]<<2|T[42]>>>30,ht=T[5]<<30|T[4]>>>2,pt=T[4]<<30|T[5]>>>2,tt=T[14]<<6|T[15]>>>26,rt=T[15]<<6|T[14]>>>26,ze=T[25]<<11|T[24]>>>21,He=T[24]<<11|T[25]>>>21,ss=T[34]<<15|T[35]>>>17,ft=T[35]<<15|T[34]>>>17,es=T[45]<<29|T[44]>>>3,Ze=T[44]<<29|T[45]>>>3,We=T[6]<<28|T[7]>>>4,Ge=T[7]<<28|T[6]>>>4,ls=T[17]<<23|T[16]>>>9,mt=T[16]<<23|T[17]>>>9,rs=T[26]<<25|T[27]>>>7,nt=T[27]<<25|T[26]>>>7,Xo=T[36]<<21|T[37]>>>11,Ke=T[37]<<21|T[36]>>>11,dt=T[47]<<24|T[46]>>>8,as=T[46]<<24|T[47]>>>8,is=T[8]<<27|T[9]>>>5,at=T[9]<<27|T[8]>>>5,Qo=T[18]<<20|T[19]>>>12,Ye=T[19]<<20|T[18]>>>12,gt=T[29]<<7|T[28]>>>25,Wi=T[28]<<7|T[29]>>>25,it=T[38]<<8|T[39]>>>24,ns=T[39]<<8|T[38]>>>24,qe=T[48]<<14|T[49]>>>18,Jo=T[49]<<14|T[48]>>>18,T[0]=Go^~je&ze,T[1]=Be^~Yo&He,T[10]=We^~Qo&Xe,T[11]=Ge^~Ye&Zo,T[20]=et^~tt&rs,T[21]=ts^~rt&nt,T[30]=is^~lt&ut,T[31]=at^~os&ct,T[40]=ht^~ls>,T[41]=pt^~mt&Wi,T[2]=je^~ze&Xo,T[3]=Yo^~He&Ke,T[12]=Qo^~Xe&Je,T[13]=Ye^~Zo&Qe,T[22]=tt^~rs&it,T[23]=rt^~nt&ns,T[32]=lt^~ut&ss,T[33]=os^~ct&ft,T[42]=ls^~gt&Gi,T[43]=mt^~Wi&Yi,T[4]=ze^~Xo&qe,T[5]=He^~Ke&Jo,T[14]=Xe^~Je&es,T[15]=Zo^~Qe&Ze,T[24]=rs^~it&ot,T[25]=nt^~ns&st,T[34]=ut^~ss&dt,T[35]=ct^~ft&as,T[44]=gt^~Gi&Xi,T[45]=Wi^~Yi&Ji,T[6]=Xo^~qe&Go,T[7]=Ke^~Jo&Be,T[16]=Je^~es&We,T[17]=Qe^~Ze&Ge,T[26]=it^~ot&et,T[27]=ns^~st&ts,T[36]=ss^~dt&is,T[37]=ft^~as&at,T[46]=Gi^~Xi&ht,T[47]=Yi^~Ji&pt,T[8]=qe^~Go&je,T[9]=Jo^~Be&Yo,T[18]=es^~We&Qo,T[19]=Ze^~Ge&Ye,T[28]=ot^~et&tt,T[29]=st^~ts&rt,T[38]=dt^~is<,T[39]=as^~at&os,T[48]=Xi^~ht&ls,T[49]=Ji^~pt&mt,T[0]^=_[q],T[1]^=_[q+1]};if(s)Gm.exports=p;else{for(I=0;I<b.length;++I)n[b[I]]=p[b[I]];a&&define(function(){return p})}})()});var EM=te(()=>{c();d();f()});var SM=te((_M,SE)=>{c();d();f();(function(e,t){"use strict";function r(M,p){if(!M)throw new Error(p||"Assertion failed")}function n(M,p){M.super_=p;var b=function(){};b.prototype=p.prototype,M.prototype=new b,M.prototype.constructor=M}function i(M,p,b){if(i.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&((p==="le"||p==="be")&&(b=p,p=10),this._init(M||0,p||10,b||"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=EM().Buffer}catch(M){}i.isBN=function(p){return p instanceof i?!0:p!==null&&typeof p=="object"&&p.constructor.wordSize===i.wordSize&&Array.isArray(p.words)},i.max=function(p,b){return p.cmp(b)>0?p:b},i.min=function(p,b){return p.cmp(b)<0?p:b},i.prototype._init=function(p,b,I){if(typeof p=="number")return this._initNumber(p,b,I);if(typeof p=="object")return this._initArray(p,b,I);b==="hex"&&(b=16),r(b===(b|0)&&b>=2&&b<=36),p=p.toString().replace(/\s+/g,"");var R=0;p[0]==="-"&&(R++,this.negative=1),R<p.length&&(b===16?this._parseHex(p,R,I):(this._parseBase(p,b,R),I==="le"&&this._initArray(this.toArray(),b,I)))},i.prototype._initNumber=function(p,b,I){p<0&&(this.negative=1,p=-p),p<67108864?(this.words=[p&67108863],this.length=1):p<4503599627370496?(this.words=[p&67108863,p/67108864&67108863],this.length=2):(r(p<9007199254740992),this.words=[p&67108863,p/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),b,I)},i.prototype._initArray=function(p,b,I){if(r(typeof p.length=="number"),p.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(p.length/3),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var N,V,B=0;if(I==="be")for(R=p.length-1,N=0;R>=0;R-=3)V=p[R]|p[R-1]<<8|p[R-2]<<16,this.words[N]|=V<<B&67108863,this.words[N+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);else if(I==="le")for(R=0,N=0;R<p.length;R+=3)V=p[R]|p[R+1]<<8|p[R+2]<<16,this.words[N]|=V<<B&67108863,this.words[N+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,N++);return this._strip()};function s(M,p){var b=M.charCodeAt(p);if(b>=48&&b<=57)return b-48;if(b>=65&&b<=70)return b-55;if(b>=97&&b<=102)return b-87;r(!1,"Invalid character in "+M)}function a(M,p,b){var I=s(M,b);return b-1>=p&&(I|=s(M,b-1)<<4),I}i.prototype._parseHex=function(p,b,I){this.length=Math.ceil((p.length-b)/6),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var N=0,V=0,B;if(I==="be")for(R=p.length-1;R>=b;R-=2)B=a(p,b,R)<<N,this.words[V]|=B&67108863,N>=18?(N-=18,V+=1,this.words[V]|=B>>>26):N+=8;else{var k=p.length-b;for(R=k%2===0?b+1:b;R<p.length;R+=2)B=a(p,b,R)<<N,this.words[V]|=B&67108863,N>=18?(N-=18,V+=1,this.words[V]|=B>>>26):N+=8}this._strip()};function l(M,p,b,I){for(var R=0,N=0,V=Math.min(M.length,b),B=p;B<V;B++){var k=M.charCodeAt(B)-48;R*=I,k>=49?N=k-49+10:k>=17?N=k-17+10:N=k,r(k>=0&&N<I,"Invalid character"),R+=N}return R}i.prototype._parseBase=function(p,b,I){this.words=[0],this.length=1;for(var R=0,N=1;N<=67108863;N*=b)R++;R--,N=N/b|0;for(var V=p.length-I,B=V%R,k=Math.min(V,V-B)+I,v=0,L=I;L<k;L+=R)v=l(p,L,L+R,b),this.imuln(N),this.words[0]+v<67108864?this.words[0]+=v:this._iaddn(v);if(B!==0){var J=1;for(v=l(p,L,p.length,b),L=0;L<B;L++)J*=b;this.imuln(J),this.words[0]+v<67108864?this.words[0]+=v:this._iaddn(v)}this._strip()},i.prototype.copy=function(p){p.words=new Array(this.length);for(var b=0;b<this.length;b++)p.words[b]=this.words[b];p.length=this.length,p.negative=this.negative,p.red=this.red};function u(M,p){M.words=p.words,M.length=p.length,M.negative=p.negative,M.red=p.red}if(i.prototype._move=function(p){u(p,this)},i.prototype.clone=function(){var p=new i(null);return this.copy(p),p},i.prototype._expand=function(p){for(;this.length<p;)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")]=h}catch(M){i.prototype.inspect=h}else i.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m=["","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"],g=[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],x=[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(p,b){p=p||10,b=b|0||1;var I;if(p===16||p==="hex"){I="";for(var R=0,N=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<R|N)&16777215).toString(16);N=B>>>24-R&16777215,R+=2,R>=26&&(R-=26,V--),N!==0||V!==this.length-1?I=m[6-k.length]+k+I:I=k+I}for(N!==0&&(I=N.toString(16)+I);I.length%b!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(p===(p|0)&&p>=2&&p<=36){var v=g[p],L=x[p];I="";var J=this.clone();for(J.negative=0;!J.isZero();){var T=J.modrn(L).toString(p);J=J.idivn(L),J.isZero()?I=T+I:I=m[v-T.length]+T+I}for(this.isZero()&&(I="0"+I);I.length%b!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var p=this.words[0];return this.length===2?p+=this.words[1]*67108864:this.length===3&&this.words[2]===1?p+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-p:p},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(p,b){return this.toArrayLike(o,p,b)}),i.prototype.toArray=function(p,b){return this.toArrayLike(Array,p,b)};var E=function(p,b){return p.allocUnsafe?p.allocUnsafe(b):new p(b)};i.prototype.toArrayLike=function(p,b,I){this._strip();var R=this.byteLength(),N=I||Math.max(1,R);r(R<=N,"byte array longer than desired length"),r(N>0,"Requested array length <= 0");var V=E(p,N),B=b==="le"?"LE":"BE";return this["_toArrayLike"+B](V,R),V},i.prototype._toArrayLikeLE=function(p,b){for(var I=0,R=0,N=0,V=0;N<this.length;N++){var B=this.words[N]<<V|R;p[I++]=B&255,I<p.length&&(p[I++]=B>>8&255),I<p.length&&(p[I++]=B>>16&255),V===6?(I<p.length&&(p[I++]=B>>24&255),R=0,V=0):(R=B>>>24,V+=2)}if(I<p.length)for(p[I++]=R;I<p.length;)p[I++]=0},i.prototype._toArrayLikeBE=function(p,b){for(var I=p.length-1,R=0,N=0,V=0;N<this.length;N++){var B=this.words[N]<<V|R;p[I--]=B&255,I>=0&&(p[I--]=B>>8&255),I>=0&&(p[I--]=B>>16&255),V===6?(I>=0&&(p[I--]=B>>24&255),R=0,V=0):(R=B>>>24,V+=2)}if(I>=0)for(p[I--]=R;I>=0;)p[I--]=0},Math.clz32?i.prototype._countBits=function(p){return 32-Math.clz32(p)}:i.prototype._countBits=function(p){var b=p,I=0;return b>=4096&&(I+=13,b>>>=13),b>=64&&(I+=7,b>>>=7),b>=8&&(I+=4,b>>>=4),b>=2&&(I+=2,b>>>=2),I+b},i.prototype._zeroBits=function(p){if(p===0)return 26;var b=p,I=0;return(b&8191)===0&&(I+=13,b>>>=13),(b&127)===0&&(I+=7,b>>>=7),(b&15)===0&&(I+=4,b>>>=4),(b&3)===0&&(I+=2,b>>>=2),(b&1)===0&&I++,I},i.prototype.bitLength=function(){var p=this.words[this.length-1],b=this._countBits(p);return(this.length-1)*26+b};function _(M){for(var p=new Array(M.bitLength()),b=0;b<p.length;b++){var I=b/26|0,R=b%26;p[b]=M.words[I]>>>R&1}return p}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var p=0,b=0;b<this.length;b++){var I=this._zeroBits(this.words[b]);if(p+=I,I!==26)break}return p},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(p){return this.negative!==0?this.abs().inotn(p).iaddn(1):this.clone()},i.prototype.fromTwos=function(p){return this.testn(p-1)?this.notn(p).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(p){for(;this.length<p.length;)this.words[this.length++]=0;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]|p.words[b];return this._strip()},i.prototype.ior=function(p){return r((this.negative|p.negative)===0),this.iuor(p)},i.prototype.or=function(p){return this.length>p.length?this.clone().ior(p):p.clone().ior(this)},i.prototype.uor=function(p){return this.length>p.length?this.clone().iuor(p):p.clone().iuor(this)},i.prototype.iuand=function(p){var b;this.length>p.length?b=p:b=this;for(var I=0;I<b.length;I++)this.words[I]=this.words[I]&p.words[I];return this.length=b.length,this._strip()},i.prototype.iand=function(p){return r((this.negative|p.negative)===0),this.iuand(p)},i.prototype.and=function(p){return this.length>p.length?this.clone().iand(p):p.clone().iand(this)},i.prototype.uand=function(p){return this.length>p.length?this.clone().iuand(p):p.clone().iuand(this)},i.prototype.iuxor=function(p){var b,I;this.length>p.length?(b=this,I=p):(b=p,I=this);for(var R=0;R<I.length;R++)this.words[R]=b.words[R]^I.words[R];if(this!==b)for(;R<b.length;R++)this.words[R]=b.words[R];return this.length=b.length,this._strip()},i.prototype.ixor=function(p){return r((this.negative|p.negative)===0),this.iuxor(p)},i.prototype.xor=function(p){return this.length>p.length?this.clone().ixor(p):p.clone().ixor(this)},i.prototype.uxor=function(p){return this.length>p.length?this.clone().iuxor(p):p.clone().iuxor(this)},i.prototype.inotn=function(p){r(typeof p=="number"&&p>=0);var b=Math.ceil(p/26)|0,I=p%26;this._expand(b),I>0&&b--;for(var R=0;R<b;R++)this.words[R]=~this.words[R]&67108863;return I>0&&(this.words[R]=~this.words[R]&67108863>>26-I),this._strip()},i.prototype.notn=function(p){return this.clone().inotn(p)},i.prototype.setn=function(p,b){r(typeof p=="number"&&p>=0);var I=p/26|0,R=p%26;return this._expand(I+1),b?this.words[I]=this.words[I]|1<<R:this.words[I]=this.words[I]&~(1<<R),this._strip()},i.prototype.iadd=function(p){var b;if(this.negative!==0&&p.negative===0)return this.negative=0,b=this.isub(p),this.negative^=1,this._normSign();if(this.negative===0&&p.negative!==0)return p.negative=0,b=this.isub(p),p.negative=1,b._normSign();var I,R;this.length>p.length?(I=this,R=p):(I=p,R=this);for(var N=0,V=0;V<R.length;V++)b=(I.words[V]|0)+(R.words[V]|0)+N,this.words[V]=b&67108863,N=b>>>26;for(;N!==0&&V<I.length;V++)b=(I.words[V]|0)+N,this.words[V]=b&67108863,N=b>>>26;if(this.length=I.length,N!==0)this.words[this.length]=N,this.length++;else if(I!==this)for(;V<I.length;V++)this.words[V]=I.words[V];return this},i.prototype.add=function(p){var b;return p.negative!==0&&this.negative===0?(p.negative=0,b=this.sub(p),p.negative^=1,b):p.negative===0&&this.negative!==0?(this.negative=0,b=p.sub(this),this.negative=1,b):this.length>p.length?this.clone().iadd(p):p.clone().iadd(this)},i.prototype.isub=function(p){if(p.negative!==0){p.negative=0;var b=this.iadd(p);return p.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(p),this.negative=1,this._normSign();var I=this.cmp(p);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var R,N;I>0?(R=this,N=p):(R=p,N=this);for(var V=0,B=0;B<N.length;B++)b=(R.words[B]|0)-(N.words[B]|0)+V,V=b>>26,this.words[B]=b&67108863;for(;V!==0&&B<R.length;B++)b=(R.words[B]|0)+V,V=b>>26,this.words[B]=b&67108863;if(V===0&&B<R.length&&R!==this)for(;B<R.length;B++)this.words[B]=R.words[B];return this.length=Math.max(this.length,B),R!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(p){return this.clone().isub(p)};function A(M,p,b){b.negative=p.negative^M.negative;var I=M.length+p.length|0;b.length=I,I=I-1|0;var R=M.words[0]|0,N=p.words[0]|0,V=R*N,B=V&67108863,k=V/67108864|0;b.words[0]=B;for(var v=1;v<I;v++){for(var L=k>>>26,J=k&67108863,T=Math.min(v,p.length-1),z=Math.max(0,v-M.length+1);z<=T;z++){var H=v-z|0;R=M.words[H]|0,N=p.words[z]|0,V=R*N+J,L+=V/67108864|0,J=V&67108863}b.words[v]=J|0,k=L|0}return k!==0?b.words[v]=k|0:b.length--,b._strip()}var C=function(p,b,I){var R=p.words,N=b.words,V=I.words,B=0,k,v,L,J=R[0]|0,T=J&8191,z=J>>>13,H=R[1]|0,q=H&8191,Q=H>>>13,ie=R[2]|0,re=ie&8191,ee=ie>>>13,he=R[3]|0,ne=he&8191,se=he>>>13,Wo=R[4]|0,Ue=Wo&8191,Ve=Wo>>>13,Go=R[5]|0,Be=Go&8191,je=Go>>>13,Yo=R[6]|0,ze=Yo&8191,He=Yo>>>13,Xo=R[7]|0,Ke=Xo&8191,qe=Xo>>>13,Jo=R[8]|0,We=Jo&8191,Ge=Jo>>>13,Qo=R[9]|0,Ye=Qo&8191,Xe=Qo>>>13,Zo=N[0]|0,Je=Zo&8191,Qe=Zo>>>13,es=N[1]|0,Ze=es&8191,et=es>>>13,ts=N[2]|0,tt=ts&8191,rt=ts>>>13,rs=N[3]|0,nt=rs&8191,it=rs>>>13,ns=N[4]|0,ot=ns&8191,st=ns>>>13,is=N[5]|0,at=is&8191,lt=is>>>13,os=N[6]|0,ut=os&8191,ct=os>>>13,ss=N[7]|0,ft=ss&8191,dt=ss>>>13,as=N[8]|0,ht=as&8191,pt=as>>>13,ls=N[9]|0,mt=ls&8191,gt=ls>>>13;I.negative=p.negative^b.negative,I.length=19,k=Math.imul(T,Je),v=Math.imul(T,Qe),v=v+Math.imul(z,Je)|0,L=Math.imul(z,Qe);var Wi=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,k=Math.imul(q,Je),v=Math.imul(q,Qe),v=v+Math.imul(Q,Je)|0,L=Math.imul(Q,Qe),k=k+Math.imul(T,Ze)|0,v=v+Math.imul(T,et)|0,v=v+Math.imul(z,Ze)|0,L=L+Math.imul(z,et)|0;var Gi=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,k=Math.imul(re,Je),v=Math.imul(re,Qe),v=v+Math.imul(ee,Je)|0,L=Math.imul(ee,Qe),k=k+Math.imul(q,Ze)|0,v=v+Math.imul(q,et)|0,v=v+Math.imul(Q,Ze)|0,L=L+Math.imul(Q,et)|0,k=k+Math.imul(T,tt)|0,v=v+Math.imul(T,rt)|0,v=v+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var Yi=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,k=Math.imul(ne,Je),v=Math.imul(ne,Qe),v=v+Math.imul(se,Je)|0,L=Math.imul(se,Qe),k=k+Math.imul(re,Ze)|0,v=v+Math.imul(re,et)|0,v=v+Math.imul(ee,Ze)|0,L=L+Math.imul(ee,et)|0,k=k+Math.imul(q,tt)|0,v=v+Math.imul(q,rt)|0,v=v+Math.imul(Q,tt)|0,L=L+Math.imul(Q,rt)|0,k=k+Math.imul(T,nt)|0,v=v+Math.imul(T,it)|0,v=v+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var Xi=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,k=Math.imul(Ue,Je),v=Math.imul(Ue,Qe),v=v+Math.imul(Ve,Je)|0,L=Math.imul(Ve,Qe),k=k+Math.imul(ne,Ze)|0,v=v+Math.imul(ne,et)|0,v=v+Math.imul(se,Ze)|0,L=L+Math.imul(se,et)|0,k=k+Math.imul(re,tt)|0,v=v+Math.imul(re,rt)|0,v=v+Math.imul(ee,tt)|0,L=L+Math.imul(ee,rt)|0,k=k+Math.imul(q,nt)|0,v=v+Math.imul(q,it)|0,v=v+Math.imul(Q,nt)|0,L=L+Math.imul(Q,it)|0,k=k+Math.imul(T,ot)|0,v=v+Math.imul(T,st)|0,v=v+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Ji=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,k=Math.imul(Be,Je),v=Math.imul(Be,Qe),v=v+Math.imul(je,Je)|0,L=Math.imul(je,Qe),k=k+Math.imul(Ue,Ze)|0,v=v+Math.imul(Ue,et)|0,v=v+Math.imul(Ve,Ze)|0,L=L+Math.imul(Ve,et)|0,k=k+Math.imul(ne,tt)|0,v=v+Math.imul(ne,rt)|0,v=v+Math.imul(se,tt)|0,L=L+Math.imul(se,rt)|0,k=k+Math.imul(re,nt)|0,v=v+Math.imul(re,it)|0,v=v+Math.imul(ee,nt)|0,L=L+Math.imul(ee,it)|0,k=k+Math.imul(q,ot)|0,v=v+Math.imul(q,st)|0,v=v+Math.imul(Q,ot)|0,L=L+Math.imul(Q,st)|0,k=k+Math.imul(T,at)|0,v=v+Math.imul(T,lt)|0,v=v+Math.imul(z,at)|0,L=L+Math.imul(z,lt)|0;var ug=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(ug>>>26)|0,ug&=67108863,k=Math.imul(ze,Je),v=Math.imul(ze,Qe),v=v+Math.imul(He,Je)|0,L=Math.imul(He,Qe),k=k+Math.imul(Be,Ze)|0,v=v+Math.imul(Be,et)|0,v=v+Math.imul(je,Ze)|0,L=L+Math.imul(je,et)|0,k=k+Math.imul(Ue,tt)|0,v=v+Math.imul(Ue,rt)|0,v=v+Math.imul(Ve,tt)|0,L=L+Math.imul(Ve,rt)|0,k=k+Math.imul(ne,nt)|0,v=v+Math.imul(ne,it)|0,v=v+Math.imul(se,nt)|0,L=L+Math.imul(se,it)|0,k=k+Math.imul(re,ot)|0,v=v+Math.imul(re,st)|0,v=v+Math.imul(ee,ot)|0,L=L+Math.imul(ee,st)|0,k=k+Math.imul(q,at)|0,v=v+Math.imul(q,lt)|0,v=v+Math.imul(Q,at)|0,L=L+Math.imul(Q,lt)|0,k=k+Math.imul(T,ut)|0,v=v+Math.imul(T,ct)|0,v=v+Math.imul(z,ut)|0,L=L+Math.imul(z,ct)|0;var cg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(cg>>>26)|0,cg&=67108863,k=Math.imul(Ke,Je),v=Math.imul(Ke,Qe),v=v+Math.imul(qe,Je)|0,L=Math.imul(qe,Qe),k=k+Math.imul(ze,Ze)|0,v=v+Math.imul(ze,et)|0,v=v+Math.imul(He,Ze)|0,L=L+Math.imul(He,et)|0,k=k+Math.imul(Be,tt)|0,v=v+Math.imul(Be,rt)|0,v=v+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(Ue,nt)|0,v=v+Math.imul(Ue,it)|0,v=v+Math.imul(Ve,nt)|0,L=L+Math.imul(Ve,it)|0,k=k+Math.imul(ne,ot)|0,v=v+Math.imul(ne,st)|0,v=v+Math.imul(se,ot)|0,L=L+Math.imul(se,st)|0,k=k+Math.imul(re,at)|0,v=v+Math.imul(re,lt)|0,v=v+Math.imul(ee,at)|0,L=L+Math.imul(ee,lt)|0,k=k+Math.imul(q,ut)|0,v=v+Math.imul(q,ct)|0,v=v+Math.imul(Q,ut)|0,L=L+Math.imul(Q,ct)|0,k=k+Math.imul(T,ft)|0,v=v+Math.imul(T,dt)|0,v=v+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var fg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(fg>>>26)|0,fg&=67108863,k=Math.imul(We,Je),v=Math.imul(We,Qe),v=v+Math.imul(Ge,Je)|0,L=Math.imul(Ge,Qe),k=k+Math.imul(Ke,Ze)|0,v=v+Math.imul(Ke,et)|0,v=v+Math.imul(qe,Ze)|0,L=L+Math.imul(qe,et)|0,k=k+Math.imul(ze,tt)|0,v=v+Math.imul(ze,rt)|0,v=v+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,v=v+Math.imul(Be,it)|0,v=v+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(Ue,ot)|0,v=v+Math.imul(Ue,st)|0,v=v+Math.imul(Ve,ot)|0,L=L+Math.imul(Ve,st)|0,k=k+Math.imul(ne,at)|0,v=v+Math.imul(ne,lt)|0,v=v+Math.imul(se,at)|0,L=L+Math.imul(se,lt)|0,k=k+Math.imul(re,ut)|0,v=v+Math.imul(re,ct)|0,v=v+Math.imul(ee,ut)|0,L=L+Math.imul(ee,ct)|0,k=k+Math.imul(q,ft)|0,v=v+Math.imul(q,dt)|0,v=v+Math.imul(Q,ft)|0,L=L+Math.imul(Q,dt)|0,k=k+Math.imul(T,ht)|0,v=v+Math.imul(T,pt)|0,v=v+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var dg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(dg>>>26)|0,dg&=67108863,k=Math.imul(Ye,Je),v=Math.imul(Ye,Qe),v=v+Math.imul(Xe,Je)|0,L=Math.imul(Xe,Qe),k=k+Math.imul(We,Ze)|0,v=v+Math.imul(We,et)|0,v=v+Math.imul(Ge,Ze)|0,L=L+Math.imul(Ge,et)|0,k=k+Math.imul(Ke,tt)|0,v=v+Math.imul(Ke,rt)|0,v=v+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,v=v+Math.imul(ze,it)|0,v=v+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,v=v+Math.imul(Be,st)|0,v=v+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(Ue,at)|0,v=v+Math.imul(Ue,lt)|0,v=v+Math.imul(Ve,at)|0,L=L+Math.imul(Ve,lt)|0,k=k+Math.imul(ne,ut)|0,v=v+Math.imul(ne,ct)|0,v=v+Math.imul(se,ut)|0,L=L+Math.imul(se,ct)|0,k=k+Math.imul(re,ft)|0,v=v+Math.imul(re,dt)|0,v=v+Math.imul(ee,ft)|0,L=L+Math.imul(ee,dt)|0,k=k+Math.imul(q,ht)|0,v=v+Math.imul(q,pt)|0,v=v+Math.imul(Q,ht)|0,L=L+Math.imul(Q,pt)|0,k=k+Math.imul(T,mt)|0,v=v+Math.imul(T,gt)|0,v=v+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var hg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(hg>>>26)|0,hg&=67108863,k=Math.imul(Ye,Ze),v=Math.imul(Ye,et),v=v+Math.imul(Xe,Ze)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,v=v+Math.imul(We,rt)|0,v=v+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,v=v+Math.imul(Ke,it)|0,v=v+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,v=v+Math.imul(ze,st)|0,v=v+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,v=v+Math.imul(Be,lt)|0,v=v+Math.imul(je,at)|0,L=L+Math.imul(je,lt)|0,k=k+Math.imul(Ue,ut)|0,v=v+Math.imul(Ue,ct)|0,v=v+Math.imul(Ve,ut)|0,L=L+Math.imul(Ve,ct)|0,k=k+Math.imul(ne,ft)|0,v=v+Math.imul(ne,dt)|0,v=v+Math.imul(se,ft)|0,L=L+Math.imul(se,dt)|0,k=k+Math.imul(re,ht)|0,v=v+Math.imul(re,pt)|0,v=v+Math.imul(ee,ht)|0,L=L+Math.imul(ee,pt)|0,k=k+Math.imul(q,mt)|0,v=v+Math.imul(q,gt)|0,v=v+Math.imul(Q,mt)|0,L=L+Math.imul(Q,gt)|0;var pg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(pg>>>26)|0,pg&=67108863,k=Math.imul(Ye,tt),v=Math.imul(Ye,rt),v=v+Math.imul(Xe,tt)|0,L=Math.imul(Xe,rt),k=k+Math.imul(We,nt)|0,v=v+Math.imul(We,it)|0,v=v+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,v=v+Math.imul(Ke,st)|0,v=v+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,v=v+Math.imul(ze,lt)|0,v=v+Math.imul(He,at)|0,L=L+Math.imul(He,lt)|0,k=k+Math.imul(Be,ut)|0,v=v+Math.imul(Be,ct)|0,v=v+Math.imul(je,ut)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(Ue,ft)|0,v=v+Math.imul(Ue,dt)|0,v=v+Math.imul(Ve,ft)|0,L=L+Math.imul(Ve,dt)|0,k=k+Math.imul(ne,ht)|0,v=v+Math.imul(ne,pt)|0,v=v+Math.imul(se,ht)|0,L=L+Math.imul(se,pt)|0,k=k+Math.imul(re,mt)|0,v=v+Math.imul(re,gt)|0,v=v+Math.imul(ee,mt)|0,L=L+Math.imul(ee,gt)|0;var mg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(mg>>>26)|0,mg&=67108863,k=Math.imul(Ye,nt),v=Math.imul(Ye,it),v=v+Math.imul(Xe,nt)|0,L=Math.imul(Xe,it),k=k+Math.imul(We,ot)|0,v=v+Math.imul(We,st)|0,v=v+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,v=v+Math.imul(Ke,lt)|0,v=v+Math.imul(qe,at)|0,L=L+Math.imul(qe,lt)|0,k=k+Math.imul(ze,ut)|0,v=v+Math.imul(ze,ct)|0,v=v+Math.imul(He,ut)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,v=v+Math.imul(Be,dt)|0,v=v+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(Ue,ht)|0,v=v+Math.imul(Ue,pt)|0,v=v+Math.imul(Ve,ht)|0,L=L+Math.imul(Ve,pt)|0,k=k+Math.imul(ne,mt)|0,v=v+Math.imul(ne,gt)|0,v=v+Math.imul(se,mt)|0,L=L+Math.imul(se,gt)|0;var gg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(gg>>>26)|0,gg&=67108863,k=Math.imul(Ye,ot),v=Math.imul(Ye,st),v=v+Math.imul(Xe,ot)|0,L=Math.imul(Xe,st),k=k+Math.imul(We,at)|0,v=v+Math.imul(We,lt)|0,v=v+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,lt)|0,k=k+Math.imul(Ke,ut)|0,v=v+Math.imul(Ke,ct)|0,v=v+Math.imul(qe,ut)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,v=v+Math.imul(ze,dt)|0,v=v+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,v=v+Math.imul(Be,pt)|0,v=v+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(Ue,mt)|0,v=v+Math.imul(Ue,gt)|0,v=v+Math.imul(Ve,mt)|0,L=L+Math.imul(Ve,gt)|0;var yg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(yg>>>26)|0,yg&=67108863,k=Math.imul(Ye,at),v=Math.imul(Ye,lt),v=v+Math.imul(Xe,at)|0,L=Math.imul(Xe,lt),k=k+Math.imul(We,ut)|0,v=v+Math.imul(We,ct)|0,v=v+Math.imul(Ge,ut)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,v=v+Math.imul(Ke,dt)|0,v=v+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,v=v+Math.imul(ze,pt)|0,v=v+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,v=v+Math.imul(Be,gt)|0,v=v+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0;var vg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(vg>>>26)|0,vg&=67108863,k=Math.imul(Ye,ut),v=Math.imul(Ye,ct),v=v+Math.imul(Xe,ut)|0,L=Math.imul(Xe,ct),k=k+Math.imul(We,ft)|0,v=v+Math.imul(We,dt)|0,v=v+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,v=v+Math.imul(Ke,pt)|0,v=v+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,v=v+Math.imul(ze,gt)|0,v=v+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0;var wg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(wg>>>26)|0,wg&=67108863,k=Math.imul(Ye,ft),v=Math.imul(Ye,dt),v=v+Math.imul(Xe,ft)|0,L=Math.imul(Xe,dt),k=k+Math.imul(We,ht)|0,v=v+Math.imul(We,pt)|0,v=v+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,v=v+Math.imul(Ke,gt)|0,v=v+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0;var xg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(xg>>>26)|0,xg&=67108863,k=Math.imul(Ye,ht),v=Math.imul(Ye,pt),v=v+Math.imul(Xe,ht)|0,L=Math.imul(Xe,pt),k=k+Math.imul(We,mt)|0,v=v+Math.imul(We,gt)|0,v=v+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0;var bg=(B+k|0)+((v&8191)<<13)|0;B=(L+(v>>>13)|0)+(bg>>>26)|0,bg&=67108863,k=Math.imul(Ye,mt),v=Math.imul(Ye,gt),v=v+Math.imul(Xe,mt)|0,L=Math.imul(Xe,gt);var Eg=(B+k|0)+((v&8191)<<13)|0;return B=(L+(v>>>13)|0)+(Eg>>>26)|0,Eg&=67108863,V[0]=Wi,V[1]=Gi,V[2]=Yi,V[3]=Xi,V[4]=Ji,V[5]=ug,V[6]=cg,V[7]=fg,V[8]=dg,V[9]=hg,V[10]=pg,V[11]=mg,V[12]=gg,V[13]=yg,V[14]=vg,V[15]=wg,V[16]=xg,V[17]=bg,V[18]=Eg,B!==0&&(V[19]=B,I.length++),I};Math.imul||(C=A);function P(M,p,b){b.negative=p.negative^M.negative,b.length=M.length+p.length;for(var I=0,R=0,N=0;N<b.length-1;N++){var V=R;R=0;for(var B=I&67108863,k=Math.min(N,p.length-1),v=Math.max(0,N-M.length+1);v<=k;v++){var L=N-v,J=M.words[L]|0,T=p.words[v]|0,z=J*T,H=z&67108863;V=V+(z/67108864|0)|0,H=H+B|0,B=H&67108863,V=V+(H>>>26)|0,R+=V>>>26,V&=67108863}b.words[N]=B,I=V,V=R}return I!==0?b.words[N]=I:b.length--,b._strip()}function D(M,p,b){return P(M,p,b)}i.prototype.mulTo=function(p,b){var I,R=this.length+p.length;return this.length===10&&p.length===10?I=C(this,p,b):R<63?I=A(this,p,b):R<1024?I=P(this,p,b):I=D(this,p,b),I};function O(M,p){this.x=M,this.y=p}O.prototype.makeRBT=function(p){for(var b=new Array(p),I=i.prototype._countBits(p)-1,R=0;R<p;R++)b[R]=this.revBin(R,I,p);return b},O.prototype.revBin=function(p,b,I){if(p===0||p===I-1)return p;for(var R=0,N=0;N<b;N++)R|=(p&1)<<b-N-1,p>>=1;return R},O.prototype.permute=function(p,b,I,R,N,V){for(var B=0;B<V;B++)R[B]=b[p[B]],N[B]=I[p[B]]},O.prototype.transform=function(p,b,I,R,N,V){this.permute(V,p,b,I,R,N);for(var B=1;B<N;B<<=1)for(var k=B<<1,v=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),J=0;J<N;J+=k)for(var T=v,z=L,H=0;H<B;H++){var q=I[J+H],Q=R[J+H],ie=I[J+H+B],re=R[J+H+B],ee=T*ie-z*re;re=T*re+z*ie,ie=ee,I[J+H]=q+ie,R[J+H]=Q+re,I[J+H+B]=q-ie,R[J+H+B]=Q-re,H!==k&&(ee=v*T-L*z,z=v*z+L*T,T=ee)}},O.prototype.guessLen13b=function(p,b){var I=Math.max(b,p)|1,R=I&1,N=0;for(I=I/2|0;I;I=I>>>1)N++;return 1<<N+1+R},O.prototype.conjugate=function(p,b,I){if(!(I<=1))for(var R=0;R<I/2;R++){var N=p[R];p[R]=p[I-R-1],p[I-R-1]=N,N=b[R],b[R]=-b[I-R-1],b[I-R-1]=-N}},O.prototype.normalize13b=function(p,b){for(var I=0,R=0;R<b/2;R++){var N=Math.round(p[2*R+1]/b)*8192+Math.round(p[2*R]/b)+I;p[R]=N&67108863,N<67108864?I=0:I=N/67108864|0}return p},O.prototype.convert13b=function(p,b,I,R){for(var N=0,V=0;V<b;V++)N=N+(p[V]|0),I[2*V]=N&8191,N=N>>>13,I[2*V+1]=N&8191,N=N>>>13;for(V=2*b;V<R;++V)I[V]=0;r(N===0),r((N&-8192)===0)},O.prototype.stub=function(p){for(var b=new Array(p),I=0;I<p;I++)b[I]=0;return b},O.prototype.mulp=function(p,b,I){var R=2*this.guessLen13b(p.length,b.length),N=this.makeRBT(R),V=this.stub(R),B=new Array(R),k=new Array(R),v=new Array(R),L=new Array(R),J=new Array(R),T=new Array(R),z=I.words;z.length=R,this.convert13b(p.words,p.length,B,R),this.convert13b(b.words,b.length,L,R),this.transform(B,V,k,v,R,N),this.transform(L,V,J,T,R,N);for(var H=0;H<R;H++){var q=k[H]*J[H]-v[H]*T[H];v[H]=k[H]*T[H]+v[H]*J[H],k[H]=q}return this.conjugate(k,v,R),this.transform(k,v,z,V,R,N),this.conjugate(z,V,R),this.normalize13b(z,R),I.negative=p.negative^b.negative,I.length=p.length+b.length,I._strip()},i.prototype.mul=function(p){var b=new i(null);return b.words=new Array(this.length+p.length),this.mulTo(p,b)},i.prototype.mulf=function(p){var b=new i(null);return b.words=new Array(this.length+p.length),D(this,p,b)},i.prototype.imul=function(p){return this.clone().mulTo(p,this)},i.prototype.imuln=function(p){var b=p<0;b&&(p=-p),r(typeof p=="number"),r(p<67108864);for(var I=0,R=0;R<this.length;R++){var N=(this.words[R]|0)*p,V=(N&67108863)+(I&67108863);I>>=26,I+=N/67108864|0,I+=V>>>26,this.words[R]=V&67108863}return I!==0&&(this.words[R]=I,this.length++),b?this.ineg():this},i.prototype.muln=function(p){return this.clone().imuln(p)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(p){var b=_(p);if(b.length===0)return new i(1);for(var I=this,R=0;R<b.length&&b[R]===0;R++,I=I.sqr());if(++R<b.length)for(var N=I.sqr();R<b.length;R++,N=N.sqr())b[R]!==0&&(I=I.mul(N));return I},i.prototype.iushln=function(p){r(typeof p=="number"&&p>=0);var b=p%26,I=(p-b)/26,R=67108863>>>26-b<<26-b,N;if(b!==0){var V=0;for(N=0;N<this.length;N++){var B=this.words[N]&R,k=(this.words[N]|0)-B<<b;this.words[N]=k|V,V=B>>>26-b}V&&(this.words[N]=V,this.length++)}if(I!==0){for(N=this.length-1;N>=0;N--)this.words[N+I]=this.words[N];for(N=0;N<I;N++)this.words[N]=0;this.length+=I}return this._strip()},i.prototype.ishln=function(p){return r(this.negative===0),this.iushln(p)},i.prototype.iushrn=function(p,b,I){r(typeof p=="number"&&p>=0);var R;b?R=(b-b%26)/26:R=0;var N=p%26,V=Math.min((p-N)/26,this.length),B=67108863^67108863>>>N<<N,k=I;if(R-=V,R=Math.max(0,R),k){for(var v=0;v<V;v++)k.words[v]=this.words[v];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,v=0;v<this.length;v++)this.words[v]=this.words[v+V];else this.words[0]=0,this.length=1;var L=0;for(v=this.length-1;v>=0&&(L!==0||v>=R);v--){var J=this.words[v]|0;this.words[v]=L<<26-N|J>>>N,L=J&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(p,b,I){return r(this.negative===0),this.iushrn(p,b,I)},i.prototype.shln=function(p){return this.clone().ishln(p)},i.prototype.ushln=function(p){return this.clone().iushln(p)},i.prototype.shrn=function(p){return this.clone().ishrn(p)},i.prototype.ushrn=function(p){return this.clone().iushrn(p)},i.prototype.testn=function(p){r(typeof p=="number"&&p>=0);var b=p%26,I=(p-b)/26,R=1<<b;if(this.length<=I)return!1;var N=this.words[I];return!!(N&R)},i.prototype.imaskn=function(p){r(typeof p=="number"&&p>=0);var b=p%26,I=(p-b)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(b!==0&&I++,this.length=Math.min(I,this.length),b!==0){var R=67108863^67108863>>>b<<b;this.words[this.length-1]&=R}return this._strip()},i.prototype.maskn=function(p){return this.clone().imaskn(p)},i.prototype.iaddn=function(p){return r(typeof p=="number"),r(p<67108864),p<0?this.isubn(-p):this.negative!==0?this.length===1&&(this.words[0]|0)<=p?(this.words[0]=p-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(p),this.negative=1,this):this._iaddn(p)},i.prototype._iaddn=function(p){this.words[0]+=p;for(var b=0;b<this.length&&this.words[b]>=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},i.prototype.isubn=function(p){if(r(typeof p=="number"),r(p<67108864),p<0)return this.iaddn(-p);if(this.negative!==0)return this.negative=0,this.iaddn(p),this.negative=1,this;if(this.words[0]-=p,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this._strip()},i.prototype.addn=function(p){return this.clone().iaddn(p)},i.prototype.subn=function(p){return this.clone().isubn(p)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(p,b,I){var R=p.length+I,N;this._expand(R);var V,B=0;for(N=0;N<p.length;N++){V=(this.words[N+I]|0)+B;var k=(p.words[N]|0)*b;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[N+I]=V&67108863}for(;N<this.length-I;N++)V=(this.words[N+I]|0)+B,B=V>>26,this.words[N+I]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,N=0;N<this.length;N++)V=-(this.words[N]|0)+B,B=V>>26,this.words[N]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(p,b){var I=this.length-p.length,R=this.clone(),N=p,V=N.words[N.length-1]|0,B=this._countBits(V);I=26-B,I!==0&&(N=N.ushln(I),R.iushln(I),V=N.words[N.length-1]|0);var k=R.length-N.length,v;if(b!=="mod"){v=new i(null),v.length=k+1,v.words=new Array(v.length);for(var L=0;L<v.length;L++)v.words[L]=0}var J=R.clone()._ishlnsubmul(N,1,k);J.negative===0&&(R=J,v&&(v.words[k]=1));for(var T=k-1;T>=0;T--){var z=(R.words[N.length+T]|0)*67108864+(R.words[N.length+T-1]|0);for(z=Math.min(z/V|0,67108863),R._ishlnsubmul(N,z,T);R.negative!==0;)z--,R.negative=0,R._ishlnsubmul(N,1,T),R.isZero()||(R.negative^=1);v&&(v.words[T]=z)}return v&&v._strip(),R._strip(),b!=="div"&&I!==0&&R.iushrn(I),{div:v||null,mod:R}},i.prototype.divmod=function(p,b,I){if(r(!p.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var R,N,V;return this.negative!==0&&p.negative===0?(V=this.neg().divmod(p,b),b!=="mod"&&(R=V.div.neg()),b!=="div"&&(N=V.mod.neg(),I&&N.negative!==0&&N.iadd(p)),{div:R,mod:N}):this.negative===0&&p.negative!==0?(V=this.divmod(p.neg(),b),b!=="mod"&&(R=V.div.neg()),{div:R,mod:V.mod}):(this.negative&p.negative)!==0?(V=this.neg().divmod(p.neg(),b),b!=="div"&&(N=V.mod.neg(),I&&N.negative!==0&&N.isub(p)),{div:V.div,mod:N}):p.length>this.length||this.cmp(p)<0?{div:new i(0),mod:this}:p.length===1?b==="div"?{div:this.divn(p.words[0]),mod:null}:b==="mod"?{div:null,mod:new i(this.modrn(p.words[0]))}:{div:this.divn(p.words[0]),mod:new i(this.modrn(p.words[0]))}:this._wordDiv(p,b)},i.prototype.div=function(p){return this.divmod(p,"div",!1).div},i.prototype.mod=function(p){return this.divmod(p,"mod",!1).mod},i.prototype.umod=function(p){return this.divmod(p,"mod",!0).mod},i.prototype.divRound=function(p){var b=this.divmod(p);if(b.mod.isZero())return b.div;var I=b.div.negative!==0?b.mod.isub(p):b.mod,R=p.ushrn(1),N=p.andln(1),V=I.cmp(R);return V<0||N===1&&V===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},i.prototype.modrn=function(p){var b=p<0;b&&(p=-p),r(p<=67108863);for(var I=(1<<26)%p,R=0,N=this.length-1;N>=0;N--)R=(I*R+(this.words[N]|0))%p;return b?-R:R},i.prototype.modn=function(p){return this.modrn(p)},i.prototype.idivn=function(p){var b=p<0;b&&(p=-p),r(p<=67108863);for(var I=0,R=this.length-1;R>=0;R--){var N=(this.words[R]|0)+I*67108864;this.words[R]=N/p|0,I=N%p}return this._strip(),b?this.ineg():this},i.prototype.divn=function(p){return this.clone().idivn(p)},i.prototype.egcd=function(p){r(p.negative===0),r(!p.isZero());var b=this,I=p.clone();b.negative!==0?b=b.umod(p):b=b.clone();for(var R=new i(1),N=new i(0),V=new i(0),B=new i(1),k=0;b.isEven()&&I.isEven();)b.iushrn(1),I.iushrn(1),++k;for(var v=I.clone(),L=b.clone();!b.isZero();){for(var J=0,T=1;(b.words[0]&T)===0&&J<26;++J,T<<=1);if(J>0)for(b.iushrn(J);J-- >0;)(R.isOdd()||N.isOdd())&&(R.iadd(v),N.isub(L)),R.iushrn(1),N.iushrn(1);for(var z=0,H=1;(I.words[0]&H)===0&&z<26;++z,H<<=1);if(z>0)for(I.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(v),B.isub(L)),V.iushrn(1),B.iushrn(1);b.cmp(I)>=0?(b.isub(I),R.isub(V),N.isub(B)):(I.isub(b),V.isub(R),B.isub(N))}return{a:V,b:B,gcd:I.iushln(k)}},i.prototype._invmp=function(p){r(p.negative===0),r(!p.isZero());var b=this,I=p.clone();b.negative!==0?b=b.umod(p):b=b.clone();for(var R=new i(1),N=new i(0),V=I.clone();b.cmpn(1)>0&&I.cmpn(1)>0;){for(var B=0,k=1;(b.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(b.iushrn(B);B-- >0;)R.isOdd()&&R.iadd(V),R.iushrn(1);for(var v=0,L=1;(I.words[0]&L)===0&&v<26;++v,L<<=1);if(v>0)for(I.iushrn(v);v-- >0;)N.isOdd()&&N.iadd(V),N.iushrn(1);b.cmp(I)>=0?(b.isub(I),R.isub(N)):(I.isub(b),N.isub(R))}var J;return b.cmpn(1)===0?J=R:J=N,J.cmpn(0)<0&&J.iadd(p),J},i.prototype.gcd=function(p){if(this.isZero())return p.abs();if(p.isZero())return this.abs();var b=this.clone(),I=p.clone();b.negative=0,I.negative=0;for(var R=0;b.isEven()&&I.isEven();R++)b.iushrn(1),I.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;I.isEven();)I.iushrn(1);var N=b.cmp(I);if(N<0){var V=b;b=I,I=V}else if(N===0||I.cmpn(1)===0)break;b.isub(I)}while(!0);return I.iushln(R)},i.prototype.invm=function(p){return this.egcd(p).a.umod(p)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(p){return this.words[0]&p},i.prototype.bincn=function(p){r(typeof p=="number");var b=p%26,I=(p-b)/26,R=1<<b;if(this.length<=I)return this._expand(I+1),this.words[I]|=R,this;for(var N=R,V=I;N!==0&&V<this.length;V++){var B=this.words[V]|0;B+=N,N=B>>>26,B&=67108863,this.words[V]=B}return N!==0&&(this.words[V]=N,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(p){var b=p<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var I;if(this.length>1)I=1;else{b&&(p=-p),r(p<=67108863,"Number is too big");var R=this.words[0]|0;I=R===p?0:R<p?-1:1}return this.negative!==0?-I|0:I},i.prototype.cmp=function(p){if(this.negative!==0&&p.negative===0)return-1;if(this.negative===0&&p.negative!==0)return 1;var b=this.ucmp(p);return this.negative!==0?-b|0:b},i.prototype.ucmp=function(p){if(this.length>p.length)return 1;if(this.length<p.length)return-1;for(var b=0,I=this.length-1;I>=0;I--){var R=this.words[I]|0,N=p.words[I]|0;if(R!==N){R<N?b=-1:R>N&&(b=1);break}}return b},i.prototype.gtn=function(p){return this.cmpn(p)===1},i.prototype.gt=function(p){return this.cmp(p)===1},i.prototype.gten=function(p){return this.cmpn(p)>=0},i.prototype.gte=function(p){return this.cmp(p)>=0},i.prototype.ltn=function(p){return this.cmpn(p)===-1},i.prototype.lt=function(p){return this.cmp(p)===-1},i.prototype.lten=function(p){return this.cmpn(p)<=0},i.prototype.lte=function(p){return this.cmp(p)<=0},i.prototype.eqn=function(p){return this.cmpn(p)===0},i.prototype.eq=function(p){return this.cmp(p)===0},i.red=function(p){return new G(p)},i.prototype.toRed=function(p){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),p.convertTo(this)._forceRed(p)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(p){return this.red=p,this},i.prototype.forceRed=function(p){return r(!this.red,"Already a number in reduction context"),this._forceRed(p)},i.prototype.redAdd=function(p){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,p)},i.prototype.redIAdd=function(p){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,p)},i.prototype.redSub=function(p){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,p)},i.prototype.redISub=function(p){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,p)},i.prototype.redShl=function(p){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,p)},i.prototype.redMul=function(p){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.mul(this,p)},i.prototype.redIMul=function(p){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,p),this.red.imul(this,p)},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(p){return r(this.red&&!p.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,p)};var $={k256:null,p224:null,p192:null,p25519:null};function j(M,p){this.name=M,this.p=new i(p,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 p=new i(null);return p.words=new Array(Math.ceil(this.n/13)),p},j.prototype.ireduce=function(p){var b=p,I;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),I=b.bitLength();while(I>this.n);var R=I<this.n?-1:b.ucmp(this.p);return R===0?(b.words[0]=0,b.length=1):R>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},j.prototype.split=function(p,b){p.iushrn(this.n,0,b)},j.prototype.imulK=function(p){return p.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(p,b){for(var I=4194303,R=Math.min(p.length,9),N=0;N<R;N++)b.words[N]=p.words[N];if(b.length=R,p.length<=9){p.words[0]=0,p.length=1;return}var V=p.words[9];for(b.words[b.length++]=V&I,N=10;N<p.length;N++){var B=p.words[N]|0;p.words[N-10]=(B&I)<<4|V>>>22,V=B}V>>>=22,p.words[N-10]=V,V===0&&p.length>10?p.length-=10:p.length-=9},F.prototype.imulK=function(p){p.words[p.length]=0,p.words[p.length+1]=0,p.length+=2;for(var b=0,I=0;I<p.length;I++){var R=p.words[I]|0;b+=R*977,p.words[I]=b&67108863,b=R*64+(b/67108864|0)}return p.words[p.length-1]===0&&(p.length--,p.words[p.length-1]===0&&p.length--),p};function U(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(U,j);function W(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(W,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(p){for(var b=0,I=0;I<p.length;I++){var R=(p.words[I]|0)*19+b,N=R&67108863;R>>>=26,p.words[I]=N,b=R}return b!==0&&(p.words[p.length++]=b),p},i._prime=function(p){if($[p])return $[p];var b;if(p==="k256")b=new F;else if(p==="p224")b=new U;else if(p==="p192")b=new W;else if(p==="p25519")b=new X;else throw new Error("Unknown prime "+p);return $[p]=b,b};function G(M){if(typeof M=="string"){var p=i._prime(M);this.m=p.p,this.prime=p}else r(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}G.prototype._verify1=function(p){r(p.negative===0,"red works only with positives"),r(p.red,"red works only with red numbers")},G.prototype._verify2=function(p,b){r((p.negative|b.negative)===0,"red works only with positives"),r(p.red&&p.red===b.red,"red works only with red numbers")},G.prototype.imod=function(p){return this.prime?this.prime.ireduce(p)._forceRed(this):(u(p,p.umod(this.m)._forceRed(this)),p)},G.prototype.neg=function(p){return p.isZero()?p.clone():this.m.sub(p)._forceRed(this)},G.prototype.add=function(p,b){this._verify2(p,b);var I=p.add(b);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},G.prototype.iadd=function(p,b){this._verify2(p,b);var I=p.iadd(b);return I.cmp(this.m)>=0&&I.isub(this.m),I},G.prototype.sub=function(p,b){this._verify2(p,b);var I=p.sub(b);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},G.prototype.isub=function(p,b){this._verify2(p,b);var I=p.isub(b);return I.cmpn(0)<0&&I.iadd(this.m),I},G.prototype.shl=function(p,b){return this._verify1(p),this.imod(p.ushln(b))},G.prototype.imul=function(p,b){return this._verify2(p,b),this.imod(p.imul(b))},G.prototype.mul=function(p,b){return this._verify2(p,b),this.imod(p.mul(b))},G.prototype.isqr=function(p){return this.imul(p,p.clone())},G.prototype.sqr=function(p){return this.mul(p,p)},G.prototype.sqrt=function(p){if(p.isZero())return p.clone();var b=this.m.andln(3);if(r(b%2===1),b===3){var I=this.m.add(new i(1)).iushrn(2);return this.pow(p,I)}for(var R=this.m.subn(1),N=0;!R.isZero()&&R.andln(1)===0;)N++,R.iushrn(1);r(!R.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),v=this.m.bitLength();for(v=new i(2*v*v).toRed(this);this.pow(v,k).cmp(B)!==0;)v.redIAdd(B);for(var L=this.pow(v,R),J=this.pow(p,R.addn(1).iushrn(1)),T=this.pow(p,R),z=N;T.cmp(V)!==0;){for(var H=T,q=0;H.cmp(V)!==0;q++)H=H.redSqr();r(q<z);var Q=this.pow(L,new i(1).iushln(z-q-1));J=J.redMul(Q),L=Q.redSqr(),T=T.redMul(L),z=q}return J},G.prototype.invm=function(p){var b=p._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},G.prototype.pow=function(p,b){if(b.isZero())return new i(1).toRed(this);if(b.cmpn(1)===0)return p.clone();var I=4,R=new Array(1<<I);R[0]=new i(1).toRed(this),R[1]=p;for(var N=2;N<R.length;N++)R[N]=this.mul(R[N-1],p);var V=R[0],B=0,k=0,v=b.bitLength()%26;for(v===0&&(v=26),N=b.length-1;N>=0;N--){for(var L=b.words[N],J=v-1;J>=0;J--){var T=L>>J&1;if(V!==R[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==I&&(N!==0||J!==0))&&(V=this.mul(V,R[B]),k=0,B=0)}v=26}return V},G.prototype.convertTo=function(p){var b=p.umod(this.m);return b===p?b.clone():b},G.prototype.convertFrom=function(p){var b=p.clone();return b.red=null,b},i.mont=function(p){return new Y(p)};function Y(M){G.call(this,M),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(Y,G),Y.prototype.convertTo=function(p){return this.imod(p.ushln(this.shift))},Y.prototype.convertFrom=function(p){var b=this.imod(p.mul(this.rinv));return b.red=null,b},Y.prototype.imul=function(p,b){if(p.isZero()||b.isZero())return p.words[0]=0,p.length=1,p;var I=p.imul(b),R=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=I.isub(R).iushrn(this.shift),V=N;return N.cmp(this.m)>=0?V=N.isub(this.m):N.cmpn(0)<0&&(V=N.iadd(this.m)),V._forceRed(this)},Y.prototype.mul=function(p,b){if(p.isZero()||b.isZero())return new i(0)._forceRed(this);var I=p.mul(b),R=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=I.isub(R).iushrn(this.shift),V=N;return N.cmp(this.m)>=0?V=N.isub(this.m):N.cmpn(0)<0&&(V=N.iadd(this.m)),V._forceRed(this)},Y.prototype.invm=function(p){var b=this.imod(p._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof SE>"u"||SE,_M)});var ON=te((mye,tg)=>{c();d();f();var aN,lN,uN,cN,fN,dN,hN,pN,mN,gN,yN,vN,wN,Zm,$E,xN,bN,EN,Ru,_N,SN,CN,TN,DN,PN,IN,RN,AN,eg;(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 tg=="object"&&typeof tg.exports=="object"?e(r(t,r(tg.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])};aN=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)},lN=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},uN=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},cN=function(n,i,o,s){var a=arguments.length,l=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,i,o,s);else for(var h=n.length-1;h>=0;h--)(u=n[h])&&(l=(a<3?u(l):a>3?u(i,o,l):u(i,o))||l);return a>3&&l&&Object.defineProperty(i,o,l),l},fN=function(n,i){return function(o,s){i(o,s,n)}},dN=function(n,i,o,s,a,l){function u(O){if(O!==void 0&&typeof O!="function")throw new TypeError("Function expected");return O}for(var h=s.kind,m=h==="getter"?"get":h==="setter"?"set":"value",g=!i&&n?s.static?n:n.prototype:null,x=i||(g?Object.getOwnPropertyDescriptor(g,s.name):{}),E,_=!1,A=o.length-1;A>=0;A--){var C={};for(var P in s)C[P]=P==="access"?{}:s[P];for(var P in s.access)C.access[P]=s.access[P];C.addInitializer=function(O){if(_)throw new TypeError("Cannot add initializers after decoration has completed");l.push(u(O||null))};var D=(0,o[A])(h==="accessor"?{get:x.get,set:x.set}:x[m],C);if(h==="accessor"){if(D===void 0)continue;if(D===null||typeof D!="object")throw new TypeError("Object expected");(E=u(D.get))&&(x.get=E),(E=u(D.set))&&(x.set=E),(E=u(D.init))&&a.push(E)}else(E=u(D))&&(h==="field"?a.push(E):x[m]=E)}g&&Object.defineProperty(g,s.name,x),_=!0},hN=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},pN=function(n){return typeof n=="symbol"?n:"".concat(n)},mN=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})},gN=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},yN=function(n,i,o,s){function a(l){return l instanceof o?l:new o(function(u){u(l)})}return new(o||(o=Promise))(function(l,u){function h(x){try{g(s.next(x))}catch(E){u(E)}}function m(x){try{g(s.throw(x))}catch(E){u(E)}}function g(x){x.done?l(x.value):a(x.value).then(h,m)}g((s=s.apply(n,i||[])).next())})},vN=function(n,i){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,a,l,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(g){return function(x){return m([g,x])}}function m(g){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,g[0]&&(o=0)),o;)try{if(s=1,a&&(l=g[0]&2?a.return:g[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,g[1])).done)return l;switch(a=0,l&&(g=[g[0]&2,l.value]),g[0]){case 0:case 1:l=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,a=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!l||g[1]>l[0]&&g[1]<l[3])){o.label=g[1];break}if(g[0]===6&&o.label<l[1]){o.label=l[1],l=g;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(g);break}l[2]&&o.ops.pop(),o.trys.pop();continue}g=i.call(n,o)}catch(x){g=[6,x],a=0}finally{s=l=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},wN=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&eg(i,n,o)},eg=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]},Zm=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.")},$E=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,l=[],u;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)l.push(a.value)}catch(h){u={error:h}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(u)throw u.error}}return l},xN=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat($E(arguments[i]));return n},bN=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 l=arguments[i],u=0,h=l.length;u<h;u++,a++)s[a]=l[u];return s},EN=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,l;s<a;s++)(l||!(s in i))&&(l||(l=Array.prototype.slice.call(i,0,s)),l[s]=i[s]);return n.concat(l||Array.prototype.slice.call(i))},Ru=function(n){return this instanceof Ru?(this.v=n,this):new Ru(n)},_N=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,l=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(_){s[_]&&(a[_]=function(A){return new Promise(function(C,P){l.push([_,A,C,P])>1||h(_,A)})})}function h(_,A){try{m(s[_](A))}catch(C){E(l[0][3],C)}}function m(_){_.value instanceof Ru?Promise.resolve(_.value.v).then(g,x):E(l[0][2],_)}function g(_){h("next",_)}function x(_){h("throw",_)}function E(_,A){_(A),l.shift(),l.length&&h(l[0][0],l[0][1])}},SN=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,l){i[a]=n[a]?function(u){return(o=!o)?{value:Ru(n[a](u)),done:!1}:l?l(u):u}:l}},CN=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 Zm=="function"?Zm(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(l){o[l]=n[l]&&function(u){return new Promise(function(h,m){u=n[l](u),a(h,m,u.done,u.value)})}}function a(l,u,h,m){Promise.resolve(m).then(function(g){l({value:g,done:h})},u)}},TN=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};DN=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)&&eg(i,n,o);return r(i,n),i},PN=function(n){return n&&n.__esModule?n:{default:n}},IN=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)},RN=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},AN=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",aN),e("__assign",lN),e("__rest",uN),e("__decorate",cN),e("__param",fN),e("__esDecorate",dN),e("__runInitializers",hN),e("__propKey",pN),e("__setFunctionName",mN),e("__metadata",gN),e("__awaiter",yN),e("__generator",vN),e("__exportStar",wN),e("__createBinding",eg),e("__values",Zm),e("__read",$E),e("__spread",xN),e("__spreadArrays",bN),e("__spreadArray",EN),e("__await",Ru),e("__asyncGenerator",_N),e("__asyncDelegator",SN),e("__asyncValues",CN),e("__makeTemplateObject",TN),e("__importStar",DN),e("__importDefault",PN),e("__classPrivateFieldGet",IN),e("__classPrivateFieldSet",RN),e("__classPrivateFieldIn",AN)})});var nQ={};cr(nQ,{init:()=>ZJ,open:()=>tQ,reset:()=>rQ,update:()=>eQ});c();d();f();c();d();f();c();d();f();c();d();f();var L_=e=>{let t,r=new Set,n=(l,u)=>{let h=typeof l=="function"?l(t):l;if(!Object.is(h,t)){let m=t;t=(u!=null?u:typeof h!="object")?h:Object.assign({},t,h),r.forEach(g=>g(t,m))}},i=()=>t,a={setState:n,getState:i,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{var l;((l=S)==null?void 0:l.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead 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},F_=e=>e?L_(e):L_;var W_=Z(ae(),1),G_=Z(K_(),1),{useSyncExternalStoreWithSelector:M7}=G_.default;function N7(e,t=e.getState,r){let n=M7(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,W_.useDebugValue)(n),n}var q_=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?F_(e):e,n=(i,o)=>N7(r,i,o);return Object.assign(n,r),n},pd=e=>e?q_(e):q_;c();d();f();var wa=(g=>(g.ConnectionFailed="connection_failed",g.VerificationRejected="verification_rejected",g.MaxVerificationsReached="max_verifications_reached",g.AlreadySigned="already_signed",g.CredentialUnavailable="credential_unavailable",g.MalformedRequest="malformed_request",g.InvalidNetwork="invalid_network",g.InclusionProofFailed="inclusion_proof_failed",g.InclusionProofPending="inclusion_proof_pending",g.UnexpectedResponse="unexpected_response",g.FailedByHostApp="failed_by_host_app",g.GenericError="generic_error",g))(wa||{});c();d();f();var md=(r=>(r.Orb="orb",r.Phone="phone",r))(md||{});c();d();f();c();d();f();var kg=function(e,t){return kg=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])},kg(e,t)};function k7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kg(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 cs(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(h){try{u(n.next(h))}catch(m){s(m)}}function l(h){try{u(n.throw(h))}catch(m){s(m)}}function u(h){h.done?o(h.value):i(h.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function fs(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(u){return function(h){return l([u,h])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function L7(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 F7(e,t){if(!e)throw new Error(t)}function $7(e){return e==null?void 0:e.replace(/\/+$/,"")}function U7(e,t){return t===void 0&&(t={}),cs(this,void 0,void 0,function(){var r,n,i,o,s,a,l,u,h,m;return fs(this,function(g){switch(g.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,l=null,u=0,g.label=1;case 1:if(!(u<n+1))return[3,8];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,e()];case 3:return h=g.sent(),[2,h];case 4:if(m=g.sent(),l=m,!a(m))throw m;return[3,5];case 5:return[4,new Promise(function(x){return setTimeout(x,o)})];case 6:g.sent(),g.label=7;case 7:return u++,[3,1];case 8:throw l}})})}function Y_(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 t2(){return new Date().getTime()}function X_(){return new Date().toISOString()}function J_(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var $u=String.fromCharCode,Q_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gd={};function V7(e,t){if(!gd[e]){gd[e]={};for(var r=0;r<e.length;r++)gd[e][e.charAt(r)]=r}return gd[e][t]}var Bu={compressToBase64:function(e){if(e==null)return"";var t=Bu._compress(e,6,function(r){return Q_.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:Bu._decompress(e.length,32,function(t){return V7(Q_,e.charAt(t))})},compress:function(e){return Bu._compress(e,16,function(t){return $u(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,l="",u="",h="",m=2,g=3,x=2,E=0,_=0,A;for(A=0;A<e.length;A+=1)if(l=e.charAt(A),Object.prototype.hasOwnProperty.call(n,l)||(n[l]=g++,i[l]=!0),u=h+l,Object.prototype.hasOwnProperty.call(n,u))h=u;else{if(Object.prototype.hasOwnProperty.call(i,h)){if(h.charCodeAt(0)<256){for(s=0;s<x;s++)E=E<<1,_==t-1?(_=0,o.push(r(E)),E=0):_++;for(a=h.charCodeAt(0),s=0;s<8;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1}else{for(a=1,s=0;s<x;s++)E=E<<1|a,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=0;for(a=h.charCodeAt(0),s=0;s<16;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1}m--,m==0&&(m=Math.pow(2,x),x++),delete i[h]}else for(a=n[h],s=0;s<x;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1;m--,m==0&&(m=Math.pow(2,x),x++),n[u]=g++,h=String(l)}if(h!==""){if(Object.prototype.hasOwnProperty.call(i,h)){if(h.charCodeAt(0)<256){for(s=0;s<x;s++)E=E<<1,_==t-1?(_=0,o.push(r(E)),E=0):_++;for(a=h.charCodeAt(0),s=0;s<8;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1}else{for(a=1,s=0;s<x;s++)E=E<<1|a,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=0;for(a=h.charCodeAt(0),s=0;s<16;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1}m--,m==0&&(m=Math.pow(2,x),x++),delete i[h]}else for(a=n[h],s=0;s<x;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1;m--,m==0&&(m=Math.pow(2,x),x++)}for(a=2,s=0;s<x;s++)E=E<<1|a&1,_==t-1?(_=0,o.push(r(E)),E=0):_++,a=a>>1;for(;;)if(E=E<<1,_==t-1){o.push(r(E));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:Bu._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,l=3,u="",h,m,g,x,E,_,A;for(h=0;h<3;h+=1)n[h]=h;for(g=0,E=Math.pow(2,2),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;switch(g){case 0:for(g=0,E=Math.pow(2,8),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;A=$u(g);break;case 1:for(g=0,E=Math.pow(2,16),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;A=$u(g);break;case 2:return""}for(n[3]=A,m=A,i.push(A);;){if(o.index>e)return"";for(g=0,E=Math.pow(2,l),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;switch(A=g){case 0:for(g=0,E=Math.pow(2,8),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;n[a++]=$u(g),A=a-1,s--;break;case 1:for(g=0,E=Math.pow(2,16),_=1;_!=E;)x=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(x>0?1:0)*_,_<<=1;n[a++]=$u(g),A=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,l),l++),n[A])u=n[A];else if(A===a)u=m+m.charAt(0);else return null;i.push(u),n[a++]=m+u.charAt(0),s--,m=u,s==0&&(s=Math.pow(2,l),l++)}}},B7=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}(),j7=function(){function e(t,r){var n=this,i,o,s,a,l,u;this.flagCallReported={},this._events=new B7,F7(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=$7((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=(l=r==null?void 0:r.requestTimeout)!==null&&l!==void 0?l:1e4,this._sessionExpirationTimeSeconds=(u=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&u!==void 0?u:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&J_(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 l,u;return!!(!((u=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||u===void 0)&&u[a])}).reduce(function(a,l){var u,h;return a[l]=((h=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||h===void 0?void 0:h[l])||!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=L7([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=Y_(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=Y_(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),cs(this,void 0,void 0,function(){var r,n,i,o,s,a,l=this;return fs(this,function(u){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(h){return h.json()}).then(function(h){return h.featureFlags&&l.setKnownFeatureFlags(h.featureFlags),h}).finally(function(){l._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),cs(this,void 0,void 0,function(){return fs(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 cs(r,void 0,void 0,function(){var n;return fs(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 cs(n,void 0,void 0,function(){var i;return fs(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:X_()});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=J_(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(m){return m.message}),s={api_key:this.apiKey,batch:o,sent_at:X_()},a=function(m){t==null||t(m,o),r._events.emit("flush",o)};this.getCustomUserAgent();var l=JSON.stringify(s),u=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(t2(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),h=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(Bu.compressToBase64(l)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:l};this.fetchWithRetry(u,h).then(function(){return a()}).catch(function(m){if(m.response){var g=new Error(m.response.statusText);return a(g)}a(m)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return cs(this,void 0,void 0,function(){var s=this;return fs(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(u){var h=new AbortController;return setTimeout(function(){return h.abort()},u),h.signal}),[2,U7(function(){return s.fetch(t,Se({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return cs(this,void 0,void 0,function(){return fs(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}(),r2="2.0.0";function z7(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=Se(Se({},t),{$os:K7(e),$browser:n2(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:W7(e.document.referrer),$device:q7(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:H7(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:r2,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:t2()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function n2(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 H7(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=n2(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 K7(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 q7(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 W7(e){var t=e.split("/");return t.length>=3?t[2]:""}var i2={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{i2.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}},Z_=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}}},e2=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}},Ng=void 0,Uu=void 0,Vu=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},G7=function(e,t){if(t){if(!localStorage){var r=Z_(t.localStorage);Ng=e2(r)?r:void 0}if(!Uu){var n=Z_(t.sessionStorage);Uu=e2(n)?n:void 0}}switch(e){case"cookie":return i2||Ng||Uu||Vu();case"localStorage":return Ng||Uu||Vu();case"sessionStorage":return Uu||Vu();case"memory":return Vu();default:return Vu()}},o2=function(e){k7(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=G7((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 r2},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return Se(Se({},e.prototype.getCommonEventProperties.call(this)),z7(window))},t}(j7);function Y7(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function X7(e,t){try{return await fetch(e,t)}catch(r){throw Y7(r)}}var En=null;typeof globalThis.window<"u"&&(En=new o2("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),En.fetch=X7);var s2={version:"0.4.9",package:"idkit-js"};var a2=e=>{e?En==null||En.capture("idkit loaded",s2):En==null||En.optOut()},l2=()=>{En==null||En.capture("idkit opened",s2)};var J7=pd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",credential_types:[],open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},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}),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,credential_types:a,action_description:l,walletConnectProjectId:u,autoClose:h,copy:m,theme:g},x)=>{let E=a==null?void 0:a.filter(_=>Object.values(md).includes(_));e(_=>({theme:g,signal:i,action:o,app_id:s,credential_types:E,autoClose:h,action_description:l,walletConnectProjectId:u,copy:K(K({},_.copy),m)})),n&&t().addSuccessCallback(n,x),r&&t().addVerificationCallback(r,x)},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:"failed_by_host_app",message:i}})})},onOpenChange:r=>{if(r)return l2(),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,errorState:null,processing:!1,stage:"WORLD_ID"})}})),_n=J7;c();d();f();var vk=Z(A6(),1);c();d();f();var gk=Z(ae(),1);c();d();f();c();d();f();var Kt=Z(ae()),B6=Z(Ds()),wi=Z(U6()),t$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function j6(e,t){return e(t={exports:{}},t.exports),t.exports}var r$=j6(function(e){(function(t){var r=function(A,C,P){if(!l(C)||h(C)||m(C)||g(C)||a(C))return C;var D,O=0,$=0;if(u(C))for(D=[],$=C.length;O<$;O++)D.push(r(A,C[O],P));else for(var j in D={},C)Object.prototype.hasOwnProperty.call(C,j)&&(D[A(j,P)]=r(A,C[j],P));return D},n=function(A){return x(A)?A:(A=A.replace(/[\-_\s]+(.)?/g,function(C,P){return P?P.toUpperCase():""})).substr(0,1).toLowerCase()+A.substr(1)},i=function(A){var C=n(A);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(A,C){return function(P,D){var O=(D=D||{}).separator||"_",$=D.split||/(?=[A-Z])/;return P.split($).join(O)}(A,C).toLowerCase()},s=Object.prototype.toString,a=function(A){return typeof A=="function"},l=function(A){return A===Object(A)},u=function(A){return s.call(A)=="[object Array]"},h=function(A){return s.call(A)=="[object Date]"},m=function(A){return s.call(A)=="[object RegExp]"},g=function(A){return s.call(A)=="[object Boolean]"},x=function(A){return(A-=0)==A},E=function(A,C){var P=C&&"process"in C?C.process:C;return typeof P!="function"?A:function(D,O){return P(D,A,O)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(A,C){return r(E(n,C),A)},decamelizeKeys:function(A,C){return r(E(o,C),A,C)},pascalizeKeys:function(A,C){return r(E(i,C),A)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(t$)}).decamelize,n$=j6(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}),i$=function(e){if(Array.isArray(e))return e},o$=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(l){i=!0,o=l}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},V6=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},s$=function(e,t){if(e){if(typeof e=="string")return V6(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)?V6(e,t):void 0}},a$=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.`)},l$=function(e,t){return i$(e)||o$(e,t)||s$(e,t)||a$()},u$=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},c$=function(e,t){if(e==null)return{};var r,n,i=u$(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},f$=(0,Kt.createContext)(null);function Jv(e){var t=e.root,r=e.children;return(0,B6.createPortal)(r,t)}function d$(e){var t=(0,Kt.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,l=r.styleSheets,u=r.ssr,h=r.children,m=c$(r,["mode","delegatesFocus","styleSheets","ssr","children"]),g=(o=(0,Kt.useRef)((i=n)&&i.current),(0,Kt.useEffect)(function(){i&&(i.current=o.current)},[i]),o),x=(0,Kt.useState)(null),E=l$(x,2),_=E[0],A=E[1],C="node_".concat(s).concat(a);return(0,Kt.useEffect)(function(){if(g.current)try{if(typeof n=="function"&&n(g.current),u){var P=g.current.shadowRoot;return void A(P)}var D=g.current.attachShadow({mode:s,delegatesFocus:a});l.length>0&&(D.adoptedStyleSheets=l),A(D)}catch(O){(function($){var j=$.error,F=$.styleSheets,U=$.root;switch(j.name){case"NotSupportedError":F.length>0&&(U.adoptedStyleSheets=F);break;default:throw j}})({error:O,styleSheets:l,root:_})}},[n,g,l]),Kt.default.createElement(Kt.default.Fragment,null,Kt.default.createElement(e.tag,n$({key:C,ref:g},m),(_||u)&&Kt.default.createElement(f$.Provider,{value:_},u?Kt.default.createElement("template",{shadowroot:"open"},e.render({root:_,ssr:u,children:h})):Kt.default.createElement(Jv,{root:_},e.render({root:_,ssr:u,children:h})))))});return t.propTypes={mode:wi.default.oneOf(["open","closed"]),delegatesFocus:wi.default.bool,styleSheets:wi.default.arrayOf(wi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:wi.default.bool,children:wi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Jv.propTypes={root:wi.default.object.isRequired,children:wi.default.node},Jv.defaultProps={children:null};var Xv=new Map;function h$(){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=r$(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Xv.has(s)||Xv.set(s,d$({tag:o,render:r})),Xv.get(s)}})}var p$=h$(),z6=p$;c();d();f();var m$=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&family=Sora:wght@600&display=swap");
|
|
17
|
+
/*! tailwindcss v3.2.4 | 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}.\\!absolute{position:absolute!important}.relative{position:relative}.inset-px{bottom:1px;left:1px;right:1px;top:1px}.inset-0{bottom:0;left:0;right:0;top:0}.top-1\\/2{top:50%}.left-1\\/2{left:50%}.z-10{z-index:10}.z-0{z-index:0}.z-50{z-index:50}.\\!-m-px{margin:-1px!important}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mt-\\[2px\\]{margin-top:2px}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.-mt-5{margin-top:-1.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.-mt-6{margin-top:-1.5rem}.-ml-4{margin-left:-1rem}.mb-2{margin-bottom:.5rem}.mt-3{margin-top:.75rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-8{height:2rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-24{height:6rem}.\\!h-px{height:1px!important}.h-12{height:3rem}.h-20{height:5rem}.h-\\[244px\\]{height:244px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.w-8{width:2rem}.w-3{width:.75rem}.w-4{width:1rem}.w-\\[34px\\]{width:34px}.w-full{width:100%}.w-5{width:1.25rem}.w-24{width:6rem}.\\!w-px{width:1px!important}.w-12{width:3rem}.w-20{width:5rem}.w-\\[244px\\]{width:244px}.w-\\[72px\\]{width:72px}.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%}.scale-x-\\[2\\.0\\]{--tw-scale-x:2.0}.scale-x-\\[2\\.0\\],.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))}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.place-items-center{place-items:center}.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-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-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-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-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-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)))}.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-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-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))}.overflow-hidden{overflow:hidden}.\\!overflow-hidden{overflow:hidden!important}.overflow-y-hidden{overflow-y:hidden}.\\!whitespace-nowrap{white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-4{border-width:4px}.\\!border-0{border-width:0!important}.border-solid{border-style:solid}.border-none{border-style:none}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.border-current{border-color:currentColor}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-r-transparent{border-right-color:transparent}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/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-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-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-gradient-conic{background-image:conic-gradient(var(--tw-gradient-stops))}.from-black{--tw-gradient-from:#000;--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-f2f5f9{--tw-gradient-from:#f2f5f9;--tw-gradient-to:rgba(242,245,249,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\\/30{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.3),var(--tw-gradient-to)}.via-gray-200{--tw-gradient-to:rgba(229,231,235,0);--tw-gradient-stops:var(--tw-gradient-from),#e5e7eb,var(--tw-gradient-to)}.to-black{--tw-gradient-to:#000}.to-gray-200{--tw-gradient-to:#e5e7eb}.\\!p-0{padding:0!important}.p-5{padding:1.25rem}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-24{padding-left:6rem;padding-right:6rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.px-12{padding-left:3rem;padding-right:3rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pt-6{padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.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}.font-sora{font-family:Sora,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-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;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-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 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{--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)}.blur{--tw-blur:blur(8px)}.blur,.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,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-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)}.will-change-transform{will-change:transform}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.\\!\\[clip\\:rect\\(0\\2c 0\\2c 0\\2c 0\\)\\]{clip:rect(0,0,0,0)!important}.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-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))}@media (prefers-reduced-motion:reduce){@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}}.dark .dark\\:border{border-width:1px}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/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-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}@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-2xl{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.md\\:p-4{padding:1rem}}`,H6=()=>y.createElement("style",null,m$);c();d();f();var Lh=Z(ae(),1),g$=()=>{let[e,t]=(0,Lh.useState)("desktop");return(0,Lh.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},Ya=g$;c();d();f();var xi=(...e)=>e.filter(Boolean).join(" "),K6=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);c();d();f();function Xa(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}c();d();f();var y$=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.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"})),Fh=y$;c();d();f();var v$=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),q6={["failed_by_host_app"]:"Verification Declined",["generic_error"]:"Verification Failed"},w$={["connection_failed"]:"Connection to the World App or identity wallet failed. Please try again.",["verification_rejected"]:"Verification request rejected in the World App.",["max_verifications_reached"]:"You have already verified the maximum number of times for this action.",["already_signed"]:"You have already verified for this action.",["credential_unavailable"]:"It seems you do not have the credential required by this app.",["malformed_request"]:"There was a problem with this request. Please try again or contact the app owner.",["invalid_network"]:"This app is not available on the network you are connected to. Visit docs.worldcoin.org/test for details.",["inclusion_proof_failed"]:"There was an issue fetching your credential. Please try again.",["inclusion_proof_pending"]:"Your credential is still being registered. Please wait a few minutes and try again.",["failed_by_host_app"]:"Verification failed by the app. Please contact the app owner for details.",["unexpected_response"]:"Unexpected response from the World App or identity wallet. Please try again.",["generic_error"]:"Something unexpected went wrong. Please try again."},x$=()=>{var r;let{retryFlow:e,errorState:t}=_n(v$,Xa);return y.createElement("div",{className:"space-y-8"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},y.createElement(Fh,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(t==null?void 0:t.code)&&q6[t.code]||q6["generic_error"]),y.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||w$[(r=t==null?void 0:t.code)!=null?r:"generic_error"])),y.createElement("div",{className:"flex justify-center"},y.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")),y.createElement("div",null,y.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},W6=x$;c();d();f();var b$=({className:e=""})=>y.createElement("div",{className:"flex items-center justify-center"},y.createElement("div",{className:`inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ${e}`,role:"status"},y.createElement("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading..."))),xo=b$;c();d();f();c();d();f();function Te(){return Te=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},Te.apply(this,arguments)}var fe=Z(ae()),d5=Z(Ds());c();d();f();function gr(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 G6=Z(ae());function E$(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Qv(...e){return t=>e.forEach(r=>E$(r,t))}function yr(...e){return(0,G6.useCallback)(Qv(...e),e)}c();d();f();var On=Z(ae());c();d();f();var Pr=Z(ae());function Y6(e,t){let r=(0,Pr.createContext)(t);function n(o){let u=o,{children:s}=u,a=ge(u,["children"]),l=(0,Pr.useMemo)(()=>a,Object.values(a));return(0,Pr.createElement)(r.Provider,{value:l},s)}function i(o){let s=(0,Pr.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 Ja(e,t=[]){let r=[];function n(o,s){let a=(0,Pr.createContext)(s),l=r.length;r=[...r,s];function u(m){let C=m,{scope:g,children:x}=C,E=ge(C,["scope","children"]),_=(g==null?void 0:g[e][l])||a,A=(0,Pr.useMemo)(()=>E,Object.values(E));return(0,Pr.createElement)(_.Provider,{value:A},x)}function h(m,g){let x=(g==null?void 0:g[e][l])||a,E=(0,Pr.useContext)(x);if(E)return E;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,h]}let i=()=>{let o=r.map(s=>(0,Pr.createContext)(s));return function(a){let l=(a==null?void 0:a[e])||o;return(0,Pr.useMemo)(()=>({[`__scope${e}`]:de(K({},a),{[e]:l})}),[a,l])}};return i.scopeName=e,[n,_$(i,...t)]}function _$(...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:l,scopeName:u})=>{let m=l(o)[`__scope${u}`];return K(K({},a),m)},{});return(0,Pr.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var Dt=Z(ae());var bo=(0,Dt.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=ge(s,["children"]),i=Dt.Children.toArray(r),o=i.find(C$);if(o){let a=o.props.children,l=i.map(u=>u===o?Dt.Children.count(a)>1?Dt.Children.only(null):(0,Dt.isValidElement)(a)?a.props.children:null:u);return(0,Dt.createElement)(Zv,Te({},n,{ref:t}),(0,Dt.isValidElement)(a)?(0,Dt.cloneElement)(a,void 0,l):null)}return(0,Dt.createElement)(Zv,Te({},n,{ref:t}),r)});bo.displayName="Slot";var Zv=(0,Dt.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=ge(i,["children"]);return(0,Dt.isValidElement)(r)?(0,Dt.cloneElement)(r,de(K({},T$(n,r.props)),{ref:Qv(t,r.ref)})):Dt.Children.count(r)>1?Dt.Children.only(null):null});Zv.displayName="SlotClone";var S$=({children:e})=>(0,Dt.createElement)(Dt.Fragment,null,e);function C$(e){return(0,Dt.isValidElement)(e)&&e.type===S$}function T$(e,t){let r=K({},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]=K(K({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return K(K({},e),r)}function X6(e){let t=e+"CollectionProvider",[r,n]=Ja(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{let{scope:E,children:_}=x,A=On.default.useRef(null),C=On.default.useRef(new Map).current;return On.default.createElement(i,{scope:E,itemMap:C,collectionRef:A},_)},a=e+"CollectionSlot",l=On.default.forwardRef((x,E)=>{let{scope:_,children:A}=x,C=o(a,_),P=yr(E,C.collectionRef);return On.default.createElement(bo,{ref:P},A)}),u=e+"CollectionItemSlot",h="data-radix-collection-item",m=On.default.forwardRef((x,E)=>{let $=x,{scope:_,children:A}=$,C=ge($,["scope","children"]),P=On.default.useRef(null),D=yr(E,P),O=o(u,_);return On.default.useEffect(()=>(O.itemMap.set(P,K({ref:P},C)),()=>void O.itemMap.delete(P))),On.default.createElement(bo,{[h]:"",ref:D},A)});function g(x){let E=o(e+"CollectionConsumer",x);return On.default.useCallback(()=>{let A=E.collectionRef.current;if(!A)return[];let C=Array.from(A.querySelectorAll(`[${h}]`));return Array.from(E.itemMap.values()).sort((O,$)=>C.indexOf(O.ref.current)-C.indexOf($.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},g,n]}c();d();f();var Le=Z(ae());c();d();f();var Qa=Z(ae()),J6=Z(Ds());var D$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],sr=D$.reduce((e,t)=>{let r=(0,Qa.forwardRef)((n,i)=>{let l=n,{asChild:o}=l,s=ge(l,["asChild"]),a=o?bo:t;return(0,Qa.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Qa.createElement)(a,Te({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,de(K({},e),{[t]:r})},{});function $h(e,t){e&&(0,J6.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var Za=Z(ae());function $r(e){let t=(0,Za.useRef)(e);return(0,Za.useEffect)(()=>{t.current=e}),(0,Za.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var Q6=Z(ae());function Z6(e,t=globalThis==null?void 0:globalThis.document){let r=$r(e);(0,Q6.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var e1="dismissableLayer.update",P$="dismissableLayer.pointerDownOutside",I$="dismissableLayer.focusOutside",e5,r5=(0,Le.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),t1=(0,Le.forwardRef)((e,t)=>{var r;let U=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:l}=U,u=ge(U,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),h=(0,Le.useContext)(r5),[m,g]=(0,Le.useState)(null),x=(r=m==null?void 0:m.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,E]=(0,Le.useState)({}),_=yr(t,W=>g(W)),A=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),P=A.indexOf(C),D=m?A.indexOf(m):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,$=D>=P,j=A$(W=>{let X=W.target,G=[...h.branches].some(Y=>Y.contains(X));!$||G||(o==null||o(W),a==null||a(W),W.defaultPrevented||l==null||l())},x),F=O$(W=>{let X=W.target;[...h.branches].some(Y=>Y.contains(X))||(s==null||s(W),a==null||a(W),W.defaultPrevented||l==null||l())},x);return Z6(W=>{D===h.layers.size-1&&(i==null||i(W),!W.defaultPrevented&&l&&(W.preventDefault(),l()))},x),(0,Le.useEffect)(()=>{if(!!m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(e5=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),t5(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=e5)}},[m,x,n,h]),(0,Le.useEffect)(()=>()=>{!m||(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),t5())},[m,h]),(0,Le.useEffect)(()=>{let W=()=>E({});return document.addEventListener(e1,W),()=>document.removeEventListener(e1,W)},[]),(0,Le.createElement)(sr.div,Te({},u,{ref:_,style:K({pointerEvents:O?$?"auto":"none":void 0},e.style),onFocusCapture:gr(e.onFocusCapture,F.onFocusCapture),onBlurCapture:gr(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:gr(e.onPointerDownCapture,j.onPointerDownCapture)}))});var R$=(0,Le.forwardRef)((e,t)=>{let r=(0,Le.useContext)(r5),n=(0,Le.useRef)(null),i=yr(t,n);return(0,Le.useEffect)(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,Le.createElement)(sr.div,Te({},e,{ref:i}))});function A$(e,t=globalThis==null?void 0:globalThis.document){let r=$r(e),n=(0,Le.useRef)(!1),i=(0,Le.useRef)(()=>{});return(0,Le.useEffect)(()=>{let o=a=>{if(a.target&&!n.current){let u=function(){n5(P$,r,l,{discrete:!0})},l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}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 O$(e,t=globalThis==null?void 0:globalThis.document){let r=$r(e),n=(0,Le.useRef)(!1);return(0,Le.useEffect)(()=>{let i=o=>{o.target&&!n.current&&n5(I$,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 t5(){let e=new CustomEvent(e1);document.dispatchEvent(e)}function n5(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?$h(i,o):i.dispatchEvent(o)}var i5=t1,o5=R$;c();d();f();var Uh=Z(ae()),s5=Z(Ds());var Vh=(0,Uh.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=ge(o,["container"]);return n?s5.default.createPortal((0,Uh.createElement)(sr.div,Te({},i,{ref:t})),n):null});c();d();f();var vr=Z(ae()),l5=Z(Ds());c();d();f();var a5=Z(ae()),Ps=Boolean(globalThis==null?void 0:globalThis.document)?a5.useLayoutEffect:()=>{};function M$(e,t){return(0,vr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var Mc=e=>{let{present:t,children:r}=e,n=N$(t),i=typeof r=="function"?r({present:n.isPresent}):vr.Children.only(r),o=yr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,vr.cloneElement)(i,{ref:o}):null};Mc.displayName="Presence";function N$(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,l]=M$(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,vr.useEffect)(()=>{let u=Bh(n.current);o.current=a==="mounted"?u:"none"},[a]),Ps(()=>{let u=n.current,h=i.current;if(h!==e){let g=o.current,x=Bh(u);e?l("MOUNT"):x==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&g!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ps(()=>{if(t){let u=m=>{let x=Bh(n.current).includes(m.animationName);m.target===t&&x&&(0,l5.flushSync)(()=>l("ANIMATION_END"))},h=m=>{m.target===t&&(o.current=Bh(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,vr.useCallback)(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Bh(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var Eo=Z(ae());function u5({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=k$({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=$r(r),l=(0,Eo.useCallback)(u=>{if(o){let m=typeof u=="function"?u(e):u;m!==e&&a(m)}else i(u)},[o,e,i,a]);return[s,l]}function k$({defaultProp:e,onChange:t}){let r=(0,Eo.useState)(e),[n]=r,i=(0,Eo.useRef)(n),o=$r(t);return(0,Eo.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var jh=Z(ae());var r1=(0,jh.forwardRef)((e,t)=>(0,jh.createElement)(sr.span,Te({},e,{ref:t,style:K({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 h5="ToastProvider",[s1,L$,F$]=X6("Toast"),[p5,WZ]=Ja("Toast",[F$]),[$$,Hh]=p5(h5),m5=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,l]=(0,fe.useState)(null),[u,h]=(0,fe.useState)(0),m=(0,fe.useRef)(!1),g=(0,fe.useRef)(!1);return(0,fe.createElement)(s1.Provider,{scope:t},(0,fe.createElement)($$,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:(0,fe.useCallback)(()=>h(x=>x+1),[]),onToastRemove:(0,fe.useCallback)(()=>h(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:g},s))};m5.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${h5}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var U$="ToastViewport",V$=["F8"],i1="toast.viewportPause",o1="toast.viewportResume",B$=(0,fe.forwardRef)((e,t)=>{let A=e,{__scopeToast:r,hotkey:n=V$,label:i="Notifications ({hotkey})"}=A,o=ge(A,["__scopeToast","hotkey","label"]),s=Hh(U$,r),a=L$(r),l=(0,fe.useRef)(null),u=(0,fe.useRef)(null),h=(0,fe.useRef)(null),m=(0,fe.useRef)(null),g=yr(t,m,s.onViewportChange),x=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=s.toastCount>0;(0,fe.useEffect)(()=>{let C=P=>{var D;n.every($=>P[$]||P.code===$)&&((D=m.current)===null||D===void 0||D.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[n]),(0,fe.useEffect)(()=>{let C=l.current,P=m.current;if(E&&C&&P){let D=()=>{if(!s.isClosePausedRef.current){let F=new CustomEvent(i1);P.dispatchEvent(F),s.isClosePausedRef.current=!0}},O=()=>{if(s.isClosePausedRef.current){let F=new CustomEvent(o1);P.dispatchEvent(F),s.isClosePausedRef.current=!1}},$=F=>{!C.contains(F.relatedTarget)&&O()},j=()=>{C.contains(document.activeElement)||O()};return C.addEventListener("focusin",D),C.addEventListener("focusout",$),C.addEventListener("pointermove",D),C.addEventListener("pointerleave",j),window.addEventListener("blur",D),window.addEventListener("focus",O),()=>{C.removeEventListener("focusin",D),C.removeEventListener("focusout",$),C.removeEventListener("pointermove",D),C.removeEventListener("pointerleave",j),window.removeEventListener("blur",D),window.removeEventListener("focus",O)}}},[E,s.isClosePausedRef]);let _=(0,fe.useCallback)(({tabbingDirection:C})=>{let D=a().map(O=>{let $=O.ref.current,j=[$,...n9($)];return C==="forwards"?j:j.reverse()});return(C==="forwards"?D.reverse():D).flat()},[a]);return(0,fe.useEffect)(()=>{let C=m.current;if(C){let P=D=>{let O=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!O){let W=document.activeElement,X=D.shiftKey;if(D.target===C&&X){var j;(j=u.current)===null||j===void 0||j.focus();return}let M=_({tabbingDirection:X?"backwards":"forwards"}),p=M.findIndex(b=>b===W);if(n1(M.slice(p+1)))D.preventDefault();else{var F,U;X?(F=u.current)===null||F===void 0||F.focus():(U=h.current)===null||U===void 0||U.focus()}}};return C.addEventListener("keydown",P),()=>C.removeEventListener("keydown",P)}},[a,_]),(0,fe.createElement)(o5,{ref:l,role:"region","aria-label":i.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&(0,fe.createElement)(c5,{ref:u,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"forwards"});n1(C)}}),(0,fe.createElement)(s1.Slot,{scope:r},(0,fe.createElement)(sr.ol,Te({tabIndex:-1},o,{ref:g}))),E&&(0,fe.createElement)(c5,{ref:h,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"backwards"});n1(C)}}))}),j$="ToastFocusProxy",c5=(0,fe.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=ge(s,["__scopeToast","onFocusFromOutsideViewport"]),o=Hh(j$,r);return(0,fe.createElement)(r1,Te({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var l;let u=a.relatedTarget;!((l=o.viewport)!==null&&l!==void 0&&l.contains(u))&&n()}}))}),Kh="Toast",z$="toast.swipeStart",H$="toast.swipeMove",K$="toast.swipeCancel",q$="toast.swipeEnd";var[W$,G$]=p5(Kh,{onClose(){}}),Y$=(0,fe.forwardRef)((e,t)=>{let p=e,{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:h,onSwipeMove:m,onSwipeCancel:g,onSwipeEnd:x}=p,E=ge(p,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),_=Hh(Kh,r),[A,C]=(0,fe.useState)(null),P=yr(t,b=>C(b)),D=(0,fe.useRef)(null),O=(0,fe.useRef)(null),$=i||_.duration,j=(0,fe.useRef)(0),F=(0,fe.useRef)($),U=(0,fe.useRef)(0),{onToastAdd:W,onToastRemove:X}=_,G=$r(()=>{var b;(A==null?void 0:A.contains(document.activeElement))&&((b=_.viewport)===null||b===void 0||b.focus()),s()}),Y=(0,fe.useCallback)(b=>{!b||b===1/0||(window.clearTimeout(U.current),j.current=new Date().getTime(),U.current=window.setTimeout(G,b))},[G]);(0,fe.useEffect)(()=>{let b=_.viewport;if(b){let I=()=>{Y(F.current),u==null||u()},R=()=>{let N=new Date().getTime()-j.current;F.current=F.current-N,window.clearTimeout(U.current),l==null||l()};return b.addEventListener(i1,R),b.addEventListener(o1,I),()=>{b.removeEventListener(i1,R),b.removeEventListener(o1,I)}}},[_.viewport,$,l,u,Y]),(0,fe.useEffect)(()=>{o&&!_.isClosePausedRef.current&&Y($)},[o,$,_.isClosePausedRef,Y]),(0,fe.useEffect)(()=>(W(),()=>X()),[W,X]);let M=(0,fe.useMemo)(()=>A?y5(A):null,[A]);return _.viewport?(0,fe.createElement)(fe.Fragment,null,M&&(0,fe.createElement)(X$,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},M),(0,fe.createElement)(W$,{scope:r,onClose:G},(0,d5.createPortal)((0,fe.createElement)(s1.ItemSlot,{scope:r},(0,fe.createElement)(i5,{asChild:!0,onEscapeKeyDown:gr(a,()=>{_.isFocusedToastEscapeKeyDownRef.current||G(),_.isFocusedToastEscapeKeyDownRef.current=!1})},(0,fe.createElement)(sr.li,Te({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":_.swipeDirection},E,{ref:P,style:K({userSelect:"none",touchAction:"none"},e.style),onKeyDown:gr(e.onKeyDown,b=>{b.key==="Escape"&&(a==null||a(b.nativeEvent),b.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:gr(e.onPointerDown,b=>{b.button===0&&(D.current={x:b.clientX,y:b.clientY})}),onPointerMove:gr(e.onPointerMove,b=>{if(!D.current)return;let I=b.clientX-D.current.x,R=b.clientY-D.current.y,N=Boolean(O.current),V=["left","right"].includes(_.swipeDirection),B=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,k=V?B(0,I):0,v=V?0:B(0,R),L=b.pointerType==="touch"?10:2,J={x:k,y:v},T={originalEvent:b,delta:J};N?(O.current=J,zh(H$,m,T,{discrete:!1})):f5(J,_.swipeDirection,L)?(O.current=J,zh(z$,h,T,{discrete:!1}),b.target.setPointerCapture(b.pointerId)):(Math.abs(I)>L||Math.abs(R)>L)&&(D.current=null)}),onPointerUp:gr(e.onPointerUp,b=>{let I=O.current,R=b.target;if(R.hasPointerCapture(b.pointerId)&&R.releasePointerCapture(b.pointerId),O.current=null,D.current=null,I){let N=b.currentTarget,V={originalEvent:b,delta:I};f5(I,_.swipeDirection,_.swipeThreshold)?zh(q$,x,V,{discrete:!0}):zh(K$,g,V,{discrete:!0}),N.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})))),_.viewport))):null});Y$.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${Kh}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var X$=e=>{let u=e,{__scopeToast:t,children:r}=u,n=ge(u,["__scopeToast","children"]),i=Hh(Kh,t),[o,s]=(0,fe.useState)(!1),[a,l]=(0,fe.useState)(!1);return t9(()=>s(!0)),(0,fe.useEffect)(()=>{let h=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(h)},[]),a?null:(0,fe.createElement)(Vh,{asChild:!0},(0,fe.createElement)(r1,n,o&&(0,fe.createElement)(fe.Fragment,null,i.label," ",r)))};var J$="ToastAction",Q$=(0,fe.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=ge(i,["altText"]);return r?(0,fe.createElement)(g5,{altText:r,asChild:!0},(0,fe.createElement)(e9,Te({},n,{ref:t}))):null});Q$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${J$}\``)}};var Z$="ToastClose",e9=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=ge(o,["__scopeToast"]),i=G$(Z$,r);return(0,fe.createElement)(g5,{asChild:!0},(0,fe.createElement)(sr.button,Te({type:"button"},n,{ref:t,onClick:gr(e.onClick,i.onClose)})))}),g5=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=ge(o,["__scopeToast","altText"]);return(0,fe.createElement)(sr.div,Te({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function y5(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),r9(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(...y5(n))}}),t}function zh(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?$h(i,o):i.dispatchEvent(o)}var f5=(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 t9(e=()=>{}){let t=$r(e);Ps(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function r9(e){return e.nodeType===e.ELEMENT_NODE}function n9(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 n1(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var v5=m5,w5=B$;c();d();f();c();d();f();var x5="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 s9=n=>{var i=n,{border:e,size:t="sm"}=i,r=ge(i,["border","size"]);let o=t==="md"?36:24;return y.createElement(y.Fragment,null,e&&y.createElement("svg",{className:xi(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"},y.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"})),y.createElement("img",de(K({src:x5},r),{alt:"Verified",width:o,height:o})))},b5=s9;c();d();f();var a9=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),y.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"})),E5=a9;var l9=()=>y.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6 font-sans text-sm"},y.createElement(b5,{className:"h-12 w-12"}),y.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"Privacy preserving to the core."),y.createElement("ul",{className:"text-9eafc0 mb-6 list-disc space-y-3 px-12 dark:text-white"},y.createElement("li",{className:"text-left"},"World ID uses Zero-Knowledge Proofs to make it cryptographically impossible to track persons across applications."),y.createElement("li",{className:"text-left"},"Orb biometrics analyzed by the Orb are not stored."),y.createElement("li",{className:"text-left "},"Code and hardware are open source or source available on"," ",y.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0",rel:"noreferrer"},"GitHub"),".")),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 -ml-4 flex items-center space-x-3"},y.createElement(E5,{className:" h-4 w-4 "}),y.createElement("p",{className:"whitespace-nowrap text-sm font-medium"},"Biometrics are never shared."))),_5=l9;c();d();f();c();d();f();var u9=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),S5=u9;var c9=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},y.createElement(S5,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),y.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},"World ID verification was successful"))),C5=c9;c();d();f();c();d();f();var _D=Z(R5(),1);c();d();f();var MC=Z(OC(),1),np=Z(ae(),1),uU=e=>{let t=MC.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),[])},cU=({data:e,size:t=300})=>{let r=(0,np.useMemo)(()=>{let n=[],i=uU(e),o=t/i.length;return[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:a,y:l})=>{let u=(i.length-7)*o*a,h=(i.length-7)*o*l;for(let m=0;m<3;m++)n.push(y.createElement("rect",{fill:"currentColor",x:u+o*m,y:h+o*m,key:`${m}-${a}-${l}`,width:o*(7-m*2),height:o*(7-m*2),rx:(m-2)*-5,ry:(m-2)*-5,className:m%3===0?"text-black":m%3===1?"text-white":"text-black"}))}),i.forEach((a,l)=>{a.forEach((u,h)=>{!i[l][h]||l<7&&h<7||l>i.length-8&&h<7||l<7&&h>i.length-8||n.push(y.createElement("circle",{fill:"currentColor",r:o/3,key:`circle-${l}-${h}`,cx:l*o+o/2,cy:h*o+o/2,className:"text-black dark:text-white"}))})}),n},[t,e]);return y.createElement("svg",{height:t,width:t},r)},NC=(0,np.memo)(cU);var m0=Z(ae(),1);c();d();f();c();d();f();c();d();f();var R1=Z(ae(),1),Ls=Z(ae(),1);c();d();f();var kC=Z(ae(),1),ol=(0,kC.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var ip=Z(ae(),1),Ms=(0,ip.createContext)({});function LC(){return(0,ip.useContext)(Ms).visualElement}c();d();f();var Do=Z(ae(),1);c();d();f();var FC=Z(ae(),1),qn=(0,FC.createContext)(null);c();d();f();var op=Z(ae(),1);c();d();f();var hn=typeof document<"u";var Ns=hn?op.useLayoutEffect:op.useEffect;c();d();f();var $C=Z(ae(),1),sp=(0,$C.createContext)({strict:!1});function UC(e,t,r,n){let i=LC(),o=(0,Do.useContext)(sp),s=(0,Do.useContext)(qn),a=(0,Do.useContext)(ol).reducedMotion,l=(0,Do.useRef)();n=n||o.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let u=l.current;return Ns(()=>{u&&u.render()}),(0,Do.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),Ns(()=>()=>u&&u.notify("Unmount"),[]),u}c();d();f();var VC=Z(ae(),1);c();d();f();function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BC(e,t,r){return(0,VC.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 lp=Z(ae(),1);c();d();f();c();d();f();function _i(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function Po(e){return typeof e=="object"&&typeof e.start=="function"}var fU=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function ks(e){return Po(e.animate)||fU.some(t=>_i(e[t]))}function ap(e){return Boolean(ks(e)||e.variants)}function jC(e,t){if(ks(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 HC(e){let{initial:t,animate:r}=jC(e,(0,lp.useContext)(Ms));return(0,lp.useMemo)(()=>({initial:t,animate:r}),[zC(t),zC(r)])}function zC(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Si=e=>({isEnabled:t=>e.some(r=>!!t[r])}),Io={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 KC(e){for(let t in e)t==="projectionNodeConstructor"?Io.projectionNodeConstructor=e[t]:Io[t].Component=e[t]}c();d();f();c();d();f();var qC=Z(ae(),1);function Ro(e){let t=(0,qC.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var Ao={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var dU=1;function WC(){return Ro(()=>{if(Ao.hasEverUpdated)return dU++})}c();d();f();var GC=Z(ae(),1),sl=(0,GC.createContext)({});c();d();f();var YC=Z(ae(),1),up=class extends YC.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 XC=Z(ae(),1),cp=(0,XC.createContext)({});c();d();f();var JC=Symbol.for("motionComponentSymbol");function QC({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&KC(e);function s(l,u){let h=de(K(K({},(0,Ls.useContext)(ol)),l),{layoutId:hU(l)}),{isStatic:m}=h,g=null,x=HC(l),E=m?void 0:WC(),_=i(l,m);if(!m&&hn){x.visualElement=UC(o,_,h,t);let A=(0,Ls.useContext)(sp).strict,C=(0,Ls.useContext)(cp);x.visualElement&&(g=x.visualElement.loadFeatures(h,A,e,E,r||Io.projectionNodeConstructor,C))}return R1.createElement(up,{visualElement:x.visualElement,props:h},g,R1.createElement(Ms.Provider,{value:x},n(o,l,E,BC(_,x.visualElement,u),_,m,x.visualElement)))}let a=(0,Ls.forwardRef)(s);return a[JC]=o,a}function hU({layoutId:e}){let t=(0,Ls.useContext)(sl).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function ZC(e){function t(n,i={}){return QC(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 e8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function al(e){return typeof e!="string"||e.includes("-")?!1:!!(e8.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var b8=Z(ae(),1);c();d();f();var c8=Z(ae(),1);c();d();f();c();d();f();var ll={};function t8(e){Object.assign(ll,e)}c();d();f();var ul=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wn=new Set(ul);function fp(e,{layout:t,layoutId:r}){return Wn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ll[e]||e==="opacity")}c();d();f();var Qt=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var pU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mU=(e,t)=>ul.indexOf(e)-ul.indexOf(t);function r8({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(mU);for(let a of t)s+=`${pU[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 dp(e){return e.startsWith("--")}c();d();f();var n8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();c();d();f();var hp=(e,t)=>r=>Math.max(Math.min(r,t),e),Oo=e=>e%1?Number(e.toFixed(5)):e,Mo=/(-)?([\d]*\.?[\d])+/g,pp=/(#[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,i8=/^(#[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 Jr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ti=Object.assign(Object.assign({},Jr),{transform:hp(0,1)}),cl=Object.assign(Object.assign({},Jr),{default:1});c();d();f();var jc=e=>({test:t=>Ci(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mn=jc("deg"),wr=jc("%"),pe=jc("px"),A1=jc("vh"),O1=jc("vw"),mp=Object.assign(Object.assign({},wr),{parse:e=>wr.parse(e)/100,transform:e=>wr.transform(e*100)});c();d();f();c();d();f();var fl=(e,t)=>r=>Boolean(Ci(r)&&i8.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),gp=(e,t,r)=>n=>{if(!Ci(n))return n;let[i,o,s,a]=n.match(Mo);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var Gn={test:fl("hsl","hue"),parse:gp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wr.transform(Oo(t))+", "+wr.transform(Oo(r))+", "+Oo(Ti.transform(n))+")"};c();d();f();var gU=hp(0,255),yp=Object.assign(Object.assign({},Jr),{transform:e=>Math.round(gU(e))}),pn={test:fl("rgb","red"),parse:gp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+yp.transform(e)+", "+yp.transform(t)+", "+yp.transform(r)+", "+Oo(Ti.transform(n))+")"};c();d();f();function yU(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),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 dl={test:fl("#"),parse:yU,transform:pn.transform};c();d();f();var kt={test:e=>pn.test(e)||dl.test(e)||Gn.test(e),parse:e=>pn.test(e)?pn.parse(e):Gn.test(e)?Gn.parse(e):dl.parse(e),transform:e=>Ci(e)?e:e.hasOwnProperty("red")?pn.transform(e):Gn.transform(e)};c();d();f();var o8="${c}",s8="${n}";function vU(e){var t,r,n,i;return isNaN(e)&&Ci(e)&&((r=(t=e.match(Mo))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(pp))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function a8(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(pp);n&&(r=n.length,e=e.replace(pp,o8),t.push(...n.map(kt.parse)));let i=e.match(Mo);return i&&(e=e.replace(Mo,s8),t.push(...i.map(Jr.parse))),{values:t,numColors:r,tokenised:e}}function l8(e){return a8(e).values}function u8(e){let{values:t,numColors:r,tokenised:n}=a8(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?o8:s8,a<r?kt.transform(o[a]):Oo(o[a]));return s}}var wU=e=>typeof e=="number"?0:e;function xU(e){let t=l8(e);return u8(e)(t.map(wU))}var ar={test:vU,parse:l8,createTransformer:u8,getAnimatableNone:xU};c();d();f();var bU=new Set(["brightness","contrast","saturate","opacity"]);function EU(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Mo)||[];if(!n)return e;let i=r.replace(n,""),o=bU.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var _U=/([a-z-]*)\(.*?\)/g,hl=Object.assign(Object.assign({},ar),{getAnimatableNone:e=>{let t=e.match(_U);return t?t.map(EU).join(" "):e}});c();d();f();var M1=de(K({},Jr),{transform:Math.round});var vp={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:Mn,rotateX:Mn,rotateY:Mn,rotateZ:Mn,scale:cl,scaleX:cl,scaleY:cl,scaleZ:cl,skew:Mn,skewX:Mn,skewY:Mn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Ti,originX:mp,originY:mp,originZ:pe,zIndex:M1,fillOpacity:Ti,strokeOpacity:Ti,numOctaves:M1};function pl(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:l}=e;a.length=0;let u=!1,h=!1,m=!0;for(let g in t){let x=t[g];if(dp(g)){o[g]=x;continue}let E=vp[g],_=n8(x,E);if(Wn.has(g)){if(u=!0,s[g]=_,a.push(g),!m)continue;x!==(E.default||0)&&(m=!1)}else g.startsWith("origin")?(h=!0,l[g]=_):i[g]=_}if(t.transform||(u||n?i.transform=r8(e,r,m,n):i.transform&&(i.transform="none")),h){let{originX:g="50%",originY:x="50%",originZ:E=0}=l;i.transformOrigin=`${g} ${x} ${E}`}}c();d();f();var ml=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function N1(e,t,r){for(let n in t)!Qt(t[n])&&!fp(n,r)&&(e[n]=t[n])}function SU({transformTemplate:e},t,r){return(0,c8.useMemo)(()=>{let n=ml();return pl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function CU(e,t,r){let n=e.style||{},i={};return N1(i,n,e),Object.assign(i,SU(e,t,r)),e.transformValues?e.transformValues(i):i}function f8(e,t,r){let n={},i=CU(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 TU=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],DU=["whileTap","onTap","onTapStart","onTapCancel"],PU=["onPan","onPanStart","onPanSessionStart","onPanEnd"],IU=["whileInView","onViewportEnter","onViewportLeave","viewport"],RU=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",...IU,...DU,...TU,...PU]);function zc(e){return RU.has(e)}var p8=e=>!zc(e);function LU(e){!e||(p8=t=>t.startsWith("on")?!zc(t):e(t))}try{LU(h8().default)}catch(e){}function m8(e,t,r){let n={};for(let i in e)(p8(i)||r===!0&&zc(i)||!t&&!zc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var w8=Z(ae(),1);c();d();f();c();d();f();function g8(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function y8(e,t,r){let n=g8(t,e.x,e.width),i=g8(r,e.y,e.height);return`${n} ${i}`}c();d();f();var FU={offset:"stroke-dashoffset",array:"stroke-dasharray"},$U={offset:"strokeDashoffset",array:"strokeDasharray"};function v8(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?FU:$U;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function gl(e,m,u,h){var g=m,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=g,l=ge(g,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);pl(e,l,u,h),e.attrs=e.style,e.style={};let{attrs:x,style:E,dimensions:_}=e;x.transform&&(_&&(E.transform=x.transform),delete x.transform),_&&(n!==void 0||i!==void 0||E.transform)&&(E.transformOrigin=y8(_,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(x.x=t),r!==void 0&&(x.y=r),o!==void 0&&v8(x,o,s,a,!1)}c();d();f();var wp=()=>de(K({},ml()),{attrs:{}});function x8(e,t){let r=(0,w8.useMemo)(()=>{let n=wp();return gl(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),de(K({},n.attrs),{style:K({},n.style)})},[t]);if(e.style){let n={};N1(n,e.style,e),r.style=K(K({},n),r.style)}return r}function E8(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let u=(al(r)?x8:f8)(n,s,a),h=m8(n,typeof r=="string",e),m=de(K(K({},h),u),{ref:o});return i&&(m["data-projection-id"]=i),(0,b8.createElement)(r,m)}}c();d();f();c();d();f();c();d();f();var xp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function bp(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 Ep=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function _p(e,t,r,n){bp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(Ep.has(i)?i:xp(i),t.attrs[i])}c();d();f();c();d();f();function yl(e){let{style:t}=e,r={};for(let n in t)(Qt(t[n])||fp(n,e))&&(r[n]=t[n]);return r}function Sp(e){let t=yl(e);for(let r in e)if(Qt(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var F1=Z(ae(),1);c();d();f();function vl(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 Di=e=>Array.isArray(e);var _8=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),Cp=e=>Di(e)?e[e.length-1]||0:e;function wl(e){let t=Qt(e)?e.get():e;return _8(t)?t.toValue():t}function UU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:VU(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var Tp=e=>(t,r)=>{let n=(0,F1.useContext)(Ms),i=(0,F1.useContext)(qn),o=()=>UU(e,t,n,i);return r?o():Ro(o)};function VU(e,t,r,n){let i={},o=n(e);for(let g in o)i[g]=wl(o[g]);let{initial:s,animate:a}=e,l=ks(e),u=ap(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let h=r?r.initial===!1:!1;h=h||s===!1;let m=h?a:s;return m&&typeof m!="boolean"&&!Po(m)&&(Array.isArray(m)?m:[m]).forEach(x=>{let E=vl(e,x);if(!E)return;let P=E,{transitionEnd:_,transition:A}=P,C=ge(P,["transitionEnd","transition"]);for(let D in C){let O=C[D];if(Array.isArray(O)){let $=h?O.length-1:0;O=O[$]}O!==null&&(i[D]=O)}for(let D in _)i[D]=_[D]}),i}var S8={useVisualState:Tp({scrapeMotionValuesFromProps:Sp,createRenderState:wp,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}}gl(r,n,{enableHardwareAcceleration:!1},e.transformTemplate),_p(t,r)}})};c();d();f();var C8={useVisualState:Tp({scrapeMotionValuesFromProps:yl,createRenderState:ml})};function T8(e,{forwardMotionProps:t=!1},r,n,i){let o=al(e)?S8:C8;return de(K({},o),{preloadedFeatures:r,useRender:E8(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var De;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(De||(De={}));c();d();f();var D8=Z(ae(),1);function Fs(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Hc(e,t,r,n){(0,D8.useEffect)(()=>{let i=e.current;if(r&&i)return Fs(i,t,r,n)},[e,t,r,n])}function P8({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(De.Focus,!0)},i=()=>{r&&r.setActive(De.Focus,!1)};Hc(t,"focus",e?n:void 0),Hc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function Dp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Pp(e){return!!e.touches}c();d();f();c();d();f();function BU(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var jU={pageX:0,pageY:0};function zU(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||jU;return{x:n[t+"X"],y:n[t+"Y"]}}function HU(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Kc(e,t="page"){return{point:Pp(e)?zU(e,t):HU(e,t)}}var $1=(e,t=!1)=>{let r=n=>e(n,Kc(n));return t?BU(r):r};c();d();f();var I8=()=>hn&&window.onpointerdown===null,R8=()=>hn&&window.ontouchstart===null,A8=()=>hn&&window.onmousedown===null;var KU={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},qU={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function O8(e){return I8()?e:R8()?qU[e]:A8()?KU[e]:e}function Pi(e,t,r,n){return Fs(e,O8(t),$1(r,t==="pointerdown"),n)}function $s(e,t,r,n){return Hc(e,O8(t),r&&$1(r,t==="pointerdown"),n)}c();d();f();function k8(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var M8=k8("dragHorizontal"),N8=k8("dragVertical");function U1(e){let t=!1;if(e==="y")t=N8();else if(e==="x")t=M8();else{let r=M8(),n=N8();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Ip(){let e=U1(!0);return e?(e(),!1):!0}function L8(e,t,r){return(n,i)=>{!Dp(n)||Ip()||(e.animationState&&e.animationState.setActive(De.Hover,t),r&&r(n,i))}}function F8({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){$s(n,"pointerenter",e||r?L8(n,!0,e):void 0,{passive:!e}),$s(n,"pointerleave",t||r?L8(n,!1,t):void 0,{passive:!t})}c();d();f();var uw=Z(ae(),1);c();d();f();var V1=(e,t)=>t?e===t?!0:V1(e,t.parentElement):!1;c();d();f();var $8=Z(ae(),1);function xl(e){return(0,$8.useEffect)(()=>()=>e(),[])}c();d();f();c();d();f();c();d();f();var a4=Z(s4(),1),{__extends:Fie,__assign:$ie,__rest:Mp,__decorate:Uie,__param:Vie,__metadata:Bie,__awaiter:jie,__generator:zie,__exportStar:Hie,__createBinding:Kie,__values:qie,__read:Wie,__spread:Gie,__spreadArrays:Yie,__spreadArray:Xie,__await:Jie,__asyncGenerator:Qie,__asyncDelegator:Zie,__asyncValues:eoe,__makeTemplateObject:toe,__importStar:roe,__importDefault:noe,__classPrivateFieldGet:ioe,__classPrivateFieldSet:ooe,__classPrivateFieldIn:soe}=a4.default;c();d();f();c();d();f();c();d();f();c();d();f();var Us=function(){},Zt=function(){};c();d();f();var No=(e,t,r)=>Math.min(Math.max(r,e),t);var j1=.001,WU=.01,l4=10,GU=.05,YU=1;function u4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Us(e<=l4*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=No(GU,YU,s),e=No(WU,l4,e/1e3),s<1?(i=u=>{let h=u*s,m=h*e,g=h-r,x=Np(u,s),E=Math.exp(-m);return j1-g/x*E},o=u=>{let m=u*s*e,g=m*r+r,x=Math.pow(s,2)*Math.pow(u,2)*e,E=Math.exp(-m),_=Np(Math.pow(u,2),s);return(-i(u)+j1>0?-1:1)*((g-x)*E)/_}):(i=u=>{let h=Math.exp(-u*e),m=(u-r)*e+1;return-j1+h*m},o=u=>{let h=Math.exp(-u*e),m=(r-u)*(e*e);return h*m});let a=5/e,l=JU(i,o,a);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}var XU=12;function JU(e,t,r){let n=r;for(let i=1;i<XU;i++)n=n-e(n)/t(n);return n}function Np(e,t){return e*Math.sqrt(1-t*t)}var QU=["duration","bounce"],ZU=["stiffness","damping","mass"];function c4(e,t){return t.some(r=>e[r]!==void 0)}function eV(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!c4(e,ZU)&&c4(e,QU)){let r=u4(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function kp(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=Mp(e,["from","to","restSpeed","restDelta"]);let s={done:!1,value:t},{stiffness:a,damping:l,mass:u,velocity:h,duration:m,isResolvedFromDuration:g}=eV(o),x=f4,E=f4;function _(){let A=h?-(h/1e3):0,C=r-t,P=l/(2*Math.sqrt(a*u)),D=Math.sqrt(a/u)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),P<1){let O=Np(D,P);x=$=>{let j=Math.exp(-P*D*$);return r-j*((A+P*D*C)/O*Math.sin(O*$)+C*Math.cos(O*$))},E=$=>{let j=Math.exp(-P*D*$);return P*D*j*(Math.sin(O*$)*(A+P*D*C)/O+C*Math.cos(O*$))-j*(Math.cos(O*$)*(A+P*D*C)-O*C*Math.sin(O*$))}}else if(P===1)x=O=>r-Math.exp(-D*O)*(C+(A+D*C)*O);else{let O=D*Math.sqrt(P*P-1);x=$=>{let j=Math.exp(-P*D*$),F=Math.min(O*$,300);return r-j*((A+P*D*C)*Math.sinh(F)+O*C*Math.cosh(F))/O}}}return _(),{next:A=>{let C=x(A);if(g)s.done=A>=m;else{let P=E(A)*1e3,D=Math.abs(P)<=n,O=Math.abs(r-C)<=i;s.done=D&&O}return s.value=s.done?r:C,s},flipTarget:()=>{h=-h,[t,r]=[r,t],_()}}}kp.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var f4=e=>0;c();d();f();c();d();f();c();d();f();var Ii=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};c();d();f();var _e=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function z1(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 H1({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,l=2*r-a;i=z1(l,a,e+1/3),o=z1(l,a,e),s=z1(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var tV=(e,t,r)=>{let n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},rV=[dl,pn,Gn],d4=e=>rV.find(t=>t.test(e)),h4=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Lp=(e,t)=>{let r=d4(e),n=d4(t);Zt(!!r,h4(e)),Zt(!!n,h4(t));let i=r.parse(e),o=n.parse(t);r===Gn&&(i=H1(i),r=pn),n===Gn&&(o=H1(o),n=pn);let s=Object.assign({},i);return a=>{for(let l in s)l!=="alpha"&&(s[l]=tV(i[l],o[l],a));return s.alpha=_e(i.alpha,o.alpha,a),r.transform(s)}};c();d();f();c();d();f();var qc=e=>typeof e=="number";c();d();f();var nV=(e,t)=>r=>t(e(r)),Ri=(...e)=>e.reduce(nV);function m4(e,t){return qc(e)?r=>_e(e,t,r):kt.test(e)?Lp(e,t):q1(e,t)}var K1=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>m4(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},g4=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=m4(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}};function p4(e){let t=ar.parse(e),r=t.length,n=0,i=0,o=0;for(let s=0;s<r;s++)n||typeof t[s]=="number"?n++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}var q1=(e,t)=>{let r=ar.createTransformer(t),n=p4(e),i=p4(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Ri(K1(n.parsed,i.parsed),r):(Us(!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}`)};var iV=(e,t)=>r=>_e(e,t,r);function oV(e){if(typeof e=="number")return iV;if(typeof e=="string")return kt.test(e)?Lp:q1;if(Array.isArray(e))return K1;if(typeof e=="object")return g4}function sV(e,t,r){let n=[],i=r||oV(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]:t;a=Ri(l,a)}n.push(a)}return n}function aV([e,t],[r]){return n=>r(Ii(e,t,n))}function lV(e,t){let r=e.length,n=r-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[n]&&(o=n-1,s=!0),!s){let l=1;for(;l<r&&!(e[l]>i||l===n);l++);o=l-1}let a=Ii(e[o],e[o+1],i);return t[o](a)}}function Fp(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;Zt(o===t.length,"Both input and output ranges must be the same length"),Zt(!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=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let s=sV(t,n,i),a=o===2?aV(e,s):lV(e,s);return r?l=>a(No(e[0],e[o-1],l)):a}c();d();f();c();d();f();var Wc=e=>t=>1-e(1-t),$p=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,y4=e=>t=>Math.pow(t,e),W1=e=>t=>t*t*((e+1)*t-e),v4=e=>{let t=W1(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))};var w4=1.525,uV=4/11,cV=8/11,fV=9/10,Vs=e=>e,Gc=y4(2),G1=Wc(Gc),Yc=$p(Gc),Up=e=>1-Math.sin(Math.acos(e)),_l=Wc(Up),Y1=$p(_l),Xc=W1(w4),X1=Wc(Xc),J1=$p(Xc),Q1=v4(w4),dV=4356/361,hV=35442/1805,pV=16061/1805,El=e=>{if(e===1||e===0)return e;let t=e*e;return e<uV?7.5625*t:e<cV?9.075*t-9.9*e+3.4:e<fV?dV*t-hV*e+pV:10.8*e*e-20.52*e+10.72},Z1=Wc(El),ew=e=>e<.5?.5*(1-El(1-e*2)):.5*El(e*2-1)+.5;function mV(e,t){return e.map(()=>t||Yc).splice(0,e.length-1)}function gV(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function yV(e,t){return e.map(r=>r*t)}function Jc({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],a=yV(n&&n.length===s.length?n:gV(s),i);function l(){return Fp(a,s,{ease:Array.isArray(r)?r:mV(s,r)})}let u=l();return{next:h=>(o.value=u(h),o.done=h>=i,o),flipTarget:()=>{s.reverse(),u=l()}}}c();d();f();function x4({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s={done:!1,value:t},a=r*e,l=t+a,u=o===void 0?l:o(l);return u!==l&&(a=u-t),{next:h=>{let m=-a*Math.exp(-h/n);return s.done=!(m>i||m<-i),s.value=s.done?u:u+m,s},flipTarget:()=>{}}}var b4={keyframes:Jc,spring:kp,decay:x4};function E4(e){if(Array.isArray(e.to))return Jc;if(b4[e.type])return b4[e.type];let t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Jc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?kp:Jc}c();d();f();c();d();f();var tw=16.666666666666668,vV=typeof performance<"u"?()=>performance.now():()=>Date.now(),rw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(vV()),tw);c();d();f();function _4(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(l,u=!1,h=!1)=>{let m=h&&i,g=m?t:r;return u&&s.add(l),g.indexOf(l)===-1&&(g.push(l),m&&i&&(n=t.length)),l},cancel:l=>{let u=r.indexOf(l);u!==-1&&r.splice(u,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let u=0;u<n;u++){let h=t[u];h(l),s.has(h)&&(a.schedule(h),e())}i=!1,o&&(o=!1,a.process(l))}};return a}var wV=40,nw=!0,Qc=!1,iw=!1,Sl={delta:0,timestamp:0},Zc=["read","update","preRender","render","postRender"],Vp=Zc.reduce((e,t)=>(e[t]=_4(()=>Qc=!0),e),{}),xV=Zc.reduce((e,t)=>{let r=Vp[t];return e[t]=(n,i=!1,o=!1)=>(Qc||EV(),r.schedule(n,i,o)),e},{}),Qr=Zc.reduce((e,t)=>(e[t]=Vp[t].cancel,e),{}),Bp=Zc.reduce((e,t)=>(e[t]=()=>Vp[t].process(Sl),e),{}),bV=e=>Vp[e].process(Sl),S4=e=>{Qc=!1,Sl.delta=nw?tw:Math.max(Math.min(e-Sl.timestamp,wV),1),Sl.timestamp=e,iw=!0,Zc.forEach(bV),iw=!1,Qc&&(nw=!1,rw(S4))},EV=()=>{Qc=!0,nw=!0,iw||rw(S4)},Bs=()=>Sl,Vt=xV;c();d();f();function ow(e,t,r=0){return e-t-r}function C4(e,t,r=0,n=!0){return n?ow(t+-e,t,r):t-(e-t)+r}function T4(e,t,r,n){return n?e>=t+r:e<=-r}var _V=e=>{let t=({delta:r})=>e(r);return{start:()=>Vt.update(t,!0),stop:()=>Qr.update(t)}};function ef(e){var t,r,{from:n,autoplay:i=!0,driver:o=_V,elapsed:s=0,repeat:a=0,repeatType:l="loop",repeatDelay:u=0,onPlay:h,onStop:m,onComplete:g,onRepeat:x,onUpdate:E}=e,_=Mp(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:A}=_,C,P=0,D=_.duration,O,$=!1,j=!0,F,U=E4(_);!((r=(t=U).needsInterpolation)===null||r===void 0)&&r.call(t,n,A)&&(F=Fp([0,100],[n,A],{clamp:!1}),n=0,A=100);let W=U(Object.assign(Object.assign({},_),{from:n,to:A}));function X(){P++,l==="reverse"?(j=P%2===0,s=C4(s,D,u,j)):(s=ow(s,D,u),l==="mirror"&&W.flipTarget()),$=!1,x&&x()}function G(){C.stop(),g&&g()}function Y(p){if(j||(p=-p),s+=p,!$){let b=W.next(Math.max(0,s));O=b.value,F&&(O=F(O)),$=j?b.done:s<=0}E==null||E(O),$&&(P===0&&(D!=null||(D=s)),P<a?T4(s,D,u,j)&&X():G())}function M(){h==null||h(),C=o(Y),C.start()}return i&&M(),{stop:()=>{m==null||m(),C.stop()}}}c();d();f();c();d();f();function tf(e,t){return t?e*(1e3/t):0}function sw({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:m,onComplete:g,onStop:x}){let E;function _(D){return r!==void 0&&D<r||n!==void 0&&D>n}function A(D){return r===void 0?n:n===void 0||Math.abs(r-D)<Math.abs(n-D)?r:n}function C(D){E==null||E.stop(),E=ef(Object.assign(Object.assign({},D),{driver:h,onUpdate:O=>{var $;m==null||m(O),($=D.onUpdate)===null||$===void 0||$.call(D,O)},onComplete:g,onStop:x}))}function P(D){C(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},D))}if(_(e))P({from:e,velocity:t,to:A(e)});else{let D=i*t+e;typeof u<"u"&&(D=u(D));let O=A(D),$=O===r?-1:1,j,F,U=W=>{j=F,F=W,t=tf(W-j,Bs().delta),($===1&&W>O||$===-1&&W<O)&&P({from:W,to:O,velocity:t})};C({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:_(D)?U:void 0})}return{stop:()=>E==null?void 0:E.stop()}}c();d();f();c();d();f();var rf=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y");c();d();f();var aw=e=>rf(e)&&e.hasOwnProperty("z");var jp=(e,t)=>Math.abs(e-t);function js(e,t){if(qc(e)&&qc(t))return jp(e,t);if(rf(e)&&rf(t)){let r=jp(e.x,t.x),n=jp(e.y,t.y),i=aw(e)&&aw(t)?jp(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}c();d();f();var D4=(e,t)=>1-3*t+3*e,P4=(e,t)=>3*t-6*e,I4=e=>3*e,Kp=(e,t,r)=>((D4(t,r)*e+P4(t,r))*e+I4(t))*e,R4=(e,t,r)=>3*D4(t,r)*e*e+2*P4(t,r)*e+I4(t),SV=1e-7,CV=10;function TV(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=Kp(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>SV&&++a<CV);return s}var DV=8,PV=.001;function IV(e,t,r,n){for(let i=0;i<DV;++i){let o=R4(t,r,n);if(o===0)return t;t-=(Kp(t,r,n)-e)/o}return t}var Hp=11,zp=1/(Hp-1);function lw(e,t,r,n){if(e===t&&r===n)return Vs;let i=new Float32Array(Hp);for(let s=0;s<Hp;++s)i[s]=Kp(s*zp,e,r);function o(s){let a=0,l=1,u=Hp-1;for(;l!==u&&i[l]<=s;++l)a+=zp;--l;let h=(s-i[l])/(i[l+1]-i[l]),m=a+h*zp,g=R4(m,e,r);return g>=PV?IV(s,m,e,r):g===0?m:TV(s,a,a+zp,e,r)}return s=>s===0||s===1?s:Kp(o(s),t,n)}function A4({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,uw.useRef)(!1),a=(0,uw.useRef)(null),l={passive:!(t||e||r||x)};function u(){a.current&&a.current(),a.current=null}function h(){return u(),s.current=!1,i.animationState&&i.animationState.setActive(De.Tap,!1),!Ip()}function m(E,_){!h()||(V1(i.current,E.target)?e&&e(E,_):r&&r(E,_))}function g(E,_){!h()||r&&r(E,_)}function x(E,_){u(),!s.current&&(s.current=!0,a.current=Ri(Pi(window,"pointerup",m,l),Pi(window,"pointercancel",g,l)),i.animationState&&i.animationState.setActive(De.Tap,!0),t&&t(E,_))}$s(i,"pointerdown",o?x:void 0,l),xl(u)}c();d();f();c();d();f();var RV="production",Cl=typeof process>"u"||process.env===void 0?RV:"production";var nf=Z(ae(),1);c();d();f();var O4=new Set;function qp(e,t,r){e||O4.has(t)||(console.warn(t),r&&console.warn(r),O4.add(t))}c();d();f();var fw=new WeakMap,cw=new WeakMap,AV=e=>{let t=fw.get(e.target);t&&t(e)},OV=e=>{e.forEach(AV)};function MV(r){var n=r,{root:e}=n,t=ge(n,["root"]);let i=e||document;cw.has(i)||cw.set(i,{});let o=cw.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(OV,K({root:e},t))),o[s]}function M4(e,t,r){let n=MV(t);return fw.set(e,r),n.observe(e),()=>{fw.delete(e),n.unobserve(e)}}function N4({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,nf.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?LV:kV)(s,o.current,e,i)}var NV={some:0,all:1};function kV(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,nf.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:NV[o]},l=u=>{let{isIntersecting:h}=u;if(t.isInView===h||(t.isInView=h,s&&!h&&t.hasEnteredView))return;h&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(De.InView,h);let m=r.getProps(),g=h?m.onViewportEnter:m.onViewportLeave;g&&g(u)};return M4(r.current,a,l)},[e,n,i,o])}function LV(e,t,r,{fallback:n=!0}){(0,nf.useEffect)(()=>{!e||!n||(Cl!=="production"&&qp(!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(De.InView,!0)}))},[e])}c();d();f();var Nn=e=>t=>(e(t),null);var k4={inView:Nn(N4),tap:Nn(A4),focus:Nn(P8),hover:Nn(F8)};c();d();f();var sf=Z(ae(),1);c();d();f();var Tl=Z(ae(),1);function Wp(){let e=(0,Tl.useContext)(qn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,Tl.useId)();return(0,Tl.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function dw(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 Dl=e=>e*1e3;c();d();f();var L4={linear:Vs,easeIn:Gc,easeInOut:Yc,easeOut:G1,circIn:Up,circInOut:Y1,circOut:_l,backIn:Xc,backInOut:J1,backOut:X1,anticipate:Q1,bounceIn:Z1,bounceInOut:ew,bounceOut:El},hw=e=>{if(Array.isArray(e)){Zt(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return lw(t,r,n,i)}else if(typeof e=="string")return Zt(L4[e]!==void 0,`Invalid easing type '${e}'`),L4[e];return e},F4=e=>Array.isArray(e)&&typeof e[0]!="number";c();d();f();var pw=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&ar.test(t)&&!t.startsWith("url("));c();d();f();var zs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Gp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mw=()=>({type:"keyframes",ease:"linear",duration:.3}),FV=e=>({type:"keyframes",duration:.8,values:e}),$4={x:zs,y:zs,z:zs,rotate:zs,rotateX:zs,rotateY:zs,rotateZ:zs,scaleX:Gp,scaleY:Gp,scale:Gp,opacity:mw,backgroundColor:mw,color:mw,default:Gp},U4=(e,t)=>{let r;return Di(t)?r=FV:r=$4[e]||$4.default,K({to:t},r(t))};c();d();f();c();d();f();var $V=de(K({},vp),{color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:hl,WebkitFilter:hl}),Pl=e=>$V[e];function of(e,t){var r;let n=Pl(e);return n!==hl&&(n=ar),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();var V4={current:!1};c();d();f();function Yp(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(Qr.read(n),e(o-t))};return Vt.read(n,!0),()=>Qr.read(n)}function UV(h){var m=h,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l}=m,u=ge(m,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(u).length}var B4=!1;function VV(s){var a=s,{ease:e,times:t,yoyo:r,flip:n,loop:i}=a,o=ge(a,["ease","times","yoyo","flip","loop"]);let l=K({},o);return t&&(l.offset=t),o.duration&&(l.duration=Dl(o.duration)),o.repeatDelay&&(l.repeatDelay=Dl(o.repeatDelay)),e&&(l.ease=F4(e)?e.map(hw):hw(e)),o.type==="tween"&&(l.type="keyframes"),(r||i||n)&&(Us(!B4,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),B4=!0,r?l.repeatType="reverse":i?l.repeatType="loop":n&&(l.repeatType="mirror"),l.repeat=i||r||n||o.repeat),o.type!=="spring"&&(l.type="keyframes"),l}function BV(e,t){var r,n;return(n=(r=(Xp(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function jV(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function zV(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),jV(t),UV(e)||(e=K(K({},e),U4(r,t.to))),K(K({},t),VV(e))}function HV(e,t,r,n,i){let o=Xp(n,e)||{},s=o.from!==void 0?o.from:t.get(),a=pw(e,r);s==="none"&&a&&typeof r=="string"?s=of(e,r):j4(s)&&typeof r=="string"?s=z4(r):!Array.isArray(r)&&j4(r)&&typeof s=="string"&&(r=z4(s));let l=pw(e,s);Us(l===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`);function u(){let m={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:g=>t.set(g)};return o.type==="inertia"||o.type==="decay"?sw(K(K({},m),o)):ef(de(K({},zV(o,m,e)),{onUpdate:g=>{m.onUpdate(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{m.onComplete(),o.onComplete&&o.onComplete()}}))}function h(){let m=Cp(r);return t.set(m),i(),o.onUpdate&&o.onUpdate(m),o.onComplete&&o.onComplete(),{stop:()=>{}}}return!l||!a||o.type===!1?h:u}function j4(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function z4(e){return typeof e=="number"?0:of("",e)}function Xp(e,t){return e[t]||e.default||e}function Il(e,t,r,n={}){return V4.current&&(n={type:!1}),t.start(i=>{let o,s=HV(e,t,r,n,i),a=BV(n,e),l=()=>o=s(),u;return a?u=Yp(l,Dl(a)):l(),()=>{u&&u(),o&&o.stop()}})}c();d();f();c();d();f();var H4=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var K4=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();c();d();f();function Rl(e,t){e.indexOf(t)===-1&&e.push(t)}function Al(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Yn=class{constructor(){this.subscriptions=[]}add(t){return Rl(this.subscriptions,t),()=>Al(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}};var KV=e=>!isNaN(parseFloat(e)),gw=class{constructor(t){this.version="7.6.7",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Yn,this.velocityUpdateSubscribers=new Yn,this.renderSubscribers=new Yn,this.canTrackVelocity=!1,this.updateAndNotify=(r,n=!0)=>{this.prev=this.current,this.current=r;let{delta:i,timestamp:o}=Bs();this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Vt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),n&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Vt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=KV(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?tf(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}};function Xn(e){return new gw(e)}c();d();f();c();d();f();c();d();f();var Jp=e=>t=>t.test(e);c();d();f();var q4={test:e=>e==="auto",parse:e=>e};var yw=[Jr,pe,wr,Mn,O1,A1,q4],Ol=e=>yw.find(Jp(e));var qV=[...yw,kt,ar],W4=e=>qV.find(Jp(e));c();d();f();function WV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function GV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Hs(e,t,r){let n=e.getProps();return vl(n,t,r!==void 0?r:n.custom,WV(e),GV(e))}function YV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Xn(r))}function G4(e,t){let r=Hs(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=ge(s,["transitionEnd","transition"]);o=K(K({},o),n);for(let a in o){let l=Cp(o[a]);YV(e,a,l)}}function Y4(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 l=o[a],u=t[l],h=null;Array.isArray(u)&&(h=u[0]),h===null&&(h=(i=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&i!==void 0?i:t[l]),h!=null&&(typeof h=="string"&&(H4(h)||K4(h))?h=parseFloat(h):!W4(h)&&ar.test(u)&&(h=of(l,u)),e.addValue(l,Xn(h)),r[l]===void 0&&(r[l]=h),h!==null&&e.setBaseTarget(l,h))}}function XV(e,t){return t?(t[e]||t.default||t).from:void 0}function X4(e,t,r){var n;let i={};for(let o in e){let s=XV(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 Ks(e){return Boolean(Qt(e)&&e.add)}function J4(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>vw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=vw(e,t,r);else{let i=typeof t=="function"?Hs(e,t,r.custom):t;n=Q4(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function vw(e,t,r={}){var n;let i=Hs(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Q4(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(u=0)=>{let{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return JV(e,t,h+u,m,g,r)}:()=>Promise.resolve(),{when:l}=o;if(l){let[u,h]=l==="beforeChildren"?[s,a]:[a,s];return u().then(h)}else return Promise.all([s(),a(r.delay)])}function Q4(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let g=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=g,l=ge(g,["transition","transitionEnd"]),u=e.getValue("willChange");n&&(s=n);let h=[],m=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let x in l){let E=e.getValue(x),_=l[x];if(!E||_===void 0||m&&ZV(m,x))continue;let A=K({delay:r},s);e.shouldReduceMotion&&Wn.has(x)&&(A=de(K({},A),{type:!1,delay:0}));let C=Il(x,E,_,A);Ks(u)&&(u.add(x),C=C.then(()=>u.remove(x))),h.push(C)}return Promise.all(h).then(()=>{a&&G4(e,a)})}function JV(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,l=i===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(QV).forEach((u,h)=>{s.push(vw(u,t,de(K({},o),{delay:r+l(h)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function QV(e,t){return e.sortNodePosition(t)}function ZV({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Qp=[De.Animate,De.InView,De.Focus,De.Hover,De.Tap,De.Drag,De.Exit],eB=[...Qp].reverse(),tB=Qp.length;function rB(e){return t=>Promise.all(t.map(({animation:r,options:n})=>J4(e,r,n)))}function Z4(e){let t=rB(e),r=iB(),n=!0,i=(l,u)=>{let h=Hs(e,u);if(h){let m=h,{transition:g,transitionEnd:x}=m,E=ge(m,["transition","transitionEnd"]);l=K(K(K({},l),E),x)}return l};function o(l){t=l(e)}function s(l,u){var h;let m=e.getProps(),g=e.getVariantContext(!0)||{},x=[],E=new Set,_={},A=1/0;for(let P=0;P<tB;P++){let D=eB[P],O=r[D],$=(h=m[D])!==null&&h!==void 0?h:g[D],j=_i($),F=D===u?O.isActive:null;F===!1&&(A=P);let U=$===g[D]&&$!==m[D]&&j;if(U&&n&&e.manuallyAnimateOnMount&&(U=!1),O.protectedKeys=K({},_),!O.isActive&&F===null||!$&&!O.prevProp||Po($)||typeof $=="boolean")continue;let W=nB(O.prevProp,$),X=W||D===u&&O.isActive&&!U&&j||P>A&&j,G=Array.isArray($)?$:[$],Y=G.reduce(i,{});F===!1&&(Y={});let{prevResolvedValues:M={}}=O,p=K(K({},M),Y),b=I=>{X=!0,E.delete(I),O.needsAnimating[I]=!0};for(let I in p){let R=Y[I],N=M[I];_.hasOwnProperty(I)||(R!==N?Di(R)&&Di(N)?!dw(R,N)||W?b(I):O.protectedKeys[I]=!0:R!==void 0?b(I):E.add(I):R!==void 0&&E.has(I)?b(I):O.protectedKeys[I]=!0)}O.prevProp=$,O.prevResolvedValues=Y,O.isActive&&(_=K(K({},_),Y)),n&&e.blockInitialAnimation&&(X=!1),X&&!U&&x.push(...G.map(I=>({animation:I,options:K({type:D},l)})))}if(E.size){let P={};E.forEach(D=>{let O=e.getBaseTarget(D);O!==void 0&&(P[D]=O)}),x.push({animation:P})}let C=Boolean(x.length);return n&&m.initial===!1&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(x):Promise.resolve()}function a(l,u,h){var m;if(r[l].isActive===u)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(x=>{var E;return(E=x.animationState)===null||E===void 0?void 0:E.setActive(l,u)}),r[l].isActive=u;let g=s(h,l);for(let x in r)r[x].protectedKeys={};return g}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function nB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dw(t,e):!1}function qs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iB(){return{[De.Animate]:qs(!0),[De.InView]:qs(),[De.Hover]:qs(),[De.Tap]:qs(),[De.Drag]:qs(),[De.Focus]:qs(),[De.Exit]:qs()}}var eT={animation:Nn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=Z4(e)),Po(t)&&(0,sf.useEffect)(()=>t.subscribe(e),[t])}),exit:Nn(e=>{let{custom:t,visualElement:r}=e,[n,i]=Wp(),o=(0,sf.useContext)(qn);(0,sf.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(De.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var Tw=Z(ae(),1);c();d();f();c();d();f();var Ml=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 u=xw(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=js(u.offset,{x:0,y:0})>=3;if(!h&&!m)return;let{point:g}=u,{timestamp:x}=Bs();this.history.push(de(K({},g),{timestamp:x}));let{onStart:E,onMove:_}=this.handlers;h||(E&&E(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{if(this.lastMoveEvent=u,this.lastMoveEventInfo=ww(h,this.transformPagePoint),Dp(u)&&u.buttons===0){this.handlePointerUp(u,h);return}Vt.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();let{onEnd:m,onSessionEnd:g}=this.handlers,x=xw(ww(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,x),g&&g(u,x)},Pp(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=Kc(t),o=ww(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=Bs();this.history=[de(K({},s),{timestamp:a})];let{onSessionStart:l}=r;l&&l(t,xw(o,this.history)),this.removeListeners=Ri(Pi(window,"pointermove",this.handlePointerMove),Pi(window,"pointerup",this.handlePointerUp),Pi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qr.update(this.updatePoint)}};function ww(e,t){return t?{point:t(e.point)}:e}function tT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xw({point:e},t){return{point:e,delta:tT(e,rT(t)),offset:tT(e,oB(t)),velocity:sB(t,.1)}}function oB(e){return e[0]}function rT(e){return e[e.length-1]}function sB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=rT(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Dl(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 lr(e){return e.max-e.min}function nT(e,t=0,r=.01){return js(e,t)<r}function iT(e,t,r,n=.5){e.origin=n,e.originPoint=_e(t.min,t.max,e.origin),e.scale=lr(r)/lr(t),(nT(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_e(r.min,r.max,e.origin)-e.originPoint,(nT(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Nl(e,t,r,n){iT(e.x,t.x,r.x,n==null?void 0:n.originX),iT(e.y,t.y,r.y,n==null?void 0:n.originY)}function oT(e,t,r){e.min=r.min+t.min,e.max=e.min+lr(t)}function aT(e,t,r){oT(e.x,t.x,r.x),oT(e.y,t.y,r.y)}function sT(e,t,r){e.min=t.min-r.min,e.max=e.min+lr(t)}function kl(e,t,r){sT(e.x,t.x,r.x),sT(e.y,t.y,r.y)}function dT(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?_e(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?_e(r,e,n.max):Math.min(e,r)),e}function lT(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 hT(e,{top:t,left:r,bottom:n,right:i}){return{x:lT(e.x,r,i),y:lT(e.y,t,n)}}function uT(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 pT(e,t){return{x:uT(e.x,t.x),y:uT(e.y,t.y)}}function mT(e,t){let r=.5,n=lr(e),i=lr(t);return i>n?r=Ii(t.min,t.max-n,e.min):n>i&&(r=Ii(e.min,e.max-i,t.min)),No(0,1,r)}function gT(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 Zp=.35;function yT(e=Zp){return e===!1?e=0:e===!0&&(e=Zp),{x:cT(e,"left","right"),y:cT(e,"top","bottom")}}function cT(e,t,r){return{min:fT(e,t),max:fT(e,r)}}function fT(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}c();d();f();var vT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ll=()=>({x:vT(),y:vT()}),wT=()=>({min:0,max:0}),Pt=()=>({x:wT(),y:wT()});c();d();f();function mn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function e0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function xT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bT(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 bw(e){return e===void 0||e===1}function t0({scale:e,scaleX:t,scaleY:r}){return!bw(e)||!bw(t)||!bw(r)}function Ai(e){return t0(e)||Ew(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ew(e){return ET(e.x)||ET(e.y)}function ET(e){return e&&e!=="0%"}function af(e,t,r){let n=e-r,i=t*n;return r+i}function _T(e,t,r,n,i){return i!==void 0&&(e=af(e,i,n)),af(e,r,n)+t}function _w(e,t=0,r=1,n,i){e.min=_T(e.min,t,r,n,i),e.max=_T(e.max,t,r,n,i)}function Sw(e,{x:t,y:r}){_w(e.x,t.translate,t.scale,t.originPoint),_w(e.y,r.translate,r.scale,r.originPoint)}function CT(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,l;for(let u=0;u<s;u++)a=r[u],l=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&&Ws(e,{x:-a.scroll.x,y:-a.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Sw(e,l)),n&&Ai(a.latestValues)&&Ws(e,a.latestValues))}function Jn(e,t){e.min=e.min+t,e.max=e.max+t}function ST(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=_e(e.min,e.max,o);_w(e,t[r],t[n],s,t.scale)}var aB=["x","scaleX","originX"],lB=["y","scaleY","originY"];function Ws(e,t){ST(e.x,t,aB),ST(e.y,t,lB)}function Cw(e,t){return e0(bT(e.getBoundingClientRect(),t))}function TT(e,t,r){let n=Cw(e,r),{scroll:i}=t;return i&&(Jn(n.x,i.x),Jn(n.y,i.y)),n}var uB=new WeakMap,n0=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=Pt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(Kc(a,"page").point)},i=(a,l)=>{var u;let{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=U1(h),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(x=>{var E,_;let A=this.getAxisMotionValue(x).get()||0;if(wr.test(A)){let C=(_=(E=this.visualElement.projection)===null||E===void 0?void 0:E.layout)===null||_===void 0?void 0:_.layoutBox[x];C&&(A=lr(C)*(parseFloat(A)/100))}this.originPoint[x]=A}),g==null||g(a,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(De.Drag,!0))},o=(a,l)=>{let{dragPropagation:u,dragDirectionLock:h,onDirectionLock:m,onDrag:g}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:x}=l;if(h&&this.currentDirection===null){this.currentDirection=cB(x),this.currentDirection!==null&&(m==null||m(this.currentDirection));return}this.updateAxis("x",l.point,x),this.updateAxis("y",l.point,x),this.visualElement.render(),g==null||g(a,l)},s=(a,l)=>this.stop(a,l);this.panSession=new Ml(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(De.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!r0(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=dT(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=hT(n.layoutBox,t):this.constraints=!1,this.elastic=yT(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&mn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=gT(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ei(t))return!1;let n=t.current;Zt(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=TT(n,i.root,this.visualElement.getTransformPagePoint()),s=pT(i.layout.layoutBox,o);if(r){let a=r(xT(s));this.hasMutatedConstraints=!!a,a&&(s=e0(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=mn(h=>{var m;if(!r0(h,r,this.currentDirection))return;let g=(m=l==null?void 0:l[h])!==null&&m!==void 0?m:{};s&&(g={min:0,max:0});let x=i?200:1e6,E=i?40:1e7,_=K(K({type:"inertia",velocity:n?t[h]:0,bounceStiffness:x,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10},o),g);return this.startAxisValueAnimation(h,_)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return Il(t,n,0,r)}stopAnimation(){mn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,n;let i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)}snapToCursor(t){mn(r=>{let{drag:n}=this.getProps();if(!r0(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]-_e(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};mn(a=>{let l=this.getAxisMotionValue(a);if(l){let u=l.get();o[a]=mT({min:u,max:u},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(),mn(a=>{if(!r0(a,r,null))return;let l=this.getAxisMotionValue(a),{min:u,max:h}=this.constraints[a];l.set(_e(u,h,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;uB.set(this.visualElement,this);let r=this.visualElement.current,n=Pi(r,"pointerdown",u=>{let{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(u)}),i=()=>{let{dragConstraints:u}=this.getProps();Ei(u)&&(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=Fs(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h})=>{this.isDragging&&h&&(mn(m=>{let g=this.getAxisMotionValue(m);!g||(this.originPoint[m]+=u[m].translate,g.set(g.get()+u[m].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l==null||l()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Zp,dragMomentum:a=!0}=t;return de(K({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function r0(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function cB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function DT(e){let{dragControls:t,visualElement:r}=e,n=Ro(()=>new n0(r));(0,Tw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,Tw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Fl=Z(ae(),1);function PT({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,Fl.useRef)(null),{transformPagePoint:a}=(0,Fl.useContext)(ol),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(h,m)=>{s.current=null,r&&r(h,m)}};(0,Fl.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(l)});function u(h){s.current=new Ml(h,l,{transformPagePoint:a})}$s(i,"pointerdown",o&&u),xl(()=>s.current&&s.current.end())}var IT={pan:Nn(PT),drag:Nn(DT)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function Dw(e){return typeof e=="string"&&e.startsWith("var(--")}var Iw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fB(e){let t=Iw.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var dB=4;function Pw(e,t,r=1){Zt(r<=dB,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=fB(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():Dw(i)?Pw(i,t,r+1):i}function RT(e,n,r){var t=ge(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=K({},r)),e.values.forEach(o=>{let s=o.get();if(!Dw(s))return;let a=Pw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!Dw(s))continue;let a=Pw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var hB=new Set(["width","height","top","left","right","bottom","x","y"]),kT=e=>hB.has(e),pB=e=>Object.keys(e).some(kT),LT=(e,t)=>{e.set(t,!1),e.set(t)},i0=e=>e===Jr||e===pe,AT;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(AT||(AT={}));var OT=(e,t)=>parseFloat(e.split(", ")[t]),MT=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return OT(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?OT(o[1],e):0}},mB=new Set(["x","y","z"]),gB=ul.filter(e=>!mB.has(e));function yB(e){let t=[];return gB.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 NT={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:MT(4,13),y:MT(5,14)},vB=(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(u=>{a[u]=NT[u](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(u=>{let h=t.getValue(u);LT(h,a[u]),e[u]=NT[u](l,o)}),e},wB=(e,t,r={},n={})=>{t=K({},t),n=K({},n);let i=Object.keys(t).filter(kT),o=[],s=!1,a=[];if(i.forEach(l=>{let u=e.getValue(l);if(!e.hasValue(l))return;let h=r[l],m=Ol(h),g=t[l],x;if(Di(g)){let E=g.length,_=g[0]===null?1:0;h=g[_],m=Ol(h);for(let A=_;A<E;A++)x?Zt(Ol(g[A])===x,"All keyframes must be of the same type"):(x=Ol(g[A]),Zt(x===m||i0(m)&&i0(x),"Keyframes must be of the same dimension as the current value"))}else x=Ol(g);if(m!==x)if(i0(m)&&i0(x)){let E=u.get();typeof E=="string"&&u.set(parseFloat(E)),typeof g=="string"?t[l]=parseFloat(g):Array.isArray(g)&&x===pe&&(t[l]=g.map(parseFloat))}else(m==null?void 0:m.transform)&&(x==null?void 0:x.transform)&&(h===0||g===0)?h===0?u.set(x.transform(h)):t[l]=m.transform(g):(s||(o=yB(e),s=!0),a.push(l),n[l]=n[l]!==void 0?n[l]:t[l],LT(u,g))}),a.length){let l=a.indexOf("height")>=0?window.pageYOffset:null,u=vB(t,e,a);return o.length&&o.forEach(([h,m])=>{e.getValue(h).set(m)}),e.render(),hn&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function FT(e,t,r,n){return pB(t)?wB(e,t,r,n):{target:t,transitionEnd:n}}var $T=(e,t,r,n)=>{let i=RT(e,t,n);return t=i.target,n=i.transitionEnd,FT(e,t,r,n)};c();d();f();var jT=Z(ae(),1);c();d();f();c();d();f();var lf={current:null},o0={current:!1};function UT(){if(o0.current=!0,!!hn)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 VT(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(Qt(o))e.addValue(i,o),Ks(n)&&n.add(i);else if(Qt(s))e.addValue(i,Xn(o)),Ks(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,Xn(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var zT=Object.keys(Io),xB=zT.length,BT=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],s0=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=()=>Vt.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=K({},s),this.initialValues=r.initial?K({},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=ks(r),this.isVariantNode=ap(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let h=this.scrapeMotionValuesFromProps(r),{willChange:l}=h,u=ge(h,["willChange"]);for(let m in u){let g=u[m];s[m]!==void 0&&Qt(g)&&(g.set(s[m],!1),Ks(l)&&l.add(m))}}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)),o0.current||UT(),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(),Qr.update(this.notifyUpdate),Qr.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=r.onChange(o=>{this.latestValues[t]=o,this.props.onUpdate&&Vt.update(this.notifyUpdate,!1,!0)}),i=r.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),i()})}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=[];Cl!=="production"&&n&&r&&Zt(!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 l=0;l<xB;l++){let u=zT[l],{isEnabled:h,Component:m}=Io[u];h(t)&&m&&a.push((0,jT.createElement)(m,de(K({key:u},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:u,drag:h,dragConstraints:m,layoutScroll:g}=t;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:Boolean(h)||m&&Ei(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:g})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pt()}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<BT.length;r++){let n=BT[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=VT(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<bB;o++){let s=HT[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=Xn(r),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=vl(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&&!Qt(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 Yn),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},HT=["initial",...Qp],bB=HT.length;var $l=class extends s0{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=ge(a,["transition","transitionEnd"]);let l=X4(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),l&&(l=i(l))),o){Y4(this,n,l);let u=$T(this,n,l,r);r=u.transitionEnd,n=u.target}return K({transition:t,transitionEnd:r},n)}};function EB(e){return window.getComputedStyle(e)}var a0=class extends $l{readValueFromInstance(t,r){if(Wn.has(r)){let n=Pl(r);return n&&n.default||0}else{let n=EB(t),i=(dp(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Cw(t,r)}build(t,r,n,i){pl(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return yl(t)}renderInstance(t,r,n,i){bp(t,r,n,i)}};c();d();f();var l0=class extends $l{getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Wn.has(r)?((n=Pl(r))===null||n===void 0?void 0:n.default)||0:(r=Ep.has(r)?r:xp(r),t.getAttribute(r))}measureInstanceViewportBox(){return Pt()}scrapeMotionValuesFromProps(t){return Sp(t)}build(t,r,n,i){gl(t,r,n,i.transformTemplate)}renderInstance(t,r,n,i){_p(t,r,n,i)}};var KT=(e,t)=>al(e)?new l0(t,{enableHardwareAcceleration:!1}):new a0(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var Vl=Z(ae(),1);c();d();f();function qT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=qT(e,t.target.x),n=qT(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var WT="_$css",GT={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(Iw,x=>(o.push(x),WT)));let s=ar.parse(e);if(s.length>5)return n;let a=ar.createTransformer(e),l=typeof s[0]!="number"?1:0,u=r.x.scale*t.x,h=r.y.scale*t.y;s[0+l]/=u,s[1+l]/=h;let m=_e(u,h,.5);typeof s[2+l]=="number"&&(s[2+l]/=m),typeof s[3+l]=="number"&&(s[3+l]/=m);let g=a(s);if(i){let x=0;g=g.replace(WT,()=>{let E=o[x];return x++,E})}return g}};var Rw=class extends Vl.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;t8(_B),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(de(K({},o.options),{onExitComplete:()=>this.safeToRemove()}))),Ao.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()||Vt.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 YT(e){let[t,r]=Wp(),n=(0,Vl.useContext)(sl);return Vl.default.createElement(Rw,de(K({},e),{layoutGroup:n,switchLayoutGroup:(0,Vl.useContext)(cp),isPresent:t,safeToRemove:r}))}var _B={borderRadius:de(K({},Ul),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:GT};var XT={measureLayout:YT};c();d();f();c();d();f();c();d();f();function JT(e,t,r={}){let n=Qt(e)?e:Xn(e);return Il("",n,t,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var tD=["TopLeft","TopRight","BottomLeft","BottomRight"],SB=tD.length,QT=e=>typeof e=="string"?parseFloat(e):e,ZT=e=>typeof e=="number"||pe.test(e);function rD(e,t,r,n,i,o){var s,a,l,u;i?(e.opacity=_e(0,(s=r.opacity)!==null&&s!==void 0?s:1,CB(n)),e.opacityExit=_e((a=t.opacity)!==null&&a!==void 0?a:1,0,TB(n))):o&&(e.opacity=_e((l=t.opacity)!==null&&l!==void 0?l:1,(u=r.opacity)!==null&&u!==void 0?u:1,n));for(let h=0;h<SB;h++){let m=`border${tD[h]}Radius`,g=eD(t,m),x=eD(r,m);if(g===void 0&&x===void 0)continue;g||(g=0),x||(x=0),g===0||x===0||ZT(g)===ZT(x)?(e[m]=Math.max(_e(QT(g),QT(x),n),0),(wr.test(x)||wr.test(g))&&(e[m]+="%")):e[m]=x}(t.rotate||r.rotate)&&(e.rotate=_e(t.rotate||0,r.rotate||0,n))}function eD(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var CB=nD(0,.5,_l),TB=nD(.5,.95,Vs);function nD(e,t,r){return n=>n<e?0:n>t?1:r(Ii(e,t,n))}c();d();f();function iD(e,t){e.min=t.min,e.max=t.max}function gn(e,t){iD(e.x,t.x),iD(e.y,t.y)}c();d();f();function oD(e,t,r,n,i){return e-=t,e=af(e,1/r,n),i!==void 0&&(e=af(e,1/i,n)),e}function DB(e,t=0,r=1,n=.5,i,o=e,s=e){if(wr.test(t)&&(t=parseFloat(t),t=_e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=_e(o.min,o.max,n);e===o&&(a-=t),e.min=oD(e.min,t,r,a,i),e.max=oD(e.max,t,r,a,i)}function sD(e,t,[r,n,i],o,s){DB(e,t[r],t[n],t[i],t.scale,o,s)}var PB=["x","scaleX","originX"],IB=["y","scaleY","originY"];function Aw(e,t,r,n){sD(e.x,t,PB,r==null?void 0:r.x,n==null?void 0:n.x),sD(e.y,t,IB,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function aD(e){return e.translate===0&&e.scale===1}function Ow(e){return aD(e.x)&&aD(e.y)}function Mw(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 Nw(e){return lr(e.x)/lr(e.y)}function lD(e,t,r=.1){return js(e,t)<=r}c();d();f();var u0=class{constructor(){this.members=[]}add(t){Rl(this.members,t),t.scheduleRender()}remove(t){if(Al(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,t.snapshot.isShared=!0),!((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();var RB="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function kw(e,t,r){let n=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${n}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,r){let{rotate:l,rotateX:u,rotateY:h}=r;l&&(o+=`rotate(${l}deg) `),u&&(o+=`rotateX(${u}deg) `),h&&(o+=`rotateY(${h}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return o+=`scale(${s}, ${a})`,o===RB?"none":o}c();d();f();c();d();f();var uD=(e,t)=>e.depth-t.depth;var c0=class{constructor(){this.children=[],this.isDirty=!1}add(t){Rl(this.children,t),this.isDirty=!0}remove(t){Al(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(uD),this.isDirty=!1,this.children.forEach(t)}};var cD=["","X","Y","Z"],fD=1e3;function f0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},l=t==null?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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(LB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new c0)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Yn),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l==null||l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var l;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:u,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(s),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(h||u)&&(this.isLayoutDirty=!0),e){let g,x=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Yp(x,250),Ao.hasAnimatedSinceResize&&(Ao.hasAnimatedSinceResize=!1,this.nodes.forEach(hD))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&m&&(u||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeTargetChanged:E,layout:_})=>{var A,C,P,D,O;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let $=(C=(A=this.options.transition)!==null&&A!==void 0?A:m.getDefaultTransition())!==null&&C!==void 0?C:BB,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=m.getProps(),U=!this.targetLayout||!Mw(this.targetLayout,_)||E,W=!x&&E;if(((P=this.resumeFrom)===null||P===void 0?void 0:P.instance)||W||x&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,W);let X=de(K({},Xp($,"layout")),{onPlay:j,onComplete:F});m.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!x&&this.animationProgress===0&&hD(this),this.isLead()&&((O=(D=this.options).onExitComplete)===null||O===void 0||O.call(D));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,Qr.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(FB))}willUpdate(s=!0){var a,l,u;if(this.root.isUpdateBlocked()){(l=(a=this.options).onExitComplete)===null||l===void 0||l.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){let E=this.path[x];E.shouldResetTransform=!0,E.updateScroll()}let{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;let g=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(dD);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jB),this.potentialNodes.clear()),this.nodes.forEach(NB),this.nodes.forEach(AB),this.nodes.forEach(OB),this.clearAllSnapshots(),Bp.update(),Bp.preRender(),Bp.render())}clearAllSnapshots(){this.nodes.forEach(MB),this.sharedNodes.forEach($B)}scheduleUpdateProjection(){Vt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Vt.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Pt(),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(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=n(this.instance),this.scroll=r(this.instance))}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Ow(this.projectionDelta),u=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,h=u==null?void 0:u(this.latestValues,""),m=h!==this.prevTransformTemplateValue;a&&(l||Ai(this.latestValues)||m)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),zB(l),{measuredBox:a,layoutBox:l,latestValues:{}}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Pt();let a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Jn(a.x,l.x),Jn(a.y,l.y)),a}removeElementScroll(s){let a=Pt();gn(a,s);for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:h,options:m,isScrollRoot:g}=u;if(u!==this.root&&h&&m.layoutScroll){if(g){gn(a,s);let{scroll:x}=this.root;x&&(Jn(a.x,-x.x),Jn(a.y,-x.y))}Jn(a.x,h.x),Jn(a.y,h.y)}}return a}applyTransform(s,a=!1){let l=Pt();gn(l,s);for(let u=0;u<this.path.length;u++){let h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ws(l,{x:-h.scroll.x,y:-h.scroll.y}),Ai(h.latestValues)&&Ws(l,h.latestValues)}return Ai(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(s){var a;let l=Pt();gn(l,s);for(let u=0;u<this.path.length;u++){let h=this.path[u];if(!h.instance||!Ai(h.latestValues))continue;t0(h.latestValues)&&h.updateSnapshot();let m=Pt(),g=h.measurePageBox();gn(m,g),Aw(l,h.latestValues,(a=h.snapshot)===null||a===void 0?void 0:a.layoutBox,m)}return Ai(this.latestValues)&&Aw(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection()}setOptions(s){this.options=de(K(K({},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{layout:a,layoutId:l}=this.options;if(!(!this.layout||!(a||l))){if(!this.targetDelta&&!this.relativeTarget){let u=this.getClosestProjectingParent();u&&u.layout?(this.relativeParent=u,this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),kl(this.relativeTargetOrigin,this.layout.layoutBox,u.layout.layoutBox),gn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pt(),this.targetWithTransforms=Pt()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?aT(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):gn(this.target,this.layout.layoutBox),Sw(this.target,this.targetDelta)):gn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let u=this.getClosestProjectingParent();u&&Boolean(u.resumingFrom)===Boolean(this.resumingFrom)&&!u.options.layoutScroll&&u.target?(this.relativeParent=u,this.relativeTarget=Pt(),this.relativeTargetOrigin=Pt(),kl(this.relativeTargetOrigin,this.target,u.target),gn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||t0(this.parent.latestValues)||Ew(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{layout:a,layoutId:l}=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||!(a||l))return;let u=this.getLead();gn(this.layoutCorrected,this.layout.layoutBox),CT(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==u);let{target:h}=u;if(!h)return;this.projectionDelta||(this.projectionDelta=Ll(),this.projectionDeltaWithTransform=Ll());let m=this.treeScale.x,g=this.treeScale.y,x=this.projectionTransform;Nl(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=kw(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==m||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,l,u;(l=(a=this.options).scheduleRender)===null||l===void 0||l.call(a),s&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var l;let u=this.snapshot,h=(u==null?void 0:u.latestValues)||{},m=K({},this.latestValues),g=Ll();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let x=Pt(),E=u==null?void 0:u.isShared,_=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,A=Boolean(E&&!_&&this.options.crossfade===!0&&!this.path.some(VB));this.animationProgress=0,this.mixTargetDelta=C=>{var P;let D=C/1e3;pD(g.x,s.x,D),pD(g.y,s.y,D),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(kl(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UB(this.relativeTarget,this.relativeTargetOrigin,x,D)),E&&(this.animationValues=m,rD(m,h,this.latestValues,D,A,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(0)}startAnimation(s){var a,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(Qr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Vt.update(()=>{Ao.hasAnimatedSinceResize=!0,this.currentAnimation=JT(0,fD,de(K({},s),{onUpdate:u=>{var h;this.mixTargetDelta(u),(h=s.onUpdate)===null||h===void 0||h.call(s,u)},onComplete:()=>{var u;(u=s.onComplete)===null||u===void 0||u.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,fD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:u,latestValues:h}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&yD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Pt();let m=lr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+m;let g=lr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+g}gn(a,l),Ws(a,h),Nl(this.projectionDeltaWithTransform,this.layoutCorrected,a,h)}}registerSharedNode(s,a){var l,u,h;this.sharedNodes.has(s)||this.sharedNodes.set(s,new u0),this.sharedNodes.get(s).add(a),a.promote({transition:(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(h=(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||h===void 0?void 0:h.call(u,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:l}={}){let u=this.getStack();u&&u.promote(this,l),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,l={};for(let u=0;u<cD.length;u++){let h=cD[u],m="rotate"+h;!s.getStaticValue(m)||(a=!0,l[m]=s.getStaticValue(m),s.setStaticValue(m,0))}if(!!a){s==null||s.render();for(let u in l)s.setStaticValue(u,l[u]);s.scheduleRender()}}getProjectionStyles(s={}){var a,l,u;let h={};if(!this.instance||this.isSVG)return h;if(this.isVisible)h.visibility="";else return{visibility:"hidden"};let m=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=wl(s.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;let g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){let A={};return this.options.layoutId&&(A.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,A.pointerEvents=wl(s.pointerEvents)||""),this.hasProjected&&!Ai(this.latestValues)&&(A.transform=m?m({},""):"none",this.hasProjected=!1),A}let x=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=kw(this.projectionDeltaWithTransform,this.treeScale,x),m&&(h.transform=m(x,h.transform));let{x:E,y:_}=this.projectionDelta;h.transformOrigin=`${E.origin*100}% ${_.origin*100}% 0`,g.animationValues?h.opacity=g===this?(u=(l=x.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(let A in ll){if(x[A]===void 0)continue;let{correct:C,applyTo:P}=ll[A],D=C(x[A],g);if(P){let O=P.length;for(let $=0;$<O;$++)h[P[$]]=D}else h[A]=D}return this.options.layoutId&&(h.pointerEvents=g===this?wl(s.pointerEvents)||"":"none"),h}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(dD),this.root.sharedNodes.clear()}}}function AB(e){e.updateLayout()}function OB(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;a==="size"?mn(g=>{let x=i.isShared?i.measuredBox[g]:i.layoutBox[g],E=lr(x);x.min=o[g].min,x.max=x.min+E}):yD(a,i.layoutBox,o)&&mn(g=>{let x=i.isShared?i.measuredBox[g]:i.layoutBox[g],E=lr(o[g]);x.max=x.min+E});let l=Ll();Nl(l,o,i.layoutBox);let u=Ll();i.isShared?Nl(u,e.applyTransform(s,!0),i.measuredBox):Nl(u,o,i.layoutBox);let h=!Ow(l),m=!1;if(!e.resumeFrom){let g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){let{snapshot:x,layout:E}=g;if(x&&E){let _=Pt();kl(_,i.layoutBox,x.layoutBox);let A=Pt();kl(A,o,E.layoutBox),Mw(_,A)||(m=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:u,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function MB(e){e.clearSnapshot()}function dD(e){e.clearMeasurements()}function NB(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function kB(e){e.resolveTargetDelta()}function LB(e){e.calcProjection()}function FB(e){e.resetRotation()}function $B(e){e.removeLeadSnapshot()}function pD(e,t,r){e.translate=_e(t.translate,0,r),e.scale=_e(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function mD(e,t,r,n){e.min=_e(t.min,r.min,n),e.max=_e(t.max,r.max,n)}function UB(e,t,r,n){mD(e.x,t.x,r.x,n),mD(e.y,t.y,r.y,n)}function VB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var BB={duration:.45,ease:[.4,0,.1,1]};function jB(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 gD(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function zB(e){gD(e.x),gD(e.y)}function yD(e,t,r){return e==="position"||e==="preserve-aspect"&&!lD(Nw(t),Nw(r),.2)}c();d();f();var vD=f0({attachResizeListener:(e,t)=>Fs(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Lw={current:void 0},wD=f0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lw.current){let e=new vD(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Lw.current=e}return Lw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var HB=K(K(K(K({},eT),k4),IT),XT),kn=ZC((e,t)=>T8(e,t,HB,KT,wD));c();d();f();var Oi=Z(ae(),1),yn=Z(ae(),1);c();d();f();var uf=Z(ae(),1);c();d();f();var xD=Z(ae(),1);function d0(){let e=(0,xD.useRef)(!1);return Ns(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function bD(){let e=d0(),[t,r]=(0,uf.useState)(0),n=(0,uf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,uf.useCallback)(()=>Vt.postRender(n),[n]),t]}c();d();f();var cf=Z(ae(),1),ff=Z(ae(),1);c();d();f();var Bl=Z(ae(),1),Gs=Z(ae(),1),Fw=class extends Bl.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 ED({children:e,isPresent:t}){let r=(0,Gs.useId)(),n=(0,Gs.useRef)(null),i=(0,Gs.useRef)({width:0,height:0,top:0,left:0});return(0,Gs.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:l}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
18
18
|
[data-motion-pop-id="${r}"] {
|
|
19
19
|
position: absolute !important;
|
|
20
20
|
width: ${o}px !important;
|
|
21
21
|
height: ${s}px !important;
|
|
22
22
|
top: ${a}px !important;
|
|
23
|
-
left: ${
|
|
23
|
+
left: ${l}px !important;
|
|
24
24
|
}
|
|
25
|
-
`),()=>{document.head.removeChild(l)}},[t]),Bu.createElement(Qw,{isPresent:t,childRef:n,sizeRef:i},Bu.cloneElement(e,{ref:n}))}var dm=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=xo(xz),u=(0,wf.useId)(),l=(0,wf.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,wf.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),vf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=vf.createElement(x8,{isPresent:r},e)),vf.createElement(Wn.Provider,{value:l},e)};function xz(){return new Map}var ju=e=>e.key||"";function bz(e,t){e.forEach(r=>{let n=ju(r);t.set(n,r)})}function Ez(e){let t=[];return gn.Children.forEach(e,r=>{(0,gn.isValidElement)(r)&&t.push(r)}),t}var zu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",kp(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=w8(),u=(0,gn.useContext)(ou).forceRender;u&&(a=u);let l=fm(),p=Ez(e),h=p,g=new Set,w=(0,gn.useRef)(h),v=(0,gn.useRef)(new Map).current,_=(0,gn.useRef)(!0);if(yo(()=>{_.current=!1,bz(p,v),w.current=h}),yu(()=>{_.current=!0,v.clear(),g.clear()}),_.current)return Ci.createElement(Ci.Fragment,null,h.map(P=>Ci.createElement(dm,{key:ju(P),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},P)));h=[...h];let D=w.current.map(ju),C=p.map(ju),I=D.length;for(let P=0;P<I;P++){let R=D[P];C.indexOf(R)===-1&&g.add(R)}return s==="wait"&&g.size&&(h=[]),g.forEach(P=>{if(C.indexOf(P)!==-1)return;let R=v.get(P);if(!R)return;let U=D.indexOf(P),j=()=>{v.delete(P),g.delete(P);let F=w.current.findIndex($=>$.key===P);if(w.current.splice(F,1),!g.size){if(w.current=p,l.current===!1)return;a(),n&&n()}};h.splice(U,0,Ci.createElement(dm,{key:ju(R),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},R))}),h=h.map(P=>{let R=P.key;return g.has(R)?P:Ci.createElement(dm,{key:ju(P),isPresent:!0,presenceAffectsLayout:o,mode:s},P)}),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.`),Ci.createElement(Ci.Fragment,null,g.size?h:h.map(P=>(0,gn.cloneElement)(P)))};c();d();f();var W8=Y(q8(),1),{__extends:Ppe,__assign:yn,__rest:gm,__decorate:Dpe,__param:Ipe,__esDecorate:Ape,__runInitializers:Ope,__propKey:Rpe,__setFunctionName:Npe,__metadata:Mpe,__awaiter:kpe,__generator:Lpe,__exportStar:Fpe,__createBinding:$pe,__values:Upe,__read:Vpe,__spread:Bpe,__spreadArrays:jpe,__spreadArray:G8,__await:zpe,__asyncGenerator:Hpe,__asyncDelegator:Kpe,__asyncValues:qpe,__makeTemplateObject:Wpe,__importStar:Gpe,__importDefault:Ype,__classPrivateFieldGet:Xpe,__classPrivateFieldSet:Jpe,__classPrivateFieldIn:Qpe}=W8.default;c();d();f();var _z=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.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"})),ym=_z;var Sz=({qrData:e,showQR:t,setShowQR:r})=>{let n=Wa(),[i,o]=(0,vm.useState)(!1),s=(0,vm.useCallback)(()=>{var a;(0,Y8.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return y.createElement(y.Fragment,null,(n=="desktop"||t)&&y.createElement(y.Fragment,null,y.createElement(zu,null,i&&y.createElement(Ln.div,{className:"text-9eafc0 text-sm",key:"copied",initial:"hidden",animate:"visible",exit:"hidden",variants:{visible:{y:0,opacity:1},hidden:{y:"100%",opacity:0},exit:{y:"100%",opacity:0,transition:{duration:.5}}},transition:{duration:.5,ease:"easeInOut"}},y.createElement("span",{className:"border-f1f5f8 rounded-lg border py-1 px-2 text-sm"},"QR Code copied"))),y.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},y.createElement("div",{className:"text-29343f dark:text-white"},e?y.createElement("div",{onClick:s,className:"cursor-pointer"},y.createElement(GC,{data:e.default,size:244})):y.createElement("div",{className:"flex h-[244px] w-[244px] items-center justify-center"},y.createElement(lo,{className:"h-[72px] w-[72px]"}))))),y.createElement("div",{className:"space-y-4"},y.createElement(Ln.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:yi("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")},y.createElement(ym,{className:"h-5 w-5"}),y.createElement(Ln.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),y.createElement("div",{className:"space-x-2 md:hidden"},y.createElement(Ln.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&y.createElement(y.Fragment,null,y.createElement("span",{className:"text-9eafc0"},"\xB7"),y.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},X8=Sz;var ld=Y(ae(),1);c();d();f();c();d();f();var Cz=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),y.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"})),J8=Cz;c();d();f();var Tz=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),y.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"}),y.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"})),Q8=Tz;var Pz=({className:e})=>y.createElement("div",{className:yi(e,"space-y-4 text-left")},y.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),y.createElement("div",{className:"space-y-3"},y.createElement(Z8,{title:"Your global digital ID",icon:Q8},y.createElement("p",null,"With Worldcoin and World ID sign in seamlessly and prove you are a unique human.")),y.createElement(Z8,{title:"Privacy-preserving",icon:J8},y.createElement("p",null,"Maximum privacy. Prevents cross-tracking and can be used fully anonymously.")))),Z8=({icon:e,title:t,children:r})=>y.createElement("div",{className:"flex space-x-6"},y.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},y.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),y.createElement("div",null,y.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),eI=Pz;c();d();f();c();d();f();function ex(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()}var _g=Y(ae(),1);c();d();f();var tI="c3e6053f10efbb423808783ee874cf6a";c();d();f();var Ck=Y(bm());c();d();f();var ki=Y(Do()),xE=Y(bm()),$M=Y(HI()),Ol=Y(W4()),Me=Y(Sx());c();d();f();jm();var xA=Y(Do()),Wm=class extends Fn{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var Gm=class extends Fn{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},Ym=class{constructor(t,r){this.logger=t,this.core=r}},Xm=class extends Fn{constructor(t,r){super(),this.relayer=t,this.logger=r}},Jm=class extends Fn{constructor(t){super()}},Qm=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var Zm=class extends Fn{constructor(t,r){super(),this.relayer=t,this.logger=r}};var e0=class extends Fn{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function Df(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 sl(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var kf=Y(JA()),AO=Y(Hs()),OO=Y(Ti());c();d();f();var QA="EdDSA",ZA="JWT",jx=".",zx="base64url",eO="utf8",tO="utf8",rO=":",nO="did",iO="key",Hx="base58btc",oO="z",sO="K36";c();d();f();c();d();f();c();d();f();c();d();f();function fl(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function s0(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?fl(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function aO(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=s0(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return fl(r)}c();d();f();c();d();f();c();d();f();var Yx={};ur(Yx,{identity:()=>fK});c();d();f();c();d();f();c();d();f();function sK(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(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var _=0,D=0,C=0,I=v.length;C!==I&&v[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=v[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 g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var _=0;if(v[_]!==" "){for(var D=0,C=0;v[_]===u;)D++,_++;for(var I=(v.length-_)*l+1>>>0,P=new Uint8Array(I);v[_];){var R=r[v.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(v[_]!==" "){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 w(v){var _=g(v);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:w}}var aK=sK,uK=aK,uO=uK;c();d();f();var E0e=new Uint8Array(0);var lO=(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},Di=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 cO=e=>new TextEncoder().encode(e),fO=e=>new TextDecoder().decode(e);var Kx=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 hO(this,t)}},Wx=class{constructor(t){this.decoders=t}or(t){return hO(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`)}},hO=(e,t)=>new Wx(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Gx=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Kx(t,r,n),this.decoder=new qx(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},dl=({name:e,prefix:t,encode:r,decode:n})=>new Gx(e,t,r,n),Ao=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=uO(r,t);return dl({prefix:e,name:t,encode:n,decode:o=>Di(i(o))})},lK=(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},cK=(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})=>dl({prefix:t,name:e,encode(i){return cK(i,n,r)},decode(i){return lK(i,n,r,e)}});var fK=dl({prefix:"\0",name:"identity",encode:e=>fO(e),decode:e=>cO(e)});var Xx={};ur(Xx,{base2:()=>dK});c();d();f();var dK=Rt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Jx={};ur(Jx,{base8:()=>hK});c();d();f();var hK=Rt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Qx={};ur(Qx,{base10:()=>pK});c();d();f();var pK=Ao({prefix:"9",name:"base10",alphabet:"0123456789"});var Zx={};ur(Zx,{base16:()=>mK,base16upper:()=>gK});c();d();f();var mK=Rt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gK=Rt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var eb={};ur(eb,{base32:()=>hl,base32hex:()=>xK,base32hexpad:()=>EK,base32hexpadupper:()=>_K,base32hexupper:()=>bK,base32pad:()=>vK,base32padupper:()=>wK,base32upper:()=>yK,base32z:()=>SK});c();d();f();var hl=Rt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),yK=Rt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vK=Rt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),wK=Rt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),xK=Rt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),bK=Rt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),EK=Rt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),_K=Rt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),SK=Rt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var tb={};ur(tb,{base36:()=>CK,base36upper:()=>TK});c();d();f();var CK=Ao({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),TK=Ao({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var rb={};ur(rb,{base58btc:()=>Zn,base58flickr:()=>PK});c();d();f();var Zn=Ao({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),PK=Ao({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var nb={};ur(nb,{base64:()=>DK,base64pad:()=>IK,base64url:()=>AK,base64urlpad:()=>OK});c();d();f();var DK=Rt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),IK=Rt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),AK=Rt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),OK=Rt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var ib={};ur(ib,{base256emoji:()=>LK});c();d();f();var pO=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}"),RK=pO.reduce((e,t,r)=>(e[r]=t,e),[]),NK=pO.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function MK(e){return e.reduce((t,r)=>(t+=RK[r],t),"")}function kK(e){let t=[];for(let r of e){let n=NK[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var LK=dl({prefix:"\u{1F680}",name:"base256emoji",encode:MK,decode:kK});var ub={};ur(ub,{sha256:()=>tq,sha512:()=>rq});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var FK=yO,mO=128,$K=127,UK=~$K,VK=Math.pow(2,31);function yO(e,t,r){t=t||[],r=r||0;for(var n=r;e>=VK;)t[r++]=e&255|mO,e/=128;for(;e&UK;)t[r++]=e&255|mO,e>>>=7;return t[r]=e|0,yO.bytes=r-n+1,t}var BK=ob,jK=128,gO=127;function ob(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw ob.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&gO)<<i:(s&gO)*Math.pow(2,i),i+=7}while(s>=jK);return ob.bytes=o-n,r}var zK=Math.pow(2,7),HK=Math.pow(2,14),KK=Math.pow(2,21),qK=Math.pow(2,28),WK=Math.pow(2,35),GK=Math.pow(2,42),YK=Math.pow(2,49),XK=Math.pow(2,56),JK=Math.pow(2,63),QK=function(e){return e<zK?1:e<HK?2:e<KK?3:e<qK?4:e<WK?5:e<GK?6:e<YK?7:e<XK?8:e<JK?9:10},ZK={encode:FK,decode:BK,encodingLength:QK},eq=ZK,Of=eq;var Rf=(e,t=0)=>[Of.decode(e,t),Of.decode.bytes],pl=(e,t,r=0)=>(Of.encode(e,t,r),t),ml=e=>Of.encodingLength(e);var Gs=(e,t)=>{let r=t.byteLength,n=ml(e),i=n+ml(r),o=new Uint8Array(i+r);return pl(e,o,0),pl(r,o,n),o.set(t,i),new gl(e,r,t,o)},vO=e=>{let t=Di(e),[r,n]=Rf(t),[i,o]=Rf(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new gl(r,i,s,t)},wO=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&lO(e.bytes,t.bytes),gl=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var ab=({name:e,code:t,encode:r})=>new sb(e,t,r),sb=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?Gs(this.code,r):r.then(n=>Gs(this.code,n))}else throw Error("Unknown type, must be binary type")}};var bO=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),tq=ab({name:"sha2-256",code:18,encode:bO("SHA-256")}),rq=ab({name:"sha2-512",code:19,encode:bO("SHA-512")});var lb={};ur(lb,{identity:()=>oq});c();d();f();var EO=0,nq="identity",_O=Di,iq=e=>Gs(EO,_O(e)),oq={code:EO,name:nq,encode:_O,digest:iq};c();d();f();c();d();f();var z0e=new TextEncoder,H0e=new TextDecoder;c();d();f();c();d();f();var Kt=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:l0,byteLength:l0,code:u0,version:u0,multihash:u0,bytes:u0,_baseCache:l0,asCID:l0})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==Mf)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==fq)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Kt.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=Gs(t,r);return Kt.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&&wO(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return lq(r,i,t||Zn.encoder);default:return cq(r,i,t||hl.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/,pq),!!(t&&(t[CO]||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 Kt)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new Kt(r,n,i,o||SO(r,n,i.bytes))}else if(t!=null&&t[CO]===!0){let{version:r,multihash:n,code:i}=t,o=vO(n);return Kt.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!==Mf)throw new Error(`Version 0 CID must use dag-pb (code: ${Mf}) block encoding`);return new Kt(t,r,n,n.bytes)}case 1:{let i=SO(t,r,n.bytes);return new Kt(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return Kt.create(0,Mf,t)}static createV1(t,r){return Kt.create(1,t,r)}static decode(t){let[r,n]=Kt.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=Kt.inspectBytes(t),n=r.size-r.multihashSize,i=Di(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 gl(r.multihashCode,r.digestSize,o,i);return[r.version===0?Kt.createV0(s):Kt.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,g]=Rf(t.subarray(r));return r+=g,h},i=n(),o=Mf;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=Kt.decode(i);return o._baseCache.set(n,t),o}},uq=(e,t)=>{switch(e[0]){case"Q":{let r=t||Zn;return[Zn.prefix,r.decode(`${Zn.prefix}${e}`)]}case Zn.prefix:{let r=t||Zn;return[Zn.prefix,r.decode(e)]}case hl.prefix:{let r=t||hl;return[hl.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)]}}},lq=(e,t,r)=>{let{prefix:n}=r;if(n!==Zn.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},cq=(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},Mf=112,fq=18,SO=(e,t,r)=>{let n=ml(e),i=n+ml(t),o=new Uint8Array(i+r.byteLength);return pl(e,o,0),pl(t,o,n),o.set(r,i),o},CO=Symbol.for("@ipld/js-cid/CID"),u0={writable:!1,configurable:!1,enumerable:!0},l0={writable:!1,enumerable:!1,configurable:!1},dq="0.0.0-dev",hq=(e,t)=>{if(e.test(dq))console.warn(t);else throw new Error(t)},pq=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
25
|
+
`),()=>{document.head.removeChild(u)}},[t]),Bl.createElement(Fw,{isPresent:t,childRef:n,sizeRef:i},Bl.cloneElement(e,{ref:n}))}var h0=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=Ro(KB),l=(0,ff.useId)(),u=(0,ff.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:h=>{a.set(h,!0);for(let m of a.values())if(!m)return;n&&n()},register:h=>(a.set(h,!1),()=>a.delete(h))}),o?void 0:[r]);return(0,ff.useMemo)(()=>{a.forEach((h,m)=>a.set(m,!1))},[r]),cf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=cf.createElement(ED,{isPresent:r},e)),cf.createElement(qn.Provider,{value:u},e)};function KB(){return new Map}var jl=e=>e.key||"";function qB(e,t){e.forEach(r=>{let n=jl(r);t.set(n,r)})}function WB(e){let t=[];return yn.Children.forEach(e,r=>{(0,yn.isValidElement)(r)&&t.push(r)}),t}var zl=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",qp(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=bD(),l=(0,yn.useContext)(sl).forceRender;l&&(a=l);let u=d0(),h=WB(e),m=h,g=new Set,x=(0,yn.useRef)(m),E=(0,yn.useRef)(new Map).current,_=(0,yn.useRef)(!0);if(Ns(()=>{_.current=!1,qB(h,E),x.current=m}),xl(()=>{_.current=!0,E.clear(),g.clear()}),_.current)return Oi.createElement(Oi.Fragment,null,m.map(D=>Oi.createElement(h0,{key:jl(D),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},D)));m=[...m];let A=x.current.map(jl),C=h.map(jl),P=A.length;for(let D=0;D<P;D++){let O=A[D];C.indexOf(O)===-1&&g.add(O)}return s==="wait"&&g.size&&(m=[]),g.forEach(D=>{if(C.indexOf(D)!==-1)return;let O=E.get(D);if(!O)return;let $=A.indexOf(D),j=()=>{E.delete(D),g.delete(D);let F=x.current.findIndex(U=>U.key===D);if(x.current.splice(F,1),!g.size){if(x.current=h,u.current===!1)return;a(),n&&n()}};m.splice($,0,Oi.createElement(h0,{key:jl(O),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},O))}),m=m.map(D=>{let O=D.key;return g.has(O)?D:Oi.createElement(h0,{key:jl(D),isPresent:!0,presenceAffectsLayout:o,mode:s},D)}),Cl!=="production"&&s==="wait"&&m.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.`),Oi.createElement(Oi.Fragment,null,g.size?m:m.map(D=>(0,yn.cloneElement)(D)))};c();d();f();var GB=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.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"})),p0=GB;var YB=({qrData:e,showQR:t,setShowQR:r})=>{let n=Ya(),[i,o]=(0,m0.useState)(!1),s=(0,m0.useCallback)(()=>{var a;(0,_D.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return y.createElement(y.Fragment,null,(n=="desktop"||t)&&y.createElement(y.Fragment,null,y.createElement(zl,null,i&&y.createElement(kn.div,{className:"text-9eafc0 text-sm",key:"copied",initial:"hidden",animate:"visible",exit:"hidden",variants:{visible:{y:0,opacity:1},hidden:{y:"100%",opacity:0},exit:{y:"100%",opacity:0,transition:{duration:.5}}},transition:{duration:.5,ease:"easeInOut"}},y.createElement("span",{className:"border-f1f5f8 rounded-lg border py-1 px-2 text-sm"},"QR Code copied"))),y.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},y.createElement("div",{className:"text-29343f dark:text-white"},e?y.createElement("div",{onClick:s,className:"cursor-pointer"},y.createElement(NC,{data:e.default,size:244})):y.createElement("div",{className:"flex h-[244px] w-[244px] items-center justify-center"},y.createElement(xo,{className:"h-[72px] w-[72px]"}))))),y.createElement("div",{className:"space-y-4"},y.createElement(kn.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:xi("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")},y.createElement(p0,{className:"h-5 w-5"}),y.createElement(kn.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),y.createElement("div",{className:"space-x-2 md:hidden"},y.createElement(kn.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&y.createElement(y.Fragment,null,y.createElement("span",{className:"text-9eafc0"},"\xB7"),y.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},SD=YB;var Qf=Z(ae(),1);c();d();f();c();d();f();var XB=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),y.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"})),CD=XB;c();d();f();var JB=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),y.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"}),y.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"})),TD=JB;var QB=({className:e})=>y.createElement("div",{className:xi(e,"space-y-4 text-left")},y.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),y.createElement("div",{className:"space-y-3"},y.createElement(DD,{title:"Your global digital ID",icon:TD},y.createElement("p",null,"With Worldcoin and World ID sign in seamlessly and prove you are a unique human.")),y.createElement(DD,{title:"Privacy-preserving",icon:CD},y.createElement("p",null,"Maximum privacy. Prevents cross-tracking and can be used fully anonymously.")))),DD=({icon:e,title:t,children:r})=>y.createElement("div",{className:"flex space-x-6"},y.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},y.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),y.createElement("div",null,y.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),PD=QB;c();d();f();c();d();f();function $w(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()}var Jm=Z(ae(),1);c();d();f();var ID="c3e6053f10efbb423808783ee874cf6a";c();d();f();var hM=Z(v0());c();d();f();var Hi=Z(Ys()),dE=Z(v0()),JO=Z(vP()),_u=Z(kP()),Me=Z(ox());c();d();f();Gw();var BP=Z(Ys()),F0=class extends Zn{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var $0=class extends Zn{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},U0=class{constructor(t,r){this.logger=t,this.core=r}},V0=class extends Zn{constructor(t,r){super(),this.relayer=t,this.logger=r}},B0=class extends Zn{constructor(t){super()}},j0=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var z0=class extends Zn{constructor(t,r){super(),this.relayer=t,this.logger=r}};var H0=class extends Zn{constructor(t,r){super(),this.core=t,this.logger=r}};var K0=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var q0=class{constructor(t){this.client=t}};c();d();f();var Fj=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),$j=e=>{let t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,i)=>typeof i=="string"&&i.match(/^\d+n$/)?BigInt(i.substring(0,i.length-1)):i)};function vf(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return $j(e)}catch(t){return e}}function ru(e){return typeof e=="string"?e:Fj(e)||""}c();d();f();c();d();f();var Tf=Z(vI()),XI=Z(iu()),JI=Z(ko());c();d();f();var wI="EdDSA",xI="JWT",_x=".",Sx="base64url",bI="utf8",EI="utf8",_I=":",SI="did",CI="key",Cx="base58btc",TI="z",DI="K36";c();d();f();c();d();f();c();d();f();function bf(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Zs(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=bf(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();var Rx={};cr(Rx,{identity:()=>$z});c();d();f();c();d();f();c();d();f();function Mz(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,l=e.charAt(0),u=Math.log(a)/Math.log(256),h=Math.log(256)/Math.log(a);function m(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var _=0,A=0,C=0,P=E.length;C!==P&&E[C]===0;)C++,_++;for(var D=(P-C)*h+1>>>0,O=new Uint8Array(D);C!==P;){for(var $=E[C],j=0,F=D-1;($!==0||j<A)&&F!==-1;F--,j++)$+=256*O[F]>>>0,O[F]=$%a>>>0,$=$/a>>>0;if($!==0)throw new Error("Non-zero carry");A=j,C++}for(var U=D-A;U!==D&&O[U]===0;)U++;for(var W=l.repeat(_);U<D;++U)W+=e.charAt(O[U]);return W}function g(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;var _=0;if(E[_]!==" "){for(var A=0,C=0;E[_]===l;)A++,_++;for(var P=(E.length-_)*u+1>>>0,D=new Uint8Array(P);E[_];){var O=r[E.charCodeAt(_)];if(O===255)return;for(var $=0,j=P-1;(O!==0||$<C)&&j!==-1;j--,$++)O+=a*D[j]>>>0,D[j]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");C=$,_++}if(E[_]!==" "){for(var F=P-C;F!==P&&D[F]===0;)F++;for(var U=new Uint8Array(A+(P-F)),W=A;F!==P;)U[W++]=D[F++];return U}}}function x(E){var _=g(E);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:m,decodeUnsafe:g,decode:x}}var Nz=Mz,kz=Nz,PI=kz;c();d();f();var Whe=new Uint8Array(0);var II=(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},Ni=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 RI=e=>new TextEncoder().encode(e),AI=e=>new TextDecoder().decode(e);var Tx=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")}},Dx=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 MI(this,t)}},Px=class{constructor(t){this.decoders=t}or(t){return MI(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`)}},MI=(e,t)=>new Px(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Ix=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Tx(t,r,n),this.decoder=new Dx(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},lu=({name:e,prefix:t,encode:r,decode:n})=>new Ix(e,t,r,n),Fo=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=PI(r,t);return lu({prefix:e,name:t,encode:n,decode:o=>Ni(i(o))})},Lz=(e,t,r,n)=>{let i={};for(let h=0;h<t.length;++h)i[t[h]]=h;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,l=0,u=0;for(let h=0;h<o;++h){let m=i[e[h]];if(m===void 0)throw new SyntaxError(`Non-${n} character`);l=l<<r|m,a+=r,a>=8&&(a-=8,s[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw new SyntaxError("Unexpected end of data");return s},Fz=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let l=0;l<e.length;++l)for(a=a<<8|e[l],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},At=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>lu({prefix:t,name:e,encode(i){return Fz(i,n,r)},decode(i){return Lz(i,n,r,e)}});var $z=lu({prefix:"\0",name:"identity",encode:e=>AI(e),decode:e=>RI(e)});var Ax={};cr(Ax,{base2:()=>Uz});c();d();f();var Uz=At({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Ox={};cr(Ox,{base8:()=>Vz});c();d();f();var Vz=At({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Mx={};cr(Mx,{base10:()=>Bz});c();d();f();var Bz=Fo({prefix:"9",name:"base10",alphabet:"0123456789"});var Nx={};cr(Nx,{base16:()=>jz,base16upper:()=>zz});c();d();f();var jz=At({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),zz=At({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var kx={};cr(kx,{base32:()=>uu,base32hex:()=>Wz,base32hexpad:()=>Yz,base32hexpadupper:()=>Xz,base32hexupper:()=>Gz,base32pad:()=>Kz,base32padupper:()=>qz,base32upper:()=>Hz,base32z:()=>Jz});c();d();f();var uu=At({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Hz=At({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Kz=At({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),qz=At({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Wz=At({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Gz=At({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Yz=At({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Xz=At({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Jz=At({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Lx={};cr(Lx,{base36:()=>Qz,base36upper:()=>Zz});c();d();f();var Qz=Fo({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Zz=Fo({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Fx={};cr(Fx,{base58btc:()=>ei,base58flickr:()=>eH});c();d();f();var ei=Fo({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),eH=Fo({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var $x={};cr($x,{base64:()=>tH,base64pad:()=>rH,base64url:()=>nH,base64urlpad:()=>iH});c();d();f();var tH=At({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),rH=At({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),nH=At({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),iH=At({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Ux={};cr(Ux,{base256emoji:()=>uH});c();d();f();var NI=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}"),oH=NI.reduce((e,t,r)=>(e[r]=t,e),[]),sH=NI.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function aH(e){return e.reduce((t,r)=>(t+=oH[r],t),"")}function lH(e){let t=[];for(let r of e){let n=sH[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var uH=lu({prefix:"\u{1F680}",name:"base256emoji",encode:aH,decode:lH});var zx={};cr(zx,{sha256:()=>PH,sha512:()=>IH});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var cH=FI,kI=128,fH=127,dH=~fH,hH=Math.pow(2,31);function FI(e,t,r){t=t||[],r=r||0;for(var n=r;e>=hH;)t[r++]=e&255|kI,e/=128;for(;e&dH;)t[r++]=e&255|kI,e>>>=7;return t[r]=e|0,FI.bytes=r-n+1,t}var pH=Vx,mH=128,LI=127;function Vx(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw Vx.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&LI)<<i:(s&LI)*Math.pow(2,i),i+=7}while(s>=mH);return Vx.bytes=o-n,r}var gH=Math.pow(2,7),yH=Math.pow(2,14),vH=Math.pow(2,21),wH=Math.pow(2,28),xH=Math.pow(2,35),bH=Math.pow(2,42),EH=Math.pow(2,49),_H=Math.pow(2,56),SH=Math.pow(2,63),CH=function(e){return e<gH?1:e<yH?2:e<vH?3:e<wH?4:e<xH?5:e<bH?6:e<EH?7:e<_H?8:e<SH?9:10},TH={encode:cH,decode:pH,encodingLength:CH},DH=TH,Ef=DH;var _f=(e,t=0)=>[Ef.decode(e,t),Ef.decode.bytes],cu=(e,t,r=0)=>(Ef.encode(e,t,r),t),fu=e=>Ef.encodingLength(e);var ea=(e,t)=>{let r=t.byteLength,n=fu(e),i=n+fu(r),o=new Uint8Array(i+r);return cu(e,o,0),cu(r,o,n),o.set(t,i),new du(e,r,t,o)},$I=e=>{let t=Ni(e),[r,n]=_f(t),[i,o]=_f(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new du(r,i,s,t)},UI=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&II(e.bytes,t.bytes),du=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var jx=({name:e,code:t,encode:r})=>new Bx(e,t,r),Bx=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?ea(this.code,r):r.then(n=>ea(this.code,n))}else throw Error("Unknown type, must be binary type")}};var BI=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),PH=jx({name:"sha2-256",code:18,encode:BI("SHA-256")}),IH=jx({name:"sha2-512",code:19,encode:BI("SHA-512")});var Hx={};cr(Hx,{identity:()=>OH});c();d();f();var jI=0,RH="identity",zI=Ni,AH=e=>ea(jI,zI(e)),OH={code:jI,name:RH,encode:zI,digest:AH};c();d();f();c();d();f();var ppe=new TextEncoder,mpe=new TextDecoder;c();d();f();c();d();f();var qt=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:em,byteLength:em,code:Z0,version:Z0,multihash:Z0,bytes:Z0,_baseCache:em,asCID:em})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==Cf)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==$H)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return qt.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=ea(t,r);return qt.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&&UI(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return LH(r,i,t||ei.encoder);default:return FH(r,i,t||uu.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 VH(/^0\.0/,BH),!!(t&&(t[KI]||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 qt)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new qt(r,n,i,o||HI(r,n,i.bytes))}else if(t!=null&&t[KI]===!0){let{version:r,multihash:n,code:i}=t,o=$I(n);return qt.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!==Cf)throw new Error(`Version 0 CID must use dag-pb (code: ${Cf}) block encoding`);return new qt(t,r,n,n.bytes)}case 1:{let i=HI(t,r,n.bytes);return new qt(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return qt.create(0,Cf,t)}static createV1(t,r){return qt.create(1,t,r)}static decode(t){let[r,n]=qt.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=qt.inspectBytes(t),n=r.size-r.multihashSize,i=Ni(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 du(r.multihashCode,r.digestSize,o,i);return[r.version===0?qt.createV0(s):qt.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[m,g]=_f(t.subarray(r));return r+=g,m},i=n(),o=Cf;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(),l=n(),u=r+l,h=u-s;return{version:i,codec:o,multihashCode:a,digestSize:l,multihashSize:h,size:u}}static parse(t,r){let[n,i]=kH(t,r),o=qt.decode(i);return o._baseCache.set(n,t),o}},kH=(e,t)=>{switch(e[0]){case"Q":{let r=t||ei;return[ei.prefix,r.decode(`${ei.prefix}${e}`)]}case ei.prefix:{let r=t||ei;return[ei.prefix,r.decode(e)]}case uu.prefix:{let r=t||uu;return[uu.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)]}}},LH=(e,t,r)=>{let{prefix:n}=r;if(n!==ei.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},FH=(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},Cf=112,$H=18,HI=(e,t,r)=>{let n=fu(e),i=n+fu(t),o=new Uint8Array(i+r.byteLength);return cu(e,o,0),cu(t,o,n),o.set(r,i),o},KI=Symbol.for("@ipld/js-cid/CID"),Z0={writable:!1,configurable:!1,enumerable:!0},em={writable:!1,enumerable:!1,configurable:!1},UH="0.0.0-dev",VH=(e,t)=>{if(e.test(UH))console.warn(t);else throw new Error(t)},BH=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
26
26
|
Following code pattern:
|
|
27
27
|
|
|
28
28
|
if (CID.isCID(value)) {
|
|
@@ -36,8 +36,8 @@ if (cid) {
|
|
|
36
36
|
// Make sure to use cid instead of value
|
|
37
37
|
doSomethingWithCID(cid)
|
|
38
38
|
}
|
|
39
|
-
`;var yl=K(K(K(K(K(K(K(K(K(K({},Yx),Xx),Jx),Qx),Zx),eb),tb),rb),nb),ib),Q0e=K(K({},ub),lb);function PO(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var TO=PO("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),cb=PO("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=s0(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),mq=K({utf8:TO,"utf-8":TO,hex:yl.base16,latin1:cb,ascii:cb,binary:cb},yl),c0=mq;function f0(e,t="utf8"){let r=c0[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 d0(e,t="utf8"){let r=c0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?fl(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function h0(e){return f0(d0(sl(e),eO),zx)}function p0(e){let t=d0(sO,Hx),r=oO+f0(aO([t,e]),Hx);return[nO,iO,r].join(rO)}function gq(e){return f0(e,zx)}function DO(e){return d0([h0(e.header),h0(e.payload)].join(jx),tO)}function IO(e){return[h0(e.header),h0(e.payload),gq(e.signature)].join(jx)}function fb(e=(0,AO.randomBytes)(32)){return kf.generateKeyPairFromSeed(e)}async function RO(e,t,r,n,i=(0,OO.fromMiliseconds)(Date.now())){let o={alg:QA,typ:ZA},s=p0(n.publicKey),a=i+r,u={iss:s,sub:e,aud:t,iat:i,exp:a},l=DO({header:o,payload:u}),p=kf.sign(n.secretKey,l);return IO({header:o,payload:u,signature:p})}c();d();f();c();d();f();var _b=Y(w0()),DR=Y(x0()),Sb=Y(Hs()),jf=Y(_0()),O0=Y(T0());c();d();f();c();d();f();c();d();f();c();d();f();function Vf(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function wl(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=Vf(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 XO(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var YO=XO("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),vb=XO("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=Vf(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Wq=K({utf8:YO,"utf-8":YO,hex:yl.base16,latin1:vb,ascii:vb,binary:vb},yl),P0=Wq;function Pr(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,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}c();d();f();function Dr(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();c();d();f();var JO=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))},Gq=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var Yq=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var Xq=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 Jq=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var Qq=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var Zq=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,eW=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,QO=3,tW=[["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",Zq]],ZO=[["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 tR(e){return e?eR(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Qq:typeof navigator<"u"?eR(navigator.userAgent):iW()}function rW(e){return e!==""&&tW.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 eR(e){var t=rW(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Jq;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<QO&&(i=JO(JO([],i,!0),oW(QO-i.length),!0)):i=[];var o=i.join("."),s=nW(e),a=eW.exec(e);return a&&a[1]?new Xq(r,o,s,a[1]):new Gq(r,o,s)}function nW(e){for(var t=0,r=ZO.length;t<r;t++){var n=ZO[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function iW(){var e=typeof process<"u"&&process.version;return e?new Yq(process.version.slice(1)):null}function oW(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Ro=Y(Ti()),Js=Y(Xs()),TW=Y(nR()),bl=Y(I0());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var A0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var IR="base10",Vr="base16",bb="base64pad",Cb="utf8",AR=0,Qs=1,PW=0,ER=1,Eb=12,Tb=32;function OR(){let e=O0.generateKeyPair();return{privateKey:Dr(e.secretKey,Vr),publicKey:Dr(e.publicKey,Vr)}}function R0(){let e=(0,Sb.randomBytes)(Tb);return Dr(e,Vr)}function RR(e,t){let r=O0.sharedKey(Pr(e,Vr),Pr(t,Vr)),n=new DR.HKDF(jf.SHA256,r).expand(Tb);return Dr(n,Vr)}function NR(e){let t=(0,jf.hash)(Pr(e,Vr));return Dr(t,Vr)}function zf(e){let t=(0,jf.hash)(Pr(e,Cb));return Dr(t,Vr)}function DW(e){return Pr(`${e}`,IR)}function El(e){return Number(Dr(e,IR))}function MR(e){let t=DW(typeof e.type<"u"?e.type:AR);if(El(t)===Qs&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?Pr(e.senderPublicKey,Vr):void 0,n=typeof e.iv<"u"?Pr(e.iv,Vr):(0,Sb.randomBytes)(Eb),i=new _b.ChaCha20Poly1305(Pr(e.symKey,Vr)).seal(n,Pr(e.message,Cb));return IW({type:t,sealed:i,iv:n,senderPublicKey:r})}function kR(e){let t=new _b.ChaCha20Poly1305(Pr(e.symKey,Vr)),{sealed:r,iv:n}=N0(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return Dr(i,Cb)}function IW(e){if(El(e.type)===Qs){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Dr(wl([e.type,e.senderPublicKey,e.iv,e.sealed]),bb)}return Dr(wl([e.type,e.iv,e.sealed]),bb)}function N0(e){let t=Pr(e,bb),r=t.slice(PW,ER),n=ER;if(El(r)===Qs){let a=n+Tb,u=a+Eb,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+Eb,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function LR(e,t){let r=N0(e);return Pb({type:El(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Dr(r.senderPublicKey,Vr):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function Pb(e){let t=(e==null?void 0:e.type)||AR;if(t===Qs){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 Db(e){return e.type===Qs&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var AW=Object.defineProperty,_R=Object.getOwnPropertySymbols,OW=Object.prototype.hasOwnProperty,RW=Object.prototype.propertyIsEnumerable,SR=(e,t,r)=>t in e?AW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CR=(e,t)=>{for(var r in t||(t={}))OW.call(t,r)&&SR(e,r,t[r]);if(_R)for(var r of _R(t))RW.call(t,r)&&SR(e,r,t[r]);return e},NW="ReactNative",Bf={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var MW="js";function FR(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function kW(){return!(0,Js.getDocument)()&&!!(0,Js.getNavigator)()&&navigator.product===NW}function LW(){return!FR()&&!!(0,Js.getNavigator)()}function FW(){return kW()?Bf.reactNative:FR()?Bf.node:LW()?Bf.browser:Bf.unknown}function $W(e,t){let r=bl.parse(e);return r=CR(CR({},r),t),e=bl.stringify(r),e}function UW(){let e=tR();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 VW(){var e;let t=FW();return t===Bf.browser?[t,((e=(0,Js.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function BW(e,t,r){let n=UW(),i=VW();return[[e,t].join("-"),[MW,r].join("-"),n,i].join("/")}function $R({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=BW(e,t,n),u={auth:i,ua:a,projectId:o},l=$W(s[1]||"",u);return s[0]+"?"+l}function Ib(e){return Object.fromEntries(e.entries())}function Ab(e){return new Map(Object.entries(e))}function UR(e){let t=(0,Ro.toMiliseconds)(e||Ro.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 Ob(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function VR(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 BR(e){return VR("topic",e)}function jR(e){return VR("id",e)}function zR(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 M0(e,t){return(0,Ro.fromMiliseconds)((t||Date.now())+(0,Ro.toMiliseconds)(e))}function Rb(e){return Date.now()>=(0,Ro.toMiliseconds)(e)}function k0(e,t){return`${e}${t?`:${t}`:""}`}var jW="irn";function L0(e){return(e==null?void 0:e.relay)||{protocol:jW}}function F0(e){let t=A0[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var zW=Object.defineProperty,TR=Object.getOwnPropertySymbols,HW=Object.prototype.hasOwnProperty,KW=Object.prototype.propertyIsEnumerable,PR=(e,t,r)=>t in e?zW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qW=(e,t)=>{for(var r in t||(t={}))HW.call(t,r)&&PR(e,r,t[r]);if(TR)for(var r of TR(t))KW.call(t,r)&&PR(e,r,t[r]);return e};function WW(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 HR(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=bl.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:WW(s)}}function GW(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 KR(e){return`${e.protocol}:${e.topic}@${e.version}?`+bl.stringify(qW({symKey:e.symKey},GW(e.relay)))}var YW={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}},XW={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}=XW[e];return{message:t?`${r} ${t}`:r,code:n}}function _l(e,t){let{message:r,code:n}=YW[e];return{message:t?`${r} ${t}`:r,code:n}}function Hf(e){return typeof e>"u"}function Nb(e,t){return t&&Hf(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function qR(e){if(Nb(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function WR(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function GR(e){return e==null?void 0:e.topic}function $0(e){return typeof e<"u"&&typeof e!==null}var Et=Y(Ti());c();d();f();c();d();f();var RN=Y(Do());var qt={};ur(qt,{DEFAULT_ERROR:()=>qf,IBaseJsonRpcProvider:()=>Y0,IEvents:()=>Tl,IJsonRpcConnection:()=>Ub,IJsonRpcProvider:()=>Wf,INTERNAL_ERROR:()=>U0,INVALID_PARAMS:()=>QR,INVALID_REQUEST:()=>XR,METHOD_NOT_FOUND:()=>JR,PARSE_ERROR:()=>YR,RESERVED_ERROR_CODES:()=>Mb,SERVER_ERROR:()=>Kf,SERVER_ERROR_CODE_RANGE:()=>V0,STANDARD_ERROR_MAP:()=>No,formatErrorMessage:()=>AN,formatJsonRpcError:()=>Zs,formatJsonRpcRequest:()=>Lo,formatJsonRpcResult:()=>Cl,getError:()=>j0,getErrorByCode:()=>z0,isHttpUrl:()=>aG,isJsonRpcError:()=>Ir,isJsonRpcPayload:()=>Bb,isJsonRpcRequest:()=>Pl,isJsonRpcResponse:()=>ea,isJsonRpcResult:()=>wn,isJsonRpcValidationInvalid:()=>uG,isLocalhostUrl:()=>Vb,isNodeJs:()=>DN,isReservedErrorCode:()=>B0,isServerErrorCode:()=>JW,isValidDefaultRoute:()=>W0,isValidErrorCode:()=>ZR,isValidLeadingWildcardRoute:()=>rG,isValidRoute:()=>tG,isValidTrailingWildcardRoute:()=>nG,isValidWildcardRoute:()=>G0,isWsUrl:()=>X0,parseConnectionError:()=>kb,payloadId:()=>IN,validateJsonRpcError:()=>QW});c();d();f();c();d();f();var YR="PARSE_ERROR",XR="INVALID_REQUEST",JR="METHOD_NOT_FOUND",QR="INVALID_PARAMS",U0="INTERNAL_ERROR",Kf="SERVER_ERROR",Mb=[-32700,-32600,-32601,-32602,-32603],V0=[-32e3,-32099],No={[YR]:{code:-32700,message:"Parse error"},[XR]:{code:-32600,message:"Invalid Request"},[JR]:{code:-32601,message:"Method not found"},[QR]:{code:-32602,message:"Invalid params"},[U0]:{code:-32603,message:"Internal error"},[Kf]:{code:-32e3,message:"Server error"}},qf=Kf;c();d();f();function JW(e){return e<=V0[0]&&e>=V0[1]}function B0(e){return Mb.includes(e)}function ZR(e){return typeof e=="number"}function j0(e){return Object.keys(No).includes(e)?No[e]:No[qf]}function z0(e){let t=Object.values(No).find(r=>r.code===e);return t||No[qf]}function QW(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(!ZR(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(B0(e.error.code)){let t=z0(e.error.code);if(t.message!==No[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 kb(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={};ur(Ft,{isNodeJs:()=>DN});c();d();f();var PN=Y($b());jt(Ft,Y($b()));var DN=PN.isNode;jt(qt,Ft);c();d();f();function IN(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Lo(e,t,r){return{id:r||IN(),jsonrpc:"2.0",method:e,params:t}}function Cl(e,t){return{id:e,jsonrpc:"2.0",result:t}}function Zs(e,t,r){return{id:e,jsonrpc:"2.0",error:AN(t,r)}}function AN(e,t){return typeof e>"u"?j0(U0):(typeof e=="string"&&(e=Object.assign(Object.assign({},j0(Kf)),{message:e})),typeof t<"u"&&(e.data=t),B0(e.code)&&(e=z0(e.code)),e)}c();d();f();function tG(e){return e.includes("*")?G0(e):!/\W/g.test(e)}function W0(e){return e==="*"}function G0(e){return W0(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function rG(e){return!W0(e)&&G0(e)&&!e.split("*")[0].trim()}function nG(e){return!W0(e)&&G0(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Tl=class{};c();d();f();var Ub=class extends Tl{constructor(t){super()}},Y0=class extends Tl{constructor(){super()}},Wf=class extends Y0{constructor(t){super()}};c();d();f();c();d();f();var iG="^https?:",oG="^wss?:";function sG(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function ON(e,t){let r=sG(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function aG(e){return ON(e,iG)}function X0(e){return ON(e,oG)}function Vb(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function Bb(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Pl(e){return Bb(e)&&"method"in e}function ea(e){return Bb(e)&&(wn(e)||Ir(e))}function wn(e){return"result"in e}function Ir(e){return"error"in e}function uG(e){return"error"in e&&e.valid===!1}var J0=class extends Wf{constructor(t){super(t),this.events=new RN.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(Lo(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=>{Ir(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),ea(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 LN=Y(Do());var kN=10,lG=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:MN(),cG=()=>typeof window<"u",fG=lG(),jb=class{constructor(t){if(this.url=t,this.events=new LN.EventEmitter,this.registering=!1,!X0(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(sl(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!X0(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,qt.isReactNative)()?void 0:{rejectUnauthorized:!Vb(t)},o=new fG(t,[],i);cG()?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"?Df(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=Zs(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return kb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>kN&&this.events.setMaxListeners(kN)}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}},FN=jb;var $N=FN;var UM=Y(wM());function jY(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(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var _=0,D=0,C=0,I=v.length;C!==I&&v[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=v[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 g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var _=0;if(v[_]!==" "){for(var D=0,C=0;v[_]===u;)D++,_++;for(var I=(v.length-_)*l+1>>>0,P=new Uint8Array(I);v[_];){var R=r[v.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(v[_]!==" "){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 w(v){var _=g(v);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:w}}var zY=jY,HY=zY,VM=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")},KY=e=>new TextEncoder().encode(e),qY=e=>new TextDecoder().decode(e),rE=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")}},nE=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 BM(this,t)}},iE=class{constructor(t){this.decoders=t}or(t){return BM(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`)}},BM=(e,t)=>new iE(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),oE=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new rE(t,r,n),this.decoder=new nE(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},fg=({name:e,prefix:t,encode:r,decode:n})=>new oE(e,t,r,n),td=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=HY(r,t);return fg({prefix:e,name:t,encode:n,decode:o=>VM(i(o))})},WY=(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},GY=(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},sr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>fg({prefix:t,name:e,encode(i){return GY(i,n,r)},decode(i){return WY(i,n,r,e)}}),YY=fg({prefix:"\0",name:"identity",encode:e=>qY(e),decode:e=>KY(e)}),XY=Object.freeze({__proto__:null,identity:YY}),JY=sr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),QY=Object.freeze({__proto__:null,base2:JY}),ZY=sr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),eX=Object.freeze({__proto__:null,base8:ZY}),tX=td({prefix:"9",name:"base10",alphabet:"0123456789"}),rX=Object.freeze({__proto__:null,base10:tX}),nX=sr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),iX=sr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),oX=Object.freeze({__proto__:null,base16:nX,base16upper:iX}),sX=sr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),aX=sr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),uX=sr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),lX=sr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),cX=sr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),fX=sr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),dX=sr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),hX=sr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),pX=sr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),mX=Object.freeze({__proto__:null,base32:sX,base32upper:aX,base32pad:uX,base32padupper:lX,base32hex:cX,base32hexupper:fX,base32hexpad:dX,base32hexpadupper:hX,base32z:pX}),gX=td({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),yX=td({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),vX=Object.freeze({__proto__:null,base36:gX,base36upper:yX}),wX=td({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),xX=td({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),bX=Object.freeze({__proto__:null,base58btc:wX,base58flickr:xX}),EX=sr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_X=sr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),SX=sr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),CX=sr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),TX=Object.freeze({__proto__:null,base64:EX,base64pad:_X,base64url:SX,base64urlpad:CX}),jM=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}"),PX=jM.reduce((e,t,r)=>(e[r]=t,e),[]),DX=jM.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function IX(e){return e.reduce((t,r)=>(t+=PX[r],t),"")}function AX(e){let t=[];for(let r of e){let n=DX[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var OX=fg({prefix:"\u{1F680}",name:"base256emoji",encode:IX,decode:AX}),RX=Object.freeze({__proto__:null,base256emoji:OX}),NX=zM,xM=128,MX=127,kX=~MX,LX=Math.pow(2,31);function zM(e,t,r){t=t||[],r=r||0;for(var n=r;e>=LX;)t[r++]=e&255|xM,e/=128;for(;e&kX;)t[r++]=e&255|xM,e>>>=7;return t[r]=e|0,zM.bytes=r-n+1,t}var FX=sE,$X=128,bM=127;function sE(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw sE.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&bM)<<i:(s&bM)*Math.pow(2,i),i+=7}while(s>=$X);return sE.bytes=o-n,r}var UX=Math.pow(2,7),VX=Math.pow(2,14),BX=Math.pow(2,21),jX=Math.pow(2,28),zX=Math.pow(2,35),HX=Math.pow(2,42),KX=Math.pow(2,49),qX=Math.pow(2,56),WX=Math.pow(2,63),GX=function(e){return e<UX?1:e<VX?2:e<BX?3:e<jX?4:e<zX?5:e<HX?6:e<KX?7:e<qX?8:e<WX?9:10},YX={encode:NX,decode:FX,encodingLength:GX},HM=YX,EM=(e,t,r=0)=>(HM.encode(e,t,r),t),_M=e=>HM.encodingLength(e),aE=(e,t)=>{let r=t.byteLength,n=_M(e),i=n+_M(r),o=new Uint8Array(i+r);return EM(e,o,0),EM(r,o,n),o.set(t,i),new uE(e,r,t,o)},uE=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},KM=({name:e,code:t,encode:r})=>new lE(e,t,r),lE=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?aE(this.code,r):r.then(n=>aE(this.code,n))}else throw Error("Unknown type, must be binary type")}},qM=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),XX=KM({name:"sha2-256",code:18,encode:qM("SHA-256")}),JX=KM({name:"sha2-512",code:19,encode:qM("SHA-512")}),QX=Object.freeze({__proto__:null,sha256:XX,sha512:JX}),WM=0,ZX="identity",GM=VM,eJ=e=>aE(WM,GM(e)),tJ={code:WM,name:ZX,encode:GM,digest:eJ},rJ=Object.freeze({__proto__:null,identity:tJ});new TextEncoder,new TextDecoder;var SM=K(K(K(K(K(K(K(K(K(K({},XY),QY),eX),rX),oX),mX),vX),bX),TX),RX);K(K({},QX),rJ);function nJ(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function YM(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var CM=YM("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eE=YM("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=nJ(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),iJ=K({utf8:CM,"utf-8":CM,hex:SM.base16,latin1:eE,ascii:eE,binary:eE},SM);function oJ(e,t="utf8"){let r=iJ[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 XM="wc",sJ=2,bE="core",Uo=`${XM}@${2}:${bE}:`,aJ={name:bE,logger:"error"},uJ={database:":memory:"},lJ="crypto",TM="client_ed25519_seed",cJ=Et.ONE_DAY,fJ="keychain",dJ="0.3",hJ="messages",pJ="0.3",mJ=Et.SIX_HOURS,gJ="publisher",EE="irn",yJ="error",vJ="wss://relay.walletconnect.com",wJ="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"},xJ="_subscription",lg={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},PM=Et.ONE_SECOND;var bJ="2.4.0",EJ="0.3",ii={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var _J="subscription",SJ="0.3",CJ=Et.FIVE_SECONDS*1e3,TJ="pairing",PJ="0.3";var Zf={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}}},ni={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},DJ="history",IJ="0.3",AJ="expirer",Zr={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},OJ="0.3";var cE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=fJ,this.version=dJ,this.initialized=!1,this.storagePrefix=Uo,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,Ib(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Ab(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)}}},fE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=lJ,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=fb(i);return p0(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=OR();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=fb(o),a=R0();return await RO(a,i,cJ,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),u=RR(a,o);return this.setSymKey(u,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||NR(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=Pb(s),u=sl(o);if(Db(a)){let g=a.senderPublicKey,w=a.receiverPublicKey;i=await this.generateSharedKey(g,w)}let l=this.getSymKey(i),{type:p,senderPublicKey:h}=a;return MR({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(i,o,s)=>{this.isInitialized();let a=LR(o,s);if(Db(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(p,h)}let u=this.getSymKey(i),l=kR({symKey:u,encoded:o});return Df(l)},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.keychain=n||new cE(this.core,this.logger)}get context(){return(0,Me.getLoggerContext)(this.logger)}getPayloadType(t){let r=N0(t);return El(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(TM)}catch(r){t=R0(),await this.keychain.set(TM,t)}return oJ(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)}}},dE=class extends Ym{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=hJ,this.version=pJ,this.initialized=!1,this.storagePrefix=Uo,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=zf(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=zf(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,Ib(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Ab(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)}}},hE=class extends Xm{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new ki.EventEmitter,this.name=gJ,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)||mJ,a=L0(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=zf(i);this.queue.set(h,p);try{await await Ob(this.rpcPublish(n,i,s,a,u,l),this.publishTimeout),this.relayer.events.emit(or.publish,p)}catch(g){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,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:F0(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Hf((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),Hf((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(Ol.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},pE=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())}},RJ=Object.defineProperty,NJ=Object.defineProperties,MJ=Object.getOwnPropertyDescriptors,DM=Object.getOwnPropertySymbols,kJ=Object.prototype.hasOwnProperty,LJ=Object.prototype.propertyIsEnumerable,IM=(e,t,r)=>t in e?RJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cg=(e,t)=>{for(var r in t||(t={}))kJ.call(t,r)&&IM(e,r,t[r]);if(DM)for(var r of DM(t))LJ.call(t,r)&&IM(e,r,t[r]);return e},tE=(e,t)=>NJ(e,MJ(t)),mE=class extends Zm{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new pE,this.events=new ki.EventEmitter,this.name=_J,this.version=SJ,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Uo,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=L0(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)>=CJ&&(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=L0(n);await this.rpcUnsubscribe(t,r,i);let o=_l("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:F0(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Ob(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(or.connection_stalled)}return zf(t+this.clientId)}rpcUnsubscribe(t,r,n){let i={method:F0(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,tE(cg({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,tE(cg({},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,cg({},r)),this.topicMap.set(r.topic,t),this.events.emit(ii.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(ii.deleted,tE(cg({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(ii.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(ii.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(Ol.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(or.connect,async()=>{await this.onConnect()}),this.relayer.on(or.disconnect,()=>{this.onDisconnect()}),this.events.on(ii.created,async t=>{let r=ii.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(ii.deleted,async t=>{let r=ii.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)})}},FJ=Object.defineProperty,AM=Object.getOwnPropertySymbols,$J=Object.prototype.hasOwnProperty,UJ=Object.prototype.propertyIsEnumerable,OM=(e,t,r)=>t in e?FJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VJ=(e,t)=>{for(var r in t||(t={}))$J.call(t,r)&&OM(e,r,t[r]);if(AM)for(var r of AM(t))UJ.call(t,r)&&OM(e,r,t[r]);return e},gE=class extends Jm{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new ki.EventEmitter,this.name=wJ,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,xE.default)((0,Me.getDefaultLoggerOptions)({level:t.logger||yJ})),this.messages=new dE(this.logger,t.core),this.subscriber=new mE(this,this.logger),this.publisher=new hE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||vJ,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(ii.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(ii.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,PM)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new J0(new $N($R({sdkVersion:bJ,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}),Pl(t)){if(!t.method.endsWith(xJ))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(VJ({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=Cl(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(lg.payload,t=>this.onProviderPayload(t)),this.provider.on(lg.connect,()=>{this.events.emit(or.connect)}),this.provider.on(lg.disconnect,()=>{this.events.emit(or.disconnect),this.attemptToReconnect()}),this.provider.on(lg.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,Et.toMiliseconds)(PM))}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},BJ=Object.defineProperty,RM=Object.getOwnPropertySymbols,jJ=Object.prototype.hasOwnProperty,zJ=Object.prototype.propertyIsEnumerable,NM=(e,t,r)=>t in e?BJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MM=(e,t)=>{for(var r in t||(t={}))jJ.call(t,r)&&NM(e,r,t[r]);if(RM)for(var r of RM(t))zJ.call(t,r)&&NM(e,r,t[r]);return e},oa=class extends Qm{constructor(t,r,n,i=Uo,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=EJ,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{WR(s)?this.map.set(s.id,s):GR(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Hf(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,UM.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=MM(MM({},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)}}},yE=class{constructor(t,r){this.core=t,this.logger=r,this.name=TJ,this.version=PJ,this.events=new ki.default,this.initialized=!1,this.storagePrefix=Uo,this.ignoredPayloadTypes=[Qs],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=R0(),i=await this.core.crypto.setSymKey(n),o=M0(Et.FIVE_MINUTES),s={protocol:EE},a={topic:i,expiry:o,relay:s,active:!1},u=KR({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}=HR(n.uri),a=M0(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=M0(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}=UR();this.events.once(k0("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",_l("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=Lo(i,o),a=await this.core.crypto.encode(n,s),u=Zf[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=Cl(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Zf[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=Zs(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Zf[u.request.method]?Zf[u.request.method].res:Zf.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,_l("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=>Rb(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(()=>{wn(i)?this.events.emit(k0("pairing_ping",o),{}):Ir(i)&&this.events.emit(k0("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=_l("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(_l("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!$0(n)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!qR(n.uri)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!$0(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(!$0(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(!Nb(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(Rb(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 oa(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(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);Pl(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ea(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(Zr.expired,async t=>{let{topic:r}=zR(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},vE=class extends Gm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new ki.EventEmitter,this.name=DJ,this.version=IJ,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,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(ni.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=Ir(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(ni.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(ni.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:Lo(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(ni.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(ni.created,t=>{let r=ni.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ni.updated,t=>{let r=ni.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ni.deleted,t=>{let r=ni.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)}}},wE=class extends e0{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new ki.EventEmitter,this.name=AJ,this.version=OJ,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,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(Zr.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(Zr.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 BR(t);if(typeof t=="number")return jR(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(Zr.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(Zr.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(Ol.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Zr.created,t=>{let r=Zr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Zr.expired,t=>{let r=Zr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Zr.deleted,t=>{let r=Zr.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)}}},HJ=Object.defineProperty,kM=Object.getOwnPropertySymbols,KJ=Object.prototype.hasOwnProperty,qJ=Object.prototype.propertyIsEnumerable,LM=(e,t,r)=>t in e?HJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FM=(e,t)=>{for(var r in t||(t={}))KJ.call(t,r)&&LM(e,r,t[r]);if(kM)for(var r of kM(t))qJ.call(t,r)&&LM(e,r,t[r]);return e},ed=class extends Wm{constructor(t){super(t),this.protocol=XM,this.version=sJ,this.name=bE,this.events=new ki.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,xE.default)((0,Me.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||aJ.logger}));this.logger=(0,Me.generateChildLogger)(r,this.name),this.heartbeat=new Ol.HeartBeat,this.crypto=new fE(this,this.logger,t==null?void 0:t.keychain),this.history=new vE(this,this.logger),this.expirer=new wE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new $M.default(FM(FM({},uJ),t==null?void 0:t.storageOptions)),this.relayer=new gE({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new yE(this,this.logger)}static async init(t){let r=new ed(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}}},JM=ed;var Ml=Y(Sx());c();d();f();jm();var QM=Y(Do());var dg=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var hg=class{constructor(t){this.client=t}};c();d();f();var GJ=Y(w0()),YJ=Y(x0()),XJ=Y(Hs()),rk=Y(_0()),nk=Y(T0());var Bo=Y(Ti()),_E=Y(Xs()),ik=Y(ek()),ok=Y(I0());function SE(e,t){return e.includes(":")?[e]:t.chains||[]}var sk=1;function ak(){return(0,ik.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Vo(e,t){return e.filter(r=>t.includes(r)).length===e.length}function sa(e){let t=(0,Bo.toMiliseconds)(e||Bo.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 uk(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 jo(e,t){return(0,Bo.fromMiliseconds)((t||Date.now())+(0,Bo.toMiliseconds)(e))}function aa(e){return Date.now()>=(0,Bo.toMiliseconds)(e)}function Wt(e,t){return`${e}${t?`:${t}`:""}`}function rd(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function JJ(e){let t=[];return Object.values(e).forEach(r=>{t.push(...rd(r.accounts))}),t}function QJ(e,t){let r=[];return Object.values(e).forEach(n=>{rd(n.accounts).includes(t)&&r.push(...n.methods)}),r}function ZJ(e,t){let r=[];return Object.values(e).forEach(n=>{rd(n.accounts).includes(t)&&r.push(...n.events)}),r}function lk(e,t){let r=nd(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 eQ={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}},tQ={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}=tQ[e];return{message:t?`${r} ${t}`:r,code:n}}function Br(e,t){let{message:r,code:n}=eQ[e];return{message:t?`${r} ${t}`:r,code:n}}function mg(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Rl(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function en(e){return typeof e>"u"}function ar(e,t){return t&&en(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function CE(e,t){return t&&en(e)?!0:typeof e=="number"&&!isNaN(e)}function ck(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return Vo(i,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l}=e.namespaces[s],p=rd(a),h=r[s];(!Vo(SE(s,h),p)||!Vo(h.methods,u)||!Vo(h.events,l))&&(o=!1)}),o):!1}function TE(e){return ar(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function rQ(e){if(ar(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&TE(r)}}return!1}function fk(e,t){let r=null;return ar(e==null?void 0:e.publicKey,!1)||(r=ge("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function tk(e){let t=!0;return mg(e)?e.length&&(t=e.every(r=>ar(r,!1))):t=!1,t}function nQ(e,t,r){let n=null;return mg(t)?t.forEach(i=>{n||(!TE(i)||!i.includes(e))&&(n=Br("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=Br("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function iQ(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=nQ(n,SE(n,i),`${t} requiredNamespace`);o&&(r=o)}),r}function oQ(e,t){let r=null;return mg(e)?e.forEach(n=>{r||rQ(n)||(r=Br("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=Br("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function sQ(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=oQ(n==null?void 0:n.accounts,`${t} namespace`);i&&(r=i)}),r}function aQ(e,t){let r=null;return tk(e==null?void 0:e.methods)?tk(e==null?void 0:e.events)||(r=Br("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=Br("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function dk(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=aQ(n,`${t}, namespace`);i&&(r=i)}),r}function hk(e,t,r){let n=null;if(e&&Rl(e)){let i=dk(e,t);i&&(n=i);let o=iQ(e,t);o&&(n=o)}else n=ge("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function nd(e,t){let r=null;if(e&&Rl(e)){let n=dk(e,t);n&&(r=n);let i=sQ(e,t);i&&(r=i)}else r=ge("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function PE(e){return ar(e.protocol,!0)}function pk(e,t){let r=!1;return t&&!e?r=!0:e&&mg(e)&&e.length&&e.forEach(n=>{r=PE(n)}),r}function mk(e){return typeof e=="number"}function xn(e){return typeof e<"u"&&typeof e!==null}function gk(e){return!(!e||typeof e!="object"||!e.code||!CE(e.code,!1)||!e.message||!ar(e.message,!1))}function yk(e){return!(en(e)||!ar(e.method,!1))}function vk(e){return!(en(e)||en(e.result)&&en(e.error)||!CE(e.id,!1)||!ar(e.jsonrpc,!1))}function wk(e){return!(en(e)||!ar(e.name,!1))}function DE(e,t){return!(!TE(t)||!JJ(e).includes(t))}function xk(e,t,r){return ar(r,!1)?QJ(e,t).includes(r):!1}function bk(e,t,r){return ar(r,!1)?ZJ(e,t).includes(r):!1}function gg(e,t,r,n){let i=null,o=Object.keys(e),s=Object.keys(t);return Vo(o,s)?o.forEach(a=>{if(i)return;let u=rd(t[a].accounts);Vo(SE(a,e[a]),u)?Vo(e[a].methods,t[a].methods)?Vo(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 Ek(e,t){return CE(e,!1)&&e<=t.max&&e>=t.min}var vg=Y(Do()),Ve=Y(Ti());var Tk="wc",Pk=2,Dk="client",LE=`${Tk}@${Pk}:${Dk}:`,IE={name:Dk,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var uQ="proposal";var lQ="session",yg=Ve.SEVEN_DAYS,cQ="engine",id={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}}},AE={min:Ve.FIVE_MINUTES,max:Ve.SEVEN_DAYS},fQ="request",dQ=Object.defineProperty,hQ=Object.defineProperties,pQ=Object.getOwnPropertyDescriptors,_k=Object.getOwnPropertySymbols,mQ=Object.prototype.hasOwnProperty,gQ=Object.prototype.propertyIsEnumerable,Sk=(e,t,r)=>t in e?dQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bn=(e,t)=>{for(var r in t||(t={}))mQ.call(t,r)&&Sk(e,r,t[r]);if(_k)for(var r of _k(t))gQ.call(t,r)&&Sk(e,r,t[r]);return e},OE=(e,t)=>hQ(e,pQ(t)),RE=class extends hg{constructor(t){super(t),this.name=cQ,this.events=new vg.default,this.initialized=!1,this.ignoredPayloadTypes=[sk],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(id)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=OE(bn({},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 g=await this.client.core.crypto.generateKeyPair(),w=bn({requiredNamespaces:o,optionalNamespaces:s,relays:u!=null?u:[{protocol:EE}],proposer:{publicKey:g,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:v,resolve:_,done:D}=sa();if(this.events.once(Wt("session_connect"),async({error:P,session:R})=>{if(P)v(P);else if(R){R.self.publicKey=g;let U=OE(bn({},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",w),I=jo(Ve.FIVE_MINUTES);return await this.setProposal(C,bn({id:C,expiry:I},w)),{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;Rl(p)||(p=lk(o,"approve()"));let g=await this.client.core.crypto.generateKeyPair(),w=l.publicKey,v=await this.client.core.crypto.generateSharedKey(g,w);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:g}),await this.client.proposal.delete(n,Br("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:u}));let _=bn({relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:p,optionalNamespaces:h,controller:{publicKey:g,metadata:this.client.metadata},expiry:jo(yg)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(v);let D=await this.sendRequest(v,"wc_sessionSettle",_),{done:C,resolve:I,reject:P}=sa();this.events.once(Wt("session_approve",D),({error:U})=>{U?P(U):I(this.client.session.get(v))});let R=OE(bn({},_),{topic:v,acknowledged:!1,self:_.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:g});return await this.client.session.set(v,R),await this.setExpiry(v,jo(yg)),{topic:v,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,Br("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}=sa();return this.events.once(Wt("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}=sa();return this.events.once(Wt("session_extend",i),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,jo(yg)),{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}=sa(s);return this.events.once(Wt("session_request",a),({error:h,result:g})=>{h?p(h):l(g)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;wn(i)?await this.sendResult(o,n,i.result):Ir(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}=sa();this.events.once(Wt("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",Br("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=>ck(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,Br("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,Br("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=id.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,jo(n))},this.sendRequest=async(r,n,i,o)=>{let s=Lo(n,i),a=await this.client.core.crypto.encode(r,s),u=id[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=Cl(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=id[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=Zs(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=id[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=>{aa(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{aa(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(bn({},n.params));let s=jo(Ve.FIVE_MINUTES),a=bn({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(wn(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 Ir(n)&&(await this.client.proposal.delete(i,Br("USER_DISCONNECTED")),this.events.emit(Wt("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:g}=n.params,w=bn({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}},g&&{sessionProperties:g});await this.sendResult(n.id,r,!0),this.events.emit(Wt("session_connect"),{session:w})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;wn(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Wt("session_approve",i),{})):Ir(n)&&(await this.client.session.delete(r,Br("USER_DISCONNECTED")),this.events.emit(Wt("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(bn({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;wn(n)?this.events.emit(Wt("session_update",i),{}):Ir(n)&&this.events.emit(Wt("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,jo(yg)),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;wn(n)?this.events.emit(Wt("session_extend",i),{}):Ir(n)&&this.events.emit(Wt("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(()=>{wn(n)?this.events.emit(Wt("session_ping",i),{}):Ir(n)&&this.events.emit(Wt("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(bn({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;wn(n)?this.events.emit(Wt("session_request",i),{result:n.result}):Ir(n)&&this.events.emit(Wt("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(bn({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(!xn(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(en(n)||await this.isValidPairingTopic(n),!pk(a,!0)){let{message:u}=ge("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(u)}!en(i)&&Rl(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!en(o)&&Rl(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),en(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let i=hk(r,"connect()",n);if(i)throw new Error(i.message)},this.isValidApprove=async r=>{if(!xn(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=nd(i,"approve()");if(u)throw new Error(u.message);let l=gg(a.requiredNamespaces,i,"approve()","requiredNamespaces");if(l)throw new Error(l.message);if(!ar(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(w=>i[w]),h={};for(let w in a.optionalNamespaces)p.includes(w)&&(h[w]=a.optionalNamespaces[w]);let g=gg(h,i,"approve()","optionalNamespaces");if(g)throw new Error(g.message)}en(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!xn(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),!gk(i)){let{message:o}=ge("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!xn(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(!PE(n)){let{message:l}=ge("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=fk(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=nd(o,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(aa(s)){let{message:l}=ge("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!xn(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=nd(i,"update()");if(s)throw new Error(s.message);let a=gg(o.requiredNamespaces,i,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!xn(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(!xn(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(!DE(a,o)){let{message:u}=ge("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(u)}if(!yk(i)){let{message:u}=ge("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!xk(a,o,i.method)){let{message:u}=ge("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}if(s&&!Ek(s,AE)){let{message:u}=ge("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${AE.min} and ${AE.max}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!xn(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),!vk(i)){let{message:o}=ge("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!xn(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(!xn(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(!DE(s,o)){let{message:a}=ge("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!wk(i)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!bk(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(!xn(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(!ar(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(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);Pl(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ea(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(Zr.expired,async t=>{let{topic:r,id:n}=uk(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(!ar(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(aa(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=ge("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!ar(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(aa(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(ar(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(!mk(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(aa(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=ge("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},NE=class extends oa{constructor(t,r){super(t,r,uQ,LE),this.core=t,this.logger=r}},ME=class extends oa{constructor(t,r){super(t,r,lQ,LE),this.core=t,this.logger=r}},kE=class extends oa{constructor(t,r){super(t,r,fQ,LE),this.core=t,this.logger=r}},Nl=class extends dg{constructor(t){super(t),this.protocol=Tk,this.version=Pk,this.name=IE.name,this.events=new vg.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)||IE.name,this.metadata=(t==null?void 0:t.metadata)||ak();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,Ck.default)((0,Ml.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||IE.logger}));this.core=(t==null?void 0:t.core)||new JM(t),this.logger=(0,Ml.generateChildLogger)(r,this.name),this.session=new ME(this.core,this.logger),this.proposal=new NE(this.core,this.logger),this.pendingRequest=new kE(this.core,this.logger),this.engine=new RE(this)}static async init(t){let r=new Nl(t);return await r.initialize(),r}get context(){return(0,Ml.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 vQ=Y(w0()),wQ=Y(x0()),xQ=Y(Hs()),Ok=Y(_0()),Rk=Y(T0());var FE=Y(Ti()),$E=Y(Xs()),bQ=Y(Ak()),Nk=Y(I0());var EQ={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 Mk(e,t){let{message:r,code:n}=EQ[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var oL=Y(kk(),1);c();d();f();c();d();f();c();d();f();var Qk=Y($k());c();d();f();c();d();f();c();d();f();var Uk="logger/5.7.0";var Vk=!1,Bk=!1,bg={debug:1,default:2,info:2,warning:3,error:4,off:5},jk=bg.default,VE=null;function _Q(){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 zk=_Q(),BE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(BE||(BE={}));var $n;(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"})($n||($n={}));var Hk="0123456789abcdef",be=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();bg[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(jk>bg[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(Bk)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+=Hk[l[h]>>4],p+=Hk[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 $n.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 $n.CALL_EXCEPTION:case $n.INSUFFICIENT_FUNDS:case $n.MISSING_NEW:case $n.NONCE_EXPIRED:case $n.REPLACEMENT_UNDERPRICED:case $n.TRANSACTION_REPLACED:case $n.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"),zk&&this.throwError("platform missing String.prototype.normalize",be.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:zk})}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 VE||(VE=new be(Uk)),VE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Vk){if(!t)return;this.globalLogger().throwError("error censorship permanent",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Bk=!!t,Vk=!!r}static setLogLevel(t){let r=bg[t.toLowerCase()];if(r==null){be.globalLogger().warn("invalid log level - "+t);return}jk=r}static from(t){return new be(t)}};be.errors=$n;be.levels=BE;c();d();f();var Kk="bytes/5.7.0";var ua=new be(Kk);function Wk(e){return!!e.toHexString}function kl(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return kl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Gk(e){return Ll(e)&&!(e.length%2)||od(e)}function qk(e){return typeof e=="number"&&e==e&&e%1===0}function od(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!qk(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!qk(r)||r<0||r>=256)return!1}return!0}function tn(e,t){if(t||(t={}),typeof e=="number"){ua.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),kl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Wk(e)&&(e=e.toHexString()),Ll(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ua.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 kl(new Uint8Array(n))}return od(e)?kl(new Uint8Array(e)):ua.throwArgumentError("invalid arrayify value","value",e)}function sd(e){let t=e.map(i=>tn(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),kl(n)}function Eg(e,t){e=tn(e),e.length>t&&ua.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),kl(r)}function Ll(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var jE="0123456789abcdef";function Fl(e,t){if(t||(t={}),typeof e=="number"){ua.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),Wk(e))return e.toHexString();if(Ll(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ua.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(od(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 ua.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var Yk="bignumber/5.7.0";var HE=Qk.default.BN,Li=new be(Yk),zE={},Xk=9007199254740991;var Jk=!1,Qt=class{constructor(t,r){t!==zE&&Li.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 jr(Ee(this).fromTwos(t))}toTwos(t){return jr(Ee(this).toTwos(t))}abs(){return this._hex[0]==="-"?Qt.from(this._hex.substring(1)):this}add(t){return jr(Ee(this).add(Ee(t)))}sub(t){return jr(Ee(this).sub(Ee(t)))}div(t){return Qt.from(t).isZero()&&En("division-by-zero","div"),jr(Ee(this).div(Ee(t)))}mul(t){return jr(Ee(this).mul(Ee(t)))}mod(t){let r=Ee(t);return r.isNeg()&&En("division-by-zero","mod"),jr(Ee(this).umod(r))}pow(t){let r=Ee(t);return r.isNeg()&&En("negative-power","pow"),jr(Ee(this).pow(r))}and(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","and"),jr(Ee(this).and(r))}or(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","or"),jr(Ee(this).or(r))}xor(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","xor"),jr(Ee(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&En("negative-width","mask"),jr(Ee(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&En("negative-width","shl"),jr(Ee(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&En("negative-width","shr"),jr(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){En("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Li.throwError("this platform does not support BigInt",be.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Jk||(Jk=!0,Li.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Li.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",be.errors.UNEXPECTED_ARGUMENT,{}):Li.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 Qt)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new Qt(zE,ad(t)):t.match(/^-?[0-9]+$/)?new Qt(zE,ad(new HE(t))):Li.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&En("underflow","BigNumber.from",t),(t>=Xk||t<=-Xk)&&En("overflow","BigNumber.from",t),Qt.from(String(t));let r=t;if(typeof r=="bigint")return Qt.from(r.toString());if(od(r))return Qt.from(Fl(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return Qt.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Ll(n)||n[0]==="-"&&Ll(n.substring(1))))return Qt.from(n)}return Li.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function ad(e){if(typeof e!="string")return ad(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Li.throwArgumentError("invalid hex","value",e),e=ad(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 jr(e){return Qt.from(ad(e))}function Ee(e){let t=Qt.from(e).toHexString();return t[0]==="-"?new HE("-"+t.substring(3),16):new HE(t.substring(2),16)}function En(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),Li.throwError(e,be.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var Zk="strings/5.7.0";var eL=new be(Zk),ud;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(ud||(ud={}));var la;(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"})(la||(la={}));function SQ(e,t,r,n,i){return eL.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function tL(e,t,r,n,i){if(e===la.BAD_PREFIX||e===la.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===la.OVERRUN?r.length-t-1:0}function CQ(e,t,r,n,i){return e===la.OVERLONG?(n.push(i),0):(n.push(65533),tL(e,t,r,n,i))}var TQ=Object.freeze({error:SQ,ignore:tL,replace:CQ});function KE(e,t=ud.current){t!=ud.current&&(eL.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 tn(r)}c();d();f();var rL="solidity/5.7.0";var PQ=new RegExp("^bytes([0-9]+)$"),DQ=new RegExp("^(u?int)([0-9]*)$"),IQ=new RegExp("^(.*)\\[([0-9]*)\\]$"),AQ="0000000000000000000000000000000000000000000000000000000000000000",$l=new be(rL);function nL(e,t,r){switch(e){case"address":return r?Eg(t,32):tn(t);case"string":return KE(t);case"bytes":return tn(t);case"bool":return t=t?"0x01":"0x00",r?Eg(t,32):tn(t)}let n=e.match(DQ);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&$l.throwArgumentError("invalid number type","type",e),r&&(i=256),t=Qt.from(t).toTwos(i),Eg(t,i/8)}if(n=e.match(PQ),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&$l.throwArgumentError("invalid bytes type","type",e),tn(t).byteLength!==i&&$l.throwArgumentError(`invalid value for ${e}`,"value",t),r?tn((t+AQ).substring(0,66)):t}if(n=e.match(IQ),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&$l.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(nL(i,a,!0))}),sd(s)}return $l.throwArgumentError("invalid type","type",e)}function iL(e,t){e.length!=t.length&&$l.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(nL(n,t[i]))}),Fl(sd(r))}function qE(e){return Gk(e)?GE(e):OQ(e)}function WE(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return GE(iL(t,r))}function OQ(e){let t=x.from(e);return GE(t)}function GE(e){let t=BigInt(RQ(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function RQ(e){let t=Fl(sd([tn(e)]));return"0x"+oL.default.keccak_256(tn(t))}var sL=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},NQ=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},aL=e=>!e||typeof e=="string"?qE(e!=null?e:""):WE(e.types.map((t,r)=>[t,e.values[r]])),uL=(e,t)=>t?(typeof t=="string"&&(t=NQ(["string"],[t])),WE([["uint256",qE(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])):WE([["uint256",qE(e).hash]]),lL=e=>e?typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(","):"";var kQ={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},LQ=Cd()((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,a=tI)=>{o&&!o.length&&console.warn("Cannot set empty `credential_types`. Defaulting to only Orb credential."),e({config:{app_id:r,action:n,signal:i,action_description:s,walletConnectProjectId:a,credential_types:o!=null&&o.length?o:["orb"]}});try{let u=await Nl.init({projectId:a,metadata:{name:"IDKit",description:"Verify with World ID",url:"https://worldcoin.org",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:u}),t().connectClient(u)}catch(u){console.error(u)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:kQ});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 World app:",n)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:ex(r),mobile:ex(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:FQ(t().config)}).then(n=>{if(!$Q(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(ya).includes(o)&&(i=o),console.warn("Error receiving proof:",i),console.warn("Raw error response:",n),e({errorCode:i,verificationState:"failed"})}).finally(()=>void r.disconnect({topic:t().topic,reason:Mk("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"})}})),FQ=e=>({jsonrpc:"2.0",method:"world_id_v1",id:o5(1e5,9999999),params:[{app_id:e.app_id,action:lL(e.action),signal:aL(e.signal).digest,action_description:e.action_description,external_nullifier:uL(e.app_id,e.action).digest,credential_types:e.credential_types}]}),$Q=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||!sL(o))return!1;return!0},UQ=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}),VQ=(e,t,r,n,i,o)=>{let{result:s,verificationState:a,errorCode:u,qrData:l,client:p,createClient:h,reset:g}=LQ(UQ),w=(0,_g.useRef)(n);return(0,_g.useEffect)(()=>{!e||p||h(e,t,r,w.current,i,o)},[e,t,r,o,i,p,h,a,w]),{result:s,reset:g,verificationState:a,errorCode:u,qrData:l}},cL=VQ;var BQ=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,credential_types:e.credential_types,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage,setErrorState:e.setErrorState}),jQ=()=>{let e=Wa(),[t,r]=(0,ld.useState)(!1),{app_id:n,action:i,signal:o,setStage:s,handleVerify:a,action_description:u,walletConnectProjectId:l,credential_types:p,setErrorState:h}=Sn(BQ,Ga),{result:g,qrData:w,verificationState:v,reset:_,errorCode:D}=cL(n,i,o,p,u,l);return(0,ld.useEffect)(()=>_,[_]),(0,ld.useEffect)(()=>{v==="failed"&&(s("ERROR"),h({code:D!=null?D:"generic_error"})),g&&a(g)},[g,_,a,v,s,D,h]),y.createElement("div",{className:"-mt-6 space-y-6"},y.createElement("div",null,y.createElement("div",{className:"mb-2 flex items-center justify-center"},y.createElement(ym,{className:"text-0d151d h-8 dark:text-white"})),y.createElement("p",{className:"font-sora text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm in World App":"Continue with Worldcoin"),v==="awaiting_verification"&&y.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},"Please confirm the request in your app to continue.")),v==="awaiting_verification"?y.createElement("div",{className:"flex items-center justify-center"},y.createElement(lo,{className:"h-20 w-20"})):y.createElement(X8,{showQR:t,setShowQR:r,qrData:w}),(e=="desktop"||!t)&&(v==="awaiting_connection"||v==="loading_widget")&&y.createElement(eI,null))},fL=jQ;c();d();f();var ye=Y(ae());c();d();f();var YE=Y(ae());var zQ=YE["useId".toString()]||(()=>{}),HQ=0;function Sg(e){let[t,r]=YE.useState(zQ());return Cs(()=>{e||r(n=>n!=null?n:String(HQ++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var zr=Y(ae());var XE="focusScope.autoFocusOnMount",JE="focusScope.autoFocusOnUnmount",dL={bubbles:!1,cancelable:!0};var gL=(0,zr.forwardRef)((e,t)=>{let _=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=_,s=de(_,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,zr.useState)(null),l=Lr(i),p=Lr(o),h=(0,zr.useRef)(null),g=mr(t,D=>u(D)),w=(0,zr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,zr.useEffect)(()=>{if(n){let D=function(I){if(w.paused||!a)return;let P=I.target;a.contains(P)?h.current=P:ca(h.current,{select:!0})},C=function(I){w.paused||!a||a.contains(I.relatedTarget)||ca(h.current,{select:!0})};return document.addEventListener("focusin",D),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",C)}}},[n,a,w.paused]),(0,zr.useEffect)(()=>{if(a){pL.add(w);let D=document.activeElement;if(!a.contains(D)){let I=new CustomEvent(XE,dL);a.addEventListener(XE,l),a.dispatchEvent(I),I.defaultPrevented||(KQ(XQ(yL(a)),{select:!0}),document.activeElement===D&&ca(a))}return()=>{a.removeEventListener(XE,l),setTimeout(()=>{let I=new CustomEvent(JE,dL);a.addEventListener(JE,p),a.dispatchEvent(I),I.defaultPrevented||ca(D!=null?D:document.body,{select:!0}),a.removeEventListener(JE,p),pL.remove(w)},0)}}},[a,l,p,w]);let v=(0,zr.useCallback)(D=>{if(!r&&!n||w.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]=qQ(P);R&&U?!D.shiftKey&&I===U?(D.preventDefault(),r&&ca(R,{select:!0})):D.shiftKey&&I===R&&(D.preventDefault(),r&&ca(U,{select:!0})):I===P&&D.preventDefault()}},[r,n,w.paused]);return(0,zr.createElement)(rr.div,Ce({tabIndex:-1},s,{ref:g,onKeyDown:v}))});function KQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ca(n,{select:t}),document.activeElement!==r)return}function qQ(e){let t=yL(e),r=hL(t,e),n=hL(t.reverse(),e);return[r,n]}function yL(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 hL(e,t){for(let r of e)if(!WQ(r,{upTo:t}))return r}function WQ(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 GQ(e){return e instanceof HTMLInputElement&&"select"in e}function ca(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&GQ(e)&&t&&e.select()}}var pL=YQ();function YQ(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=mL(e,t),e.unshift(t)},remove(t){var r;e=mL(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function mL(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function XQ(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var wL=Y(ae()),QE=0;function xL(){(0,wL.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:vL()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:vL()),QE++,()=>{QE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),QE--}},[])}function vL(){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 Dg=Y(ae());c();d();f();var wr=Y(ae());c();d();f();var fa="right-scroll-bar-position",da="width-before-scroll-bar",ZE="with-scroll-bars-hidden",e_="--removed-body-scroll-bar-size";c();d();f();c();d();f();function bL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var EL=Y(ae());function _L(e,t){var r=(0,EL.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 t_(e,t){return _L(t||null,function(r){return e.forEach(function(n){return bL(n,r)})})}c();d();f();c();d();f();c();d();f();function JQ(e){return e}function QQ(e,t){t===void 0&&(t=JQ);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 r_(e){e===void 0&&(e={});var t=QQ(null);return t.options=yn({async:!0,ssr:!1},e),t}c();d();f();var SL=Y(ae()),CL=function(e){var t=e.sideCar,r=gm(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 SL.createElement(n,yn({},r))};CL.isSideCarExport=!0;function n_(e,t){return e.useMedium(t),CL}var Cg=r_();var i_=function(){},cd=wr.forwardRef(function(e,t){var r=wr.useRef(null),n=wr.useState({onScrollCapture:i_,onWheelCapture:i_,onTouchMoveCapture:i_}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,w=e.noIsolation,v=e.inert,_=e.allowPinchZoom,D=e.as,C=D===void 0?"div":D,I=gm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=g,R=t_([r,t]),U=yn(yn({},I),i);return wr.createElement(wr.Fragment,null,p&&wr.createElement(P,{sideCar:Cg,removeScrollBar:l,shards:h,noIsolation:w,inert:v,setCallbacks:o,allowPinchZoom:!!_,lockRef:r}),s?wr.cloneElement(wr.Children.only(a),yn(yn({},U),{ref:R})):wr.createElement(C,yn({},U,{className:u,ref:R}),a))});cd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cd.classNames={fullWidth:da,zeroRight:fa};c();d();f();c();d();f();var _t=Y(ae());c();d();f();c();d();f();var Tg=Y(ae());c();d();f();c();d();f();c();d();f();var DL=Y(ae());c();d();f();c();d();f();var TL;var PL=function(){if(TL)return TL;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ZQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PL();return t&&e.setAttribute("nonce",t),e}function eZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tZ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o_=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ZQ())&&(eZ(t,r),tZ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var s_=function(){var e=o_();return function(t,r){DL.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var fd=function(){var e=s_(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var rZ={left:0,top:0,right:0,gap:0},a_=function(e){return parseInt(e||"",10)||0},nZ=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[a_(r),a_(n),a_(i)]},u_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rZ;var t=nZ(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 iZ=fd(),oZ=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(
|
|
39
|
+
`;var Kx=K(K(K(K(K(K(K(K(K(K({},Rx),Ax),Ox),Mx),Nx),kx),Lx),Fx),$x),Ux),_pe=K(K({},zx),Hx);function WI(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var qI=WI("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),qx=WI("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=bf(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),jH=K({utf8:qI,"utf-8":qI,hex:Kx.base16,latin1:qx,ascii:qx,binary:qx},Kx),tm=jH;function er(e,t="utf8"){let r=tm[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 tr(e,t="utf8"){let r=tm[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}`)}function rm(e){return er(tr(ru(e),bI),Sx)}function nm(e){let t=tr(DI,Cx),r=TI+er(Zs([t,e]),Cx);return[SI,CI,r].join(_I)}function zH(e){return er(e,Sx)}function GI(e){return tr([rm(e.header),rm(e.payload)].join(_x),EI)}function YI(e){return[rm(e.header),rm(e.payload),zH(e.signature)].join(_x)}function Wx(e=(0,XI.randomBytes)(32)){return Tf.generateKeyPairFromSeed(e)}async function QI(e,t,r,n,i=(0,JI.fromMiliseconds)(Date.now())){let o={alg:wI,typ:xI},s=nm(n.publicKey),a=i+r,l={iss:s,sub:e,aud:t,iat:i,exp:a},u=GI({header:o,payload:l}),h=Tf.sign(n.secretKey,u);return YI({header:o,payload:l,signature:h})}c();d();f();c();d();f();var fb=Z(Yx()),YR=Z(Qx()),db=Z(iu()),Of=Z(eb()),pm=Z(nb());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var mR=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))},xK=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var bK=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var EK=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 _K=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var SK=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var CK=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,TK=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,gR=3,DK=[["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",CK]],yR=[["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 wR(e){return e?vR(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new SK:typeof navigator<"u"?vR(navigator.userAgent):RK()}function PK(e){return e!==""&&DK.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 vR(e){var t=PK(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new _K;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<gR&&(i=mR(mR([],i,!0),AK(gR-i.length),!0)):i=[];var o=i.join("."),s=IK(e),a=TK.exec(e);return a&&a[1]?new EK(r,o,s,a[1]):new xK(r,o,s)}function IK(e){for(var t=0,r=yR.length;t<r;t++){var n=yR[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function RK(){var e=typeof process<"u"&&process.version;return e?new bK(process.version.slice(1)):null}function AK(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Ui=Z(ko()),ra=Z(dm()),XR=Z(ib()),mu=Z(ab());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var lb={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var JR="base10",jr="base16",ub="base64pad",hb="utf8",QR=0,Vi=1,QK=0,UR=1,cb=12,pb=32;function ZR(){let e=pm.generateKeyPair();return{privateKey:er(e.secretKey,jr),publicKey:er(e.publicKey,jr)}}function mm(){let e=(0,db.randomBytes)(pb);return er(e,jr)}function eA(e,t){let r=pm.sharedKey(tr(e,jr),tr(t,jr)),n=new YR.HKDF(Of.SHA256,r).expand(pb);return er(n,jr)}function tA(e){let t=(0,Of.hash)(tr(e,jr));return er(t,jr)}function gm(e){let t=(0,Of.hash)(tr(e,hb));return er(t,jr)}function ZK(e){return tr(`${e}`,JR)}function gu(e){return Number(er(e,JR))}function rA(e){let t=ZK(typeof e.type<"u"?e.type:QR);if(gu(t)===Vi&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?tr(e.senderPublicKey,jr):void 0,n=typeof e.iv<"u"?tr(e.iv,jr):(0,db.randomBytes)(cb),i=new fb.ChaCha20Poly1305(tr(e.symKey,jr)).seal(n,tr(e.message,hb));return eq({type:t,sealed:i,iv:n,senderPublicKey:r})}function nA(e){let t=new fb.ChaCha20Poly1305(tr(e.symKey,jr)),{sealed:r,iv:n}=ym(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return er(i,hb)}function eq(e){if(gu(e.type)===Vi){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return er(Zs([e.type,e.senderPublicKey,e.iv,e.sealed]),ub)}return er(Zs([e.type,e.iv,e.sealed]),ub)}function ym(e){let t=tr(e,ub),r=t.slice(QK,UR),n=UR;if(gu(r)===Vi){let a=n+pb,l=a+cb,u=t.slice(n,a),h=t.slice(a,l),m=t.slice(l);return{type:r,sealed:m,iv:h,senderPublicKey:u}}let i=n+cb,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function iA(e,t){let r=ym(e);return mb({type:gu(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?er(r.senderPublicKey,jr):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function mb(e){let t=(e==null?void 0:e.type)||QR;if(t===Vi){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 gb(e){return e.type===Vi&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var tq=Object.defineProperty,VR=Object.getOwnPropertySymbols,rq=Object.prototype.hasOwnProperty,nq=Object.prototype.propertyIsEnumerable,BR=(e,t,r)=>t in e?tq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jR=(e,t)=>{for(var r in t||(t={}))rq.call(t,r)&&BR(e,r,t[r]);if(VR)for(var r of VR(t))nq.call(t,r)&&BR(e,r,t[r]);return e},iq="ReactNative",Af={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var oq="js";function oA(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function sq(){return!(0,ra.getDocument)()&&!!(0,ra.getNavigator)()&&navigator.product===iq}function aq(){return!oA()&&!!(0,ra.getNavigator)()}function lq(){return sq()?Af.reactNative:oA()?Af.node:aq()?Af.browser:Af.unknown}function uq(e,t){let r=mu.parse(e);return r=jR(jR({},r),t),e=mu.stringify(r),e}function sA(){return(0,XR.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function cq(){let e=wR();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 fq(){var e;let t=lq();return t===Af.browser?[t,((e=(0,ra.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function dq(e,t,r){let n=cq(),i=fq();return[[e,t].join("-"),[oq,r].join("-"),n,i].join("/")}function aA({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=dq(e,t,n),l={auth:i,ua:a,projectId:o},u=uq(s[1]||"",l);return s[0]+"?"+u}function Br(e,t){return e.filter(r=>t.includes(r)).length===e.length}function yb(e){return Object.fromEntries(e.entries())}function vb(e){return new Map(Object.entries(e))}function Ln(e,t){return(0,Ui.fromMiliseconds)((t||Date.now())+(0,Ui.toMiliseconds)(e))}function ii(e){return(0,Ui.fromMiliseconds)(Date.now())>=(0,Ui.toMiliseconds)(e)}function Bi(){let e=(0,Ui.toMiliseconds)(Ui.FIVE_MINUTES),t,r,n;return{resolve:i=>{n&&t&&(clearTimeout(n),t(i))},reject:i=>{n&&r&&(clearTimeout(n),r(i))},done:()=>new Promise((i,o)=>{n=setTimeout(o,e),t=i,r=o})}}function wb(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function lA(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 uA(e){return lA("topic",e)}function cA(e){return lA("id",e)}function vm(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 It(e,t){return`${e}${t?`:${t}`:""}`}var hq="irn";function wm(e){return(e==null?void 0:e.relay)||{protocol:hq}}function xm(e){let t=lb[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var pq=Object.defineProperty,zR=Object.getOwnPropertySymbols,mq=Object.prototype.hasOwnProperty,gq=Object.prototype.propertyIsEnumerable,HR=(e,t,r)=>t in e?pq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yq=(e,t)=>{for(var r in t||(t={}))mq.call(t,r)&&HR(e,r,t[r]);if(zR)for(var r of zR(t))gq.call(t,r)&&HR(e,r,t[r]);return e};function vq(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 fA(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=mu.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:vq(s)}}function wq(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 dA(e){return`${e.protocol}:${e.topic}@${e.version}?`+mu.stringify(yq({symKey:e.symKey},wq(e.relay)))}function ni(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function xq(e){let t=[];return Object.values(e).forEach(r=>{t.push(...ni(r.accounts)),r.extension&&r.extension.forEach(n=>{t.push(...ni(n.accounts))})}),t}function bq(e,t){let r=[];return Object.values(e).forEach(n=>{ni(n.accounts).includes(t)&&r.push(...n.methods),n.extension&&n.extension.forEach(i=>{ni(i.accounts).includes(t)&&r.push(...i.methods)})}),r}function Eq(e,t){let r=[];return Object.values(e).forEach(n=>{ni(n.accounts).includes(t)&&r.push(...n.events),n.extension&&n.extension.forEach(i=>{ni(i.accounts).includes(t)&&r.push(...i.events)})}),r}function hA(e,t){let r=kf(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 _q={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}},Sq={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 le(e,t){let{message:r,code:n}=Sq[e];return{message:t?`${r} ${t}`:r,code:n}}function Bt(e,t){let{message:r,code:n}=_q[e];return{message:t?`${r} ${t}`:r,code:n}}function Mf(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Nf(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function Ir(e){return typeof e>"u"}function Wt(e,t){return t&&Ir(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function pA(e,t){return t&&Ir(e)?!0:typeof e=="number"&&!isNaN(e)}function mA(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return Br(i,n)?(n.forEach(s=>{let{accounts:a,methods:l,events:u,extension:h}=e.namespaces[s],m=ni(a),g=r[s];(!Br(g.chains,m)||!Br(g.methods,l)||!Br(g.events,u))&&(o=!1),o&&h&&h.forEach(x=>{var E;let{accounts:_,methods:A,events:C}=x,P=ni(_);(E=g.extension)!=null&&E.find(D=>Br(D.chains,P)&&Br(D.methods,A)&&Br(D.events,C))||(o=!1)})}),o):!1}function xb(e){return Wt(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function Cq(e){if(Wt(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&xb(r)}}return!1}function gA(e){if(Wt(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function yA(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function vA(e){return e==null?void 0:e.topic}function wA(e,t){let r=null;return Wt(e==null?void 0:e.publicKey,!1)||(r=le("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function bb(e,t){let r=null;return Ir(e==null?void 0:e.extension)||(!Mf(e.extension)||!e.extension.length)&&(r=le("MISSING_OR_INVALID",`${t} extension should be an array of namespaces, or omitted`)),r}function KR(e){let t=!0;return Mf(e)?e.length&&(t=e.every(r=>Wt(r,!1))):t=!1,t}function qR(e,t,r){let n=null;return Mf(t)?t.forEach(i=>{n||(!xb(i)||!i.includes(e))&&(n=Bt("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=Bt("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function Tq(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=qR(n,i==null?void 0:i.chains,`${t} requiredNamespace`),s=bb(i,t);o?r=o:s?r=s:i.extension&&i.extension.forEach(a=>{if(r)return;let l=qR(n,a.chains,`${t} extension`);l&&(r=l)})}),r}function WR(e,t){let r=null;return Mf(e)?e.forEach(n=>{r||Cq(n)||(r=Bt("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=Bt("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function Dq(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=WR(n==null?void 0:n.accounts,`${t} namespace`),o=bb(n,t);i?r=i:o?r=o:n.extension&&n.extension.forEach(s=>{if(r)return;let a=WR(s.accounts,`${t} extension`);a&&(r=a)})}),r}function GR(e,t){let r=null;return KR(e==null?void 0:e.methods)?KR(e==null?void 0:e.events)||(r=Bt("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=Bt("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function xA(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=GR(n,`${t}, namespace`),o=bb(n,t);i?r=i:o?r=o:n.extension&&n.extension.forEach(s=>{if(r)return;let a=GR(s,`${t}, extension`);a&&(r=a)})}),r}function bA(e,t){let r=null;if(e&&Nf(e)){let n=xA(e,t);n&&(r=n);let i=Tq(e,t);i&&(r=i)}else r=le("MISSING_OR_INVALID",`${t}, requiredNamespaces should be an object with data`);return r}function kf(e,t){let r=null;if(e&&Nf(e)){let n=xA(e,t);n&&(r=n);let i=Dq(e,t);i&&(r=i)}else r=le("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function Eb(e){return Wt(e.protocol,!0)}function EA(e,t){let r=!1;return t&&!e?r=!0:e&&Mf(e)&&e.length&&e.forEach(n=>{r=Eb(n)}),r}function _A(e){return typeof e=="number"}function Er(e){return typeof e<"u"&&typeof e!==null}function SA(e){return!(!e||typeof e!="object"||!e.code||!pA(e.code,!1)||!e.message||!Wt(e.message,!1))}function CA(e){return!(Ir(e)||!Wt(e.method,!1))}function TA(e){return!(Ir(e)||Ir(e.result)&&Ir(e.error)||!pA(e.id,!1)||!Wt(e.jsonrpc,!1))}function DA(e){return!(Ir(e)||!Wt(e.name,!1))}function _b(e,t){return!(!xb(t)||!xq(e).includes(t))}function PA(e,t,r){return Wt(r,!1)?bq(e,t).includes(r):!1}function IA(e,t,r){return Wt(r,!1)?Eq(e,t).includes(r):!1}function Sb(e,t,r){let n=null,i=Object.keys(e),o=Object.keys(t);return Br(i,o)?i.forEach(s=>{var a;if(n)return;let l=e[s].chains,u=ni(t[s].accounts);Br(l,u)?Br(e[s].methods,t[s].methods)?Br(e[s].events,t[s].events)?e[s].extension&&!t[s].extension?n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${s}`):e[s].extension&&t[s].extension&&((a=e[s].extension)==null||a.forEach(({methods:h,events:m,chains:g})=>{var x;n||(x=t[s].extension)!=null&&x.find(E=>{let _=ni(E.accounts);return Br(g,_)&&Br(m,E.events)&&Br(h,E.methods)})||(n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${s}`))})):n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy requiredNamespaces events for ${s}`):n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy requiredNamespaces methods for ${s}`):n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy requiredNamespaces chains for ${s}`)}):n=le("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces`),n}var xt=Z(ko());c();d();f();c();d();f();var KA=Z(Ys());var Gt={};cr(Gt,{DEFAULT_ERROR:()=>Ff,IBaseJsonRpcProvider:()=>Im,IEvents:()=>vu,IJsonRpcConnection:()=>Ab,IJsonRpcProvider:()=>$f,INTERNAL_ERROR:()=>bm,INVALID_PARAMS:()=>MA,INVALID_REQUEST:()=>AA,METHOD_NOT_FOUND:()=>OA,PARSE_ERROR:()=>RA,RESERVED_ERROR_CODES:()=>Cb,SERVER_ERROR:()=>Lf,SERVER_ERROR_CODE_RANGE:()=>Em,STANDARD_ERROR_MAP:()=>Uo,formatErrorMessage:()=>zA,formatJsonRpcError:()=>na,formatJsonRpcRequest:()=>jo,formatJsonRpcResult:()=>yu,getBigIntRpcId:()=>Rb,getError:()=>Sm,getErrorByCode:()=>Cm,isHttpUrl:()=>$q,isJsonRpcError:()=>Rr,isJsonRpcPayload:()=>Mb,isJsonRpcRequest:()=>wu,isJsonRpcResponse:()=>ia,isJsonRpcResult:()=>wn,isJsonRpcValidationInvalid:()=>Uq,isLocalhostUrl:()=>Ob,isNodeJs:()=>jA,isReservedErrorCode:()=>_m,isServerErrorCode:()=>Pq,isValidDefaultRoute:()=>Dm,isValidErrorCode:()=>NA,isValidLeadingWildcardRoute:()=>Mq,isValidRoute:()=>Oq,isValidTrailingWildcardRoute:()=>Nq,isValidWildcardRoute:()=>Pm,isWsUrl:()=>Rm,parseConnectionError:()=>Tb,payloadId:()=>Ib,validateJsonRpcError:()=>Iq});c();d();f();c();d();f();var RA="PARSE_ERROR",AA="INVALID_REQUEST",OA="METHOD_NOT_FOUND",MA="INVALID_PARAMS",bm="INTERNAL_ERROR",Lf="SERVER_ERROR",Cb=[-32700,-32600,-32601,-32602,-32603],Em=[-32e3,-32099],Uo={[RA]:{code:-32700,message:"Parse error"},[AA]:{code:-32600,message:"Invalid Request"},[OA]:{code:-32601,message:"Method not found"},[MA]:{code:-32602,message:"Invalid params"},[bm]:{code:-32603,message:"Internal error"},[Lf]:{code:-32e3,message:"Server error"}},Ff=Lf;c();d();f();function Pq(e){return e<=Em[0]&&e>=Em[1]}function _m(e){return Cb.includes(e)}function NA(e){return typeof e=="number"}function Sm(e){return Object.keys(Uo).includes(e)?Uo[e]:Uo[Ff]}function Cm(e){let t=Object.values(Uo).find(r=>r.code===e);return t||Uo[Ff]}function Iq(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(!NA(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(_m(e.error.code)){let t=Cm(e.error.code);if(t.message!==Uo[Ff].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function Tb(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={};cr(Ft,{isNodeJs:()=>jA});c();d();f();var BA=Z(Pb());jt(Ft,Z(Pb()));var jA=BA.isNode;jt(Gt,Ft);c();d();f();function Ib(e=3){let t=Date.now()*Math.pow(10,e),r=Math.floor(Math.random()*Math.pow(10,e));return t+r}function Rb(e=6){return BigInt(Ib(e))}function jo(e,t,r){return{id:r||Ib(),jsonrpc:"2.0",method:e,params:t}}function yu(e,t){return{id:e,jsonrpc:"2.0",result:t}}function na(e,t,r){return{id:e,jsonrpc:"2.0",error:zA(t,r)}}function zA(e,t){return typeof e>"u"?Sm(bm):(typeof e=="string"&&(e=Object.assign(Object.assign({},Sm(Lf)),{message:e})),typeof t<"u"&&(e.data=t),_m(e.code)&&(e=Cm(e.code)),e)}c();d();f();function Oq(e){return e.includes("*")?Pm(e):!/\W/g.test(e)}function Dm(e){return e==="*"}function Pm(e){return Dm(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function Mq(e){return!Dm(e)&&Pm(e)&&!e.split("*")[0].trim()}function Nq(e){return!Dm(e)&&Pm(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var vu=class{};c();d();f();var Ab=class extends vu{constructor(t){super()}},Im=class extends vu{constructor(){super()}},$f=class extends Im{constructor(t){super()}};c();d();f();c();d();f();var kq="^https?:",Lq="^wss?:";function Fq(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function HA(e,t){let r=Fq(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function $q(e){return HA(e,kq)}function Rm(e){return HA(e,Lq)}function Ob(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function Mb(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function wu(e){return Mb(e)&&"method"in e}function ia(e){return Mb(e)&&(wn(e)||Rr(e))}function wn(e){return"result"in e}function Rr(e){return"error"in e}function Uq(e){return"error"in e&&e.valid===!1}var Am=class extends $f{constructor(t){super(t),this.events=new KA.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(jo(t.method,t.params||[],Rb().toString()),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),ia(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}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",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}};c();d();f();c();d();f();var YA=Z(Ys());var GA=10,Vq=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:WA(),Bq=()=>typeof window<"u",jq=Vq(),Nb=class{constructor(t){if(this.url=t,this.events=new YA.EventEmitter,this.registering=!1,!Rm(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=n=>{this.onClose(n),t()},this.socket.close()})}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(ru(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!Rm(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,Gt.isReactNative)()?void 0:{rejectUnauthorized:!Ob(t)},o=new jq(t,[],i);Bq()?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=r=>this.onClose(r),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;let r=typeof t.data=="string"?vf(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=na(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return Tb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>GA&&this.events.setMaxListeners(GA)}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}},XA=Nb;var JA=XA;var QO=Z(OO());function wG(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,l=e.charAt(0),u=Math.log(a)/Math.log(256),h=Math.log(256)/Math.log(a);function m(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";for(var _=0,A=0,C=0,P=E.length;C!==P&&E[C]===0;)C++,_++;for(var D=(P-C)*h+1>>>0,O=new Uint8Array(D);C!==P;){for(var $=E[C],j=0,F=D-1;($!==0||j<A)&&F!==-1;F--,j++)$+=256*O[F]>>>0,O[F]=$%a>>>0,$=$/a>>>0;if($!==0)throw new Error("Non-zero carry");A=j,C++}for(var U=D-A;U!==D&&O[U]===0;)U++;for(var W=l.repeat(_);U<D;++U)W+=e.charAt(O[U]);return W}function g(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;var _=0;if(E[_]!==" "){for(var A=0,C=0;E[_]===l;)A++,_++;for(var P=(E.length-_)*u+1>>>0,D=new Uint8Array(P);E[_];){var O=r[E.charCodeAt(_)];if(O===255)return;for(var $=0,j=P-1;(O!==0||$<C)&&j!==-1;j--,$++)O+=a*D[j]>>>0,D[j]=O%256>>>0,O=O/256>>>0;if(O!==0)throw new Error("Non-zero carry");C=$,_++}if(E[_]!==" "){for(var F=P-C;F!==P&&D[F]===0;)F++;for(var U=new Uint8Array(A+(P-F)),W=A;F!==P;)U[W++]=D[F++];return U}}}function x(E){var _=g(E);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:m,decodeUnsafe:g,decode:x}}var xG=wG,bG=xG,ZO=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")},EG=e=>new TextEncoder().encode(e),_G=e=>new TextDecoder().decode(e),Gb=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")}},Yb=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 eM(this,t)}},Xb=class{constructor(t){this.decoders=t}or(t){return eM(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`)}},eM=(e,t)=>new Xb(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Jb=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Gb(t,r,n),this.decoder=new Yb(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},Km=({name:e,prefix:t,encode:r,decode:n})=>new Jb(e,t,r,n),qf=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=bG(r,t);return Km({prefix:e,name:t,encode:n,decode:o=>ZO(i(o))})},SG=(e,t,r,n)=>{let i={};for(let h=0;h<t.length;++h)i[t[h]]=h;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,l=0,u=0;for(let h=0;h<o;++h){let m=i[e[h]];if(m===void 0)throw new SyntaxError(`Non-${n} character`);l=l<<r|m,a+=r,a>=8&&(a-=8,s[u++]=255&l>>a)}if(a>=r||255&l<<8-a)throw new SyntaxError("Unexpected end of data");return s},CG=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let l=0;l<e.length;++l)for(a=a<<8|e[l],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},ur=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Km({prefix:t,name:e,encode(i){return CG(i,n,r)},decode(i){return SG(i,n,r,e)}}),TG=Km({prefix:"\0",name:"identity",encode:e=>_G(e),decode:e=>EG(e)}),DG=Object.freeze({__proto__:null,identity:TG}),PG=ur({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),IG=Object.freeze({__proto__:null,base2:PG}),RG=ur({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),AG=Object.freeze({__proto__:null,base8:RG}),OG=qf({prefix:"9",name:"base10",alphabet:"0123456789"}),MG=Object.freeze({__proto__:null,base10:OG}),NG=ur({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),kG=ur({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),LG=Object.freeze({__proto__:null,base16:NG,base16upper:kG}),FG=ur({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$G=ur({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),UG=ur({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),VG=ur({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),BG=ur({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),jG=ur({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),zG=ur({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),HG=ur({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),KG=ur({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),qG=Object.freeze({__proto__:null,base32:FG,base32upper:$G,base32pad:UG,base32padupper:VG,base32hex:BG,base32hexupper:jG,base32hexpad:zG,base32hexpadupper:HG,base32z:KG}),WG=qf({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),GG=qf({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),YG=Object.freeze({__proto__:null,base36:WG,base36upper:GG}),XG=qf({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),JG=qf({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),QG=Object.freeze({__proto__:null,base58btc:XG,base58flickr:JG}),ZG=ur({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),eY=ur({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),tY=ur({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),rY=ur({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),nY=Object.freeze({__proto__:null,base64:ZG,base64pad:eY,base64url:tY,base64urlpad:rY}),tM=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}"),iY=tM.reduce((e,t,r)=>(e[r]=t,e),[]),oY=tM.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function sY(e){return e.reduce((t,r)=>(t+=iY[r],t),"")}function aY(e){let t=[];for(let r of e){let n=oY[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var lY=Km({prefix:"\u{1F680}",name:"base256emoji",encode:sY,decode:aY}),uY=Object.freeze({__proto__:null,base256emoji:lY}),cY=rM,MO=128,fY=127,dY=~fY,hY=Math.pow(2,31);function rM(e,t,r){t=t||[],r=r||0;for(var n=r;e>=hY;)t[r++]=e&255|MO,e/=128;for(;e&dY;)t[r++]=e&255|MO,e>>>=7;return t[r]=e|0,rM.bytes=r-n+1,t}var pY=Qb,mY=128,NO=127;function Qb(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw Qb.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&NO)<<i:(s&NO)*Math.pow(2,i),i+=7}while(s>=mY);return Qb.bytes=o-n,r}var gY=Math.pow(2,7),yY=Math.pow(2,14),vY=Math.pow(2,21),wY=Math.pow(2,28),xY=Math.pow(2,35),bY=Math.pow(2,42),EY=Math.pow(2,49),_Y=Math.pow(2,56),SY=Math.pow(2,63),CY=function(e){return e<gY?1:e<yY?2:e<vY?3:e<wY?4:e<xY?5:e<bY?6:e<EY?7:e<_Y?8:e<SY?9:10},TY={encode:cY,decode:pY,encodingLength:CY},nM=TY,kO=(e,t,r=0)=>(nM.encode(e,t,r),t),LO=e=>nM.encodingLength(e),Zb=(e,t)=>{let r=t.byteLength,n=LO(e),i=n+LO(r),o=new Uint8Array(i+r);return kO(e,o,0),kO(r,o,n),o.set(t,i),new eE(e,r,t,o)},eE=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},iM=({name:e,code:t,encode:r})=>new tE(e,t,r),tE=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?Zb(this.code,r):r.then(n=>Zb(this.code,n))}else throw Error("Unknown type, must be binary type")}},oM=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),DY=iM({name:"sha2-256",code:18,encode:oM("SHA-256")}),PY=iM({name:"sha2-512",code:19,encode:oM("SHA-512")}),IY=Object.freeze({__proto__:null,sha256:DY,sha512:PY}),sM=0,RY="identity",aM=ZO,AY=e=>Zb(sM,aM(e)),OY={code:sM,name:RY,encode:aM,digest:AY},MY=Object.freeze({__proto__:null,identity:OY});new TextEncoder,new TextDecoder;var FO=K(K(K(K(K(K(K(K(K(K({},DG),IG),AG),MG),LG),qG),YG),QG),nY),uY);K(K({},IY),MY);function NY(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function lM(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var $O=lM("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),qb=lM("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=NY(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),kY=K({utf8:$O,"utf-8":$O,hex:FO.base16,latin1:qb,ascii:qb,binary:qb},FO);function LY(e,t="utf8"){let r=kY[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 uM="wc",FY=2,hE="core",Ko=`${uM}@${2}:${hE}:`,$Y={name:hE,logger:"error"},UY={database:":memory:"},VY="crypto",UO="client_ed25519_seed",BY=xt.ONE_DAY,jY="keychain",zY="0.3",HY="messages",KY="0.3",qY=xt.SIX_HOURS,WY="publisher",pE="irn",GY="error",YY="wss://relay.walletconnect.com",XY="relayer",Ar={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed"},JY="_subscription",zm={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},VO=xt.ONE_SECOND;var QY="2.2.0",ZY="0.3",ai={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var eX="subscription",tX="0.3",rX=xt.FIVE_SECONDS*1e3,nX="pairing",iX="0.3";var Hf={wc_pairingDelete:{req:{ttl:xt.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:xt.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:xt.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:xt.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:xt.ONE_DAY,prompt:!1,tag:0},res:{ttl:xt.ONE_DAY,prompt:!1,tag:0}}},si={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},oX="history",sX="0.3",aX="expirer",tn={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},lX="0.3";var rE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=jY,this.version=zY,this.initialized=!1,this.storagePrefix=Ko,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}=le("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,yb(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?vb(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},nE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=VY,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=Wx(i);return nm(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=ZR();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=Wx(o),a=mm();return await QI(a,i,BY,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),l=eA(a,o);return this.setSymKey(l,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||tA(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),l=ru(o);if(gb(a)){let g=a.senderPublicKey,x=a.receiverPublicKey;i=await this.generateSharedKey(g,x)}let u=this.getSymKey(i),{type:h,senderPublicKey:m}=a;return rA({type:h,symKey:u,message:l,senderPublicKey:m})},this.decode=async(i,o,s)=>{this.isInitialized();let a=iA(o,s);if(gb(a)){let h=a.receiverPublicKey,m=a.senderPublicKey;i=await this.generateSharedKey(h,m)}let l=this.getSymKey(i),u=nA({symKey:l,encoded:o});return vf(u)},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.keychain=n||new rE(this.core,this.logger)}get context(){return(0,Me.getLoggerContext)(this.logger)}getPayloadType(t){let r=ym(t);return gu(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(UO)}catch(r){t=mm(),await this.keychain.set(UO,t)}return LY(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},iE=class extends U0{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=HY,this.version=KY,this.initialized=!1,this.storagePrefix=Ko,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=gm(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=gm(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,yb(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?vb(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},oE=class extends V0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Hi.EventEmitter,this.name=WY,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)||qY,a=wm(o),l=(o==null?void 0:o.prompt)||!1,u=(o==null?void 0:o.tag)||0,h={topic:n,message:i,opts:{ttl:s,relay:a,prompt:l,tag:u}},m=gm(i);this.queue.set(m,h);try{await await wb(this.rpcPublish(n,i,s,a,l,u),this.publishTimeout)}catch(g){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Ar.connection_stalled);return}this.onPublish(m,h),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,l,u,h;let m={method:xm(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Ir((a=m.params)==null?void 0:a.prompt)&&((l=m.params)==null||delete l.prompt),Ir((u=m.params)==null?void 0:u.tag)&&((h=m.params)==null||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:m}),this.relayer.provider.request(m)}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(_u.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},sE=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())}},uX=Object.defineProperty,cX=Object.defineProperties,fX=Object.getOwnPropertyDescriptors,BO=Object.getOwnPropertySymbols,dX=Object.prototype.hasOwnProperty,hX=Object.prototype.propertyIsEnumerable,jO=(e,t,r)=>t in e?uX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hm=(e,t)=>{for(var r in t||(t={}))dX.call(t,r)&&jO(e,r,t[r]);if(BO)for(var r of BO(t))hX.call(t,r)&&jO(e,r,t[r]);return e},Wb=(e,t)=>cX(e,fX(t)),aE=class extends z0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new sE,this.events=new Hi.EventEmitter,this.name=eX,this.version=tX,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pendingSubInterval=20,this.storagePrefix=Ko,this.subscribeTimeout=1e4,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable())},this.subscribe=async(n,i)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{let o=wm(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)=>{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 xt.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)>=rX&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!1))},this.pendingSubInterval)}),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()=>{await this.restore(),await this.reset()},this.relayer=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}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=wm(n);await this.rpcUnsubscribe(t,r,i);let o=Bt("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:xm(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});let i;try{i=await await wb(this.relayer.provider.request(n),this.subscribeTimeout)}catch(o){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Ar.connection_stalled)}return i}rpcUnsubscribe(t,r,n){let i={method:xm(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,Wb(Hm({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,Wb(Hm({},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,Hm({},r)),this.topicMap.set(r.topic,t),this.events.emit(ai.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}=le("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(ai.deleted,Wb(Hm({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(ai.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(ai.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=le("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),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(){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(_u.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(Ar.connect,async()=>{await this.onConnect()}),this.relayer.on(Ar.disconnect,()=>{this.onDisconnect()}),this.events.on(ai.created,async t=>{let r=ai.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(ai.deleted,async t=>{let r=ai.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}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},pX=Object.defineProperty,zO=Object.getOwnPropertySymbols,mX=Object.prototype.hasOwnProperty,gX=Object.prototype.propertyIsEnumerable,HO=(e,t,r)=>t in e?pX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yX=(e,t)=>{for(var r in t||(t={}))mX.call(t,r)&&HO(e,r,t[r]);if(zO)for(var r of zO(t))gX.call(t,r)&&HO(e,r,t[r]);return e},lE=class extends B0{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Hi.EventEmitter,this.name=XY,this.transportExplicitlyClosed=!1,this.initialized=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Me.generateChildLogger)(t.logger,this.name):(0,dE.default)((0,Me.getDefaultLoggerOptions)({level:t.logger||GY})),this.messages=new iE(this.logger,t.core),this.subscriber=new aE(this,this.logger),this.publisher=new oE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||YY,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(ai.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(Ar.transport_closed)}async transportOpen(t){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(ai.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(Ar.transport_closed,()=>{n()}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw new Error(n.message);this.logger.error(n),this.events.emit(Ar.transport_closed)}}async restartTransport(t){await this.transportClose(),await new Promise(r=>setTimeout(r,VO)),await this.transportOpen(t)}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new Am(new JA(aA({sdkVersion:QY,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}),wu(t)){if(!t.method.endsWith(JY))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(yX({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(Ar.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=yu(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(zm.payload,t=>this.onProviderPayload(t)),this.provider.on(zm.connect,()=>{this.events.emit(Ar.connect)}),this.provider.on(zm.disconnect,()=>{this.events.emit(Ar.disconnect),this.attemptToReconnect()}),this.provider.on(zm.error,t=>this.events.emit(Ar.error,t)),this.events.on(Ar.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,xt.toMiliseconds)(VO))}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},vX=Object.defineProperty,KO=Object.getOwnPropertySymbols,wX=Object.prototype.hasOwnProperty,xX=Object.prototype.propertyIsEnumerable,qO=(e,t,r)=>t in e?vX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WO=(e,t)=>{for(var r in t||(t={}))wX.call(t,r)&&qO(e,r,t[r]);if(KO)for(var r of KO(t))xX.call(t,r)&&qO(e,r,t[r]);return e},ua=class extends j0{constructor(t,r,n,i=Ko,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=ZY,this.cached=[],this.initialized=!1,this.storagePrefix=Ko,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{yA(s)?this.map.set(s.id,s):vA(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Ir(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(l=>(0,QO.default)(a[l],s[l]))):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 l=WO(WO({},this.getData(s)),a);this.map.set(s,l),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}=le("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}=le("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}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},uE=class{constructor(t,r){this.core=t,this.logger=r,this.name=nX,this.version=iX,this.events=new Hi.default,this.initialized=!1,this.storagePrefix=Ko,this.ignoredPayloadTypes=[Vi],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=mm(),i=await this.core.crypto.setSymKey(n),o=Ln(xt.FIVE_MINUTES),s={protocol:pE},a={topic:i,expiry:o,relay:s,active:!1},l=dA({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:l}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:i,symKey:o,relay:s}=fA(n.uri),a=Ln(xt.FIVE_MINUTES),l={topic:i,relay:s,expiry:a,active:!1};return await this.pairings.set(i,l),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}),l},this.activate=async({topic:n})=>{this.isInitialized();let i=Ln(xt.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:l}=Bi();this.events.once(It("pairing_ping",o),({error:u})=>{u?l(u):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",Bt("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=jo(i,o),a=await this.core.crypto.encode(n,s),l=Hf[i].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,l),s.id},this.sendResult=async(n,i,o)=>{let s=yu(n,o),a=await this.core.crypto.encode(i,s),l=await this.core.history.get(i,n),u=Hf[l.request.method].res;await this.core.relayer.publish(i,a,u),await this.core.history.resolve(s)},this.sendError=async(n,i,o)=>{let s=na(n,o),a=await this.core.crypto.encode(i,s),l=await this.core.history.get(i,n),u=Hf[l.request.method]?Hf[l.request.method].res:Hf.unregistered_method.res;await this.core.relayer.publish(i,a,u),await this.core.history.resolve(s)},this.deletePairing=async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Bt("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=>ii(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=n=>{let{topic:i,payload:o}=n;switch(o.method){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;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(()=>{wn(i)?this.events.emit(It("pairing_ping",o),{}):Rr(i)&&this.events.emit(It("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=Bt("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(Bt("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Er(n)){let{message:i}=le("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!gA(n.uri)){let{message:i}=le("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!Er(n)){let{message:o}=le("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidDisconnect=async n=>{if(!Er(n)){let{message:o}=le("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async n=>{if(!Wt(n,!1)){let{message:i}=le("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=le("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(ii(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=le("EXPIRED",`pairing topic: ${n}`);throw new Error(i)}},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.pairings=new ua(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Me.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(Ar.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);wu(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ia(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(tn.expired,async t=>{let{topic:r}=vm(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},cE=class extends $0{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Hi.EventEmitter,this.name=oX,this.version=sX,this.cached=[],this.initialized=!1,this.storagePrefix=Ko,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(si.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(si.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(si.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:jo(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}=le("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(si.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=le("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(si.created,t=>{let r=si.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(si.updated,t=>{let r=si.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(si.deleted,t=>{let r=si.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},fE=class extends H0{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Hi.EventEmitter,this.name=aX,this.version=lX,this.cached=[],this.initialized=!1,this.storagePrefix=Ko,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(tn.created,{target:o,expiration:s})},this.get=n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{this.isInitialized();let i=this.formatTarget(n);if(this.has(i)){let o=this.getExpiration(i);this.expirations.delete(i),this.events.emit(tn.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 uA(t);if(typeof t=="number")return cA(t);let{message:r}=le("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(tn.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=le("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}=le("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,xt.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(tn.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(_u.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(tn.created,t=>{let r=tn.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(tn.expired,t=>{let r=tn.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(tn.deleted,t=>{let r=tn.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}},bX=Object.defineProperty,GO=Object.getOwnPropertySymbols,EX=Object.prototype.hasOwnProperty,_X=Object.prototype.propertyIsEnumerable,YO=(e,t,r)=>t in e?bX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XO=(e,t)=>{for(var r in t||(t={}))EX.call(t,r)&&YO(e,r,t[r]);if(GO)for(var r of GO(t))_X.call(t,r)&&YO(e,r,t[r]);return e},Kf=class extends F0{constructor(t){super(t),this.protocol=uM,this.version=FY,this.name=hE,this.events=new Hi.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,dE.default)((0,Me.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||$Y.logger}));this.logger=(0,Me.generateChildLogger)(r,this.name),this.heartbeat=new _u.HeartBeat,this.crypto=new nE(this,this.logger,t==null?void 0:t.keychain),this.history=new cE(this,this.logger),this.expirer=new fE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new JO.default(XO(XO({},UY),t==null?void 0:t.storageOptions)),this.relayer=new lE({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new uE(this,this.logger)}static async init(t){let r=new Kf(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 Initilization Success")}catch(t){throw this.logger.warn(`Core Initilization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},cM=Kf;var Cu=Z(ox());var Wm=Z(Ys()),_t=Z(ko());var pM="wc",mM=2,gM="client",bE=`${pM}@${mM}:${gM}:`,mE={name:gM,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var SX="proposal";var CX="session",qm=_t.SEVEN_DAYS,TX="engine",Wf={wc_sessionPropose:{req:{ttl:_t.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:_t.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:_t.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:_t.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:_t.ONE_DAY,prompt:!1,tag:1104},res:{ttl:_t.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:_t.ONE_DAY,prompt:!1,tag:1106},res:{ttl:_t.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:_t.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:_t.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:_t.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:_t.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:_t.ONE_DAY,prompt:!1,tag:1112},res:{ttl:_t.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:_t.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:_t.THIRTY_SECONDS,prompt:!1,tag:1115}}},DX="request",PX=Object.defineProperty,IX=Object.defineProperties,RX=Object.getOwnPropertyDescriptors,fM=Object.getOwnPropertySymbols,AX=Object.prototype.hasOwnProperty,OX=Object.prototype.propertyIsEnumerable,dM=(e,t,r)=>t in e?PX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ki=(e,t)=>{for(var r in t||(t={}))AX.call(t,r)&&dM(e,r,t[r]);if(fM)for(var r of fM(t))OX.call(t,r)&&dM(e,r,t[r]);return e},gE=(e,t)=>IX(e,RX(t)),yE=class extends q0{constructor(t){super(t),this.name=TX,this.events=new Wm.default,this.initialized=!1,this.ignoredPayloadTypes=[Vi],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(Wf)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized(),await this.isValidConnect(r);let{pairingTopic:n,requiredNamespaces:i,relays:o}=r,s=n,a,l=!1;if(s&&(l=this.client.core.pairing.pairings.get(s).active),!s||!l){let{topic:A,uri:C}=await this.client.core.pairing.create();s=A,a=C}let u=await this.client.core.crypto.generateKeyPair(),h={requiredNamespaces:i,relays:o!=null?o:[{protocol:pE}],proposer:{publicKey:u,metadata:this.client.metadata}},{reject:m,resolve:g,done:x}=Bi();if(this.events.once(It("session_connect"),async({error:A,session:C})=>{if(A)m(A);else if(C){C.self.publicKey=u;let P=gE(Ki({},C),{requiredNamespaces:C.requiredNamespaces});await this.client.session.set(C.topic,P),await this.setExpiry(C.topic,C.expiry),s&&await this.client.core.pairing.updateMetadata({topic:s,metadata:C.peer.metadata}),g(P)}}),!s){let{message:A}=le("NO_MATCHING_KEY",`connect() pairing topic: ${s}`);throw new Error(A)}let E=await this.sendRequest(s,"wc_sessionPropose",h),_=Ln(_t.FIVE_MINUTES);return await this.setProposal(E,Ki({id:E,expiry:_},h)),{uri:a,approval:x}},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}=r,s=this.client.proposal.get(n),{pairingTopic:a,proposer:l,requiredNamespaces:u}=s;Nf(u)||(u=hA(o,"approve()"),this.client.proposal.set(n,gE(Ki({},s),{requiredNamespaces:u})));let h=await this.client.core.crypto.generateKeyPair(),m=l.publicKey,g=await this.client.core.crypto.generateSharedKey(h,m),x={relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:u,controller:{publicKey:h,metadata:this.client.metadata},expiry:Ln(qm)};await this.client.core.relayer.subscribe(g);let E=await this.sendRequest(g,"wc_sessionSettle",x),{done:_,resolve:A,reject:C}=Bi();this.events.once(It("session_approve",E),({error:D})=>{D?C(D):A(this.client.session.get(g))});let P=gE(Ki({},x),{topic:g,acknowledged:!1,self:x.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:h});return await this.client.session.set(g,P),await this.setExpiry(g,Ln(qm)),a&&await this.client.core.pairing.updateMetadata({topic:a,metadata:P.peer.metadata}),a&&n&&(await this.sendResult(n,a,{relay:{protocol:i!=null?i:"irn"},responderPublicKey:h}),await this.client.proposal.delete(n,Bt("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a})),{topic:g,acknowledged:_}},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,Bt("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:l}=Bi();return this.events.once(It("session_update",o),({error:u})=>{u?l(u):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}=Bi();return this.events.once(It("session_extend",i),({error:l})=>{l?a(l):s()}),await this.setExpiry(n,Ln(qm)),{acknowledged:o}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:i,topic:o}=r,s=await this.sendRequest(o,"wc_sessionRequest",{request:i,chainId:n}),{done:a,resolve:l,reject:u}=Bi();return this.events.once(It("session_request",s),({error:h,result:m})=>{h?u(h):l(m)}),await a()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;wn(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}=Bi();this.events.once(It("session_ping",i),({error:l})=>{l?a(l):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",Bt("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=>mA(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,Bt("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,Bt("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=Wf.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,n)},this.sendRequest=async(r,n,i)=>{let o=jo(n,i),s=await this.client.core.crypto.encode(r,o),a=Wf[n].req;return this.client.core.history.set(r,o),this.client.core.relayer.publish(r,s,a),o.id},this.sendResult=async(r,n,i)=>{let o=yu(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),l=Wf[a.request.method].res;this.client.core.relayer.publish(n,s,l),await this.client.core.history.resolve(o)},this.sendError=async(r,n,i)=>{let o=na(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),l=Wf[a.request.method].res;this.client.core.relayer.publish(n,s,l),await this.client.core.history.resolve(o)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{ii(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{ii(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(Ki({},n.params));let s=Ln(_t.FIVE_MINUTES),a=Ki({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(wn(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 l=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:l});let u=await this.client.core.crypto.generateSharedKey(a,l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let h=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:h}),await this.client.core.pairing.activate({topic:r})}else Rr(n)&&(await this.client.proposal.delete(i,Bt("USER_DISCONNECTED")),this.events.emit(It("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:l,namespaces:u,requiredNamespaces:h}=n.params,m={topic:r,relay:s,expiry:l,namespaces:u,acknowledged:!0,requiredNamespaces:h,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}};await this.sendResult(n.id,r,!0),this.events.emit(It("session_connect"),{session:m})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;wn(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(It("session_approve",i),{})):Rr(n)&&(await this.client.session.delete(r,Bt("USER_DISCONNECTED")),this.events.emit(It("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(Ki({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;wn(n)?this.events.emit(It("session_update",i),{}):Rr(n)&&this.events.emit(It("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Ln(qm)),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;wn(n)?this.events.emit(It("session_extend",i),{}):Rr(n)&&this.events.emit(It("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(()=>{wn(n)?this.events.emit(It("session_ping",i),{}):Rr(n)&&this.events.emit(It("session_ping",i),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await this.sendResult(i,r,!0),await this.deleteSession(r),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(Ki({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;wn(n)?this.events.emit(It("session_request",i),{result:n.result}):Rr(n)&&this.events.emit(It("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(Ki({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(!Er(r)){let{message:a}=le("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(a)}let{pairingTopic:n,requiredNamespaces:i,relays:o}=r;if(Ir(n)||await this.isValidPairingTopic(n),!Ir(i)&&Nf(i)===0)return;let s=bA(i,"connect()");if(s)throw new Error(s.message);if(!EA(o,!0)){let{message:a}=le("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(a)}},this.isValidApprove=async r=>{if(!Er(r))throw new Error(le("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:o}=r;await this.isValidProposalId(n);let s=this.client.proposal.get(n),a=kf(i,"approve()");if(a)throw new Error(a.message);let l=Sb(s.requiredNamespaces,i,"update()");if(l)throw new Error(l.message);if(!Wt(o,!0)){let{message:u}=le("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(u)}},this.isValidReject=async r=>{if(!Er(r)){let{message:o}=le("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(o)}let{id:n,reason:i}=r;if(await this.isValidProposalId(n),!SA(i)){let{message:o}=le("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!Er(r)){let{message:u}=le("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(u)}let{relay:n,controller:i,namespaces:o,expiry:s}=r;if(!Eb(n)){let{message:u}=le("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let a=wA(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let l=kf(o,"onSessionSettleRequest()");if(l)throw new Error(l.message);if(ii(s)){let{message:u}=le("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async r=>{if(!Er(r)){let{message:l}=le("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(l)}let{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);let o=this.client.session.get(n),s=kf(i,"update()");if(s)throw new Error(s.message);let a=Sb(o.requiredNamespaces,i,"update()");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!Er(r)){let{message:i}=le("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!Er(r)){let{message:a}=le("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(a)}let{topic:n,request:i,chainId:o}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!_b(s,o)){let{message:a}=le("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(a)}if(!CA(i)){let{message:a}=le("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(a)}if(!PA(s,o,i.method)){let{message:a}=le("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(a)}},this.isValidRespond=async r=>{if(!Er(r)){let{message:o}=le("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(o)}let{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!TA(i)){let{message:o}=le("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!Er(r)){let{message:i}=le("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!Er(r)){let{message:a}=le("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}=le("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!DA(i)){let{message:a}=le("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!IA(s,o,i.name)){let{message:a}=le("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!Er(r)){let{message:i}=le("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}}isInitialized(){if(!this.initialized){let{message:t}=le("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(Ar.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);wu(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ia(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(tn.expired,async t=>{let{topic:r,id:n}=vm(t.target);if(n&&this.getPendingSessionRequests()[n])return await this.deletePendingSessionRequest(n,le("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)})}isValidPairingTopic(t){if(!Wt(t,!1)){let{message:r}=le("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}=le("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(ii(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=le("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!Wt(t,!1)){let{message:r}=le("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=le("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(ii(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=le("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(Wt(t,!1)){let{message:r}=le("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=le("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!_A(t)){let{message:r}=le("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=le("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(ii(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=le("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},vE=class extends ua{constructor(t,r){super(t,r,SX,bE),this.core=t,this.logger=r}},wE=class extends ua{constructor(t,r){super(t,r,CX,bE),this.core=t,this.logger=r}},xE=class extends ua{constructor(t,r){super(t,r,DX,bE),this.core=t,this.logger=r}},Su=class extends K0{constructor(t){super(t),this.protocol=pM,this.version=mM,this.name=mE.name,this.events=new Wm.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)||mE.name,this.metadata=(t==null?void 0:t.metadata)||sA();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,hM.default)((0,Cu.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||mE.logger}));this.core=(t==null?void 0:t.core)||new cM(t),this.logger=(0,Cu.generateChildLogger)(r,this.name),this.session=new wE(this.core,this.logger),this.proposal=new vE(this.core,this.logger),this.pendingRequest=new xE(this.core,this.logger),this.engine=new yE(this)}static async init(t){let r=new Su(t);return await r.initialize(),r}get context(){return(0,Cu.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 Initilization Success")}catch(t){throw this.logger.info("SignClient Initilization Failure"),this.logger.error(t.message),t}}};c();d();f();var MX=Z(Yx()),NX=Z(Qx()),kX=Z(iu()),yM=Z(eb()),vM=Z(nb());var EE=Z(ko()),_E=Z(dm()),LX=Z(ib()),wM=Z(ab());var FX={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 xM(e,t){let{message:r,code:n}=FX[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var KM=Z(bM(),1);c();d();f();c();d();f();c();d();f();var $M=Z(SM());c();d();f();c();d();f();c();d();f();var CM="logger/5.7.0";var TM=!1,DM=!1,Ym={debug:1,default:2,info:2,warning:3,error:4,off:5},PM=Ym.default,CE=null;function $X(){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 IM=$X(),TE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(TE||(TE={}));var Fn;(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"})(Fn||(Fn={}));var RM="0123456789abcdef",be=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Ym[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(PM>Ym[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(DM)return this.makeError("censored error",r,{});r||(r=be.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(l=>{let u=n[l];try{if(u instanceof Uint8Array){let h="";for(let m=0;m<u.length;m++)h+=RM[u[m]>>4],h+=RM[u[m]&15];i.push(l+"=Uint8Array(0x"+h+")")}else i.push(l+"="+JSON.stringify(u))}catch(h){i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let o=t,s="";switch(r){case Fn.NUMERIC_FAULT:{s="NUMERIC_FAULT";let l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":s+="-"+l;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case Fn.CALL_EXCEPTION:case Fn.INSUFFICIENT_FUNDS:case Fn.MISSING_NEW:case Fn.NONCE_EXPIRED:case Fn.REPLACEMENT_UNDERPRICED:case Fn.TRANSACTION_REPLACED:case Fn.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(l){a[l]=n[l]}),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"),IM&&this.throwError("platform missing String.prototype.normalize",be.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:IM})}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 CE||(CE=new be(CM)),CE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),TM){if(!t)return;this.globalLogger().throwError("error censorship permanent",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}DM=!!t,TM=!!r}static setLogLevel(t){let r=Ym[t.toLowerCase()];if(r==null){be.globalLogger().warn("invalid log level - "+t);return}PM=r}static from(t){return new be(t)}};be.errors=Fn;be.levels=TE;c();d();f();var AM="bytes/5.7.0";var ca=new be(AM);function MM(e){return!!e.toHexString}function Tu(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return Tu(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function NM(e){return Du(e)&&!(e.length%2)||Gf(e)}function OM(e){return typeof e=="number"&&e==e&&e%1===0}function Gf(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!OM(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!OM(r)||r<0||r>=256)return!1}return!0}function rn(e,t){if(t||(t={}),typeof e=="number"){ca.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),Tu(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),MM(e)&&(e=e.toHexString()),Du(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ca.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 Tu(new Uint8Array(n))}return Gf(e)?Tu(new Uint8Array(e)):ca.throwArgumentError("invalid arrayify value","value",e)}function Yf(e){let t=e.map(i=>rn(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),Tu(n)}function Xm(e,t){e=rn(e),e.length>t&&ca.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),Tu(r)}function Du(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var DE="0123456789abcdef";function Pu(e,t){if(t||(t={}),typeof e=="number"){ca.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=DE[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),MM(e))return e.toHexString();if(Du(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ca.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Gf(e)){let r="0x";for(let n=0;n<e.length;n++){let i=e[n];r+=DE[(i&240)>>4]+DE[i&15]}return r}return ca.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var kM="bignumber/5.7.0";var IE=$M.default.BN,qi=new be(kM),PE={},LM=9007199254740991;var FM=!1,rr=class{constructor(t,r){t!==PE&&qi.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 zr(Ee(this).fromTwos(t))}toTwos(t){return zr(Ee(this).toTwos(t))}abs(){return this._hex[0]==="-"?rr.from(this._hex.substring(1)):this}add(t){return zr(Ee(this).add(Ee(t)))}sub(t){return zr(Ee(this).sub(Ee(t)))}div(t){return rr.from(t).isZero()&&xn("division-by-zero","div"),zr(Ee(this).div(Ee(t)))}mul(t){return zr(Ee(this).mul(Ee(t)))}mod(t){let r=Ee(t);return r.isNeg()&&xn("division-by-zero","mod"),zr(Ee(this).umod(r))}pow(t){let r=Ee(t);return r.isNeg()&&xn("negative-power","pow"),zr(Ee(this).pow(r))}and(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","and"),zr(Ee(this).and(r))}or(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","or"),zr(Ee(this).or(r))}xor(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","xor"),zr(Ee(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&xn("negative-width","mask"),zr(Ee(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&xn("negative-width","shl"),zr(Ee(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&xn("negative-width","shr"),zr(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){xn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return qi.throwError("this platform does not support BigInt",be.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?FM||(FM=!0,qi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?qi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",be.errors.UNEXPECTED_ARGUMENT,{}):qi.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(PE,Xf(t)):t.match(/^-?[0-9]+$/)?new rr(PE,Xf(new IE(t))):qi.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&xn("underflow","BigNumber.from",t),(t>=LM||t<=-LM)&&xn("overflow","BigNumber.from",t),rr.from(String(t));let r=t;if(typeof r=="bigint")return rr.from(r.toString());if(Gf(r))return rr.from(Pu(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"&&(Du(n)||n[0]==="-"&&Du(n.substring(1))))return rr.from(n)}return qi.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function Xf(e){if(typeof e!="string")return Xf(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&qi.throwArgumentError("invalid hex","value",e),e=Xf(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 zr(e){return rr.from(Xf(e))}function Ee(e){let t=rr.from(e).toHexString();return t[0]==="-"?new IE("-"+t.substring(3),16):new IE(t.substring(2),16)}function xn(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),qi.throwError(e,be.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var UM="strings/5.7.0";var VM=new be(UM),Jf;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Jf||(Jf={}));var fa;(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"})(fa||(fa={}));function UX(e,t,r,n,i){return VM.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function BM(e,t,r,n,i){if(e===fa.BAD_PREFIX||e===fa.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===fa.OVERRUN?r.length-t-1:0}function VX(e,t,r,n,i){return e===fa.OVERLONG?(n.push(i),0):(n.push(65533),BM(e,t,r,n,i))}var BX=Object.freeze({error:UX,ignore:BM,replace:VX});function RE(e,t=Jf.current){t!=Jf.current&&(VM.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 rn(r)}c();d();f();var jM="solidity/5.7.0";var jX=new RegExp("^bytes([0-9]+)$"),zX=new RegExp("^(u?int)([0-9]*)$"),HX=new RegExp("^(.*)\\[([0-9]*)\\]$"),KX="0000000000000000000000000000000000000000000000000000000000000000",Iu=new be(jM);function zM(e,t,r){switch(e){case"address":return r?Xm(t,32):rn(t);case"string":return RE(t);case"bytes":return rn(t);case"bool":return t=t?"0x01":"0x00",r?Xm(t,32):rn(t)}let n=e.match(zX);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&Iu.throwArgumentError("invalid number type","type",e),r&&(i=256),t=rr.from(t).toTwos(i),Xm(t,i/8)}if(n=e.match(jX),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&Iu.throwArgumentError("invalid bytes type","type",e),rn(t).byteLength!==i&&Iu.throwArgumentError(`invalid value for ${e}`,"value",t),r?rn((t+KX).substring(0,66)):t}if(n=e.match(HX),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&Iu.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(zM(i,a,!0))}),Yf(s)}return Iu.throwArgumentError("invalid type","type",e)}function HM(e,t){e.length!=t.length&&Iu.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(zM(n,t[i]))}),Pu(Yf(r))}function AE(e){return NM(e)?ME(e):qX(e)}function OE(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return ME(HM(t,r))}function qX(e){let t=w.from(e);return ME(t)}function ME(e){let t=BigInt(WX(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function WX(e){let t=Pu(Yf([rn(e)]));return"0x"+KM.default.keccak_256(rn(t))}var qM=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},GX=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},WM=e=>!e||typeof e=="string"?AE(e!=null?e:""):OE(e.types.map((t,r)=>[t,e.values[r]])),GM=(e,t)=>t?(typeof t=="string"&&(t=GX(["string"],[t])),OE([["uint256",AE(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])):OE([["uint256",AE(e).hash]]),YM=e=>e?typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(","):"";var XX={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},JX=pd()((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,a=ID)=>{o&&!o.length&&console.warn("Cannot set empty `credential_types`. Defaulting to only Orb credential."),e({config:{app_id:r,action:n,signal:i,action_description:s,walletConnectProjectId:a,credential_types:o!=null&&o.length?o:["orb"]}});try{let l=await Su.init({projectId:a,metadata:{name:"IDKit",description:"Verify with World ID",url:"https://worldcoin.org",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:l}),t().connectClient(l)}catch(l){console.error(l)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:XX});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 World app:",n)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:$w(r),mobile:$w(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:QX(t().config)}).then(n=>{if(!ZX(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(wa).includes(o)&&(i=o),console.warn("Error receiving proof:",i),console.warn("Raw error response:",n),e({errorCode:i,verificationState:"failed"})}).finally(()=>void r.disconnect({topic:t().topic,reason:xM("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"})}})),QX=e=>({jsonrpc:"2.0",method:"world_id_v1",id:K6(1e5,9999999),params:[{app_id:e.app_id,action:YM(e.action),signal:WM(e.signal).digest,action_description:e.action_description,external_nullifier:GM(e.app_id,e.action).digest,credential_types:e.credential_types}]}),ZX=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||!qM(o))return!1;return!0},eJ=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}),tJ=(e,t,r,n,i,o)=>{let{result:s,verificationState:a,errorCode:l,qrData:u,client:h,createClient:m,reset:g}=JX(eJ),x=(0,Jm.useRef)(n);return(0,Jm.useEffect)(()=>{!e||h||m(e,t,r,x.current,i,o)},[e,t,r,o,i,h,m,a,x]),{result:s,reset:g,verificationState:a,errorCode:l,qrData:u}},XM=tJ;var rJ=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,credential_types:e.credential_types,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage,setErrorState:e.setErrorState}),nJ=()=>{let e=Ya(),[t,r]=(0,Qf.useState)(!1),{app_id:n,action:i,signal:o,setStage:s,handleVerify:a,action_description:l,walletConnectProjectId:u,credential_types:h,setErrorState:m}=_n(rJ,Xa),{result:g,qrData:x,verificationState:E,reset:_,errorCode:A}=XM(n,i,o,h,l,u);return(0,Qf.useEffect)(()=>_,[_]),(0,Qf.useEffect)(()=>{E==="failed"&&(s("ERROR"),m({code:A!=null?A:"generic_error"})),g&&a(g)},[g,_,a,E,s,A,m]),y.createElement("div",{className:"-mt-6 space-y-6"},y.createElement("div",null,y.createElement("div",{className:"mb-2 flex items-center justify-center"},y.createElement(p0,{className:"text-0d151d h-8 dark:text-white"})),y.createElement("p",{className:"font-sora text-center text-2xl font-semibold text-gray-900 dark:text-white"},E==="awaiting_verification"?"Confirm in World App":"Continue with Worldcoin"),E==="awaiting_verification"&&y.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},"Please confirm the request in your app to continue.")),E==="awaiting_verification"?y.createElement("div",{className:"flex items-center justify-center"},y.createElement(xo,{className:"h-20 w-20"})):y.createElement(SD,{showQR:t,setShowQR:r,qrData:x}),(e=="desktop"||!t)&&(E==="awaiting_connection"||E==="loading_widget")&&y.createElement(PD,null))},JM=nJ;c();d();f();var ye=Z(ae());c();d();f();var NE=Z(ae());var iJ=NE["useId".toString()]||(()=>{}),oJ=0;function Qm(e){let[t,r]=NE.useState(iJ());return Ps(()=>{e||r(n=>n!=null?n:String(oJ++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var Hr=Z(ae());var kE="focusScope.autoFocusOnMount",LE="focusScope.autoFocusOnUnmount",QM={bubbles:!1,cancelable:!0};var rN=(0,Hr.forwardRef)((e,t)=>{let _=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=_,s=ge(_,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,l]=(0,Hr.useState)(null),u=$r(i),h=$r(o),m=(0,Hr.useRef)(null),g=yr(t,A=>l(A)),x=(0,Hr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Hr.useEffect)(()=>{if(n){let A=function(P){if(x.paused||!a)return;let D=P.target;a.contains(D)?m.current=D:da(m.current,{select:!0})},C=function(P){x.paused||!a||a.contains(P.relatedTarget)||da(m.current,{select:!0})};return document.addEventListener("focusin",A),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",C)}}},[n,a,x.paused]),(0,Hr.useEffect)(()=>{if(a){eN.add(x);let A=document.activeElement;if(!a.contains(A)){let P=new CustomEvent(kE,QM);a.addEventListener(kE,u),a.dispatchEvent(P),P.defaultPrevented||(sJ(fJ(nN(a)),{select:!0}),document.activeElement===A&&da(a))}return()=>{a.removeEventListener(kE,u),setTimeout(()=>{let P=new CustomEvent(LE,QM);a.addEventListener(LE,h),a.dispatchEvent(P),P.defaultPrevented||da(A!=null?A:document.body,{select:!0}),a.removeEventListener(LE,h),eN.remove(x)},0)}}},[a,u,h,x]);let E=(0,Hr.useCallback)(A=>{if(!r&&!n||x.paused)return;let C=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,P=document.activeElement;if(C&&P){let D=A.currentTarget,[O,$]=aJ(D);O&&$?!A.shiftKey&&P===$?(A.preventDefault(),r&&da(O,{select:!0})):A.shiftKey&&P===O&&(A.preventDefault(),r&&da($,{select:!0})):P===D&&A.preventDefault()}},[r,n,x.paused]);return(0,Hr.createElement)(sr.div,Te({tabIndex:-1},s,{ref:g,onKeyDown:E}))});function sJ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(da(n,{select:t}),document.activeElement!==r)return}function aJ(e){let t=nN(e),r=ZM(t,e),n=ZM(t.reverse(),e);return[r,n]}function nN(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 ZM(e,t){for(let r of e)if(!lJ(r,{upTo:t}))return r}function lJ(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 uJ(e){return e instanceof HTMLInputElement&&"select"in e}function da(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&uJ(e)&&t&&e.select()}}var eN=cJ();function cJ(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=tN(e,t),e.unshift(t)},remove(t){var r;e=tN(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function tN(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function fJ(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var oN=Z(ae()),FE=0;function sN(){(0,oN.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:iN()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:iN()),FE++,()=>{FE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),FE--}},[])}function iN(){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();c();d();f();var MN=Z(ON(),1),{__extends:gye,__assign:bn,__rest:rg,__decorate:yye,__param:vye,__esDecorate:wye,__runInitializers:xye,__propKey:bye,__setFunctionName:Eye,__metadata:_ye,__awaiter:Sye,__generator:Cye,__exportStar:Tye,__createBinding:Dye,__values:Pye,__read:Iye,__spread:Rye,__spreadArrays:Aye,__spreadArray:NN,__await:Oye,__asyncGenerator:Mye,__asyncDelegator:Nye,__asyncValues:kye,__makeTemplateObject:Lye,__importStar:Fye,__importDefault:$ye,__classPrivateFieldGet:Uye,__classPrivateFieldSet:Vye,__classPrivateFieldIn:Bye}=MN.default;var sg=Z(ae());c();d();f();var _r=Z(ae());c();d();f();var ha="right-scroll-bar-position",pa="width-before-scroll-bar",UE="with-scroll-bars-hidden",VE="--removed-body-scroll-bar-size";c();d();f();c();d();f();function kN(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var LN=Z(ae());function FN(e,t){var r=(0,LN.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 BE(e,t){return FN(t||null,function(r){return e.forEach(function(n){return kN(n,r)})})}c();d();f();c();d();f();c();d();f();function dJ(e){return e}function hJ(e,t){t===void 0&&(t=dJ);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 l=function(){var h=s;s=[],h.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(h){s.push(h),u()},filter:function(h){return s=s.filter(h),r}}}};return i}function jE(e){e===void 0&&(e={});var t=hJ(null);return t.options=bn({async:!0,ssr:!1},e),t}c();d();f();var $N=Z(ae()),UN=function(e){var t=e.sideCar,r=rg(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 $N.createElement(n,bn({},r))};UN.isSideCarExport=!0;function zE(e,t){return e.useMedium(t),UN}var ng=jE();var HE=function(){},Zf=_r.forwardRef(function(e,t){var r=_r.useRef(null),n=_r.useState({onScrollCapture:HE,onWheelCapture:HE,onTouchMoveCapture:HE}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,x=e.noIsolation,E=e.inert,_=e.allowPinchZoom,A=e.as,C=A===void 0?"div":A,P=rg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),D=g,O=BE([r,t]),$=bn(bn({},P),i);return _r.createElement(_r.Fragment,null,h&&_r.createElement(D,{sideCar:ng,removeScrollBar:u,shards:m,noIsolation:x,inert:E,setCallbacks:o,allowPinchZoom:!!_,lockRef:r}),s?_r.cloneElement(_r.Children.only(a),bn(bn({},$),{ref:O})):_r.createElement(C,bn({},$,{className:l,ref:O}),a))});Zf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zf.classNames={fullWidth:pa,zeroRight:ha};c();d();f();c();d();f();var bt=Z(ae());c();d();f();c();d();f();var ig=Z(ae());c();d();f();c();d();f();c();d();f();var jN=Z(ae());c();d();f();c();d();f();var VN;var BN=function(){if(VN)return VN;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=BN();return t&&e.setAttribute("nonce",t),e}function mJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var KE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=pJ())&&(mJ(t,r),gJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var qE=function(){var e=KE();return function(t,r){jN.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var ed=function(){var e=qE(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var yJ={left:0,top:0,right:0,gap:0},WE=function(e){return parseInt(e||"",10)||0},vJ=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[WE(r),WE(n),WE(i)]},GE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yJ;var t=vJ(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 wJ=ed(),xJ=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(UE,` {
|
|
41
41
|
overflow: hidden `).concat(n,`;
|
|
42
42
|
padding-right: `).concat(a,"px ").concat(n,`;
|
|
43
43
|
}
|
|
@@ -54,29 +54,29 @@ if (cid) {
|
|
|
54
54
|
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.`).concat(
|
|
57
|
+
.`).concat(ha,` {
|
|
58
58
|
right: `).concat(a,"px ").concat(n,`;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.`).concat(
|
|
61
|
+
.`).concat(pa,` {
|
|
62
62
|
margin-right: `).concat(a,"px ").concat(n,`;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.`).concat(
|
|
65
|
+
.`).concat(ha," .").concat(ha,` {
|
|
66
66
|
right: 0 `).concat(n,`;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.`).concat(
|
|
69
|
+
.`).concat(pa," .").concat(pa,` {
|
|
70
70
|
margin-right: 0 `).concat(n,`;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
body {
|
|
74
|
-
`).concat(
|
|
74
|
+
`).concat(VE,": ").concat(a,`px;
|
|
75
75
|
}
|
|
76
|
-
`)},
|
|
76
|
+
`)},YE=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=ig.useMemo(function(){return GE(i)},[i]);return ig.createElement(wJ,{styles:xJ(o,!t,i,r?"":"!important")})};c();d();f();var XE=!1;if(typeof window<"u")try{td=Object.defineProperty({},"passive",{get:function(){return XE=!0,!0}}),window.addEventListener("test",td,td),window.removeEventListener("test",td,td)}catch(e){XE=!1}var td,ma=XE?{passive:!1}:!1;c();d();f();var bJ=function(e){return e.tagName==="TEXTAREA"},zN=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bJ(e)&&r[t]==="visible")},EJ=function(e){return zN(e,"overflowY")},_J=function(e){return zN(e,"overflowX")},JE=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=HN(e,r);if(n){var i=KN(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},SJ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},CJ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},HN=function(e,t){return e==="v"?EJ(t):_J(t)},KN=function(e,t){return e==="v"?SJ(t):CJ(t)},TJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},qN=function(e,t,r,n,i){var o=TJ(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,l=t.contains(a),u=!1,h=s>0,m=0,g=0;do{var x=KN(e,a),E=x[0],_=x[1],A=x[2],C=_-A-o*E;(E||C)&&HN(e,a)&&(m+=C,g+=E),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(h&&(i&&m===0||!i&&s>m)||!h&&(i&&g===0||!i&&-s>g))&&(u=!0),u};var og=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},WN=function(e){return[e.deltaX,e.deltaY]},GN=function(e){return e&&"current"in e?e.current:e},DJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PJ=function(e){return`
|
|
77
77
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
78
78
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
79
|
-
`)},pZ=0,Ul=[];function kL(e){var t=_t.useRef([]),r=_t.useRef([0,0]),n=_t.useRef(),i=_t.useState(pZ++)[0],o=_t.useState(function(){return fd()})[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 _=G8([e.lockRef.current],(e.shards||[]).map(ML),!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=Pg(_),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 $=f_(F,j);if(!$)return!0;if($?U=F:(U=F==="v"?"h":"v",$=f_(F,j)),!$)return!1;if(!n.current&&"changedTouches"in _&&(P||R)&&(n.current=U),!U)return!0;var G=n.current||U;return RL(G,D,_,G==="h"?P:R,!0)},[]),u=_t.useCallback(function(_){var D=_;if(!(!Ul.length||Ul[Ul.length-1]!==o)){var C="deltaY"in D?NL(D):Pg(D),I=t.current.filter(function(U){return U.name===D.type&&U.target===D.target&&dZ(U.delta,C)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var P=(s.current.shards||[]).map(ML).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=Pg(_),n.current=void 0},[]),h=_t.useCallback(function(_){l(_.type,NL(_),_.target,a(_,e.lockRef.current))},[]),g=_t.useCallback(function(_){l(_.type,Pg(_),_.target,a(_,e.lockRef.current))},[]);_t.useEffect(function(){return Ul.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,ha),document.addEventListener("touchmove",u,ha),document.addEventListener("touchstart",p,ha),function(){Ul=Ul.filter(function(_){return _!==o}),document.removeEventListener("wheel",u,ha),document.removeEventListener("touchmove",u,ha),document.removeEventListener("touchstart",p,ha)}},[]);var w=e.removeScrollBar,v=e.inert;return _t.createElement(_t.Fragment,null,v?_t.createElement(o,{styles:hZ(i)}):null,w?_t.createElement(l_,{gapMode:"margin"}):null)}var LL=n_(Cg,kL);var FL=Dg.forwardRef(function(e,t){return Dg.createElement(cd,yn({},e,{ref:t,sideCar:LL}))});FL.classNames=cd.classNames;var d_=FL;c();d();f();var mZ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vl=new WeakMap,Ig=new WeakMap,Ag={},h_=0,$L=function(e){return e&&(e.host||$L(e.parentNode))},gZ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=$L(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)})},yZ=function(e,t,r,n){var i=gZ(t,Array.isArray(e)?e:[e]);Ag[r]||(Ag[r]=new WeakMap);var o=Ag[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(g){if(a.has(g))p(g);else{var w=g.getAttribute(n),v=w!==null&&w!=="false",_=(Vl.get(g)||0)+1,D=(o.get(g)||0)+1;Vl.set(g,_),o.set(g,D),s.push(g),_===1&&v&&Ig.set(g,!0),D===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}})};return p(t),a.clear(),h_++,function(){s.forEach(function(h){var g=Vl.get(h)-1,w=o.get(h)-1;Vl.set(h,g),o.set(h,w),g||(Ig.has(h)||h.removeAttribute(n),Ig.delete(h)),w||h.removeAttribute(r)}),h_--,h_||(Vl=new WeakMap,Vl=new WeakMap,Ig=new WeakMap,Ag={})}},UL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||mZ(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),yZ(n,i,r,"aria-hidden")):function(){return null}};var VL="Dialog",[BL,Rxe]=Ya(VL),[vZ,zo]=BL(VL),wZ=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]=_5({prop:n,defaultProp:i,onChange:o});return(0,ye.createElement)(vZ,{scope:t,triggerRef:a,contentRef:u,contentId:Sg(),titleId:Sg(),descriptionId:Sg(),open:l,onOpenChange:p,onOpenToggle:(0,ye.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var jL="DialogPortal",[xZ,zL]=BL(jL,{forceMount:void 0}),bZ=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=zo(jL,t);return(0,ye.createElement)(xZ,{scope:t,forceMount:r},ye.Children.map(n,s=>(0,ye.createElement)(Bc,{present:r||o.open},(0,ye.createElement)(Jh,{asChild:!0,container:i},s))))},p_="DialogOverlay",EZ=(0,ye.forwardRef)((e,t)=>{let r=zL(p_,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zo(p_,e.__scopeDialog);return o.modal?(0,ye.createElement)(Bc,{present:n||o.open},(0,ye.createElement)(_Z,Ce({},i,{ref:t}))):null}),_Z=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zo(p_,r);return(0,ye.createElement)(d_,{as:co,allowPinchZoom:!0,shards:[i.contentRef]},(0,ye.createElement)(rr.div,Ce({"data-state":KL(i.open)},n,{ref:t,style:K({pointerEvents:"auto"},n.style)})))}),Bl="DialogContent",SZ=(0,ye.forwardRef)((e,t)=>{let r=zL(Bl,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zo(Bl,e.__scopeDialog);return(0,ye.createElement)(Bc,{present:n||o.open},o.modal?(0,ye.createElement)(CZ,Ce({},i,{ref:t})):(0,ye.createElement)(TZ,Ce({},i,{ref:t})))}),CZ=(0,ye.forwardRef)((e,t)=>{let r=zo(Bl,e.__scopeDialog),n=(0,ye.useRef)(null),i=mr(t,r.contentRef,n);return(0,ye.useEffect)(()=>{let o=n.current;if(o)return UL(o)},[]),(0,ye.createElement)(HL,Ce({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pr(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:pr(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:pr(e.onFocusOutside,o=>o.preventDefault())}))}),TZ=(0,ye.forwardRef)((e,t)=>{let r=zo(Bl,e.__scopeDialog),n=(0,ye.useRef)(!1);return(0,ye.createElement)(HL,Ce({},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()}}))}),HL=(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=zo(Bl,r),u=(0,ye.useRef)(null),l=mr(t,u);return xL(),(0,ye.createElement)(ye.Fragment,null,(0,ye.createElement)(gL,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,ye.createElement)(_1,Ce({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":KL(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),PZ="DialogTitle";var DZ="DialogClose",IZ=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zo(DZ,r);return(0,ye.createElement)(rr.button,Ce({type:"button"},n,{ref:t,onClick:pr(e.onClick,()=>i.onOpenChange(!1))}))});function KL(e){return e?"open":"closed"}var AZ="DialogTitleWarning",[Nxe,Mxe]=l5(AZ,{contentName:Bl,titleName:PZ,docsSlug:"dialog"});var qL=wZ;var WL=bZ,GL=EZ,YL=SZ;var XL=IZ;var jl=Y(ae(),1);c();d();f();var RZ=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),y.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"})),JL=RZ;c();d();f();var NZ=e=>y.createElement("svg",ue(K({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),QL=NZ;c();d();f();var ZL=Y(ae(),1);var MZ=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"flex justify-center"},y.createElement(lo,{className:"h-24 w-24"})),y.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),e7=(0,ZL.memo)(MZ);var LZ=({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)}),FZ=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:u,autoClose:l,copy:p,credential_types:h})=>{let{isOpen:g,onOpenChange:w,processing:v,stage:_,setStage:D,canGoBack:C,setOptions:I,theme:P}=Sn(LZ,Ga),R=Wa();(0,jl.useEffect)(()=>{I({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:u,handleVerify:a,autoClose:l,copy:p,theme:i,credential_types:h},"props")},[p,t,r,i,o,l,u,I,a,n,s,h]);let U=(0,jl.useMemo)(()=>{switch(_){case"WORLD_ID":return fL;case"SUCCESS":return U5;case"ERROR":return a5;case"PRIVACY":return F5;case"HOST_APP_VERIFICATION":return e7;default:throw new Error("Invalid IDKitStage.")}},[_]);return y.createElement(qL,{open:g,onOpenChange:w},e==null?void 0:e({open:()=>w(!0)}),y.createElement(WL,{forceMount:!0},y.createElement(jl.Fragment,null,y.createElement(zu,null,g&&y.createElement(n5.div,{mode:"open",id:"idkit-widget"},y.createElement(i5,null),y.createElement("div",{id:"modal",className:yi(P=="dark"&&"dark","fixed z-10 font-sans")},y.createElement(GL,{asChild:!0},y.createElement(Ln.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),y.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},y.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},y.createElement(YL,{asChild:!0},y.createElement(Ln.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-2xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-2xl"},y.createElement(R5,null,y.createElement(N5,{className:"flex justify-center"}),y.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},y.createElement("button",{onClick:()=>D("WORLD_ID"),disabled:!C,className:yi(!C&&"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")},y.createElement(QL,{className:"w-4"})),y.createElement(XL,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},y.createElement(Gh,{className:"h-5 w-5"}))),y.createElement("div",{className:"relative"},y.createElement(Ln.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:v?"hidden":"visible"},transition:{layout:{duration:.15}}},y.createElement(U,null)),y.createElement(zu,null,v&&y.createElement(Ln.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},y.createElement(lo,{className:"h-24 w-24"})))),y.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-2xl"},y.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},y.createElement("span",null,"Verified with"),y.createElement("a",{href:"https://worldcoin.org/world-id",target:"_blank",rel:"noreferrer"},y.createElement(JL,{className:"text-0d151d h-4 dark:text-white"}))),_!="PRIVACY"?y.createElement("button",{onClick:()=>D("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):y.createElement("a",{target:"_blank",href:"https://docs.worldcoin.org/privacy",className:"text-9eafc0 dark:text-9eafc0 text-sm hover:underline",rel:"noreferrer"},"Learn More \u2192")))))))))))))},t7=FZ;var n7=(0,r7.memo)(t7);var m_,zl=!1,$Z=e=>{if(zl)throw new Error("IDKit is already initialized");if(!e.app_id)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(!zl){let r=document.createElement("div");document.body.appendChild(r),m_=(0,i7.createRoot)(r),m_.render(y.createElement(n7,K({},e))),b2(e.enableTelemetry),zl=!0}}catch(r){console.error("Error while rendering IDKit",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},UZ=e=>{if(!zl)throw new Error("IDKit is not initialized");Sn.getState().setOptions(e,"props")},VZ=()=>new Promise((e,t)=>{if(!zl)return t("IDKitWidget is not initialized");Sn.getState().addSuccessCallback(e,"manual"),Sn.setState({open:!0})}),BZ=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),m_.unmount(),zl=!1,Sn.destroy()};return w_(jZ);})();
|
|
79
|
+
`)},IJ=0,Au=[];function YN(e){var t=bt.useRef([]),r=bt.useRef([0,0]),n=bt.useRef(),i=bt.useState(IJ++)[0],o=bt.useState(function(){return ed()})[0],s=bt.useRef(e);bt.useEffect(function(){s.current=e},[e]),bt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=NN([e.lockRef.current],(e.shards||[]).map(GN),!0).filter(Boolean);return _.forEach(function(A){return A.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=bt.useCallback(function(_,A){if("touches"in _&&_.touches.length===2)return!s.current.allowPinchZoom;var C=og(_),P=r.current,D="deltaX"in _?_.deltaX:P[0]-C[0],O="deltaY"in _?_.deltaY:P[1]-C[1],$,j=_.target,F=Math.abs(D)>Math.abs(O)?"h":"v";if("touches"in _&&F==="h"&&j.type==="range")return!1;var U=JE(F,j);if(!U)return!0;if(U?$=F:($=F==="v"?"h":"v",U=JE(F,j)),!U)return!1;if(!n.current&&"changedTouches"in _&&(D||O)&&(n.current=$),!$)return!0;var W=n.current||$;return qN(W,A,_,W==="h"?D:O,!0)},[]),l=bt.useCallback(function(_){var A=_;if(!(!Au.length||Au[Au.length-1]!==o)){var C="deltaY"in A?WN(A):og(A),P=t.current.filter(function($){return $.name===A.type&&$.target===A.target&&DJ($.delta,C)})[0];if(P&&P.should){A.cancelable&&A.preventDefault();return}if(!P){var D=(s.current.shards||[]).map(GN).filter(Boolean).filter(function($){return $.contains(A.target)}),O=D.length>0?a(A,D[0]):!s.current.noIsolation;O&&A.cancelable&&A.preventDefault()}}},[]),u=bt.useCallback(function(_,A,C,P){var D={name:_,delta:A,target:C,should:P};t.current.push(D),setTimeout(function(){t.current=t.current.filter(function(O){return O!==D})},1)},[]),h=bt.useCallback(function(_){r.current=og(_),n.current=void 0},[]),m=bt.useCallback(function(_){u(_.type,WN(_),_.target,a(_,e.lockRef.current))},[]),g=bt.useCallback(function(_){u(_.type,og(_),_.target,a(_,e.lockRef.current))},[]);bt.useEffect(function(){return Au.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",l,ma),document.addEventListener("touchmove",l,ma),document.addEventListener("touchstart",h,ma),function(){Au=Au.filter(function(_){return _!==o}),document.removeEventListener("wheel",l,ma),document.removeEventListener("touchmove",l,ma),document.removeEventListener("touchstart",h,ma)}},[]);var x=e.removeScrollBar,E=e.inert;return bt.createElement(bt.Fragment,null,E?bt.createElement(o,{styles:PJ(i)}):null,x?bt.createElement(YE,{gapMode:"margin"}):null)}var XN=zE(ng,YN);var JN=sg.forwardRef(function(e,t){return sg.createElement(Zf,bn({},e,{ref:t,sideCar:XN}))});JN.classNames=Zf.classNames;var QE=JN;c();d();f();var RJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ou=new WeakMap,ag=new WeakMap,lg={},ZE=0,QN=function(e){return e&&(e.host||QN(e.parentNode))},AJ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=QN(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)})},OJ=function(e,t,r,n){var i=AJ(t,Array.isArray(e)?e:[e]);lg[r]||(lg[r]=new WeakMap);var o=lg[r],s=[],a=new Set,l=new Set(i),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};i.forEach(u);var h=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(g){if(a.has(g))h(g);else{var x=g.getAttribute(n),E=x!==null&&x!=="false",_=(Ou.get(g)||0)+1,A=(o.get(g)||0)+1;Ou.set(g,_),o.set(g,A),s.push(g),_===1&&E&&ag.set(g,!0),A===1&&g.setAttribute(r,"true"),E||g.setAttribute(n,"true")}})};return h(t),a.clear(),ZE++,function(){s.forEach(function(m){var g=Ou.get(m)-1,x=o.get(m)-1;Ou.set(m,g),o.set(m,x),g||(ag.has(m)||m.removeAttribute(n),ag.delete(m)),x||m.removeAttribute(r)}),ZE--,ZE||(Ou=new WeakMap,Ou=new WeakMap,ag=new WeakMap,lg={})}},ZN=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||RJ(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),OJ(n,i,r,"aria-hidden")):function(){return null}};var ek="Dialog",[tk,d1e]=Ja(ek),[MJ,qo]=tk(ek),NJ=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,ye.useRef)(null),l=(0,ye.useRef)(null),[u=!1,h]=u5({prop:n,defaultProp:i,onChange:o});return(0,ye.createElement)(MJ,{scope:t,triggerRef:a,contentRef:l,contentId:Qm(),titleId:Qm(),descriptionId:Qm(),open:u,onOpenChange:h,onOpenToggle:(0,ye.useCallback)(()=>h(m=>!m),[h]),modal:s},r)};var rk="DialogPortal",[kJ,nk]=tk(rk,{forceMount:void 0}),LJ=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=qo(rk,t);return(0,ye.createElement)(kJ,{scope:t,forceMount:r},ye.Children.map(n,s=>(0,ye.createElement)(Mc,{present:r||o.open},(0,ye.createElement)(Vh,{asChild:!0,container:i},s))))},e_="DialogOverlay",FJ=(0,ye.forwardRef)((e,t)=>{let r=nk(e_,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=ge(s,["forceMount"]),o=qo(e_,e.__scopeDialog);return o.modal?(0,ye.createElement)(Mc,{present:n||o.open},(0,ye.createElement)($J,Te({},i,{ref:t}))):null}),$J=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=ge(o,["__scopeDialog"]),i=qo(e_,r);return(0,ye.createElement)(QE,{as:bo,allowPinchZoom:!0,shards:[i.contentRef]},(0,ye.createElement)(sr.div,Te({"data-state":ok(i.open)},n,{ref:t,style:K({pointerEvents:"auto"},n.style)})))}),Mu="DialogContent",UJ=(0,ye.forwardRef)((e,t)=>{let r=nk(Mu,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=ge(s,["forceMount"]),o=qo(Mu,e.__scopeDialog);return(0,ye.createElement)(Mc,{present:n||o.open},o.modal?(0,ye.createElement)(VJ,Te({},i,{ref:t})):(0,ye.createElement)(BJ,Te({},i,{ref:t})))}),VJ=(0,ye.forwardRef)((e,t)=>{let r=qo(Mu,e.__scopeDialog),n=(0,ye.useRef)(null),i=yr(t,r.contentRef,n);return(0,ye.useEffect)(()=>{let o=n.current;if(o)return ZN(o)},[]),(0,ye.createElement)(ik,Te({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gr(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:gr(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:gr(e.onFocusOutside,o=>o.preventDefault())}))}),BJ=(0,ye.forwardRef)((e,t)=>{let r=qo(Mu,e.__scopeDialog),n=(0,ye.useRef)(!1);return(0,ye.createElement)(ik,Te({},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()}}))}),ik=(0,ye.forwardRef)((e,t)=>{let h=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o}=h,s=ge(h,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=qo(Mu,r),l=(0,ye.useRef)(null),u=yr(t,l);return sN(),(0,ye.createElement)(ye.Fragment,null,(0,ye.createElement)(rN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,ye.createElement)(t1,Te({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ok(a.open)},s,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),jJ="DialogTitle";var zJ="DialogClose",HJ=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=ge(o,["__scopeDialog"]),i=qo(zJ,r);return(0,ye.createElement)(sr.button,Te({type:"button"},n,{ref:t,onClick:gr(e.onClick,()=>i.onOpenChange(!1))}))});function ok(e){return e?"open":"closed"}var KJ="DialogTitleWarning",[h1e,p1e]=Y6(KJ,{contentName:Mu,titleName:jJ,docsSlug:"dialog"});var sk=NJ;var ak=LJ,lk=FJ,uk=UJ;var ck=HJ;var Nu=Z(ae(),1);c();d();f();var WJ=e=>y.createElement("svg",de(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),y.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"})),fk=WJ;c();d();f();var GJ=e=>y.createElement("svg",de(K({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),dk=GJ;c();d();f();var hk=Z(ae(),1);var YJ=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"flex justify-center"},y.createElement(xo,{className:"h-24 w-24"})),y.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),pk=(0,hk.memo)(YJ);var JJ=({copy:e,open:t,processing:r,onOpenChange:n,stage:i,setStage:o,theme:s,computed:a,setOptions:l})=>({copy:e,stage:i,theme:s,setStage:o,processing:r,setOptions:l,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(i)}),QJ=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:l,autoClose:u,copy:h,credential_types:m})=>{let{isOpen:g,onOpenChange:x,processing:E,stage:_,setStage:A,canGoBack:C,setOptions:P,theme:D}=_n(JJ,Xa),O=Ya();(0,Nu.useEffect)(()=>{P({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:l,handleVerify:a,autoClose:u,copy:h,theme:i,credential_types:m},"props")},[h,t,r,i,o,u,l,P,a,n,s,m]);let $=(0,Nu.useMemo)(()=>{switch(_){case"WORLD_ID":return JM;case"SUCCESS":return C5;case"ERROR":return W6;case"PRIVACY":return _5;case"HOST_APP_VERIFICATION":return pk;default:throw new Error("Invalid IDKitStage.")}},[_]);return y.createElement(sk,{open:g,onOpenChange:x},e==null?void 0:e({open:()=>x(!0)}),y.createElement(ak,{forceMount:!0},y.createElement(Nu.Fragment,null,y.createElement(zl,null,g&&y.createElement(z6.div,{mode:"open",id:"idkit-widget"},y.createElement(H6,null),y.createElement("div",{id:"modal",className:xi(D=="dark"&&"dark","fixed z-10 font-sans")},y.createElement(lk,{asChild:!0},y.createElement(kn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),y.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},y.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},y.createElement(uk,{asChild:!0},y.createElement(kn.div,{layout:O=="mobile"?"position":!0,exit:O=="mobile"?"initMob":"init",initial:O=="mobile"?"initMob":"init",animate:O=="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-2xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-2xl"},y.createElement(v5,null,y.createElement(w5,{className:"flex justify-center"}),y.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},y.createElement("button",{onClick:()=>A("WORLD_ID"),disabled:!C,className:xi(!C&&"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")},y.createElement(dk,{className:"w-4"})),y.createElement(ck,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},y.createElement(Fh,{className:"h-5 w-5"}))),y.createElement("div",{className:"relative"},y.createElement(kn.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:E?"hidden":"visible"},transition:{layout:{duration:.15}}},y.createElement($,null)),y.createElement(zl,null,E&&y.createElement(kn.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},y.createElement(xo,{className:"h-24 w-24"})))),y.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-2xl"},y.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},y.createElement("span",null,"Verified with"),y.createElement("a",{href:"https://worldcoin.org/world-id",target:"_blank",rel:"noreferrer"},y.createElement(fk,{className:"text-0d151d h-4 dark:text-white"}))),_!="PRIVACY"?y.createElement("button",{onClick:()=>A("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):y.createElement("a",{target:"_blank",href:"https://docs.worldcoin.org/privacy",className:"text-9eafc0 dark:text-9eafc0 text-sm hover:underline",rel:"noreferrer"},"Learn More \u2192")))))))))))))},mk=QJ;var yk=(0,gk.memo)(mk);var t_,ku=!1,ZJ=e=>{if(ku)throw new Error("IDKit is already initialized");if(!e.app_id)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(!ku){let r=document.createElement("div");document.body.appendChild(r),t_=(0,vk.createRoot)(r),t_.render(y.createElement(yk,K({},e))),a2(e.enableTelemetry),ku=!0}}catch(r){console.error("Error while rendering IDKit",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},eQ=e=>{if(!ku)throw new Error("IDKit is not initialized");_n.getState().setOptions(e,"props")},tQ=()=>new Promise((e,t)=>{if(!ku)return t("IDKitWidget is not initialized");_n.getState().addSuccessCallback(e,"manual"),_n.setState({open:!0})}),rQ=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),t_.unmount(),ku=!1,_n.destroy()};return o_(nQ);})();
|
|
80
80
|
/*!
|
|
81
81
|
* The buffer module from node.js, for the browser.
|
|
82
82
|
*
|