@worldcoin/idkit 0.3.1 → 0.3.2
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/index.css +1934 -2
- package/package.json +1 -1
- package/build/components/AboutWorldID.d.ts +0 -6
- package/build/components/Button.d.ts +0 -3
- package/build/components/CountryCodeSelect.d.ts +0 -6
- package/build/components/Frame.d.ts +0 -4
- package/build/components/IDKitWidget/BaseWidget.d.ts +0 -4
- package/build/components/IDKitWidget/States/AboutState.d.ts +0 -2
- package/build/components/IDKitWidget/States/EnterPhoneState.d.ts +0 -2
- package/build/components/IDKitWidget/States/ErrorState.d.ts +0 -4
- package/build/components/IDKitWidget/States/HostAppVerificationState.d.ts +0 -7
- package/build/components/IDKitWidget/States/PrivacyState.d.ts +0 -2
- package/build/components/IDKitWidget/States/SelectMethodState.d.ts +0 -2
- package/build/components/IDKitWidget/States/SuccessState.d.ts +0 -2
- package/build/components/IDKitWidget/States/VerifyCodeState.d.ts +0 -2
- package/build/components/IDKitWidget/States/WorldID/QRState.d.ts +0 -11
- package/build/components/IDKitWidget/States/WorldIDState.d.ts +0 -2
- package/build/components/IDKitWidget/index.d.ts +0 -3
- package/build/components/Icons/ArrowLongLeftIcon.d.ts +0 -3
- package/build/components/Icons/CheckIcon.d.ts +0 -3
- package/build/components/Icons/ChevronDownIcon.d.ts +0 -3
- package/build/components/Icons/DevicePhoneMobileIcon.d.ts +0 -3
- package/build/components/Icons/HumanIcon.d.ts +0 -3
- package/build/components/Icons/InfoIcon.d.ts +0 -3
- package/build/components/Icons/LoadingIcon.d.ts +0 -4
- package/build/components/Icons/LockIcon.d.ts +0 -3
- package/build/components/Icons/QuestionMarkIcon.d.ts +0 -4
- package/build/components/Icons/WorldIDQR.d.ts +0 -4
- package/build/components/Icons/WorldIDWordmark.d.ts +0 -3
- package/build/components/Icons/WorldcoinIcon.d.ts +0 -3
- package/build/components/Icons/WorldcoinLogomark.d.ts +0 -3
- package/build/components/Icons/XMarkIcon.d.ts +0 -3
- package/build/components/PhoneInput.d.ts +0 -6
- package/build/components/QRCode.d.ts +0 -6
- package/build/components/ResendButton.d.ts +0 -3
- package/build/components/SMSCodeInput.d.ts +0 -6
- package/build/components/WorldIDIcon.d.ts +0 -7
- package/build/hooks/useIDKit.d.ts +0 -7
- package/build/hooks/useMedia.d.ts +0 -2
- package/build/idkit-js.js +0 -181
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -9
- package/build/index.js.map +0 -7
- package/build/lib/hashing.d.ts +0 -37
- package/build/lib/qr.d.ts +0 -4
- package/build/lib/telemetry.d.ts +0 -6
- package/build/lib/utils.d.ts +0 -5
- package/build/services/phone.d.ts +0 -18
- package/build/services/walletconnect.d.ts +0 -15
- package/build/store/idkit.d.ts +0 -39
- package/build/tsconfig.tsbuildinfo +0 -1
- package/build/types/config.d.ts +0 -36
- package/build/types/index.d.ts +0 -53
- package/build/types/orb.d.ts +0 -21
- package/build/vanilla.d.ts +0 -12
package/build/idkit-js.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
var IDKit=(()=>{var OB=Object.create;var of=Object.defineProperty,DB=Object.defineProperties,IB=Object.getOwnPropertyDescriptor,AB=Object.getOwnPropertyDescriptors,MB=Object.getOwnPropertyNames,Vh=Object.getOwnPropertySymbols,RB=Object.getPrototypeOf,c1=Object.prototype.hasOwnProperty,xS=Object.prototype.propertyIsEnumerable;var _S=(e,t,r)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))c1.call(t,r)&&_S(e,r,t[r]);if(Vh)for(var r of Vh(t))xS.call(t,r)&&_S(e,r,t[r]);return e},ve=(e,t)=>DB(e,AB(t));var ES=(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 Pe=(e,t)=>{var r={};for(var n in e)c1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vh)for(var n of Vh(e))t.indexOf(n)<0&&xS.call(e,n)&&(r[n]=e[n]);return r};var xl=(e,t)=>()=>(e&&(t=e(e=0)),t);var _e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hr=(e,t)=>{for(var r in t)of(e,r,{get:t[r],enumerable:!0})},zh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of MB(t))!c1.call(e,o)&&o!==r&&of(e,o,{get:()=>t[o],enumerable:!(n=IB(t,o))||n.enumerable});return e},br=(e,t,r)=>(zh(e,t,"default"),r&&zh(r,t,"default")),ue=(e,t,r)=>(r=e!=null?OB(RB(e)):{},zh(t||!e||!e.__esModule?of(r,"default",{value:e,enumerable:!0}):r,e)),SS=e=>zh(of({},"__esModule",{value:!0}),e);var NB,P,c=xl(()=>{NB="production",P={MODE:NB}});function DS(){d1=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Ko[t]=e[t],io[e.charCodeAt(t)]=t;io["-".charCodeAt(0)]=62,io["_".charCodeAt(0)]=63}function LB(e){d1||DS();var t,r,n,o,i,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new kB(a*3/4-i),n=i>0?a-4:a;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=io[e.charCodeAt(t)]<<18|io[e.charCodeAt(t+1)]<<12|io[e.charCodeAt(t+2)]<<6|io[e.charCodeAt(t+3)],s[l++]=o>>16&255,s[l++]=o>>8&255,s[l++]=o&255;return i===2?(o=io[e.charCodeAt(t)]<<2|io[e.charCodeAt(t+1)]>>4,s[l++]=o&255):i===1&&(o=io[e.charCodeAt(t)]<<10|io[e.charCodeAt(t+1)]<<4|io[e.charCodeAt(t+2)]>>2,s[l++]=o>>8&255,s[l++]=o&255),s}function FB(e){return Ko[e>>18&63]+Ko[e>>12&63]+Ko[e>>6&63]+Ko[e&63]}function $B(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(FB(n));return o.join("")}function TS(e){d1||DS();for(var t,r=e.length,n=r%3,o="",i=[],s=16383,a=0,l=r-n;a<l;a+=s)i.push($B(e,a,a+s>l?l:a+s));return n===1?(t=e[r-1],o+=Ko[t>>2],o+=Ko[t<<4&63],o+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],o+=Ko[t>>10],o+=Ko[t>>4&63],o+=Ko[t<<2&63],o+="="),i.push(o),i.join("")}function Hh(){return _.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function gi(e,t){if(Hh()<t)throw new RangeError("Invalid typed array length");return _.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=_.prototype):(e===null&&(e=new _(t)),e.length=t),e}function _(e,t,r){if(!_.TYPED_ARRAY_SUPPORT&&!(this instanceof _))return new _(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return h1(this,e)}return IS(this,e,t,r)}function IS(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?jB(e,t,r,n):typeof t=="string"?BB(e,t,r):VB(e,t)}function AS(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 UB(e,t,r,n){return AS(t),t<=0?gi(e,t):r!==void 0?typeof n=="string"?gi(e,t).fill(r,n):gi(e,t).fill(r):gi(e,t)}function h1(e,t){if(AS(t),e=gi(e,t<0?0:p1(t)|0),!_.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function BB(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!_.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=MS(t,r)|0;e=gi(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function f1(e,t){var r=t.length<0?0:p1(t.length)|0;e=gi(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function jB(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),_.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=_.prototype):e=f1(e,t),e}function VB(e,t){if(qo(t)){var r=p1(t.length)|0;return e=gi(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"||aj(t.length)?gi(e,0):f1(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return f1(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p1(e){if(e>=Hh())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Hh().toString(16)+" bytes");return e|0}function qo(e){return!!(e!=null&&e._isBuffer)}function MS(e,t){if(qo(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 Kh(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return US(e).length;default:if(n)return Kh(e).length;t=(""+t).toLowerCase(),n=!0}}function zB(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 QB(this,t,r);case"utf8":case"utf-8":return kS(this,t,r);case"ascii":return ZB(this,t,r);case"latin1":case"binary":return JB(this,t,r);case"base64":return YB(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ej(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ua(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function RS(e,t,r,n,o){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=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof t=="string"&&(t=_.from(t,n)),qo(t))return t.length===0?-1:PS(e,t,r,n,o);if(typeof t=="number")return t=t&255,_.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):PS(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function PS(e,t,r,n,o){var i=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;i=2,s/=2,a/=2,r/=2}function l(w,v){return i===1?w[v]:w.readUInt16BE(v*i)}var u;if(o){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*i}else h!==-1&&(u-=u-h),h=-1}else for(r+a>s&&(r=s-a),u=r;u>=0;u--){for(var p=!0,y=0;y<a;y++)if(l(e,u+y)!==l(t,y)){p=!1;break}if(p)return u}return-1}function HB(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/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 KB(e,t,r,n){return Wh(Kh(t,e.length-r),e,r,n)}function NS(e,t,r,n){return Wh(ij(t),e,r,n)}function qB(e,t,r,n){return NS(e,t,r,n)}function GB(e,t,r,n){return Wh(US(t),e,r,n)}function WB(e,t,r,n){return Wh(sj(t,e.length-r),e,r,n)}function YB(e,t,r){return t===0&&r===e.length?TS(e):TS(e.slice(t,r))}function kS(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i=e[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var l,u,h,p;switch(a){case 1:i<128&&(s=i);break;case 2:l=e[o+1],(l&192)===128&&(p=(i&31)<<6|l&63,p>127&&(s=p));break;case 3:l=e[o+1],u=e[o+2],(l&192)===128&&(u&192)===128&&(p=(i&15)<<12|(l&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:l=e[o+1],u=e[o+2],h=e[o+3],(l&192)===128&&(u&192)===128&&(h&192)===128&&(p=(i&15)<<18|(l&63)<<12|(u&63)<<6|h&63,p>65535&&p<1114112&&(s=p))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return XB(n)}function XB(e){var t=e.length;if(t<=OS)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=OS));return r}function ZB(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function JB(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function QB(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=oj(e[i]);return o}function ej(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}function Or(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 _n(e,t,r,n,o,i){if(!qo(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function qh(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>(n?o:1-o)*8}function Gh(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>(n?o:3-o)*8&255}function LS(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function FS(e,t,r,n,o){return o||LS(e,t,r,4,34028234663852886e22,-34028234663852886e22),jS(e,t,r,n,23,4),r+4}function $S(e,t,r,n,o){return o||LS(e,t,r,8,17976931348623157e292,-17976931348623157e292),jS(e,t,r,n,52,8),r+8}function rj(e){if(e=nj(e).replace(tj,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function nj(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function oj(e){return e<16?"0"+e.toString(16):e.toString(16)}function Kh(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function ij(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function sj(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function US(e){return LB(rj(e))}function Wh(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function aj(e){return e!==e}function lj(e){return e!=null&&(!!e._isBuffer||BS(e)||uj(e))}function BS(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function uj(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&BS(e.slice(0,0))}function Yh(e,t,r,n,o){var i,s,a=o*8-n-1,l=(1<<a)-1,u=l>>1,h=-7,p=r?o-1:0,y=r?-1:1,w=e[t+p];for(p+=y,i=w&(1<<-h)-1,w>>=-h,h+=a;h>0;i=i*256+e[t+p],p+=y,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=n;h>0;s=s*256+e[t+p],p+=y,h-=8);if(i===0)i=1-u;else{if(i===l)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(w?-1:1)*s*Math.pow(2,i-n)}function jS(e,t,r,n,o,i){var s,a,l,u=i*8-o-1,h=(1<<u)-1,p=h>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:i-1,v=n?1:-1,S=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+p>=1?t+=y/l:t+=y*Math.pow(2,1-p),t*l>=2&&(s++,l/=2),s+p>=h?(a=0,s=h):s+p>=1?(a=(t*l-1)*Math.pow(2,o),s=s+p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[r+w]=a&255,w+=v,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+w]=s&255,w+=v,s/=256,u-=8);e[r+w-v]|=S*128}var Ko,io,kB,d1,OS,tj,VS=xl(()=>{c();d();f();Ko=[],io=[],kB=typeof Uint8Array<"u"?Uint8Array:Array,d1=!1;_.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;_.poolSize=8192;_._augment=function(e){return e.__proto__=_.prototype,e};_.from=function(e,t,r){return IS(null,e,t,r)};_.kMaxLength=Hh();_.TYPED_ARRAY_SUPPORT&&(_.prototype.__proto__=Uint8Array.prototype,_.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&_[Symbol.species]);_.alloc=function(e,t,r){return UB(null,e,t,r)};_.allocUnsafe=function(e){return h1(null,e)};_.allocUnsafeSlow=function(e){return h1(null,e)};_.isBuffer=lj;_.compare=function(t,r){if(!qo(t)||!qo(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,o=r.length,i=0,s=Math.min(n,o);i<s;++i)if(t[i]!==r[i]){n=t[i],o=r[i];break}return n<o?-1:o<n?1:0};_.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};_.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return _.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var o=_.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!qo(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o};_.byteLength=MS;_.prototype._isBuffer=!0;_.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ua(this,r,r+1);return this};_.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ua(this,r,r+3),ua(this,r+1,r+2);return this};_.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ua(this,r,r+7),ua(this,r+1,r+6),ua(this,r+2,r+5),ua(this,r+3,r+4);return this};_.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?kS(this,0,t):zB.apply(this,arguments)};_.prototype.equals=function(t){if(!qo(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:_.compare(this,t)===0};_.prototype.compare=function(t,r,n,o,i){if(!qo(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>t.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===t)return 0;for(var s=i-o,a=n-r,l=Math.min(s,a),u=this.slice(o,i),h=t.slice(r,n),p=0;p<l;++p)if(u[p]!==h[p]){s=u[p],a=h[p];break}return s<a?-1:a<s?1:0};_.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};_.prototype.indexOf=function(t,r,n){return RS(this,t,r,n,!0)};_.prototype.lastIndexOf=function(t,r,n){return RS(this,t,r,n,!1)};_.prototype.write=function(t,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var s=!1;;)switch(o){case"hex":return HB(this,t,r,n);case"utf8":case"utf-8":return KB(this,t,r,n);case"ascii":return NS(this,t,r,n);case"latin1":case"binary":return qB(this,t,r,n);case"base64":return GB(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return WB(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};OS=4096;_.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var o;if(_.TYPED_ARRAY_SUPPORT)o=this.subarray(t,r),o.__proto__=_.prototype;else{var i=r-t;o=new _(i,void 0);for(var s=0;s<i;++s)o[s]=this[s+t]}return o};_.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Or(t,r,this.length);for(var o=this[t],i=1,s=0;++s<r&&(i*=256);)o+=this[t+s]*i;return o};_.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Or(t,r,this.length);for(var o=this[t+--r],i=1;r>0&&(i*=256);)o+=this[t+--r]*i;return o};_.prototype.readUInt8=function(t,r){return r||Or(t,1,this.length),this[t]};_.prototype.readUInt16LE=function(t,r){return r||Or(t,2,this.length),this[t]|this[t+1]<<8};_.prototype.readUInt16BE=function(t,r){return r||Or(t,2,this.length),this[t]<<8|this[t+1]};_.prototype.readUInt32LE=function(t,r){return r||Or(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};_.prototype.readUInt32BE=function(t,r){return r||Or(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};_.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Or(t,r,this.length);for(var o=this[t],i=1,s=0;++s<r&&(i*=256);)o+=this[t+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};_.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Or(t,r,this.length);for(var o=r,i=1,s=this[t+--o];o>0&&(i*=256);)s+=this[t+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};_.prototype.readInt8=function(t,r){return r||Or(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};_.prototype.readInt16LE=function(t,r){r||Or(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};_.prototype.readInt16BE=function(t,r){r||Or(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};_.prototype.readInt32LE=function(t,r){return r||Or(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};_.prototype.readInt32BE=function(t,r){return r||Or(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};_.prototype.readFloatLE=function(t,r){return r||Or(t,4,this.length),Yh(this,t,!0,23,4)};_.prototype.readFloatBE=function(t,r){return r||Or(t,4,this.length),Yh(this,t,!1,23,4)};_.prototype.readDoubleLE=function(t,r){return r||Or(t,8,this.length),Yh(this,t,!0,52,8)};_.prototype.readDoubleBE=function(t,r){return r||Or(t,8,this.length),Yh(this,t,!1,52,8)};_.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r|0,n=n|0,!o){var i=Math.pow(2,8*n)-1;_n(this,t,r,n,i,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};_.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r|0,n=n|0,!o){var i=Math.pow(2,8*n)-1;_n(this,t,r,n,i,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};_.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,1,255,0),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};_.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):qh(this,t,r,!0),r+2};_.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):qh(this,t,r,!1),r+2};_.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Gh(this,t,r,!0),r+4};_.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Gh(this,t,r,!1),r+4};_.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);_n(this,t,r,n,i-1,-i)}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};_.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);_n(this,t,r,n,i-1,-i)}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};_.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,1,127,-128),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};_.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):qh(this,t,r,!0),r+2};_.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):qh(this,t,r,!1),r+2};_.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,4,2147483647,-2147483648),_.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Gh(this,t,r,!0),r+4};_.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||_n(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),_.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Gh(this,t,r,!1),r+4};_.prototype.writeFloatLE=function(t,r,n){return FS(this,t,r,!0,n)};_.prototype.writeFloatBE=function(t,r,n){return FS(this,t,r,!1,n)};_.prototype.writeDoubleLE=function(t,r,n){return $S(this,t,r,!0,n)};_.prototype.writeDoubleBE=function(t,r,n){return $S(this,t,r,!1,n)};_.prototype.copy=function(t,r,n,o){if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===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(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);var i=o-n,s;if(this===t&&n<r&&r<o)for(s=i-1;s>=0;--s)t[s+r]=this[s+n];else if(i<1e3||!_.TYPED_ARRAY_SUPPORT)for(s=0;s<i;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r);return i};_.prototype.fill=function(t,r,n,o){if(typeof t=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),t.length===1){var i=t.charCodeAt(0);i<256&&(t=i)}if(o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!_.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}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=qo(t)?t:Kh(new _(t,o).toString()),l=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%l]}return this};tj=/[^+\/0-9A-Za-z-_]/g});var f=xl(()=>{VS()});var QS=_e(ft=>{"use strict";c();d();f();var sf=Symbol.for("react.element"),cj=Symbol.for("react.portal"),fj=Symbol.for("react.fragment"),dj=Symbol.for("react.strict_mode"),hj=Symbol.for("react.profiler"),pj=Symbol.for("react.provider"),mj=Symbol.for("react.context"),gj=Symbol.for("react.forward_ref"),yj=Symbol.for("react.suspense"),vj=Symbol.for("react.memo"),wj=Symbol.for("react.lazy"),zS=Symbol.iterator;function bj(e){return e===null||typeof e!="object"?null:(e=zS&&e[zS]||e["@@iterator"],typeof e=="function"?e:null)}var qS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GS=Object.assign,WS={};function El(e,t,r){this.props=e,this.context=t,this.refs=WS,this.updater=r||qS}El.prototype.isReactComponent={};El.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")};El.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function YS(){}YS.prototype=El.prototype;function g1(e,t,r){this.props=e,this.context=t,this.refs=WS,this.updater=r||qS}var y1=g1.prototype=new YS;y1.constructor=g1;GS(y1,El.prototype);y1.isPureReactComponent=!0;var HS=Array.isArray,XS=Object.prototype.hasOwnProperty,v1={current:null},ZS={key:!0,ref:!0,__self:!0,__source:!0};function JS(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)XS.call(t,n)&&!ZS.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:sf,type:e,key:i,ref:s,props:o,_owner:v1.current}}function _j(e,t){return{$$typeof:sf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function w1(e){return typeof e=="object"&&e!==null&&e.$$typeof===sf}function xj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var KS=/\/+/g;function m1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xj(""+e.key):t.toString(36)}function Zh(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case sf:case cj:s=!0}}if(s)return s=e,o=o(s),e=n===""?"."+m1(s,0):n,HS(o)?(r="",e!=null&&(r=e.replace(KS,"$&/")+"/"),Zh(o,t,r,"",function(u){return u})):o!=null&&(w1(o)&&(o=_j(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(KS,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=n===""?".":n+":",HS(e))for(var a=0;a<e.length;a++){i=e[a];var l=n+m1(i,a);s+=Zh(i,t,r,l,o)}else if(l=bj(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=n+m1(i,a++),s+=Zh(i,t,r,l,o);else if(i==="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 Xh(e,t,r){if(e==null)return e;var n=[],o=0;return Zh(e,n,"","",function(i){return t.call(r,i,o++)}),n}function Ej(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 on={current:null},Jh={transition:null},Sj={ReactCurrentDispatcher:on,ReactCurrentBatchConfig:Jh,ReactCurrentOwner:v1};ft.Children={map:Xh,forEach:function(e,t,r){Xh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Xh(e,function(){t++}),t},toArray:function(e){return Xh(e,function(t){return t})||[]},only:function(e){if(!w1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ft.Component=El;ft.Fragment=fj;ft.Profiler=hj;ft.PureComponent=g1;ft.StrictMode=dj;ft.Suspense=yj;ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sj;ft.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=GS({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=v1.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)XS.call(t,l)&&!ZS.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:sf,type:e.type,key:o,ref:i,props:n,_owner:s}};ft.createContext=function(e){return e={$$typeof:mj,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pj,_context:e},e.Consumer=e};ft.createElement=JS;ft.createFactory=function(e){var t=JS.bind(null,e);return t.type=e,t};ft.createRef=function(){return{current:null}};ft.forwardRef=function(e){return{$$typeof:gj,render:e}};ft.isValidElement=w1;ft.lazy=function(e){return{$$typeof:wj,_payload:{_status:-1,_result:e},_init:Ej}};ft.memo=function(e,t){return{$$typeof:vj,type:e,compare:t===void 0?null:t}};ft.startTransition=function(e){var t=Jh.transition;Jh.transition={};try{e()}finally{Jh.transition=t}};ft.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ft.useCallback=function(e,t){return on.current.useCallback(e,t)};ft.useContext=function(e){return on.current.useContext(e)};ft.useDebugValue=function(){};ft.useDeferredValue=function(e){return on.current.useDeferredValue(e)};ft.useEffect=function(e,t){return on.current.useEffect(e,t)};ft.useId=function(){return on.current.useId()};ft.useImperativeHandle=function(e,t,r){return on.current.useImperativeHandle(e,t,r)};ft.useInsertionEffect=function(e,t){return on.current.useInsertionEffect(e,t)};ft.useLayoutEffect=function(e,t){return on.current.useLayoutEffect(e,t)};ft.useMemo=function(e,t){return on.current.useMemo(e,t)};ft.useReducer=function(e,t,r){return on.current.useReducer(e,t,r)};ft.useRef=function(e){return on.current.useRef(e)};ft.useState=function(e){return on.current.useState(e)};ft.useSyncExternalStore=function(e,t,r){return on.current.useSyncExternalStore(e,t,r)};ft.useTransition=function(){return on.current.useTransition()};ft.version="18.2.0"});var we=_e((gle,e6)=>{"use strict";c();d();f();e6.exports=QS()});var g,d=xl(()=>{g=ue(we(),1)});var o6=_e(n6=>{"use strict";c();d();f();var Sl=we();function Cj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tj=typeof Object.is=="function"?Object.is:Cj,Pj=Sl.useState,Oj=Sl.useEffect,Dj=Sl.useLayoutEffect,Ij=Sl.useDebugValue;function Aj(e,t){var r=t(),n=Pj({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return Dj(function(){o.value=r,o.getSnapshot=t,b1(o)&&i({inst:o})},[e,r,t]),Oj(function(){return b1(o)&&i({inst:o}),e(function(){b1(o)&&i({inst:o})})},[e]),Ij(r),r}function b1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Tj(e,r)}catch(n){return!0}}function Mj(e,t){return t()}var Rj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Mj:Aj;n6.useSyncExternalStore=Sl.useSyncExternalStore!==void 0?Sl.useSyncExternalStore:Rj});var s6=_e((ble,i6)=>{"use strict";c();d();f();i6.exports=o6()});var l6=_e(a6=>{"use strict";c();d();f();var Qh=we(),Nj=s6();function kj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lj=typeof Object.is=="function"?Object.is:kj,Fj=Nj.useSyncExternalStore,$j=Qh.useRef,Uj=Qh.useEffect,Bj=Qh.useMemo,jj=Qh.useDebugValue;a6.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=$j(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Bj(function(){function l(w){if(!u){if(u=!0,h=w,w=n(w),o!==void 0&&s.hasValue){var v=s.value;if(o(v,w))return p=v}return p=w}if(v=p,Lj(h,w))return v;var S=n(w);return o!==void 0&&o(v,S)?v:(h=w,p=S)}var u=!1,h,p,y=r===void 0?null:r;return[function(){return l(t())},y===null?void 0:function(){return l(y())}]},[t,r,n,o]);var a=Fj(e,i[0],i[1]);return Uj(function(){s.hasValue=!0,s.value=a},[a]),jj(a),a}});var c6=_e((xle,u6)=>{"use strict";c();d();f();u6.exports=l6()});var p6=_e((Tle,tp)=>{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 o=!r&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i?n=globalThis:o&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof tp=="object"&&tp.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],p=[4,1024,262144,67108864],y=[1,256,65536,16777216],w=[6,1536,393216,100663296],v=[0,8,16,24],S=[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],I=[224,256,384,512],T=[128,256],O=["hex","buffer","arrayBuffer","array","digest"],M={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(D){return Object.prototype.toString.call(D)==="[object Array]"}),l&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(D){return typeof D=="object"&&D.buffer&&D.buffer.constructor===ArrayBuffer});for(var L=function(D,Y,ne){return function(ae){return new x(D,Y,D).update(ae)[ne]()}},G=function(D,Y,ne){return function(ae,he){return new x(D,Y,he).update(ae)[ne]()}},J=function(D,Y,ne){return function(ae,he,Z,ee){return m["cshake"+D].update(ae,he,Z,ee)[ne]()}},V=function(D,Y,ne){return function(ae,he,Z,ee){return m["kmac"+D].update(ae,he,Z,ee)[ne]()}},q=function(D,Y,ne,ae){for(var he=0;he<O.length;++he){var Z=O[he];D[Z]=Y(ne,ae,Z)}return D},ce=function(D,Y){var ne=L(D,Y,"hex");return ne.create=function(){return new x(D,Y,D)},ne.update=function(ae){return ne.create().update(ae)},q(ne,L,D,Y)},me=function(D,Y){var ne=G(D,Y,"hex");return ne.create=function(ae){return new x(D,Y,ae)},ne.update=function(ae,he){return ne.create(he).update(ae)},q(ne,G,D,Y)},fe=function(D,Y){var ne=M[D],ae=J(D,Y,"hex");return ae.create=function(he,Z,ee){return!Z&&!ee?m["shake"+D].create(he):new x(D,Y,he).bytepad([Z,ee],ne)},ae.update=function(he,Z,ee,W){return ae.create(Z,ee,W).update(he)},q(ae,J,D,Y)},X=function(D,Y){var ne=M[D],ae=V(D,Y,"hex");return ae.create=function(he,Z,ee){return new j(D,Y,Z).bytepad(["KMAC",ee],ne).bytepad([he],ne)},ae.update=function(he,Z,ee,W){return ae.create(he,ee,W).update(Z)},q(ae,V,D,Y)},R=[{name:"keccak",padding:y,bits:I,createMethod:ce},{name:"sha3",padding:w,bits:I,createMethod:ce},{name:"shake",padding:h,bits:T,createMethod:me},{name:"cshake",padding:p,bits:T,createMethod:fe},{name:"kmac",padding:p,bits:T,createMethod:X}],m={},b=[],E=0;E<R.length;++E)for(var A=R[E],k=A.bits,B=0;B<k.length;++B){var K=A.name+"_"+k[B];if(b.push(K),m[K]=A.createMethod(k[B],A.padding),A.name!=="sha3"){var U=A.name+k[B];b.push(U),m[U]=m[K]}}function x(D,Y,ne){this.blocks=[],this.s=[],this.padding=Y,this.outputBits=ne,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(D<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ne>>5,this.extraBytes=(ne&31)>>3;for(var ae=0;ae<50;++ae)this.s[ae]=0}x.prototype.update=function(D){if(this.finalized)throw new Error(t);var Y,ne=typeof D;if(ne!=="string"){if(ne==="object"){if(D===null)throw new Error(e);if(l&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!Array.isArray(D)&&(!l||!ArrayBuffer.isView(D)))throw new Error(e)}else throw new Error(e);Y=!0}for(var ae=this.blocks,he=this.byteCount,Z=D.length,ee=this.blockCount,W=0,le=this.s,re,ge;W<Z;){if(this.reset)for(this.reset=!1,ae[0]=this.block,re=1;re<ee+1;++re)ae[re]=0;if(Y)for(re=this.start;W<Z&&re<he;++W)ae[re>>2]|=D[W]<<v[re++&3];else for(re=this.start;W<Z&&re<he;++W)ge=D.charCodeAt(W),ge<128?ae[re>>2]|=ge<<v[re++&3]:ge<2048?(ae[re>>2]|=(192|ge>>6)<<v[re++&3],ae[re>>2]|=(128|ge&63)<<v[re++&3]):ge<55296||ge>=57344?(ae[re>>2]|=(224|ge>>12)<<v[re++&3],ae[re>>2]|=(128|ge>>6&63)<<v[re++&3],ae[re>>2]|=(128|ge&63)<<v[re++&3]):(ge=65536+((ge&1023)<<10|D.charCodeAt(++W)&1023),ae[re>>2]|=(240|ge>>18)<<v[re++&3],ae[re>>2]|=(128|ge>>12&63)<<v[re++&3],ae[re>>2]|=(128|ge>>6&63)<<v[re++&3],ae[re>>2]|=(128|ge&63)<<v[re++&3]);if(this.lastByteIndex=re,re>=he){for(this.start=re-he,this.block=ae[ee],re=0;re<ee;++re)le[re]^=ae[re];ie(le),this.reset=!0}else this.start=re}return this},x.prototype.encode=function(D,Y){var ne=D&255,ae=1,he=[ne];for(D=D>>8,ne=D&255;ne>0;)he.unshift(ne),D=D>>8,ne=D&255,++ae;return Y?he.push(ae):he.unshift(ae),this.update(he),he.length},x.prototype.encodeString=function(D){var Y,ne=typeof D;if(ne!=="string"){if(ne==="object"){if(D===null)throw new Error(e);if(l&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!Array.isArray(D)&&(!l||!ArrayBuffer.isView(D)))throw new Error(e)}else throw new Error(e);Y=!0}var ae=0,he=D.length;if(Y)ae=he;else for(var Z=0;Z<D.length;++Z){var ee=D.charCodeAt(Z);ee<128?ae+=1:ee<2048?ae+=2:ee<55296||ee>=57344?ae+=3:(ee=65536+((ee&1023)<<10|D.charCodeAt(++Z)&1023),ae+=4)}return ae+=this.encode(ae*8),this.update(D),ae},x.prototype.bytepad=function(D,Y){for(var ne=this.encode(Y),ae=0;ae<D.length;++ae)ne+=this.encodeString(D[ae]);var he=Y-ne%Y,Z=[];return Z.length=he,this.update(Z),this},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var D=this.blocks,Y=this.lastByteIndex,ne=this.blockCount,ae=this.s;if(D[Y>>2]|=this.padding[Y&3],this.lastByteIndex===this.byteCount)for(D[0]=D[ne],Y=1;Y<ne+1;++Y)D[Y]=0;for(D[ne-1]|=2147483648,Y=0;Y<ne;++Y)ae[Y]^=D[Y];ie(ae)}},x.prototype.toString=x.prototype.hex=function(){this.finalize();for(var D=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,Z=0,ee="",W;Z<ne;){for(he=0;he<D&&Z<ne;++he,++Z)W=Y[he],ee+=u[W>>4&15]+u[W&15]+u[W>>12&15]+u[W>>8&15]+u[W>>20&15]+u[W>>16&15]+u[W>>28&15]+u[W>>24&15];Z%D===0&&(ie(Y),he=0)}return ae&&(W=Y[he],ee+=u[W>>4&15]+u[W&15],ae>1&&(ee+=u[W>>12&15]+u[W>>8&15]),ae>2&&(ee+=u[W>>20&15]+u[W>>16&15])),ee},x.prototype.arrayBuffer=function(){this.finalize();var D=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,Z=0,ee=this.outputBits>>3,W;ae?W=new ArrayBuffer(ne+1<<2):W=new ArrayBuffer(ee);for(var le=new Uint32Array(W);Z<ne;){for(he=0;he<D&&Z<ne;++he,++Z)le[Z]=Y[he];Z%D===0&&ie(Y)}return ae&&(le[he]=Y[he],W=W.slice(0,ee)),W},x.prototype.buffer=x.prototype.arrayBuffer,x.prototype.digest=x.prototype.array=function(){this.finalize();for(var D=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,Z=0,ee=[],W,le;Z<ne;){for(he=0;he<D&&Z<ne;++he,++Z)W=Z<<2,le=Y[he],ee[W]=le&255,ee[W+1]=le>>8&255,ee[W+2]=le>>16&255,ee[W+3]=le>>24&255;Z%D===0&&ie(Y)}return ae&&(W=Z<<2,le=Y[he],ee[W]=le&255,ae>1&&(ee[W+1]=le>>8&255),ae>2&&(ee[W+2]=le>>16&255)),ee};function j(D,Y,ne){x.call(this,D,Y,ne)}j.prototype=new x,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),x.prototype.finalize.call(this)};var ie=function(D){var Y,ne,ae,he,Z,ee,W,le,re,ge,We,Re,$e,st,te,C,$,N,F,z,H,oe,se,pe,de,be,ye,Se,Le,ze,Ne,Ve,Oe,Ce,Ee,Ue,Te,xt,Ke,et,De,Xe,mt,dr,St,Qe,rn,ct,Ct,Po,nt,qe,Xt,Ge,at,nn,lt,gt,ns,os,is,ss,as;for(ae=0;ae<48;ae+=2)he=D[0]^D[10]^D[20]^D[30]^D[40],Z=D[1]^D[11]^D[21]^D[31]^D[41],ee=D[2]^D[12]^D[22]^D[32]^D[42],W=D[3]^D[13]^D[23]^D[33]^D[43],le=D[4]^D[14]^D[24]^D[34]^D[44],re=D[5]^D[15]^D[25]^D[35]^D[45],ge=D[6]^D[16]^D[26]^D[36]^D[46],We=D[7]^D[17]^D[27]^D[37]^D[47],Re=D[8]^D[18]^D[28]^D[38]^D[48],$e=D[9]^D[19]^D[29]^D[39]^D[49],Y=Re^(ee<<1|W>>>31),ne=$e^(W<<1|ee>>>31),D[0]^=Y,D[1]^=ne,D[10]^=Y,D[11]^=ne,D[20]^=Y,D[21]^=ne,D[30]^=Y,D[31]^=ne,D[40]^=Y,D[41]^=ne,Y=he^(le<<1|re>>>31),ne=Z^(re<<1|le>>>31),D[2]^=Y,D[3]^=ne,D[12]^=Y,D[13]^=ne,D[22]^=Y,D[23]^=ne,D[32]^=Y,D[33]^=ne,D[42]^=Y,D[43]^=ne,Y=ee^(ge<<1|We>>>31),ne=W^(We<<1|ge>>>31),D[4]^=Y,D[5]^=ne,D[14]^=Y,D[15]^=ne,D[24]^=Y,D[25]^=ne,D[34]^=Y,D[35]^=ne,D[44]^=Y,D[45]^=ne,Y=le^(Re<<1|$e>>>31),ne=re^($e<<1|Re>>>31),D[6]^=Y,D[7]^=ne,D[16]^=Y,D[17]^=ne,D[26]^=Y,D[27]^=ne,D[36]^=Y,D[37]^=ne,D[46]^=Y,D[47]^=ne,Y=ge^(he<<1|Z>>>31),ne=We^(Z<<1|he>>>31),D[8]^=Y,D[9]^=ne,D[18]^=Y,D[19]^=ne,D[28]^=Y,D[29]^=ne,D[38]^=Y,D[39]^=ne,D[48]^=Y,D[49]^=ne,st=D[0],te=D[1],Qe=D[11]<<4|D[10]>>>28,rn=D[10]<<4|D[11]>>>28,Se=D[20]<<3|D[21]>>>29,Le=D[21]<<3|D[20]>>>29,os=D[31]<<9|D[30]>>>23,is=D[30]<<9|D[31]>>>23,Xe=D[40]<<18|D[41]>>>14,mt=D[41]<<18|D[40]>>>14,Ce=D[2]<<1|D[3]>>>31,Ee=D[3]<<1|D[2]>>>31,C=D[13]<<12|D[12]>>>20,$=D[12]<<12|D[13]>>>20,ct=D[22]<<10|D[23]>>>22,Ct=D[23]<<10|D[22]>>>22,ze=D[33]<<13|D[32]>>>19,Ne=D[32]<<13|D[33]>>>19,ss=D[42]<<2|D[43]>>>30,as=D[43]<<2|D[42]>>>30,Ge=D[5]<<30|D[4]>>>2,at=D[4]<<30|D[5]>>>2,Ue=D[14]<<6|D[15]>>>26,Te=D[15]<<6|D[14]>>>26,N=D[25]<<11|D[24]>>>21,F=D[24]<<11|D[25]>>>21,Po=D[34]<<15|D[35]>>>17,nt=D[35]<<15|D[34]>>>17,Ve=D[45]<<29|D[44]>>>3,Oe=D[44]<<29|D[45]>>>3,pe=D[6]<<28|D[7]>>>4,de=D[7]<<28|D[6]>>>4,nn=D[17]<<23|D[16]>>>9,lt=D[16]<<23|D[17]>>>9,xt=D[26]<<25|D[27]>>>7,Ke=D[27]<<25|D[26]>>>7,z=D[36]<<21|D[37]>>>11,H=D[37]<<21|D[36]>>>11,qe=D[47]<<24|D[46]>>>8,Xt=D[46]<<24|D[47]>>>8,dr=D[8]<<27|D[9]>>>5,St=D[9]<<27|D[8]>>>5,be=D[18]<<20|D[19]>>>12,ye=D[19]<<20|D[18]>>>12,gt=D[29]<<7|D[28]>>>25,ns=D[28]<<7|D[29]>>>25,et=D[38]<<8|D[39]>>>24,De=D[39]<<8|D[38]>>>24,oe=D[48]<<14|D[49]>>>18,se=D[49]<<14|D[48]>>>18,D[0]=st^~C&N,D[1]=te^~$&F,D[10]=pe^~be&Se,D[11]=de^~ye&Le,D[20]=Ce^~Ue&xt,D[21]=Ee^~Te&Ke,D[30]=dr^~Qe&ct,D[31]=St^~rn&Ct,D[40]=Ge^~nn>,D[41]=at^~lt&ns,D[2]=C^~N&z,D[3]=$^~F&H,D[12]=be^~Se&ze,D[13]=ye^~Le&Ne,D[22]=Ue^~xt&et,D[23]=Te^~Ke&De,D[32]=Qe^~ct&Po,D[33]=rn^~Ct&nt,D[42]=nn^~gt&os,D[43]=lt^~ns&is,D[4]=N^~z&oe,D[5]=F^~H&se,D[14]=Se^~ze&Ve,D[15]=Le^~Ne&Oe,D[24]=xt^~et&Xe,D[25]=Ke^~De&mt,D[34]=ct^~Po&qe,D[35]=Ct^~nt&Xt,D[44]=gt^~os&ss,D[45]=ns^~is&as,D[6]=z^~oe&st,D[7]=H^~se&te,D[16]=ze^~Ve&pe,D[17]=Ne^~Oe&de,D[26]=et^~Xe&Ce,D[27]=De^~mt&Ee,D[36]=Po^~qe&dr,D[37]=nt^~Xt&St,D[46]=os^~ss&Ge,D[47]=is^~as&at,D[8]=oe^~st&C,D[9]=se^~te&$,D[18]=Ve^~pe&be,D[19]=Oe^~de&ye,D[28]=Xe^~Ce&Ue,D[29]=mt^~Ee&Te,D[38]=qe^~dr&Qe,D[39]=Xt^~St&rn,D[48]=ss^~Ge&nn,D[49]=as^~at<,D[0]^=S[ae],D[1]^=S[ae+1]};if(s)tp.exports=m;else{for(E=0;E<b.length;++E)n[b[E]]=m[b[E]];a&&define(function(){return m})}})()});var m6=_e(()=>{c();d();f()});var y6=_e((g6,_1)=>{c();d();f();(function(e,t){"use strict";function r(R,m){if(!R)throw new Error(m||"Assertion failed")}function n(R,m){R.super_=m;var b=function(){};b.prototype=m.prototype,R.prototype=new b,R.prototype.constructor=R}function o(R,m,b){if(o.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((m==="le"||m==="be")&&(b=m,m=10),this._init(R||0,m||10,b||"be"))}typeof e=="object"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=m6().Buffer}catch(R){}o.isBN=function(m){return m instanceof o?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===o.wordSize&&Array.isArray(m.words)},o.max=function(m,b){return m.cmp(b)>0?m:b},o.min=function(m,b){return m.cmp(b)<0?m:b},o.prototype._init=function(m,b,E){if(typeof m=="number")return this._initNumber(m,b,E);if(typeof m=="object")return this._initArray(m,b,E);b==="hex"&&(b=16),r(b===(b|0)&&b>=2&&b<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A<m.length&&(b===16?this._parseHex(m,A,E):(this._parseBase(m,b,A),E==="le"&&this._initArray(this.toArray(),b,E)))},o.prototype._initNumber=function(m,b,E){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),b,E)},o.prototype._initArray=function(m,b,E){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var k,B,K=0;if(E==="be")for(A=m.length-1,k=0;A>=0;A-=3)B=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[k]|=B<<K&67108863,this.words[k+1]=B>>>26-K&67108863,K+=24,K>=26&&(K-=26,k++);else if(E==="le")for(A=0,k=0;A<m.length;A+=3)B=m[A]|m[A+1]<<8|m[A+2]<<16,this.words[k]|=B<<K&67108863,this.words[k+1]=B>>>26-K&67108863,K+=24,K>=26&&(K-=26,k++);return this._strip()};function s(R,m){var b=R.charCodeAt(m);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 "+R)}function a(R,m,b){var E=s(R,b);return b-1>=m&&(E|=s(R,b-1)<<4),E}o.prototype._parseHex=function(m,b,E){this.length=Math.ceil((m.length-b)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var k=0,B=0,K;if(E==="be")for(A=m.length-1;A>=b;A-=2)K=a(m,b,A)<<k,this.words[B]|=K&67108863,k>=18?(k-=18,B+=1,this.words[B]|=K>>>26):k+=8;else{var U=m.length-b;for(A=U%2===0?b+1:b;A<m.length;A+=2)K=a(m,b,A)<<k,this.words[B]|=K&67108863,k>=18?(k-=18,B+=1,this.words[B]|=K>>>26):k+=8}this._strip()};function l(R,m,b,E){for(var A=0,k=0,B=Math.min(R.length,b),K=m;K<B;K++){var U=R.charCodeAt(K)-48;A*=E,U>=49?k=U-49+10:U>=17?k=U-17+10:k=U,r(U>=0&&k<E,"Invalid character"),A+=k}return A}o.prototype._parseBase=function(m,b,E){this.words=[0],this.length=1;for(var A=0,k=1;k<=67108863;k*=b)A++;A--,k=k/b|0;for(var B=m.length-E,K=B%A,U=Math.min(B,B-K)+E,x=0,j=E;j<U;j+=A)x=l(m,j,j+A,b),this.imuln(k),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x);if(K!==0){var ie=1;for(x=l(m,j,m.length,b),j=0;j<K;j++)ie*=b;this.imuln(ie),this.words[0]+x<67108864?this.words[0]+=x:this._iaddn(x)}this._strip()},o.prototype.copy=function(m){m.words=new Array(this.length);for(var b=0;b<this.length;b++)m.words[b]=this.words[b];m.length=this.length,m.negative=this.negative,m.red=this.red};function u(R,m){R.words=m.words,R.length=m.length,R.negative=m.negative,R.red=m.red}if(o.prototype._move=function(m){u(m,this)},o.prototype.clone=function(){var m=new o(null);return this.copy(m),m},o.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(R){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],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];o.prototype.toString=function(m,b){m=m||10,b=b|0||1;var E;if(m===16||m==="hex"){E="";for(var A=0,k=0,B=0;B<this.length;B++){var K=this.words[B],U=((K<<A|k)&16777215).toString(16);k=K>>>24-A&16777215,A+=2,A>=26&&(A-=26,B--),k!==0||B!==this.length-1?E=p[6-U.length]+U+E:E=U+E}for(k!==0&&(E=k.toString(16)+E);E.length%b!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(m===(m|0)&&m>=2&&m<=36){var x=y[m],j=w[m];E="";var ie=this.clone();for(ie.negative=0;!ie.isZero();){var D=ie.modrn(j).toString(m);ie=ie.idivn(j),ie.isZero()?E=D+E:E=p[x-D.length]+D+E}for(this.isZero()&&(E="0"+E);E.length%b!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}r(!1,"Base should be between 2 and 36")},o.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},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(m,b){return this.toArrayLike(i,m,b)}),o.prototype.toArray=function(m,b){return this.toArrayLike(Array,m,b)};var v=function(m,b){return m.allocUnsafe?m.allocUnsafe(b):new m(b)};o.prototype.toArrayLike=function(m,b,E){this._strip();var A=this.byteLength(),k=E||Math.max(1,A);r(A<=k,"byte array longer than desired length"),r(k>0,"Requested array length <= 0");var B=v(m,k),K=b==="le"?"LE":"BE";return this["_toArrayLike"+K](B,A),B},o.prototype._toArrayLikeLE=function(m,b){for(var E=0,A=0,k=0,B=0;k<this.length;k++){var K=this.words[k]<<B|A;m[E++]=K&255,E<m.length&&(m[E++]=K>>8&255),E<m.length&&(m[E++]=K>>16&255),B===6?(E<m.length&&(m[E++]=K>>24&255),A=0,B=0):(A=K>>>24,B+=2)}if(E<m.length)for(m[E++]=A;E<m.length;)m[E++]=0},o.prototype._toArrayLikeBE=function(m,b){for(var E=m.length-1,A=0,k=0,B=0;k<this.length;k++){var K=this.words[k]<<B|A;m[E--]=K&255,E>=0&&(m[E--]=K>>8&255),E>=0&&(m[E--]=K>>16&255),B===6?(E>=0&&(m[E--]=K>>24&255),A=0,B=0):(A=K>>>24,B+=2)}if(E>=0)for(m[E--]=A;E>=0;)m[E--]=0},Math.clz32?o.prototype._countBits=function(m){return 32-Math.clz32(m)}:o.prototype._countBits=function(m){var b=m,E=0;return b>=4096&&(E+=13,b>>>=13),b>=64&&(E+=7,b>>>=7),b>=8&&(E+=4,b>>>=4),b>=2&&(E+=2,b>>>=2),E+b},o.prototype._zeroBits=function(m){if(m===0)return 26;var b=m,E=0;return(b&8191)===0&&(E+=13,b>>>=13),(b&127)===0&&(E+=7,b>>>=7),(b&15)===0&&(E+=4,b>>>=4),(b&3)===0&&(E+=2,b>>>=2),(b&1)===0&&E++,E},o.prototype.bitLength=function(){var m=this.words[this.length-1],b=this._countBits(m);return(this.length-1)*26+b};function S(R){for(var m=new Array(R.bitLength()),b=0;b<m.length;b++){var E=b/26|0,A=b%26;m[b]=R.words[E]>>>A&1}return m}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,b=0;b<this.length;b++){var E=this._zeroBits(this.words[b]);if(m+=E,E!==26)break}return m},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},o.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var b=0;b<m.length;b++)this.words[b]=this.words[b]|m.words[b];return this._strip()},o.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},o.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},o.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},o.prototype.iuand=function(m){var b;this.length>m.length?b=m:b=this;for(var E=0;E<b.length;E++)this.words[E]=this.words[E]&m.words[E];return this.length=b.length,this._strip()},o.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},o.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},o.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},o.prototype.iuxor=function(m){var b,E;this.length>m.length?(b=this,E=m):(b=m,E=this);for(var A=0;A<E.length;A++)this.words[A]=b.words[A]^E.words[A];if(this!==b)for(;A<b.length;A++)this.words[A]=b.words[A];return this.length=b.length,this._strip()},o.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},o.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},o.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},o.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var b=Math.ceil(m/26)|0,E=m%26;this._expand(b),E>0&&b--;for(var A=0;A<b;A++)this.words[A]=~this.words[A]&67108863;return E>0&&(this.words[A]=~this.words[A]&67108863>>26-E),this._strip()},o.prototype.notn=function(m){return this.clone().inotn(m)},o.prototype.setn=function(m,b){r(typeof m=="number"&&m>=0);var E=m/26|0,A=m%26;return this._expand(E+1),b?this.words[E]=this.words[E]|1<<A:this.words[E]=this.words[E]&~(1<<A),this._strip()},o.prototype.iadd=function(m){var b;if(this.negative!==0&&m.negative===0)return this.negative=0,b=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,b=this.isub(m),m.negative=1,b._normSign();var E,A;this.length>m.length?(E=this,A=m):(E=m,A=this);for(var k=0,B=0;B<A.length;B++)b=(E.words[B]|0)+(A.words[B]|0)+k,this.words[B]=b&67108863,k=b>>>26;for(;k!==0&&B<E.length;B++)b=(E.words[B]|0)+k,this.words[B]=b&67108863,k=b>>>26;if(this.length=E.length,k!==0)this.words[this.length]=k,this.length++;else if(E!==this)for(;B<E.length;B++)this.words[B]=E.words[B];return this},o.prototype.add=function(m){var b;return m.negative!==0&&this.negative===0?(m.negative=0,b=this.sub(m),m.negative^=1,b):m.negative===0&&this.negative!==0?(this.negative=0,b=m.sub(this),this.negative=1,b):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},o.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var b=this.iadd(m);return m.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var E=this.cmp(m);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,k;E>0?(A=this,k=m):(A=m,k=this);for(var B=0,K=0;K<k.length;K++)b=(A.words[K]|0)-(k.words[K]|0)+B,B=b>>26,this.words[K]=b&67108863;for(;B!==0&&K<A.length;K++)b=(A.words[K]|0)+B,B=b>>26,this.words[K]=b&67108863;if(B===0&&K<A.length&&A!==this)for(;K<A.length;K++)this.words[K]=A.words[K];return this.length=Math.max(this.length,K),A!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(m){return this.clone().isub(m)};function I(R,m,b){b.negative=m.negative^R.negative;var E=R.length+m.length|0;b.length=E,E=E-1|0;var A=R.words[0]|0,k=m.words[0]|0,B=A*k,K=B&67108863,U=B/67108864|0;b.words[0]=K;for(var x=1;x<E;x++){for(var j=U>>>26,ie=U&67108863,D=Math.min(x,m.length-1),Y=Math.max(0,x-R.length+1);Y<=D;Y++){var ne=x-Y|0;A=R.words[ne]|0,k=m.words[Y]|0,B=A*k+ie,j+=B/67108864|0,ie=B&67108863}b.words[x]=ie|0,U=j|0}return U!==0?b.words[x]=U|0:b.length--,b._strip()}var T=function(m,b,E){var A=m.words,k=b.words,B=E.words,K=0,U,x,j,ie=A[0]|0,D=ie&8191,Y=ie>>>13,ne=A[1]|0,ae=ne&8191,he=ne>>>13,Z=A[2]|0,ee=Z&8191,W=Z>>>13,le=A[3]|0,re=le&8191,ge=le>>>13,We=A[4]|0,Re=We&8191,$e=We>>>13,st=A[5]|0,te=st&8191,C=st>>>13,$=A[6]|0,N=$&8191,F=$>>>13,z=A[7]|0,H=z&8191,oe=z>>>13,se=A[8]|0,pe=se&8191,de=se>>>13,be=A[9]|0,ye=be&8191,Se=be>>>13,Le=k[0]|0,ze=Le&8191,Ne=Le>>>13,Ve=k[1]|0,Oe=Ve&8191,Ce=Ve>>>13,Ee=k[2]|0,Ue=Ee&8191,Te=Ee>>>13,xt=k[3]|0,Ke=xt&8191,et=xt>>>13,De=k[4]|0,Xe=De&8191,mt=De>>>13,dr=k[5]|0,St=dr&8191,Qe=dr>>>13,rn=k[6]|0,ct=rn&8191,Ct=rn>>>13,Po=k[7]|0,nt=Po&8191,qe=Po>>>13,Xt=k[8]|0,Ge=Xt&8191,at=Xt>>>13,nn=k[9]|0,lt=nn&8191,gt=nn>>>13;E.negative=m.negative^b.negative,E.length=19,U=Math.imul(D,ze),x=Math.imul(D,Ne),x=x+Math.imul(Y,ze)|0,j=Math.imul(Y,Ne);var ns=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(ns>>>26)|0,ns&=67108863,U=Math.imul(ae,ze),x=Math.imul(ae,Ne),x=x+Math.imul(he,ze)|0,j=Math.imul(he,Ne),U=U+Math.imul(D,Oe)|0,x=x+Math.imul(D,Ce)|0,x=x+Math.imul(Y,Oe)|0,j=j+Math.imul(Y,Ce)|0;var os=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(os>>>26)|0,os&=67108863,U=Math.imul(ee,ze),x=Math.imul(ee,Ne),x=x+Math.imul(W,ze)|0,j=Math.imul(W,Ne),U=U+Math.imul(ae,Oe)|0,x=x+Math.imul(ae,Ce)|0,x=x+Math.imul(he,Oe)|0,j=j+Math.imul(he,Ce)|0,U=U+Math.imul(D,Ue)|0,x=x+Math.imul(D,Te)|0,x=x+Math.imul(Y,Ue)|0,j=j+Math.imul(Y,Te)|0;var is=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(is>>>26)|0,is&=67108863,U=Math.imul(re,ze),x=Math.imul(re,Ne),x=x+Math.imul(ge,ze)|0,j=Math.imul(ge,Ne),U=U+Math.imul(ee,Oe)|0,x=x+Math.imul(ee,Ce)|0,x=x+Math.imul(W,Oe)|0,j=j+Math.imul(W,Ce)|0,U=U+Math.imul(ae,Ue)|0,x=x+Math.imul(ae,Te)|0,x=x+Math.imul(he,Ue)|0,j=j+Math.imul(he,Te)|0,U=U+Math.imul(D,Ke)|0,x=x+Math.imul(D,et)|0,x=x+Math.imul(Y,Ke)|0,j=j+Math.imul(Y,et)|0;var ss=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(ss>>>26)|0,ss&=67108863,U=Math.imul(Re,ze),x=Math.imul(Re,Ne),x=x+Math.imul($e,ze)|0,j=Math.imul($e,Ne),U=U+Math.imul(re,Oe)|0,x=x+Math.imul(re,Ce)|0,x=x+Math.imul(ge,Oe)|0,j=j+Math.imul(ge,Ce)|0,U=U+Math.imul(ee,Ue)|0,x=x+Math.imul(ee,Te)|0,x=x+Math.imul(W,Ue)|0,j=j+Math.imul(W,Te)|0,U=U+Math.imul(ae,Ke)|0,x=x+Math.imul(ae,et)|0,x=x+Math.imul(he,Ke)|0,j=j+Math.imul(he,et)|0,U=U+Math.imul(D,Xe)|0,x=x+Math.imul(D,mt)|0,x=x+Math.imul(Y,Xe)|0,j=j+Math.imul(Y,mt)|0;var as=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(as>>>26)|0,as&=67108863,U=Math.imul(te,ze),x=Math.imul(te,Ne),x=x+Math.imul(C,ze)|0,j=Math.imul(C,Ne),U=U+Math.imul(Re,Oe)|0,x=x+Math.imul(Re,Ce)|0,x=x+Math.imul($e,Oe)|0,j=j+Math.imul($e,Ce)|0,U=U+Math.imul(re,Ue)|0,x=x+Math.imul(re,Te)|0,x=x+Math.imul(ge,Ue)|0,j=j+Math.imul(ge,Te)|0,U=U+Math.imul(ee,Ke)|0,x=x+Math.imul(ee,et)|0,x=x+Math.imul(W,Ke)|0,j=j+Math.imul(W,et)|0,U=U+Math.imul(ae,Xe)|0,x=x+Math.imul(ae,mt)|0,x=x+Math.imul(he,Xe)|0,j=j+Math.imul(he,mt)|0,U=U+Math.imul(D,St)|0,x=x+Math.imul(D,Qe)|0,x=x+Math.imul(Y,St)|0,j=j+Math.imul(Y,Qe)|0;var Xv=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(Xv>>>26)|0,Xv&=67108863,U=Math.imul(N,ze),x=Math.imul(N,Ne),x=x+Math.imul(F,ze)|0,j=Math.imul(F,Ne),U=U+Math.imul(te,Oe)|0,x=x+Math.imul(te,Ce)|0,x=x+Math.imul(C,Oe)|0,j=j+Math.imul(C,Ce)|0,U=U+Math.imul(Re,Ue)|0,x=x+Math.imul(Re,Te)|0,x=x+Math.imul($e,Ue)|0,j=j+Math.imul($e,Te)|0,U=U+Math.imul(re,Ke)|0,x=x+Math.imul(re,et)|0,x=x+Math.imul(ge,Ke)|0,j=j+Math.imul(ge,et)|0,U=U+Math.imul(ee,Xe)|0,x=x+Math.imul(ee,mt)|0,x=x+Math.imul(W,Xe)|0,j=j+Math.imul(W,mt)|0,U=U+Math.imul(ae,St)|0,x=x+Math.imul(ae,Qe)|0,x=x+Math.imul(he,St)|0,j=j+Math.imul(he,Qe)|0,U=U+Math.imul(D,ct)|0,x=x+Math.imul(D,Ct)|0,x=x+Math.imul(Y,ct)|0,j=j+Math.imul(Y,Ct)|0;var Zv=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(Zv>>>26)|0,Zv&=67108863,U=Math.imul(H,ze),x=Math.imul(H,Ne),x=x+Math.imul(oe,ze)|0,j=Math.imul(oe,Ne),U=U+Math.imul(N,Oe)|0,x=x+Math.imul(N,Ce)|0,x=x+Math.imul(F,Oe)|0,j=j+Math.imul(F,Ce)|0,U=U+Math.imul(te,Ue)|0,x=x+Math.imul(te,Te)|0,x=x+Math.imul(C,Ue)|0,j=j+Math.imul(C,Te)|0,U=U+Math.imul(Re,Ke)|0,x=x+Math.imul(Re,et)|0,x=x+Math.imul($e,Ke)|0,j=j+Math.imul($e,et)|0,U=U+Math.imul(re,Xe)|0,x=x+Math.imul(re,mt)|0,x=x+Math.imul(ge,Xe)|0,j=j+Math.imul(ge,mt)|0,U=U+Math.imul(ee,St)|0,x=x+Math.imul(ee,Qe)|0,x=x+Math.imul(W,St)|0,j=j+Math.imul(W,Qe)|0,U=U+Math.imul(ae,ct)|0,x=x+Math.imul(ae,Ct)|0,x=x+Math.imul(he,ct)|0,j=j+Math.imul(he,Ct)|0,U=U+Math.imul(D,nt)|0,x=x+Math.imul(D,qe)|0,x=x+Math.imul(Y,nt)|0,j=j+Math.imul(Y,qe)|0;var Jv=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(Jv>>>26)|0,Jv&=67108863,U=Math.imul(pe,ze),x=Math.imul(pe,Ne),x=x+Math.imul(de,ze)|0,j=Math.imul(de,Ne),U=U+Math.imul(H,Oe)|0,x=x+Math.imul(H,Ce)|0,x=x+Math.imul(oe,Oe)|0,j=j+Math.imul(oe,Ce)|0,U=U+Math.imul(N,Ue)|0,x=x+Math.imul(N,Te)|0,x=x+Math.imul(F,Ue)|0,j=j+Math.imul(F,Te)|0,U=U+Math.imul(te,Ke)|0,x=x+Math.imul(te,et)|0,x=x+Math.imul(C,Ke)|0,j=j+Math.imul(C,et)|0,U=U+Math.imul(Re,Xe)|0,x=x+Math.imul(Re,mt)|0,x=x+Math.imul($e,Xe)|0,j=j+Math.imul($e,mt)|0,U=U+Math.imul(re,St)|0,x=x+Math.imul(re,Qe)|0,x=x+Math.imul(ge,St)|0,j=j+Math.imul(ge,Qe)|0,U=U+Math.imul(ee,ct)|0,x=x+Math.imul(ee,Ct)|0,x=x+Math.imul(W,ct)|0,j=j+Math.imul(W,Ct)|0,U=U+Math.imul(ae,nt)|0,x=x+Math.imul(ae,qe)|0,x=x+Math.imul(he,nt)|0,j=j+Math.imul(he,qe)|0,U=U+Math.imul(D,Ge)|0,x=x+Math.imul(D,at)|0,x=x+Math.imul(Y,Ge)|0,j=j+Math.imul(Y,at)|0;var Qv=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(Qv>>>26)|0,Qv&=67108863,U=Math.imul(ye,ze),x=Math.imul(ye,Ne),x=x+Math.imul(Se,ze)|0,j=Math.imul(Se,Ne),U=U+Math.imul(pe,Oe)|0,x=x+Math.imul(pe,Ce)|0,x=x+Math.imul(de,Oe)|0,j=j+Math.imul(de,Ce)|0,U=U+Math.imul(H,Ue)|0,x=x+Math.imul(H,Te)|0,x=x+Math.imul(oe,Ue)|0,j=j+Math.imul(oe,Te)|0,U=U+Math.imul(N,Ke)|0,x=x+Math.imul(N,et)|0,x=x+Math.imul(F,Ke)|0,j=j+Math.imul(F,et)|0,U=U+Math.imul(te,Xe)|0,x=x+Math.imul(te,mt)|0,x=x+Math.imul(C,Xe)|0,j=j+Math.imul(C,mt)|0,U=U+Math.imul(Re,St)|0,x=x+Math.imul(Re,Qe)|0,x=x+Math.imul($e,St)|0,j=j+Math.imul($e,Qe)|0,U=U+Math.imul(re,ct)|0,x=x+Math.imul(re,Ct)|0,x=x+Math.imul(ge,ct)|0,j=j+Math.imul(ge,Ct)|0,U=U+Math.imul(ee,nt)|0,x=x+Math.imul(ee,qe)|0,x=x+Math.imul(W,nt)|0,j=j+Math.imul(W,qe)|0,U=U+Math.imul(ae,Ge)|0,x=x+Math.imul(ae,at)|0,x=x+Math.imul(he,Ge)|0,j=j+Math.imul(he,at)|0,U=U+Math.imul(D,lt)|0,x=x+Math.imul(D,gt)|0,x=x+Math.imul(Y,lt)|0,j=j+Math.imul(Y,gt)|0;var e1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(e1>>>26)|0,e1&=67108863,U=Math.imul(ye,Oe),x=Math.imul(ye,Ce),x=x+Math.imul(Se,Oe)|0,j=Math.imul(Se,Ce),U=U+Math.imul(pe,Ue)|0,x=x+Math.imul(pe,Te)|0,x=x+Math.imul(de,Ue)|0,j=j+Math.imul(de,Te)|0,U=U+Math.imul(H,Ke)|0,x=x+Math.imul(H,et)|0,x=x+Math.imul(oe,Ke)|0,j=j+Math.imul(oe,et)|0,U=U+Math.imul(N,Xe)|0,x=x+Math.imul(N,mt)|0,x=x+Math.imul(F,Xe)|0,j=j+Math.imul(F,mt)|0,U=U+Math.imul(te,St)|0,x=x+Math.imul(te,Qe)|0,x=x+Math.imul(C,St)|0,j=j+Math.imul(C,Qe)|0,U=U+Math.imul(Re,ct)|0,x=x+Math.imul(Re,Ct)|0,x=x+Math.imul($e,ct)|0,j=j+Math.imul($e,Ct)|0,U=U+Math.imul(re,nt)|0,x=x+Math.imul(re,qe)|0,x=x+Math.imul(ge,nt)|0,j=j+Math.imul(ge,qe)|0,U=U+Math.imul(ee,Ge)|0,x=x+Math.imul(ee,at)|0,x=x+Math.imul(W,Ge)|0,j=j+Math.imul(W,at)|0,U=U+Math.imul(ae,lt)|0,x=x+Math.imul(ae,gt)|0,x=x+Math.imul(he,lt)|0,j=j+Math.imul(he,gt)|0;var t1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(t1>>>26)|0,t1&=67108863,U=Math.imul(ye,Ue),x=Math.imul(ye,Te),x=x+Math.imul(Se,Ue)|0,j=Math.imul(Se,Te),U=U+Math.imul(pe,Ke)|0,x=x+Math.imul(pe,et)|0,x=x+Math.imul(de,Ke)|0,j=j+Math.imul(de,et)|0,U=U+Math.imul(H,Xe)|0,x=x+Math.imul(H,mt)|0,x=x+Math.imul(oe,Xe)|0,j=j+Math.imul(oe,mt)|0,U=U+Math.imul(N,St)|0,x=x+Math.imul(N,Qe)|0,x=x+Math.imul(F,St)|0,j=j+Math.imul(F,Qe)|0,U=U+Math.imul(te,ct)|0,x=x+Math.imul(te,Ct)|0,x=x+Math.imul(C,ct)|0,j=j+Math.imul(C,Ct)|0,U=U+Math.imul(Re,nt)|0,x=x+Math.imul(Re,qe)|0,x=x+Math.imul($e,nt)|0,j=j+Math.imul($e,qe)|0,U=U+Math.imul(re,Ge)|0,x=x+Math.imul(re,at)|0,x=x+Math.imul(ge,Ge)|0,j=j+Math.imul(ge,at)|0,U=U+Math.imul(ee,lt)|0,x=x+Math.imul(ee,gt)|0,x=x+Math.imul(W,lt)|0,j=j+Math.imul(W,gt)|0;var r1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(r1>>>26)|0,r1&=67108863,U=Math.imul(ye,Ke),x=Math.imul(ye,et),x=x+Math.imul(Se,Ke)|0,j=Math.imul(Se,et),U=U+Math.imul(pe,Xe)|0,x=x+Math.imul(pe,mt)|0,x=x+Math.imul(de,Xe)|0,j=j+Math.imul(de,mt)|0,U=U+Math.imul(H,St)|0,x=x+Math.imul(H,Qe)|0,x=x+Math.imul(oe,St)|0,j=j+Math.imul(oe,Qe)|0,U=U+Math.imul(N,ct)|0,x=x+Math.imul(N,Ct)|0,x=x+Math.imul(F,ct)|0,j=j+Math.imul(F,Ct)|0,U=U+Math.imul(te,nt)|0,x=x+Math.imul(te,qe)|0,x=x+Math.imul(C,nt)|0,j=j+Math.imul(C,qe)|0,U=U+Math.imul(Re,Ge)|0,x=x+Math.imul(Re,at)|0,x=x+Math.imul($e,Ge)|0,j=j+Math.imul($e,at)|0,U=U+Math.imul(re,lt)|0,x=x+Math.imul(re,gt)|0,x=x+Math.imul(ge,lt)|0,j=j+Math.imul(ge,gt)|0;var n1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(n1>>>26)|0,n1&=67108863,U=Math.imul(ye,Xe),x=Math.imul(ye,mt),x=x+Math.imul(Se,Xe)|0,j=Math.imul(Se,mt),U=U+Math.imul(pe,St)|0,x=x+Math.imul(pe,Qe)|0,x=x+Math.imul(de,St)|0,j=j+Math.imul(de,Qe)|0,U=U+Math.imul(H,ct)|0,x=x+Math.imul(H,Ct)|0,x=x+Math.imul(oe,ct)|0,j=j+Math.imul(oe,Ct)|0,U=U+Math.imul(N,nt)|0,x=x+Math.imul(N,qe)|0,x=x+Math.imul(F,nt)|0,j=j+Math.imul(F,qe)|0,U=U+Math.imul(te,Ge)|0,x=x+Math.imul(te,at)|0,x=x+Math.imul(C,Ge)|0,j=j+Math.imul(C,at)|0,U=U+Math.imul(Re,lt)|0,x=x+Math.imul(Re,gt)|0,x=x+Math.imul($e,lt)|0,j=j+Math.imul($e,gt)|0;var o1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(o1>>>26)|0,o1&=67108863,U=Math.imul(ye,St),x=Math.imul(ye,Qe),x=x+Math.imul(Se,St)|0,j=Math.imul(Se,Qe),U=U+Math.imul(pe,ct)|0,x=x+Math.imul(pe,Ct)|0,x=x+Math.imul(de,ct)|0,j=j+Math.imul(de,Ct)|0,U=U+Math.imul(H,nt)|0,x=x+Math.imul(H,qe)|0,x=x+Math.imul(oe,nt)|0,j=j+Math.imul(oe,qe)|0,U=U+Math.imul(N,Ge)|0,x=x+Math.imul(N,at)|0,x=x+Math.imul(F,Ge)|0,j=j+Math.imul(F,at)|0,U=U+Math.imul(te,lt)|0,x=x+Math.imul(te,gt)|0,x=x+Math.imul(C,lt)|0,j=j+Math.imul(C,gt)|0;var i1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(i1>>>26)|0,i1&=67108863,U=Math.imul(ye,ct),x=Math.imul(ye,Ct),x=x+Math.imul(Se,ct)|0,j=Math.imul(Se,Ct),U=U+Math.imul(pe,nt)|0,x=x+Math.imul(pe,qe)|0,x=x+Math.imul(de,nt)|0,j=j+Math.imul(de,qe)|0,U=U+Math.imul(H,Ge)|0,x=x+Math.imul(H,at)|0,x=x+Math.imul(oe,Ge)|0,j=j+Math.imul(oe,at)|0,U=U+Math.imul(N,lt)|0,x=x+Math.imul(N,gt)|0,x=x+Math.imul(F,lt)|0,j=j+Math.imul(F,gt)|0;var s1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(s1>>>26)|0,s1&=67108863,U=Math.imul(ye,nt),x=Math.imul(ye,qe),x=x+Math.imul(Se,nt)|0,j=Math.imul(Se,qe),U=U+Math.imul(pe,Ge)|0,x=x+Math.imul(pe,at)|0,x=x+Math.imul(de,Ge)|0,j=j+Math.imul(de,at)|0,U=U+Math.imul(H,lt)|0,x=x+Math.imul(H,gt)|0,x=x+Math.imul(oe,lt)|0,j=j+Math.imul(oe,gt)|0;var a1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(a1>>>26)|0,a1&=67108863,U=Math.imul(ye,Ge),x=Math.imul(ye,at),x=x+Math.imul(Se,Ge)|0,j=Math.imul(Se,at),U=U+Math.imul(pe,lt)|0,x=x+Math.imul(pe,gt)|0,x=x+Math.imul(de,lt)|0,j=j+Math.imul(de,gt)|0;var l1=(K+U|0)+((x&8191)<<13)|0;K=(j+(x>>>13)|0)+(l1>>>26)|0,l1&=67108863,U=Math.imul(ye,lt),x=Math.imul(ye,gt),x=x+Math.imul(Se,lt)|0,j=Math.imul(Se,gt);var u1=(K+U|0)+((x&8191)<<13)|0;return K=(j+(x>>>13)|0)+(u1>>>26)|0,u1&=67108863,B[0]=ns,B[1]=os,B[2]=is,B[3]=ss,B[4]=as,B[5]=Xv,B[6]=Zv,B[7]=Jv,B[8]=Qv,B[9]=e1,B[10]=t1,B[11]=r1,B[12]=n1,B[13]=o1,B[14]=i1,B[15]=s1,B[16]=a1,B[17]=l1,B[18]=u1,K!==0&&(B[19]=K,E.length++),E};Math.imul||(T=I);function O(R,m,b){b.negative=m.negative^R.negative,b.length=R.length+m.length;for(var E=0,A=0,k=0;k<b.length-1;k++){var B=A;A=0;for(var K=E&67108863,U=Math.min(k,m.length-1),x=Math.max(0,k-R.length+1);x<=U;x++){var j=k-x,ie=R.words[j]|0,D=m.words[x]|0,Y=ie*D,ne=Y&67108863;B=B+(Y/67108864|0)|0,ne=ne+K|0,K=ne&67108863,B=B+(ne>>>26)|0,A+=B>>>26,B&=67108863}b.words[k]=K,E=B,B=A}return E!==0?b.words[k]=E:b.length--,b._strip()}function M(R,m,b){return O(R,m,b)}o.prototype.mulTo=function(m,b){var E,A=this.length+m.length;return this.length===10&&m.length===10?E=T(this,m,b):A<63?E=I(this,m,b):A<1024?E=O(this,m,b):E=M(this,m,b),E};function L(R,m){this.x=R,this.y=m}L.prototype.makeRBT=function(m){for(var b=new Array(m),E=o.prototype._countBits(m)-1,A=0;A<m;A++)b[A]=this.revBin(A,E,m);return b},L.prototype.revBin=function(m,b,E){if(m===0||m===E-1)return m;for(var A=0,k=0;k<b;k++)A|=(m&1)<<b-k-1,m>>=1;return A},L.prototype.permute=function(m,b,E,A,k,B){for(var K=0;K<B;K++)A[K]=b[m[K]],k[K]=E[m[K]]},L.prototype.transform=function(m,b,E,A,k,B){this.permute(B,m,b,E,A,k);for(var K=1;K<k;K<<=1)for(var U=K<<1,x=Math.cos(2*Math.PI/U),j=Math.sin(2*Math.PI/U),ie=0;ie<k;ie+=U)for(var D=x,Y=j,ne=0;ne<K;ne++){var ae=E[ie+ne],he=A[ie+ne],Z=E[ie+ne+K],ee=A[ie+ne+K],W=D*Z-Y*ee;ee=D*ee+Y*Z,Z=W,E[ie+ne]=ae+Z,A[ie+ne]=he+ee,E[ie+ne+K]=ae-Z,A[ie+ne+K]=he-ee,ne!==U&&(W=x*D-j*Y,Y=x*Y+j*D,D=W)}},L.prototype.guessLen13b=function(m,b){var E=Math.max(b,m)|1,A=E&1,k=0;for(E=E/2|0;E;E=E>>>1)k++;return 1<<k+1+A},L.prototype.conjugate=function(m,b,E){if(!(E<=1))for(var A=0;A<E/2;A++){var k=m[A];m[A]=m[E-A-1],m[E-A-1]=k,k=b[A],b[A]=-b[E-A-1],b[E-A-1]=-k}},L.prototype.normalize13b=function(m,b){for(var E=0,A=0;A<b/2;A++){var k=Math.round(m[2*A+1]/b)*8192+Math.round(m[2*A]/b)+E;m[A]=k&67108863,k<67108864?E=0:E=k/67108864|0}return m},L.prototype.convert13b=function(m,b,E,A){for(var k=0,B=0;B<b;B++)k=k+(m[B]|0),E[2*B]=k&8191,k=k>>>13,E[2*B+1]=k&8191,k=k>>>13;for(B=2*b;B<A;++B)E[B]=0;r(k===0),r((k&-8192)===0)},L.prototype.stub=function(m){for(var b=new Array(m),E=0;E<m;E++)b[E]=0;return b},L.prototype.mulp=function(m,b,E){var A=2*this.guessLen13b(m.length,b.length),k=this.makeRBT(A),B=this.stub(A),K=new Array(A),U=new Array(A),x=new Array(A),j=new Array(A),ie=new Array(A),D=new Array(A),Y=E.words;Y.length=A,this.convert13b(m.words,m.length,K,A),this.convert13b(b.words,b.length,j,A),this.transform(K,B,U,x,A,k),this.transform(j,B,ie,D,A,k);for(var ne=0;ne<A;ne++){var ae=U[ne]*ie[ne]-x[ne]*D[ne];x[ne]=U[ne]*D[ne]+x[ne]*ie[ne],U[ne]=ae}return this.conjugate(U,x,A),this.transform(U,x,Y,B,A,k),this.conjugate(Y,B,A),this.normalize13b(Y,A),E.negative=m.negative^b.negative,E.length=m.length+b.length,E._strip()},o.prototype.mul=function(m){var b=new o(null);return b.words=new Array(this.length+m.length),this.mulTo(m,b)},o.prototype.mulf=function(m){var b=new o(null);return b.words=new Array(this.length+m.length),M(this,m,b)},o.prototype.imul=function(m){return this.clone().mulTo(m,this)},o.prototype.imuln=function(m){var b=m<0;b&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var E=0,A=0;A<this.length;A++){var k=(this.words[A]|0)*m,B=(k&67108863)+(E&67108863);E>>=26,E+=k/67108864|0,E+=B>>>26,this.words[A]=B&67108863}return E!==0&&(this.words[A]=E,this.length++),b?this.ineg():this},o.prototype.muln=function(m){return this.clone().imuln(m)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(m){var b=S(m);if(b.length===0)return new o(1);for(var E=this,A=0;A<b.length&&b[A]===0;A++,E=E.sqr());if(++A<b.length)for(var k=E.sqr();A<b.length;A++,k=k.sqr())b[A]!==0&&(E=E.mul(k));return E},o.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var b=m%26,E=(m-b)/26,A=67108863>>>26-b<<26-b,k;if(b!==0){var B=0;for(k=0;k<this.length;k++){var K=this.words[k]&A,U=(this.words[k]|0)-K<<b;this.words[k]=U|B,B=K>>>26-b}B&&(this.words[k]=B,this.length++)}if(E!==0){for(k=this.length-1;k>=0;k--)this.words[k+E]=this.words[k];for(k=0;k<E;k++)this.words[k]=0;this.length+=E}return this._strip()},o.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},o.prototype.iushrn=function(m,b,E){r(typeof m=="number"&&m>=0);var A;b?A=(b-b%26)/26:A=0;var k=m%26,B=Math.min((m-k)/26,this.length),K=67108863^67108863>>>k<<k,U=E;if(A-=B,A=Math.max(0,A),U){for(var x=0;x<B;x++)U.words[x]=this.words[x];U.length=B}if(B!==0)if(this.length>B)for(this.length-=B,x=0;x<this.length;x++)this.words[x]=this.words[x+B];else this.words[0]=0,this.length=1;var j=0;for(x=this.length-1;x>=0&&(j!==0||x>=A);x--){var ie=this.words[x]|0;this.words[x]=j<<26-k|ie>>>k,j=ie&K}return U&&j!==0&&(U.words[U.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(m,b,E){return r(this.negative===0),this.iushrn(m,b,E)},o.prototype.shln=function(m){return this.clone().ishln(m)},o.prototype.ushln=function(m){return this.clone().iushln(m)},o.prototype.shrn=function(m){return this.clone().ishrn(m)},o.prototype.ushrn=function(m){return this.clone().iushrn(m)},o.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var b=m%26,E=(m-b)/26,A=1<<b;if(this.length<=E)return!1;var k=this.words[E];return!!(k&A)},o.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var b=m%26,E=(m-b)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(b!==0&&E++,this.length=Math.min(E,this.length),b!==0){var A=67108863^67108863>>>b<<b;this.words[this.length-1]&=A}return this._strip()},o.prototype.maskn=function(m){return this.clone().imaskn(m)},o.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)},o.prototype._iaddn=function(m){this.words[0]+=m;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},o.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 b=0;b<this.length&&this.words[b]<0;b++)this.words[b]+=67108864,this.words[b+1]-=1;return this._strip()},o.prototype.addn=function(m){return this.clone().iaddn(m)},o.prototype.subn=function(m){return this.clone().isubn(m)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(m,b,E){var A=m.length+E,k;this._expand(A);var B,K=0;for(k=0;k<m.length;k++){B=(this.words[k+E]|0)+K;var U=(m.words[k]|0)*b;B-=U&67108863,K=(B>>26)-(U/67108864|0),this.words[k+E]=B&67108863}for(;k<this.length-E;k++)B=(this.words[k+E]|0)+K,K=B>>26,this.words[k+E]=B&67108863;if(K===0)return this._strip();for(r(K===-1),K=0,k=0;k<this.length;k++)B=-(this.words[k]|0)+K,K=B>>26,this.words[k]=B&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(m,b){var E=this.length-m.length,A=this.clone(),k=m,B=k.words[k.length-1]|0,K=this._countBits(B);E=26-K,E!==0&&(k=k.ushln(E),A.iushln(E),B=k.words[k.length-1]|0);var U=A.length-k.length,x;if(b!=="mod"){x=new o(null),x.length=U+1,x.words=new Array(x.length);for(var j=0;j<x.length;j++)x.words[j]=0}var ie=A.clone()._ishlnsubmul(k,1,U);ie.negative===0&&(A=ie,x&&(x.words[U]=1));for(var D=U-1;D>=0;D--){var Y=(A.words[k.length+D]|0)*67108864+(A.words[k.length+D-1]|0);for(Y=Math.min(Y/B|0,67108863),A._ishlnsubmul(k,Y,D);A.negative!==0;)Y--,A.negative=0,A._ishlnsubmul(k,1,D),A.isZero()||(A.negative^=1);x&&(x.words[D]=Y)}return x&&x._strip(),A._strip(),b!=="div"&&E!==0&&A.iushrn(E),{div:x||null,mod:A}},o.prototype.divmod=function(m,b,E){if(r(!m.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var A,k,B;return this.negative!==0&&m.negative===0?(B=this.neg().divmod(m,b),b!=="mod"&&(A=B.div.neg()),b!=="div"&&(k=B.mod.neg(),E&&k.negative!==0&&k.iadd(m)),{div:A,mod:k}):this.negative===0&&m.negative!==0?(B=this.divmod(m.neg(),b),b!=="mod"&&(A=B.div.neg()),{div:A,mod:B.mod}):(this.negative&m.negative)!==0?(B=this.neg().divmod(m.neg(),b),b!=="div"&&(k=B.mod.neg(),E&&k.negative!==0&&k.isub(m)),{div:B.div,mod:k}):m.length>this.length||this.cmp(m)<0?{div:new o(0),mod:this}:m.length===1?b==="div"?{div:this.divn(m.words[0]),mod:null}:b==="mod"?{div:null,mod:new o(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new o(this.modrn(m.words[0]))}:this._wordDiv(m,b)},o.prototype.div=function(m){return this.divmod(m,"div",!1).div},o.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},o.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},o.prototype.divRound=function(m){var b=this.divmod(m);if(b.mod.isZero())return b.div;var E=b.div.negative!==0?b.mod.isub(m):b.mod,A=m.ushrn(1),k=m.andln(1),B=E.cmp(A);return B<0||k===1&&B===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},o.prototype.modrn=function(m){var b=m<0;b&&(m=-m),r(m<=67108863);for(var E=(1<<26)%m,A=0,k=this.length-1;k>=0;k--)A=(E*A+(this.words[k]|0))%m;return b?-A:A},o.prototype.modn=function(m){return this.modrn(m)},o.prototype.idivn=function(m){var b=m<0;b&&(m=-m),r(m<=67108863);for(var E=0,A=this.length-1;A>=0;A--){var k=(this.words[A]|0)+E*67108864;this.words[A]=k/m|0,E=k%m}return this._strip(),b?this.ineg():this},o.prototype.divn=function(m){return this.clone().idivn(m)},o.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var b=this,E=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new o(1),k=new o(0),B=new o(0),K=new o(1),U=0;b.isEven()&&E.isEven();)b.iushrn(1),E.iushrn(1),++U;for(var x=E.clone(),j=b.clone();!b.isZero();){for(var ie=0,D=1;(b.words[0]&D)===0&&ie<26;++ie,D<<=1);if(ie>0)for(b.iushrn(ie);ie-- >0;)(A.isOdd()||k.isOdd())&&(A.iadd(x),k.isub(j)),A.iushrn(1),k.iushrn(1);for(var Y=0,ne=1;(E.words[0]&ne)===0&&Y<26;++Y,ne<<=1);if(Y>0)for(E.iushrn(Y);Y-- >0;)(B.isOdd()||K.isOdd())&&(B.iadd(x),K.isub(j)),B.iushrn(1),K.iushrn(1);b.cmp(E)>=0?(b.isub(E),A.isub(B),k.isub(K)):(E.isub(b),B.isub(A),K.isub(k))}return{a:B,b:K,gcd:E.iushln(U)}},o.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var b=this,E=m.clone();b.negative!==0?b=b.umod(m):b=b.clone();for(var A=new o(1),k=new o(0),B=E.clone();b.cmpn(1)>0&&E.cmpn(1)>0;){for(var K=0,U=1;(b.words[0]&U)===0&&K<26;++K,U<<=1);if(K>0)for(b.iushrn(K);K-- >0;)A.isOdd()&&A.iadd(B),A.iushrn(1);for(var x=0,j=1;(E.words[0]&j)===0&&x<26;++x,j<<=1);if(x>0)for(E.iushrn(x);x-- >0;)k.isOdd()&&k.iadd(B),k.iushrn(1);b.cmp(E)>=0?(b.isub(E),A.isub(k)):(E.isub(b),k.isub(A))}var ie;return b.cmpn(1)===0?ie=A:ie=k,ie.cmpn(0)<0&&ie.iadd(m),ie},o.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var b=this.clone(),E=m.clone();b.negative=0,E.negative=0;for(var A=0;b.isEven()&&E.isEven();A++)b.iushrn(1),E.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;E.isEven();)E.iushrn(1);var k=b.cmp(E);if(k<0){var B=b;b=E,E=B}else if(k===0||E.cmpn(1)===0)break;b.isub(E)}while(!0);return E.iushln(A)},o.prototype.invm=function(m){return this.egcd(m).a.umod(m)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(m){return this.words[0]&m},o.prototype.bincn=function(m){r(typeof m=="number");var b=m%26,E=(m-b)/26,A=1<<b;if(this.length<=E)return this._expand(E+1),this.words[E]|=A,this;for(var k=A,B=E;k!==0&&B<this.length;B++){var K=this.words[B]|0;K+=k,k=K>>>26,K&=67108863,this.words[B]=K}return k!==0&&(this.words[B]=k,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(m){var b=m<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this._strip();var E;if(this.length>1)E=1;else{b&&(m=-m),r(m<=67108863,"Number is too big");var A=this.words[0]|0;E=A===m?0:A<m?-1:1}return this.negative!==0?-E|0:E},o.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var b=this.ucmp(m);return this.negative!==0?-b|0:b},o.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var b=0,E=this.length-1;E>=0;E--){var A=this.words[E]|0,k=m.words[E]|0;if(A!==k){A<k?b=-1:A>k&&(b=1);break}}return b},o.prototype.gtn=function(m){return this.cmpn(m)===1},o.prototype.gt=function(m){return this.cmp(m)===1},o.prototype.gten=function(m){return this.cmpn(m)>=0},o.prototype.gte=function(m){return this.cmp(m)>=0},o.prototype.ltn=function(m){return this.cmpn(m)===-1},o.prototype.lt=function(m){return this.cmp(m)===-1},o.prototype.lten=function(m){return this.cmpn(m)<=0},o.prototype.lte=function(m){return this.cmp(m)<=0},o.prototype.eqn=function(m){return this.cmpn(m)===0},o.prototype.eq=function(m){return this.cmp(m)===0},o.red=function(m){return new fe(m)},o.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)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(m){return this.red=m,this},o.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},o.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},o.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},o.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},o.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},o.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},o.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},o.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var G={k256:null,p224:null,p192:null,p25519:null};function J(R,m){this.name=R,this.p=new o(m,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}J.prototype._tmp=function(){var m=new o(null);return m.words=new Array(Math.ceil(this.n/13)),m},J.prototype.ireduce=function(m){var b=m,E;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),E=b.bitLength();while(E>this.n);var A=E<this.n?-1:b.ucmp(this.p);return A===0?(b.words[0]=0,b.length=1):A>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},J.prototype.split=function(m,b){m.iushrn(this.n,0,b)},J.prototype.imulK=function(m){return m.imul(this.k)};function V(){J.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(V,J),V.prototype.split=function(m,b){for(var E=4194303,A=Math.min(m.length,9),k=0;k<A;k++)b.words[k]=m.words[k];if(b.length=A,m.length<=9){m.words[0]=0,m.length=1;return}var B=m.words[9];for(b.words[b.length++]=B&E,k=10;k<m.length;k++){var K=m.words[k]|0;m.words[k-10]=(K&E)<<4|B>>>22,B=K}B>>>=22,m.words[k-10]=B,B===0&&m.length>10?m.length-=10:m.length-=9},V.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var b=0,E=0;E<m.length;E++){var A=m.words[E]|0;b+=A*977,m.words[E]=b&67108863,b=A*64+(b/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function q(){J.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(q,J);function ce(){J.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(ce,J);function me(){J.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(me,J),me.prototype.imulK=function(m){for(var b=0,E=0;E<m.length;E++){var A=(m.words[E]|0)*19+b,k=A&67108863;A>>>=26,m.words[E]=k,b=A}return b!==0&&(m.words[m.length++]=b),m},o._prime=function(m){if(G[m])return G[m];var b;if(m==="k256")b=new V;else if(m==="p224")b=new q;else if(m==="p192")b=new ce;else if(m==="p25519")b=new me;else throw new Error("Unknown prime "+m);return G[m]=b,b};function fe(R){if(typeof R=="string"){var m=o._prime(R);this.m=m.p,this.prime=m}else r(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}fe.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},fe.prototype._verify2=function(m,b){r((m.negative|b.negative)===0,"red works only with positives"),r(m.red&&m.red===b.red,"red works only with red numbers")},fe.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(u(m,m.umod(this.m)._forceRed(this)),m)},fe.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},fe.prototype.add=function(m,b){this._verify2(m,b);var E=m.add(b);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},fe.prototype.iadd=function(m,b){this._verify2(m,b);var E=m.iadd(b);return E.cmp(this.m)>=0&&E.isub(this.m),E},fe.prototype.sub=function(m,b){this._verify2(m,b);var E=m.sub(b);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},fe.prototype.isub=function(m,b){this._verify2(m,b);var E=m.isub(b);return E.cmpn(0)<0&&E.iadd(this.m),E},fe.prototype.shl=function(m,b){return this._verify1(m),this.imod(m.ushln(b))},fe.prototype.imul=function(m,b){return this._verify2(m,b),this.imod(m.imul(b))},fe.prototype.mul=function(m,b){return this._verify2(m,b),this.imod(m.mul(b))},fe.prototype.isqr=function(m){return this.imul(m,m.clone())},fe.prototype.sqr=function(m){return this.mul(m,m)},fe.prototype.sqrt=function(m){if(m.isZero())return m.clone();var b=this.m.andln(3);if(r(b%2===1),b===3){var E=this.m.add(new o(1)).iushrn(2);return this.pow(m,E)}for(var A=this.m.subn(1),k=0;!A.isZero()&&A.andln(1)===0;)k++,A.iushrn(1);r(!A.isZero());var B=new o(1).toRed(this),K=B.redNeg(),U=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new o(2*x*x).toRed(this);this.pow(x,U).cmp(K)!==0;)x.redIAdd(K);for(var j=this.pow(x,A),ie=this.pow(m,A.addn(1).iushrn(1)),D=this.pow(m,A),Y=k;D.cmp(B)!==0;){for(var ne=D,ae=0;ne.cmp(B)!==0;ae++)ne=ne.redSqr();r(ae<Y);var he=this.pow(j,new o(1).iushln(Y-ae-1));ie=ie.redMul(he),j=he.redSqr(),D=D.redMul(j),Y=ae}return ie},fe.prototype.invm=function(m){var b=m._invmp(this.m);return b.negative!==0?(b.negative=0,this.imod(b).redNeg()):this.imod(b)},fe.prototype.pow=function(m,b){if(b.isZero())return new o(1).toRed(this);if(b.cmpn(1)===0)return m.clone();var E=4,A=new Array(1<<E);A[0]=new o(1).toRed(this),A[1]=m;for(var k=2;k<A.length;k++)A[k]=this.mul(A[k-1],m);var B=A[0],K=0,U=0,x=b.bitLength()%26;for(x===0&&(x=26),k=b.length-1;k>=0;k--){for(var j=b.words[k],ie=x-1;ie>=0;ie--){var D=j>>ie&1;if(B!==A[0]&&(B=this.sqr(B)),D===0&&K===0){U=0;continue}K<<=1,K|=D,U++,!(U!==E&&(k!==0||ie!==0))&&(B=this.mul(B,A[K]),U=0,K=0)}x=26}return B},fe.prototype.convertTo=function(m){var b=m.umod(this.m);return b===m?b.clone():b},fe.prototype.convertFrom=function(m){var b=m.clone();return b.red=null,b},o.mont=function(m){return new X(m)};function X(R){fe.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(X,fe),X.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},X.prototype.convertFrom=function(m){var b=this.imod(m.mul(this.rinv));return b.red=null,b},X.prototype.imul=function(m,b){if(m.isZero()||b.isZero())return m.words[0]=0,m.length=1,m;var E=m.imul(b),A=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(A).iushrn(this.shift),B=k;return k.cmp(this.m)>=0?B=k.isub(this.m):k.cmpn(0)<0&&(B=k.iadd(this.m)),B._forceRed(this)},X.prototype.mul=function(m,b){if(m.isZero()||b.isZero())return new o(0)._forceRed(this);var E=m.mul(b),A=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(A).iushrn(this.shift),B=k;return k.cmp(this.m)>=0?B=k.isub(this.m):k.cmpn(0)<0&&(B=k.iadd(this.m)),B._forceRed(this)},X.prototype.invm=function(m){var b=this.imod(m._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof _1>"u"||_1,g6)});var f5=_e(Rt=>{"use strict";c();d();f();function k1(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<ap(o,t))e[n]=t,e[r]=o,r=n;else break e}}function Do(e){return e.length===0?null:e[0]}function up(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,o=e.length,i=o>>>1;n<i;){var s=2*(n+1)-1,a=e[s],l=s+1,u=e[l];if(0>ap(a,r))l<o&&0>ap(u,a)?(e[n]=u,e[l]=r,n=l):(e[n]=a,e[s]=r,n=s);else if(l<o&&0>ap(u,r))e[n]=u,e[l]=r,n=l;else break e}}return t}function ap(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(r5=performance,Rt.unstable_now=function(){return r5.now()}):(M1=Date,n5=M1.now(),Rt.unstable_now=function(){return M1.now()-n5});var r5,M1,n5,Go=[],ls=[],vV=1,ao=null,Kr=3,cp=!1,pa=!1,yf=!1,s5=typeof setTimeout=="function"?setTimeout:null,a5=typeof clearTimeout=="function"?clearTimeout:null,o5=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L1(e){for(var t=Do(ls);t!==null;){if(t.callback===null)up(ls);else if(t.startTime<=e)up(ls),t.sortIndex=t.expirationTime,k1(Go,t);else break;t=Do(ls)}}function F1(e){if(yf=!1,L1(e),!pa)if(Do(Go)!==null)pa=!0,U1($1);else{var t=Do(ls);t!==null&&B1(F1,t.startTime-e)}}function $1(e,t){pa=!1,yf&&(yf=!1,a5(vf),vf=-1),cp=!0;var r=Kr;try{for(L1(t),ao=Do(Go);ao!==null&&(!(ao.expirationTime>t)||e&&!c5());){var n=ao.callback;if(typeof n=="function"){ao.callback=null,Kr=ao.priorityLevel;var o=n(ao.expirationTime<=t);t=Rt.unstable_now(),typeof o=="function"?ao.callback=o:ao===Do(Go)&&up(Go),L1(t)}else up(Go);ao=Do(Go)}if(ao!==null)var i=!0;else{var s=Do(ls);s!==null&&B1(F1,s.startTime-t),i=!1}return i}finally{ao=null,Kr=r,cp=!1}}var fp=!1,lp=null,vf=-1,l5=5,u5=-1;function c5(){return!(Rt.unstable_now()-u5<l5)}function R1(){if(lp!==null){var e=Rt.unstable_now();u5=e;var t=!0;try{t=lp(!0,e)}finally{t?gf():(fp=!1,lp=null)}}else fp=!1}var gf;typeof o5=="function"?gf=function(){o5(R1)}:typeof MessageChannel<"u"?(N1=new MessageChannel,i5=N1.port2,N1.port1.onmessage=R1,gf=function(){i5.postMessage(null)}):gf=function(){s5(R1,0)};var N1,i5;function U1(e){lp=e,fp||(fp=!0,gf())}function B1(e,t){vf=s5(function(){e(Rt.unstable_now())},t)}Rt.unstable_IdlePriority=5;Rt.unstable_ImmediatePriority=1;Rt.unstable_LowPriority=4;Rt.unstable_NormalPriority=3;Rt.unstable_Profiling=null;Rt.unstable_UserBlockingPriority=2;Rt.unstable_cancelCallback=function(e){e.callback=null};Rt.unstable_continueExecution=function(){pa||cp||(pa=!0,U1($1))};Rt.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"):l5=0<e?Math.floor(1e3/e):5};Rt.unstable_getCurrentPriorityLevel=function(){return Kr};Rt.unstable_getFirstCallbackNode=function(){return Do(Go)};Rt.unstable_next=function(e){switch(Kr){case 1:case 2:case 3:var t=3;break;default:t=Kr}var r=Kr;Kr=t;try{return e()}finally{Kr=r}};Rt.unstable_pauseExecution=function(){};Rt.unstable_requestPaint=function(){};Rt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Kr;Kr=e;try{return t()}finally{Kr=r}};Rt.unstable_scheduleCallback=function(e,t,r){var n=Rt.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 o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:vV++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,k1(ls,e),Do(Go)===null&&e===Do(ls)&&(yf?(a5(vf),vf=-1):yf=!0,B1(F1,r-n))):(e.sortIndex=o,k1(Go,e),pa||cp||(pa=!0,U1($1))),e};Rt.unstable_shouldYield=c5;Rt.unstable_wrapCallback=function(e){var t=Kr;return function(){var r=Kr;Kr=t;try{return e.apply(this,arguments)}finally{Kr=r}}}});var h5=_e((bue,d5)=>{"use strict";c();d();f();d5.exports=f5()});var w8=_e(Kn=>{"use strict";c();d();f();var b4=we(),zn=h5();function xe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _4=new Set,Bf={};function Pa(e,t){Zl(e,t),Zl(e+"Capture",t)}function Zl(e,t){for(Bf[e]=t,e=0;e<t.length;e++)_4.add(t[e])}var Ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uw=Object.prototype.hasOwnProperty,wV=/^[: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]*$/,p5={},m5={};function bV(e){return uw.call(m5,e)?!0:uw.call(p5,e)?!1:wV.test(e)?m5[e]=!0:(p5[e]=!0,!1)}function _V(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 xV(e,t,r,n){if(t===null||typeof t>"u"||_V(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 ln(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var kr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kr[e]=new ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kr[t]=new ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kr[e]=new ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kr[e]=new ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kr[e]=new ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kr[e]=new ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kr[e]=new ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kr[e]=new ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kr[e]=new ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var tb=/[\-:]([a-z])/g;function rb(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(tb,rb);kr[t]=new ln(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(tb,rb);kr[t]=new ln(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(tb,rb);kr[t]=new ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kr[e]=new ln(e,1,!1,e.toLowerCase(),null,!1,!1)});kr.xlinkHref=new ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kr[e]=new ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function nb(e,t,r,n){var o=kr.hasOwnProperty(t)?kr[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xV(t,r,o,n)&&(r=null),n||o===null?bV(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Pi=b4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,dp=Symbol.for("react.element"),Rl=Symbol.for("react.portal"),Nl=Symbol.for("react.fragment"),ob=Symbol.for("react.strict_mode"),cw=Symbol.for("react.profiler"),x4=Symbol.for("react.provider"),E4=Symbol.for("react.context"),ib=Symbol.for("react.forward_ref"),fw=Symbol.for("react.suspense"),dw=Symbol.for("react.suspense_list"),sb=Symbol.for("react.memo"),cs=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var S4=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var g5=Symbol.iterator;function wf(e){return e===null||typeof e!="object"?null:(e=g5&&e[g5]||e["@@iterator"],typeof e=="function"?e:null)}var Qt=Object.assign,j1;function Pf(e){if(j1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);j1=t&&t[1]||""}return`
|
|
2
|
-
`+j1+e}var V1=!1;function z1(e,t){if(!e||V1)return"";V1=!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 o=u.stack.split(`
|
|
3
|
-
`),i=n.stack.split(`
|
|
4
|
-
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
|
|
5
|
-
`+o[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{V1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Pf(e):""}function EV(e){switch(e.tag){case 5:return Pf(e.type);case 16:return Pf("Lazy");case 13:return Pf("Suspense");case 19:return Pf("SuspenseList");case 0:case 2:case 15:return e=z1(e.type,!1),e;case 11:return e=z1(e.type.render,!1),e;case 1:return e=z1(e.type,!0),e;default:return""}}function hw(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 Nl:return"Fragment";case Rl:return"Portal";case cw:return"Profiler";case ob:return"StrictMode";case fw:return"Suspense";case dw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E4:return(e.displayName||"Context")+".Consumer";case x4:return(e._context.displayName||"Context")+".Provider";case ib:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sb:return t=e.displayName||null,t!==null?t:hw(e.type)||"Memo";case cs:t=e._payload,e=e._init;try{return hw(e(t))}catch(r){}}return null}function SV(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 hw(t);case 8:return t===ob?"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 Ss(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function C4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CV(e){var t=C4(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 o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.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 hp(e){e._valueTracker||(e._valueTracker=CV(e))}function T4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=C4(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function jp(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 pw(e,t){var r=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function y5(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ss(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 P4(e,t){t=t.checked,t!=null&&nb(e,"checked",t,!1)}function mw(e,t){P4(e,t);var r=Ss(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")?gw(e,t.type,r):t.hasOwnProperty("defaultValue")&&gw(e,t.type,Ss(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v5(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 gw(e,t,r){(t!=="number"||jp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Of=Array.isArray;function Kl(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ss(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function yw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(xe(91));return Qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function w5(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(xe(92));if(Of(r)){if(1<r.length)throw Error(xe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ss(r)}}function O4(e,t){var r=Ss(t.value),n=Ss(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 b5(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function D4(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 vw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?D4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var pp,I4=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(pp=pp||document.createElement("div"),pp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Af={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},TV=["Webkit","ms","Moz","O"];Object.keys(Af).forEach(function(e){TV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Af[t]=Af[e]})});function A4(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Af.hasOwnProperty(e)&&Af[e]?(""+t).trim():t+"px"}function M4(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=A4(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var PV=Qt({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 ww(e,t){if(t){if(PV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(xe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(xe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(xe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(xe(62))}}function bw(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 _w=null;function ab(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xw=null,ql=null,Gl=null;function _5(e){if(e=id(e)){if(typeof xw!="function")throw Error(xe(280));var t=e.stateNode;t&&(t=mm(t),xw(e.stateNode,e.type,t))}}function R4(e){ql?Gl?Gl.push(e):Gl=[e]:ql=e}function N4(){if(ql){var e=ql,t=Gl;if(Gl=ql=null,_5(e),t)for(e=0;e<t.length;e++)_5(t[e])}}function k4(e,t){return e(t)}function L4(){}var H1=!1;function F4(e,t,r){if(H1)return e(t,r);H1=!0;try{return k4(e,t,r)}finally{H1=!1,(ql!==null||Gl!==null)&&(L4(),N4())}}function Vf(e,t){var r=e.stateNode;if(r===null)return null;var n=mm(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(xe(231,t,typeof r));return r}var Ew=!1;if(Ei)try{Al={},Object.defineProperty(Al,"passive",{get:function(){Ew=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch(e){Ew=!1}var Al;function OV(e,t,r,n,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(h){this.onError(h)}}var Mf=!1,Vp=null,zp=!1,Sw=null,DV={onError:function(e){Mf=!0,Vp=e}};function IV(e,t,r,n,o,i,s,a,l){Mf=!1,Vp=null,OV.apply(DV,arguments)}function AV(e,t,r,n,o,i,s,a,l){if(IV.apply(this,arguments),Mf){if(Mf){var u=Vp;Mf=!1,Vp=null}else throw Error(xe(198));zp||(zp=!0,Sw=u)}}function Oa(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 $4(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 x5(e){if(Oa(e)!==e)throw Error(xe(188))}function MV(e){var t=e.alternate;if(!t){if(t=Oa(e),t===null)throw Error(xe(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return x5(o),e;if(i===n)return x5(o),t;i=i.sibling}throw Error(xe(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,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){for(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)throw Error(xe(189))}}if(r.alternate!==n)throw Error(xe(190))}if(r.tag!==3)throw Error(xe(188));return r.stateNode.current===r?e:t}function U4(e){return e=MV(e),e!==null?B4(e):null}function B4(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=B4(e);if(t!==null)return t;e=e.sibling}return null}var j4=zn.unstable_scheduleCallback,E5=zn.unstable_cancelCallback,RV=zn.unstable_shouldYield,NV=zn.unstable_requestPaint,ar=zn.unstable_now,kV=zn.unstable_getCurrentPriorityLevel,lb=zn.unstable_ImmediatePriority,V4=zn.unstable_UserBlockingPriority,Hp=zn.unstable_NormalPriority,LV=zn.unstable_LowPriority,z4=zn.unstable_IdlePriority,fm=null,Zo=null;function FV(e){if(Zo&&typeof Zo.onCommitFiberRoot=="function")try{Zo.onCommitFiberRoot(fm,e,void 0,(e.current.flags&128)===128)}catch(t){}}var No=Math.clz32?Math.clz32:BV,$V=Math.log,UV=Math.LN2;function BV(e){return e>>>=0,e===0?32:31-($V(e)/UV|0)|0}var mp=64,gp=4194304;function Df(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 Kp(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=Df(a):(i&=s,i!==0&&(n=Df(i)))}else s=r&~o,s!==0?n=Df(s):i!==0&&(n=Df(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&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-No(t),o=1<<r,n|=e[r],t&=~o;return n}function jV(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 VV(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-No(i),a=1<<s,l=o[s];l===-1?((a&r)===0||(a&n)!==0)&&(o[s]=jV(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Cw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function H4(){var e=mp;return mp<<=1,(mp&4194240)===0&&(mp=64),e}function K1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function nd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-No(t),e[t]=r}function zV(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 o=31-No(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function ub(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-No(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var Ot=0;function K4(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var q4,cb,G4,W4,Y4,Tw=!1,yp=[],gs=null,ys=null,vs=null,zf=new Map,Hf=new Map,ds=[],HV="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 S5(e,t){switch(e){case"focusin":case"focusout":gs=null;break;case"dragenter":case"dragleave":ys=null;break;case"mouseover":case"mouseout":vs=null;break;case"pointerover":case"pointerout":zf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hf.delete(t.pointerId)}}function bf(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=id(t),t!==null&&cb(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function KV(e,t,r,n,o){switch(t){case"focusin":return gs=bf(gs,e,t,r,n,o),!0;case"dragenter":return ys=bf(ys,e,t,r,n,o),!0;case"mouseover":return vs=bf(vs,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return zf.set(i,bf(zf.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Hf.set(i,bf(Hf.get(i)||null,e,t,r,n,o)),!0}return!1}function X4(e){var t=ya(e.target);if(t!==null){var r=Oa(t);if(r!==null){if(t=r.tag,t===13){if(t=$4(r),t!==null){e.blockedOn=t,Y4(e.priority,function(){G4(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 Ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Pw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);_w=n,r.target.dispatchEvent(n),_w=null}else return t=id(r),t!==null&&cb(t),e.blockedOn=r,!1;t.shift()}return!0}function C5(e,t,r){Ap(e)&&r.delete(t)}function qV(){Tw=!1,gs!==null&&Ap(gs)&&(gs=null),ys!==null&&Ap(ys)&&(ys=null),vs!==null&&Ap(vs)&&(vs=null),zf.forEach(C5),Hf.forEach(C5)}function _f(e,t){e.blockedOn===t&&(e.blockedOn=null,Tw||(Tw=!0,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,qV)))}function Kf(e){function t(o){return _f(o,e)}if(0<yp.length){_f(yp[0],e);for(var r=1;r<yp.length;r++){var n=yp[r];n.blockedOn===e&&(n.blockedOn=null)}}for(gs!==null&&_f(gs,e),ys!==null&&_f(ys,e),vs!==null&&_f(vs,e),zf.forEach(t),Hf.forEach(t),r=0;r<ds.length;r++)n=ds[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ds.length&&(r=ds[0],r.blockedOn===null);)X4(r),r.blockedOn===null&&ds.shift()}var Wl=Pi.ReactCurrentBatchConfig,qp=!0;function GV(e,t,r,n){var o=Ot,i=Wl.transition;Wl.transition=null;try{Ot=1,fb(e,t,r,n)}finally{Ot=o,Wl.transition=i}}function WV(e,t,r,n){var o=Ot,i=Wl.transition;Wl.transition=null;try{Ot=4,fb(e,t,r,n)}finally{Ot=o,Wl.transition=i}}function fb(e,t,r,n){if(qp){var o=Pw(e,t,r,n);if(o===null)J1(e,t,n,Gp,r),S5(e,n);else if(KV(o,e,t,r,n))n.stopPropagation();else if(S5(e,n),t&4&&-1<HV.indexOf(e)){for(;o!==null;){var i=id(o);if(i!==null&&q4(i),i=Pw(e,t,r,n),i===null&&J1(e,t,n,Gp,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else J1(e,t,n,null,r)}}var Gp=null;function Pw(e,t,r,n){if(Gp=null,e=ab(n),e=ya(e),e!==null)if(t=Oa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=$4(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 Gp=e,null}function Z4(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(kV()){case lb:return 1;case V4:return 4;case Hp:case LV:return 16;case z4:return 536870912;default:return 16}default:return 16}}var ps=null,db=null,Mp=null;function J4(){if(Mp)return Mp;var e,t=db,r=t.length,n,o="value"in ps?ps.value:ps.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===o[i-n];n++);return Mp=o.slice(e,1<n?1-n:void 0)}function Rp(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 vp(){return!0}function T5(){return!1}function Hn(e){function t(r,n,o,i,s){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?vp:T5,this.isPropagationStopped=T5,this}return Qt(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=vp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=vp)},persist:function(){},isPersistent:vp}),t}var ou={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hb=Hn(ou),od=Qt({},ou,{view:0,detail:0}),YV=Hn(od),q1,G1,xf,dm=Qt({},od,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pb,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!==xf&&(xf&&e.type==="mousemove"?(q1=e.screenX-xf.screenX,G1=e.screenY-xf.screenY):G1=q1=0,xf=e),q1)},movementY:function(e){return"movementY"in e?e.movementY:G1}}),P5=Hn(dm),XV=Qt({},dm,{dataTransfer:0}),ZV=Hn(XV),JV=Qt({},od,{relatedTarget:0}),W1=Hn(JV),QV=Qt({},ou,{animationName:0,elapsedTime:0,pseudoElement:0}),ez=Hn(QV),tz=Qt({},ou,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rz=Hn(tz),nz=Qt({},ou,{data:0}),O5=Hn(nz),oz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iz={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"},sz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function az(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sz[e])?!!t[e]:!1}function pb(){return az}var lz=Qt({},od,{key:function(e){if(e.key){var t=oz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?iz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pb,charCode:function(e){return e.type==="keypress"?Rp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uz=Hn(lz),cz=Qt({},dm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),D5=Hn(cz),fz=Qt({},od,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pb}),dz=Hn(fz),hz=Qt({},ou,{propertyName:0,elapsedTime:0,pseudoElement:0}),pz=Hn(hz),mz=Qt({},dm,{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}),gz=Hn(mz),yz=[9,13,27,32],mb=Ei&&"CompositionEvent"in window,Rf=null;Ei&&"documentMode"in document&&(Rf=document.documentMode);var vz=Ei&&"TextEvent"in window&&!Rf,Q4=Ei&&(!mb||Rf&&8<Rf&&11>=Rf),I5=String.fromCharCode(32),A5=!1;function eC(e,t){switch(e){case"keyup":return yz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kl=!1;function wz(e,t){switch(e){case"compositionend":return tC(t);case"keypress":return t.which!==32?null:(A5=!0,I5);case"textInput":return e=t.data,e===I5&&A5?null:e;default:return null}}function bz(e,t){if(kl)return e==="compositionend"||!mb&&eC(e,t)?(e=J4(),Mp=db=ps=null,kl=!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 Q4&&t.locale!=="ko"?null:t.data;default:return null}}var _z={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 M5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_z[e.type]:t==="textarea"}function rC(e,t,r,n){R4(n),t=Wp(t,"onChange"),0<t.length&&(r=new hb("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Nf=null,qf=null;function xz(e){hC(e,0)}function hm(e){var t=$l(e);if(T4(t))return e}function Ez(e,t){if(e==="change")return t}var nC=!1;Ei&&(Ei?(bp="oninput"in document,bp||(Y1=document.createElement("div"),Y1.setAttribute("oninput","return;"),bp=typeof Y1.oninput=="function"),wp=bp):wp=!1,nC=wp&&(!document.documentMode||9<document.documentMode));var wp,bp,Y1;function R5(){Nf&&(Nf.detachEvent("onpropertychange",oC),qf=Nf=null)}function oC(e){if(e.propertyName==="value"&&hm(qf)){var t=[];rC(t,qf,e,ab(e)),F4(xz,t)}}function Sz(e,t,r){e==="focusin"?(R5(),Nf=t,qf=r,Nf.attachEvent("onpropertychange",oC)):e==="focusout"&&R5()}function Cz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hm(qf)}function Tz(e,t){if(e==="click")return hm(t)}function Pz(e,t){if(e==="input"||e==="change")return hm(t)}function Oz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lo=typeof Object.is=="function"?Object.is:Oz;function Gf(e,t){if(Lo(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 o=r[n];if(!uw.call(t,o)||!Lo(e[o],t[o]))return!1}return!0}function N5(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function k5(e,t){var r=N5(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=N5(r)}}function iC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sC(){for(var e=window,t=jp();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=jp(e.document)}return t}function gb(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 Dz(e){var t=sC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&iC(r.ownerDocument.documentElement,r)){if(n!==null&&gb(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 o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=k5(r,i);var s=k5(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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 Iz=Ei&&"documentMode"in document&&11>=document.documentMode,Ll=null,Ow=null,kf=null,Dw=!1;function L5(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Dw||Ll==null||Ll!==jp(n)||(n=Ll,"selectionStart"in n&&gb(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}),kf&&Gf(kf,n)||(kf=n,n=Wp(Ow,"onSelect"),0<n.length&&(t=new hb("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ll)))}function _p(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Fl={animationend:_p("Animation","AnimationEnd"),animationiteration:_p("Animation","AnimationIteration"),animationstart:_p("Animation","AnimationStart"),transitionend:_p("Transition","TransitionEnd")},X1={},aC={};Ei&&(aC=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function pm(e){if(X1[e])return X1[e];if(!Fl[e])return e;var t=Fl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in aC)return X1[e]=t[r];return e}var lC=pm("animationend"),uC=pm("animationiteration"),cC=pm("animationstart"),fC=pm("transitionend"),dC=new Map,F5="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 Ts(e,t){dC.set(e,t),Pa(t,[e])}for(xp=0;xp<F5.length;xp++)Ep=F5[xp],$5=Ep.toLowerCase(),U5=Ep[0].toUpperCase()+Ep.slice(1),Ts($5,"on"+U5);var Ep,$5,U5,xp;Ts(lC,"onAnimationEnd");Ts(uC,"onAnimationIteration");Ts(cC,"onAnimationStart");Ts("dblclick","onDoubleClick");Ts("focusin","onFocus");Ts("focusout","onBlur");Ts(fC,"onTransitionEnd");Zl("onMouseEnter",["mouseout","mouseover"]);Zl("onMouseLeave",["mouseout","mouseover"]);Zl("onPointerEnter",["pointerout","pointerover"]);Zl("onPointerLeave",["pointerout","pointerover"]);Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var If="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(" "),Az=new Set("cancel close invalid load scroll toggle".split(" ").concat(If));function B5(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,AV(n,t,void 0,e),e.currentTarget=null}function hC(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=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!==i&&o.isPropagationStopped())break e;B5(o,a,u),i=l}else for(s=0;s<n.length;s++){if(a=n[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;B5(o,a,u),i=l}}}if(zp)throw e=Sw,zp=!1,Sw=null,e}function jt(e,t){var r=t[Nw];r===void 0&&(r=t[Nw]=new Set);var n=e+"__bubble";r.has(n)||(pC(t,e,2,!1),r.add(n))}function Z1(e,t,r){var n=0;t&&(n|=4),pC(r,e,n,t)}var Sp="_reactListening"+Math.random().toString(36).slice(2);function Wf(e){if(!e[Sp]){e[Sp]=!0,_4.forEach(function(r){r!=="selectionchange"&&(Az.has(r)||Z1(r,!1,e),Z1(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sp]||(t[Sp]=!0,Z1("selectionchange",!1,t))}}function pC(e,t,r,n){switch(Z4(t)){case 1:var o=GV;break;case 4:o=WV;break;default:o=fb}r=o.bind(null,t,r,e),o=void 0,!Ew||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function J1(e,t,r,n,o){var i=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===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ya(a),s===null)return;if(l=s.tag,l===5||l===6){n=i=s;continue e}a=a.parentNode}}n=n.return}F4(function(){var u=i,h=ab(r),p=[];e:{var y=dC.get(e);if(y!==void 0){var w=hb,v=e;switch(e){case"keypress":if(Rp(r)===0)break e;case"keydown":case"keyup":w=uz;break;case"focusin":v="focus",w=W1;break;case"focusout":v="blur",w=W1;break;case"beforeblur":case"afterblur":w=W1;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=P5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=ZV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=dz;break;case lC:case uC:case cC:w=ez;break;case fC:w=pz;break;case"scroll":w=YV;break;case"wheel":w=gz;break;case"copy":case"cut":case"paste":w=rz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=D5}var S=(t&4)!==0,I=!S&&e==="scroll",T=S?y!==null?y+"Capture":null:y;S=[];for(var O=u,M;O!==null;){M=O;var L=M.stateNode;if(M.tag===5&&L!==null&&(M=L,T!==null&&(L=Vf(O,T),L!=null&&S.push(Yf(O,L,M)))),I)break;O=O.return}0<S.length&&(y=new w(y,v,null,r,h),p.push({event:y,listeners:S}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",y&&r!==_w&&(v=r.relatedTarget||r.fromElement)&&(ya(v)||v[Si]))break e;if((w||y)&&(y=h.window===h?h:(y=h.ownerDocument)?y.defaultView||y.parentWindow:window,w?(v=r.relatedTarget||r.toElement,w=u,v=v?ya(v):null,v!==null&&(I=Oa(v),v!==I||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=u),w!==v)){if(S=P5,L="onMouseLeave",T="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(S=D5,L="onPointerLeave",T="onPointerEnter",O="pointer"),I=w==null?y:$l(w),M=v==null?y:$l(v),y=new S(L,O+"leave",w,r,h),y.target=I,y.relatedTarget=M,L=null,ya(h)===u&&(S=new S(T,O+"enter",v,r,h),S.target=M,S.relatedTarget=I,L=S),I=L,w&&v)t:{for(S=w,T=v,O=0,M=S;M;M=Ml(M))O++;for(M=0,L=T;L;L=Ml(L))M++;for(;0<O-M;)S=Ml(S),O--;for(;0<M-O;)T=Ml(T),M--;for(;O--;){if(S===T||T!==null&&S===T.alternate)break t;S=Ml(S),T=Ml(T)}S=null}else S=null;w!==null&&j5(p,y,w,S,!1),v!==null&&I!==null&&j5(p,I,v,S,!0)}}e:{if(y=u?$l(u):window,w=y.nodeName&&y.nodeName.toLowerCase(),w==="select"||w==="input"&&y.type==="file")var G=Ez;else if(M5(y))if(nC)G=Pz;else{G=Cz;var J=Sz}else(w=y.nodeName)&&w.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(G=Tz);if(G&&(G=G(e,u))){rC(p,G,r,h);break e}J&&J(e,y,u),e==="focusout"&&(J=y._wrapperState)&&J.controlled&&y.type==="number"&&gw(y,"number",y.value)}switch(J=u?$l(u):window,e){case"focusin":(M5(J)||J.contentEditable==="true")&&(Ll=J,Ow=u,kf=null);break;case"focusout":kf=Ow=Ll=null;break;case"mousedown":Dw=!0;break;case"contextmenu":case"mouseup":case"dragend":Dw=!1,L5(p,r,h);break;case"selectionchange":if(Iz)break;case"keydown":case"keyup":L5(p,r,h)}var V;if(mb)e:{switch(e){case"compositionstart":var q="onCompositionStart";break e;case"compositionend":q="onCompositionEnd";break e;case"compositionupdate":q="onCompositionUpdate";break e}q=void 0}else kl?eC(e,r)&&(q="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(q="onCompositionStart");q&&(Q4&&r.locale!=="ko"&&(kl||q!=="onCompositionStart"?q==="onCompositionEnd"&&kl&&(V=J4()):(ps=h,db="value"in ps?ps.value:ps.textContent,kl=!0)),J=Wp(u,q),0<J.length&&(q=new O5(q,e,null,r,h),p.push({event:q,listeners:J}),V?q.data=V:(V=tC(r),V!==null&&(q.data=V)))),(V=vz?wz(e,r):bz(e,r))&&(u=Wp(u,"onBeforeInput"),0<u.length&&(h=new O5("onBeforeInput","beforeinput",null,r,h),p.push({event:h,listeners:u}),h.data=V))}hC(p,t)})}function Yf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Wp(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Vf(e,r),i!=null&&n.unshift(Yf(e,i,o)),i=Vf(e,t),i!=null&&n.push(Yf(e,i,o))),e=e.return}return n}function Ml(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function j5(e,t,r,n,o){for(var i=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,o?(l=Vf(r,i),l!=null&&s.unshift(Yf(r,l,a))):o||(l=Vf(r,i),l!=null&&s.push(Yf(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var Mz=/\r\n?/g,Rz=/\u0000|\uFFFD/g;function V5(e){return(typeof e=="string"?e:""+e).replace(Mz,`
|
|
6
|
-
`).replace(Rz,"")}function Cp(e,t,r){if(t=V5(t),V5(e)!==t&&r)throw Error(xe(425))}function Yp(){}var Iw=null,Aw=null;function Mw(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 Rw=typeof setTimeout=="function"?setTimeout:void 0,Nz=typeof clearTimeout=="function"?clearTimeout:void 0,z5=typeof Promise=="function"?Promise:void 0,kz=typeof queueMicrotask=="function"?queueMicrotask:typeof z5<"u"?function(e){return z5.resolve(null).then(e).catch(Lz)}:Rw;function Lz(e){setTimeout(function(){throw e})}function Q1(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Kf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Kf(t)}function ws(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 H5(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 iu=Math.random().toString(36).slice(2),Xo="__reactFiber$"+iu,Xf="__reactProps$"+iu,Si="__reactContainer$"+iu,Nw="__reactEvents$"+iu,Fz="__reactListeners$"+iu,$z="__reactHandles$"+iu;function ya(e){var t=e[Xo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Si]||r[Xo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=H5(e);e!==null;){if(r=e[Xo])return r;e=H5(e)}return t}e=r,r=e.parentNode}return null}function id(e){return e=e[Xo]||e[Si],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $l(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(xe(33))}function mm(e){return e[Xf]||null}var kw=[],Ul=-1;function Ps(e){return{current:e}}function Vt(e){0>Ul||(e.current=kw[Ul],kw[Ul]=null,Ul--)}function Nt(e,t){Ul++,kw[Ul]=e.current,e.current=t}var Cs={},Yr=Ps(Cs),Cn=Ps(!1),xa=Cs;function Jl(e,t){var r=e.type.contextTypes;if(!r)return Cs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Tn(e){return e=e.childContextTypes,e!=null}function Xp(){Vt(Cn),Vt(Yr)}function K5(e,t,r){if(Yr.current!==Cs)throw Error(xe(168));Nt(Yr,t),Nt(Cn,r)}function mC(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(xe(108,SV(e)||"Unknown",o));return Qt({},r,n)}function Zp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cs,xa=Yr.current,Nt(Yr,e),Nt(Cn,Cn.current),!0}function q5(e,t,r){var n=e.stateNode;if(!n)throw Error(xe(169));r?(e=mC(e,t,xa),n.__reactInternalMemoizedMergedChildContext=e,Vt(Cn),Vt(Yr),Nt(Yr,e)):Vt(Cn),Nt(Cn,r)}var wi=null,gm=!1,ew=!1;function gC(e){wi===null?wi=[e]:wi.push(e)}function Uz(e){gm=!0,gC(e)}function Os(){if(!ew&&wi!==null){ew=!0;var e=0,t=Ot;try{var r=wi;for(Ot=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}wi=null,gm=!1}catch(o){throw wi!==null&&(wi=wi.slice(e+1)),j4(lb,Os),o}finally{Ot=t,ew=!1}}return null}var Bl=[],jl=0,Jp=null,Qp=0,lo=[],uo=0,Ea=null,bi=1,_i="";function ma(e,t){Bl[jl++]=Qp,Bl[jl++]=Jp,Jp=e,Qp=t}function yC(e,t,r){lo[uo++]=bi,lo[uo++]=_i,lo[uo++]=Ea,Ea=e;var n=bi;e=_i;var o=32-No(n)-1;n&=~(1<<o),r+=1;var i=32-No(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,bi=1<<32-No(t)+o|r<<o|n,_i=i+e}else bi=1<<i|r<<o|n,_i=e}function yb(e){e.return!==null&&(ma(e,1),yC(e,1,0))}function vb(e){for(;e===Jp;)Jp=Bl[--jl],Bl[jl]=null,Qp=Bl[--jl],Bl[jl]=null;for(;e===Ea;)Ea=lo[--uo],lo[uo]=null,_i=lo[--uo],lo[uo]=null,bi=lo[--uo],lo[uo]=null}var Vn=null,jn=null,Gt=!1,Ro=null;function vC(e,t){var r=co(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 G5(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,Vn=e,jn=ws(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Vn=e,jn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ea!==null?{id:bi,overflow:_i}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=co(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Vn=e,jn=null,!0):!1;default:return!1}}function Lw(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fw(e){if(Gt){var t=jn;if(t){var r=t;if(!G5(e,t)){if(Lw(e))throw Error(xe(418));t=ws(r.nextSibling);var n=Vn;t&&G5(e,t)?vC(n,r):(e.flags=e.flags&-4097|2,Gt=!1,Vn=e)}}else{if(Lw(e))throw Error(xe(418));e.flags=e.flags&-4097|2,Gt=!1,Vn=e}}}function W5(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vn=e}function Tp(e){if(e!==Vn)return!1;if(!Gt)return W5(e),Gt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Mw(e.type,e.memoizedProps)),t&&(t=jn)){if(Lw(e))throw wC(),Error(xe(418));for(;t;)vC(e,t),t=ws(t.nextSibling)}if(W5(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(xe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){jn=ws(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}jn=null}}else jn=Vn?ws(e.stateNode.nextSibling):null;return!0}function wC(){for(var e=jn;e;)e=ws(e.nextSibling)}function Ql(){jn=Vn=null,Gt=!1}function wb(e){Ro===null?Ro=[e]:Ro.push(e)}var Bz=Pi.ReactCurrentBatchConfig;function Ao(e,t){if(e&&e.defaultProps){t=Qt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var em=Ps(null),tm=null,Vl=null,bb=null;function _b(){bb=Vl=tm=null}function xb(e){var t=em.current;Vt(em),e._currentValue=t}function $w(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 Yl(e,t){tm=e,bb=Vl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Sn=!0),e.firstContext=null)}function ho(e){var t=e._currentValue;if(bb!==e)if(e={context:e,memoizedValue:t,next:null},Vl===null){if(tm===null)throw Error(xe(308));Vl=e,tm.dependencies={lanes:0,firstContext:e}}else Vl=Vl.next=e;return t}var va=null;function Eb(e){va===null?va=[e]:va.push(e)}function bC(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Eb(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ci(e,n)}function Ci(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 fs=!1;function Sb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _C(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 xi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(vt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ci(e,r)}return o=n.interleaved,o===null?(t.next=t,Eb(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ci(e,r)}function Np(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,ub(e,r)}}function Y5(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=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};i===null?o=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 rm(e,t,r,n){var o=e.updateQueue;fs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=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(i!==null){var p=o.baseState;s=0,h=u=l=null,a=i;do{var y=a.lane,w=a.eventTime;if((n&y)===y){h!==null&&(h=h.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(y=t,w=r,S.tag){case 1:if(v=S.payload,typeof v=="function"){p=v.call(w,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,y=typeof v=="function"?v.call(w,p,y):v,y==null)break e;p=Qt({},p,y);break e;case 2:fs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else w={eventTime:w,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(u=h=w,l=p):h=h.next=w,s|=y;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;y=a,a=y.next,y.next=null,o.lastBaseUpdate=y,o.shared.pending=null}}while(1);if(h===null&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=h,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ca|=s,e.lanes=s,e.memoizedState=p}}function X5(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(xe(191,o));o.call(n)}}}var xC=new b4.Component().refs;function Uw(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Qt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ym={isMounted:function(e){return(e=e._reactInternals)?Oa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=an(),o=xs(e),i=xi(n,o);i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,o),t!==null&&(ko(t,e,o,n),Np(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=an(),o=xs(e),i=xi(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=bs(e,i,o),t!==null&&(ko(t,e,o,n),Np(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=an(),n=xs(e),o=xi(r,n);o.tag=2,t!=null&&(o.callback=t),t=bs(e,o,n),t!==null&&(ko(t,e,n,r),Np(t,e,n))}};function Z5(e,t,r,n,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,s):t.prototype&&t.prototype.isPureReactComponent?!Gf(r,n)||!Gf(o,i):!0}function EC(e,t,r){var n=!1,o=Cs,i=t.contextType;return typeof i=="object"&&i!==null?i=ho(i):(o=Tn(t)?xa:Yr.current,n=t.contextTypes,i=(n=n!=null)?Jl(e,o):Cs),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ym,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function J5(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&&ym.enqueueReplaceState(t,t.state,null)}function Bw(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=xC,Sb(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ho(i):(i=Tn(t)?xa:Yr.current,o.context=Jl(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Uw(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ym.enqueueReplaceState(o,o.state,null),rm(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ef(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(xe(309));var n=r.stateNode}if(!n)throw Error(xe(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===xC&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(xe(284));if(!r._owner)throw Error(xe(290,e))}return e}function Pp(e,t){throw e=Object.prototype.toString.call(t),Error(xe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Q5(e){var t=e._init;return t(e._payload)}function SC(e){function t(T,O){if(e){var M=T.deletions;M===null?(T.deletions=[O],T.flags|=16):M.push(O)}}function r(T,O){if(!e)return null;for(;O!==null;)t(T,O),O=O.sibling;return null}function n(T,O){for(T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function o(T,O){return T=Es(T,O),T.index=0,T.sibling=null,T}function i(T,O,M){return T.index=M,e?(M=T.alternate,M!==null?(M=M.index,M<O?(T.flags|=2,O):M):(T.flags|=2,O)):(T.flags|=1048576,O)}function s(T){return e&&T.alternate===null&&(T.flags|=2),T}function a(T,O,M,L){return O===null||O.tag!==6?(O=aw(M,T.mode,L),O.return=T,O):(O=o(O,M),O.return=T,O)}function l(T,O,M,L){var G=M.type;return G===Nl?h(T,O,M.props.children,L,M.key):O!==null&&(O.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===cs&&Q5(G)===O.type)?(L=o(O,M.props),L.ref=Ef(T,O,M),L.return=T,L):(L=Bp(M.type,M.key,M.props,null,T.mode,L),L.ref=Ef(T,O,M),L.return=T,L)}function u(T,O,M,L){return O===null||O.tag!==4||O.stateNode.containerInfo!==M.containerInfo||O.stateNode.implementation!==M.implementation?(O=lw(M,T.mode,L),O.return=T,O):(O=o(O,M.children||[]),O.return=T,O)}function h(T,O,M,L,G){return O===null||O.tag!==7?(O=_a(M,T.mode,L,G),O.return=T,O):(O=o(O,M),O.return=T,O)}function p(T,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return O=aw(""+O,T.mode,M),O.return=T,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case dp:return M=Bp(O.type,O.key,O.props,null,T.mode,M),M.ref=Ef(T,null,O),M.return=T,M;case Rl:return O=lw(O,T.mode,M),O.return=T,O;case cs:var L=O._init;return p(T,L(O._payload),M)}if(Of(O)||wf(O))return O=_a(O,T.mode,M,null),O.return=T,O;Pp(T,O)}return null}function y(T,O,M,L){var G=O!==null?O.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return G!==null?null:a(T,O,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case dp:return M.key===G?l(T,O,M,L):null;case Rl:return M.key===G?u(T,O,M,L):null;case cs:return G=M._init,y(T,O,G(M._payload),L)}if(Of(M)||wf(M))return G!==null?null:h(T,O,M,L,null);Pp(T,M)}return null}function w(T,O,M,L,G){if(typeof L=="string"&&L!==""||typeof L=="number")return T=T.get(M)||null,a(O,T,""+L,G);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case dp:return T=T.get(L.key===null?M:L.key)||null,l(O,T,L,G);case Rl:return T=T.get(L.key===null?M:L.key)||null,u(O,T,L,G);case cs:var J=L._init;return w(T,O,M,J(L._payload),G)}if(Of(L)||wf(L))return T=T.get(M)||null,h(O,T,L,G,null);Pp(O,L)}return null}function v(T,O,M,L){for(var G=null,J=null,V=O,q=O=0,ce=null;V!==null&&q<M.length;q++){V.index>q?(ce=V,V=null):ce=V.sibling;var me=y(T,V,M[q],L);if(me===null){V===null&&(V=ce);break}e&&V&&me.alternate===null&&t(T,V),O=i(me,O,q),J===null?G=me:J.sibling=me,J=me,V=ce}if(q===M.length)return r(T,V),Gt&&ma(T,q),G;if(V===null){for(;q<M.length;q++)V=p(T,M[q],L),V!==null&&(O=i(V,O,q),J===null?G=V:J.sibling=V,J=V);return Gt&&ma(T,q),G}for(V=n(T,V);q<M.length;q++)ce=w(V,T,q,M[q],L),ce!==null&&(e&&ce.alternate!==null&&V.delete(ce.key===null?q:ce.key),O=i(ce,O,q),J===null?G=ce:J.sibling=ce,J=ce);return e&&V.forEach(function(fe){return t(T,fe)}),Gt&&ma(T,q),G}function S(T,O,M,L){var G=wf(M);if(typeof G!="function")throw Error(xe(150));if(M=G.call(M),M==null)throw Error(xe(151));for(var J=G=null,V=O,q=O=0,ce=null,me=M.next();V!==null&&!me.done;q++,me=M.next()){V.index>q?(ce=V,V=null):ce=V.sibling;var fe=y(T,V,me.value,L);if(fe===null){V===null&&(V=ce);break}e&&V&&fe.alternate===null&&t(T,V),O=i(fe,O,q),J===null?G=fe:J.sibling=fe,J=fe,V=ce}if(me.done)return r(T,V),Gt&&ma(T,q),G;if(V===null){for(;!me.done;q++,me=M.next())me=p(T,me.value,L),me!==null&&(O=i(me,O,q),J===null?G=me:J.sibling=me,J=me);return Gt&&ma(T,q),G}for(V=n(T,V);!me.done;q++,me=M.next())me=w(V,T,q,me.value,L),me!==null&&(e&&me.alternate!==null&&V.delete(me.key===null?q:me.key),O=i(me,O,q),J===null?G=me:J.sibling=me,J=me);return e&&V.forEach(function(X){return t(T,X)}),Gt&&ma(T,q),G}function I(T,O,M,L){if(typeof M=="object"&&M!==null&&M.type===Nl&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case dp:e:{for(var G=M.key,J=O;J!==null;){if(J.key===G){if(G=M.type,G===Nl){if(J.tag===7){r(T,J.sibling),O=o(J,M.props.children),O.return=T,T=O;break e}}else if(J.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===cs&&Q5(G)===J.type){r(T,J.sibling),O=o(J,M.props),O.ref=Ef(T,J,M),O.return=T,T=O;break e}r(T,J);break}else t(T,J);J=J.sibling}M.type===Nl?(O=_a(M.props.children,T.mode,L,M.key),O.return=T,T=O):(L=Bp(M.type,M.key,M.props,null,T.mode,L),L.ref=Ef(T,O,M),L.return=T,T=L)}return s(T);case Rl:e:{for(J=M.key;O!==null;){if(O.key===J)if(O.tag===4&&O.stateNode.containerInfo===M.containerInfo&&O.stateNode.implementation===M.implementation){r(T,O.sibling),O=o(O,M.children||[]),O.return=T,T=O;break e}else{r(T,O);break}else t(T,O);O=O.sibling}O=lw(M,T.mode,L),O.return=T,T=O}return s(T);case cs:return J=M._init,I(T,O,J(M._payload),L)}if(Of(M))return v(T,O,M,L);if(wf(M))return S(T,O,M,L);Pp(T,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,O!==null&&O.tag===6?(r(T,O.sibling),O=o(O,M),O.return=T,T=O):(r(T,O),O=aw(M,T.mode,L),O.return=T,T=O),s(T)):r(T,O)}return I}var eu=SC(!0),CC=SC(!1),sd={},Jo=Ps(sd),Zf=Ps(sd),Jf=Ps(sd);function wa(e){if(e===sd)throw Error(xe(174));return e}function Cb(e,t){switch(Nt(Jf,t),Nt(Zf,e),Nt(Jo,sd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vw(t,e)}Vt(Jo),Nt(Jo,t)}function tu(){Vt(Jo),Vt(Zf),Vt(Jf)}function TC(e){wa(Jf.current);var t=wa(Jo.current),r=vw(t,e.type);t!==r&&(Nt(Zf,e),Nt(Jo,r))}function Tb(e){Zf.current===e&&(Vt(Jo),Vt(Zf))}var Zt=Ps(0);function nm(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 tw=[];function Pb(){for(var e=0;e<tw.length;e++)tw[e]._workInProgressVersionPrimary=null;tw.length=0}var kp=Pi.ReactCurrentDispatcher,rw=Pi.ReactCurrentBatchConfig,Sa=0,Jt=null,_r=null,Ir=null,om=!1,Lf=!1,Qf=0,jz=0;function qr(){throw Error(xe(321))}function Ob(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Lo(e[r],t[r]))return!1;return!0}function Db(e,t,r,n,o,i){if(Sa=i,Jt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kp.current=e===null||e.memoizedState===null?Kz:qz,e=r(n,o),Lf){i=0;do{if(Lf=!1,Qf=0,25<=i)throw Error(xe(301));i+=1,Ir=_r=null,t.updateQueue=null,kp.current=Gz,e=r(n,o)}while(Lf)}if(kp.current=im,t=_r!==null&&_r.next!==null,Sa=0,Ir=_r=Jt=null,om=!1,t)throw Error(xe(300));return e}function Ib(){var e=Qf!==0;return Qf=0,e}function Yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ir===null?Jt.memoizedState=Ir=e:Ir=Ir.next=e,Ir}function po(){if(_r===null){var e=Jt.alternate;e=e!==null?e.memoizedState:null}else e=_r.next;var t=Ir===null?Jt.memoizedState:Ir.next;if(t!==null)Ir=t,_r=e;else{if(e===null)throw Error(xe(310));_r=e,e={memoizedState:_r.memoizedState,baseState:_r.baseState,baseQueue:_r.baseQueue,queue:_r.queue,next:null},Ir===null?Jt.memoizedState=Ir=e:Ir=Ir.next=e}return Ir}function ed(e,t){return typeof t=="function"?t(e):t}function nw(e){var t=po(),r=t.queue;if(r===null)throw Error(xe(311));r.lastRenderedReducer=e;var n=_r,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var a=s=null,l=null,u=i;do{var h=u.lane;if((Sa&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 p={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=p,s=n):l=l.next=p,Jt.lanes|=h,Ca|=h}u=u.next}while(u!==null&&u!==i);l===null?s=n:l.next=a,Lo(n,t.memoizedState)||(Sn=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Jt.lanes|=i,Ca|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ow(e){var t=po(),r=t.queue;if(r===null)throw Error(xe(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Lo(i,t.memoizedState)||(Sn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function PC(){}function OC(e,t){var r=Jt,n=po(),o=t(),i=!Lo(n.memoizedState,o);if(i&&(n.memoizedState=o,Sn=!0),n=n.queue,Ab(AC.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Ir!==null&&Ir.memoizedState.tag&1){if(r.flags|=2048,td(9,IC.bind(null,r,n,o,t),void 0,null),Ar===null)throw Error(xe(349));(Sa&30)!==0||DC(r,t,o)}return o}function DC(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function IC(e,t,r,n){t.value=r,t.getSnapshot=n,MC(t)&&RC(e)}function AC(e,t,r){return r(function(){MC(t)&&RC(e)})}function MC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Lo(e,r)}catch(n){return!0}}function RC(e){var t=Ci(e,1);t!==null&&ko(t,e,1,-1)}function e4(e){var t=Yo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:e},t.queue=e,e=e.dispatch=Hz.bind(null,Jt,e),[t.memoizedState,e]}function td(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Jt.updateQueue,t===null?(t={lastEffect:null,stores:null},Jt.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 NC(){return po().memoizedState}function Lp(e,t,r,n){var o=Yo();Jt.flags|=e,o.memoizedState=td(1|t,r,void 0,n===void 0?null:n)}function vm(e,t,r,n){var o=po();n=n===void 0?null:n;var i=void 0;if(_r!==null){var s=_r.memoizedState;if(i=s.destroy,n!==null&&Ob(n,s.deps)){o.memoizedState=td(t,r,i,n);return}}Jt.flags|=e,o.memoizedState=td(1|t,r,i,n)}function t4(e,t){return Lp(8390656,8,e,t)}function Ab(e,t){return vm(2048,8,e,t)}function kC(e,t){return vm(4,2,e,t)}function LC(e,t){return vm(4,4,e,t)}function FC(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 $C(e,t,r){return r=r!=null?r.concat([e]):null,vm(4,4,FC.bind(null,t,e),r)}function Mb(){}function UC(e,t){var r=po();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ob(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function BC(e,t){var r=po();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ob(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function jC(e,t,r){return(Sa&21)===0?(e.baseState&&(e.baseState=!1,Sn=!0),e.memoizedState=r):(Lo(r,t)||(r=H4(),Jt.lanes|=r,Ca|=r,e.baseState=!0),t)}function Vz(e,t){var r=Ot;Ot=r!==0&&4>r?r:4,e(!0);var n=rw.transition;rw.transition={};try{e(!1),t()}finally{Ot=r,rw.transition=n}}function VC(){return po().memoizedState}function zz(e,t,r){var n=xs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},zC(e))HC(t,r);else if(r=bC(e,t,r,n),r!==null){var o=an();ko(r,e,n,o),KC(r,t,n)}}function Hz(e,t,r){var n=xs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(zC(e))HC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,Lo(a,s)){var l=t.interleaved;l===null?(o.next=o,Eb(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch(u){}finally{}r=bC(e,t,o,n),r!==null&&(o=an(),ko(r,e,n,o),KC(r,t,n))}}function zC(e){var t=e.alternate;return e===Jt||t!==null&&t===Jt}function HC(e,t){Lf=om=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function KC(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ub(e,r)}}var im={readContext:ho,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},Kz={readContext:ho,useCallback:function(e,t){return Yo().memoizedState=[e,t===void 0?null:t],e},useContext:ho,useEffect:t4,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Lp(4194308,4,FC.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lp(4,2,e,t)},useMemo:function(e,t){var r=Yo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Yo();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=zz.bind(null,Jt,e),[n.memoizedState,e]},useRef:function(e){var t=Yo();return e={current:e},t.memoizedState=e},useState:e4,useDebugValue:Mb,useDeferredValue:function(e){return Yo().memoizedState=e},useTransition:function(){var e=e4(!1),t=e[0];return e=Vz.bind(null,e[1]),Yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Jt,o=Yo();if(Gt){if(r===void 0)throw Error(xe(407));r=r()}else{if(r=t(),Ar===null)throw Error(xe(349));(Sa&30)!==0||DC(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,t4(AC.bind(null,n,i,e),[e]),n.flags|=2048,td(9,IC.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Yo(),t=Ar.identifierPrefix;if(Gt){var r=_i,n=bi;r=(n&~(1<<32-No(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=jz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qz={readContext:ho,useCallback:UC,useContext:ho,useEffect:Ab,useImperativeHandle:$C,useInsertionEffect:kC,useLayoutEffect:LC,useMemo:BC,useReducer:nw,useRef:NC,useState:function(){return nw(ed)},useDebugValue:Mb,useDeferredValue:function(e){var t=po();return jC(t,_r.memoizedState,e)},useTransition:function(){var e=nw(ed)[0],t=po().memoizedState;return[e,t]},useMutableSource:PC,useSyncExternalStore:OC,useId:VC,unstable_isNewReconciler:!1},Gz={readContext:ho,useCallback:UC,useContext:ho,useEffect:Ab,useImperativeHandle:$C,useInsertionEffect:kC,useLayoutEffect:LC,useMemo:BC,useReducer:ow,useRef:NC,useState:function(){return ow(ed)},useDebugValue:Mb,useDeferredValue:function(e){var t=po();return _r===null?t.memoizedState=e:jC(t,_r.memoizedState,e)},useTransition:function(){var e=ow(ed)[0],t=po().memoizedState;return[e,t]},useMutableSource:PC,useSyncExternalStore:OC,useId:VC,unstable_isNewReconciler:!1};function ru(e,t){try{var r="",n=t;do r+=EV(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function iw(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function jw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Wz=typeof WeakMap=="function"?WeakMap:Map;function qC(e,t,r){r=xi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){am||(am=!0,Zw=n),jw(e,t)},r}function GC(e,t,r){r=xi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){jw(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){jw(e,t),typeof n!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function r4(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Wz;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=lH.bind(null,e,t,r),t.then(e,e))}function n4(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 o4(e,t,r,n,o){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=xi(-1,1),t.tag=2,bs(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Yz=Pi.ReactCurrentOwner,Sn=!1;function sn(e,t,r,n){t.child=e===null?CC(t,null,r,n):eu(t,e.child,r,n)}function i4(e,t,r,n,o){r=r.render;var i=t.ref;return Yl(t,o),n=Db(e,t,r,n,i,o),r=Ib(),e!==null&&!Sn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ti(e,t,o)):(Gt&&r&&yb(t),t.flags|=1,sn(e,t,n,o),t.child)}function s4(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!Bb(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,WC(e,t,i,n,o)):(e=Bp(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:Gf,r(s,n)&&e.ref===t.ref)return Ti(e,t,o)}return t.flags|=1,e=Es(i,n),e.ref=t.ref,e.return=t,t.child=e}function WC(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Gf(i,n)&&e.ref===t.ref)if(Sn=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Sn=!0);else return t.lanes=e.lanes,Ti(e,t,o)}return Vw(e,t,r,n,o)}function YC(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nt(Hl,Bn),Bn|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nt(Hl,Bn),Bn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Nt(Hl,Bn),Bn|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Nt(Hl,Bn),Bn|=n;return sn(e,t,o,r),t.child}function XC(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Vw(e,t,r,n,o){var i=Tn(r)?xa:Yr.current;return i=Jl(t,i),Yl(t,o),r=Db(e,t,r,n,i,o),n=Ib(),e!==null&&!Sn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ti(e,t,o)):(Gt&&n&&yb(t),t.flags|=1,sn(e,t,r,o),t.child)}function a4(e,t,r,n,o){if(Tn(r)){var i=!0;Zp(t)}else i=!1;if(Yl(t,o),t.stateNode===null)Fp(e,t),EC(t,r,n),Bw(t,r,n,o),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=ho(u):(u=Tn(r)?xa:Yr.current,u=Jl(t,u));var h=r.getDerivedStateFromProps,p=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&J5(t,s,n,u),fs=!1;var y=t.memoizedState;s.state=y,rm(t,n,s,o),l=t.memoizedState,a!==n||y!==l||Cn.current||fs?(typeof h=="function"&&(Uw(t,r,h,n),l=t.memoizedState),(a=fs||Z5(t,r,a,n,y,l,u))?(p||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,_C(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ao(t.type,a),s.props=u,p=t.pendingProps,y=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=ho(l):(l=Tn(r)?xa:Yr.current,l=Jl(t,l));var w=r.getDerivedStateFromProps;(h=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||y!==l)&&J5(t,s,n,l),fs=!1,y=t.memoizedState,s.state=y,rm(t,n,s,o);var v=t.memoizedState;a!==p||y!==v||Cn.current||fs?(typeof w=="function"&&(Uw(t,r,w,n),v=t.memoizedState),(u=fs||Z5(t,r,u,n,y,v,l)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),s.props=n,s.state=v,s.context=l,n=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),n=!1)}return zw(e,t,r,n,i,o)}function zw(e,t,r,n,o,i){XC(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&q5(t,r,!1),Ti(e,t,i);n=t.stateNode,Yz.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=eu(t,e.child,null,i),t.child=eu(t,null,a,i)):sn(e,t,a,i),t.memoizedState=n.state,o&&q5(t,r,!0),t.child}function ZC(e){var t=e.stateNode;t.pendingContext?K5(e,t.pendingContext,t.pendingContext!==t.context):t.context&&K5(e,t.context,!1),Cb(e,t.containerInfo)}function l4(e,t,r,n,o){return Ql(),wb(o),t.flags|=256,sn(e,t,r,n),t.child}var Hw={dehydrated:null,treeContext:null,retryLane:0};function Kw(e){return{baseLanes:e,cachePool:null,transitions:null}}function JC(e,t,r){var n=t.pendingProps,o=Zt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Nt(Zt,o&1),e===null)return Fw(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,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=_m(s,n,0,null),e=_a(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Kw(r),t.memoizedState=Hw,e):Rb(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Xz(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Es(o,l),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Es(a,i):(i=_a(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?Kw(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Hw,n}return i=e.child,e=i.sibling,n=Es(i,{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 Rb(e,t){return t=_m({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Op(e,t,r,n){return n!==null&&wb(n),eu(t,e.child,null,r),e=Rb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xz(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=iw(Error(xe(422))),Op(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=_m({mode:"visible",children:n.children},o,0,null),i=_a(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&eu(t,e.child,null,s),t.child.memoizedState=Kw(s),t.memoizedState=Hw,i);if((t.mode&1)===0)return Op(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(xe(419)),n=iw(i,n,void 0),Op(e,t,s,n)}if(a=(s&e.childLanes)!==0,Sn||a){if(n=Ar,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ci(e,o),ko(n,e,o,-1))}return Ub(),n=iw(Error(xe(421))),Op(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=uH.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,jn=ws(o.nextSibling),Vn=t,Gt=!0,Ro=null,e!==null&&(lo[uo++]=bi,lo[uo++]=_i,lo[uo++]=Ea,bi=e.id,_i=e.overflow,Ea=t),t=Rb(t,n.children),t.flags|=4096,t)}function u4(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),$w(e.return,t,r)}function sw(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function QC(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(sn(e,t,n.children,r),n=Zt.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&&u4(e,r,t);else if(e.tag===19)u4(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(Nt(Zt,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&nm(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),sw(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nm(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}sw(t,!0,r,null,i);break;case"together":sw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fp(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ti(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ca|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(xe(153));if(t.child!==null){for(e=t.child,r=Es(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Es(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Zz(e,t,r){switch(t.tag){case 3:ZC(t),Ql();break;case 5:TC(t);break;case 1:Tn(t.type)&&Zp(t);break;case 4:Cb(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Nt(em,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Nt(Zt,Zt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?JC(e,t,r):(Nt(Zt,Zt.current&1),e=Ti(e,t,r),e!==null?e.sibling:null);Nt(Zt,Zt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return QC(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Nt(Zt,Zt.current),n)break;return null;case 22:case 23:return t.lanes=0,YC(e,t,r)}return Ti(e,t,r)}var e8,qw,t8,r8;e8=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}};qw=function(){};t8=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,wa(Jo.current);var i=null;switch(r){case"input":o=pw(e,o),n=pw(e,n),i=[];break;case"select":o=Qt({},o,{value:void 0}),n=Qt({},n,{value:void 0}),i=[];break;case"textarea":o=yw(e,o),n=yw(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Yp)}ww(r,n);var s;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(a=o!=null?o[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||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bf.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&jt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};r8=function(e,t,r,n){r!==n&&(t.flags|=4)};function Sf(e,t){if(!Gt)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 Gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Jz(e,t,r){var n=t.pendingProps;switch(vb(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(t),null;case 1:return Tn(t.type)&&Xp(),Gr(t),null;case 3:return n=t.stateNode,tu(),Vt(Cn),Vt(Yr),Pb(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Tp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ro!==null&&(eb(Ro),Ro=null))),qw(e,t),Gr(t),null;case 5:Tb(t);var o=wa(Jf.current);if(r=t.type,e!==null&&t.stateNode!=null)t8(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(xe(166));return Gr(t),null}if(e=wa(Jo.current),Tp(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Xo]=t,n[Xf]=i,e=(t.mode&1)!==0,r){case"dialog":jt("cancel",n),jt("close",n);break;case"iframe":case"object":case"embed":jt("load",n);break;case"video":case"audio":for(o=0;o<If.length;o++)jt(If[o],n);break;case"source":jt("error",n);break;case"img":case"image":case"link":jt("error",n),jt("load",n);break;case"details":jt("toggle",n);break;case"input":y5(n,i),jt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},jt("invalid",n);break;case"textarea":w5(n,i),jt("invalid",n)}ww(r,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Cp(n.textContent,a,e),o=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Cp(n.textContent,a,e),o=["children",""+a]):Bf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&jt("scroll",n)}switch(r){case"input":hp(n),v5(n,i,!0);break;case"textarea":hp(n),b5(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Yp)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=D4(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[Xo]=t,e[Xf]=n,e8(e,t,!1,!1),t.stateNode=e;e:{switch(s=bw(r,n),r){case"dialog":jt("cancel",e),jt("close",e),o=n;break;case"iframe":case"object":case"embed":jt("load",e),o=n;break;case"video":case"audio":for(o=0;o<If.length;o++)jt(If[o],e);o=n;break;case"source":jt("error",e),o=n;break;case"img":case"image":case"link":jt("error",e),jt("load",e),o=n;break;case"details":jt("toggle",e),o=n;break;case"input":y5(e,n),o=pw(e,n),jt("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Qt({},n,{value:void 0}),jt("invalid",e);break;case"textarea":w5(e,n),o=yw(e,n),jt("invalid",e);break;default:o=n}ww(r,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?M4(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&I4(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&jf(e,l):typeof l=="number"&&jf(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bf.hasOwnProperty(i)?l!=null&&i==="onScroll"&&jt("scroll",e):l!=null&&nb(e,i,l,s))}switch(r){case"input":hp(e),v5(e,n,!1);break;case"textarea":hp(e),b5(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ss(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Kl(e,!!n.multiple,i,!1):n.defaultValue!=null&&Kl(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Yp)}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 Gr(t),null;case 6:if(e&&t.stateNode!=null)r8(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(xe(166));if(r=wa(Jf.current),wa(Jo.current),Tp(t)){if(n=t.stateNode,r=t.memoizedProps,n[Xo]=t,(i=n.nodeValue!==r)&&(e=Vn,e!==null))switch(e.tag){case 3:Cp(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cp(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Xo]=t,t.stateNode=n}return Gr(t),null;case 13:if(Vt(Zt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Gt&&jn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)wC(),Ql(),t.flags|=98560,i=!1;else if(i=Tp(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(xe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(xe(317));i[Xo]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Gr(t),i=!1}else Ro!==null&&(eb(Ro),Ro=null),i=!0;if(!i)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||(Zt.current&1)!==0?xr===0&&(xr=3):Ub())),t.updateQueue!==null&&(t.flags|=4),Gr(t),null);case 4:return tu(),qw(e,t),e===null&&Wf(t.stateNode.containerInfo),Gr(t),null;case 10:return xb(t.type._context),Gr(t),null;case 17:return Tn(t.type)&&Xp(),Gr(t),null;case 19:if(Vt(Zt),i=t.memoizedState,i===null)return Gr(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)Sf(i,!1);else{if(xr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=nm(e),s!==null){for(t.flags|=128,Sf(i,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Nt(Zt,Zt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ar()>nu&&(t.flags|=128,n=!0,Sf(i,!1),t.lanes=4194304)}else{if(!n)if(e=nm(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Sf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Gt)return Gr(t),null}else 2*ar()-i.renderingStartTime>nu&&r!==1073741824&&(t.flags|=128,n=!0,Sf(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ar(),t.sibling=null,r=Zt.current,Nt(Zt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return $b(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Bn&1073741824)!==0&&(Gr(t),t.subtreeFlags&6&&(t.flags|=8192)):Gr(t),null;case 24:return null;case 25:return null}throw Error(xe(156,t.tag))}function Qz(e,t){switch(vb(t),t.tag){case 1:return Tn(t.type)&&Xp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tu(),Vt(Cn),Vt(Yr),Pb(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Tb(t),null;case 13:if(Vt(Zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(xe(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(Zt),null;case 4:return tu(),null;case 10:return xb(t.type._context),null;case 22:case 23:return $b(),null;case 24:return null;default:return null}}var Dp=!1,Wr=!1,eH=typeof WeakSet=="function"?WeakSet:Set,ke=null;function zl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){nr(e,t,n)}else r.current=null}function Gw(e,t,r){try{r()}catch(n){nr(e,t,n)}}var c4=!1;function tH(e,t){if(Iw=qp,e=sC(),gb(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 o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(L){r=null;break e}var s=0,a=-1,l=-1,u=0,h=0,p=e,y=null;t:for(;;){for(var w;p!==r||o!==0&&p.nodeType!==3||(a=s+o),p!==i||n!==0&&p.nodeType!==3||(l=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(w=p.firstChild)!==null;)y=p,p=w;for(;;){if(p===e)break t;if(y===r&&++u===o&&(a=s),y===i&&++h===n&&(l=s),(w=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=w}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Aw={focusedElem:e,selectionRange:r},qp=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){t=ke;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 S=v.memoizedProps,I=v.memoizedState,T=t.stateNode,O=T.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ao(t.type,S),I);T.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(xe(163))}}catch(L){nr(t,t.return,L)}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}return v=c4,c4=!1,v}function Ff(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Gw(t,r,i)}o=o.next}while(o!==n)}}function wm(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 Ww(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 n8(e){var t=e.alternate;t!==null&&(e.alternate=null,n8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xo],delete t[Xf],delete t[Nw],delete t[Fz],delete t[$z])),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 o8(e){return e.tag===5||e.tag===3||e.tag===4}function f4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o8(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 Yw(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=Yp));else if(n!==4&&(e=e.child,e!==null))for(Yw(e,t,r),e=e.sibling;e!==null;)Yw(e,t,r),e=e.sibling}function Xw(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(Xw(e,t,r),e=e.sibling;e!==null;)Xw(e,t,r),e=e.sibling}var Rr=null,Mo=!1;function us(e,t,r){for(r=r.child;r!==null;)i8(e,t,r),r=r.sibling}function i8(e,t,r){if(Zo&&typeof Zo.onCommitFiberUnmount=="function")try{Zo.onCommitFiberUnmount(fm,r)}catch(a){}switch(r.tag){case 5:Wr||zl(r,t);case 6:var n=Rr,o=Mo;Rr=null,us(e,t,r),Rr=n,Mo=o,Rr!==null&&(Mo?(e=Rr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Rr.removeChild(r.stateNode));break;case 18:Rr!==null&&(Mo?(e=Rr,r=r.stateNode,e.nodeType===8?Q1(e.parentNode,r):e.nodeType===1&&Q1(e,r),Kf(e)):Q1(Rr,r.stateNode));break;case 4:n=Rr,o=Mo,Rr=r.stateNode.containerInfo,Mo=!0,us(e,t,r),Rr=n,Mo=o;break;case 0:case 11:case 14:case 15:if(!Wr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Gw(r,t,s),o=o.next}while(o!==n)}us(e,t,r);break;case 1:if(!Wr&&(zl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){nr(r,t,a)}us(e,t,r);break;case 21:us(e,t,r);break;case 22:r.mode&1?(Wr=(n=Wr)||r.memoizedState!==null,us(e,t,r),Wr=n):us(e,t,r);break;default:us(e,t,r)}}function d4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new eH),t.forEach(function(n){var o=cH.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Io(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Rr=a.stateNode,Mo=!1;break e;case 3:Rr=a.stateNode.containerInfo,Mo=!0;break e;case 4:Rr=a.stateNode.containerInfo,Mo=!0;break e}a=a.return}if(Rr===null)throw Error(xe(160));i8(i,s,o),Rr=null,Mo=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){nr(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)s8(t,e),t=t.sibling}function s8(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Io(t,e),Wo(e),n&4){try{Ff(3,e,e.return),wm(3,e)}catch(S){nr(e,e.return,S)}try{Ff(5,e,e.return)}catch(S){nr(e,e.return,S)}}break;case 1:Io(t,e),Wo(e),n&512&&r!==null&&zl(r,r.return);break;case 5:if(Io(t,e),Wo(e),n&512&&r!==null&&zl(r,r.return),e.flags&32){var o=e.stateNode;try{jf(o,"")}catch(S){nr(e,e.return,S)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&P4(o,i),bw(a,s);var u=bw(a,i);for(s=0;s<l.length;s+=2){var h=l[s],p=l[s+1];h==="style"?M4(o,p):h==="dangerouslySetInnerHTML"?I4(o,p):h==="children"?jf(o,p):nb(o,h,p,u)}switch(a){case"input":mw(o,i);break;case"textarea":O4(o,i);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Kl(o,!!i.multiple,w,!1):y!==!!i.multiple&&(i.defaultValue!=null?Kl(o,!!i.multiple,i.defaultValue,!0):Kl(o,!!i.multiple,i.multiple?[]:"",!1))}o[Xf]=i}catch(S){nr(e,e.return,S)}}break;case 6:if(Io(t,e),Wo(e),n&4){if(e.stateNode===null)throw Error(xe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(S){nr(e,e.return,S)}}break;case 3:if(Io(t,e),Wo(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(S){nr(e,e.return,S)}break;case 4:Io(t,e),Wo(e);break;case 13:Io(t,e),Wo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Lb=ar())),n&4&&d4(e);break;case 22:if(h=r!==null&&r.memoizedState!==null,e.mode&1?(Wr=(u=Wr)||h,Io(t,e),Wr=u):Io(t,e),Wo(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!h&&(e.mode&1)!==0)for(ke=e,h=e.child;h!==null;){for(p=ke=h;ke!==null;){switch(y=ke,w=y.child,y.tag){case 0:case 11:case 14:case 15:Ff(4,y,y.return);break;case 1:zl(y,y.return);var v=y.stateNode;if(typeof v.componentWillUnmount=="function"){n=y,r=y.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){nr(n,r,S)}}break;case 5:zl(y,y.return);break;case 22:if(y.memoizedState!==null){p4(p);continue}}w!==null?(w.return=y,ke=w):p4(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{o=p.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=A4("display",s))}catch(S){nr(e,e.return,S)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(S){nr(e,e.return,S)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Io(t,e),Wo(e),n&4&&d4(e);break;case 21:break;default:Io(t,e),Wo(e)}}function Wo(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(o8(r)){var n=r;break e}r=r.return}throw Error(xe(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(jf(o,""),n.flags&=-33);var i=f4(e);Xw(e,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,a=f4(e);Yw(e,a,s);break;default:throw Error(xe(161))}}catch(l){nr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rH(e,t,r){ke=e,a8(e,t,r)}function a8(e,t,r){for(var n=(e.mode&1)!==0;ke!==null;){var o=ke,i=o.child;if(o.tag===22&&n){var s=o.memoizedState!==null||Dp;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Wr;a=Dp;var u=Wr;if(Dp=s,(Wr=l)&&!u)for(ke=o;ke!==null;)s=ke,l=s.child,s.tag===22&&s.memoizedState!==null?m4(o):l!==null?(l.return=s,ke=l):m4(o);for(;i!==null;)ke=i,a8(i,t,r),i=i.sibling;ke=o,Dp=a,Wr=u}h4(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,ke=i):h4(e,t,r)}}function h4(e){for(;ke!==null;){var t=ke;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Wr||wm(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Wr)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Ao(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&X5(t,i,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}X5(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 p=h.dehydrated;p!==null&&Kf(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(xe(163))}Wr||t.flags&512&&Ww(t)}catch(y){nr(t,t.return,y)}}if(t===e){ke=null;break}if(r=t.sibling,r!==null){r.return=t.return,ke=r;break}ke=t.return}}function p4(e){for(;ke!==null;){var t=ke;if(t===e){ke=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ke=r;break}ke=t.return}}function m4(e){for(;ke!==null;){var t=ke;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{wm(4,t)}catch(l){nr(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){nr(t,o,l)}}var i=t.return;try{Ww(t)}catch(l){nr(t,i,l)}break;case 5:var s=t.return;try{Ww(t)}catch(l){nr(t,s,l)}}}catch(l){nr(t,t.return,l)}if(t===e){ke=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ke=a;break}ke=t.return}}var nH=Math.ceil,sm=Pi.ReactCurrentDispatcher,Nb=Pi.ReactCurrentOwner,fo=Pi.ReactCurrentBatchConfig,vt=0,Ar=null,pr=null,Nr=0,Bn=0,Hl=Ps(0),xr=0,rd=null,Ca=0,bm=0,kb=0,$f=null,En=null,Lb=0,nu=1/0,vi=null,am=!1,Zw=null,_s=null,Ip=!1,ms=null,lm=0,Uf=0,Jw=null,$p=-1,Up=0;function an(){return(vt&6)!==0?ar():$p!==-1?$p:$p=ar()}function xs(e){return(e.mode&1)===0?1:(vt&2)!==0&&Nr!==0?Nr&-Nr:Bz.transition!==null?(Up===0&&(Up=H4()),Up):(e=Ot,e!==0||(e=window.event,e=e===void 0?16:Z4(e.type)),e)}function ko(e,t,r,n){if(50<Uf)throw Uf=0,Jw=null,Error(xe(185));nd(e,r,n),((vt&2)===0||e!==Ar)&&(e===Ar&&((vt&2)===0&&(bm|=r),xr===4&&hs(e,Nr)),Pn(e,n),r===1&&vt===0&&(t.mode&1)===0&&(nu=ar()+500,gm&&Os()))}function Pn(e,t){var r=e.callbackNode;VV(e,t);var n=Kp(e,e===Ar?Nr:0);if(n===0)r!==null&&E5(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&E5(r),t===1)e.tag===0?Uz(g4.bind(null,e)):gC(g4.bind(null,e)),kz(function(){(vt&6)===0&&Os()}),r=null;else{switch(K4(n)){case 1:r=lb;break;case 4:r=V4;break;case 16:r=Hp;break;case 536870912:r=z4;break;default:r=Hp}r=m8(r,l8.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function l8(e,t){if($p=-1,Up=0,(vt&6)!==0)throw Error(xe(327));var r=e.callbackNode;if(Xl()&&e.callbackNode!==r)return null;var n=Kp(e,e===Ar?Nr:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=um(e,n);else{t=n;var o=vt;vt|=2;var i=c8();(Ar!==e||Nr!==t)&&(vi=null,nu=ar()+500,ba(e,t));do try{sH();break}catch(a){u8(e,a)}while(1);_b(),sm.current=i,vt=o,pr!==null?t=0:(Ar=null,Nr=0,t=xr)}if(t!==0){if(t===2&&(o=Cw(e),o!==0&&(n=o,t=Qw(e,o))),t===1)throw r=rd,ba(e,0),hs(e,n),Pn(e,ar()),r;if(t===6)hs(e,n);else{if(o=e.current.alternate,(n&30)===0&&!oH(o)&&(t=um(e,n),t===2&&(i=Cw(e),i!==0&&(n=i,t=Qw(e,i))),t===1))throw r=rd,ba(e,0),hs(e,n),Pn(e,ar()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(xe(345));case 2:ga(e,En,vi);break;case 3:if(hs(e,n),(n&130023424)===n&&(t=Lb+500-ar(),10<t)){if(Kp(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){an(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Rw(ga.bind(null,e,En,vi),t);break}ga(e,En,vi);break;case 4:if(hs(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-No(n);i=1<<s,s=t[s],s>o&&(o=s),n&=~i}if(n=o,n=ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*nH(n/1960))-n,10<n){e.timeoutHandle=Rw(ga.bind(null,e,En,vi),n);break}ga(e,En,vi);break;case 5:ga(e,En,vi);break;default:throw Error(xe(329))}}}return Pn(e,ar()),e.callbackNode===r?l8.bind(null,e):null}function Qw(e,t){var r=$f;return e.current.memoizedState.isDehydrated&&(ba(e,t).flags|=256),e=um(e,t),e!==2&&(t=En,En=r,t!==null&&eb(t)),e}function eb(e){En===null?En=e:En.push.apply(En,e)}function oH(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 o=r[n],i=o.getSnapshot;o=o.value;try{if(!Lo(i(),o))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 hs(e,t){for(t&=~kb,t&=~bm,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-No(t),n=1<<r;e[r]=-1,t&=~n}}function g4(e){if((vt&6)!==0)throw Error(xe(327));Xl();var t=Kp(e,0);if((t&1)===0)return Pn(e,ar()),null;var r=um(e,t);if(e.tag!==0&&r===2){var n=Cw(e);n!==0&&(t=n,r=Qw(e,n))}if(r===1)throw r=rd,ba(e,0),hs(e,t),Pn(e,ar()),r;if(r===6)throw Error(xe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ga(e,En,vi),Pn(e,ar()),null}function Fb(e,t){var r=vt;vt|=1;try{return e(t)}finally{vt=r,vt===0&&(nu=ar()+500,gm&&Os())}}function Ta(e){ms!==null&&ms.tag===0&&(vt&6)===0&&Xl();var t=vt;vt|=1;var r=fo.transition,n=Ot;try{if(fo.transition=null,Ot=1,e)return e()}finally{Ot=n,fo.transition=r,vt=t,(vt&6)===0&&Os()}}function $b(){Bn=Hl.current,Vt(Hl)}function ba(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Nz(r)),pr!==null)for(r=pr.return;r!==null;){var n=r;switch(vb(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Xp();break;case 3:tu(),Vt(Cn),Vt(Yr),Pb();break;case 5:Tb(n);break;case 4:tu();break;case 13:Vt(Zt);break;case 19:Vt(Zt);break;case 10:xb(n.type._context);break;case 22:case 23:$b()}r=r.return}if(Ar=e,pr=e=Es(e.current,null),Nr=Bn=t,xr=0,rd=null,kb=bm=Ca=0,En=$f=null,va!==null){for(t=0;t<va.length;t++)if(r=va[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var s=i.next;i.next=o,n.next=s}r.pending=n}va=null}return e}function u8(e,t){do{var r=pr;try{if(_b(),kp.current=im,om){for(var n=Jt.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}om=!1}if(Sa=0,Ir=_r=Jt=null,Lf=!1,Qf=0,Nb.current=null,r===null||r.return===null){xr=1,rd=t,pr=null;break}e:{var i=e,s=r.return,a=r,l=t;if(t=Nr,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,h=a,p=h.tag;if((h.mode&1)===0&&(p===0||p===11||p===15)){var y=h.alternate;y?(h.updateQueue=y.updateQueue,h.memoizedState=y.memoizedState,h.lanes=y.lanes):(h.updateQueue=null,h.memoizedState=null)}var w=n4(s);if(w!==null){w.flags&=-257,o4(w,s,a,i,t),w.mode&1&&r4(i,u,t),t=w,l=u;var v=t.updateQueue;if(v===null){var S=new Set;S.add(l),t.updateQueue=S}else v.add(l);break e}else{if((t&1)===0){r4(i,u,t),Ub();break e}l=Error(xe(426))}}else if(Gt&&a.mode&1){var I=n4(s);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),o4(I,s,a,i,t),wb(ru(l,a));break e}}i=l=ru(l,a),xr!==4&&(xr=2),$f===null?$f=[i]:$f.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var T=qC(i,l,t);Y5(i,T);break e;case 1:a=l;var O=i.type,M=i.stateNode;if((i.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(_s===null||!_s.has(M)))){i.flags|=65536,t&=-t,i.lanes|=t;var L=GC(i,a,t);Y5(i,L);break e}}i=i.return}while(i!==null)}d8(r)}catch(G){t=G,pr===r&&r!==null&&(pr=r=r.return);continue}break}while(1)}function c8(){var e=sm.current;return sm.current=im,e===null?im:e}function Ub(){(xr===0||xr===3||xr===2)&&(xr=4),Ar===null||(Ca&268435455)===0&&(bm&268435455)===0||hs(Ar,Nr)}function um(e,t){var r=vt;vt|=2;var n=c8();(Ar!==e||Nr!==t)&&(vi=null,ba(e,t));do try{iH();break}catch(o){u8(e,o)}while(1);if(_b(),vt=r,sm.current=n,pr!==null)throw Error(xe(261));return Ar=null,Nr=0,xr}function iH(){for(;pr!==null;)f8(pr)}function sH(){for(;pr!==null&&!RV();)f8(pr)}function f8(e){var t=p8(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?d8(e):pr=t,Nb.current=null}function d8(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Jz(r,t,Bn),r!==null){pr=r;return}}else{if(r=Qz(r,t),r!==null){r.flags&=32767,pr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xr=6,pr=null;return}}if(t=t.sibling,t!==null){pr=t;return}pr=t=e}while(t!==null);xr===0&&(xr=5)}function ga(e,t,r){var n=Ot,o=fo.transition;try{fo.transition=null,Ot=1,aH(e,t,r,n)}finally{fo.transition=o,Ot=n}return null}function aH(e,t,r,n){do Xl();while(ms!==null);if((vt&6)!==0)throw Error(xe(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(xe(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(zV(e,i),e===Ar&&(pr=Ar=null,Nr=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ip||(Ip=!0,m8(Hp,function(){return Xl(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=fo.transition,fo.transition=null;var s=Ot;Ot=1;var a=vt;vt|=4,Nb.current=null,tH(e,r),s8(r,e),Dz(Aw),qp=!!Iw,Aw=Iw=null,e.current=r,rH(r,e,o),NV(),vt=a,Ot=s,fo.transition=i}else e.current=r;if(Ip&&(Ip=!1,ms=e,lm=o),i=e.pendingLanes,i===0&&(_s=null),FV(r.stateNode,n),Pn(e,ar()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(am)throw am=!1,e=Zw,Zw=null,e;return(lm&1)!==0&&e.tag!==0&&Xl(),i=e.pendingLanes,(i&1)!==0?e===Jw?Uf++:(Uf=0,Jw=e):Uf=0,Os(),null}function Xl(){if(ms!==null){var e=K4(lm),t=fo.transition,r=Ot;try{if(fo.transition=null,Ot=16>e?16:e,ms===null)var n=!1;else{if(e=ms,ms=null,lm=0,(vt&6)!==0)throw Error(xe(331));var o=vt;for(vt|=4,ke=e.current;ke!==null;){var i=ke,s=i.child;if((ke.flags&16)!==0){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(ke=u;ke!==null;){var h=ke;switch(h.tag){case 0:case 11:case 15:Ff(8,h,i)}var p=h.child;if(p!==null)p.return=h,ke=p;else for(;ke!==null;){h=ke;var y=h.sibling,w=h.return;if(n8(h),h===u){ke=null;break}if(y!==null){y.return=w,ke=y;break}ke=w}}}var v=i.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var I=S.sibling;S.sibling=null,S=I}while(S!==null)}}ke=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,ke=s;else e:for(;ke!==null;){if(i=ke,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Ff(9,i,i.return)}var T=i.sibling;if(T!==null){T.return=i.return,ke=T;break e}ke=i.return}}var O=e.current;for(ke=O;ke!==null;){s=ke;var M=s.child;if((s.subtreeFlags&2064)!==0&&M!==null)M.return=s,ke=M;else e:for(s=O;ke!==null;){if(a=ke,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:wm(9,a)}}catch(G){nr(a,a.return,G)}if(a===s){ke=null;break e}var L=a.sibling;if(L!==null){L.return=a.return,ke=L;break e}ke=a.return}}if(vt=o,Os(),Zo&&typeof Zo.onPostCommitFiberRoot=="function")try{Zo.onPostCommitFiberRoot(fm,e)}catch(G){}n=!0}return n}finally{Ot=r,fo.transition=t}}return!1}function y4(e,t,r){t=ru(r,t),t=qC(e,t,1),e=bs(e,t,1),t=an(),e!==null&&(nd(e,1,t),Pn(e,t))}function nr(e,t,r){if(e.tag===3)y4(e,e,r);else for(;t!==null;){if(t.tag===3){y4(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_s===null||!_s.has(n))){e=ru(r,e),e=GC(t,e,1),t=bs(t,e,1),e=an(),t!==null&&(nd(t,1,e),Pn(t,e));break}}t=t.return}}function lH(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=an(),e.pingedLanes|=e.suspendedLanes&r,Ar===e&&(Nr&r)===r&&(xr===4||xr===3&&(Nr&130023424)===Nr&&500>ar()-Lb?ba(e,0):kb|=r),Pn(e,t)}function h8(e,t){t===0&&((e.mode&1)===0?t=1:(t=gp,gp<<=1,(gp&130023424)===0&&(gp=4194304)));var r=an();e=Ci(e,t),e!==null&&(nd(e,t,r),Pn(e,r))}function uH(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),h8(e,r)}function cH(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(xe(314))}n!==null&&n.delete(t),h8(e,r)}var p8;p8=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cn.current)Sn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Sn=!1,Zz(e,t,r);Sn=(e.flags&131072)!==0}else Sn=!1,Gt&&(t.flags&1048576)!==0&&yC(t,Qp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Fp(e,t),e=t.pendingProps;var o=Jl(t,Yr.current);Yl(t,r),o=Db(null,t,n,e,o,r);var i=Ib();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tn(n)?(i=!0,Zp(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sb(t),o.updater=ym,t.stateNode=o,o._reactInternals=t,Bw(t,n,e,r),t=zw(null,t,n,!0,i,r)):(t.tag=0,Gt&&i&&yb(t),sn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Fp(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=dH(n),e=Ao(n,e),o){case 0:t=Vw(null,t,n,e,r);break e;case 1:t=a4(null,t,n,e,r);break e;case 11:t=i4(null,t,n,e,r);break e;case 14:t=s4(null,t,n,Ao(n.type,e),r);break e}throw Error(xe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ao(n,o),Vw(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ao(n,o),a4(e,t,n,o,r);case 3:e:{if(ZC(t),e===null)throw Error(xe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,_C(e,t),rm(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ru(Error(xe(423)),t),t=l4(e,t,n,r,o);break e}else if(n!==o){o=ru(Error(xe(424)),t),t=l4(e,t,n,r,o);break e}else for(jn=ws(t.stateNode.containerInfo.firstChild),Vn=t,Gt=!0,Ro=null,r=CC(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ql(),n===o){t=Ti(e,t,r);break e}sn(e,t,n,r)}t=t.child}return t;case 5:return TC(t),e===null&&Fw(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Mw(n,o)?s=null:i!==null&&Mw(n,i)&&(t.flags|=32),XC(e,t),sn(e,t,s,r),t.child;case 6:return e===null&&Fw(t),null;case 13:return JC(e,t,r);case 4:return Cb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=eu(t,null,n,r):sn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ao(n,o),i4(e,t,n,o,r);case 7:return sn(e,t,t.pendingProps,r),t.child;case 8:return sn(e,t,t.pendingProps.children,r),t.child;case 12:return sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Nt(em,n._currentValue),n._currentValue=s,i!==null)if(Lo(i.value,s)){if(i.children===o.children&&!Cn.current){t=Ti(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=xi(-1,r&-r),l.tag=2;var u=i.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}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),$w(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(xe(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),$w(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}sn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Yl(t,r),o=ho(o),n=n(o),t.flags|=1,sn(e,t,n,r),t.child;case 14:return n=t.type,o=Ao(n,t.pendingProps),o=Ao(n.type,o),s4(e,t,n,o,r);case 15:return WC(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ao(n,o),Fp(e,t),t.tag=1,Tn(n)?(e=!0,Zp(t)):e=!1,Yl(t,r),EC(t,n,o),Bw(t,n,o,r),zw(null,t,n,!0,e,r);case 19:return QC(e,t,r);case 22:return YC(e,t,r)}throw Error(xe(156,t.tag))};function m8(e,t){return j4(e,t)}function fH(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 co(e,t,r,n){return new fH(e,t,r,n)}function Bb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dH(e){if(typeof e=="function")return Bb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ib)return 11;if(e===sb)return 14}return 2}function Es(e,t){var r=e.alternate;return r===null?(r=co(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 Bp(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Bb(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Nl:return _a(r.children,o,i,t);case ob:s=8,o|=8;break;case cw:return e=co(12,r,t,o|2),e.elementType=cw,e.lanes=i,e;case fw:return e=co(13,r,t,o),e.elementType=fw,e.lanes=i,e;case dw:return e=co(19,r,t,o),e.elementType=dw,e.lanes=i,e;case S4:return _m(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x4:s=10;break e;case E4:s=9;break e;case ib:s=11;break e;case sb:s=14;break e;case cs:s=16,n=null;break e}throw Error(xe(130,e==null?e:typeof e,""))}return t=co(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function _a(e,t,r,n){return e=co(7,e,n,t),e.lanes=r,e}function _m(e,t,r,n){return e=co(22,e,n,t),e.elementType=S4,e.lanes=r,e.stateNode={isHidden:!1},e}function aw(e,t,r){return e=co(6,e,null,t),e.lanes=r,e}function lw(e,t,r){return t=co(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hH(e,t,r,n,o){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=K1(0),this.expirationTimes=K1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K1(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jb(e,t,r,n,o,i,s,a,l){return e=new hH(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=co(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sb(i),e}function pH(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function g8(e){if(!e)return Cs;e=e._reactInternals;e:{if(Oa(e)!==e||e.tag!==1)throw Error(xe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(xe(171))}if(e.tag===1){var r=e.type;if(Tn(r))return mC(e,r,t)}return t}function y8(e,t,r,n,o,i,s,a,l){return e=jb(r,n,!0,e,o,i,s,a,l),e.context=g8(null),r=e.current,n=an(),o=xs(r),i=xi(n,o),i.callback=t!=null?t:null,bs(r,i,o),e.current.lanes=o,nd(e,o,n),Pn(e,n),e}function xm(e,t,r,n){var o=t.current,i=an(),s=xs(o);return r=g8(r),t.context===null?t.context=r:t.pendingContext=r,t=xi(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=bs(o,t,s),e!==null&&(ko(e,o,s,i),Np(e,o,s)),s}function cm(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 v4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Vb(e,t){v4(e,t),(e=e.alternate)&&v4(e,t)}function mH(){return null}var v8=typeof reportError=="function"?reportError:function(e){console.error(e)};function zb(e){this._internalRoot=e}Em.prototype.render=zb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(xe(409));xm(e,t,null,null)};Em.prototype.unmount=zb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ta(function(){xm(null,e,null,null)}),t[Si]=null}};function Em(e){this._internalRoot=e}Em.prototype.unstable_scheduleHydration=function(e){if(e){var t=W4();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ds.length&&t!==0&&t<ds[r].priority;r++);ds.splice(r,0,e),r===0&&X4(e)}};function Hb(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Sm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function w4(){}function gH(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var u=cm(s);i.call(u)}}var s=y8(t,n,e,0,null,!1,!1,"",w4);return e._reactRootContainer=s,e[Si]=s.current,Wf(e.nodeType===8?e.parentNode:e),Ta(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var a=n;n=function(){var u=cm(l);a.call(u)}}var l=jb(e,0,!1,null,null,!1,!1,"",w4);return e._reactRootContainer=l,e[Si]=l.current,Wf(e.nodeType===8?e.parentNode:e),Ta(function(){xm(t,l,r,n)}),l}function Cm(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=cm(s);a.call(l)}}xm(t,s,e,o)}else s=gH(r,t,e,o,n);return cm(s)}q4=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Df(t.pendingLanes);r!==0&&(ub(t,r|1),Pn(t,ar()),(vt&6)===0&&(nu=ar()+500,Os()))}break;case 13:Ta(function(){var n=Ci(e,1);if(n!==null){var o=an();ko(n,e,1,o)}}),Vb(e,1)}};cb=function(e){if(e.tag===13){var t=Ci(e,134217728);if(t!==null){var r=an();ko(t,e,134217728,r)}Vb(e,134217728)}};G4=function(e){if(e.tag===13){var t=xs(e),r=Ci(e,t);if(r!==null){var n=an();ko(r,e,t,n)}Vb(e,t)}};W4=function(){return Ot};Y4=function(e,t){var r=Ot;try{return Ot=e,t()}finally{Ot=r}};xw=function(e,t,r){switch(t){case"input":if(mw(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 o=mm(n);if(!o)throw Error(xe(90));T4(n),mw(n,o)}}}break;case"textarea":O4(e,r);break;case"select":t=r.value,t!=null&&Kl(e,!!r.multiple,t,!1)}};k4=Fb;L4=Ta;var yH={usingClientEntryPoint:!1,Events:[id,$l,mm,R4,N4,Fb]},Cf={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vH={bundleType:Cf.bundleType,version:Cf.version,rendererPackageName:Cf.rendererPackageName,rendererConfig:Cf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=U4(e),e===null?null:e.stateNode},findFiberByHostInstance:Cf.findFiberByHostInstance||mH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Tf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Tf.isDisabled&&Tf.supportsFiber))try{fm=Tf.inject(vH),Zo=Tf}catch(e){}var Tf;Kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yH;Kn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hb(t))throw Error(xe(200));return pH(e,t,null,r)};Kn.createRoot=function(e,t){if(!Hb(e))throw Error(xe(299));var r=!1,n="",o=v8;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=jb(e,1,!1,null,null,r,!1,n,o),e[Si]=t.current,Wf(e.nodeType===8?e.parentNode:e),new zb(t)};Kn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(xe(188)):(e=Object.keys(e).join(","),Error(xe(268,e)));return e=U4(t),e=e===null?null:e.stateNode,e};Kn.flushSync=function(e){return Ta(e)};Kn.hydrate=function(e,t,r){if(!Sm(t))throw Error(xe(200));return Cm(null,e,t,!0,r)};Kn.hydrateRoot=function(e,t,r){if(!Hb(e))throw Error(xe(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",s=v8;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=y8(t,null,e,1,r!=null?r:null,o,!1,i,s),e[Si]=t.current,Wf(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Em(t)};Kn.render=function(e,t,r){if(!Sm(t))throw Error(xe(200));return Cm(null,e,t,!1,r)};Kn.unmountComponentAtNode=function(e){if(!Sm(e))throw Error(xe(40));return e._reactRootContainer?(Ta(function(){Cm(null,null,e,!1,function(){e._reactRootContainer=null,e[Si]=null})}),!0):!1};Kn.unstable_batchedUpdates=Fb;Kn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Sm(r))throw Error(xe(200));if(e==null||e._reactInternals===void 0)throw Error(xe(38));return Cm(e,t,r,!1,n)};Kn.version="18.2.0-next-9e3b772b8-20220608"});var Da=_e((xue,_8)=>{"use strict";c();d();f();function b8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b8)}catch(e){console.error(e)}}b8(),_8.exports=w8()});var E8=_e(Kb=>{"use strict";c();d();f();var x8=Da();Kb.createRoot=x8.createRoot,Kb.hydrateRoot=x8.hydrateRoot;var Eue});var C8=_e((Cue,S8)=>{"use strict";c();d();f();var wH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";S8.exports=wH});var D8=_e((Tue,O8)=>{"use strict";c();d();f();var bH=C8();function T8(){}function P8(){}P8.resetWarningCache=T8;O8.exports=function(){function e(n,o,i,s,a,l){if(l!==bH){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:P8,resetWarningCache:T8};return r.PropTypes=r,r}});var qb=_e((Due,I8)=>{c();d();f();I8.exports=D8()();var Pue,Oue});var cT=_e(Qb=>{"use strict";c();d();f();Object.defineProperty(Qb,"__esModule",{value:!0});function XH(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}Qb.default=XH});var fT=_e(e_=>{"use strict";c();d();f();Object.defineProperty(e_,"__esModule",{value:!0});function ZH(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var JH=ZH(cT()),QH=/^((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)-.*))$/,eK=JH(function(e){return QH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});e_.default=eK});var RD=_e(($we,P0)=>{c();d();f();var lD,uD,cD,fD,dD,hD,pD,mD,gD,yD,vD,wD,bD,C0,X_,_D,xD,ED,Yu,SD,CD,TD,PD,OD,DD,ID,AD,MD,T0;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof P0=="object"&&typeof P0.exports=="object"?e(r(t,r(P0.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};lD=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},uD=Object.assign||function(n){for(var o,i=1,s=arguments.length;i<s;i++){o=arguments[i];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])}return n},cD=function(n,o){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&o.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)o.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(i[s[a]]=n[s[a]]);return i},fD=function(n,o,i,s){var a=arguments.length,l=a<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,i):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,o,i,s);else for(var h=n.length-1;h>=0;h--)(u=n[h])&&(l=(a<3?u(l):a>3?u(o,i,l):u(o,i))||l);return a>3&&l&&Object.defineProperty(o,i,l),l},dD=function(n,o){return function(i,s){o(i,s,n)}},hD=function(n,o,i,s,a,l){function u(L){if(L!==void 0&&typeof L!="function")throw new TypeError("Function expected");return L}for(var h=s.kind,p=h==="getter"?"get":h==="setter"?"set":"value",y=!o&&n?s.static?n:n.prototype:null,w=o||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),v,S=!1,I=i.length-1;I>=0;I--){var T={};for(var O in s)T[O]=O==="access"?{}:s[O];for(var O in s.access)T.access[O]=s.access[O];T.addInitializer=function(L){if(S)throw new TypeError("Cannot add initializers after decoration has completed");l.push(u(L||null))};var M=(0,i[I])(h==="accessor"?{get:w.get,set:w.set}:w[p],T);if(h==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(v=u(M.get))&&(w.get=v),(v=u(M.set))&&(w.set=v),(v=u(M.init))&&a.push(v)}else(v=u(M))&&(h==="field"?a.push(v):w[p]=v)}y&&Object.defineProperty(y,s.name,w),S=!0},pD=function(n,o,i){for(var s=arguments.length>2,a=0;a<o.length;a++)i=s?o[a].call(n,i):o[a].call(n);return s?i:void 0},mD=function(n){return typeof n=="symbol"?n:"".concat(n)},gD=function(n,o,i){return typeof o=="symbol"&&(o=o.description?"[".concat(o.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:i?"".concat(i," ",o):o})},yD=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},vD=function(n,o,i,s){function a(l){return l instanceof i?l:new i(function(u){u(l)})}return new(i||(i=Promise))(function(l,u){function h(w){try{y(s.next(w))}catch(v){u(v)}}function p(w){try{y(s.throw(w))}catch(v){u(v)}}function y(w){w.done?l(w.value):a(w.value).then(h,p)}y((s=s.apply(n,o||[])).next())})},wD=function(n,o){var i={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(y){return function(w){return p([y,w])}}function p(y){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,y[0]&&(i=0)),i;)try{if(s=1,a&&(l=y[0]&2?a.return:y[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,y[1])).done)return l;switch(a=0,l&&(y=[y[0]&2,l.value]),y[0]){case 0:case 1:l=y;break;case 4:return i.label++,{value:y[1],done:!1};case 5:i.label++,a=y[1],y=[0];continue;case 7:y=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(y[0]===6||y[0]===2)){i=0;continue}if(y[0]===3&&(!l||y[1]>l[0]&&y[1]<l[3])){i.label=y[1];break}if(y[0]===6&&i.label<l[1]){i.label=l[1],l=y;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(y);break}l[2]&&i.ops.pop(),i.trys.pop();continue}y=o.call(n,i)}catch(w){y=[6,w],a=0}finally{s=l=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},bD=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&T0(o,n,i)},T0=Object.create?function(n,o,i,s){s===void 0&&(s=i);var a=Object.getOwnPropertyDescriptor(o,i);(!a||("get"in a?!o.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,s,a)}:function(n,o,i,s){s===void 0&&(s=i),n[s]=o[i]},C0=function(n){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&n[o],s=0;if(i)return i.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(o?"Object is not iterable.":"Symbol.iterator is not defined.")},X_=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,l=[],u;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)l.push(a.value)}catch(h){u={error:h}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return l},_D=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(X_(arguments[o]));return n},xD=function(){for(var n=0,o=0,i=arguments.length;o<i;o++)n+=arguments[o].length;for(var s=Array(n),a=0,o=0;o<i;o++)for(var l=arguments[o],u=0,h=l.length;u<h;u++,a++)s[a]=l[u];return s},ED=function(n,o,i){if(i||arguments.length===2)for(var s=0,a=o.length,l;s<a;s++)(l||!(s in o))&&(l||(l=Array.prototype.slice.call(o,0,s)),l[s]=o[s]);return n.concat(l||Array.prototype.slice.call(o))},Yu=function(n){return this instanceof Yu?(this.v=n,this):new Yu(n)},SD=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(n,o||[]),a,l=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(S){s[S]&&(a[S]=function(I){return new Promise(function(T,O){l.push([S,I,T,O])>1||h(S,I)})})}function h(S,I){try{p(s[S](I))}catch(T){v(l[0][3],T)}}function p(S){S.value instanceof Yu?Promise.resolve(S.value.v).then(y,w):v(l[0][2],S)}function y(S){h("next",S)}function w(S){h("throw",S)}function v(S,I){S(I),l.shift(),l.length&&h(l[0][0],l[0][1])}},CD=function(n){var o,i;return o={},s("next"),s("throw",function(a){throw a}),s("return"),o[Symbol.iterator]=function(){return this},o;function s(a,l){o[a]=n[a]?function(u){return(i=!i)?{value:Yu(n[a](u)),done:!1}:l?l(u):u}:l}},TD=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof C0=="function"?C0(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(l){i[l]=n[l]&&function(u){return new Promise(function(h,p){u=n[l](u),a(h,p,u.done,u.value)})}}function a(l,u,h,p){Promise.resolve(p).then(function(y){l({value:y,done:h})},u)}},PD=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var r=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};OD=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&T0(o,n,i);return r(o,n),o},DD=function(n){return n&&n.__esModule?n:{default:n}},ID=function(n,o,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?n!==o||!s:!o.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:o.get(n)},AD=function(n,o,i,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 o=="function"?n!==o||!a:!o.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,i):a?a.value=i:o.set(n,i),i},MD=function(n,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?o===n:n.has(o)},e("__extends",lD),e("__assign",uD),e("__rest",cD),e("__decorate",fD),e("__param",dD),e("__esDecorate",hD),e("__runInitializers",pD),e("__propKey",mD),e("__setFunctionName",gD),e("__metadata",yD),e("__awaiter",vD),e("__generator",wD),e("__exportStar",bD),e("__createBinding",T0),e("__values",C0),e("__read",X_),e("__spread",_D),e("__spreadArrays",xD),e("__spreadArray",ED),e("__await",Yu),e("__asyncGenerator",SD),e("__asyncDelegator",CD),e("__asyncValues",TD),e("__makeTemplateObject",PD),e("__importStar",OD),e("__importDefault",DD),e("__classPrivateFieldGet",ID),e("__classPrivateFieldSet",AD),e("__classPrivateFieldIn",MD)})});var _I=_e((L_e,bI)=>{c();d();f();bI.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(o){e.addRange(o)}),t&&t.focus()}}});var SI=_e((F_e,EI)=>{"use strict";c();d();f();var oW=_I(),xI={"text/plain":"Text","text/html":"Url",default:"Text"},iW="Copy to clipboard: #{key}, Enter";function sW(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function aW(e,t){var r,n,o,i,s,a,l=!1;t||(t={}),r=t.debug||!1;try{o=oW(),i=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 p=xI[t.format]||xI.default;window.clipboardData.setData(p,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);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(p){r&&console.error("unable to copy using clipboardData: ",p),r&&console.error("falling back to prompt"),n=sW("message"in t?t.message:iW),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return l}EI.exports=aW});var CI=_e((Id,s2)=>{c();d();f();(function(e,t){typeof Id=="object"&&typeof s2=="object"?s2.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Id=="object"?Id.QRCodeStyling=t():e.QRCodeStyling=t()})(Id,function(){return(()=>{var e={192:(o,i)=>{var s,a,l=function(){var u=function(X,R){var m=X,b=S[R],E=null,A=0,k=null,B=[],K={},U=function(Z,ee){E=function(W){for(var le=new Array(W),re=0;re<W;re+=1){le[re]=new Array(W);for(var ge=0;ge<W;ge+=1)le[re][ge]=null}return le}(A=4*m+17),x(0,0),x(A-7,0),x(0,A-7),ie(),j(),Y(Z,ee),m>=7&&D(Z),k==null&&(k=ae(m,b,B)),ne(k,ee)},x=function(Z,ee){for(var W=-1;W<=7;W+=1)if(!(Z+W<=-1||A<=Z+W))for(var le=-1;le<=7;le+=1)ee+le<=-1||A<=ee+le||(E[Z+W][ee+le]=0<=W&&W<=6&&(le==0||le==6)||0<=le&&le<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=le&&le<=4)},j=function(){for(var Z=8;Z<A-8;Z+=1)E[Z][6]==null&&(E[Z][6]=Z%2==0);for(var ee=8;ee<A-8;ee+=1)E[6][ee]==null&&(E[6][ee]=ee%2==0)},ie=function(){for(var Z=I.getPatternPosition(m),ee=0;ee<Z.length;ee+=1)for(var W=0;W<Z.length;W+=1){var le=Z[ee],re=Z[W];if(E[le][re]==null)for(var ge=-2;ge<=2;ge+=1)for(var We=-2;We<=2;We+=1)E[le+ge][re+We]=ge==-2||ge==2||We==-2||We==2||ge==0&&We==0}},D=function(Z){for(var ee=I.getBCHTypeNumber(m),W=0;W<18;W+=1){var le=!Z&&(ee>>W&1)==1;E[Math.floor(W/3)][W%3+A-8-3]=le}for(W=0;W<18;W+=1)le=!Z&&(ee>>W&1)==1,E[W%3+A-8-3][Math.floor(W/3)]=le},Y=function(Z,ee){for(var W=b<<3|ee,le=I.getBCHTypeInfo(W),re=0;re<15;re+=1){var ge=!Z&&(le>>re&1)==1;re<6?E[re][8]=ge:re<8?E[re+1][8]=ge:E[A-15+re][8]=ge}for(re=0;re<15;re+=1)ge=!Z&&(le>>re&1)==1,re<8?E[8][A-re-1]=ge:re<9?E[8][15-re-1+1]=ge:E[8][15-re-1]=ge;E[A-8][8]=!Z},ne=function(Z,ee){for(var W=-1,le=A-1,re=7,ge=0,We=I.getMaskFunction(ee),Re=A-1;Re>0;Re-=2)for(Re==6&&(Re-=1);;){for(var $e=0;$e<2;$e+=1)if(E[le][Re-$e]==null){var st=!1;ge<Z.length&&(st=(Z[ge]>>>re&1)==1),We(le,Re-$e)&&(st=!st),E[le][Re-$e]=st,(re-=1)==-1&&(ge+=1,re=7)}if((le+=W)<0||A<=le){le-=W,W=-W;break}}},ae=function(Z,ee,W){for(var le=M.getRSBlocks(Z,ee),re=L(),ge=0;ge<W.length;ge+=1){var We=W[ge];re.put(We.getMode(),4),re.put(We.getLength(),I.getLengthInBits(We.getMode(),Z)),We.write(re)}var Re=0;for(ge=0;ge<le.length;ge+=1)Re+=le[ge].dataCount;if(re.getLengthInBits()>8*Re)throw"code length overflow. ("+re.getLengthInBits()+">"+8*Re+")";for(re.getLengthInBits()+4<=8*Re&&re.put(0,4);re.getLengthInBits()%8!=0;)re.putBit(!1);for(;!(re.getLengthInBits()>=8*Re||(re.put(236,8),re.getLengthInBits()>=8*Re));)re.put(17,8);return function($e,st){for(var te=0,C=0,$=0,N=new Array(st.length),F=new Array(st.length),z=0;z<st.length;z+=1){var H=st[z].dataCount,oe=st[z].totalCount-H;C=Math.max(C,H),$=Math.max($,oe),N[z]=new Array(H);for(var se=0;se<N[z].length;se+=1)N[z][se]=255&$e.getBuffer()[se+te];te+=H;var pe=I.getErrorCorrectPolynomial(oe),de=O(N[z],pe.getLength()-1).mod(pe);for(F[z]=new Array(pe.getLength()-1),se=0;se<F[z].length;se+=1){var be=se+de.getLength()-F[z].length;F[z][se]=be>=0?de.getAt(be):0}}var ye=0;for(se=0;se<st.length;se+=1)ye+=st[se].totalCount;var Se=new Array(ye),Le=0;for(se=0;se<C;se+=1)for(z=0;z<st.length;z+=1)se<N[z].length&&(Se[Le]=N[z][se],Le+=1);for(se=0;se<$;se+=1)for(z=0;z<st.length;z+=1)se<F[z].length&&(Se[Le]=F[z][se],Le+=1);return Se}(re,le)};K.addData=function(Z,ee){var W=null;switch(ee=ee||"Byte"){case"Numeric":W=G(Z);break;case"Alphanumeric":W=J(Z);break;case"Byte":W=V(Z);break;case"Kanji":W=q(Z);break;default:throw"mode:"+ee}B.push(W),k=null},K.isDark=function(Z,ee){if(Z<0||A<=Z||ee<0||A<=ee)throw Z+","+ee;return E[Z][ee]},K.getModuleCount=function(){return A},K.make=function(){if(m<1){for(var Z=1;Z<40;Z++){for(var ee=M.getRSBlocks(Z,b),W=L(),le=0;le<B.length;le++){var re=B[le];W.put(re.getMode(),4),W.put(re.getLength(),I.getLengthInBits(re.getMode(),Z)),re.write(W)}var ge=0;for(le=0;le<ee.length;le++)ge+=ee[le].dataCount;if(W.getLengthInBits()<=8*ge)break}m=Z}U(!1,function(){for(var We=0,Re=0,$e=0;$e<8;$e+=1){U(!0,$e);var st=I.getLostPoint(K);($e==0||We>st)&&(We=st,Re=$e)}return Re}())},K.createTableTag=function(Z,ee){Z=Z||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(ee=ee===void 0?4*Z:ee)+"px;",W+='">',W+="<tbody>";for(var le=0;le<K.getModuleCount();le+=1){W+="<tr>";for(var re=0;re<K.getModuleCount();re+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+Z+"px;",W+=" height: "+Z+"px;",W+=" background-color: ",W+=K.isDark(le,re)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},K.createSvgTag=function(Z,ee,W,le){var re={};typeof arguments[0]=="object"&&(Z=(re=arguments[0]).cellSize,ee=re.margin,W=re.alt,le=re.title),Z=Z||2,ee=ee===void 0?4*Z:ee,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(le=typeof le=="string"?{text:le}:le||{}).text=le.text||null,le.id=le.text?le.id||"qrcode-title":null;var ge,We,Re,$e,st=K.getModuleCount()*Z+2*ee,te="";for($e="l"+Z+",0 0,"+Z+" -"+Z+",0 0,-"+Z+"z ",te+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',te+=re.scalable?"":' width="'+st+'px" height="'+st+'px"',te+=' viewBox="0 0 '+st+" "+st+'" ',te+=' preserveAspectRatio="xMinYMin meet"',te+=le.text||W.text?' role="img" aria-labelledby="'+he([le.id,W.id].join(" ").trim())+'"':"",te+=">",te+=le.text?'<title id="'+he(le.id)+'">'+he(le.text)+"</title>":"",te+=W.text?'<description id="'+he(W.id)+'">'+he(W.text)+"</description>":"",te+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',te+='<path d="',We=0;We<K.getModuleCount();We+=1)for(Re=We*Z+ee,ge=0;ge<K.getModuleCount();ge+=1)K.isDark(We,ge)&&(te+="M"+(ge*Z+ee)+","+Re+$e);return(te+='" stroke="transparent" fill="black"/>')+"</svg>"},K.createDataURL=function(Z,ee){Z=Z||2,ee=ee===void 0?4*Z:ee;var W=K.getModuleCount()*Z+2*ee,le=ee,re=W-ee;return fe(W,W,function(ge,We){if(le<=ge&&ge<re&&le<=We&&We<re){var Re=Math.floor((ge-le)/Z),$e=Math.floor((We-le)/Z);return K.isDark($e,Re)?0:1}return 1})},K.createImgTag=function(Z,ee,W){Z=Z||2,ee=ee===void 0?4*Z:ee;var le=K.getModuleCount()*Z+2*ee,re="";return re+="<img",re+=' src="',re+=K.createDataURL(Z,ee),re+='"',re+=' width="',re+=le,re+='"',re+=' height="',re+=le,re+='"',W&&(re+=' alt="',re+=he(W),re+='"'),re+"/>"};var he=function(Z){for(var ee="",W=0;W<Z.length;W+=1){var le=Z.charAt(W);switch(le){case"<":ee+="<";break;case">":ee+=">";break;case"&":ee+="&";break;case'"':ee+=""";break;default:ee+=le}}return ee};return K.createASCII=function(Z,ee){if((Z=Z||1)<2)return function(N){N=N===void 0?2:N;var F,z,H,oe,se,pe=1*K.getModuleCount()+2*N,de=N,be=pe-N,ye={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Se={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Le="";for(F=0;F<pe;F+=2){for(H=Math.floor((F-de)/1),oe=Math.floor((F+1-de)/1),z=0;z<pe;z+=1)se="\u2588",de<=z&&z<be&&de<=F&&F<be&&K.isDark(H,Math.floor((z-de)/1))&&(se=" "),de<=z&&z<be&&de<=F+1&&F+1<be&&K.isDark(oe,Math.floor((z-de)/1))?se+=" ":se+="\u2588",Le+=N<1&&F+1>=be?Se[se]:ye[se];Le+=`
|
|
9
|
-
`}return pe%2&&N>0?Le.substring(0,Le.length-pe-1)+Array(pe+1).join("\u2580"):Le.substring(0,Le.length-1)}(ee);Z-=1,ee=ee===void 0?2*Z:ee;var W,le,re,ge,We=K.getModuleCount()*Z+2*ee,Re=ee,$e=We-ee,st=Array(Z+1).join("\u2588\u2588"),te=Array(Z+1).join(" "),C="",$="";for(W=0;W<We;W+=1){for(re=Math.floor((W-Re)/Z),$="",le=0;le<We;le+=1)ge=1,Re<=le&&le<$e&&Re<=W&&W<$e&&K.isDark(re,Math.floor((le-Re)/Z))&&(ge=0),$+=ge?st:te;for(re=0;re<Z;re+=1)C+=$+`
|
|
10
|
-
`}return C.substring(0,C.length-1)},K.renderTo2dContext=function(Z,ee){ee=ee||2;for(var W=K.getModuleCount(),le=0;le<W;le++)for(var re=0;re<W;re++)Z.fillStyle=K.isDark(le,re)?"black":"white",Z.fillRect(le*ee,re*ee,ee,ee)},K};u.stringToBytes=(u.stringToBytesFuncs={default:function(X){for(var R=[],m=0;m<X.length;m+=1){var b=X.charCodeAt(m);R.push(255&b)}return R}}).default,u.createStringToBytes=function(X,R){var m=function(){for(var E=me(X),A=function(){var j=E.read();if(j==-1)throw"eof";return j},k=0,B={};;){var K=E.read();if(K==-1)break;var U=A(),x=A()<<8|A();B[String.fromCharCode(K<<8|U)]=x,k+=1}if(k!=R)throw k+" != "+R;return B}(),b="?".charCodeAt(0);return function(E){for(var A=[],k=0;k<E.length;k+=1){var B=E.charCodeAt(k);if(B<128)A.push(B);else{var K=m[E.charAt(k)];typeof K=="number"?(255&K)==K?A.push(K):(A.push(K>>>8),A.push(255&K)):A.push(b)}}return A}};var h,p,y,w,v,S={L:1,M:0,Q:3,H:2},I=(h=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],p=1335,y=7973,v=function(X){for(var R=0;X!=0;)R+=1,X>>>=1;return R},(w={}).getBCHTypeInfo=function(X){for(var R=X<<10;v(R)-v(p)>=0;)R^=p<<v(R)-v(p);return 21522^(X<<10|R)},w.getBCHTypeNumber=function(X){for(var R=X<<12;v(R)-v(y)>=0;)R^=y<<v(R)-v(y);return X<<12|R},w.getPatternPosition=function(X){return h[X-1]},w.getMaskFunction=function(X){switch(X){case 0:return function(R,m){return(R+m)%2==0};case 1:return function(R,m){return R%2==0};case 2:return function(R,m){return m%3==0};case 3:return function(R,m){return(R+m)%3==0};case 4:return function(R,m){return(Math.floor(R/2)+Math.floor(m/3))%2==0};case 5:return function(R,m){return R*m%2+R*m%3==0};case 6:return function(R,m){return(R*m%2+R*m%3)%2==0};case 7:return function(R,m){return(R*m%3+(R+m)%2)%2==0};default:throw"bad maskPattern:"+X}},w.getErrorCorrectPolynomial=function(X){for(var R=O([1],0),m=0;m<X;m+=1)R=R.multiply(O([1,T.gexp(m)],0));return R},w.getLengthInBits=function(X,R){if(1<=R&&R<10)switch(X){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+X}else if(R<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+X}else{if(!(R<41))throw"type:"+R;switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+X}}},w.getLostPoint=function(X){for(var R=X.getModuleCount(),m=0,b=0;b<R;b+=1)for(var E=0;E<R;E+=1){for(var A=0,k=X.isDark(b,E),B=-1;B<=1;B+=1)if(!(b+B<0||R<=b+B))for(var K=-1;K<=1;K+=1)E+K<0||R<=E+K||B==0&&K==0||k==X.isDark(b+B,E+K)&&(A+=1);A>5&&(m+=3+A-5)}for(b=0;b<R-1;b+=1)for(E=0;E<R-1;E+=1){var U=0;X.isDark(b,E)&&(U+=1),X.isDark(b+1,E)&&(U+=1),X.isDark(b,E+1)&&(U+=1),X.isDark(b+1,E+1)&&(U+=1),U!=0&&U!=4||(m+=3)}for(b=0;b<R;b+=1)for(E=0;E<R-6;E+=1)X.isDark(b,E)&&!X.isDark(b,E+1)&&X.isDark(b,E+2)&&X.isDark(b,E+3)&&X.isDark(b,E+4)&&!X.isDark(b,E+5)&&X.isDark(b,E+6)&&(m+=40);for(E=0;E<R;E+=1)for(b=0;b<R-6;b+=1)X.isDark(b,E)&&!X.isDark(b+1,E)&&X.isDark(b+2,E)&&X.isDark(b+3,E)&&X.isDark(b+4,E)&&!X.isDark(b+5,E)&&X.isDark(b+6,E)&&(m+=40);var x=0;for(E=0;E<R;E+=1)for(b=0;b<R;b+=1)X.isDark(b,E)&&(x+=1);return m+Math.abs(100*x/R/R-50)/5*10},w),T=function(){for(var X=new Array(256),R=new Array(256),m=0;m<8;m+=1)X[m]=1<<m;for(m=8;m<256;m+=1)X[m]=X[m-4]^X[m-5]^X[m-6]^X[m-8];for(m=0;m<255;m+=1)R[X[m]]=m;return{glog:function(b){if(b<1)throw"glog("+b+")";return R[b]},gexp:function(b){for(;b<0;)b+=255;for(;b>=256;)b-=255;return X[b]}}}();function O(X,R){if(X.length===void 0)throw X.length+"/"+R;var m=function(){for(var E=0;E<X.length&&X[E]==0;)E+=1;for(var A=new Array(X.length-E+R),k=0;k<X.length-E;k+=1)A[k]=X[k+E];return A}(),b={getAt:function(E){return m[E]},getLength:function(){return m.length},multiply:function(E){for(var A=new Array(b.getLength()+E.getLength()-1),k=0;k<b.getLength();k+=1)for(var B=0;B<E.getLength();B+=1)A[k+B]^=T.gexp(T.glog(b.getAt(k))+T.glog(E.getAt(B)));return O(A,0)},mod:function(E){if(b.getLength()-E.getLength()<0)return b;for(var A=T.glog(b.getAt(0))-T.glog(E.getAt(0)),k=new Array(b.getLength()),B=0;B<b.getLength();B+=1)k[B]=b.getAt(B);for(B=0;B<E.getLength();B+=1)k[B]^=T.gexp(T.glog(E.getAt(B))+A);return O(k,0).mod(E)}};return b}var M=function(){var X=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],R=function(b,E){var A={};return A.totalCount=b,A.dataCount=E,A},m={getRSBlocks:function(b,E){var A=function(D,Y){switch(Y){case S.L:return X[4*(D-1)+0];case S.M:return X[4*(D-1)+1];case S.Q:return X[4*(D-1)+2];case S.H:return X[4*(D-1)+3];default:return}}(b,E);if(A===void 0)throw"bad rs block @ typeNumber:"+b+"/errorCorrectionLevel:"+E;for(var k=A.length/3,B=[],K=0;K<k;K+=1)for(var U=A[3*K+0],x=A[3*K+1],j=A[3*K+2],ie=0;ie<U;ie+=1)B.push(R(x,j));return B}};return m}(),L=function(){var X=[],R=0,m={getBuffer:function(){return X},getAt:function(b){var E=Math.floor(b/8);return(X[E]>>>7-b%8&1)==1},put:function(b,E){for(var A=0;A<E;A+=1)m.putBit((b>>>E-A-1&1)==1)},getLengthInBits:function(){return R},putBit:function(b){var E=Math.floor(R/8);X.length<=E&&X.push(0),b&&(X[E]|=128>>>R%8),R+=1}};return m},G=function(X){var R=X,m={getMode:function(){return 1},getLength:function(A){return R.length},write:function(A){for(var k=R,B=0;B+2<k.length;)A.put(b(k.substring(B,B+3)),10),B+=3;B<k.length&&(k.length-B==1?A.put(b(k.substring(B,B+1)),4):k.length-B==2&&A.put(b(k.substring(B,B+2)),7))}},b=function(A){for(var k=0,B=0;B<A.length;B+=1)k=10*k+E(A.charAt(B));return k},E=function(A){if("0"<=A&&A<="9")return A.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+A};return m},J=function(X){var R=X,m={getMode:function(){return 2},getLength:function(E){return R.length},write:function(E){for(var A=R,k=0;k+1<A.length;)E.put(45*b(A.charAt(k))+b(A.charAt(k+1)),11),k+=2;k<A.length&&E.put(b(A.charAt(k)),6)}},b=function(E){if("0"<=E&&E<="9")return E.charCodeAt(0)-"0".charCodeAt(0);if("A"<=E&&E<="Z")return E.charCodeAt(0)-"A".charCodeAt(0)+10;switch(E){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+E}};return m},V=function(X){var R=u.stringToBytes(X);return{getMode:function(){return 4},getLength:function(m){return R.length},write:function(m){for(var b=0;b<R.length;b+=1)m.put(R[b],8)}}},q=function(X){var R=u.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(E,A){var k=R("\u53CB");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var m=R(X),b={getMode:function(){return 8},getLength:function(E){return~~(m.length/2)},write:function(E){for(var A=m,k=0;k+1<A.length;){var B=(255&A[k])<<8|255&A[k+1];if(33088<=B&&B<=40956)B-=33088;else{if(!(57408<=B&&B<=60351))throw"illegal char at "+(k+1)+"/"+B;B-=49472}B=192*(B>>>8&255)+(255&B),E.put(B,13),k+=2}if(k<A.length)throw"illegal char at "+(k+1)}};return b},ce=function(){var X=[],R={writeByte:function(m){X.push(255&m)},writeShort:function(m){R.writeByte(m),R.writeByte(m>>>8)},writeBytes:function(m,b,E){b=b||0,E=E||m.length;for(var A=0;A<E;A+=1)R.writeByte(m[A+b])},writeString:function(m){for(var b=0;b<m.length;b+=1)R.writeByte(m.charCodeAt(b))},toByteArray:function(){return X},toString:function(){var m="";m+="[";for(var b=0;b<X.length;b+=1)b>0&&(m+=","),m+=X[b];return m+"]"}};return R},me=function(X){var R=X,m=0,b=0,E=0,A={read:function(){for(;E<8;){if(m>=R.length){if(E==0)return-1;throw"unexpected end of file./"+E}var B=R.charAt(m);if(m+=1,B=="=")return E=0,-1;B.match(/^\s$/)||(b=b<<6|k(B.charCodeAt(0)),E+=6)}var K=b>>>E-8&255;return E-=8,K}},k=function(B){if(65<=B&&B<=90)return B-65;if(97<=B&&B<=122)return B-97+26;if(48<=B&&B<=57)return B-48+52;if(B==43)return 62;if(B==47)return 63;throw"c:"+B};return A},fe=function(X,R,m){for(var b=function(x,j){var ie=x,D=j,Y=new Array(x*j),ne={setPixel:function(Z,ee,W){Y[ee*ie+Z]=W},write:function(Z){Z.writeString("GIF87a"),Z.writeShort(ie),Z.writeShort(D),Z.writeByte(128),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(255),Z.writeByte(255),Z.writeByte(255),Z.writeString(","),Z.writeShort(0),Z.writeShort(0),Z.writeShort(ie),Z.writeShort(D),Z.writeByte(0);var ee=ae(2);Z.writeByte(2);for(var W=0;ee.length-W>255;)Z.writeByte(255),Z.writeBytes(ee,W,255),W+=255;Z.writeByte(ee.length-W),Z.writeBytes(ee,W,ee.length-W),Z.writeByte(0),Z.writeString(";")}},ae=function(Z){for(var ee=1<<Z,W=1+(1<<Z),le=Z+1,re=he(),ge=0;ge<ee;ge+=1)re.add(String.fromCharCode(ge));re.add(String.fromCharCode(ee)),re.add(String.fromCharCode(W));var We,Re,$e,st=ce(),te=(We=st,Re=0,$e=0,{write:function(F,z){if(F>>>z!=0)throw"length over";for(;Re+z>=8;)We.writeByte(255&(F<<Re|$e)),z-=8-Re,F>>>=8-Re,$e=0,Re=0;$e|=F<<Re,Re+=z},flush:function(){Re>0&&We.writeByte($e)}});te.write(ee,le);var C=0,$=String.fromCharCode(Y[C]);for(C+=1;C<Y.length;){var N=String.fromCharCode(Y[C]);C+=1,re.contains($+N)?$+=N:(te.write(re.indexOf($),le),re.size()<4095&&(re.size()==1<<le&&(le+=1),re.add($+N)),$=N)}return te.write(re.indexOf($),le),te.write(W,le),te.flush(),st.toByteArray()},he=function(){var Z={},ee=0,W={add:function(le){if(W.contains(le))throw"dup key:"+le;Z[le]=ee,ee+=1},size:function(){return ee},indexOf:function(le){return Z[le]},contains:function(le){return Z[le]!==void 0}};return W};return ne}(X,R),E=0;E<R;E+=1)for(var A=0;A<X;A+=1)b.setPixel(A,E,m(A,E));var k=ce();b.write(k);for(var B=function(){var x=0,j=0,ie=0,D="",Y={},ne=function(he){D+=String.fromCharCode(ae(63&he))},ae=function(he){if(!(he<0)){if(he<26)return 65+he;if(he<52)return he-26+97;if(he<62)return he-52+48;if(he==62)return 43;if(he==63)return 47}throw"n:"+he};return Y.writeByte=function(he){for(x=x<<8|255&he,j+=8,ie+=1;j>=6;)ne(x>>>j-6),j-=6},Y.flush=function(){if(j>0&&(ne(x<<6-j),x=0,j=0),ie%3!=0)for(var he=3-ie%3,Z=0;Z<he;Z+=1)D+="="},Y.toString=function(){return D},Y}(),K=k.toByteArray(),U=0;U<K.length;U+=1)B.writeByte(K[U]);return B.flush(),"data:image/gif;base64,"+B};return u}();l.stringToBytesFuncs["UTF-8"]=function(u){return function(h){for(var p=[],y=0;y<h.length;y++){var w=h.charCodeAt(y);w<128?p.push(w):w<2048?p.push(192|w>>6,128|63&w):w<55296||w>=57344?p.push(224|w>>12,128|w>>6&63,128|63&w):(y++,w=65536+((1023&w)<<10|1023&h.charCodeAt(y)),p.push(240|w>>18,128|w>>12&63,128|w>>6&63,128|63&w))}return p}(u)},(a=typeof(s=function(){return l})=="function"?s.apply(i,[]):s)===void 0||(o.exports=a)}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return r.d(i,{a:i}),i},r.d=(o,i)=>{for(var s in i)r.o(i,s)&&!r.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:i[s]})},r.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i);var n={};return(()=>{"use strict";r.d(n,{default:()=>st});var o=function(){return o=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},o.apply(this,arguments)},i=function(te,C,$){if($||arguments.length===2)for(var N,F=0,z=C.length;F<z;F++)!N&&F in C||(N||(N=Array.prototype.slice.call(C,0,F)),N[F]=C[F]);return te.concat(N||Array.prototype.slice.call(C))},s=function(te){return!!te&&typeof te=="object"&&!Array.isArray(te)};function a(te){for(var C=[],$=1;$<arguments.length;$++)C[$-1]=arguments[$];if(!C.length)return te;var N=C.shift();return N!==void 0&&s(te)&&s(N)?(te=o({},te),Object.keys(N).forEach(function(F){var z=te[F],H=N[F];Array.isArray(z)&&Array.isArray(H)?te[F]=H:s(z)&&s(H)?te[F]=a(Object.assign({},z),H):te[F]=H}),a.apply(void 0,i([te],C,!1))):te}function l(te,C){var $=document.createElement("a");$.download=C,$.href=te,document.body.appendChild($),$.click(),document.body.removeChild($)}function u(te){var C=te.originalHeight,$=te.originalWidth,N=te.maxHiddenDots,F=te.maxHiddenAxisDots,z=te.dotSize,H={x:0,y:0},oe={x:0,y:0};if(C<=0||$<=0||N<=0||z<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=C/$;return H.x=Math.floor(Math.sqrt(N/se)),H.x<=0&&(H.x=1),F&&F<H.x&&(H.x=F),H.x%2==0&&H.x--,oe.x=H.x*z,H.y=1+2*Math.ceil((H.x*se-1)/2),oe.y=Math.round(oe.x*se),(H.y*H.x>N||F&&F<H.y)&&(F&&F<H.y?(H.y=F,H.y%2==0&&H.x--):H.y-=2,oe.y=H.y*z,H.x=1+2*Math.ceil((H.y/se-1)/2),oe.x=Math.round(oe.y/se)),{height:oe.y,width:oe.x,hideYDots:H.y,hideXDots:H.x}}let h={L:.07,M:.15,Q:.25,H:.3},p="dots",y="rounded",w="classy",v="classy-rounded",S="extra-rounded";var I=function(){return I=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},I.apply(this,arguments)},T=function(){function te(C){var $=C.context,N=C.type;this._context=$,this._type=N}return te.prototype.draw=function(C,$,N,F){var z,H=this._context;switch(this._type){case p:z=this._drawDot;break;case w:z=this._drawClassy;break;case v:z=this._drawClassyRounded;break;case y:z=this._drawRounded;break;case S:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:C,y:$,size:N,context:H,getNeighbor:F})},te.prototype._rotateFigure=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation,oe=H===void 0?0:H,se=C.draw,pe=$+F/2,de=N+F/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},te.prototype._basicDot=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(0,0,$/2,0,2*Math.PI)}}))},te.prototype._basicSquare=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.rect(-$/2,-$/2,$,$)}}))},te.prototype._basicSideRounded=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(0,0,$/2,-Math.PI/2,Math.PI/2),N.lineTo(-$/2,$/2),N.lineTo(-$/2,-$/2),N.lineTo(0,-$/2)}}))},te.prototype._basicCornerRounded=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(0,0,$/2,-Math.PI/2,0),N.lineTo($/2,$/2),N.lineTo(-$/2,$/2),N.lineTo(-$/2,-$/2),N.lineTo(0,-$/2)}}))},te.prototype._basicCornerExtraRounded=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(-$/2,$/2,$,-Math.PI/2,0),N.lineTo(-$/2,$/2),N.lineTo(-$/2,-$/2)}}))},te.prototype._basicCornersRounded=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(0,0,$/2,-Math.PI/2,0),N.lineTo($/2,$/2),N.lineTo(0,$/2),N.arc(0,0,$/2,Math.PI/2,Math.PI),N.lineTo(-$/2,-$/2),N.lineTo(0,-$/2)}}))},te.prototype._basicCornersExtraRounded=function(C){var $=C.size,N=C.context;this._rotateFigure(I(I({},C),{draw:function(){N.arc(-$/2,$/2,$,-Math.PI/2,0),N.arc($/2,-$/2,$,Math.PI/2,Math.PI)}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size,z=C.context;this._basicDot({x:$,y:N,size:F,context:z,rotation:0})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size,z=C.context;this._basicSquare({x:$,y:N,size:F,context:z,rotation:0})},te.prototype._drawRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.getNeighbor,oe=H?+H(-1,0):0,se=H?+H(1,0):0,pe=H?+H(0,-1):0,de=H?+H(0,1):0,be=oe+se+pe+de;if(be!==0)if(be>2||oe&&se||pe&&de)this._basicSquare({x:$,y:N,size:F,context:z,rotation:0});else{if(be===2){var ye=0;return oe&&pe?ye=Math.PI/2:pe&&se?ye=Math.PI:se&&de&&(ye=-Math.PI/2),void this._basicCornerRounded({x:$,y:N,size:F,context:z,rotation:ye})}if(be===1)return ye=0,pe?ye=Math.PI/2:se?ye=Math.PI:de&&(ye=-Math.PI/2),void this._basicSideRounded({x:$,y:N,size:F,context:z,rotation:ye})}else this._basicDot({x:$,y:N,size:F,context:z,rotation:0})},te.prototype._drawExtraRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.getNeighbor,oe=H?+H(-1,0):0,se=H?+H(1,0):0,pe=H?+H(0,-1):0,de=H?+H(0,1):0,be=oe+se+pe+de;if(be!==0)if(be>2||oe&&se||pe&&de)this._basicSquare({x:$,y:N,size:F,context:z,rotation:0});else{if(be===2){var ye=0;return oe&&pe?ye=Math.PI/2:pe&&se?ye=Math.PI:se&&de&&(ye=-Math.PI/2),void this._basicCornerExtraRounded({x:$,y:N,size:F,context:z,rotation:ye})}if(be===1)return ye=0,pe?ye=Math.PI/2:se?ye=Math.PI:de&&(ye=-Math.PI/2),void this._basicSideRounded({x:$,y:N,size:F,context:z,rotation:ye})}else this._basicDot({x:$,y:N,size:F,context:z,rotation:0})},te.prototype._drawClassy=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.getNeighbor,oe=H?+H(-1,0):0,se=H?+H(1,0):0,pe=H?+H(0,-1):0,de=H?+H(0,1):0;oe+se+pe+de!==0?oe||pe?se||de?this._basicSquare({x:$,y:N,size:F,context:z,rotation:0}):this._basicCornerRounded({x:$,y:N,size:F,context:z,rotation:Math.PI/2}):this._basicCornerRounded({x:$,y:N,size:F,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:N,size:F,context:z,rotation:Math.PI/2})},te.prototype._drawClassyRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.getNeighbor,oe=H?+H(-1,0):0,se=H?+H(1,0):0,pe=H?+H(0,-1):0,de=H?+H(0,1):0;oe+se+pe+de!==0?oe||pe?se||de?this._basicSquare({x:$,y:N,size:F,context:z,rotation:0}):this._basicCornerExtraRounded({x:$,y:N,size:F,context:z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:$,y:N,size:F,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:N,size:F,context:z,rotation:Math.PI/2})},te}();let O=T,M="square",L="extra-rounded";var G=function(){return G=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},G.apply(this,arguments)},J=function(){function te(C){var $=C.context,N=C.type;this._context=$,this._type=N}return te.prototype.draw=function(C,$,N,F){var z,H=this._context;switch(this._type){case M:z=this._drawSquare;break;case L:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:C,y:$,size:N,context:H,rotation:F})},te.prototype._rotateFigure=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation,oe=H===void 0?0:H,se=C.draw,pe=$+F/2,de=N+F/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},te.prototype._basicDot=function(C){var $=C.size,N=C.context,F=$/7;this._rotateFigure(G(G({},C),{draw:function(){N.arc(0,0,$/2,0,2*Math.PI),N.arc(0,0,$/2-F,0,2*Math.PI)}}))},te.prototype._basicSquare=function(C){var $=C.size,N=C.context,F=$/7;this._rotateFigure(G(G({},C),{draw:function(){N.rect(-$/2,-$/2,$,$),N.rect(-$/2+F,-$/2+F,$-2*F,$-2*F)}}))},te.prototype._basicExtraRounded=function(C){var $=C.size,N=C.context,F=$/7;this._rotateFigure(G(G({},C),{draw:function(){N.arc(-F,-F,2.5*F,Math.PI,-Math.PI/2),N.lineTo(F,-3.5*F),N.arc(F,-F,2.5*F,-Math.PI/2,0),N.lineTo(3.5*F,-F),N.arc(F,F,2.5*F,0,Math.PI/2),N.lineTo(-F,3.5*F),N.arc(-F,F,2.5*F,Math.PI/2,Math.PI),N.lineTo(-3.5*F,-F),N.arc(-F,-F,1.5*F,Math.PI,-Math.PI/2),N.lineTo(F,-2.5*F),N.arc(F,-F,1.5*F,-Math.PI/2,0),N.lineTo(2.5*F,-F),N.arc(F,F,1.5*F,0,Math.PI/2),N.lineTo(-F,2.5*F),N.arc(-F,F,1.5*F,Math.PI/2,Math.PI),N.lineTo(-2.5*F,-F)}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation;this._basicDot({x:$,y:N,size:F,context:z,rotation:H})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation;this._basicSquare({x:$,y:N,size:F,context:z,rotation:H})},te.prototype._drawExtraRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation;this._basicExtraRounded({x:$,y:N,size:F,context:z,rotation:H})},te}();let V=J,q="square";var ce=function(){return ce=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},ce.apply(this,arguments)},me=function(){function te(C){var $=C.context,N=C.type;this._context=$,this._type=N}return te.prototype.draw=function(C,$,N,F){var z=this._context;(this._type===q?this._drawSquare:this._drawDot).call(this,{x:C,y:$,size:N,context:z,rotation:F})},te.prototype._rotateFigure=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation,oe=H===void 0?0:H,se=C.draw,pe=$+F/2,de=N+F/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},te.prototype._basicDot=function(C){var $=C.size,N=C.context;this._rotateFigure(ce(ce({},C),{draw:function(){N.arc(0,0,$/2,0,2*Math.PI)}}))},te.prototype._basicSquare=function(C){var $=C.size,N=C.context;this._rotateFigure(ce(ce({},C),{draw:function(){N.rect(-$/2,-$/2,$,$)}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation;this._basicDot({x:$,y:N,size:F,context:z,rotation:H})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size,z=C.context,H=C.rotation;this._basicSquare({x:$,y:N,size:F,context:z,rotation:H})},te}();let fe=me,X="radial";var R=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],m=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let b=function(){function te(C){this._canvas=document.createElement("canvas"),this._canvas.width=C.width,this._canvas.height=C.height,this._options=C}return Object.defineProperty(te.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),te.prototype.getCanvas=function(){return this._canvas},te.prototype.clear=function(){var C=this.context;C&&C.clearRect(0,0,this._canvas.width,this._canvas.height)},te.prototype.drawQR=function(C){return $=this,N=void 0,z=function(){var H,oe,se,pe,de,be,ye,Se,Le,ze=this;return function(Ne,Ve){var Oe,Ce,Ee,Ue,Te={label:0,sent:function(){if(1&Ee[0])throw Ee[1];return Ee[1]},trys:[],ops:[]};return Ue={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function xt(Ke){return function(et){return function(De){if(Oe)throw new TypeError("Generator is already executing.");for(;Te;)try{if(Oe=1,Ce&&(Ee=2&De[0]?Ce.return:De[0]?Ce.throw||((Ee=Ce.return)&&Ee.call(Ce),0):Ce.next)&&!(Ee=Ee.call(Ce,De[1])).done)return Ee;switch(Ce=0,Ee&&(De=[2&De[0],Ee.value]),De[0]){case 0:case 1:Ee=De;break;case 4:return Te.label++,{value:De[1],done:!1};case 5:Te.label++,Ce=De[1],De=[0];continue;case 7:De=Te.ops.pop(),Te.trys.pop();continue;default:if(!((Ee=(Ee=Te.trys).length>0&&Ee[Ee.length-1])||De[0]!==6&&De[0]!==2)){Te=0;continue}if(De[0]===3&&(!Ee||De[1]>Ee[0]&&De[1]<Ee[3])){Te.label=De[1];break}if(De[0]===6&&Te.label<Ee[1]){Te.label=Ee[1],Ee=De;break}if(Ee&&Te.label<Ee[2]){Te.label=Ee[2],Te.ops.push(De);break}Ee[2]&&Te.ops.pop(),Te.trys.pop();continue}De=Ve.call(Ne,Te)}catch(Xe){De=[6,Xe],Ce=0}finally{Oe=Ee=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([Ke,et])}}}(this,function(Ne){switch(Ne.label){case 0:return H=C.getModuleCount(),oe=Math.min(this._options.width,this._options.height)-2*this._options.margin,se=Math.floor(oe/H),pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=C,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ne.sent(),!this._image)return[2];de=this._options,be=de.imageOptions,ye=de.qrOptions,Se=be.imageSize*h[ye.errorCorrectionLevel],Le=Math.floor(Se*H*H),pe=u({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Le,maxHiddenAxisDots:H-14,dotSize:se}),Ne.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ve,Oe){var Ce,Ee,Ue,Te,xt,Ke;return!(ze._options.imageOptions.hideBackgroundDots&&Ve>=(H-pe.hideXDots)/2&&Ve<(H+pe.hideXDots)/2&&Oe>=(H-pe.hideYDots)/2&&Oe<(H+pe.hideYDots)/2||((Ce=R[Ve])===null||Ce===void 0?void 0:Ce[Oe])||((Ee=R[Ve-H+7])===null||Ee===void 0?void 0:Ee[Oe])||((Ue=R[Ve])===null||Ue===void 0?void 0:Ue[Oe-H+7])||((Te=m[Ve])===null||Te===void 0?void 0:Te[Oe])||((xt=m[Ve-H+7])===null||xt===void 0?void 0:xt[Oe])||((Ke=m[Ve])===null||Ke===void 0?void 0:Ke[Oe-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:pe.width,height:pe.height,count:H,dotSize:se}),[2]}})},new((F=void 0)||(F=Promise))(function(H,oe){function se(be){try{de(z.next(be))}catch(ye){oe(ye)}}function pe(be){try{de(z.throw(be))}catch(ye){oe(ye)}}function de(be){var ye;be.done?H(be.value):(ye=be.value,ye instanceof F?ye:new F(function(Se){Se(ye)})).then(se,pe)}de((z=z.apply($,N||[])).next())});var $,N,F,z},te.prototype.drawBackground=function(){var C=this.context,$=this._options;if(C){if($.backgroundOptions.gradient){var N=$.backgroundOptions.gradient,F=this._createGradient({context:C,options:N,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});N.colorStops.forEach(function(z){var H=z.offset,oe=z.color;F.addColorStop(H,oe)}),C.fillStyle=F}else $.backgroundOptions.color&&(C.fillStyle=$.backgroundOptions.color);C.fillRect(0,0,this._canvas.width,this._canvas.height)}},te.prototype.drawDots=function(C){var $=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var F=this._options,z=this._qr.getModuleCount();if(z>F.width||z>F.height)throw"The canvas is too small.";var H=Math.min(F.width,F.height)-2*F.margin,oe=Math.floor(H/z),se=Math.floor((F.width-z*oe)/2),pe=Math.floor((F.height-z*oe)/2),de=new O({context:N,type:F.dotsOptions.type});N.beginPath();for(var be=function(Ne){for(var Ve=function(Ce){return C&&!C(Ne,Ce)?"continue":ye._qr.isDark(Ne,Ce)?void de.draw(se+Ne*oe,pe+Ce*oe,oe,function(Ee,Ue){return!(Ne+Ee<0||Ce+Ue<0||Ne+Ee>=z||Ce+Ue>=z)&&!(C&&!C(Ne+Ee,Ce+Ue))&&!!$._qr&&$._qr.isDark(Ne+Ee,Ce+Ue)}):"continue"},Oe=0;Oe<z;Oe++)Ve(Oe)},ye=this,Se=0;Se<z;Se++)be(Se);if(F.dotsOptions.gradient){var Le=F.dotsOptions.gradient,ze=this._createGradient({context:N,options:Le,additionalRotation:0,x:se,y:pe,size:z*oe});Le.colorStops.forEach(function(Ne){var Ve=Ne.offset,Oe=Ne.color;ze.addColorStop(Ve,Oe)}),N.fillStyle=N.strokeStyle=ze}else F.dotsOptions.color&&(N.fillStyle=N.strokeStyle=F.dotsOptions.color);N.fill("evenodd")},te.prototype.drawCorners=function(C){var $=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var F=this._options,z=this._qr.getModuleCount(),H=Math.min(F.width,F.height)-2*F.margin,oe=Math.floor(H/z),se=7*oe,pe=3*oe,de=Math.floor((F.width-z*oe)/2),be=Math.floor((F.height-z*oe)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(ye){var Se,Le,ze,Ne,Ve,Oe,Ce,Ee,Ue,Te,xt=ye[0],Ke=ye[1],et=ye[2];if(!C||C(xt,Ke)){var De=de+xt*oe*(z-7),Xe=be+Ke*oe*(z-7);if(!((Se=F.cornersSquareOptions)===null||Se===void 0)&&Se.type){var mt=new V({context:N,type:(Le=F.cornersSquareOptions)===null||Le===void 0?void 0:Le.type});N.beginPath(),mt.draw(De,Xe,se,et)}else{var dr=new O({context:N,type:F.dotsOptions.type});N.beginPath();for(var St=function(qe){for(var Xt=function(at){if(!(!((ze=R[qe])===null||ze===void 0)&&ze[at]))return"continue";dr.draw(De+qe*oe,Xe+at*oe,oe,function(nn,lt){var gt;return!!(!((gt=R[qe+nn])===null||gt===void 0)&>[at+lt])})},Ge=0;Ge<R[qe].length;Ge++)Xt(Ge)},Qe=0;Qe<R.length;Qe++)St(Qe)}if(!((Ne=F.cornersSquareOptions)===null||Ne===void 0)&&Ne.gradient){var rn=F.cornersSquareOptions.gradient,ct=$._createGradient({context:N,options:rn,additionalRotation:et,x:De,y:Xe,size:se});rn.colorStops.forEach(function(qe){var Xt=qe.offset,Ge=qe.color;ct.addColorStop(Xt,Ge)}),N.fillStyle=N.strokeStyle=ct}else!((Ve=F.cornersSquareOptions)===null||Ve===void 0)&&Ve.color&&(N.fillStyle=N.strokeStyle=F.cornersSquareOptions.color);if(N.fill("evenodd"),(Oe=F.cornersDotOptions)===null||Oe===void 0?void 0:Oe.type){var Ct=new fe({context:N,type:(Ce=F.cornersDotOptions)===null||Ce===void 0?void 0:Ce.type});N.beginPath(),Ct.draw(De+2*oe,Xe+2*oe,pe,et)}else{dr=new O({context:N,type:F.dotsOptions.type}),N.beginPath();var Po=function(qe){for(var Xt=function(at){if(!(!((Ee=m[qe])===null||Ee===void 0)&&Ee[at]))return"continue";dr.draw(De+qe*oe,Xe+at*oe,oe,function(nn,lt){var gt;return!!(!((gt=m[qe+nn])===null||gt===void 0)&>[at+lt])})},Ge=0;Ge<m[qe].length;Ge++)Xt(Ge)};for(Qe=0;Qe<m.length;Qe++)Po(Qe)}if(!((Ue=F.cornersDotOptions)===null||Ue===void 0)&&Ue.gradient){rn=F.cornersDotOptions.gradient;var nt=$._createGradient({context:N,options:rn,additionalRotation:et,x:De+2*oe,y:Xe+2*oe,size:pe});rn.colorStops.forEach(function(qe){var Xt=qe.offset,Ge=qe.color;nt.addColorStop(Xt,Ge)}),N.fillStyle=N.strokeStyle=nt}else!((Te=F.cornersDotOptions)===null||Te===void 0)&&Te.color&&(N.fillStyle=N.strokeStyle=F.cornersDotOptions.color);N.fill("evenodd")}})},te.prototype.loadImage=function(){var C=this;return new Promise(function($,N){var F=C._options,z=new Image;if(!F.image)return N("Image is not defined");typeof F.imageOptions.crossOrigin=="string"&&(z.crossOrigin=F.imageOptions.crossOrigin),C._image=z,z.onload=function(){$()},z.src=F.image})},te.prototype.drawImage=function(C){var $=C.width,N=C.height,F=C.count,z=C.dotSize,H=this.context;if(!H)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var oe=this._options,se=Math.floor((oe.width-F*z)/2),pe=Math.floor((oe.height-F*z)/2),de=se+oe.imageOptions.margin+(F*z-$)/2,be=pe+oe.imageOptions.margin+(F*z-N)/2,ye=$-2*oe.imageOptions.margin,Se=N-2*oe.imageOptions.margin;H.drawImage(this._image,de,be,ye<0?0:ye,Se<0?0:Se)},te.prototype._createGradient=function(C){var $,N=C.context,F=C.options,z=C.additionalRotation,H=C.x,oe=C.y,se=C.size;if(F.type===X)$=N.createRadialGradient(H+se/2,oe+se/2,0,H+se/2,oe+se/2,se/2);else{var pe=((F.rotation||0)+z)%(2*Math.PI),de=(pe+2*Math.PI)%(2*Math.PI),be=H+se/2,ye=oe+se/2,Se=H+se/2,Le=oe+se/2;de>=0&&de<=.25*Math.PI||de>1.75*Math.PI&&de<=2*Math.PI?(be-=se/2,ye-=se/2*Math.tan(pe),Se+=se/2,Le+=se/2*Math.tan(pe)):de>.25*Math.PI&&de<=.75*Math.PI?(ye-=se/2,be-=se/2/Math.tan(pe),Le+=se/2,Se+=se/2/Math.tan(pe)):de>.75*Math.PI&&de<=1.25*Math.PI?(be+=se/2,ye+=se/2*Math.tan(pe),Se-=se/2,Le-=se/2*Math.tan(pe)):de>1.25*Math.PI&&de<=1.75*Math.PI&&(ye+=se/2,be+=se/2/Math.tan(pe),Le-=se/2,Se-=se/2/Math.tan(pe)),$=N.createLinearGradient(Math.round(be),Math.round(ye),Math.round(Se),Math.round(Le))}return $},te}();var E=function(){return E=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},E.apply(this,arguments)},A=function(){function te(C){var $=C.svg,N=C.type;this._svg=$,this._type=N}return te.prototype.draw=function(C,$,N,F){var z;switch(this._type){case p:z=this._drawDot;break;case w:z=this._drawClassy;break;case v:z=this._drawClassyRounded;break;case y:z=this._drawRounded;break;case S:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:C,y:$,size:N,getNeighbor:F})},te.prototype._rotateFigure=function(C){var $,N=C.x,F=C.y,z=C.size,H=C.rotation,oe=H===void 0?0:H,se=N+z/2,pe=F+z/2;(0,C.draw)(),($=this._element)===null||$===void 0||$.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},te.prototype._basicDot=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),$._element.setAttribute("cx",String(F+N/2)),$._element.setAttribute("cy",String(z+N/2)),$._element.setAttribute("r",String(N/2))}}))},te.prototype._basicSquare=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),$._element.setAttribute("x",String(F)),$._element.setAttribute("y",String(z)),$._element.setAttribute("width",String(N)),$._element.setAttribute("height",String(N))}}))},te.prototype._basicSideRounded=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("d","M ".concat(F," ").concat(z)+"v ".concat(N)+"h ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, 0 ").concat(-N))}}))},te.prototype._basicCornerRounded=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("d","M ".concat(F," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},te.prototype._basicCornerExtraRounded=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("d","M ".concat(F," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"a ".concat(N," ").concat(N,", 0, 0, 0, ").concat(-N," ").concat(-N))}}))},te.prototype._basicCornersRounded=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(E(E({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("d","M ".concat(F," ").concat(z)+"v ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(N/2," ").concat(N/2)+"h ".concat(N/2)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size;this._basicDot({x:$,y:N,size:F,rotation:0})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size;this._basicSquare({x:$,y:N,size:F,rotation:0})},te.prototype._drawRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.getNeighbor,H=z?+z(-1,0):0,oe=z?+z(1,0):0,se=z?+z(0,-1):0,pe=z?+z(0,1):0,de=H+oe+se+pe;if(de!==0)if(de>2||H&&oe||se&&pe)this._basicSquare({x:$,y:N,size:F,rotation:0});else{if(de===2){var be=0;return H&&se?be=Math.PI/2:se&&oe?be=Math.PI:oe&&pe&&(be=-Math.PI/2),void this._basicCornerRounded({x:$,y:N,size:F,rotation:be})}if(de===1)return be=0,se?be=Math.PI/2:oe?be=Math.PI:pe&&(be=-Math.PI/2),void this._basicSideRounded({x:$,y:N,size:F,rotation:be})}else this._basicDot({x:$,y:N,size:F,rotation:0})},te.prototype._drawExtraRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.getNeighbor,H=z?+z(-1,0):0,oe=z?+z(1,0):0,se=z?+z(0,-1):0,pe=z?+z(0,1):0,de=H+oe+se+pe;if(de!==0)if(de>2||H&&oe||se&&pe)this._basicSquare({x:$,y:N,size:F,rotation:0});else{if(de===2){var be=0;return H&&se?be=Math.PI/2:se&&oe?be=Math.PI:oe&&pe&&(be=-Math.PI/2),void this._basicCornerExtraRounded({x:$,y:N,size:F,rotation:be})}if(de===1)return be=0,se?be=Math.PI/2:oe?be=Math.PI:pe&&(be=-Math.PI/2),void this._basicSideRounded({x:$,y:N,size:F,rotation:be})}else this._basicDot({x:$,y:N,size:F,rotation:0})},te.prototype._drawClassy=function(C){var $=C.x,N=C.y,F=C.size,z=C.getNeighbor,H=z?+z(-1,0):0,oe=z?+z(1,0):0,se=z?+z(0,-1):0,pe=z?+z(0,1):0;H+oe+se+pe!==0?H||se?oe||pe?this._basicSquare({x:$,y:N,size:F,rotation:0}):this._basicCornerRounded({x:$,y:N,size:F,rotation:Math.PI/2}):this._basicCornerRounded({x:$,y:N,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:N,size:F,rotation:Math.PI/2})},te.prototype._drawClassyRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.getNeighbor,H=z?+z(-1,0):0,oe=z?+z(1,0):0,se=z?+z(0,-1):0,pe=z?+z(0,1):0;H+oe+se+pe!==0?H||se?oe||pe?this._basicSquare({x:$,y:N,size:F,rotation:0}):this._basicCornerExtraRounded({x:$,y:N,size:F,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:$,y:N,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:N,size:F,rotation:Math.PI/2})},te}();let k=A;var B=function(){return B=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},B.apply(this,arguments)},K=function(){function te(C){var $=C.svg,N=C.type;this._svg=$,this._type=N}return te.prototype.draw=function(C,$,N,F){var z;switch(this._type){case M:z=this._drawSquare;break;case L:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:C,y:$,size:N,rotation:F})},te.prototype._rotateFigure=function(C){var $,N=C.x,F=C.y,z=C.size,H=C.rotation,oe=H===void 0?0:H,se=N+z/2,pe=F+z/2;(0,C.draw)(),($=this._element)===null||$===void 0||$.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},te.prototype._basicDot=function(C){var $=this,N=C.size,F=C.x,z=C.y,H=N/7;this._rotateFigure(B(B({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("clip-rule","evenodd"),$._element.setAttribute("d","M ".concat(F+N/2," ").concat(z)+"a ".concat(N/2," ").concat(N/2," 0 1 0 0.1 0")+"z"+"m 0 ".concat(H)+"a ".concat(N/2-H," ").concat(N/2-H," 0 1 1 -0.1 0")+"Z")}}))},te.prototype._basicSquare=function(C){var $=this,N=C.size,F=C.x,z=C.y,H=N/7;this._rotateFigure(B(B({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("clip-rule","evenodd"),$._element.setAttribute("d","M ".concat(F," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N)+"z"+"M ".concat(F+H," ").concat(z+H)+"h ".concat(N-2*H)+"v ".concat(N-2*H)+"h ".concat(2*H-N)+"z")}}))},te.prototype._basicExtraRounded=function(C){var $=this,N=C.size,F=C.x,z=C.y,H=N/7;this._rotateFigure(B(B({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","path"),$._element.setAttribute("clip-rule","evenodd"),$._element.setAttribute("d","M ".concat(F," ").concat(z+2.5*H)+"v ".concat(2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*H," ").concat(2.5*H)+"h ".concat(2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*H," ").concat(2.5*-H)+"v ".concat(-2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*-H," ").concat(2.5*-H)+"h ".concat(-2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*-H," ").concat(2.5*H)+"M ".concat(F+2.5*H," ").concat(z+H)+"h ".concat(2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*H," ").concat(1.5*H)+"v ".concat(2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*-H," ").concat(1.5*H)+"h ".concat(-2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*-H," ").concat(1.5*-H)+"v ".concat(-2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*H," ").concat(1.5*-H))}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size,z=C.rotation;this._basicDot({x:$,y:N,size:F,rotation:z})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size,z=C.rotation;this._basicSquare({x:$,y:N,size:F,rotation:z})},te.prototype._drawExtraRounded=function(C){var $=C.x,N=C.y,F=C.size,z=C.rotation;this._basicExtraRounded({x:$,y:N,size:F,rotation:z})},te}();let U=K;var x=function(){return x=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},x.apply(this,arguments)},j=function(){function te(C){var $=C.svg,N=C.type;this._svg=$,this._type=N}return te.prototype.draw=function(C,$,N,F){(this._type===q?this._drawSquare:this._drawDot).call(this,{x:C,y:$,size:N,rotation:F})},te.prototype._rotateFigure=function(C){var $,N=C.x,F=C.y,z=C.size,H=C.rotation,oe=H===void 0?0:H,se=N+z/2,pe=F+z/2;(0,C.draw)(),($=this._element)===null||$===void 0||$.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},te.prototype._basicDot=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(x(x({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),$._element.setAttribute("cx",String(F+N/2)),$._element.setAttribute("cy",String(z+N/2)),$._element.setAttribute("r",String(N/2))}}))},te.prototype._basicSquare=function(C){var $=this,N=C.size,F=C.x,z=C.y;this._rotateFigure(x(x({},C),{draw:function(){$._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),$._element.setAttribute("x",String(F)),$._element.setAttribute("y",String(z)),$._element.setAttribute("width",String(N)),$._element.setAttribute("height",String(N))}}))},te.prototype._drawDot=function(C){var $=C.x,N=C.y,F=C.size,z=C.rotation;this._basicDot({x:$,y:N,size:F,rotation:z})},te.prototype._drawSquare=function(C){var $=C.x,N=C.y,F=C.size,z=C.rotation;this._basicSquare({x:$,y:N,size:F,rotation:z})},te}();let ie=j;var D=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],Y=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let ne=function(){function te(C){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(C.width)),this._element.setAttribute("height",String(C.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=C}return Object.defineProperty(te.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),te.prototype.getElement=function(){return this._element},te.prototype.clear=function(){var C,$=this._element;this._element=$.cloneNode(!1),(C=$==null?void 0:$.parentNode)===null||C===void 0||C.replaceChild(this._element,$),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},te.prototype.drawQR=function(C){return $=this,N=void 0,z=function(){var H,oe,se,pe,de,be,ye,Se,Le,ze=this;return function(Ne,Ve){var Oe,Ce,Ee,Ue,Te={label:0,sent:function(){if(1&Ee[0])throw Ee[1];return Ee[1]},trys:[],ops:[]};return Ue={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function xt(Ke){return function(et){return function(De){if(Oe)throw new TypeError("Generator is already executing.");for(;Te;)try{if(Oe=1,Ce&&(Ee=2&De[0]?Ce.return:De[0]?Ce.throw||((Ee=Ce.return)&&Ee.call(Ce),0):Ce.next)&&!(Ee=Ee.call(Ce,De[1])).done)return Ee;switch(Ce=0,Ee&&(De=[2&De[0],Ee.value]),De[0]){case 0:case 1:Ee=De;break;case 4:return Te.label++,{value:De[1],done:!1};case 5:Te.label++,Ce=De[1],De=[0];continue;case 7:De=Te.ops.pop(),Te.trys.pop();continue;default:if(!((Ee=(Ee=Te.trys).length>0&&Ee[Ee.length-1])||De[0]!==6&&De[0]!==2)){Te=0;continue}if(De[0]===3&&(!Ee||De[1]>Ee[0]&&De[1]<Ee[3])){Te.label=De[1];break}if(De[0]===6&&Te.label<Ee[1]){Te.label=Ee[1],Ee=De;break}if(Ee&&Te.label<Ee[2]){Te.label=Ee[2],Te.ops.push(De);break}Ee[2]&&Te.ops.pop(),Te.trys.pop();continue}De=Ve.call(Ne,Te)}catch(Xe){De=[6,Xe],Ce=0}finally{Oe=Ee=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([Ke,et])}}}(this,function(Ne){switch(Ne.label){case 0:return H=C.getModuleCount(),oe=Math.min(this._options.width,this._options.height)-2*this._options.margin,se=oe/H,pe={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=C,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Ne.sent(),!this._image)return[2];de=this._options,be=de.imageOptions,ye=de.qrOptions,Se=be.imageSize*h[ye.errorCorrectionLevel],Le=Math.floor(Se*H*H),pe=u({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Le,maxHiddenAxisDots:H-14,dotSize:se}),Ne.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ve,Oe){var Ce,Ee,Ue,Te,xt,Ke;return!(ze._options.imageOptions.hideBackgroundDots&&Ve>=(H-pe.hideXDots)/2&&Ve<(H+pe.hideXDots)/2&&Oe>=(H-pe.hideYDots)/2&&Oe<(H+pe.hideYDots)/2||((Ce=D[Ve])===null||Ce===void 0?void 0:Ce[Oe])||((Ee=D[Ve-H+7])===null||Ee===void 0?void 0:Ee[Oe])||((Ue=D[Ve])===null||Ue===void 0?void 0:Ue[Oe-H+7])||((Te=Y[Ve])===null||Te===void 0?void 0:Te[Oe])||((xt=Y[Ve-H+7])===null||xt===void 0?void 0:xt[Oe])||((Ke=Y[Ve])===null||Ke===void 0?void 0:Ke[Oe-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:pe.width,height:pe.height,count:H,dotSize:se}),[2]}})},new((F=void 0)||(F=Promise))(function(H,oe){function se(be){try{de(z.next(be))}catch(ye){oe(ye)}}function pe(be){try{de(z.throw(be))}catch(ye){oe(ye)}}function de(be){var ye;be.done?H(be.value):(ye=be.value,ye instanceof F?ye:new F(function(Se){Se(ye)})).then(se,pe)}de((z=z.apply($,N||[])).next())});var $,N,F,z},te.prototype.drawBackground=function(){var C,$,N=this._element,F=this._options;if(N){var z=(C=F.backgroundOptions)===null||C===void 0?void 0:C.gradient,H=($=F.backgroundOptions)===null||$===void 0?void 0:$.color;(z||H)&&this._createColor({options:z,color:H,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:"background-color"})}},te.prototype.drawDots=function(C){var $,N,F=this;if(!this._qr)throw"QR code is not defined";var z=this._options,H=this._qr.getModuleCount();if(H>z.width||H>z.height)throw"The canvas is too small.";var oe=(Math.min(z.width,z.height)-2*z.margin)/H,se=(z.width-H*oe)/2,pe=(z.height-H*oe)/2,de=new k({svg:this._element,type:z.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._dotsClipPath.style.transformOrigin="center",this._dotsClipPath.style.transform="rotate(90deg) scale(1, -1)",this._defs.appendChild(this._dotsClipPath),this._createColor({options:($=z.dotsOptions)===null||$===void 0?void 0:$.gradient,color:z.dotsOptions.color,additionalRotation:0,x:se,y:pe,height:H*oe,width:H*oe,name:"dot-color"});for(var be=function(Le){for(var ze=function(Ve){return C&&!C(Le,Ve)?"continue":!((N=ye._qr)===null||N===void 0)&&N.isDark(Le,Ve)?(de.draw(se+Le*oe,pe+Ve*oe,oe,function(Oe,Ce){return!(Le+Oe<0||Ve+Ce<0||Le+Oe>=H||Ve+Ce>=H)&&!(C&&!C(Le+Oe,Ve+Ce))&&!!F._qr&&F._qr.isDark(Le+Oe,Ve+Ce)}),void(de._element&&ye._dotsClipPath&&ye._dotsClipPath.appendChild(de._element))):"continue"},Ne=0;Ne<H;Ne++)ze(Ne)},ye=this,Se=0;Se<H;Se++)be(Se)},te.prototype.drawCorners=function(){var C=this;if(!this._qr)throw"QR code is not defined";var $=this._element,N=this._options;if(!$)throw"Element code is not defined";var F=this._qr.getModuleCount(),z=(Math.min(N.width,N.height)-2*N.margin)/F,H=7*z,oe=3*z,se=(N.width-F*z)/2,pe=(N.height-F*z)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(de){var be,ye,Se,Le,ze,Ne,Ve,Oe,Ce,Ee,Ue,Te,xt=de[0],Ke=de[1],et=de[2],De=se+xt*z*(F-7),Xe=pe+Ke*z*(F-7),mt=C._dotsClipPath,dr=C._dotsClipPath;if((((be=N.cornersSquareOptions)===null||be===void 0?void 0:be.gradient)||((ye=N.cornersSquareOptions)===null||ye===void 0?void 0:ye.color))&&((mt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-".concat(xt,"-").concat(Ke)),C._defs.appendChild(mt),C._cornersSquareClipPath=C._cornersDotClipPath=dr=mt,C._createColor({options:(Se=N.cornersSquareOptions)===null||Se===void 0?void 0:Se.gradient,color:(Le=N.cornersSquareOptions)===null||Le===void 0?void 0:Le.color,additionalRotation:et,x:De,y:Xe,height:H,width:H,name:"corners-square-color-".concat(xt,"-").concat(Ke)})),(ze=N.cornersSquareOptions)===null||ze===void 0?void 0:ze.type){var St=new U({svg:C._element,type:N.cornersSquareOptions.type});St.draw(De,Xe,H,et),St._element&&mt&&mt.appendChild(St._element)}else for(var Qe=new k({svg:C._element,type:N.dotsOptions.type}),rn=function(nt){for(var qe=function(Ge){if(!(!((Ne=D[nt])===null||Ne===void 0)&&Ne[Ge]))return"continue";Qe.draw(De+nt*z,Xe+Ge*z,z,function(at,nn){var lt;return!!(!((lt=D[nt+at])===null||lt===void 0)&<[Ge+nn])}),Qe._element&&mt&&mt.appendChild(Qe._element)},Xt=0;Xt<D[nt].length;Xt++)qe(Xt)},ct=0;ct<D.length;ct++)rn(ct);if((((Ve=N.cornersDotOptions)===null||Ve===void 0?void 0:Ve.gradient)||((Oe=N.cornersDotOptions)===null||Oe===void 0?void 0:Oe.color))&&((dr=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-".concat(xt,"-").concat(Ke)),C._defs.appendChild(dr),C._cornersDotClipPath=dr,C._createColor({options:(Ce=N.cornersDotOptions)===null||Ce===void 0?void 0:Ce.gradient,color:(Ee=N.cornersDotOptions)===null||Ee===void 0?void 0:Ee.color,additionalRotation:et,x:De+2*z,y:Xe+2*z,height:oe,width:oe,name:"corners-dot-color-".concat(xt,"-").concat(Ke)})),(Ue=N.cornersDotOptions)===null||Ue===void 0?void 0:Ue.type){var Ct=new ie({svg:C._element,type:N.cornersDotOptions.type});Ct.draw(De+2*z,Xe+2*z,oe,et),Ct._element&&dr&&dr.appendChild(Ct._element)}else{Qe=new k({svg:C._element,type:N.dotsOptions.type});var Po=function(nt){for(var qe=function(Ge){if(!(!((Te=Y[nt])===null||Te===void 0)&&Te[Ge]))return"continue";Qe.draw(De+nt*z,Xe+Ge*z,z,function(at,nn){var lt;return!!(!((lt=Y[nt+at])===null||lt===void 0)&<[Ge+nn])}),Qe._element&&dr&&dr.appendChild(Qe._element)},Xt=0;Xt<Y[nt].length;Xt++)qe(Xt)};for(ct=0;ct<Y.length;ct++)Po(ct)}})},te.prototype.loadImage=function(){var C=this;return new Promise(function($,N){var F=C._options,z=new Image;if(!F.image)return N("Image is not defined");typeof F.imageOptions.crossOrigin=="string"&&(z.crossOrigin=F.imageOptions.crossOrigin),C._image=z,z.onload=function(){$()},z.src=F.image})},te.prototype.drawImage=function(C){var $=C.width,N=C.height,F=C.count,z=C.dotSize,H=this._options,oe=(H.width-F*z)/2,se=(H.height-F*z)/2,pe=oe+H.imageOptions.margin+(F*z-$)/2,de=se+H.imageOptions.margin+(F*z-N)/2,be=$-2*H.imageOptions.margin,ye=N-2*H.imageOptions.margin,Se=document.createElementNS("http://www.w3.org/2000/svg","image");Se.setAttribute("href",H.image||""),Se.setAttribute("x",String(pe)),Se.setAttribute("y",String(de)),Se.setAttribute("width","".concat(be,"px")),Se.setAttribute("height","".concat(ye,"px")),this._element.appendChild(Se)},te.prototype._createColor=function(C){var $=C.options,N=C.color,F=C.additionalRotation,z=C.x,H=C.y,oe=C.height,se=C.width,pe=C.name,de=se>oe?se:oe,be=document.createElementNS("http://www.w3.org/2000/svg","rect");if(be.setAttribute("x",String(z)),be.setAttribute("y",String(H)),be.setAttribute("height",String(oe)),be.setAttribute("width",String(se)),be.setAttribute("clip-path","url('#clip-path-".concat(pe,"')")),$){var ye;if($.type===X)(ye=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",pe),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("fx",String(z+se/2)),ye.setAttribute("fy",String(H+oe/2)),ye.setAttribute("cx",String(z+se/2)),ye.setAttribute("cy",String(H+oe/2)),ye.setAttribute("r",String(de/2));else{var Se=(($.rotation||0)+F)%(2*Math.PI),Le=(Se+2*Math.PI)%(2*Math.PI),ze=z+se/2,Ne=H+oe/2,Ve=z+se/2,Oe=H+oe/2;Le>=0&&Le<=.25*Math.PI||Le>1.75*Math.PI&&Le<=2*Math.PI?(ze-=se/2,Ne-=oe/2*Math.tan(Se),Ve+=se/2,Oe+=oe/2*Math.tan(Se)):Le>.25*Math.PI&&Le<=.75*Math.PI?(Ne-=oe/2,ze-=se/2/Math.tan(Se),Oe+=oe/2,Ve+=se/2/Math.tan(Se)):Le>.75*Math.PI&&Le<=1.25*Math.PI?(ze+=se/2,Ne+=oe/2*Math.tan(Se),Ve-=se/2,Oe-=oe/2*Math.tan(Se)):Le>1.25*Math.PI&&Le<=1.75*Math.PI&&(Ne+=oe/2,ze+=se/2/Math.tan(Se),Oe-=oe/2,Ve-=se/2/Math.tan(Se)),(ye=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",pe),ye.setAttribute("gradientUnits","userSpaceOnUse"),ye.setAttribute("x1",String(Math.round(ze))),ye.setAttribute("y1",String(Math.round(Ne))),ye.setAttribute("x2",String(Math.round(Ve))),ye.setAttribute("y2",String(Math.round(Oe)))}$.colorStops.forEach(function(Ce){var Ee=Ce.offset,Ue=Ce.color,Te=document.createElementNS("http://www.w3.org/2000/svg","stop");Te.setAttribute("offset","".concat(100*Ee,"%")),Te.setAttribute("stop-color",Ue),ye.appendChild(Te)}),be.setAttribute("fill","url('#".concat(pe,"')")),this._defs.appendChild(ye)}else N&&be.setAttribute("fill",N);this._element.appendChild(be)},te}(),ae="canvas";for(var he={},Z=0;Z<=40;Z++)he[Z]=Z;let ee={type:ae,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:he[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var W=function(){return W=Object.assign||function(te){for(var C,$=1,N=arguments.length;$<N;$++)for(var F in C=arguments[$])Object.prototype.hasOwnProperty.call(C,F)&&(te[F]=C[F]);return te},W.apply(this,arguments)};function le(te){var C=W({},te);if(!C.colorStops||!C.colorStops.length)throw"Field 'colorStops' is required in gradient";return C.rotation?C.rotation=Number(C.rotation):C.rotation=0,C.colorStops=C.colorStops.map(function($){return W(W({},$),{offset:Number($.offset)})}),C}function re(te){var C=W({},te);return C.width=Number(C.width),C.height=Number(C.height),C.margin=Number(C.margin),C.imageOptions=W(W({},C.imageOptions),{hideBackgroundDots:Boolean(C.imageOptions.hideBackgroundDots),imageSize:Number(C.imageOptions.imageSize),margin:Number(C.imageOptions.margin)}),C.margin>Math.min(C.width,C.height)&&(C.margin=Math.min(C.width,C.height)),C.dotsOptions=W({},C.dotsOptions),C.dotsOptions.gradient&&(C.dotsOptions.gradient=le(C.dotsOptions.gradient)),C.cornersSquareOptions&&(C.cornersSquareOptions=W({},C.cornersSquareOptions),C.cornersSquareOptions.gradient&&(C.cornersSquareOptions.gradient=le(C.cornersSquareOptions.gradient))),C.cornersDotOptions&&(C.cornersDotOptions=W({},C.cornersDotOptions),C.cornersDotOptions.gradient&&(C.cornersDotOptions.gradient=le(C.cornersDotOptions.gradient))),C.backgroundOptions&&(C.backgroundOptions=W({},C.backgroundOptions),C.backgroundOptions.gradient&&(C.backgroundOptions.gradient=le(C.backgroundOptions.gradient))),C}var ge=r(192),We=r.n(ge),Re=function(te,C,$,N){return new($||($=Promise))(function(F,z){function H(pe){try{se(N.next(pe))}catch(de){z(de)}}function oe(pe){try{se(N.throw(pe))}catch(de){z(de)}}function se(pe){var de;pe.done?F(pe.value):(de=pe.value,de instanceof $?de:new $(function(be){be(de)})).then(H,oe)}se((N=N.apply(te,C||[])).next())})},$e=function(te,C){var $,N,F,z,H={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return z={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function oe(se){return function(pe){return function(de){if($)throw new TypeError("Generator is already executing.");for(;H;)try{if($=1,N&&(F=2&de[0]?N.return:de[0]?N.throw||((F=N.return)&&F.call(N),0):N.next)&&!(F=F.call(N,de[1])).done)return F;switch(N=0,F&&(de=[2&de[0],F.value]),de[0]){case 0:case 1:F=de;break;case 4:return H.label++,{value:de[1],done:!1};case 5:H.label++,N=de[1],de=[0];continue;case 7:de=H.ops.pop(),H.trys.pop();continue;default:if(!((F=(F=H.trys).length>0&&F[F.length-1])||de[0]!==6&&de[0]!==2)){H=0;continue}if(de[0]===3&&(!F||de[1]>F[0]&&de[1]<F[3])){H.label=de[1];break}if(de[0]===6&&H.label<F[1]){H.label=F[1],F=de;break}if(F&&H.label<F[2]){H.label=F[2],H.ops.push(de);break}F[2]&&H.ops.pop(),H.trys.pop();continue}de=C.call(te,H)}catch(be){de=[6,be],N=0}finally{$=F=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([se,pe])}}};let st=function(){function te(C){this._options=C?re(a(ee,C)):ee,this.update()}return te._clearContainer=function(C){C&&(C.innerHTML="")},te.prototype._getQRStylingElement=function(C){return C===void 0&&(C="png"),Re(this,void 0,void 0,function(){var $,N,F;return $e(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return C.toLowerCase()!=="svg"?[3,2]:(N=void 0,$=void 0,this._svg&&this._svgDrawingPromise?($=this._svg,N=this._svgDrawingPromise):($=new ne(this._options),N=$.drawQR(this._qr)),[4,N]);case 1:return z.sent(),[2,$];case 2:return N=void 0,F=void 0,this._canvas&&this._canvasDrawingPromise?(F=this._canvas,N=this._canvasDrawingPromise):(F=new b(this._options),N=F.drawQR(this._qr)),[4,N];case 3:return z.sent(),[2,F]}})})},te.prototype.update=function(C){te._clearContainer(this._container),this._options=C?re(a(this._options,C)):this._options,this._options.data&&(this._qr=We()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function($){switch(!0){case/^[0-9]*$/.test($):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test($):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ae?(this._canvas=new b(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new ne(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},te.prototype.append=function(C){if(C){if(typeof C.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ae?this._canvas&&C.appendChild(this._canvas.getCanvas()):this._svg&&C.appendChild(this._svg.getElement()),this._container=C}},te.prototype.getRawData=function(C){return C===void 0&&(C="png"),Re(this,void 0,void 0,function(){var $,N,F;return $e(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(C)];case 1:return $=z.sent(),C.toLowerCase()==="svg"?(N=new XMLSerializer,F=N.serializeToString($.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
11
|
-
`+F],{type:"image/svg+xml"})]):[2,new Promise(function(H){return $.getCanvas().toBlob(H,"image/".concat(C),1)})]}})})},te.prototype.download=function(C){return Re(this,void 0,void 0,function(){var $,N,F,z,H;return $e(this,function(oe){switch(oe.label){case 0:if(!this._qr)throw"QR code is empty";return $="png",N="qr",typeof C=="string"?($=C,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof C=="object"&&C!==null&&(C.name&&(N=C.name),C.extension&&($=C.extension)),[4,this._getQRStylingElement($)];case 1:return F=oe.sent(),$.toLowerCase()==="svg"?(z=new XMLSerializer,H=`<?xml version="1.0" standalone="no"?>\r
|
|
12
|
-
`+(H=z.serializeToString(F.getElement())),l("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(H),"".concat(N,".svg"))):l(F.getCanvas().toDataURL("image/".concat($)),"".concat(N,".").concat($)),[2]}})})},te}()})(),n.default})()})});var gA=_e(tc=>{"use strict";c();d();f();var qI=we();function Ze(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 Dn=Object.prototype.hasOwnProperty,lW=/^[: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]*$/,TI={},PI={};function GI(e){return Dn.call(PI,e)?!0:Dn.call(TI,e)?!1:lW.test(e)?PI[e]=!0:(TI[e]=!0,!1)}function hn(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var $r={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$r[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$r[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$r[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$r[e]=new hn(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){$r[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$r[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$r[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$r[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$r[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var m2=/[\-:]([a-z])/g;function g2(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(m2,g2);$r[t]=new hn(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(m2,g2);$r[t]=new hn(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(m2,g2);$r[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$r[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});$r.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$r[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});var j0={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},uW=["Webkit","ms","Moz","O"];Object.keys(j0).forEach(function(e){uW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),j0[t]=j0[e]})});var cW=/["'&<>]/;function dn(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=cW.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var fW=/([A-Z])/g,dW=/^ms-/,c2=Array.isArray;function Li(e,t){return{insertionMode:e,selectedValue:t}}function hW(e,t,r){switch(t){case"select":return Li(1,r.value!=null?r.value:r.defaultValue);case"svg":return Li(2,null);case"math":return Li(3,null);case"foreignObject":return Li(1,null);case"table":return Li(4,null);case"thead":case"tbody":case"tfoot":return Li(5,null);case"colgroup":return Li(7,null);case"tr":return Li(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Li(1,null):e}var OI=new Map;function WI(e,t,r){if(typeof r!="object")throw Error(Ze(62));t=!0;for(var n in r)if(Dn.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=dn(n);o=dn((""+o).trim())}else{i=n;var s=OI.get(i);s!==void 0||(s=dn(i.replace(fW,"-$1").toLowerCase().replace(dW,"-ms-")),OI.set(i,s)),i=s,o=typeof o=="number"?o===0||Dn.call(j0,n)?""+o:o+"px":dn((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function Yn(e,t,r,n){switch(r){case"style":WI(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=$r.hasOwnProperty(r)?$r[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:n===!0?e.push(" ",r,'=""'):n!==!1&&e.push(" ",r,'="',dn(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',dn(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',dn(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',dn(n),'"')}}else if(GI(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(" ",r,'="',dn(n),'"')}}}function V0(e,t,r){if(t!=null){if(r!=null)throw Error(Ze(60));if(typeof t!="object"||!("__html"in t))throw Error(Ze(61));t=t.__html,t!=null&&e.push(""+t)}}function pW(e){var t="";return qI.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function a2(e,t,r,n){e.push(oi(r));var o=r=null,i;for(i in t)if(Dn.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:Yn(e,n,i,s)}}return e.push(">"),V0(e,o,r),typeof r=="string"?(e.push(dn(r)),null):r}var mW=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,DI=new Map;function oi(e){var t=DI.get(e);if(t===void 0){if(!mW.test(e))throw Error(Ze(65,e));t="<"+e,DI.set(e,t)}return t}function gW(e,t,r,n,o){switch(t){case"select":e.push(oi("select"));var i=null,s=null;for(h in r)if(Dn.call(r,h)){var a=r[h];if(a!=null)switch(h){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Yn(e,n,h,a)}}return e.push(">"),V0(e,s,i),i;case"option":s=o.selectedValue,e.push(oi("option"));var l=a=null,u=null,h=null;for(i in r)if(Dn.call(r,i)){var p=r[i];if(p!=null)switch(i){case"children":a=p;break;case"selected":u=p;break;case"dangerouslySetInnerHTML":h=p;break;case"value":l=p;default:Yn(e,n,i,p)}}if(s!=null)if(r=l!==null?""+l:pW(a),c2(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(' selected=""');break}}else""+s===r&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),V0(e,h,a),a;case"textarea":e.push(oi("textarea")),h=s=i=null;for(a in r)if(Dn.call(r,a)&&(l=r[a],l!=null))switch(a){case"children":h=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(Ze(91));default:Yn(e,n,a,l)}if(i===null&&s!==null&&(i=s),e.push(">"),h!=null){if(i!=null)throw Error(Ze(92));if(c2(h)&&1<h.length)throw Error(Ze(93));i=""+h}return typeof i=="string"&&i[0]===`
|
|
13
|
-
`&&e.push(`
|
|
14
|
-
`),i!==null&&e.push(dn(""+i)),null;case"input":e.push(oi("input")),l=h=a=i=null;for(s in r)if(Dn.call(r,s)&&(u=r[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Ze(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":h=u;break;case"value":i=u;break;default:Yn(e,n,s,u)}return h!==null?Yn(e,n,"checked",h):l!==null&&Yn(e,n,"checked",l),i!==null?Yn(e,n,"value",i):a!==null&&Yn(e,n,"value",a),e.push("/>"),null;case"menuitem":e.push(oi("menuitem"));for(var y in r)if(Dn.call(r,y)&&(i=r[y],i!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(Ze(400));default:Yn(e,n,y,i)}return e.push(">"),null;case"title":e.push(oi("title")),i=null;for(p in r)if(Dn.call(r,p)&&(s=r[p],s!=null))switch(p){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(Ze(434));default:Yn(e,n,p,s)}return e.push(">"),i;case"listing":case"pre":e.push(oi(t)),s=i=null;for(l in r)if(Dn.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Yn(e,n,l,a)}if(e.push(">"),s!=null){if(i!=null)throw Error(Ze(60));if(typeof s!="object"||!("__html"in s))throw Error(Ze(61));r=s.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
|
|
15
|
-
`?e.push(`
|
|
16
|
-
`,r):e.push(""+r))}return typeof i=="string"&&i[0]===`
|
|
17
|
-
`&&e.push(`
|
|
18
|
-
`),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(oi(t));for(var w in r)if(Dn.call(r,w)&&(i=r[w],i!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(Ze(399,t));default:Yn(e,n,w,i)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return a2(e,r,t,n);case"html":return o.insertionMode===0&&e.push("<!DOCTYPE html>"),a2(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return a2(e,r,t,n);e.push(oi(t)),s=i=null;for(u in r)if(Dn.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":WI(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:GI(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",u,'="',dn(a),'"')}return e.push(">"),V0(e,s,i),i}}function II(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(Ze(395));return e.push(r),e.push('"></template>')}function yW(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(Ze(397))}}function vW(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Ze(397))}}var wW=/[<\u2028\u2029]/g;function l2(e){return JSON.stringify(e).replace(wW,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function bW(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function AI(e,t,r,n){return r.generateStaticMarkup?(e.push(dn(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(dn(t)),e=!0),e)}var Rd=Object.assign,_W=Symbol.for("react.element"),YI=Symbol.for("react.portal"),XI=Symbol.for("react.fragment"),ZI=Symbol.for("react.strict_mode"),JI=Symbol.for("react.profiler"),QI=Symbol.for("react.provider"),eA=Symbol.for("react.context"),tA=Symbol.for("react.forward_ref"),rA=Symbol.for("react.suspense"),nA=Symbol.for("react.suspense_list"),oA=Symbol.for("react.memo"),y2=Symbol.for("react.lazy"),xW=Symbol.for("react.scope"),EW=Symbol.for("react.debug_trace_mode"),SW=Symbol.for("react.legacy_hidden"),CW=Symbol.for("react.default_value"),MI=Symbol.iterator;function f2(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 XI:return"Fragment";case YI:return"Portal";case JI:return"Profiler";case ZI:return"StrictMode";case rA:return"Suspense";case nA:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eA:return(e.displayName||"Context")+".Consumer";case QI:return(e._context.displayName||"Context")+".Provider";case tA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oA:return t=e.displayName||null,t!==null?t:f2(e.type)||"Memo";case y2:t=e._payload,e=e._init;try{return f2(e(t))}catch(r){}}return null}var iA={};function RI(e,t){if(e=e.contextTypes,!e)return iA;var r={},n;for(n in e)r[n]=t[n];return r}var Ga=null;function Z0(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(Ze(401))}else{if(r===null)throw Error(Ze(401));Z0(e,r)}t.context._currentValue2=t.value}}function sA(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&sA(e)}function aA(e){var t=e.parent;t!==null&&aA(t),e.context._currentValue2=e.value}function lA(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(Ze(402));e.depth===t.depth?Z0(e,t):lA(e,t)}function uA(e,t){var r=t.parent;if(r===null)throw Error(Ze(402));e.depth===r.depth?Z0(e,r):uA(e,r),t.context._currentValue2=t.value}function q0(e){var t=Ga;t!==e&&(t===null?aA(e):e===null?sA(t):t.depth===e.depth?Z0(t,e):t.depth>e.depth?lA(t,e):uA(t,e),Ga=e)}var NI={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function kI(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=NI,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue2:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,o),o=s==null?o:Rd({},o,s),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&NI.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&t.length===1)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,i,r,n):a,a!=null&&(o?(o=!1,i=Rd({},i,a)):Rd(i,a))}e.state=i}else i.queue=null}var TW={id:1,overflow:""};function d2(e,t,r){var n=e.id;e=e.overflow;var o=32-z0(n)-1;n&=~(1<<o),r+=1;var i=32-z0(t)+o;if(30<i){var s=o-o%5;return i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,{id:1<<32-z0(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var z0=Math.clz32?Math.clz32:DW,PW=Math.log,OW=Math.LN2;function DW(e){return e>>>=0,e===0?32:31-(PW(e)/OW|0)|0}function IW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var AW=typeof Object.is=="function"?Object.is:IW,Fi=null,v2=null,H0=null,Lt=null,Ad=!1,G0=!1,Nd=0,Hs=null,J0=0;function qa(){if(Fi===null)throw Error(Ze(321));return Fi}function LI(){if(0<J0)throw Error(Ze(312));return{memoizedState:null,queue:null,next:null}}function w2(){return Lt===null?H0===null?(Ad=!1,H0=Lt=LI()):(Ad=!0,Lt=H0):Lt.next===null?(Ad=!1,Lt=Lt.next=LI()):(Ad=!0,Lt=Lt.next),Lt}function b2(){v2=Fi=null,G0=!1,H0=null,J0=0,Lt=Hs=null}function cA(e,t){return typeof t=="function"?t(e):t}function FI(e,t,r){if(Fi=qa(),Lt=w2(),Ad){var n=Lt.queue;if(t=n.dispatch,Hs!==null&&(r=Hs.get(n),r!==void 0)){Hs.delete(n),n=Lt.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Lt.memoizedState=n,[n,t]}return[Lt.memoizedState,t]}return e=e===cA?typeof t=="function"?t():t:r!==void 0?r(t):t,Lt.memoizedState=e,e=Lt.queue={last:null,dispatch:null},e=e.dispatch=MW.bind(null,Fi,e),[Lt.memoizedState,e]}function $I(e,t){if(Fi=qa(),Lt=w2(),t=t===void 0?null:t,Lt!==null){var r=Lt.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!AW(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Lt.memoizedState=[e,t],e}function MW(e,t,r){if(25<=J0)throw Error(Ze(301));if(e===Fi)if(G0=!0,e={action:r,next:null},Hs===null&&(Hs=new Map),r=Hs.get(t),r===void 0)Hs.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function RW(){throw Error(Ze(394))}function U0(){}var UI={readContext:function(e){return e._currentValue2},useContext:function(e){return qa(),e._currentValue2},useMemo:$I,useReducer:FI,useRef:function(e){Fi=qa(),Lt=w2();var t=Lt.memoizedState;return t===null?(e={current:e},Lt.memoizedState=e):t},useState:function(e){return FI(cA,e)},useInsertionEffect:U0,useLayoutEffect:function(){},useCallback:function(e,t){return $I(function(){return e},t)},useImperativeHandle:U0,useEffect:U0,useDebugValue:U0,useDeferredValue:function(e){return qa(),e},useTransition:function(){return qa(),[!1,RW]},useId:function(){var e=v2.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-z0(e)-1)).toString(32)+t;var r=K0;if(r===null)throw Error(Ze(404));return t=Nd++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return qa(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(Ze(407));return r()}},K0=null,u2=qI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function NW(e){return console.error(e),null}function Md(){}function kW(e,t,r,n,o,i,s,a,l){var u=[],h=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:h,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?NW:o,onAllReady:i===void 0?Md:i,onShellReady:s===void 0?Md:s,onShellError:a===void 0?Md:a,onFatalError:l===void 0?Md:l},r=W0(t,0,null,r,!1,!1),r.parentFlushed=!0,e=_2(t,e,null,r,h,iA,null,TW),u.push(e),t}function _2(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&hA(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function W0(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function kd(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Y0(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function BI(e,t,r,n,o){for(Fi={},v2=t,Nd=0,e=r(n,o);G0;)G0=!1,Nd=0,J0+=1,Lt=null,e=r(n,o);return b2(),e}function jI(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in i))throw Error(Ze(108,f2(n)||"Unknown",a));n=Rd({},s,r)}t.legacyContext=n,Xn(e,t,o),t.legacyContext=s}else Xn(e,t,o)}function VI(e,t){if(e&&e.defaultProps){t=Rd({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function h2(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=RI(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue2:o),kI(i,r,n,o),jI(e,t,i,r)}else{i=RI(r,t.legacyContext),o=BI(e,t,r,n,i);var s=Nd!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)kI(o,r,n,i),jI(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=d2(n,1,0);try{Xn(e,t,o)}finally{t.treeContext=n}}else Xn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=gW(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=hW(s,r,n),p2(e,t,i),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}else{switch(r){case SW:case EW:case ZI:case JI:case XI:Xn(e,t,n.children);return;case nA:Xn(e,t,n.children);return;case xW:throw Error(Ze(343));case rA:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=W0(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=W0(e,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(p2(e,t,n),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),u.status=1,X0(a,u),a.pendingTasks===0)break e}catch(h){u.status=4,a.forceClientRender=!0,a.errorDigest=kd(e,h)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=_2(e,i,r,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case tA:if(n=BI(e,t,r.render,n,o),Nd!==0){r=t.treeContext,t.treeContext=d2(r,1,0);try{Xn(e,t,n)}finally{t.treeContext=r}}else Xn(e,t,n);return;case oA:r=r.type,n=VI(r,n),h2(e,t,r,n,o);return;case QI:if(o=n.children,r=r._context,n=n.value,i=r._currentValue2,r._currentValue2=n,s=Ga,Ga=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,Xn(e,t,o),e=Ga,e===null)throw Error(Ze(403));n=e.parentValue,e.context._currentValue2=n===CW?e.context._defaultValue:n,e=Ga=e.parent,t.context=e;return;case eA:n=n.children,n=n(r._currentValue2),Xn(e,t,n);return;case y2:o=r._init,r=o(r._payload),n=VI(r,n),h2(e,t,r,n,void 0);return}throw Error(Ze(130,r==null?r:typeof r,""))}}function Xn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case _W:h2(e,t,r.type,r.props,r.ref);return;case YI:throw Error(Ze(257));case y2:var n=r._init;r=n(r._payload),Xn(e,t,r);return}if(c2(r)){zI(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=MI&&r[MI]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);zI(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(Ze(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=AI(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=AI(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function zI(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=d2(i,n,o);try{p2(e,t,r[o])}finally{t.treeContext=i}}}function p2(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Xn(e,t,r)}catch(l){if(b2(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var s=t.blockedSegment,a=W0(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=_2(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,q0(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,q0(i),l}}function LW(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,dA(this,t,e)}function fA(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(Ze(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return fA(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function X0(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&X0(e,r)}else e.completedSegments.push(t)}function dA(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(Ze(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Md,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&X0(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(LW,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(X0(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function hA(e){if(e.status!==2){var t=Ga,r=u2.current;u2.current=UI;var n=K0;K0=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(l.status===0){q0(s.context);try{Xn(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),s.abortSet.delete(s),l.status=1,dA(a,s.blockedBoundary,l)}catch(v){if(b2(),typeof v=="object"&&v!==null&&typeof v.then=="function"){var u=s.ping;v.then(u,u)}else{s.abortSet.delete(s),l.status=4;var h=s.blockedBoundary,p=v,y=kd(a,p);if(h===null?Y0(a,p):(h.pendingTasks--,h.forceClientRender||(h.forceClientRender=!0,h.errorDigest=y,h.parentFlushed&&a.clientRenderedBoundaries.push(h))),a.allPendingTasks--,a.allPendingTasks===0){var w=a.onAllReady;w()}}}finally{}}}o.splice(0,i),e.destination!==null&&x2(e,e.destination)}catch(v){kd(e,v),Y0(e,v)}finally{K0=n,u2.current=r,r===UI&&q0(t)}}}function B0(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var s=0;s<r.length;s++){for(o=r[s];i<o.index;i++)t.push(n[i]);o=Q0(e,t,o)}for(;i<n.length-1;i++)t.push(n[i]);return i<n.length&&(o=t.push(n[i])),o;default:throw Error(Ze(390))}}function Q0(e,t,r){var n=r.boundary;if(n===null)return B0(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("<!--$!-->"),t.push("<template"),n&&(t.push(' data-dgst="'),n=dn(n),t.push(n),t.push('"')),t.push("></template>")),B0(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),n=n.id=o,II(t,e.responseState,n),B0(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),II(t,e.responseState,n.id),B0(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(Ze(391));return Q0(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function HI(e,t,r){return yW(t,e.responseState,r.formatContext,r.id),Q0(e,t,r),vW(t,r.formatContext)}function KI(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)pA(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),n===null)throw Error(Ze(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function pA(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(Ze(392));return HI(e,t,n)}return HI(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function x2(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){Q0(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var s=o[i];n=t;var a=e.responseState,l=s.id,u=s.errorDigest,h=s.errorMessage,p=s.errorComponentStack;if(n.push(a.startInlineScript),a.sentClientRenderFunction?n.push('$RX("'):(a.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(Ze(395));if(n.push(l),n.push('"'),u||h||p){n.push(",");var y=l2(u||"");n.push(y)}if(h||p){n.push(",");var w=l2(h||"");n.push(w)}if(p){n.push(",");var v=l2(p);n.push(v)}if(!n.push(")<\/script>")){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var S=e.completedBoundaries;for(i=0;i<S.length;i++)if(!KI(e,t,S[i])){e.destination=null,i++,S.splice(0,i);return}S.splice(0,i);var I=e.partialBoundaries;for(i=0;i<I.length;i++){var T=I[i];e:{o=e,s=t;var O=T.completedSegments;for(a=0;a<O.length;a++)if(!pA(o,s,T,O[a])){a++,O.splice(0,a);var M=!1;break e}O.splice(0,a),M=!0}if(!M){e.destination=null,i++,I.splice(0,i);return}}I.splice(0,i);var L=e.completedBoundaries;for(i=0;i<L.length;i++)if(!KI(e,t,L[i])){e.destination=null,i++,L.splice(0,i);return}L.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function FW(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return fA(n,e,t)}),r.clear(),e.destination!==null&&x2(e,e.destination)}catch(n){kd(e,n),Y0(e,n)}}function $W(){}function mA(e,t,r,n){var o=!1,i=null,s="",a={push:function(u){return u!==null&&(s+=u),!0},destroy:function(u){o=!0,i=u}},l=!1;if(e=kW(e,bW(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,$W,void 0,function(){l=!0},void 0,void 0),hA(e),FW(e,n),e.status===1)e.status=2,a.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=a;try{x2(e,a)}catch(u){kd(e,u),Y0(e,u)}}if(o)throw i;if(!l)throw Error(Ze(426));return s}tc.renderToNodeStream=function(){throw Error(Ze(207))};tc.renderToStaticMarkup=function(e,t){return mA(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};tc.renderToStaticNodeStream=function(){throw Error(Ze(208))};tc.renderToString=function(e,t){return mA(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};tc.version="18.2.0"});var pM=_e(z2=>{"use strict";c();d();f();var zA=we();function rt(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 Jn=null,Qn=0;function Fe(e,t){if(t.length!==0)if(512<t.length)0<Qn&&(e.enqueue(new Uint8Array(Jn.buffer,0,Qn)),Jn=new Uint8Array(512),Qn=0),e.enqueue(t);else{var r=Jn.length-Qn;r<t.length&&(r===0?e.enqueue(Jn):(Jn.set(t.subarray(0,r),Qn),e.enqueue(Jn),t=t.subarray(r)),Jn=new Uint8Array(512),Qn=0),Jn.set(t,Qn),Qn+=t.length}}function zt(e,t){return Fe(e,t),!0}function yA(e){Jn&&0<Qn&&(e.enqueue(new Uint8Array(Jn.buffer,0,Qn)),Jn=null,Qn=0)}var HA=new TextEncoder;function ot(e){return HA.encode(e)}function Ie(e){return HA.encode(e)}function KA(e,t){typeof e.error=="function"?e.error(t):e.close()}var In=Object.prototype.hasOwnProperty,UW=/^[: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]*$/,vA={},wA={};function qA(e){return In.call(wA,e)?!0:In.call(vA,e)?!1:UW.test(e)?wA[e]=!0:(vA[e]=!0,!1)}function pn(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Br[e]=new pn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Br[t]=new pn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Br[e]=new pn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Br[e]=new pn(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){Br[e]=new pn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Br[e]=new pn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Br[e]=new pn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Br[e]=new pn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Br[e]=new pn(e,5,!1,e.toLowerCase(),null,!1,!1)});var N2=/[\-:]([a-z])/g;function k2(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(N2,k2);Br[t]=new pn(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(N2,k2);Br[t]=new pn(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(N2,k2);Br[t]=new pn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Br[e]=new pn(e,1,!1,e.toLowerCase(),null,!1,!1)});Br.xlinkHref=new pn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Br[e]=new pn(e,1,!1,e.toLowerCase(),null,!0,!0)});var rg={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},BW=["Webkit","ms","Moz","O"];Object.keys(rg).forEach(function(e){BW.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rg[t]=rg[e]})});var jW=/["'&<>]/;function Ur(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=jW.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var VW=/([A-Z])/g,zW=/^ms-/,D2=Array.isArray,HW=Ie("<script>"),KW=Ie("<\/script>"),qW=Ie('<script src="'),GW=Ie('<script type="module" src="'),bA=Ie('" async=""><\/script>'),WW=/(<\/|<)(s)(cript)/gi;function YW(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function XW(e,t,r,n,o){e=e===void 0?"":e,t=t===void 0?HW:Ie('<script nonce="'+Ur(t)+'">');var i=[];if(r!==void 0&&i.push(t,ot((""+r).replace(WW,YW)),KW),n!==void 0)for(r=0;r<n.length;r++)i.push(qW,ot(Ur(n[r])),bA);if(o!==void 0)for(n=0;n<o.length;n++)i.push(GW,ot(Ur(o[n])),bA);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:Ie(e+"P:"),segmentPrefix:Ie(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ii(e,t){return{insertionMode:e,selectedValue:t}}function ZW(e){return ii(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function JW(e,t,r){switch(t){case"select":return ii(1,r.value!=null?r.value:r.defaultValue);case"svg":return ii(2,null);case"math":return ii(3,null);case"foreignObject":return ii(1,null);case"table":return ii(4,null);case"thead":case"tbody":case"tfoot":return ii(5,null);case"colgroup":return ii(7,null);case"tr":return ii(6,null)}return 4<=e.insertionMode||e.insertionMode===0?ii(1,null):e}var L2=Ie("<!-- -->");function _A(e,t,r,n){return t===""?n:(n&&e.push(L2),e.push(ot(Ur(t))),!0)}var xA=new Map,QW=Ie(' style="'),EA=Ie(":"),eY=Ie(";");function GA(e,t,r){if(typeof r!="object")throw Error(rt(62));t=!0;for(var n in r)if(In.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=ot(Ur(n));o=ot(Ur((""+o).trim()))}else{i=n;var s=xA.get(i);s!==void 0||(s=Ie(Ur(i.replace(VW,"-$1").toLowerCase().replace(zW,"-ms-"))),xA.set(i,s)),i=s,o=typeof o=="number"?o===0||In.call(rg,n)?ot(""+o):ot(o+"px"):ot(Ur((""+o).trim()))}t?(t=!1,e.push(QW,i,EA,o)):e.push(eY,i,EA,o)}}t||e.push(Wa)}var Ks=Ie(" "),rc=Ie('="'),Wa=Ie('"'),SA=Ie('=""');function Zn(e,t,r,n){switch(r){case"style":GA(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Br.hasOwnProperty(r)?Br[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=ot(t.attributeName),t.type){case 3:n&&e.push(Ks,r,SA);break;case 4:n===!0?e.push(Ks,r,SA):n!==!1&&e.push(Ks,r,rc,ot(Ur(n)),Wa);break;case 5:isNaN(n)||e.push(Ks,r,rc,ot(Ur(n)),Wa);break;case 6:!isNaN(n)&&1<=n&&e.push(Ks,r,rc,ot(Ur(n)),Wa);break;default:t.sanitizeURL&&(n=""+n),e.push(Ks,r,rc,ot(Ur(n)),Wa)}}else if(qA(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(Ks,ot(r),rc,ot(Ur(n)),Wa)}}}var qs=Ie(">"),CA=Ie("/>");function ng(e,t,r){if(t!=null){if(r!=null)throw Error(rt(60));if(typeof t!="object"||!("__html"in t))throw Error(rt(61));t=t.__html,t!=null&&e.push(ot(""+t))}}function tY(e){var t="";return zA.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var E2=Ie(' selected=""');function S2(e,t,r,n){e.push(si(r));var o=r=null,i;for(i in t)if(In.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:Zn(e,n,i,s)}}return e.push(qs),ng(e,o,r),typeof r=="string"?(e.push(ot(Ur(r))),null):r}var C2=Ie(`
|
|
19
|
-
`),rY=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,TA=new Map;function si(e){var t=TA.get(e);if(t===void 0){if(!rY.test(e))throw Error(rt(65,e));t=Ie("<"+e),TA.set(e,t)}return t}var nY=Ie("<!DOCTYPE html>");function oY(e,t,r,n,o){switch(t){case"select":e.push(si("select"));var i=null,s=null;for(h in r)if(In.call(r,h)){var a=r[h];if(a!=null)switch(h){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Zn(e,n,h,a)}}return e.push(qs),ng(e,s,i),i;case"option":s=o.selectedValue,e.push(si("option"));var l=a=null,u=null,h=null;for(i in r)if(In.call(r,i)){var p=r[i];if(p!=null)switch(i){case"children":a=p;break;case"selected":u=p;break;case"dangerouslySetInnerHTML":h=p;break;case"value":l=p;default:Zn(e,n,i,p)}}if(s!=null)if(r=l!==null?""+l:tY(a),D2(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(E2);break}}else""+s===r&&e.push(E2);else u&&e.push(E2);return e.push(qs),ng(e,h,a),a;case"textarea":e.push(si("textarea")),h=s=i=null;for(a in r)if(In.call(r,a)&&(l=r[a],l!=null))switch(a){case"children":h=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(rt(91));default:Zn(e,n,a,l)}if(i===null&&s!==null&&(i=s),e.push(qs),h!=null){if(i!=null)throw Error(rt(92));if(D2(h)&&1<h.length)throw Error(rt(93));i=""+h}return typeof i=="string"&&i[0]===`
|
|
20
|
-
`&&e.push(C2),i!==null&&e.push(ot(Ur(""+i))),null;case"input":e.push(si("input")),l=h=a=i=null;for(s in r)if(In.call(r,s)&&(u=r[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(rt(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":h=u;break;case"value":i=u;break;default:Zn(e,n,s,u)}return h!==null?Zn(e,n,"checked",h):l!==null&&Zn(e,n,"checked",l),i!==null?Zn(e,n,"value",i):a!==null&&Zn(e,n,"value",a),e.push(CA),null;case"menuitem":e.push(si("menuitem"));for(var y in r)if(In.call(r,y)&&(i=r[y],i!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(rt(400));default:Zn(e,n,y,i)}return e.push(qs),null;case"title":e.push(si("title")),i=null;for(p in r)if(In.call(r,p)&&(s=r[p],s!=null))switch(p){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(rt(434));default:Zn(e,n,p,s)}return e.push(qs),i;case"listing":case"pre":e.push(si(t)),s=i=null;for(l in r)if(In.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Zn(e,n,l,a)}if(e.push(qs),s!=null){if(i!=null)throw Error(rt(60));if(typeof s!="object"||!("__html"in s))throw Error(rt(61));r=s.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
|
|
21
|
-
`?e.push(C2,ot(r)):e.push(ot(""+r)))}return typeof i=="string"&&i[0]===`
|
|
22
|
-
`&&e.push(C2),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(si(t));for(var w in r)if(In.call(r,w)&&(i=r[w],i!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(rt(399,t));default:Zn(e,n,w,i)}return e.push(CA),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return S2(e,r,t,n);case"html":return o.insertionMode===0&&e.push(nY),S2(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return S2(e,r,t,n);e.push(si(t)),s=i=null;for(u in r)if(In.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":GA(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:qA(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(Ks,ot(u),rc,ot(Ur(a)),Wa)}return e.push(qs),ng(e,s,i),i}}var iY=Ie("</"),sY=Ie(">"),aY=Ie('<template id="'),lY=Ie('"></template>'),uY=Ie("<!--$-->"),cY=Ie('<!--$?--><template id="'),fY=Ie('"></template>'),dY=Ie("<!--$!-->"),hY=Ie("<!--/$-->"),pY=Ie("<template"),mY=Ie('"'),gY=Ie(' data-dgst="');Ie(' data-msg="');Ie(' data-stck="');var yY=Ie("></template>");function PA(e,t,r){if(Fe(e,cY),r===null)throw Error(rt(395));return Fe(e,r),zt(e,fY)}var vY=Ie('<div hidden id="'),wY=Ie('">'),bY=Ie("</div>"),_Y=Ie('<svg aria-hidden="true" style="display:none" id="'),xY=Ie('">'),EY=Ie("</svg>"),SY=Ie('<math aria-hidden="true" style="display:none" id="'),CY=Ie('">'),TY=Ie("</math>"),PY=Ie('<table hidden id="'),OY=Ie('">'),DY=Ie("</table>"),IY=Ie('<table hidden><tbody id="'),AY=Ie('">'),MY=Ie("</tbody></table>"),RY=Ie('<table hidden><tr id="'),NY=Ie('">'),kY=Ie("</tr></table>"),LY=Ie('<table hidden><colgroup id="'),FY=Ie('">'),$Y=Ie("</colgroup></table>");function UY(e,t,r,n){switch(r.insertionMode){case 0:case 1:return Fe(e,vY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,wY);case 2:return Fe(e,_Y),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,xY);case 3:return Fe(e,SY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,CY);case 4:return Fe(e,PY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,OY);case 5:return Fe(e,IY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,AY);case 6:return Fe(e,RY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,NY);case 7:return Fe(e,LY),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),zt(e,FY);default:throw Error(rt(397))}}function BY(e,t){switch(t.insertionMode){case 0:case 1:return zt(e,bY);case 2:return zt(e,EY);case 3:return zt(e,TY);case 4:return zt(e,DY);case 5:return zt(e,MY);case 6:return zt(e,kY);case 7:return zt(e,$Y);default:throw Error(rt(397))}}var jY=Ie('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),VY=Ie('$RS("'),zY=Ie('","'),HY=Ie('")<\/script>'),KY=Ie('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),qY=Ie('$RC("'),GY=Ie('","'),WY=Ie('")<\/script>'),YY=Ie('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),XY=Ie('$RX("'),ZY=Ie('"'),JY=Ie(")<\/script>"),T2=Ie(","),QY=/[<\u2028\u2029]/g;function P2(e){return JSON.stringify(e).replace(QY,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var $d=Object.assign,eX=Symbol.for("react.element"),WA=Symbol.for("react.portal"),YA=Symbol.for("react.fragment"),XA=Symbol.for("react.strict_mode"),ZA=Symbol.for("react.profiler"),JA=Symbol.for("react.provider"),QA=Symbol.for("react.context"),eM=Symbol.for("react.forward_ref"),tM=Symbol.for("react.suspense"),rM=Symbol.for("react.suspense_list"),nM=Symbol.for("react.memo"),F2=Symbol.for("react.lazy"),tX=Symbol.for("react.scope"),rX=Symbol.for("react.debug_trace_mode"),nX=Symbol.for("react.legacy_hidden"),oX=Symbol.for("react.default_value"),OA=Symbol.iterator;function I2(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 YA:return"Fragment";case WA:return"Portal";case ZA:return"Profiler";case XA:return"StrictMode";case tM:return"Suspense";case rM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QA:return(e.displayName||"Context")+".Consumer";case JA:return(e._context.displayName||"Context")+".Provider";case eM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nM:return t=e.displayName||null,t!==null?t:I2(e.type)||"Memo";case F2:t=e._payload,e=e._init;try{return I2(e(t))}catch(r){}}return null}var oM={};function DA(e,t){if(e=e.contextTypes,!e)return oM;var r={},n;for(n in e)r[n]=t[n];return r}var Xa=null;function dg(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(rt(401))}else{if(r===null)throw Error(rt(401));dg(e,r)}t.context._currentValue=t.value}}function iM(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&iM(e)}function sM(e){var t=e.parent;t!==null&&sM(t),e.context._currentValue=e.value}function aM(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(rt(402));e.depth===t.depth?dg(e,t):aM(e,t)}function lM(e,t){var r=t.parent;if(r===null)throw Error(rt(402));e.depth===r.depth?dg(e,r):lM(e,r),t.context._currentValue=t.value}function ag(e){var t=Xa;t!==e&&(t===null?sM(e):e===null?iM(t):t.depth===e.depth?dg(t,e):t.depth>e.depth?aM(t,e):lM(t,e),Xa=e)}var IA={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function AA(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=IA,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,o),o=s==null?o:$d({},o,s),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&IA.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&t.length===1)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,i,r,n):a,a!=null&&(o?(o=!1,i=$d({},i,a)):$d(i,a))}e.state=i}else i.queue=null}var iX={id:1,overflow:""};function A2(e,t,r){var n=e.id;e=e.overflow;var o=32-og(n)-1;n&=~(1<<o),r+=1;var i=32-og(t)+o;if(30<i){var s=o-o%5;return i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,{id:1<<32-og(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var og=Math.clz32?Math.clz32:lX,sX=Math.log,aX=Math.LN2;function lX(e){return e>>>=0,e===0?32:31-(sX(e)/aX|0)|0}function uX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cX=typeof Object.is=="function"?Object.is:uX,$i=null,$2=null,ig=null,Ft=null,Ld=!1,lg=!1,Ud=0,Gs=null,hg=0;function Ya(){if($i===null)throw Error(rt(321));return $i}function MA(){if(0<hg)throw Error(rt(312));return{memoizedState:null,queue:null,next:null}}function U2(){return Ft===null?ig===null?(Ld=!1,ig=Ft=MA()):(Ld=!0,Ft=ig):Ft.next===null?(Ld=!1,Ft=Ft.next=MA()):(Ld=!0,Ft=Ft.next),Ft}function B2(){$2=$i=null,lg=!1,ig=null,hg=0,Ft=Gs=null}function uM(e,t){return typeof t=="function"?t(e):t}function RA(e,t,r){if($i=Ya(),Ft=U2(),Ld){var n=Ft.queue;if(t=n.dispatch,Gs!==null&&(r=Gs.get(n),r!==void 0)){Gs.delete(n),n=Ft.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Ft.memoizedState=n,[n,t]}return[Ft.memoizedState,t]}return e=e===uM?typeof t=="function"?t():t:r!==void 0?r(t):t,Ft.memoizedState=e,e=Ft.queue={last:null,dispatch:null},e=e.dispatch=fX.bind(null,$i,e),[Ft.memoizedState,e]}function NA(e,t){if($i=Ya(),Ft=U2(),t=t===void 0?null:t,Ft!==null){var r=Ft.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!cX(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Ft.memoizedState=[e,t],e}function fX(e,t,r){if(25<=hg)throw Error(rt(301));if(e===$i)if(lg=!0,e={action:r,next:null},Gs===null&&(Gs=new Map),r=Gs.get(t),r===void 0)Gs.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function dX(){throw Error(rt(394))}function eg(){}var kA={readContext:function(e){return e._currentValue},useContext:function(e){return Ya(),e._currentValue},useMemo:NA,useReducer:RA,useRef:function(e){$i=Ya(),Ft=U2();var t=Ft.memoizedState;return t===null?(e={current:e},Ft.memoizedState=e):t},useState:function(e){return RA(uM,e)},useInsertionEffect:eg,useLayoutEffect:function(){},useCallback:function(e,t){return NA(function(){return e},t)},useImperativeHandle:eg,useEffect:eg,useDebugValue:eg,useDeferredValue:function(e){return Ya(),e},useTransition:function(){return Ya(),[!1,dX]},useId:function(){var e=$2.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-og(e)-1)).toString(32)+t;var r=sg;if(r===null)throw Error(rt(404));return t=Ud++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ya(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(rt(407));return r()}},sg=null,O2=zA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function hX(e){return console.error(e),null}function Fd(){}function pX(e,t,r,n,o,i,s,a,l){var u=[],h=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:h,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?hX:o,onAllReady:i===void 0?Fd:i,onShellReady:s===void 0?Fd:s,onShellError:a===void 0?Fd:a,onFatalError:l===void 0?Fd:l},r=ug(t,0,null,r,!1,!1),r.parentFlushed=!0,e=j2(t,e,null,r,h,oM,null,iX),u.push(e),t}function j2(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&dM(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function ug(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Bd(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function cg(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,KA(e.destination,t)):(e.status=1,e.fatalError=t)}function LA(e,t,r,n,o){for($i={},$2=t,Ud=0,e=r(n,o);lg;)lg=!1,Ud=0,hg+=1,Ft=null,e=r(n,o);return B2(),e}function FA(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in i))throw Error(rt(108,I2(n)||"Unknown",a));n=$d({},s,r)}t.legacyContext=n,eo(e,t,o),t.legacyContext=s}else eo(e,t,o)}function $A(e,t){if(e&&e.defaultProps){t=$d({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function M2(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=DA(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),AA(i,r,n,o),FA(e,t,i,r)}else{i=DA(r,t.legacyContext),o=LA(e,t,r,n,i);var s=Ud!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)AA(o,r,n,i),FA(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=A2(n,1,0);try{eo(e,t,o)}finally{t.treeContext=n}}else eo(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=oY(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=JW(s,r,n),R2(e,t,i),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(iY,ot(r),sY)}o.lastPushedText=!1}else{switch(r){case nX:case rX:case XA:case ZA:case YA:eo(e,t,n.children);return;case rM:eo(e,t,n.children);return;case tX:throw Error(rt(343));case tM:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=ug(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=ug(e,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(R2(e,t,n),u.lastPushedText&&u.textEmbedded&&u.chunks.push(L2),u.status=1,fg(a,u),a.pendingTasks===0)break e}catch(h){u.status=4,a.forceClientRender=!0,a.errorDigest=Bd(e,h)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=j2(e,i,r,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case eM:if(n=LA(e,t,r.render,n,o),Ud!==0){r=t.treeContext,t.treeContext=A2(r,1,0);try{eo(e,t,n)}finally{t.treeContext=r}}else eo(e,t,n);return;case nM:r=r.type,n=$A(r,n),M2(e,t,r,n,o);return;case JA:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,s=Xa,Xa=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,eo(e,t,o),e=Xa,e===null)throw Error(rt(403));n=e.parentValue,e.context._currentValue=n===oX?e.context._defaultValue:n,e=Xa=e.parent,t.context=e;return;case QA:n=n.children,n=n(r._currentValue),eo(e,t,n);return;case F2:o=r._init,r=o(r._payload),n=$A(r,n),M2(e,t,r,n,void 0);return}throw Error(rt(130,r==null?r:typeof r,""))}}function eo(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case eX:M2(e,t,r.type,r.props,r.ref);return;case WA:throw Error(rt(257));case F2:var n=r._init;r=n(r._payload),eo(e,t,r);return}if(D2(r)){UA(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=OA&&r[OA]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);UA(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(rt(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=_A(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=_A(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function UA(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=A2(i,n,o);try{R2(e,t,r[o])}finally{t.treeContext=i}}}function R2(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return eo(e,t,r)}catch(l){if(B2(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var s=t.blockedSegment,a=ug(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=j2(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,ag(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,ag(i),l}}function mX(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,fM(this,t,e)}function cM(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(rt(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return cM(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function fg(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&fg(e,r)}else e.completedSegments.push(t)}function fM(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(rt(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Fd,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&fg(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(mX,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(fg(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function dM(e){if(e.status!==2){var t=Xa,r=O2.current;O2.current=kA;var n=sg;sg=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(l.status===0){ag(s.context);try{eo(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(L2),s.abortSet.delete(s),l.status=1,fM(a,s.blockedBoundary,l)}catch(v){if(B2(),typeof v=="object"&&v!==null&&typeof v.then=="function"){var u=s.ping;v.then(u,u)}else{s.abortSet.delete(s),l.status=4;var h=s.blockedBoundary,p=v,y=Bd(a,p);if(h===null?cg(a,p):(h.pendingTasks--,h.forceClientRender||(h.forceClientRender=!0,h.errorDigest=y,h.parentFlushed&&a.clientRenderedBoundaries.push(h))),a.allPendingTasks--,a.allPendingTasks===0){var w=a.onAllReady;w()}}}finally{}}}o.splice(0,i),e.destination!==null&&V2(e,e.destination)}catch(v){Bd(e,v),cg(e,v)}finally{sg=n,O2.current=r,r===kA&&ag(t)}}}function tg(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,Fe(t,aY),Fe(t,e.placeholderPrefix),e=ot(n.toString(16)),Fe(t,e),zt(t,lY);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var s=0;s<r.length;s++){for(o=r[s];i<o.index;i++)Fe(t,n[i]);o=pg(e,t,o)}for(;i<n.length-1;i++)Fe(t,n[i]);return i<n.length&&(o=zt(t,n[i])),o;default:throw Error(rt(390))}}function pg(e,t,r){var n=r.boundary;if(n===null)return tg(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,zt(t,dY),Fe(t,pY),n&&(Fe(t,gY),Fe(t,ot(Ur(n))),Fe(t,mY)),zt(t,yY),tg(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=Ie(o.boundaryPrefix+i.toString(16)),n=n.id=o,PA(t,e.responseState,n),tg(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),PA(t,e.responseState,n.id),tg(e,t,r);else{if(zt(t,uY),r=n.completedSegments,r.length!==1)throw Error(rt(391));pg(e,t,r[0])}return zt(t,hY)}function BA(e,t,r){return UY(t,e.responseState,r.formatContext,r.id),pg(e,t,r),BY(t,r.formatContext)}function jA(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)hM(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,Fe(t,e.startInlineScript),e.sentCompleteBoundaryFunction?Fe(t,qY):(e.sentCompleteBoundaryFunction=!0,Fe(t,KY)),n===null)throw Error(rt(395));return r=ot(r.toString(16)),Fe(t,n),Fe(t,GY),Fe(t,e.segmentPrefix),Fe(t,r),zt(t,WY)}function hM(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(rt(392));return BA(e,t,n)}return BA(e,t,n),e=e.responseState,Fe(t,e.startInlineScript),e.sentCompleteSegmentFunction?Fe(t,VY):(e.sentCompleteSegmentFunction=!0,Fe(t,jY)),Fe(t,e.segmentPrefix),o=ot(o.toString(16)),Fe(t,o),Fe(t,zY),Fe(t,e.placeholderPrefix),Fe(t,o),zt(t,HY)}function V2(e,t){Jn=new Uint8Array(512),Qn=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){pg(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)Fe(t,n[r]);r<n.length&&zt(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var s=o[i];n=t;var a=e.responseState,l=s.id,u=s.errorDigest,h=s.errorMessage,p=s.errorComponentStack;if(Fe(n,a.startInlineScript),a.sentClientRenderFunction?Fe(n,XY):(a.sentClientRenderFunction=!0,Fe(n,YY)),l===null)throw Error(rt(395));if(Fe(n,l),Fe(n,ZY),(u||h||p)&&(Fe(n,T2),Fe(n,ot(P2(u||"")))),(h||p)&&(Fe(n,T2),Fe(n,ot(P2(h||"")))),p&&(Fe(n,T2),Fe(n,ot(P2(p)))),!zt(n,JY)){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var y=e.completedBoundaries;for(i=0;i<y.length;i++)if(!jA(e,t,y[i])){e.destination=null,i++,y.splice(0,i);return}y.splice(0,i),yA(t),Jn=new Uint8Array(512),Qn=0;var w=e.partialBoundaries;for(i=0;i<w.length;i++){var v=w[i];e:{o=e,s=t;var S=v.completedSegments;for(a=0;a<S.length;a++)if(!hM(o,s,v,S[a])){a++,S.splice(0,a);var I=!1;break e}S.splice(0,a),I=!0}if(!I){e.destination=null,i++,w.splice(0,i);return}}w.splice(0,i);var T=e.completedBoundaries;for(i=0;i<T.length;i++)if(!jA(e,t,T[i])){e.destination=null,i++,T.splice(0,i);return}T.splice(0,i)}finally{yA(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function VA(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return cM(n,e,t)}),r.clear(),e.destination!==null&&V2(e,e.destination)}catch(n){Bd(e,n),cg(e,n)}}z2.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,s=new Promise(function(h,p){i=h,o=p}),a=pX(e,XW(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),ZW(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var h=new ReadableStream({type:"bytes",pull:function(p){if(a.status===1)a.status=2,KA(p,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=p;try{V2(a,p)}catch(y){Bd(a,y),cg(a,y)}}},cancel:function(){VA(a)}},{highWaterMark:0});h.allReady=s,r(h)},function(h){s.catch(function(){}),n(h)},o);if(t&&t.signal){var l=t.signal,u=function(){VA(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}dM(a)})};z2.version="18.2.0"});var gM=_e(Za=>{"use strict";c();d();f();var nc,mM;nc=gA(),mM=pM();Za.version=nc.version;Za.renderToString=nc.renderToString;Za.renderToStaticMarkup=nc.renderToStaticMarkup;Za.renderToNodeStream=nc.renderToNodeStream;Za.renderToStaticNodeStream=nc.renderToStaticNodeStream;Za.renderToReadableStream=mM.renderToReadableStream});var OM=_e((t2e,PM)=>{"use strict";c();d();f();function bX(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}PM.exports=_X;function _X(e,t,r){var n=r&&r.stringify||bX,o=1;if(typeof e=="object"&&e!==null){var i=t.length+o;if(i===1)return e;var s=new Array(i);s[0]=n(e);for(var a=1;a<i;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-o,p=-1,y=e&&e.length||0,w=0;w<y;){if(e.charCodeAt(w)===37&&w+1<y){switch(p=p>-1?p:0,e.charCodeAt(w+1)){case 100:case 102:if(h>=l||t[h]==null)break;p<w&&(u+=e.slice(p,w)),u+=Number(t[h]),p=w+2,w++;break;case 105:if(h>=l||t[h]==null)break;p<w&&(u+=e.slice(p,w)),u+=Math.floor(Number(t[h])),p=w+2,w++;break;case 79:case 111:case 106:if(h>=l||t[h]===void 0)break;p<w&&(u+=e.slice(p,w));var v=typeof t[h];if(v==="string"){u+="'"+t[h]+"'",p=w+2,w++;break}if(v==="function"){u+=t[h].name||"<anonymous>",p=w+2,w++;break}u+=n(t[h]),p=w+2,w++;break;case 115:if(h>=l)break;p<w&&(u+=e.slice(p,w)),u+=String(t[h]),p=w+2,w++;break;case 37:p<w&&(u+=e.slice(p,w)),u+="%",p=w+2,w++,h--;break}++h}++w}return p===-1?e:(p<y&&(u+=e.slice(p)),u)}});var yg=_e((r2e,MM)=>{"use strict";c();d();f();var DM=OM();MM.exports=ai;var Vd=AX().console||{},xX={mapHttpRequest:mg,mapHttpResponse:mg,wrapRequestSerializer:q2,wrapResponseSerializer:q2,wrapErrorSerializer:q2,req:mg,res:mg,err:PX};function EX(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ai(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||Vd;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=EX(e.browser.serialize,n),i=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!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=zd),Object.defineProperty(l,"levelVal",{get:h}),Object.defineProperty(l,"level",{get:p,set:y});let u={transmit:t,serialize:o,asObject:e.browser.asObject,levels:s,timestamp:OX(e)};l.levels=ai.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=zd,l.serializers=n,l._serialize=o,l._stdErrSerialize=i,l.child=w,t&&(l._logEvent=G2());function h(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function y(v){if(v!=="silent"&&!this.levels.values[v])throw Error("unknown level "+v);this._level=v,oc(u,l,"error","log"),oc(u,l,"fatal","error"),oc(u,l,"warn","error"),oc(u,l,"info","log"),oc(u,l,"debug","log"),oc(u,l,"trace","log")}function w(v,S){if(!v)throw new Error("missing bindings for child Pino");S=S||{},o&&v.serializers&&(S.serializers=v.serializers);let I=S.serializers;if(o&&I){var T=Object.assign({},n,I),O=e.browser.serialize===!0?Object.keys(T):o;delete v.serializers,gg([v],O,T,this._stdErrSerialize)}function M(L){this._childLevel=(L._childLevel|0)+1,this.error=ic(L,v,"error"),this.fatal=ic(L,v,"fatal"),this.warn=ic(L,v,"warn"),this.info=ic(L,v,"info"),this.debug=ic(L,v,"debug"),this.trace=ic(L,v,"trace"),T&&(this.serializers=T,this._serialize=O),t&&(this._logEvent=G2([].concat(L._logEvent.bindings,v)))}return M.prototype=this,new M(this)}return l}ai.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"}};ai.stdSerializers=xX;ai.stdTimeFunctions=Object.assign({},{nullTime:IM,epochTime:AM,unixTime:DX,isoTime:IX});function oc(e,t,r,n){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?zd:o[r]?o[r]:Vd[r]||Vd[n]||zd,SX(e,t,r)}function SX(e,t,r){!e.transmit&&t[r]===zd||(t[r]=function(n){return function(){let i=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Vd?Vd:this;for(var l=0;l<s.length;l++)s[l]=arguments[l];if(e.serialize&&!e.asObject&&gg(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,CX(this,r,s,i)):n.apply(a,s),e.transmit){let u=e.transmit.level||t.level,h=ai.levels.values[u],p=ai.levels.values[r];if(p<h)return;TX(this,{ts:i,methodLevel:r,methodValue:p,transmitLevel:u,transmitValue:ai.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function CX(e,t,r,n){e._serialize&&gg(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),i=o[0],s={};n&&(s.time=n),s.level=ai.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),i!==null&&typeof i=="object"){for(;a--&&typeof o[0]=="object";)Object.assign(s,o.shift());i=o.length?DM(o.shift(),o):void 0}else typeof i=="string"&&(i=DM(o.shift(),o));return i!==void 0&&(s.msg=i),s}function gg(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=ai.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o]))for(let i in e[o])t&&t.indexOf(i)>-1&&i in r&&(e[o][i]=r[i](e[o][i]))}function ic(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var o=1;o<n.length;o++)n[o]=arguments[o-1];return e[r].apply(this,n)}}function TX(e,t,r){let n=t.send,o=t.ts,i=t.methodLevel,s=t.methodValue,a=t.val,l=e._logEvent.bindings;gg(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=o,e._logEvent.messages=r.filter(function(u){return l.indexOf(u)===-1}),e._logEvent.level.label=i,e._logEvent.level.value=s,n(i,e._logEvent,a),e._logEvent=G2(l)}function G2(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function PX(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 OX(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?IM:AM}function mg(){return{}}function q2(e){return e}function zd(){}function IM(){return!1}function AM(){return Date.now()}function DX(){return Math.round(Date.now()/1e3)}function IX(){return new Date(Date.now()).toISOString()}function AX(){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 Ws=_e((n2e,W2)=>{"use strict";c();d();f();var sc=typeof Reflect=="object"?Reflect:null,RM=sc&&typeof sc.apply=="function"?sc.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},vg;sc&&typeof sc.ownKeys=="function"?vg=sc.ownKeys:Object.getOwnPropertySymbols?vg=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:vg=function(t){return Object.getOwnPropertyNames(t)};function MX(e){console&&console.warn&&console.warn(e)}var kM=Number.isNaN||function(t){return t!==t};function Dt(){Dt.init.call(this)}W2.exports=Dt;W2.exports.once=LX;Dt.EventEmitter=Dt;Dt.prototype._events=void 0;Dt.prototype._eventsCount=0;Dt.prototype._maxListeners=void 0;var NM=10;function wg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Dt,"defaultMaxListeners",{enumerable:!0,get:function(){return NM},set:function(e){if(typeof e!="number"||e<0||kM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");NM=e}});Dt.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};Dt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||kM(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 LM(e){return e._maxListeners===void 0?Dt.defaultMaxListeners:e._maxListeners}Dt.prototype.getMaxListeners=function(){return LM(this)};Dt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){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=i[t];if(l===void 0)return!1;if(typeof l=="function")RM(l,this,r);else for(var u=l.length,h=jM(l,u),n=0;n<u;++n)RM(h[n],this,r);return!0};function FM(e,t,r,n){var o,i,s;if(wg(r),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),s===void 0)s=i[t]=r,++e._eventsCount;else if(typeof s=="function"?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),o=LM(e),o>0&&s.length>o&&!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,MX(a)}return e}Dt.prototype.addListener=function(t,r){return FM(this,t,r,!1)};Dt.prototype.on=Dt.prototype.addListener;Dt.prototype.prependListener=function(t,r){return FM(this,t,r,!0)};function RX(){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 $M(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=RX.bind(n);return o.listener=r,n.wrapFn=o,o}Dt.prototype.once=function(t,r){return wg(r),this.on(t,$M(this,t,r)),this};Dt.prototype.prependOnceListener=function(t,r){return wg(r),this.prependListener(t,$M(this,t,r)),this};Dt.prototype.removeListener=function(t,r){var n,o,i,s,a;if(wg(r),o=this._events,o===void 0)return this;if(n=o[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():NX(n,i),n.length===1&&(o[t]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Dt.prototype.off=Dt.prototype.removeListener;Dt.prototype.removeAllListeners=function(t){var r,n,o;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 i=Object.keys(n),s;for(o=0;o<i.length;++o)s=i[o],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(o=r.length-1;o>=0;o--)this.removeListener(t,r[o]);return this};function UM(e,t,r){var n=e._events;if(n===void 0)return[];var o=n[t];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?kX(o):jM(o,o.length)}Dt.prototype.listeners=function(t){return UM(this,t,!0)};Dt.prototype.rawListeners=function(t){return UM(this,t,!1)};Dt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):BM.call(e,t)};Dt.prototype.listenerCount=BM;function BM(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}Dt.prototype.eventNames=function(){return this._eventsCount>0?vg(this._events):[]};function jM(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function NX(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function kX(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function LX(e,t){return new Promise(function(r,n){function o(s){e.removeListener(t,i),n(s)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),r([].slice.call(arguments))}VM(e,t,i,{once:!0}),t!=="error"&&FX(e,o,{once:!0})})}function FX(e,t,r){typeof e.on=="function"&&VM(e,"error",t,r)}function VM(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 o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var X2=_e((o2e,_g)=>{c();d();f();var zM,HM,KM,qM,GM,WM,YM,XM,ZM,bg,Y2,JM,QM,ac,eR,tR,rR,nR,oR,iR,sR,aR,lR;(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 _g=="object"&&typeof _g.exports=="object"?e(r(t,r(_g.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};zM=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},HM=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},KM=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(o[i[s]]=r[i[s]]);return o},qM=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,o,a):l(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},GM=function(r,n){return function(o,i){n(o,i,r)}},WM=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},YM=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(l){l(a)})}return new(o||(o=Promise))(function(a,l){function u(y){try{p(i.next(y))}catch(w){l(w)}}function h(y){try{p(i.throw(y))}catch(w){l(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,h)}p((i=i.apply(r,n||[])).next())})},XM=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(y){return h([p,y])}}function h(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=p[0]&2?s.return:p[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,p[1])).done)return a;switch(s=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,s=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(r,o)}catch(y){p=[6,y],s=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lR=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},ZM=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},bg=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Y2=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return a},JM=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Y2(arguments[n]));return r},QM=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),s=0,n=0;n<o;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,s++)i[s]=a[l];return i},ac=function(r){return this instanceof ac?(this.v=r,this):new ac(r)},eR=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),s,a=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){i[v]&&(s[v]=function(S){return new Promise(function(I,T){a.push([v,S,I,T])>1||u(v,S)})})}function u(v,S){try{h(i[v](S))}catch(I){w(a[0][3],I)}}function h(v){v.value instanceof ac?Promise.resolve(v.value.v).then(p,y):w(a[0][2],v)}function p(v){u("next",v)}function y(v){u("throw",v)}function w(v,S){v(S),a.shift(),a.length&&u(a[0][0],a[0][1])}},tR=function(r){var n,o;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,a){n[s]=r[s]?function(l){return(o=!o)?{value:ac(r[s](l)),done:s==="return"}:a?a(l):l}:a}},rR=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof bg=="function"?bg(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(a){o[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(p){a({value:p,done:u})},l)}},nR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},oR=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},iR=function(r){return r&&r.__esModule?r:{default:r}},sR=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},aR=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",zM),e("__assign",HM),e("__rest",KM),e("__decorate",qM),e("__param",GM),e("__metadata",WM),e("__awaiter",YM),e("__generator",XM),e("__exportStar",ZM),e("__createBinding",lR),e("__values",bg),e("__read",Y2),e("__spread",JM),e("__spreadArrays",QM),e("__await",ac),e("__asyncGenerator",eR),e("__asyncDelegator",tR),e("__asyncValues",rR),e("__makeTemplateObject",nR),e("__importStar",oR),e("__importDefault",iR),e("__classPrivateFieldGet",sR),e("__classPrivateFieldSet",aR)})});var Z2=_e(xg=>{"use strict";c();d();f();Object.defineProperty(xg,"__esModule",{value:!0});function $X(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}}xg.safeJsonParse=$X;function UX(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}xg.safeJsonStringify=UX});var uR=_e((s2e,Eg)=>{"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?Eg.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Eg.exports=window.localStorage:Eg.exports=new t})()});var cR=_e(Sg=>{"use strict";c();d();f();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.IKeyValueStorage=void 0;var J2=class{};Sg.IKeyValueStorage=J2});var fR=_e(Cg=>{"use strict";c();d();f();Object.defineProperty(Cg,"__esModule",{value:!0});Cg.parseEntry=void 0;var BX=Z2();function jX(e){var t;return[e[0],BX.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Cg.parseEntry=jX});var hR=_e(Tg=>{"use strict";c();d();f();Object.defineProperty(Tg,"__esModule",{value:!0});var dR=X2();dR.__exportStar(cR(),Tg);dR.__exportStar(fR(),Tg)});var mR=_e(Hd=>{"use strict";c();d();f();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.KeyValueStorage=void 0;var lc=X2(),pR=Z2(),VX=lc.__importDefault(uR()),zX=hR(),Pg=class{constructor(){this.localStorage=VX.default}getKeys(){return lc.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return lc.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(zX.parseEntry)})}getItem(t){return lc.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return pR.safeJsonParse(r)})}setItem(t,r){return lc.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,pR.safeJsonStringify(r))})}removeItem(t){return lc.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Hd.KeyValueStorage=Pg;Hd.default=Pg});var Kd=_e((f2e,Dg)=>{c();d();f();var gR,yR,vR,wR,bR,_R,xR,ER,SR,Og,Q2,CR,TR,uc,PR,OR,DR,IR,AR,MR,RR,NR,kR;(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 Dg=="object"&&typeof Dg.exports=="object"?e(r(t,r(Dg.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};gR=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},yR=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},vR=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(o[i[s]]=r[i[s]]);return o},wR=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,o,a):l(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},bR=function(r,n){return function(o,i){n(o,i,r)}},_R=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},xR=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(l){l(a)})}return new(o||(o=Promise))(function(a,l){function u(y){try{p(i.next(y))}catch(w){l(w)}}function h(y){try{p(i.throw(y))}catch(w){l(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,h)}p((i=i.apply(r,n||[])).next())})},ER=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(y){return h([p,y])}}function h(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=p[0]&2?s.return:p[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,p[1])).done)return a;switch(s=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,s=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(r,o)}catch(y){p=[6,y],s=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},kR=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},SR=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},Og=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Q2=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return a},CR=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Q2(arguments[n]));return r},TR=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),s=0,n=0;n<o;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,s++)i[s]=a[l];return i},uc=function(r){return this instanceof uc?(this.v=r,this):new uc(r)},PR=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),s,a=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){i[v]&&(s[v]=function(S){return new Promise(function(I,T){a.push([v,S,I,T])>1||u(v,S)})})}function u(v,S){try{h(i[v](S))}catch(I){w(a[0][3],I)}}function h(v){v.value instanceof uc?Promise.resolve(v.value.v).then(p,y):w(a[0][2],v)}function p(v){u("next",v)}function y(v){u("throw",v)}function w(v,S){v(S),a.shift(),a.length&&u(a[0][0],a[0][1])}},OR=function(r){var n,o;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,a){n[s]=r[s]?function(l){return(o=!o)?{value:uc(r[s](l)),done:s==="return"}:a?a(l):l}:a}},DR=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof Og=="function"?Og(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(a){o[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(p){a({value:p,done:u})},l)}},IR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},AR=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},MR=function(r){return r&&r.__esModule?r:{default:r}},RR=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},NR=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",gR),e("__assign",yR),e("__rest",vR),e("__decorate",wR),e("__param",bR),e("__metadata",_R),e("__awaiter",xR),e("__generator",ER),e("__exportStar",SR),e("__createBinding",kR),e("__values",Og),e("__read",Q2),e("__spread",CR),e("__spreadArrays",TR),e("__await",uc),e("__asyncGenerator",PR),e("__asyncDelegator",OR),e("__asyncValues",DR),e("__makeTemplateObject",IR),e("__importStar",AR),e("__importDefault",MR),e("__classPrivateFieldGet",RR),e("__classPrivateFieldSet",NR)})});var qd=_e((d2e,Ag)=>{c();d();f();var LR,FR,$R,UR,BR,jR,VR,zR,HR,Ig,ex,KR,qR,cc,GR,WR,YR,XR,ZR,JR,QR,eN,tN;(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 Ag=="object"&&typeof Ag.exports=="object"?e(r(t,r(Ag.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};LR=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},FR=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},$R=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(o[i[s]]=r[i[s]]);return o},UR=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,o,a):l(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},BR=function(r,n){return function(o,i){n(o,i,r)}},jR=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},VR=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(l){l(a)})}return new(o||(o=Promise))(function(a,l){function u(y){try{p(i.next(y))}catch(w){l(w)}}function h(y){try{p(i.throw(y))}catch(w){l(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,h)}p((i=i.apply(r,n||[])).next())})},zR=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(y){return h([p,y])}}function h(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=p[0]&2?s.return:p[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,p[1])).done)return a;switch(s=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,s=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(r,o)}catch(y){p=[6,y],s=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},tN=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},HR=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},Ig=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},ex=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return a},KR=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ex(arguments[n]));return r},qR=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),s=0,n=0;n<o;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,s++)i[s]=a[l];return i},cc=function(r){return this instanceof cc?(this.v=r,this):new cc(r)},GR=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),s,a=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){i[v]&&(s[v]=function(S){return new Promise(function(I,T){a.push([v,S,I,T])>1||u(v,S)})})}function u(v,S){try{h(i[v](S))}catch(I){w(a[0][3],I)}}function h(v){v.value instanceof cc?Promise.resolve(v.value.v).then(p,y):w(a[0][2],v)}function p(v){u("next",v)}function y(v){u("throw",v)}function w(v,S){v(S),a.shift(),a.length&&u(a[0][0],a[0][1])}},WR=function(r){var n,o;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,a){n[s]=r[s]?function(l){return(o=!o)?{value:cc(r[s](l)),done:s==="return"}:a?a(l):l}:a}},YR=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof Ig=="function"?Ig(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(a){o[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(p){a({value:p,done:u})},l)}},XR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},ZR=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},JR=function(r){return r&&r.__esModule?r:{default:r}},QR=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},eN=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",LR),e("__assign",FR),e("__rest",$R),e("__decorate",UR),e("__param",BR),e("__metadata",jR),e("__awaiter",VR),e("__generator",zR),e("__exportStar",HR),e("__createBinding",tN),e("__values",Ig),e("__read",ex),e("__spread",KR),e("__spreadArrays",qR),e("__await",cc),e("__asyncGenerator",GR),e("__asyncDelegator",WR),e("__asyncValues",YR),e("__makeTemplateObject",XR),e("__importStar",ZR),e("__importDefault",JR),e("__classPrivateFieldGet",QR),e("__classPrivateFieldSet",eN)})});var rN=_e(Mg=>{"use strict";c();d();f();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.delay=void 0;function HX(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Mg.delay=HX});var nN=_e(fc=>{"use strict";c();d();f();Object.defineProperty(fc,"__esModule",{value:!0});fc.ONE_THOUSAND=fc.ONE_HUNDRED=void 0;fc.ONE_HUNDRED=100;fc.ONE_THOUSAND=1e3});var oN=_e(Ae=>{"use strict";c();d();f();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.ONE_YEAR=Ae.FOUR_WEEKS=Ae.THREE_WEEKS=Ae.TWO_WEEKS=Ae.ONE_WEEK=Ae.THIRTY_DAYS=Ae.SEVEN_DAYS=Ae.FIVE_DAYS=Ae.THREE_DAYS=Ae.ONE_DAY=Ae.TWENTY_FOUR_HOURS=Ae.TWELVE_HOURS=Ae.SIX_HOURS=Ae.THREE_HOURS=Ae.ONE_HOUR=Ae.SIXTY_MINUTES=Ae.THIRTY_MINUTES=Ae.TEN_MINUTES=Ae.FIVE_MINUTES=Ae.ONE_MINUTE=Ae.SIXTY_SECONDS=Ae.THIRTY_SECONDS=Ae.TEN_SECONDS=Ae.FIVE_SECONDS=Ae.ONE_SECOND=void 0;Ae.ONE_SECOND=1;Ae.FIVE_SECONDS=5;Ae.TEN_SECONDS=10;Ae.THIRTY_SECONDS=30;Ae.SIXTY_SECONDS=60;Ae.ONE_MINUTE=Ae.SIXTY_SECONDS;Ae.FIVE_MINUTES=Ae.ONE_MINUTE*5;Ae.TEN_MINUTES=Ae.ONE_MINUTE*10;Ae.THIRTY_MINUTES=Ae.ONE_MINUTE*30;Ae.SIXTY_MINUTES=Ae.ONE_MINUTE*60;Ae.ONE_HOUR=Ae.SIXTY_MINUTES;Ae.THREE_HOURS=Ae.ONE_HOUR*3;Ae.SIX_HOURS=Ae.ONE_HOUR*6;Ae.TWELVE_HOURS=Ae.ONE_HOUR*12;Ae.TWENTY_FOUR_HOURS=Ae.ONE_HOUR*24;Ae.ONE_DAY=Ae.TWENTY_FOUR_HOURS;Ae.THREE_DAYS=Ae.ONE_DAY*3;Ae.FIVE_DAYS=Ae.ONE_DAY*5;Ae.SEVEN_DAYS=Ae.ONE_DAY*7;Ae.THIRTY_DAYS=Ae.ONE_DAY*30;Ae.ONE_WEEK=Ae.SEVEN_DAYS;Ae.TWO_WEEKS=Ae.ONE_WEEK*2;Ae.THREE_WEEKS=Ae.ONE_WEEK*3;Ae.FOUR_WEEKS=Ae.ONE_WEEK*4;Ae.ONE_YEAR=Ae.ONE_DAY*365});var tx=_e(Rg=>{"use strict";c();d();f();Object.defineProperty(Rg,"__esModule",{value:!0});var iN=qd();iN.__exportStar(nN(),Rg);iN.__exportStar(oN(),Rg)});var aN=_e(dc=>{"use strict";c();d();f();Object.defineProperty(dc,"__esModule",{value:!0});dc.fromMiliseconds=dc.toMiliseconds=void 0;var sN=tx();function KX(e){return e*sN.ONE_THOUSAND}dc.toMiliseconds=KX;function qX(e){return Math.floor(e/sN.ONE_THOUSAND)}dc.fromMiliseconds=qX});var uN=_e(Ng=>{"use strict";c();d();f();Object.defineProperty(Ng,"__esModule",{value:!0});var lN=qd();lN.__exportStar(rN(),Ng);lN.__exportStar(aN(),Ng)});var cN=_e(Gd=>{"use strict";c();d();f();Object.defineProperty(Gd,"__esModule",{value:!0});Gd.Watch=void 0;var kg=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}};Gd.Watch=kg;Gd.default=kg});var fN=_e(Lg=>{"use strict";c();d();f();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.IWatch=void 0;var rx=class{};Lg.IWatch=rx});var dN=_e(nx=>{"use strict";c();d();f();Object.defineProperty(nx,"__esModule",{value:!0});var GX=qd();GX.__exportStar(fN(),nx)});var Ui=_e(hc=>{"use strict";c();d();f();Object.defineProperty(hc,"__esModule",{value:!0});var Fg=qd();Fg.__exportStar(uN(),hc);Fg.__exportStar(cN(),hc);Fg.__exportStar(dN(),hc);Fg.__exportStar(tx(),hc)});var Bo,hN=xl(()=>{c();d();f();Bo=class{}});var pN={};Hr(pN,{IEvents:()=>Bo});var $g=xl(()=>{c();d();f();hN()});var mN=_e(Ug=>{"use strict";c();d();f();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.IHeartBeat=void 0;var WX=($g(),SS(pN)),ox=class extends WX.IEvents{constructor(t){super()}};Ug.IHeartBeat=ox});var sx=_e(ix=>{"use strict";c();d();f();Object.defineProperty(ix,"__esModule",{value:!0});var YX=Kd();YX.__exportStar(mN(),ix)});var gN=_e(pc=>{"use strict";c();d();f();Object.defineProperty(pc,"__esModule",{value:!0});pc.HEARTBEAT_EVENTS=pc.HEARTBEAT_INTERVAL=void 0;var XX=Ui();pc.HEARTBEAT_INTERVAL=XX.FIVE_SECONDS;pc.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var lx=_e(ax=>{"use strict";c();d();f();Object.defineProperty(ax,"__esModule",{value:!0});var ZX=Kd();ZX.__exportStar(gN(),ax)});var yN=_e(Bg=>{"use strict";c();d();f();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.HeartBeat=void 0;var ux=Kd(),JX=Ws(),QX=Ui(),eZ=sx(),cx=lx(),Wd=class extends eZ.IHeartBeat{constructor(t){super(t),this.events=new JX.EventEmitter,this.interval=cx.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||cx.HEARTBEAT_INTERVAL}static init(t){return ux.__awaiter(this,void 0,void 0,function*(){let r=new Wd(t);return yield r.init(),r})}init(){return ux.__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 ux.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),QX.toMiliseconds(this.interval))})}pulse(){this.events.emit(cx.HEARTBEAT_EVENTS.pulse)}};Bg.HeartBeat=Wd});var vN=_e(Yd=>{"use strict";c();d();f();Object.defineProperty(Yd,"__esModule",{value:!0});var fx=Kd();fx.__exportStar(yN(),Yd);fx.__exportStar(sx(),Yd);fx.__exportStar(lx(),Yd)});var UN=_e((A2e,Vg)=>{c();d();f();var wN,bN,_N,xN,EN,SN,CN,TN,PN,jg,dx,ON,DN,mc,IN,AN,MN,RN,NN,kN,LN,FN,$N;(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 Vg=="object"&&typeof Vg.exports=="object"?e(r(t,r(Vg.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};wN=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},bN=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},_N=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(o[i[s]]=r[i[s]]);return o},xN=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,o,a):l(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},EN=function(r,n){return function(o,i){n(o,i,r)}},SN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},CN=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(l){l(a)})}return new(o||(o=Promise))(function(a,l){function u(y){try{p(i.next(y))}catch(w){l(w)}}function h(y){try{p(i.throw(y))}catch(w){l(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,h)}p((i=i.apply(r,n||[])).next())})},TN=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(y){return h([p,y])}}function h(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=p[0]&2?s.return:p[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,p[1])).done)return a;switch(s=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,s=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(r,o)}catch(y){p=[6,y],s=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$N=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},PN=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},jg=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},dx=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return a},ON=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(dx(arguments[n]));return r},DN=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),s=0,n=0;n<o;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,s++)i[s]=a[l];return i},mc=function(r){return this instanceof mc?(this.v=r,this):new mc(r)},IN=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),s,a=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){i[v]&&(s[v]=function(S){return new Promise(function(I,T){a.push([v,S,I,T])>1||u(v,S)})})}function u(v,S){try{h(i[v](S))}catch(I){w(a[0][3],I)}}function h(v){v.value instanceof mc?Promise.resolve(v.value.v).then(p,y):w(a[0][2],v)}function p(v){u("next",v)}function y(v){u("throw",v)}function w(v,S){v(S),a.shift(),a.length&&u(a[0][0],a[0][1])}},AN=function(r){var n,o;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,a){n[s]=r[s]?function(l){return(o=!o)?{value:mc(r[s](l)),done:s==="return"}:a?a(l):l}:a}},MN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof jg=="function"?jg(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(a){o[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(p){a({value:p,done:u})},l)}},RN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},NN=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},kN=function(r){return r&&r.__esModule?r:{default:r}},LN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},FN=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",wN),e("__assign",bN),e("__rest",_N),e("__decorate",xN),e("__param",EN),e("__metadata",SN),e("__awaiter",CN),e("__generator",TN),e("__exportStar",PN),e("__createBinding",$N),e("__values",jg),e("__read",dx),e("__spread",ON),e("__spreadArrays",DN),e("__await",mc),e("__asyncGenerator",IN),e("__asyncDelegator",AN),e("__asyncValues",MN),e("__makeTemplateObject",RN),e("__importStar",NN),e("__importDefault",kN),e("__classPrivateFieldGet",LN),e("__classPrivateFieldSet",FN)})});var hx=_e(gc=>{"use strict";c();d();f();Object.defineProperty(gc,"__esModule",{value:!0});gc.PINO_CUSTOM_CONTEXT_KEY=gc.PINO_LOGGER_DEFAULTS=void 0;gc.PINO_LOGGER_DEFAULTS={level:"info"};gc.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var HN=_e(An=>{"use strict";c();d();f();Object.defineProperty(An,"__esModule",{value:!0});An.generateChildLogger=An.formatChildLoggerContext=An.getLoggerContext=An.setBrowserLoggerContext=An.getBrowserLoggerContext=An.getDefaultLoggerOptions=void 0;var yc=hx();function tZ(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||yc.PINO_LOGGER_DEFAULTS.level})}An.getDefaultLoggerOptions=tZ;function BN(e,t=yc.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}An.getBrowserLoggerContext=BN;function jN(e,t,r=yc.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}An.setBrowserLoggerContext=jN;function VN(e,t=yc.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=BN(e,t):r=e.bindings().context||"",r}An.getLoggerContext=VN;function zN(e,t,r=yc.PINO_CUSTOM_CONTEXT_KEY){let n=VN(e,r);return n.trim()?`${n}/${t}`:t}An.formatChildLoggerContext=zN;function rZ(e,t,r=yc.PINO_CUSTOM_CONTEXT_KEY){let n=zN(e,t,r),o=e.child({context:n});return jN(o,n,r)}An.generateChildLogger=rZ});var mx=_e(vc=>{"use strict";c();d();f();Object.defineProperty(vc,"__esModule",{value:!0});vc.pino=void 0;var px=UN(),nZ=px.__importDefault(yg());Object.defineProperty(vc,"pino",{enumerable:!0,get:function(){return nZ.default}});px.__exportStar(hx(),vc);px.__exportStar(HN(),vc)});var GN=_e(Zg=>{"use strict";c();d();f();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.BrowserRandomSource=void 0;var qN=65536,gx=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+=qN)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,qN)));return r}};Zg.BrowserRandomSource=gx});var _o=_e(yx=>{"use strict";c();d();f();Object.defineProperty(yx,"__esModule",{value:!0});function oZ(e){for(var t=0;t<e.length;t++)e[t]=0;return e}yx.wipe=oZ});var WN=_e(()=>{c();d();f()});var YN=_e(Jg=>{"use strict";c();d();f();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.NodeRandomSource=void 0;var iZ=_o(),vx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof ES<"u"){let t=WN();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 o=0;o<n.length;o++)n[o]=r[o];return(0,iZ.wipe)(r),n}};Jg.NodeRandomSource=vx});var XN=_e(Qg=>{"use strict";c();d();f();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.SystemRandomSource=void 0;var sZ=GN(),aZ=YN(),wx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new sZ.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new aZ.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)}};Qg.SystemRandomSource=wx});var ZN=_e(to=>{"use strict";c();d();f();Object.defineProperty(to,"__esModule",{value:!0});function lZ(e,t){var r=e>>>16&65535,n=e&65535,o=t>>>16&65535,i=t&65535;return n*i+(r*i+n*o<<16>>>0)|0}to.mul=Math.imul||lZ;function uZ(e,t){return e+t|0}to.add=uZ;function cZ(e,t){return e-t|0}to.sub=cZ;function fZ(e,t){return e<<t|e>>>32-t}to.rotl=fZ;function dZ(e,t){return e<<32-t|e>>>t}to.rotr=dZ;function hZ(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}to.isInteger=Number.isInteger||hZ;to.MAX_SAFE_INTEGER=9007199254740991;to.isSafeInteger=function(e){return to.isInteger(e)&&e>=-to.MAX_SAFE_INTEGER&&e<=to.MAX_SAFE_INTEGER}});var bc=_e(it=>{"use strict";c();d();f();Object.defineProperty(it,"__esModule",{value:!0});var JN=ZN();function pZ(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}it.readInt16BE=pZ;function mZ(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}it.readUint16BE=mZ;function gZ(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}it.readInt16LE=gZ;function yZ(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}it.readUint16LE=yZ;function QN(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}it.writeUint16BE=QN;it.writeInt16BE=QN;function e7(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}it.writeUint16LE=e7;it.writeInt16LE=e7;function bx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}it.readInt32BE=bx;function _x(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}it.readUint32BE=_x;function xx(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}it.readInt32LE=xx;function Ex(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}it.readUint32LE=Ex;function ey(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}it.writeUint32BE=ey;it.writeInt32BE=ey;function ty(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}it.writeUint32LE=ty;it.writeInt32LE=ty;function vZ(e,t){t===void 0&&(t=0);var r=bx(e,t),n=bx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}it.readInt64BE=vZ;function wZ(e,t){t===void 0&&(t=0);var r=_x(e,t),n=_x(e,t+4);return r*4294967296+n}it.readUint64BE=wZ;function bZ(e,t){t===void 0&&(t=0);var r=xx(e,t),n=xx(e,t+4);return n*4294967296+r-(r>>31)*4294967296}it.readInt64LE=bZ;function _Z(e,t){t===void 0&&(t=0);var r=Ex(e,t),n=Ex(e,t+4);return n*4294967296+r}it.readUint64LE=_Z;function t7(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),ey(e/4294967296>>>0,t,r),ey(e>>>0,t,r+4),t}it.writeUint64BE=t7;it.writeInt64BE=t7;function r7(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),ty(e>>>0,t,r),ty(e/4294967296>>>0,t,r+4),t}it.writeUint64LE=r7;it.writeInt64LE=r7;function xZ(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,o=1,i=e/8+r-1;i>=r;i--)n+=t[i]*o,o*=256;return n}it.readUintBE=xZ;function EZ(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,o=1,i=r;i<r+e/8;i++)n+=t[i]*o,o*=256;return n}it.readUintLE=EZ;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("writeUintBE supports only bitLengths divisible by 8");if(!JN.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var o=1,i=e/8+n-1;i>=n;i--)r[i]=t/o&255,o*=256;return r}it.writeUintBE=SZ;function CZ(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(!JN.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,i=n;i<n+e/8;i++)r[i]=t/o&255,o*=256;return r}it.writeUintLE=CZ;function TZ(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}it.readFloat32BE=TZ;function PZ(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}it.readFloat32LE=PZ;function OZ(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}it.readFloat64BE=OZ;function DZ(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}it.readFloat64LE=DZ;function IZ(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}it.writeFloat32BE=IZ;function AZ(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}it.writeFloat32LE=AZ;function MZ(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}it.writeFloat64BE=MZ;function RZ(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}it.writeFloat64LE=RZ});var Ja=_e(Qr=>{"use strict";c();d();f();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.randomStringForEntropy=Qr.randomString=Qr.randomUint32=Qr.randomBytes=Qr.defaultRandomSource=void 0;var NZ=XN(),kZ=bc(),n7=_o();Qr.defaultRandomSource=new NZ.SystemRandomSource;function Sx(e,t=Qr.defaultRandomSource){return t.randomBytes(e)}Qr.randomBytes=Sx;function LZ(e=Qr.defaultRandomSource){let t=Sx(4,e),r=(0,kZ.readUint32LE)(t);return(0,n7.wipe)(t),r}Qr.randomUint32=LZ;var o7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function i7(e,t=o7,r=Qr.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="",o=t.length,i=256-256%o;for(;e>0;){let s=Sx(Math.ceil(e*256/i),r);for(let a=0;a<s.length&&e>0;a++){let l=s[a];l<i&&(n+=t.charAt(l%o),e--)}(0,n7.wipe)(s)}return n}Qr.randomString=i7;function FZ(e,t=o7,r=Qr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return i7(n,t,r)}Qr.randomStringForEntropy=FZ});var l7=_e(Bi=>{"use strict";c();d();f();Object.defineProperty(Bi,"__esModule",{value:!0});var xc=bc(),_c=_o();Bi.DIGEST_LENGTH=64;Bi.BLOCK_SIZE=128;var a7=function(){function e(){this.digestLength=Bi.DIGEST_LENGTH,this.blockSize=Bi.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(){_c.wipe(this._buffer),_c.wipe(this._tempHi),_c.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<Bi.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Cx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Cx(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,o=r/536870912|0,i=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;xc.writeUint32BE(o,this._buffer,s-8),xc.writeUint32BE(i,this._buffer,s-4),Cx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)xc.writeUint32BE(this._stateHi[a],t,a*8),xc.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){_c.wipe(t.stateHi),_c.wipe(t.stateLo),t.buffer&&_c.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Bi.SHA512=a7;var s7=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 Cx(e,t,r,n,o,i,s){for(var a=r[0],l=r[1],u=r[2],h=r[3],p=r[4],y=r[5],w=r[6],v=r[7],S=n[0],I=n[1],T=n[2],O=n[3],M=n[4],L=n[5],G=n[6],J=n[7],V,q,ce,me,fe,X,R,m;s>=128;){for(var b=0;b<16;b++){var E=8*b+i;e[b]=xc.readUint32BE(o,E),t[b]=xc.readUint32BE(o,E+4)}for(var b=0;b<80;b++){var A=a,k=l,B=u,K=h,U=p,x=y,j=w,ie=v,D=S,Y=I,ne=T,ae=O,he=M,Z=L,ee=G,W=J;if(V=v,q=J,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=(p>>>14|M<<32-14)^(p>>>18|M<<32-18)^(M>>>41-32|p<<32-(41-32)),q=(M>>>14|p<<32-14)^(M>>>18|p<<32-18)^(p>>>41-32|M<<32-(41-32)),fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,V=p&y^~p&w,q=M&L^~M&G,fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,V=s7[b*2],q=s7[b*2+1],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,V=e[b%16],q=t[b%16],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,ce=R&65535|m<<16,me=fe&65535|X<<16,V=ce,q=me,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=(a>>>28|S<<32-28)^(S>>>34-32|a<<32-(34-32))^(S>>>39-32|a<<32-(39-32)),q=(S>>>28|a<<32-28)^(a>>>34-32|S<<32-(34-32))^(a>>>39-32|S<<32-(39-32)),fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,V=a&l^a&u^l&u,q=S&I^S&T^I&T,fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,ie=R&65535|m<<16,W=fe&65535|X<<16,V=K,q=ae,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=ce,q=me,fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,K=R&65535|m<<16,ae=fe&65535|X<<16,l=A,u=k,h=B,p=K,y=U,w=x,v=j,a=ie,I=D,T=Y,O=ne,M=ae,L=he,G=Z,J=ee,S=W,b%16===15)for(var E=0;E<16;E++)V=e[E],q=t[E],fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=e[(E+9)%16],q=t[(E+9)%16],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,ce=e[(E+1)%16],me=t[(E+1)%16],V=(ce>>>1|me<<32-1)^(ce>>>8|me<<32-8)^ce>>>7,q=(me>>>1|ce<<32-1)^(me>>>8|ce<<32-8)^(me>>>7|ce<<32-7),fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,ce=e[(E+14)%16],me=t[(E+14)%16],V=(ce>>>19|me<<32-19)^(me>>>61-32|ce<<32-(61-32))^ce>>>6,q=(me>>>19|ce<<32-19)^(ce>>>61-32|me<<32-(61-32))^(me>>>6|ce<<32-6),fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,e[E]=R&65535|m<<16,t[E]=fe&65535|X<<16}V=a,q=S,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[0],q=n[0],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[0]=a=R&65535|m<<16,n[0]=S=fe&65535|X<<16,V=l,q=I,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[1],q=n[1],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[1]=l=R&65535|m<<16,n[1]=I=fe&65535|X<<16,V=u,q=T,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[2],q=n[2],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[2]=u=R&65535|m<<16,n[2]=T=fe&65535|X<<16,V=h,q=O,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[3],q=n[3],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[3]=h=R&65535|m<<16,n[3]=O=fe&65535|X<<16,V=p,q=M,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[4],q=n[4],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[4]=p=R&65535|m<<16,n[4]=M=fe&65535|X<<16,V=y,q=L,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[5],q=n[5],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[5]=y=R&65535|m<<16,n[5]=L=fe&65535|X<<16,V=w,q=G,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[6],q=n[6],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[6]=w=R&65535|m<<16,n[6]=G=fe&65535|X<<16,V=v,q=J,fe=q&65535,X=q>>>16,R=V&65535,m=V>>>16,V=r[7],q=n[7],fe+=q&65535,X+=q>>>16,R+=V&65535,m+=V>>>16,X+=fe>>>16,R+=X>>>16,m+=R>>>16,r[7]=v=R&65535|m<<16,n[7]=J=fe&65535|X<<16,i+=128,s-=128}return i}function $Z(e){var t=new a7;t.update(e);var r=t.digest();return t.clean(),r}Bi.hash=$Z});var x7=_e(Pt=>{"use strict";c();d();f();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.convertSecretKeyToX25519=Pt.convertPublicKeyToX25519=Pt.verify=Pt.sign=Pt.extractPublicKeyFromSecretKey=Pt.generateKeyPair=Pt.generateKeyPairFromSeed=Pt.SEED_LENGTH=Pt.SECRET_KEY_LENGTH=Pt.PUBLIC_KEY_LENGTH=Pt.SIGNATURE_LENGTH=void 0;var UZ=Ja(),Zd=l7(),h7=_o();Pt.SIGNATURE_LENGTH=64;Pt.PUBLIC_KEY_LENGTH=32;Pt.SECRET_KEY_LENGTH=64;Pt.SEED_LENGTH=32;function je(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var BZ=new Uint8Array(32);BZ[0]=9;var Ox=je(),Ec=je([1]),jZ=je([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),VZ=je([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u7=je([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c7=je([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),zZ=je([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Ys(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function Tx(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 p7(e,t,r){let n=~(r-1);for(let o=0;o<16;o++){let i=n&(e[o]^t[o]);e[o]^=i,t[o]^=i}}function Jd(e,t){let r=je(),n=je();for(let o=0;o<16;o++)n[o]=t[o];Tx(n),Tx(n),Tx(n);for(let o=0;o<2;o++){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 i=r[15]>>16&1;r[14]&=65535,p7(n,r,1-i)}for(let o=0;o<16;o++)e[2*o]=n[o]&255,e[2*o+1]=n[o]>>8}function m7(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function f7(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return Jd(r,e),Jd(n,t),m7(r,n)}function g7(e){let t=new Uint8Array(32);return Jd(t,e),t[0]&1}function HZ(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Qa(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function tl(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function It(e,t,r){let n,o,i=0,s=0,a=0,l=0,u=0,h=0,p=0,y=0,w=0,v=0,S=0,I=0,T=0,O=0,M=0,L=0,G=0,J=0,V=0,q=0,ce=0,me=0,fe=0,X=0,R=0,m=0,b=0,E=0,A=0,k=0,B=0,K=r[0],U=r[1],x=r[2],j=r[3],ie=r[4],D=r[5],Y=r[6],ne=r[7],ae=r[8],he=r[9],Z=r[10],ee=r[11],W=r[12],le=r[13],re=r[14],ge=r[15];n=t[0],i+=n*K,s+=n*U,a+=n*x,l+=n*j,u+=n*ie,h+=n*D,p+=n*Y,y+=n*ne,w+=n*ae,v+=n*he,S+=n*Z,I+=n*ee,T+=n*W,O+=n*le,M+=n*re,L+=n*ge,n=t[1],s+=n*K,a+=n*U,l+=n*x,u+=n*j,h+=n*ie,p+=n*D,y+=n*Y,w+=n*ne,v+=n*ae,S+=n*he,I+=n*Z,T+=n*ee,O+=n*W,M+=n*le,L+=n*re,G+=n*ge,n=t[2],a+=n*K,l+=n*U,u+=n*x,h+=n*j,p+=n*ie,y+=n*D,w+=n*Y,v+=n*ne,S+=n*ae,I+=n*he,T+=n*Z,O+=n*ee,M+=n*W,L+=n*le,G+=n*re,J+=n*ge,n=t[3],l+=n*K,u+=n*U,h+=n*x,p+=n*j,y+=n*ie,w+=n*D,v+=n*Y,S+=n*ne,I+=n*ae,T+=n*he,O+=n*Z,M+=n*ee,L+=n*W,G+=n*le,J+=n*re,V+=n*ge,n=t[4],u+=n*K,h+=n*U,p+=n*x,y+=n*j,w+=n*ie,v+=n*D,S+=n*Y,I+=n*ne,T+=n*ae,O+=n*he,M+=n*Z,L+=n*ee,G+=n*W,J+=n*le,V+=n*re,q+=n*ge,n=t[5],h+=n*K,p+=n*U,y+=n*x,w+=n*j,v+=n*ie,S+=n*D,I+=n*Y,T+=n*ne,O+=n*ae,M+=n*he,L+=n*Z,G+=n*ee,J+=n*W,V+=n*le,q+=n*re,ce+=n*ge,n=t[6],p+=n*K,y+=n*U,w+=n*x,v+=n*j,S+=n*ie,I+=n*D,T+=n*Y,O+=n*ne,M+=n*ae,L+=n*he,G+=n*Z,J+=n*ee,V+=n*W,q+=n*le,ce+=n*re,me+=n*ge,n=t[7],y+=n*K,w+=n*U,v+=n*x,S+=n*j,I+=n*ie,T+=n*D,O+=n*Y,M+=n*ne,L+=n*ae,G+=n*he,J+=n*Z,V+=n*ee,q+=n*W,ce+=n*le,me+=n*re,fe+=n*ge,n=t[8],w+=n*K,v+=n*U,S+=n*x,I+=n*j,T+=n*ie,O+=n*D,M+=n*Y,L+=n*ne,G+=n*ae,J+=n*he,V+=n*Z,q+=n*ee,ce+=n*W,me+=n*le,fe+=n*re,X+=n*ge,n=t[9],v+=n*K,S+=n*U,I+=n*x,T+=n*j,O+=n*ie,M+=n*D,L+=n*Y,G+=n*ne,J+=n*ae,V+=n*he,q+=n*Z,ce+=n*ee,me+=n*W,fe+=n*le,X+=n*re,R+=n*ge,n=t[10],S+=n*K,I+=n*U,T+=n*x,O+=n*j,M+=n*ie,L+=n*D,G+=n*Y,J+=n*ne,V+=n*ae,q+=n*he,ce+=n*Z,me+=n*ee,fe+=n*W,X+=n*le,R+=n*re,m+=n*ge,n=t[11],I+=n*K,T+=n*U,O+=n*x,M+=n*j,L+=n*ie,G+=n*D,J+=n*Y,V+=n*ne,q+=n*ae,ce+=n*he,me+=n*Z,fe+=n*ee,X+=n*W,R+=n*le,m+=n*re,b+=n*ge,n=t[12],T+=n*K,O+=n*U,M+=n*x,L+=n*j,G+=n*ie,J+=n*D,V+=n*Y,q+=n*ne,ce+=n*ae,me+=n*he,fe+=n*Z,X+=n*ee,R+=n*W,m+=n*le,b+=n*re,E+=n*ge,n=t[13],O+=n*K,M+=n*U,L+=n*x,G+=n*j,J+=n*ie,V+=n*D,q+=n*Y,ce+=n*ne,me+=n*ae,fe+=n*he,X+=n*Z,R+=n*ee,m+=n*W,b+=n*le,E+=n*re,A+=n*ge,n=t[14],M+=n*K,L+=n*U,G+=n*x,J+=n*j,V+=n*ie,q+=n*D,ce+=n*Y,me+=n*ne,fe+=n*ae,X+=n*he,R+=n*Z,m+=n*ee,b+=n*W,E+=n*le,A+=n*re,k+=n*ge,n=t[15],L+=n*K,G+=n*U,J+=n*x,V+=n*j,q+=n*ie,ce+=n*D,me+=n*Y,fe+=n*ne,X+=n*ae,R+=n*he,m+=n*Z,b+=n*ee,E+=n*W,A+=n*le,k+=n*re,B+=n*ge,i+=38*G,s+=38*J,a+=38*V,l+=38*q,u+=38*ce,h+=38*me,p+=38*fe,y+=38*X,w+=38*R,v+=38*m,S+=38*b,I+=38*E,T+=38*A,O+=38*k,M+=38*B,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-o*65536,n=s+o+65535,o=Math.floor(n/65536),s=n-o*65536,n=a+o+65535,o=Math.floor(n/65536),a=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=w+o+65535,o=Math.floor(n/65536),w=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=S+o+65535,o=Math.floor(n/65536),S=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=O+o+65535,o=Math.floor(n/65536),O=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=L+o+65535,o=Math.floor(n/65536),L=n-o*65536,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-o*65536,n=s+o+65535,o=Math.floor(n/65536),s=n-o*65536,n=a+o+65535,o=Math.floor(n/65536),a=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=w+o+65535,o=Math.floor(n/65536),w=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=S+o+65535,o=Math.floor(n/65536),S=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=O+o+65535,o=Math.floor(n/65536),O=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=L+o+65535,o=Math.floor(n/65536),L=n-o*65536,i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=l,e[4]=u,e[5]=h,e[6]=p,e[7]=y,e[8]=w,e[9]=v,e[10]=S,e[11]=I,e[12]=T,e[13]=O,e[14]=M,e[15]=L}function el(e,t){It(e,t,t)}function y7(e,t){let r=je(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)el(r,r),n!==2&&n!==4&&It(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function KZ(e,t){let r=je(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)el(r,r),n!==1&&It(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function Dx(e,t){let r=je(),n=je(),o=je(),i=je(),s=je(),a=je(),l=je(),u=je(),h=je();tl(r,e[1],e[0]),tl(h,t[1],t[0]),It(r,r,h),Qa(n,e[0],e[1]),Qa(h,t[0],t[1]),It(n,n,h),It(o,e[3],t[3]),It(o,o,VZ),It(i,e[2],t[2]),Qa(i,i,i),tl(s,n,r),tl(a,i,o),Qa(l,i,o),Qa(u,n,r),It(e[0],s,a),It(e[1],u,l),It(e[2],l,a),It(e[3],s,u)}function d7(e,t,r){for(let n=0;n<4;n++)p7(e[n],t[n],r)}function Ax(e,t){let r=je(),n=je(),o=je();y7(o,t[2]),It(r,t[0],o),It(n,t[1],o),Jd(e,n),e[31]^=g7(r)<<7}function v7(e,t,r){Ys(e[0],Ox),Ys(e[1],Ec),Ys(e[2],Ec),Ys(e[3],Ox);for(let n=255;n>=0;--n){let o=r[n/8|0]>>(n&7)&1;d7(e,t,o),Dx(t,e),Dx(e,e),d7(e,t,o)}}function Mx(e,t){let r=[je(),je(),je(),je()];Ys(r[0],u7),Ys(r[1],c7),Ys(r[2],Ec),It(r[3],u7,c7),v7(e,r,t)}function w7(e){if(e.length!==Pt.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Pt.SEED_LENGTH} bytes`);let t=(0,Zd.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[je(),je(),je(),je()];Mx(n,t),Ax(r,n);let o=new Uint8Array(64);return o.set(e),o.set(r,32),{publicKey:r,secretKey:o}}Pt.generateKeyPairFromSeed=w7;function qZ(e){let t=(0,UZ.randomBytes)(32,e),r=w7(t);return(0,h7.wipe)(t),r}Pt.generateKeyPair=qZ;function GZ(e){if(e.length!==Pt.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Pt.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Pt.extractPublicKeyFromSecretKey=GZ;var Px=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 b7(e,t){let r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o<i;++o)t[o]+=r-16*t[n]*Px[o-(n-32)],r=Math.floor((t[o]+128)/256),t[o]-=r*256;t[o]+=r,t[n]=0}for(r=0,o=0;o<32;o++)t[o]+=r-(t[31]>>4)*Px[o],r=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=r*Px[o];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Ix(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;b7(e,t)}function WZ(e,t){let r=new Float64Array(64),n=[je(),je(),je(),je()],o=(0,Zd.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;let i=new Uint8Array(64);i.set(o.subarray(32),32);let s=new Zd.SHA512;s.update(i.subarray(32)),s.update(t);let a=s.digest();s.clean(),Ix(a),Mx(n,a),Ax(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let l=s.digest();Ix(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]*o[h];return b7(i.subarray(32),r),i}Pt.sign=WZ;function _7(e,t){let r=je(),n=je(),o=je(),i=je(),s=je(),a=je(),l=je();return Ys(e[2],Ec),HZ(e[1],t),el(o,e[1]),It(i,o,jZ),tl(o,o,e[2]),Qa(i,e[2],i),el(s,i),el(a,s),It(l,a,s),It(r,l,o),It(r,r,i),KZ(r,r),It(r,r,o),It(r,r,i),It(r,r,i),It(e[0],r,i),el(n,e[0]),It(n,n,i),f7(n,o)&&It(e[0],e[0],zZ),el(n,e[0]),It(n,n,i),f7(n,o)?-1:(g7(e[0])===t[31]>>7&&tl(e[0],Ox,e[0]),It(e[3],e[0],e[1]),0)}function YZ(e,t,r){let n=new Uint8Array(32),o=[je(),je(),je(),je()],i=[je(),je(),je(),je()];if(r.length!==Pt.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Pt.SIGNATURE_LENGTH} bytes`);if(_7(i,e))return!1;let s=new Zd.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Ix(a),v7(o,i,a),Mx(i,r.subarray(32)),Dx(o,i),Ax(n,o),!m7(r,n)}Pt.verify=YZ;function XZ(e){let t=[je(),je(),je(),je()];if(_7(t,e))throw new Error("Ed25519: invalid public key");let r=je(),n=je(),o=t[1];Qa(r,Ec,o),tl(n,Ec,o),y7(n,n),It(r,r,n);let i=new Uint8Array(32);return Jd(i,r),i}Pt.convertPublicKeyToX25519=XZ;function ZZ(e){let t=(0,Zd.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,h7.wipe)(t),r}Pt.convertSecretKeyToX25519=ZZ});var ik=_e(fy=>{"use strict";c();d();f();Object.defineProperty(fy,"__esModule",{value:!0});var en=bc(),n3=_o(),fQ=20;function dQ(e,t,r){for(var n=1634760805,o=857760878,i=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],p=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=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],S=t[3]<<24|t[2]<<16|t[1]<<8|t[0],I=t[7]<<24|t[6]<<16|t[5]<<8|t[4],T=t[11]<<24|t[10]<<16|t[9]<<8|t[8],O=t[15]<<24|t[14]<<16|t[13]<<8|t[12],M=n,L=o,G=i,J=s,V=a,q=l,ce=u,me=h,fe=p,X=y,R=w,m=v,b=S,E=I,A=T,k=O,B=0;B<fQ;B+=2)M=M+V|0,b^=M,b=b>>>32-16|b<<16,fe=fe+b|0,V^=fe,V=V>>>32-12|V<<12,L=L+q|0,E^=L,E=E>>>32-16|E<<16,X=X+E|0,q^=X,q=q>>>32-12|q<<12,G=G+ce|0,A^=G,A=A>>>32-16|A<<16,R=R+A|0,ce^=R,ce=ce>>>32-12|ce<<12,J=J+me|0,k^=J,k=k>>>32-16|k<<16,m=m+k|0,me^=m,me=me>>>32-12|me<<12,G=G+ce|0,A^=G,A=A>>>32-8|A<<8,R=R+A|0,ce^=R,ce=ce>>>32-7|ce<<7,J=J+me|0,k^=J,k=k>>>32-8|k<<8,m=m+k|0,me^=m,me=me>>>32-7|me<<7,L=L+q|0,E^=L,E=E>>>32-8|E<<8,X=X+E|0,q^=X,q=q>>>32-7|q<<7,M=M+V|0,b^=M,b=b>>>32-8|b<<8,fe=fe+b|0,V^=fe,V=V>>>32-7|V<<7,M=M+q|0,k^=M,k=k>>>32-16|k<<16,R=R+k|0,q^=R,q=q>>>32-12|q<<12,L=L+ce|0,b^=L,b=b>>>32-16|b<<16,m=m+b|0,ce^=m,ce=ce>>>32-12|ce<<12,G=G+me|0,E^=G,E=E>>>32-16|E<<16,fe=fe+E|0,me^=fe,me=me>>>32-12|me<<12,J=J+V|0,A^=J,A=A>>>32-16|A<<16,X=X+A|0,V^=X,V=V>>>32-12|V<<12,G=G+me|0,E^=G,E=E>>>32-8|E<<8,fe=fe+E|0,me^=fe,me=me>>>32-7|me<<7,J=J+V|0,A^=J,A=A>>>32-8|A<<8,X=X+A|0,V^=X,V=V>>>32-7|V<<7,L=L+ce|0,b^=L,b=b>>>32-8|b<<8,m=m+b|0,ce^=m,ce=ce>>>32-7|ce<<7,M=M+q|0,k^=M,k=k>>>32-8|k<<8,R=R+k|0,q^=R,q=q>>>32-7|q<<7;en.writeUint32LE(M+n|0,e,0),en.writeUint32LE(L+o|0,e,4),en.writeUint32LE(G+i|0,e,8),en.writeUint32LE(J+s|0,e,12),en.writeUint32LE(V+a|0,e,16),en.writeUint32LE(q+l|0,e,20),en.writeUint32LE(ce+u|0,e,24),en.writeUint32LE(me+h|0,e,28),en.writeUint32LE(fe+p|0,e,32),en.writeUint32LE(X+y|0,e,36),en.writeUint32LE(R+w|0,e,40),en.writeUint32LE(m+v|0,e,44),en.writeUint32LE(b+S|0,e,48),en.writeUint32LE(E+I|0,e,52),en.writeUint32LE(A+T|0,e,56),en.writeUint32LE(k+O|0,e,60)}function ok(e,t,r,n,o){if(o===void 0&&(o=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 i,s;if(o===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");i=new Uint8Array(16),s=i.length-t.length,i.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");i=t,s=o}for(var a=new Uint8Array(64),l=0;l<r.length;l+=64){dQ(a,i,e);for(var u=l;u<l+64&&u<r.length;u++)n[u]=r[u]^a[u-l];pQ(i,0,s)}return n3.wipe(a),o===0&&n3.wipe(i),n}fy.streamXOR=ok;function hQ(e,t,r,n){return n===void 0&&(n=0),n3.wipe(r),ok(e,t,r,r,n)}fy.stream=hQ;function pQ(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 dy=_e(Ac=>{"use strict";c();d();f();Object.defineProperty(Ac,"__esModule",{value:!0});function mQ(e,t,r){return~(e-1)&t|e-1&r}Ac.select=mQ;function gQ(e,t){return(e|0)-(t|0)-1>>>31&1}Ac.lessOrEqual=gQ;function sk(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}Ac.compare=sk;function yQ(e,t){return e.length===0||t.length===0?!1:sk(e,t)!==0}Ac.equal=yQ});var lk=_e(Vi=>{"use strict";c();d();f();Object.defineProperty(Vi,"__esModule",{value:!0});var vQ=dy(),hy=_o();Vi.DIGEST_LENGTH=16;var ak=function(){function e(t){this.digestLength=Vi.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 o=t[4]|t[5]<<8;this._r[2]=(n>>>10|o<<6)&7939;var i=t[6]|t[7]<<8;this._r[3]=(o>>>7|i<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(i>>>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 o=this._fin?0:2048,i=this._h[0],s=this._h[1],a=this._h[2],l=this._h[3],u=this._h[4],h=this._h[5],p=this._h[6],y=this._h[7],w=this._h[8],v=this._h[9],S=this._r[0],I=this._r[1],T=this._r[2],O=this._r[3],M=this._r[4],L=this._r[5],G=this._r[6],J=this._r[7],V=this._r[8],q=this._r[9];n>=16;){var ce=t[r+0]|t[r+1]<<8;i+=ce&8191;var me=t[r+2]|t[r+3]<<8;s+=(ce>>>13|me<<3)&8191;var fe=t[r+4]|t[r+5]<<8;a+=(me>>>10|fe<<6)&8191;var X=t[r+6]|t[r+7]<<8;l+=(fe>>>7|X<<9)&8191;var R=t[r+8]|t[r+9]<<8;u+=(X>>>4|R<<12)&8191,h+=R>>>1&8191;var m=t[r+10]|t[r+11]<<8;p+=(R>>>14|m<<2)&8191;var b=t[r+12]|t[r+13]<<8;y+=(m>>>11|b<<5)&8191;var E=t[r+14]|t[r+15]<<8;w+=(b>>>8|E<<8)&8191,v+=E>>>5|o;var A=0,k=A;k+=i*S,k+=s*(5*q),k+=a*(5*V),k+=l*(5*J),k+=u*(5*G),A=k>>>13,k&=8191,k+=h*(5*L),k+=p*(5*M),k+=y*(5*O),k+=w*(5*T),k+=v*(5*I),A+=k>>>13,k&=8191;var B=A;B+=i*I,B+=s*S,B+=a*(5*q),B+=l*(5*V),B+=u*(5*J),A=B>>>13,B&=8191,B+=h*(5*G),B+=p*(5*L),B+=y*(5*M),B+=w*(5*O),B+=v*(5*T),A+=B>>>13,B&=8191;var K=A;K+=i*T,K+=s*I,K+=a*S,K+=l*(5*q),K+=u*(5*V),A=K>>>13,K&=8191,K+=h*(5*J),K+=p*(5*G),K+=y*(5*L),K+=w*(5*M),K+=v*(5*O),A+=K>>>13,K&=8191;var U=A;U+=i*O,U+=s*T,U+=a*I,U+=l*S,U+=u*(5*q),A=U>>>13,U&=8191,U+=h*(5*V),U+=p*(5*J),U+=y*(5*G),U+=w*(5*L),U+=v*(5*M),A+=U>>>13,U&=8191;var x=A;x+=i*M,x+=s*O,x+=a*T,x+=l*I,x+=u*S,A=x>>>13,x&=8191,x+=h*(5*q),x+=p*(5*V),x+=y*(5*J),x+=w*(5*G),x+=v*(5*L),A+=x>>>13,x&=8191;var j=A;j+=i*L,j+=s*M,j+=a*O,j+=l*T,j+=u*I,A=j>>>13,j&=8191,j+=h*S,j+=p*(5*q),j+=y*(5*V),j+=w*(5*J),j+=v*(5*G),A+=j>>>13,j&=8191;var ie=A;ie+=i*G,ie+=s*L,ie+=a*M,ie+=l*O,ie+=u*T,A=ie>>>13,ie&=8191,ie+=h*I,ie+=p*S,ie+=y*(5*q),ie+=w*(5*V),ie+=v*(5*J),A+=ie>>>13,ie&=8191;var D=A;D+=i*J,D+=s*G,D+=a*L,D+=l*M,D+=u*O,A=D>>>13,D&=8191,D+=h*T,D+=p*I,D+=y*S,D+=w*(5*q),D+=v*(5*V),A+=D>>>13,D&=8191;var Y=A;Y+=i*V,Y+=s*J,Y+=a*G,Y+=l*L,Y+=u*M,A=Y>>>13,Y&=8191,Y+=h*O,Y+=p*T,Y+=y*I,Y+=w*S,Y+=v*(5*q),A+=Y>>>13,Y&=8191;var ne=A;ne+=i*q,ne+=s*V,ne+=a*J,ne+=l*G,ne+=u*L,A=ne>>>13,ne&=8191,ne+=h*M,ne+=p*O,ne+=y*T,ne+=w*I,ne+=v*S,A+=ne>>>13,ne&=8191,A=(A<<2)+A|0,A=A+k|0,k=A&8191,A=A>>>13,B+=A,i=k,s=B,a=K,l=U,u=x,h=j,p=ie,y=D,w=Y,v=ne,r+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=a,this._h[3]=l,this._h[4]=u,this._h[5]=h,this._h[6]=p,this._h[7]=y,this._h[8]=w,this._h[9]=v},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),o,i,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(o=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=o,o=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=o*5,o=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=o,o=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=o,n[0]=this._h[0]+5,o=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+o,o=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,i=(o^1)-1,a=0;a<10;a++)n[a]&=i;for(i=~i,a=0;a<10;a++)this._h[a]=this._h[a]&i|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,o;if(this._leftover){o=16-this._leftover,o>n&&(o=n);for(var i=0;i<o;i++)this._buffer[this._leftover+i]=t[r+i];if(n-=o,r+=o,this._leftover+=o,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(o=n-n%16,this._blocks(t,r,o),r+=o,n-=o),n){for(var i=0;i<n;i++)this._buffer[this._leftover+i]=t[r+i];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 hy.wipe(this._buffer),hy.wipe(this._r),hy.wipe(this._h),hy.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Vi.Poly1305=ak;function wQ(e,t){var r=new ak(e);r.update(t);var n=r.digest();return r.clean(),n}Vi.oneTimeAuth=wQ;function bQ(e,t){return e.length!==Vi.DIGEST_LENGTH||t.length!==Vi.DIGEST_LENGTH?!1:vQ.equal(e,t)}Vi.equal=bQ});var my=_e(zi=>{"use strict";c();d();f();Object.defineProperty(zi,"__esModule",{value:!0});var py=ik(),_Q=lk(),oh=_o(),uk=bc(),xQ=dy();zi.KEY_LENGTH=32;zi.NONCE_LENGTH=12;zi.TAG_LENGTH=16;var ck=new Uint8Array(16),EQ=function(){function e(t){if(this.nonceLength=zi.NONCE_LENGTH,this.tagLength=zi.TAG_LENGTH,t.length!==zi.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,o){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(t,i.length-t.length);var s=new Uint8Array(32);py.stream(this._key,i,s,4);var a=r.length+this.tagLength,l;if(o){if(o.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");l=o}else l=new Uint8Array(a);return py.streamXOR(this._key,i,r,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),oh.wipe(i),l},e.prototype.open=function(t,r,n,o){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var i=new Uint8Array(16);i.set(t,i.length-t.length);var s=new Uint8Array(32);py.stream(this._key,i,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!xQ.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var l=r.length-this.tagLength,u;if(o){if(o.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");u=o}else u=new Uint8Array(l);return py.streamXOR(this._key,i,r.subarray(0,r.length-this.tagLength),u,4),oh.wipe(i),u},e.prototype.clean=function(){return oh.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,o){var i=new _Q.Poly1305(r);o&&(i.update(o),o.length%16>0&&i.update(ck.subarray(o.length%16))),i.update(n),n.length%16>0&&i.update(ck.subarray(n.length%16));var s=new Uint8Array(8);o&&uk.writeUint64LE(o.length,s),i.update(s),uk.writeUint64LE(n.length,s),i.update(s);for(var a=i.digest(),l=0;l<a.length;l++)t[l]=a[l];i.clean(),oh.wipe(a),oh.wipe(s)},e}();zi.ChaCha20Poly1305=EQ});var fk=_e(o3=>{"use strict";c();d();f();Object.defineProperty(o3,"__esModule",{value:!0});function SQ(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}o3.isSerializableHash=SQ});var hk=_e(ih=>{"use strict";c();d();f();Object.defineProperty(ih,"__esModule",{value:!0});var ui=fk(),CQ=dy(),TQ=_o(),dk=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 o=0;o<n.length;o++)n[o]^=54;this._inner.update(n);for(var o=0;o<n.length;o++)n[o]^=106;this._outer.update(n),ui.isSerializableHash(this._inner)&&ui.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),TQ.wipe(n)}return e.prototype.reset=function(){if(!ui.isSerializableHash(this._inner)||!ui.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(){ui.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),ui.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(!ui.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(!ui.isSerializableHash(this._inner)||!ui.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(!ui.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();ih.HMAC=dk;function PQ(e,t,r){var n=new dk(e,t);n.update(r);var o=n.digest();return n.clean(),o}ih.hmac=PQ;ih.equal=CQ.equal});var gy=_e(i3=>{"use strict";c();d();f();Object.defineProperty(i3,"__esModule",{value:!0});var pk=hk(),mk=_o(),OQ=function(){function e(t,r,n,o){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=o;var i=pk.hmac(this._hash,n,r);this._hmac=new pk.HMAC(t,i),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(),mk.wipe(this._buffer),mk.wipe(this._counter),this._bufpos=0},e}();i3.HKDF=OQ});var wy=_e(Zs=>{"use strict";c();d();f();Object.defineProperty(Zs,"__esModule",{value:!0});var vy=bc(),yy=_o();Zs.DIGEST_LENGTH=32;Zs.BLOCK_SIZE=64;var gk=function(){function e(){this.digestLength=Zs.DIGEST_LENGTH,this.blockSize=Zs.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(){yy.wipe(this._buffer),yy.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&&(s3(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=s3(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,o=r/536870912|0,i=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;vy.writeUint32BE(o,this._buffer,s-8),vy.writeUint32BE(i,this._buffer,s-4),s3(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)vy.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){yy.wipe(t.state),t.buffer&&yy.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Zs.SHA256=gk;var DQ=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 s3(e,t,r,n,o){for(;o>=64;){for(var i=t[0],s=t[1],a=t[2],l=t[3],u=t[4],h=t[5],p=t[6],y=t[7],w=0;w<16;w++){var v=n+w*4;e[w]=vy.readUint32BE(r,v)}for(var w=16;w<64;w++){var S=e[w-2],I=(S>>>17|S<<32-17)^(S>>>19|S<<32-19)^S>>>10;S=e[w-15];var T=(S>>>7|S<<32-7)^(S>>>18|S<<32-18)^S>>>3;e[w]=(I+e[w-7]|0)+(T+e[w-16]|0)}for(var w=0;w<64;w++){var I=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&h^~u&p)|0)+(y+(DQ[w]+e[w]|0)|0)|0,T=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&a^s&a)|0;y=p,p=h,h=u,u=l+I|0,l=a,a=s,s=i,i=I+T|0}t[0]+=i,t[1]+=s,t[2]+=a,t[3]+=l,t[4]+=u,t[5]+=h,t[6]+=p,t[7]+=y,n+=64,o-=64}return n}function IQ(e){var t=new gk;t.update(e);var r=t.digest();return t.clean(),r}Zs.hash=IQ});var xy=_e(ir=>{"use strict";c();d();f();Object.defineProperty(ir,"__esModule",{value:!0});ir.sharedKey=ir.generateKeyPair=ir.generateKeyPairFromSeed=ir.scalarMultBase=ir.scalarMult=ir.SHARED_KEY_LENGTH=ir.SECRET_KEY_LENGTH=ir.PUBLIC_KEY_LENGTH=void 0;var AQ=Ja(),MQ=_o();ir.PUBLIC_KEY_LENGTH=32;ir.SECRET_KEY_LENGTH=32;ir.SHARED_KEY_LENGTH=32;function ci(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var yk=new Uint8Array(32);yk[0]=9;var RQ=ci([56129,1]);function a3(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 sh(e,t,r){let n=~(r-1);for(let o=0;o<16;o++){let i=n&(e[o]^t[o]);e[o]^=i,t[o]^=i}}function NQ(e,t){let r=ci(),n=ci();for(let o=0;o<16;o++)n[o]=t[o];a3(n),a3(n),a3(n);for(let o=0;o<2;o++){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 i=r[15]>>16&1;r[14]&=65535,sh(n,r,1-i)}for(let o=0;o<16;o++)e[2*o]=n[o]&255,e[2*o+1]=n[o]>>8}function kQ(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function by(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function _y(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Hi(e,t,r){let n,o,i=0,s=0,a=0,l=0,u=0,h=0,p=0,y=0,w=0,v=0,S=0,I=0,T=0,O=0,M=0,L=0,G=0,J=0,V=0,q=0,ce=0,me=0,fe=0,X=0,R=0,m=0,b=0,E=0,A=0,k=0,B=0,K=r[0],U=r[1],x=r[2],j=r[3],ie=r[4],D=r[5],Y=r[6],ne=r[7],ae=r[8],he=r[9],Z=r[10],ee=r[11],W=r[12],le=r[13],re=r[14],ge=r[15];n=t[0],i+=n*K,s+=n*U,a+=n*x,l+=n*j,u+=n*ie,h+=n*D,p+=n*Y,y+=n*ne,w+=n*ae,v+=n*he,S+=n*Z,I+=n*ee,T+=n*W,O+=n*le,M+=n*re,L+=n*ge,n=t[1],s+=n*K,a+=n*U,l+=n*x,u+=n*j,h+=n*ie,p+=n*D,y+=n*Y,w+=n*ne,v+=n*ae,S+=n*he,I+=n*Z,T+=n*ee,O+=n*W,M+=n*le,L+=n*re,G+=n*ge,n=t[2],a+=n*K,l+=n*U,u+=n*x,h+=n*j,p+=n*ie,y+=n*D,w+=n*Y,v+=n*ne,S+=n*ae,I+=n*he,T+=n*Z,O+=n*ee,M+=n*W,L+=n*le,G+=n*re,J+=n*ge,n=t[3],l+=n*K,u+=n*U,h+=n*x,p+=n*j,y+=n*ie,w+=n*D,v+=n*Y,S+=n*ne,I+=n*ae,T+=n*he,O+=n*Z,M+=n*ee,L+=n*W,G+=n*le,J+=n*re,V+=n*ge,n=t[4],u+=n*K,h+=n*U,p+=n*x,y+=n*j,w+=n*ie,v+=n*D,S+=n*Y,I+=n*ne,T+=n*ae,O+=n*he,M+=n*Z,L+=n*ee,G+=n*W,J+=n*le,V+=n*re,q+=n*ge,n=t[5],h+=n*K,p+=n*U,y+=n*x,w+=n*j,v+=n*ie,S+=n*D,I+=n*Y,T+=n*ne,O+=n*ae,M+=n*he,L+=n*Z,G+=n*ee,J+=n*W,V+=n*le,q+=n*re,ce+=n*ge,n=t[6],p+=n*K,y+=n*U,w+=n*x,v+=n*j,S+=n*ie,I+=n*D,T+=n*Y,O+=n*ne,M+=n*ae,L+=n*he,G+=n*Z,J+=n*ee,V+=n*W,q+=n*le,ce+=n*re,me+=n*ge,n=t[7],y+=n*K,w+=n*U,v+=n*x,S+=n*j,I+=n*ie,T+=n*D,O+=n*Y,M+=n*ne,L+=n*ae,G+=n*he,J+=n*Z,V+=n*ee,q+=n*W,ce+=n*le,me+=n*re,fe+=n*ge,n=t[8],w+=n*K,v+=n*U,S+=n*x,I+=n*j,T+=n*ie,O+=n*D,M+=n*Y,L+=n*ne,G+=n*ae,J+=n*he,V+=n*Z,q+=n*ee,ce+=n*W,me+=n*le,fe+=n*re,X+=n*ge,n=t[9],v+=n*K,S+=n*U,I+=n*x,T+=n*j,O+=n*ie,M+=n*D,L+=n*Y,G+=n*ne,J+=n*ae,V+=n*he,q+=n*Z,ce+=n*ee,me+=n*W,fe+=n*le,X+=n*re,R+=n*ge,n=t[10],S+=n*K,I+=n*U,T+=n*x,O+=n*j,M+=n*ie,L+=n*D,G+=n*Y,J+=n*ne,V+=n*ae,q+=n*he,ce+=n*Z,me+=n*ee,fe+=n*W,X+=n*le,R+=n*re,m+=n*ge,n=t[11],I+=n*K,T+=n*U,O+=n*x,M+=n*j,L+=n*ie,G+=n*D,J+=n*Y,V+=n*ne,q+=n*ae,ce+=n*he,me+=n*Z,fe+=n*ee,X+=n*W,R+=n*le,m+=n*re,b+=n*ge,n=t[12],T+=n*K,O+=n*U,M+=n*x,L+=n*j,G+=n*ie,J+=n*D,V+=n*Y,q+=n*ne,ce+=n*ae,me+=n*he,fe+=n*Z,X+=n*ee,R+=n*W,m+=n*le,b+=n*re,E+=n*ge,n=t[13],O+=n*K,M+=n*U,L+=n*x,G+=n*j,J+=n*ie,V+=n*D,q+=n*Y,ce+=n*ne,me+=n*ae,fe+=n*he,X+=n*Z,R+=n*ee,m+=n*W,b+=n*le,E+=n*re,A+=n*ge,n=t[14],M+=n*K,L+=n*U,G+=n*x,J+=n*j,V+=n*ie,q+=n*D,ce+=n*Y,me+=n*ne,fe+=n*ae,X+=n*he,R+=n*Z,m+=n*ee,b+=n*W,E+=n*le,A+=n*re,k+=n*ge,n=t[15],L+=n*K,G+=n*U,J+=n*x,V+=n*j,q+=n*ie,ce+=n*D,me+=n*Y,fe+=n*ne,X+=n*ae,R+=n*he,m+=n*Z,b+=n*ee,E+=n*W,A+=n*le,k+=n*re,B+=n*ge,i+=38*G,s+=38*J,a+=38*V,l+=38*q,u+=38*ce,h+=38*me,p+=38*fe,y+=38*X,w+=38*R,v+=38*m,S+=38*b,I+=38*E,T+=38*A,O+=38*k,M+=38*B,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-o*65536,n=s+o+65535,o=Math.floor(n/65536),s=n-o*65536,n=a+o+65535,o=Math.floor(n/65536),a=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=w+o+65535,o=Math.floor(n/65536),w=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=S+o+65535,o=Math.floor(n/65536),S=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=O+o+65535,o=Math.floor(n/65536),O=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=L+o+65535,o=Math.floor(n/65536),L=n-o*65536,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-o*65536,n=s+o+65535,o=Math.floor(n/65536),s=n-o*65536,n=a+o+65535,o=Math.floor(n/65536),a=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=w+o+65535,o=Math.floor(n/65536),w=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=S+o+65535,o=Math.floor(n/65536),S=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=O+o+65535,o=Math.floor(n/65536),O=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=L+o+65535,o=Math.floor(n/65536),L=n-o*65536,i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=l,e[4]=u,e[5]=h,e[6]=p,e[7]=y,e[8]=w,e[9]=v,e[10]=S,e[11]=I,e[12]=T,e[13]=O,e[14]=M,e[15]=L}function ah(e,t){Hi(e,t,t)}function LQ(e,t){let r=ci();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)ah(r,r),n!==2&&n!==4&&Hi(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function l3(e,t){let r=new Uint8Array(32),n=new Float64Array(80),o=ci(),i=ci(),s=ci(),a=ci(),l=ci(),u=ci();for(let w=0;w<31;w++)r[w]=e[w];r[31]=e[31]&127|64,r[0]&=248,kQ(n,t);for(let w=0;w<16;w++)i[w]=n[w];o[0]=a[0]=1;for(let w=254;w>=0;--w){let v=r[w>>>3]>>>(w&7)&1;sh(o,i,v),sh(s,a,v),by(l,o,s),_y(o,o,s),by(s,i,a),_y(i,i,a),ah(a,l),ah(u,o),Hi(o,s,o),Hi(s,i,l),by(l,o,s),_y(o,o,s),ah(i,o),_y(s,a,u),Hi(o,s,RQ),by(o,o,a),Hi(s,s,o),Hi(o,a,u),Hi(a,i,n),ah(i,l),sh(o,i,v),sh(s,a,v)}for(let w=0;w<16;w++)n[w+16]=o[w],n[w+32]=s[w],n[w+48]=i[w],n[w+64]=a[w];let h=n.subarray(32),p=n.subarray(16);LQ(h,h),Hi(p,p,h);let y=new Uint8Array(32);return NQ(y,p),y}ir.scalarMult=l3;function vk(e){return l3(e,yk)}ir.scalarMultBase=vk;function wk(e){if(e.length!==ir.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ir.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:vk(t),secretKey:t}}ir.generateKeyPairFromSeed=wk;function FQ(e){let t=(0,AQ.randomBytes)(32,e),r=wk(t);return(0,MQ.wipe)(t),r}ir.generateKeyPair=FQ;function $Q(e,t,r=!1){if(e.length!==ir.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==ir.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=l3(e,t);if(r){let o=0;for(let i=0;i<n.length;i++)o|=n[i];if(o===0)throw new Error("X25519: invalid shared key")}return n}ir.sharedKey=$Q});var ol=_e($t=>{"use strict";c();d();f();Object.defineProperty($t,"__esModule",{value:!0});$t.getLocalStorage=$t.getLocalStorageOrThrow=$t.getCrypto=$t.getCryptoOrThrow=$t.getLocation=$t.getLocationOrThrow=$t.getNavigator=$t.getNavigatorOrThrow=$t.getDocument=$t.getDocumentOrThrow=$t.getFromWindowOrThrow=$t.getFromWindow=void 0;function nl(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}$t.getFromWindow=nl;function Rc(e){let t=nl(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}$t.getFromWindowOrThrow=Rc;function JQ(){return Rc("document")}$t.getDocumentOrThrow=JQ;function QQ(){return nl("document")}$t.getDocument=QQ;function eee(){return Rc("navigator")}$t.getNavigatorOrThrow=eee;function tee(){return nl("navigator")}$t.getNavigator=tee;function ree(){return Rc("location")}$t.getLocationOrThrow=ree;function nee(){return nl("location")}$t.getLocation=nee;function oee(){return Rc("crypto")}$t.getCryptoOrThrow=oee;function iee(){return nl("crypto")}$t.getCrypto=iee;function see(){return Rc("localStorage")}$t.getLocalStorageOrThrow=see;function aee(){return nl("localStorage")}$t.getLocalStorage=aee});var Ok=_e(Sy=>{"use strict";c();d();f();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.getWindowMetadata=void 0;var Pk=ol();function lee(){let e,t;try{e=Pk.getDocumentOrThrow(),t=Pk.getLocationOrThrow()}catch(p){return null}function r(){let p=e.getElementsByTagName("link"),y=[];for(let w=0;w<p.length;w++){let v=p[w],S=v.getAttribute("rel");if(S&&S.toLowerCase().indexOf("icon")>-1){let I=v.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let T=t.protocol+"//"+t.host;if(I.indexOf("/")===0)T+=I;else{let O=t.pathname.split("/");O.pop(),T+=O.join("/")+"/"+I}y.push(T)}else if(I.indexOf("//")===0){let T=t.protocol+I;y.push(T)}else y.push(I)}}return y}function n(...p){let y=e.getElementsByTagName("meta");for(let w=0;w<y.length;w++){let v=y[w],S=["itemprop","property","name"].map(I=>v.getAttribute(I)).filter(I=>I?p.includes(I):!1);if(S.length&&S){let I=v.getAttribute("content");if(I)return I}}return""}function o(){let p=n("name","og:site_name","og:title","twitter:title");return p||(p=e.title),p}function i(){return n("description","og:description","twitter:description","keywords")}let s=o(),a=i(),l=t.origin,u=r();return{description:a,url:l,icons:u,name:s}}Sy.getWindowMetadata=lee});var Cy=_e((j3e,Dk)=>{"use strict";c();d();f();Dk.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Ty=_e((V3e,Rk)=>{"use strict";c();d();f();var Mk="%[a-f0-9]{2}",Ik=new RegExp("("+Mk+")|([^%]+?)","gi"),Ak=new RegExp("("+Mk+")+","gi");function c3(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],c3(r),c3(n))}function uee(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(Ik)||[],r=1;r<t.length;r++)e=c3(t,r).join(""),t=e.match(Ik)||[];return e}}function cee(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=Ak.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=uee(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Ak.exec(e)}t["%C2"]="\uFFFD";for(var o=Object.keys(t),i=0;i<o.length;i++){var s=o[i];e=e.replace(new RegExp(s,"g"),t[s])}return e}Rk.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 cee(e)}}});var Py=_e((z3e,Nk)=>{"use strict";c();d();f();Nk.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 Oy=_e((H3e,kk)=>{"use strict";c();d();f();kk.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i<n.length;i++){var s=n[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var zk=_e(Mn=>{"use strict";c();d();f();var fee=Cy(),dee=Ty(),Fk=Py(),hee=Oy(),pee=e=>e==null,f3=Symbol("encodeFragmentIdentifier");function mee(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[lr(t,e),"[",o,"]"].join("")]:[...r,[lr(t,e),"[",lr(o,e),"]=",lr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[lr(t,e),"[]"].join("")]:[...r,[lr(t,e),"[]=",lr(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,[lr(t,e),":list="].join("")]:[...r,[lr(t,e),":list=",lr(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,o)=>o===void 0||e.skipNull&&o===null||e.skipEmptyString&&o===""?n:(o=o===null?"":o,n.length===0?[[lr(r,e),t,lr(o,e)].join("")]:[[n,lr(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,lr(t,e)]:[...r,[lr(t,e),"=",lr(n,e)].join("")]}}function gee(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"colon-list-separator":return(r,n,o)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let i=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!i&&Ki(n,e).includes(e.arrayFormatSeparator);n=s?Ki(n,e):n;let a=i||s?n.split(e.arrayFormatSeparator).map(l=>Ki(l,e)):n===null?n:Ki(n,e);o[r]=a};case"bracket-separator":return(r,n,o)=>{let i=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!i){o[r]=n&&Ki(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Ki(a,e));if(o[r]===void 0){o[r]=s;return}o[r]=[].concat(o[r],s)};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function $k(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function lr(e,t){return t.encode?t.strict?fee(e):encodeURIComponent(e):e}function Ki(e,t){return t.decode?dee(e):e}function Uk(e){return Array.isArray(e)?e.sort():typeof e=="object"?Uk(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function Bk(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function yee(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function jk(e){e=Bk(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Lk(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 Vk(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),$k(t.arrayFormatSeparator);let r=gee(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){if(o==="")continue;let[i,s]=Fk(t.decode?o.replace(/\+/g," "):o,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Ki(s,t),r(Ki(i,t),s,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=Lk(i[s],t);else n[o]=Lk(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?o[i]=Uk(s):o[i]=s,o},Object.create(null))}Mn.extract=jk;Mn.parse=Vk;Mn.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),$k(t.arrayFormatSeparator);let r=s=>t.skipNull&&pee(e[s])||t.skipEmptyString&&e[s]==="",n=mee(t),o={};for(let s of Object.keys(e))r(s)||(o[s]=e[s]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(s=>{let a=e[s];return a===void 0?"":a===null?lr(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?lr(s,t)+"[]":a.reduce(n(s),[]).join("&"):lr(s,t)+"="+lr(a,t)}).filter(s=>s.length>0).join("&")};Mn.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Fk(e,"#");return Object.assign({url:r.split("?")[0]||"",query:Vk(jk(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Ki(n,t)}:{})};Mn.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[f3]:!0},t);let r=Bk(e.url).split("?")[0]||"",n=Mn.extract(e.url),o=Mn.parse(n,{sort:!1}),i=Object.assign(o,e.query),s=Mn.stringify(i,t);s&&(s=`?${s}`);let a=yee(e.url);return e.fragmentIdentifier&&(a=`#${t[f3]?lr(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Mn.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[f3]:!1},r);let{url:n,query:o,fragmentIdentifier:i}=Mn.parseUrl(e,r);return Mn.stringifyUrl({url:n,query:hee(o,t),fragmentIdentifier:i},r)};Mn.exclude=(e,t,r)=>{let n=Array.isArray(t)?o=>!t.includes(o):(o,i)=>!t(o,i);return Mn.pick(e,n,r)}});var V9=_e((xEe,Hy)=>{c();d();f();var x9,E9,S9,C9,T9,P9,O9,D9,I9,zy,P3,A9,M9,Fc,R9,N9,k9,L9,F9,$9,U9,B9,j9;(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 Hy=="object"&&typeof Hy.exports=="object"?e(r(t,r(Hy.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=o?o(i,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};x9=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},E9=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},S9=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(r);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(r,i[s])&&(o[i[s]]=r[i[s]]);return o},C9=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var u=r.length-1;u>=0;u--)(l=r[u])&&(a=(s<3?l(a):s>3?l(n,o,a):l(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},T9=function(r,n){return function(o,i){n(o,i,r)}},P9=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},O9=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(l){l(a)})}return new(o||(o=Promise))(function(a,l){function u(y){try{p(i.next(y))}catch(w){l(w)}}function h(y){try{p(i.throw(y))}catch(w){l(w)}}function p(y){y.done?a(y.value):s(y.value).then(u,h)}p((i=i.apply(r,n||[])).next())})},D9=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(y){return h([p,y])}}function h(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=p[0]&2?s.return:p[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,p[1])).done)return a;switch(s=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,s=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(r,o)}catch(y){p=[6,y],s=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},j9=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},I9=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},zy=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},P3=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],l;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(u){l={error:u}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return a},A9=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(P3(arguments[n]));return r},M9=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),s=0,n=0;n<o;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,s++)i[s]=a[l];return i},Fc=function(r){return this instanceof Fc?(this.v=r,this):new Fc(r)},R9=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),s,a=[];return s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s;function l(v){i[v]&&(s[v]=function(S){return new Promise(function(I,T){a.push([v,S,I,T])>1||u(v,S)})})}function u(v,S){try{h(i[v](S))}catch(I){w(a[0][3],I)}}function h(v){v.value instanceof Fc?Promise.resolve(v.value.v).then(p,y):w(a[0][2],v)}function p(v){u("next",v)}function y(v){u("throw",v)}function w(v,S){v(S),a.shift(),a.length&&u(a[0][0],a[0][1])}},N9=function(r){var n,o;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,a){n[s]=r[s]?function(l){return(o=!o)?{value:Fc(r[s](l)),done:s==="return"}:a?a(l):l}:a}},k9=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof zy=="function"?zy(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(a){o[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(p){a({value:p,done:u})},l)}},L9=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},F9=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},$9=function(r){return r&&r.__esModule?r:{default:r}},U9=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},B9=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",x9),e("__assign",E9),e("__rest",S9),e("__decorate",C9),e("__param",T9),e("__metadata",P9),e("__awaiter",O9),e("__generator",D9),e("__exportStar",I9),e("__createBinding",j9),e("__values",zy),e("__read",P3),e("__spread",A9),e("__spreadArrays",M9),e("__await",Fc),e("__asyncGenerator",R9),e("__asyncDelegator",N9),e("__asyncValues",k9),e("__makeTemplateObject",L9),e("__importStar",F9),e("__importDefault",$9),e("__classPrivateFieldGet",U9),e("__classPrivateFieldSet",B9)})});var H9=_e(ea=>{"use strict";c();d();f();Object.defineProperty(ea,"__esModule",{value:!0});ea.isBrowserCryptoAvailable=ea.getSubtleCrypto=ea.getBrowerCrypto=void 0;function O3(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}ea.getBrowerCrypto=O3;function z9(){let e=O3();return e.subtle||e.webkitSubtle}ea.getSubtleCrypto=z9;function Kee(){return!!O3()&&!!z9()}ea.isBrowserCryptoAvailable=Kee});var G9=_e(ta=>{"use strict";c();d();f();Object.defineProperty(ta,"__esModule",{value:!0});ta.isBrowser=ta.isNode=ta.isReactNative=void 0;function K9(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ta.isReactNative=K9;function q9(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ta.isNode=q9;function qee(){return!K9()&&!q9()}ta.isBrowser=qee});var D3=_e(Ky=>{"use strict";c();d();f();Object.defineProperty(Ky,"__esModule",{value:!0});var W9=V9();W9.__exportStar(H9(),Ky);W9.__exportStar(G9(),Ky)});var rL=_e((nSe,tL)=>{"use strict";c();d();f();tL.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var jL=_e((gh,Vc)=>{c();d();f();var ote=200,H3="__lodash_hash_undefined__",ov=1,vL=2,wL=9007199254740991,Zy="[object Arguments]",F3="[object Array]",ite="[object AsyncFunction]",bL="[object Boolean]",_L="[object Date]",xL="[object Error]",EL="[object Function]",ste="[object GeneratorFunction]",Jy="[object Map]",SL="[object Number]",ate="[object Null]",jc="[object Object]",aL="[object Promise]",lte="[object Proxy]",CL="[object RegExp]",Qy="[object Set]",TL="[object String]",ute="[object Symbol]",cte="[object Undefined]",$3="[object WeakMap]",PL="[object ArrayBuffer]",ev="[object DataView]",fte="[object Float32Array]",dte="[object Float64Array]",hte="[object Int8Array]",pte="[object Int16Array]",mte="[object Int32Array]",gte="[object Uint8Array]",yte="[object Uint8ClampedArray]",vte="[object Uint16Array]",wte="[object Uint32Array]",bte=/[\\^$.*+?()[\]{}|]/g,_te=/^\[object .+?Constructor\]$/,xte=/^(?:0|[1-9]\d*)$/,Ht={};Ht[fte]=Ht[dte]=Ht[hte]=Ht[pte]=Ht[mte]=Ht[gte]=Ht[yte]=Ht[vte]=Ht[wte]=!0;Ht[Zy]=Ht[F3]=Ht[PL]=Ht[bL]=Ht[ev]=Ht[_L]=Ht[xL]=Ht[EL]=Ht[Jy]=Ht[SL]=Ht[jc]=Ht[CL]=Ht[Qy]=Ht[TL]=Ht[$3]=!1;var OL=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Ete=typeof self=="object"&&self&&self.Object===Object&&self,qi=OL||Ete||Function("return this")(),DL=typeof gh=="object"&&gh&&!gh.nodeType&&gh,lL=DL&&typeof Vc=="object"&&Vc&&!Vc.nodeType&&Vc,IL=lL&&lL.exports===DL,N3=IL&&OL.process,uL=function(){try{return N3&&N3.binding&&N3.binding("util")}catch(e){}}(),cL=uL&&uL.isTypedArray;function Ste(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function Cte(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Tte(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 Pte(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ote(e){return function(t){return e(t)}}function Dte(e,t){return e.has(t)}function Ite(e,t){return e==null?void 0:e[t]}function Ate(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Mte(e,t){return function(r){return e(t(r))}}function Rte(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Nte=Array.prototype,kte=Function.prototype,iv=Object.prototype,k3=qi["__core-js_shared__"],AL=kte.toString,fi=iv.hasOwnProperty,fL=function(){var e=/[^.]+$/.exec(k3&&k3.keys&&k3.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ML=iv.toString,Lte=RegExp("^"+AL.call(fi).replace(bte,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dL=IL?qi.Buffer:void 0,tv=qi.Symbol,hL=qi.Uint8Array,RL=iv.propertyIsEnumerable,Fte=Nte.splice,ul=tv?tv.toStringTag:void 0,pL=Object.getOwnPropertySymbols,$te=dL?dL.isBuffer:void 0,Ute=Mte(Object.keys,Object),U3=zc(qi,"DataView"),yh=zc(qi,"Map"),B3=zc(qi,"Promise"),j3=zc(qi,"Set"),V3=zc(qi,"WeakMap"),vh=zc(Object,"create"),Bte=dl(U3),jte=dl(yh),Vte=dl(B3),zte=dl(j3),Hte=dl(V3),mL=tv?tv.prototype:void 0,L3=mL?mL.valueOf:void 0;function cl(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 Kte(){this.__data__=vh?vh(null):{},this.size=0}function qte(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gte(e){var t=this.__data__;if(vh){var r=t[e];return r===H3?void 0:r}return fi.call(t,e)?t[e]:void 0}function Wte(e){var t=this.__data__;return vh?t[e]!==void 0:fi.call(t,e)}function Yte(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vh&&t===void 0?H3:t,this}cl.prototype.clear=Kte;cl.prototype.delete=qte;cl.prototype.get=Gte;cl.prototype.has=Wte;cl.prototype.set=Yte;function Gi(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 Xte(){this.__data__=[],this.size=0}function Zte(e){var t=this.__data__,r=sv(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Fte.call(t,r,1),--this.size,!0}function Jte(e){var t=this.__data__,r=sv(t,e);return r<0?void 0:t[r][1]}function Qte(e){return sv(this.__data__,e)>-1}function ere(e,t){var r=this.__data__,n=sv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Gi.prototype.clear=Xte;Gi.prototype.delete=Zte;Gi.prototype.get=Jte;Gi.prototype.has=Qte;Gi.prototype.set=ere;function fl(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 tre(){this.size=0,this.__data__={hash:new cl,map:new(yh||Gi),string:new cl}}function rre(e){var t=av(this,e).delete(e);return this.size-=t?1:0,t}function nre(e){return av(this,e).get(e)}function ore(e){return av(this,e).has(e)}function ire(e,t){var r=av(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}fl.prototype.clear=tre;fl.prototype.delete=rre;fl.prototype.get=nre;fl.prototype.has=ore;fl.prototype.set=ire;function rv(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new fl;++t<r;)this.add(e[t])}function sre(e){return this.__data__.set(e,H3),this}function are(e){return this.__data__.has(e)}rv.prototype.add=rv.prototype.push=sre;rv.prototype.has=are;function oa(e){var t=this.__data__=new Gi(e);this.size=t.size}function lre(){this.__data__=new Gi,this.size=0}function ure(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function cre(e){return this.__data__.get(e)}function fre(e){return this.__data__.has(e)}function dre(e,t){var r=this.__data__;if(r instanceof Gi){var n=r.__data__;if(!yh||n.length<ote-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fl(n)}return r.set(e,t),this.size=r.size,this}oa.prototype.clear=lre;oa.prototype.delete=ure;oa.prototype.get=cre;oa.prototype.has=fre;oa.prototype.set=dre;function hre(e,t){var r=nv(e),n=!r&&Ore(e),o=!r&&!n&&z3(e),i=!r&&!n&&!o&&BL(e),s=r||n||o||i,a=s?Pte(e.length,String):[],l=a.length;for(var u in e)(t||fi.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ere(u,l)))&&a.push(u);return a}function sv(e,t){for(var r=e.length;r--;)if(LL(e[r][0],t))return r;return-1}function pre(e,t,r){var n=t(e);return nv(e)?n:Cte(n,r(e))}function bh(e){return e==null?e===void 0?cte:ate:ul&&ul in Object(e)?_re(e):Pre(e)}function gL(e){return wh(e)&&bh(e)==Zy}function NL(e,t,r,n,o){return e===t?!0:e==null||t==null||!wh(e)&&!wh(t)?e!==e&&t!==t:mre(e,t,r,n,NL,o)}function mre(e,t,r,n,o,i){var s=nv(e),a=nv(t),l=s?F3:na(e),u=a?F3:na(t);l=l==Zy?jc:l,u=u==Zy?jc:u;var h=l==jc,p=u==jc,y=l==u;if(y&&z3(e)){if(!z3(t))return!1;s=!0,h=!1}if(y&&!h)return i||(i=new oa),s||BL(e)?kL(e,t,r,n,o,i):wre(e,t,l,r,n,o,i);if(!(r&ov)){var w=h&&fi.call(e,"__wrapped__"),v=p&&fi.call(t,"__wrapped__");if(w||v){var S=w?e.value():e,I=v?t.value():t;return i||(i=new oa),o(S,I,r,n,i)}}return y?(i||(i=new oa),bre(e,t,r,n,o,i)):!1}function gre(e){if(!UL(e)||Cre(e))return!1;var t=FL(e)?Lte:_te;return t.test(dl(e))}function yre(e){return wh(e)&&$L(e.length)&&!!Ht[bh(e)]}function vre(e){if(!Tre(e))return Ute(e);var t=[];for(var r in Object(e))fi.call(e,r)&&r!="constructor"&&t.push(r);return t}function kL(e,t,r,n,o,i){var s=r&ov,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var h=-1,p=!0,y=r&vL?new rv:void 0;for(i.set(e,t),i.set(t,e);++h<a;){var w=e[h],v=t[h];if(n)var S=s?n(v,w,h,t,e,i):n(w,v,h,e,t,i);if(S!==void 0){if(S)continue;p=!1;break}if(y){if(!Tte(t,function(I,T){if(!Dte(y,T)&&(w===I||o(w,I,r,n,i)))return y.push(T)})){p=!1;break}}else if(!(w===v||o(w,v,r,n,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function wre(e,t,r,n,o,i,s){switch(r){case ev:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case PL:return!(e.byteLength!=t.byteLength||!i(new hL(e),new hL(t)));case bL:case _L:case SL:return LL(+e,+t);case xL:return e.name==t.name&&e.message==t.message;case CL:case TL:return e==t+"";case Jy:var a=Ate;case Qy:var l=n&ov;if(a||(a=Rte),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=vL,s.set(e,t);var h=kL(a(e),a(t),n,o,i,s);return s.delete(e),h;case ute:if(L3)return L3.call(e)==L3.call(t)}return!1}function bre(e,t,r,n,o,i){var s=r&ov,a=yL(e),l=a.length,u=yL(t),h=u.length;if(l!=h&&!s)return!1;for(var p=l;p--;){var y=a[p];if(!(s?y in t:fi.call(t,y)))return!1}var w=i.get(e);if(w&&i.get(t))return w==t;var v=!0;i.set(e,t),i.set(t,e);for(var S=s;++p<l;){y=a[p];var I=e[y],T=t[y];if(n)var O=s?n(T,I,y,t,e,i):n(I,T,y,e,t,i);if(!(O===void 0?I===T||o(I,T,r,n,i):O)){v=!1;break}S||(S=y=="constructor")}if(v&&!S){var M=e.constructor,L=t.constructor;M!=L&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof L=="function"&&L instanceof L)&&(v=!1)}return i.delete(e),i.delete(t),v}function yL(e){return pre(e,Are,xre)}function av(e,t){var r=e.__data__;return Sre(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zc(e,t){var r=Ite(e,t);return gre(r)?r:void 0}function _re(e){var t=fi.call(e,ul),r=e[ul];try{e[ul]=void 0;var n=!0}catch(i){}var o=ML.call(e);return n&&(t?e[ul]=r:delete e[ul]),o}var xre=pL?function(e){return e==null?[]:(e=Object(e),Ste(pL(e),function(t){return RL.call(e,t)}))}:Mre,na=bh;(U3&&na(new U3(new ArrayBuffer(1)))!=ev||yh&&na(new yh)!=Jy||B3&&na(B3.resolve())!=aL||j3&&na(new j3)!=Qy||V3&&na(new V3)!=$3)&&(na=function(e){var t=bh(e),r=t==jc?e.constructor:void 0,n=r?dl(r):"";if(n)switch(n){case Bte:return ev;case jte:return Jy;case Vte:return aL;case zte:return Qy;case Hte:return $3}return t});function Ere(e,t){return t=t==null?wL:t,!!t&&(typeof e=="number"||xte.test(e))&&e>-1&&e%1==0&&e<t}function Sre(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cre(e){return!!fL&&fL in e}function Tre(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||iv;return e===r}function Pre(e){return ML.call(e)}function dl(e){if(e!=null){try{return AL.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function LL(e,t){return e===t||e!==e&&t!==t}var Ore=gL(function(){return arguments}())?gL:function(e){return wh(e)&&fi.call(e,"callee")&&!RL.call(e,"callee")},nv=Array.isArray;function Dre(e){return e!=null&&$L(e.length)&&!FL(e)}var z3=$te||Rre;function Ire(e,t){return NL(e,t)}function FL(e){if(!UL(e))return!1;var t=bh(e);return t==EL||t==ste||t==ite||t==lte}function $L(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wL}function UL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function wh(e){return e!=null&&typeof e=="object"}var BL=cL?Ote(cL):yre;function Are(e){return Dre(e)?hre(e):vre(e)}function Mre(){return[]}function Rre(){return!1}Vc.exports=Ire});var xF=_e(hv=>{"use strict";c();d();f();Object.defineProperty(hv,"__esModule",{value:!0});hv.getWindowMetadata=void 0;var _F=ol();function Uoe(){let e,t;try{e=_F.getDocumentOrThrow(),t=_F.getLocationOrThrow()}catch(p){return null}function r(){let p=e.getElementsByTagName("link"),y=[];for(let w=0;w<p.length;w++){let v=p[w],S=v.getAttribute("rel");if(S&&S.toLowerCase().indexOf("icon")>-1){let I=v.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let T=t.protocol+"//"+t.host;if(I.indexOf("/")===0)T+=I;else{let O=t.pathname.split("/");O.pop(),T+=O.join("/")+"/"+I}y.push(T)}else if(I.indexOf("//")===0){let T=t.protocol+I;y.push(T)}else y.push(I)}}return y}function n(...p){let y=e.getElementsByTagName("meta");for(let w=0;w<y.length;w++){let v=y[w],S=["itemprop","property","name"].map(I=>v.getAttribute(I)).filter(I=>I?p.includes(I):!1);if(S.length&&S){let I=v.getAttribute("content");if(I)return I}}return""}function o(){let p=n("name","og:site_name","og:title","twitter:title");return p||(p=e.title),p}function i(){return n("description","og:description","twitter:description","keywords")}let s=o(),a=i(),l=t.origin,u=r();return{description:a,url:l,icons:u,name:s}}hv.getWindowMetadata=Uoe});var IF=_e(Nn=>{"use strict";c();d();f();var Boe=Cy(),joe=Ty(),SF=Py(),Voe=Oy(),zoe=e=>e==null,pE=Symbol("encodeFragmentIdentifier");function Hoe(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[cr(t,e),"[",o,"]"].join("")]:[...r,[cr(t,e),"[",cr(o,e),"]=",cr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[cr(t,e),"[]"].join("")]:[...r,[cr(t,e),"[]=",cr(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,[cr(t,e),":list="].join("")]:[...r,[cr(t,e),":list=",cr(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,o)=>o===void 0||e.skipNull&&o===null||e.skipEmptyString&&o===""?n:(o=o===null?"":o,n.length===0?[[cr(r,e),t,cr(o,e)].join("")]:[[n,cr(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,cr(t,e)]:[...r,[cr(t,e),"=",cr(n,e)].join("")]}}function Koe(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"colon-list-separator":return(r,n,o)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let i=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!i&&Yi(n,e).includes(e.arrayFormatSeparator);n=s?Yi(n,e):n;let a=i||s?n.split(e.arrayFormatSeparator).map(l=>Yi(l,e)):n===null?n:Yi(n,e);o[r]=a};case"bracket-separator":return(r,n,o)=>{let i=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!i){o[r]=n&&Yi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Yi(a,e));if(o[r]===void 0){o[r]=s;return}o[r]=[].concat(o[r],s)};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function CF(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function cr(e,t){return t.encode?t.strict?Boe(e):encodeURIComponent(e):e}function Yi(e,t){return t.decode?joe(e):e}function TF(e){return Array.isArray(e)?e.sort():typeof e=="object"?TF(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function PF(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function qoe(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function OF(e){e=PF(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function EF(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 DF(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),CF(t.arrayFormatSeparator);let r=Koe(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){if(o==="")continue;let[i,s]=SF(t.decode?o.replace(/\+/g," "):o,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Yi(s,t),r(Yi(i,t),s,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=EF(i[s],t);else n[o]=EF(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?o[i]=TF(s):o[i]=s,o},Object.create(null))}Nn.extract=OF;Nn.parse=DF;Nn.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),CF(t.arrayFormatSeparator);let r=s=>t.skipNull&&zoe(e[s])||t.skipEmptyString&&e[s]==="",n=Hoe(t),o={};for(let s of Object.keys(e))r(s)||(o[s]=e[s]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(s=>{let a=e[s];return a===void 0?"":a===null?cr(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?cr(s,t)+"[]":a.reduce(n(s),[]).join("&"):cr(s,t)+"="+cr(a,t)}).filter(s=>s.length>0).join("&")};Nn.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=SF(e,"#");return Object.assign({url:r.split("?")[0]||"",query:DF(OF(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Yi(n,t)}:{})};Nn.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[pE]:!0},t);let r=PF(e.url).split("?")[0]||"",n=Nn.extract(e.url),o=Nn.parse(n,{sort:!1}),i=Object.assign(o,e.query),s=Nn.stringify(i,t);s&&(s=`?${s}`);let a=qoe(e.url);return e.fragmentIdentifier&&(a=`#${t[pE]?cr(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Nn.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[pE]:!1},r);let{url:n,query:o,fragmentIdentifier:i}=Nn.parseUrl(e,r);return Nn.stringifyUrl({url:n,query:Voe(o,t),fragmentIdentifier:i},r)};Nn.exclude=(e,t,r)=>{let n=Array.isArray(t)?o=>!t.includes(o):(o,i)=>!t(o,i);return Nn.pick(e,n,r)}});var s$=_e(vv=>{"use strict";c();d();f();Object.defineProperty(vv,"__esModule",{value:!0});vv.getWindowMetadata=void 0;var i$=ol();function gie(){let e,t;try{e=i$.getDocumentOrThrow(),t=i$.getLocationOrThrow()}catch(p){return null}function r(){let p=e.getElementsByTagName("link"),y=[];for(let w=0;w<p.length;w++){let v=p[w],S=v.getAttribute("rel");if(S&&S.toLowerCase().indexOf("icon")>-1){let I=v.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let T=t.protocol+"//"+t.host;if(I.indexOf("/")===0)T+=I;else{let O=t.pathname.split("/");O.pop(),T+=O.join("/")+"/"+I}y.push(T)}else if(I.indexOf("//")===0){let T=t.protocol+I;y.push(T)}else y.push(I)}}return y}function n(...p){let y=e.getElementsByTagName("meta");for(let w=0;w<y.length;w++){let v=y[w],S=["itemprop","property","name"].map(I=>v.getAttribute(I)).filter(I=>I?p.includes(I):!1);if(S.length&&S){let I=v.getAttribute("content");if(I)return I}}return""}function o(){let p=n("name","og:site_name","og:title","twitter:title");return p||(p=e.title),p}function i(){return n("description","og:description","twitter:description","keywords")}let s=o(),a=i(),l=t.origin,u=r();return{description:a,url:l,icons:u,name:s}}vv.getWindowMetadata=gie});var p$=_e(Ln=>{"use strict";c();d();f();var yie=Cy(),vie=Ty(),l$=Py(),wie=Oy(),bie=e=>e==null,DE=Symbol("encodeFragmentIdentifier");function _ie(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[fr(t,e),"[",o,"]"].join("")]:[...r,[fr(t,e),"[",fr(o,e),"]=",fr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[fr(t,e),"[]"].join("")]:[...r,[fr(t,e),"[]=",fr(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,[fr(t,e),":list="].join("")]:[...r,[fr(t,e),":list=",fr(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,o)=>o===void 0||e.skipNull&&o===null||e.skipEmptyString&&o===""?n:(o=o===null?"":o,n.length===0?[[fr(r,e),t,fr(o,e)].join("")]:[[n,fr(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,fr(t,e)]:[...r,[fr(t,e),"=",fr(n,e)].join("")]}}function xie(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"colon-list-separator":return(r,n,o)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let i=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!i&&Xi(n,e).includes(e.arrayFormatSeparator);n=s?Xi(n,e):n;let a=i||s?n.split(e.arrayFormatSeparator).map(l=>Xi(l,e)):n===null?n:Xi(n,e);o[r]=a};case"bracket-separator":return(r,n,o)=>{let i=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!i){o[r]=n&&Xi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Xi(a,e));if(o[r]===void 0){o[r]=s;return}o[r]=[].concat(o[r],s)};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function u$(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function fr(e,t){return t.encode?t.strict?yie(e):encodeURIComponent(e):e}function Xi(e,t){return t.decode?vie(e):e}function c$(e){return Array.isArray(e)?e.sort():typeof e=="object"?c$(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function f$(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Eie(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function d$(e){e=f$(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function a$(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 h$(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),u$(t.arrayFormatSeparator);let r=xie(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){if(o==="")continue;let[i,s]=l$(t.decode?o.replace(/\+/g," "):o,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Xi(s,t),r(Xi(i,t),s,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=a$(i[s],t);else n[o]=a$(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?o[i]=c$(s):o[i]=s,o},Object.create(null))}Ln.extract=d$;Ln.parse=h$;Ln.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),u$(t.arrayFormatSeparator);let r=s=>t.skipNull&&bie(e[s])||t.skipEmptyString&&e[s]==="",n=_ie(t),o={};for(let s of Object.keys(e))r(s)||(o[s]=e[s]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(s=>{let a=e[s];return a===void 0?"":a===null?fr(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?fr(s,t)+"[]":a.reduce(n(s),[]).join("&"):fr(s,t)+"="+fr(a,t)}).filter(s=>s.length>0).join("&")};Ln.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=l$(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h$(d$(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Xi(n,t)}:{})};Ln.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[DE]:!0},t);let r=f$(e.url).split("?")[0]||"",n=Ln.extract(e.url),o=Ln.parse(n,{sort:!1}),i=Object.assign(o,e.query),s=Ln.stringify(i,t);s&&(s=`?${s}`);let a=Eie(e.url);return e.fragmentIdentifier&&(a=`#${t[DE]?fr(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Ln.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[DE]:!1},r);let{url:n,query:o,fragmentIdentifier:i}=Ln.parseUrl(e,r);return Ln.stringifyUrl({url:n,query:wie(o,t),fragmentIdentifier:i},r)};Ln.exclude=(e,t,r)=>{let n=Array.isArray(t)?o=>!t.includes(o):(o,i)=>!t(o,i);return Ln.pick(e,n,r)}});var QE=_e(JE=>{"use strict";c();d();f();Object.defineProperty(JE,"__esModule",{value:!0});JE.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","330","331","332","334","336","337","339","341","346","347","351","352","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","930","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["5","6","7","9"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"\xC5land Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["7","29"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","289","306","343","365","367","403","416","418","431","437","438","450","506","514","519","548","579","581","587","600","604","613","639","647","672","705","709","778","780","782","807","819","825","867","873","902","905"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"C\xF4te D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"5999",country_name:"Cura\xE7ao",mobile_begin_with:["5","6"],phone_number_lengths:[7]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"R\xE9union",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77"],phone_number_lengths:[9]}]});var mU=_e($n=>{"use strict";c();d();f();var Rse=$n&&$n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($n,"__esModule",{value:!0});$n.validatePhoneISO3166=$n.findCountryPhoneDataByPhoneNumber=$n.findPossibleCountryPhoneData=$n.findExactCountryPhoneData=$n.findCountryPhoneDataByCountry=void 0;var Ah=Rse(QE());function Nse(e){return e?e.length===2?Ah.default.find(t=>e.toUpperCase()===t.alpha2)||null:e.length===3?Ah.default.find(t=>e.toUpperCase()===t.alpha3)||null:Ah.default.find(t=>e.toUpperCase()===t.country_name.toUpperCase())||null:Ah.default.find(t=>t.alpha3==="USA")||null}$n.findCountryPhoneDataByCountry=Nse;function hU(e,t,r){return r.phone_number_lengths.some(o=>r.country_code.length+o===e.length)&&(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+o))))?r:null}$n.findExactCountryPhoneData=hU;function pU(e,t,r){if(!r.phone_number_lengths.some(o=>r.country_code.length+o+1===e.length))return null;if(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+"\\d?"+o))))return r}$n.findPossibleCountryPhoneData=pU;function kse(e,t){let r,n;for(let o of Ah.default)!e.match(new RegExp("^"+o.country_code))||(r||(r=hU(e,t,o)),n||(n=pU(e,t,o)));return{exactCountryPhoneData:r,possibleCountryPhoneData:n}}$n.findCountryPhoneDataByPhoneNumber=kse;function Lse(e,t,r,n){if(!t.phone_number_lengths)return!1;let o=e.replace(new RegExp("^"+t.country_code),"");if(n&&t&&o.length===e.length)return!1;let i=t.phone_number_lengths,s=t.mobile_begin_with,a=i.some(u=>o.length===u),l=s.length?s.some(u=>o.match(new RegExp("^"+u))):!0;return a&&(!r||l)}$n.validatePhoneISO3166=Lse});var yU=_e(Ji=>{"use strict";c();d();f();var Fse=Ji&&Ji.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.countryPhoneData=Ji.phone=void 0;var $se=Fse(QE());Ji.countryPhoneData=$se.default;var Mh=mU();function gU(e,{country:t="",validateMobilePrefix:r=!0,strictDetection:n=!1}={}){let o={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null},i=typeof e!="string"?"":e.trim(),s=typeof t!="string"?"":t.trim(),a=Boolean(i.match(/^\+/));i=i.replace(/\D/g,"");let l=(0,Mh.findCountryPhoneDataByCountry)(s);if(!l)return o;let u=!1;if(s)["CIV","COG"].includes(l.alpha3)||(i=i.replace(/^0+/,"")),l.alpha3==="RUS"&&i.length===11&&i.match(/^89/)!==null&&(i=i.replace(/^8+/,"")),!a&&l.phone_number_lengths.includes(i.length)&&(i=`${l.country_code}${i}`);else if(a){let{exactCountryPhoneData:p,possibleCountryPhoneData:y}=(0,Mh.findCountryPhoneDataByPhoneNumber)(i,r);p?l=p:y&&!n?(l=y,i=l.country_code+i.replace(new RegExp(`^${l.country_code}\\d`),"")):l=null}else l.phone_number_lengths.indexOf(i.length)!==-1&&(i=`1${i}`,u=!0);if(!l)return o;let h=(0,Mh.validatePhoneISO3166)(i,l,r,a);return h?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:u&&(l=(0,Mh.findCountryPhoneDataByCountry)("CAN"),h=(0,Mh.validatePhoneISO3166)(i,l,r,a),h)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:o}Ji.default=gU;Ji.phone=gU});var xU=_e((K5e,_U)=>{"use strict";c();d();f();var bl=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93","+..-..-...-...."],["\xC5land Islands","ax","358",""],["Albania (Shqip\xEBri)","al","355","+...(...)...-..."],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (\xD6sterreich)","at","43","+..(...)...-...."],["Azerbaijan (Az\u0259rbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973","+...-....-...."],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375","+...(..)...-..-.."],["Belgium (Belgi\xEB)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (B\xE9nin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (R\xE9publique centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (\u4E2D\u56FD)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["C\xF4te d\u2019Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Cura\xE7ao","cw","599","+...-...-....",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357","+...-..-...-..."],["Czech Republic (\u010Cesk\xE1 republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (Rep\xFAblica Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (F\xF8royar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane fran\xE7aise)","gf","594","+...-.....-...."],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guin\xE9e)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (\u9999\u6E2F)","hk","852","+... .... ...."],["Hungary (Magyarorsz\xE1g)","hu","36","+..(...)...-..."],["Iceland (\xCDsland)","is","354","+... ... ...."],["India (\u092D\u093E\u0930\u0924)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98","+..(...)...-...."],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (\u65E5\u672C)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962","+...-.-....-...."],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965","+...-....-...."],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996","+...(...)...-..."],["Laos (\u0EA5\u0EB2\u0EA7)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (\u6FB3\u9580)","mo","853","+...-....-...."],["Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (M\xE9xico)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212","+...-..-....-..."],["Mozambique (Mo\xE7ambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95","+..-...-..."],["Namibia (Namibi\xEB)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968","+...-..-...-..."],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970","+...-..-...-...."],["Panama (Panam\xE1)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Per\xFA)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974","+...-....-...."],["R\xE9union (La R\xE9union)","re","262","+...-.....-...."],["Romania (Rom\xE2nia)","ro","40","+..-..-...-...."],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barth\xE9lemy (Saint-Barth\xE9lemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239","+...-..-....."],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966","+...-..-...-...."],["Senegal (S\xE9n\xE9gal)","sn","221","+...-..-...-...."],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82","+..-..-...-...."],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211","+...-..-...-...."],["Spain (Espa\xF1a)","es","34","+.. ... ... ..."],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94","+..-..-...-...."],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963","+...-..-....-..."],["Taiwan (\u53F0\u7063)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (\u0E44\u0E17\u0E22)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216","+...-..-...-..."],["Turkey (T\xFCrkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380","+...(..)...-..-.."],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (O\u02BBzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Citt\xE0 del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Vi\u1EC7t Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],Dv={},bU={},vU=function(e,t,r){t in Dv||(Dv[t]=[]);var n=r||0;Dv[t][n]=e};for(Qi=0;Qi<bl.length;Qi++){if(vn=bl[Qi],bl[Qi]={name:vn[0],iso2:vn[1],dialCode:vn[2],priority:vn[4]||0},vn[3]&&(bl[Qi].format=vn[3]),vn[5])for(bl[Qi].hasAreaCodes=!0,Ov=0;Ov<vn[5].length;Ov++)wU=vn[2]+vn[5][Ov],vU(vn[1],wU);bU[bl[Qi].iso2]=Qi,vU(vn[1],vn[2],vn[4])}var vn,wU,Ov,Qi;_U.exports={allCountries:bl,iso2Lookup:bU,allCountryCodes:Dv}});var ule={};Hr(ule,{init:()=>ile,open:()=>ale,reset:()=>lle,update:()=>sle});c();d();f();c();d();f();c();d();f();c();d();f();var t6=e=>{let t,r=new Set,n=(l,u)=>{let h=typeof l=="function"?l(t):l;if(!Object.is(h,t)){let p=t;t=(u!=null?u:typeof h!="object")?h:Object.assign({},t,h),r.forEach(y=>y(t,p))}},o=()=>t,a={setState:n,getState:o,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(P&&P.MODE)!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),r.clear()}};return t=e(n,o,a),a},r6=e=>e?t6(e):t6;var d6=ue(we(),1),h6=ue(c6(),1),{useSyncExternalStoreWithSelector:Vj}=h6.default;function zj(e,t=e.getState,r){let n=Vj(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,d6.useDebugValue)(n),n}var f6=e=>{(P&&P.MODE)!=="production"&&typeof e!="function"&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');let t=typeof e=="function"?r6(e):e,r=(n,o)=>zj(t,n,o);return Object.assign(r,t),r},ep=e=>e?f6(e):f6;c();d();f();var $6=ue(p6(),1);c();d();f();c();d();f();c();d();f();var A6=ue(y6());c();d();f();c();d();f();c();d();f();var v6="logger/5.7.0";var w6=!1,b6=!1,rp={debug:1,default:2,info:2,warning:3,error:4,off:5},_6=rp.default,x1=null;function Hj(){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 x6=Hj(),E1;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(E1||(E1={}));var Oo;(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"})(Oo||(Oo={}));var E6="0123456789abcdef",dt=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();rp[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(_6>rp[n])&&console.log.apply(console,r)}debug(...t){this._log(dt.levels.DEBUG,t)}info(...t){this._log(dt.levels.INFO,t)}warn(...t){this._log(dt.levels.WARNING,t)}makeError(t,r,n){if(b6)return this.makeError("censored error",r,{});r||(r=dt.errors.UNKNOWN_ERROR),n||(n={});let o=[];Object.keys(n).forEach(l=>{let u=n[l];try{if(u instanceof Uint8Array){let h="";for(let p=0;p<u.length;p++)h+=E6[u[p]>>4],h+=E6[u[p]&15];o.push(l+"=Uint8Array(0x"+h+")")}else o.push(l+"="+JSON.stringify(u))}catch(h){o.push(l+"="+JSON.stringify(n[l].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);let i=t,s="";switch(r){case Oo.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 Oo.CALL_EXCEPTION:case Oo.INSUFFICIENT_FUNDS:case Oo.MISSING_NEW:case Oo.NONCE_EXPIRED:case Oo.REPLACEMENT_UNDERPRICED:case Oo.TRANSACTION_REPLACED:case Oo.UNPREDICTABLE_GAS_LIMIT:s=r;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),o.length&&(t+=" ("+o.join(", ")+")");let a=new Error(t);return a.reason=i,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,dt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,o){t||this.throwError(r,n,o)}assertArgument(t,r,n,o){t||this.throwArgumentError(r,n,o)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),x6&&this.throwError("platform missing String.prototype.normalize",dt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:x6})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,dt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,dt.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,dt.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,dt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",dt.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",dt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",dt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return x1||(x1=new dt(v6)),x1}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",dt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),w6){if(!t)return;this.globalLogger().throwError("error censorship permanent",dt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}b6=!!t,w6=!!r}static setLogLevel(t){let r=rp[t.toLowerCase()];if(r==null){dt.globalLogger().warn("invalid log level - "+t);return}_6=r}static from(t){return new dt(t)}};dt.errors=Oo;dt.levels=E1;c();d();f();var S6="bytes/5.7.0";var ca=new dt(S6);function T6(e){return!!e.toHexString}function Cl(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return Cl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function P6(e){return Tl(e)&&!(e.length%2)||af(e)}function C6(e){return typeof e=="number"&&e==e&&e%1===0}function af(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!C6(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!C6(r)||r<0||r>=256)return!1}return!0}function Un(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),Cl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),T6(e)&&(e=e.toHexString()),Tl(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 o=0;o<r.length;o+=2)n.push(parseInt(r.substring(o,o+2),16));return Cl(new Uint8Array(n))}return af(e)?Cl(new Uint8Array(e)):ca.throwArgumentError("invalid arrayify value","value",e)}function lf(e){let t=e.map(o=>Un(o)),r=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(r);return t.reduce((o,i)=>(n.set(i,o),o+i.length),0),Cl(n)}function np(e,t){e=Un(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),Cl(r)}function Tl(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var S1="0123456789abcdef";function Pl(e,t){if(t||(t={}),typeof e=="number"){ca.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=S1[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),T6(e))return e.toHexString();if(Tl(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(af(e)){let r="0x";for(let n=0;n<e.length;n++){let o=e[n];r+=S1[(o&240)>>4]+S1[o&15]}return r}return ca.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var O6="bignumber/5.7.0";var T1=A6.default.BN,yi=new dt(O6),C1={},D6=9007199254740991;var I6=!1,Dr=class{constructor(t,r){t!==C1&&yi.throwError("cannot call constructor directly; use BigNumber.from",dt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return xn(ht(this).fromTwos(t))}toTwos(t){return xn(ht(this).toTwos(t))}abs(){return this._hex[0]==="-"?Dr.from(this._hex.substring(1)):this}add(t){return xn(ht(this).add(ht(t)))}sub(t){return xn(ht(this).sub(ht(t)))}div(t){return Dr.from(t).isZero()&&so("division-by-zero","div"),xn(ht(this).div(ht(t)))}mul(t){return xn(ht(this).mul(ht(t)))}mod(t){let r=ht(t);return r.isNeg()&&so("division-by-zero","mod"),xn(ht(this).umod(r))}pow(t){let r=ht(t);return r.isNeg()&&so("negative-power","pow"),xn(ht(this).pow(r))}and(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&so("unbound-bitwise-result","and"),xn(ht(this).and(r))}or(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&so("unbound-bitwise-result","or"),xn(ht(this).or(r))}xor(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&so("unbound-bitwise-result","xor"),xn(ht(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&so("negative-width","mask"),xn(ht(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&so("negative-width","shl"),xn(ht(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&so("negative-width","shr"),xn(ht(this).shrn(t))}eq(t){return ht(this).eq(ht(t))}lt(t){return ht(this).lt(ht(t))}lte(t){return ht(this).lte(ht(t))}gt(t){return ht(this).gt(ht(t))}gte(t){return ht(this).gte(ht(t))}isNegative(){return this._hex[0]==="-"}isZero(){return ht(this).isZero()}toNumber(){try{return ht(this).toNumber()}catch(t){so("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return yi.throwError("this platform does not support BigInt",dt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?I6||(I6=!0,yi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?yi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",dt.errors.UNEXPECTED_ARGUMENT,{}):yi.throwError("BigNumber.toString does not accept parameters",dt.errors.UNEXPECTED_ARGUMENT,{})),ht(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Dr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new Dr(C1,uf(t)):t.match(/^-?[0-9]+$/)?new Dr(C1,uf(new T1(t))):yi.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&so("underflow","BigNumber.from",t),(t>=D6||t<=-D6)&&so("overflow","BigNumber.from",t),Dr.from(String(t));let r=t;if(typeof r=="bigint")return Dr.from(r.toString());if(af(r))return Dr.from(Pl(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return Dr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Tl(n)||n[0]==="-"&&Tl(n.substring(1))))return Dr.from(n)}return yi.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function uf(e){if(typeof e!="string")return uf(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&yi.throwArgumentError("invalid hex","value",e),e=uf(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 xn(e){return Dr.from(uf(e))}function ht(e){let t=Dr.from(e).toHexString();return t[0]==="-"?new T1("-"+t.substring(3),16):new T1(t.substring(2),16)}function so(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),yi.throwError(e,dt.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var M6="strings/5.7.0";var R6=new dt(M6),cf;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(cf||(cf={}));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 Kj(e,t,r,n,o){return R6.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function N6(e,t,r,n,o){if(e===fa.BAD_PREFIX||e===fa.UNEXPECTED_CONTINUE){let i=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)i++;return i}return e===fa.OVERRUN?r.length-t-1:0}function qj(e,t,r,n,o){return e===fa.OVERLONG?(n.push(o),0):(n.push(65533),N6(e,t,r,n,o))}var Gj=Object.freeze({error:Kj,ignore:N6,replace:qj});function P1(e,t=cf.current){t!=cf.current&&(R6.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(o&63|128);else if((o&64512)==55296){n++;let i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");let s=65536+((o&1023)<<10)+(i&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(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128)}return Un(r)}c();d();f();var k6="solidity/5.7.0";var Wj=new RegExp("^bytes([0-9]+)$"),Yj=new RegExp("^(u?int)([0-9]*)$"),Xj=new RegExp("^(.*)\\[([0-9]*)\\]$"),Zj="0000000000000000000000000000000000000000000000000000000000000000",Ol=new dt(k6);function L6(e,t,r){switch(e){case"address":return r?np(t,32):Un(t);case"string":return P1(t);case"bytes":return Un(t);case"bool":return t=t?"0x01":"0x00",r?np(t,32):Un(t)}let n=e.match(Yj);if(n){let o=parseInt(n[2]||"256");return(n[2]&&String(o)!==n[2]||o%8!==0||o===0||o>256)&&Ol.throwArgumentError("invalid number type","type",e),r&&(o=256),t=Dr.from(t).toTwos(o),np(t,o/8)}if(n=e.match(Wj),n){let o=parseInt(n[1]);return(String(o)!==n[1]||o===0||o>32)&&Ol.throwArgumentError("invalid bytes type","type",e),Un(t).byteLength!==o&&Ol.throwArgumentError(`invalid value for ${e}`,"value",t),r?Un((t+Zj).substring(0,66)):t}if(n=e.match(Xj),n&&Array.isArray(t)){let o=n[1];parseInt(n[2]||String(t.length))!=t.length&&Ol.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(L6(o,a,!0))}),lf(s)}return Ol.throwArgumentError("invalid type","type",e)}function F6(e,t){e.length!=t.length&&Ol.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,o){r.push(L6(n,t[o]))}),Pl(lf(r))}function ff(e){return Array.isArray(e)?Jj(e):P6(e)?O1(e):Qj(e)}function Jj(e){let[t,r]=e.reduce(([n,o],[i,s])=>(n.push(i),o.push(s),[n,o]),[[],[]]);return O1(F6(t,r))}function Qj(e){let t=_.from(e);return O1(t)}function O1(e){let t=BigInt(eV(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function eV(e){let t=Pl(lf([Un(e)]));return"0x"+$6.default.keccak_256(Un(t))}var U6=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66};c();d();f();var D1=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(D1||{});c();d();f();c();d();f();var A1=function(e,t){return A1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},A1(e,t)};function tV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");A1(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var yt=function(){return yt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},yt.apply(this,arguments)};function da(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(h){try{u(n.next(h))}catch(p){s(p)}}function l(h){try{u(n.throw(h))}catch(p){s(p)}}function u(h){h.done?i(h.value):o(h.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function ha(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,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,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function rV(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var tt;(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"})(tt||(tt={}));function nV(e,t){if(!e)throw new Error(t)}function oV(e){return e==null?void 0:e.replace(/\/+$/,"")}function iV(e,t){return t===void 0&&(t={}),da(this,void 0,void 0,function(){var r,n,o,i,s,a,l,u,h,p;return ha(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,o=t.retryDelay,i=o===void 0?5e3:o,s=t.retryCheck,a=s===void 0?function(){return!0}:s,l=null,u=0,y.label=1;case 1:if(!(u<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return h=y.sent(),[2,h];case 4:if(p=y.sent(),l=p,!a(p))throw p;return[3,5];case 5:return[4,new Promise(function(w){return setTimeout(w,i)})];case 6:y.sent(),y.label=7;case 7:return u++,[3,1];case 8:throw l}})})}function B6(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 o=Math.random()*16;return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(r+o)%16|0,r=Math.floor(r/16)),(n==="x"?o:o&3|8).toString(16)})}function q6(){return new Date().getTime()}function j6(){return new Date().toISOString()}function V6(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var df=String.fromCharCode,z6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",op={};function sV(e,t){if(!op[e]){op[e]={};for(var r=0;r<e.length;r++)op[e][e.charAt(r)]=r}return op[e][t]}var mf={compressToBase64:function(e){if(e==null)return"";var t=mf._compress(e,6,function(r){return z6.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:mf._decompress(e.length,32,function(t){return sV(z6,e.charAt(t))})},compress:function(e){return mf._compress(e,16,function(t){return df(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},o={},i=[],s,a,l="",u="",h="",p=2,y=3,w=2,v=0,S=0,I;for(I=0;I<e.length;I+=1)if(l=e.charAt(I),Object.prototype.hasOwnProperty.call(n,l)||(n[l]=y++,o[l]=!0),u=h+l,Object.prototype.hasOwnProperty.call(n,u))h=u;else{if(Object.prototype.hasOwnProperty.call(o,h)){if(h.charCodeAt(0)<256){for(s=0;s<w;s++)v=v<<1,S==t-1?(S=0,i.push(r(v)),v=0):S++;for(a=h.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=0;for(a=h.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1}p--,p==0&&(p=Math.pow(2,w),w++),delete o[h]}else for(a=n[h],s=0;s<w;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1;p--,p==0&&(p=Math.pow(2,w),w++),n[u]=y++,h=String(l)}if(h!==""){if(Object.prototype.hasOwnProperty.call(o,h)){if(h.charCodeAt(0)<256){for(s=0;s<w;s++)v=v<<1,S==t-1?(S=0,i.push(r(v)),v=0):S++;for(a=h.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=0;for(a=h.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1}p--,p==0&&(p=Math.pow(2,w),w++),delete o[h]}else for(a=n[h],s=0;s<w;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1;p--,p==0&&(p=Math.pow(2,w),w++)}for(a=2,s=0;s<w;s++)v=v<<1|a&1,S==t-1?(S=0,i.push(r(v)),v=0):S++,a=a>>1;for(;;)if(v=v<<1,S==t-1){i.push(r(v));break}else S++;return i.join("")},decompress:function(e){return e==null?"":e==""?null:mf._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],o=[],i={val:r(0),position:t,index:1},s=4,a=4,l=3,u="",h,p,y,w,v,S,I;for(h=0;h<3;h+=1)n[h]=h;for(y=0,v=Math.pow(2,2),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;switch(y){case 0:for(y=0,v=Math.pow(2,8),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;I=df(y);break;case 1:for(y=0,v=Math.pow(2,16),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;I=df(y);break;case 2:return""}for(n[3]=I,p=I,o.push(I);;){if(i.index>e)return"";for(y=0,v=Math.pow(2,l),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;switch(I=y){case 0:for(y=0,v=Math.pow(2,8),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;n[a++]=df(y),I=a-1,s--;break;case 1:for(y=0,v=Math.pow(2,16),S=1;S!=v;)w=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(w>0?1:0)*S,S<<=1;n[a++]=df(y),I=a-1,s--;break;case 2:return o.join("")}if(s==0&&(s=Math.pow(2,l),l++),n[I])u=n[I];else if(I===a)u=p+p.charAt(0);else return null;o.push(u),n[a++]=p+u.charAt(0),s--,p=u,s==0&&(s=Math.pow(2,l),l++)}}},aV=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(o){return o!==r})}},e.prototype.emit=function(t,r){for(var n=0,o=this.events[t]||[];n<o.length;n++){var i=o[n];i(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var i=a[s];i(t,r)}},e}(),lV=function(){function e(t,r){var n=this,o,i,s,a,l,u;this.flagCallReported={},this._events=new aV,nV(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=oV((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=(o=r==null?void 0:r.flushInterval)!==null&&o!==void 0?o:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(i=r==null?void 0:r.sendFeatureFlagEvent)!==null&&i!==void 0?i:!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&&V6(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],s=i[0],a=i[1];r["$feature/".concat(s)]=a}return yt({$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,o,i;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(tt.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(tt.AnonymousId,t.bootstrap.distinctId)),!((o=t==null?void 0:t.bootstrap)===null||o===void 0)&&o.featureFlags){var s=Object.keys(((i=t.bootstrap)===null||i===void 0?void 0:i.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(tt.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(tt.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(tt.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(tt.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=rV([tt.Queue],t||[],!0);this.clearProps();for(var n=0,o=Object.keys(tt);n<o.length;n++){var i=o[n];r.includes(tt[i])||this.setPersistedProperty(tt[i],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,o){return console.log("PostHog Debug",n,o)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:yt(yt(yt(yt({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(tt.SessionId),r=this.getPersistedProperty(tt.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=B6(globalThis),this.setPersistedProperty(tt.SessionId,t)),this.setPersistedProperty(tt.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(tt.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(tt.AnonymousId);return t||(t=B6(globalThis),this.setPersistedProperty(tt.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(tt.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=yt(yt({},this.props),t),this.setPersistedProperty(tt.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(tt.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 o=yt(yt({},this.buildPayload({distinct_id:t,event:"$identify",properties:yt(yt({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(tt.AnonymousId,n),this.setPersistedProperty(tt.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",o),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 o=this.buildPayload({event:t,properties:r});this.enqueue("capture",o)}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 o=this.buildPayload({event:"$autocapture",properties:yt(yt({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",o),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:yt(yt({},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 o;return this.groups((o={},o[t]=r,o)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var o={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:yt({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",o),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(tt.PersonProperties)||{};return this.setPersistedProperty(tt.PersonProperties,yt(yt({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(tt.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=yt(yt({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(tt.GroupProperties,yt(yt({},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),da(this,void 0,void 0,function(){var r,n,o,i,s,a,l=this;return ha(this,function(u){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),o=this.props.$groups||{},i=this.getPersistedProperty(tt.PersonProperties)||{},s=this.getPersistedProperty(tt.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:o,person_properties:i,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(tt.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(tt.FeatureFlags),r=this.getPersistedProperty(tt.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),da(this,void 0,void 0,function(){return ha(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 da(r,void 0,void 0,function(){var n;return ha(this,function(o){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return da(n,void 0,void 0,function(){var o;return ha(this,function(i){return o=this.getFeatureFlag(t),o!==void 0&&r(o),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(tt.OverrideFeatureFlags,null):this.setPersistedProperty(tt.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var o=n.buildPayload({event:t,properties:r});n.enqueue("capture",o)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var o=yt(yt({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:j6()});o.distinctId&&(o.distinct_id=o.distinctId,delete o.distinctId);var i=this.getPersistedProperty(tt.Queue)||[];i.push({message:o}),this.setPersistedProperty(tt.Queue,i),this._events.emit(t,o),i.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=V6(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(o,i){return o?n(o):r(i)})})},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(tt.Queue)||[];if(!n.length)return t==null?void 0:t();var o=n.splice(0,this.flushAt);this.setPersistedProperty(tt.Queue,n);var i=o.map(function(p){return p.message}),s={api_key:this.apiKey,batch:i,sent_at:j6()},a=function(p){t==null||t(p,i),r._events.emit("flush",i)};this.getCustomUserAgent();var l=JSON.stringify(s),u=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(q6(),"&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(mf.compressToBase64(l)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:l};this.fetchWithRetry(u,h).then(function(){return a()}).catch(function(p){if(p.response){var y=new Error(p.response.statusText);return a(y)}a(p)})},e.prototype.fetchWithRetry=function(t,r,n){var o,i;return da(this,void 0,void 0,function(){var s=this;return ha(this,function(a){return(o=(i=AbortSignal).timeout)!==null&&o!==void 0||(i.timeout=function(u){var h=new AbortController;return setTimeout(function(){return h.abort()},u),h.signal}),[2,iV(function(){return s.fetch(t,yt({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return da(this,void 0,void 0,function(){return ha(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}(),G6="2.0.0";function uV(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=yt(yt({},t),{$os:fV(e),$browser:W6(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:hV(e.document.referrer),$device:dV(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:cV(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=yt(yt({},t),{$lib:"js",$lib_version:G6,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:q6()/1e3}),t}function sr(e,t){return e.indexOf(t)>=0}function W6(e,t,r){return t=t||"",r||sr(e," OPR/")?sr(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":sr(e,"IEMobile")||sr(e,"WPDesktop")?"Internet Explorer Mobile":sr(e,"SamsungBrowser/")?"Samsung Internet":sr(e,"Edge")||sr(e,"Edg/")?"Microsoft Edge":sr(e,"FBIOS")?"Facebook Mobile":sr(e,"Chrome")?"Chrome":sr(e,"CriOS")?"Chrome iOS":sr(e,"UCWEB")||sr(e,"UCBrowser")?"UC Browser":sr(e,"FxiOS")?"Firefox iOS":sr(t,"Apple")?sr(e,"Mobile")?"Mobile Safari":"Safari":sr(e,"Android")?"Android Mobile":sr(e,"Konqueror")?"Konqueror":sr(e,"Firefox")?"Firefox":sr(e,"MSIE")||sr(e,"Trident/")?"Internet Explorer":sr(e,"Gecko")?"Mozilla":""}function cV(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+)?)/},o=W6(e,t,r),i=n[o]||void 0;if(i===void 0)return null;var s=e.match(i);return s?parseFloat(s[s.length-2]):null}function fV(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 dV(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 hV(e){var t=e.split("/");return t.length>=3?t[2]:""}var Y6={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch(i){}return null},setItem:function(e,t){try{var r="",n="",o="",i=e+"="+encodeURIComponent(t)+n+"; path=/"+r+o;document.cookie=i}catch(s){return}},removeItem:function(e){try{Y6.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}},H6=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}}},K6=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}},I1=void 0,hf=void 0,pf=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},pV=function(e,t){if(t){if(!localStorage){var r=H6(t.localStorage);I1=K6(r)?r:void 0}if(!hf){var n=H6(t.sessionStorage);hf=K6(n)?n:void 0}}switch(e){case"cookie":return Y6||I1||hf||pf();case"localStorage":return I1||hf||pf();case"sessionStorage":return hf||pf();case"memory":return pf();default:return pf()}},X6=function(e){tV(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),o._storage=pV((n==null?void 0:n.persistence)||"localStorage",window),o.setupBootstrap(n),o}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 G6},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return yt(yt({},e.prototype.getCommonEventProperties.call(this)),uV(window))},t}(lV);function mV(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function gV(e,t){try{return await fetch(e,t)}catch(r){throw mV(r)}}var hr=null;typeof globalThis.window<"u"&&(hr=new X6("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),hr.fetch=gV);var ip={version:"0.3.1",package:"idkit-js"},Dl=()=>{var e;return(e=hr==null?void 0:hr.getDistinctId())!=null?e:""},Z6=e=>{e?hr==null||hr.capture("idkit loaded",ip):hr==null||hr.optOut()},J6=()=>{hr==null||hr.capture("idkit opened",ip)},Q6=()=>{hr==null||hr.capture("idkit phone typed",ip)},e5=e=>{hr==null||hr.capture("idkit phone code retried",ve(Q({},ip),{channel:e}))};var yV=ep()((e,t)=>({open:!1,code:"",signal:"",result:null,actionId:"",theme:"light",walletConnectProjectId:"",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"SELECT_METHOD",copy:{},computed:{canGoBack:r=>{switch(r){case"ENTER_PHONE":return t().methods.includes("orb");case"WORLD_ID":return t().methods.includes("phone");case"ENTER_CODE":case"PRIVACY":return!0;default:return!1}},getDefaultStage:r=>(r=r!=null?r:t().methods,r.length>1?"SELECT_METHOD":r[0]==="phone"?"ENTER_PHONE":"WORLD_ID")},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{t().methods.length===1&&e({stage:t().computed.getDefaultStage(),errorState:null}),e({stage:"SELECT_METHOD",errorState:null})},addSuccessCallback:(r,n)=>{e(o=>(o.successCallbacks[n]=r,o))},addVerificationCallback:(r,n)=>{e(o=>(o.verifyCallbacks[n]=r,o))},setOptions:({handleVerify:r,onSuccess:n,signal:o,actionId:i,walletConnectProjectId:s,autoClose:a,copy:l,theme:u,methods:h},p)=>{let y=typeof i=="string"?i:ff(i).digest;e(w=>({theme:u,signal:o,actionId:i,autoClose:a,stringifiedActionId:y,walletConnectProjectId:s,methods:h!=null?h:w.methods,stage:w.computed.getDefaultStage(h),copy:Q(Q({},w.copy),l)})),n&&t().addSuccessCallback(n,p),r&&t().addVerificationCallback(r,p)},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 o;n&&typeof n=="object"&&n.message&&(o=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:o}})})},onOpenChange:r=>{if(r)return J6(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result;n&&requestAnimationFrame(()=>Object.values(t().successCallbacks).map(o=>()=>o==null?void 0:o(n)))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:t().computed.getDefaultStage()})}})),Bt=yV;c();d();f();var t5={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var PB=ue(E8(),1);c();d();f();var CB=ue(we(),1);c();d();f();c();d();f();var mr=ue(we()),M8=ue(Da()),Oi=ue(qb()),_H=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function R8(e,t){return e(t={exports:{}},t.exports),t.exports}var xH=R8(function(e){(function(t){var r=function(I,T,O){if(!l(T)||h(T)||p(T)||y(T)||a(T))return T;var M,L=0,G=0;if(u(T))for(M=[],G=T.length;L<G;L++)M.push(r(I,T[L],O));else for(var J in M={},T)Object.prototype.hasOwnProperty.call(T,J)&&(M[I(J,O)]=r(I,T[J],O));return M},n=function(I){return w(I)?I:(I=I.replace(/[\-_\s]+(.)?/g,function(T,O){return O?O.toUpperCase():""})).substr(0,1).toLowerCase()+I.substr(1)},o=function(I){var T=n(I);return T.substr(0,1).toUpperCase()+T.substr(1)},i=function(I,T){return function(O,M){var L=(M=M||{}).separator||"_",G=M.split||/(?=[A-Z])/;return O.split(G).join(L)}(I,T).toLowerCase()},s=Object.prototype.toString,a=function(I){return typeof I=="function"},l=function(I){return I===Object(I)},u=function(I){return s.call(I)=="[object Array]"},h=function(I){return s.call(I)=="[object Date]"},p=function(I){return s.call(I)=="[object RegExp]"},y=function(I){return s.call(I)=="[object Boolean]"},w=function(I){return(I-=0)==I},v=function(I,T){var O=T&&"process"in T?T.process:T;return typeof O!="function"?I:function(M,L){return O(M,I,L)}},S={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(I,T){return r(v(n,T),I)},decamelizeKeys:function(I,T){return r(v(i,T),I,T)},pascalizeKeys:function(I,T){return r(v(o,T),I)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=S:t.humps=S})(_H)}).decamelize,EH=R8(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},t.apply(this,arguments)}e.exports=t}),SH=function(e){if(Array.isArray(e))return e},CH=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=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){o=!0,i=l}finally{try{n||a.return==null||a.return()}finally{if(o)throw i}}return r}},A8=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},TH=function(e,t){if(e){if(typeof e=="string")return A8(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)?A8(e,t):void 0}},PH=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},OH=function(e,t){return SH(e)||CH(e,t)||TH(e,t)||PH()},DH=function(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},IH=function(e,t){if(e==null)return{};var r,n,o=DH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},AH=(0,mr.createContext)(null);function Wb(e){var t=e.root,r=e.children;return(0,M8.createPortal)(r,t)}function MH(e){var t=(0,mr.forwardRef)(function(r,n){var o,i,s=r.mode,a=r.delegatesFocus,l=r.styleSheets,u=r.ssr,h=r.children,p=IH(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(i=(0,mr.useRef)((o=n)&&o.current),(0,mr.useEffect)(function(){o&&(o.current=i.current)},[o]),i),w=(0,mr.useState)(null),v=OH(w,2),S=v[0],I=v[1],T="node_".concat(s).concat(a);return(0,mr.useLayoutEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),u){var O=y.current.shadowRoot;return void I(O)}var M=y.current.attachShadow({mode:s,delegatesFocus:a});l.length>0&&(M.adoptedStyleSheets=l),I(M)}catch(L){(function(G){var J=G.error,V=G.styleSheets,q=G.root;switch(J.name){case"NotSupportedError":V.length>0&&(q.adoptedStyleSheets=V);break;default:throw J}})({error:L,styleSheets:l,root:S})}},[n,y,l]),mr.default.createElement(mr.default.Fragment,null,mr.default.createElement(e.tag,EH({key:T,ref:y},p),(S||u)&&mr.default.createElement(AH.Provider,{value:S},u?mr.default.createElement("template",{shadowroot:"open"},e.render({root:S,ssr:u,children:h})):mr.default.createElement(Wb,{root:S},e.render({root:S,ssr:u,children:h})))))});return t.propTypes={mode:Oi.default.oneOf(["open","closed"]),delegatesFocus:Oi.default.bool,styleSheets:Oi.default.arrayOf(Oi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:Oi.default.bool,children:Oi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Wb.propTypes={root:Oi.default.object.isRequired,children:Oi.default.node},Wb.defaultProps={children:null};var Gb=new Map;function RH(){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,o){var i=xH(o,{separator:"-"}),s="".concat(t,"-").concat(i);return Gb.has(s)||Gb.set(s,MH({tag:i,render:r})),Gb.get(s)}})}var NH=RH(),N8=NH;c();d();f();var kH=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
|
|
24
|
-
/*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;top:0}.inset-0,.inset-x-0{left:0;right:0}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-1{margin-top:-.25rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-2\\.5{margin-left:.625rem}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-\\[2px\\]{margin-top:2px}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-\\[6\\/7\\]{aspect-ratio:6/7}.aspect-square{aspect-ratio:1/1}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.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-6{height:1.5rem}.h-8{height:2rem}.h-\\[202px\\]{height:202px}.h-auto{height:auto}.h-px{height:1px}.max-h-\\[var\\(--max-h\\2c _0px\\)\\]{max-height:var(--max-h,0)}.min-h-full{min-height:100%}.w-10{width:2.5rem}.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-6{width:1.5rem}.w-8{width:2rem}.w-\\[202px\\]{width:202px}.w-\\[34px\\]{width:34px}.w-auto{width:auto}.w-full{width:100%}.min-w-\\[calc\\(100vw_-_48px\\)\\]{min-width:calc(100vw - 48px)}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.basis-4{flex-basis:1rem}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.select-none{-webkit-user-select:none;user-select:none}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*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))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(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-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}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-0d151d\\/5{background-color:rgba(13,21,29,.05)}.bg-\\[\\#fecaca\\]{--tw-bg-opacity:1;background-color:rgb(254 202 202/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-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#FF6848\\]{--tw-gradient-from:#ff6848;--tw-gradient-to:rgba(255,104,72,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\\[\\#4940E0\\]{--tw-gradient-to:#4940e0}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.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}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-0d151d\\/70{color:rgba(13,21,29,.7)}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.caret-transparent{caret-color:transparent}.opacity-0{opacity:0}.opacity-100{opacity:1}.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-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0}.ring{--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)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--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)}.ring-black\\/5{--tw-ring-color:rgba(0,0,0,.05)}.ring-transparent{--tw-ring-color:transparent}.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)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.placeholder\\:text-9eafc0::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.placeholder\\:text-9eafc0::placeholder{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.focus-within\\:border-0d151d:focus-within{--tw-border-opacity:1;border-color:rgb(13 21 29/var(--tw-border-opacity))}.focus-within\\:bg-white:focus-within{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:bg-transparent:focus{background-color:transparent}.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-0d151d:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(13 21 29/var(--tw-ring-opacity))}.focus\\:ring-5b52f3:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(91 82 243/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-transparent:focus{--tw-ring-color:transparent}.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\\:cursor-wait:disabled{cursor:wait}.disabled\\:bg-d3dfea:disabled{--tw-bg-opacity:1;background-color:rgb(211 223 234/var(--tw-bg-opacity))}.disabled\\:text-gray-900:disabled{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.dark .dark\\:border-black\\/10{border-color:rgba(0,0,0,.1)}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-ece8fb\\/10{background-color:rgba(236,232,251,.1)}.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-596673{--tw-text-opacity:1;color:rgb(89 102 115/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:text-white\\/70{color:hsla(0,0%,100%,.7)}.dark .dark\\:focus-within\\:border-white:focus-within{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\\:focus-within\\:bg-transparent:focus-within{background-color:transparent}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}.dark .dark\\:focus\\:bg-ece8fb\\/25:focus{background-color:rgba(236,232,251,.25)}.dark .dark\\:disabled\\:bg-29343f:disabled{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:414px){.xs\\:w-12{width:3rem}}@media (min-width:640px){.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:block{display:block}.md\\:hidden{display:none}.md\\:max-h-96{max-height:24rem}.md\\:min-w-\\[20rem\\]{min-width:20rem}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}.\\[\\&_\\*\\]\\:text-black *{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:\\[\\&_\\*\\]\\:text-white *{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}`,k8=()=>g.createElement("style",null,kH);c();d();f();var Tm=ue(we(),1),LH=()=>{let[e,t]=(0,Tm.useState)("desktop");return(0,Tm.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=o=>t(o.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},su=LH;c();d();f();var FH=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),au=FH;c();d();f();c();d();f();c();d();f();c();d();f();var Yb=ue(we(),1),Ma=ue(we(),1);c();d();f();var L8=ue(we(),1),lu=(0,L8.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var Pm=ue(we(),1),Ia=(0,Pm.createContext)({});function F8(){return(0,Pm.useContext)(Ia).visualElement}c();d();f();var uu=ue(we(),1);c();d();f();var $8=ue(we(),1),Qo=(0,$8.createContext)(null);c();d();f();var Om=ue(we(),1);c();d();f();var mo=typeof document<"u";var Ds=mo?Om.useLayoutEffect:Om.useEffect;c();d();f();var U8=ue(we(),1),Dm=(0,U8.createContext)({strict:!1});function B8(e,t,r,n){let o=F8(),i=(0,uu.useContext)(Dm),s=(0,uu.useContext)(Qo),a=(0,uu.useContext)(lu).reducedMotion,l=(0,uu.useRef)();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let u=l.current;return Ds(()=>{u&&u.render()}),Ds(()=>{u&&u.animationState&&u.animationState.animateChanges()}),Ds(()=>()=>u&&u.notify("Unmount"),[]),u}c();d();f();var j8=ue(we(),1);c();d();f();function Di(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function V8(e,t,r){return(0,j8.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Di(r)&&(r.current=n))},[t])}c();d();f();var Am=ue(we(),1);c();d();f();c();d();f();function Ii(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function Is(e){return typeof e=="object"&&typeof e.start=="function"}var $H=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Aa(e){return Is(e.animate)||$H.some(t=>Ii(e[t]))}function Im(e){return Boolean(Aa(e)||e.variants)}function z8(e,t){if(Aa(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Ii(r)?r:void 0,animate:Ii(n)?n:void 0}}return e.inherit!==!1?t:{}}function K8(e){let{initial:t,animate:r}=z8(e,(0,Am.useContext)(Ia));return(0,Am.useMemo)(()=>({initial:t,animate:r}),[H8(t),H8(r)])}function H8(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Ai=e=>({isEnabled:t=>e.some(r=>!!t[r])}),As={measureLayout:Ai(["layout","layoutId","drag"]),animation:Ai(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ai(["exit"]),drag:Ai(["drag","dragControls"]),focus:Ai(["whileFocus"]),hover:Ai(["whileHover","onHoverStart","onHoverEnd"]),tap:Ai(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ai(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ai(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function q8(e){for(let t in e)t==="projectionNodeConstructor"?As.projectionNodeConstructor=e[t]:As[t].Component=e[t]}c();d();f();c();d();f();var G8=ue(we(),1);function Ms(e){let t=(0,G8.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var Rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var UH=1;function W8(){return Ms(()=>{if(Rs.hasEverUpdated)return UH++})}c();d();f();var Y8=ue(we(),1),cu=(0,Y8.createContext)({});c();d();f();var X8=ue(we(),1),Mm=class extends X8.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 Z8=ue(we(),1),Rm=(0,Z8.createContext)({});c();d();f();var J8=Symbol.for("motionComponentSymbol");function Q8({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:o,Component:i}){e&&q8(e);function s(l,u){let h=ve(Q(Q({},(0,Ma.useContext)(lu)),l),{layoutId:BH(l)}),{isStatic:p}=h,y=null,w=K8(l),v=p?void 0:W8(),S=o(l,p);if(!p&&mo){w.visualElement=B8(i,S,h,t);let I=(0,Ma.useContext)(Dm).strict,T=(0,Ma.useContext)(Rm);w.visualElement&&(y=w.visualElement.loadFeatures(h,I,e,v,r||As.projectionNodeConstructor,T))}return Yb.createElement(Mm,{visualElement:w.visualElement,props:h},y,Yb.createElement(Ia.Provider,{value:w},n(i,l,v,V8(S,w.visualElement,u),S,p,w.visualElement)))}let a=(0,Ma.forwardRef)(s);return a[J8]=i,a}function BH({layoutId:e}){let t=(0,Ma.useContext)(cu).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function eT(e){function t(n,o={}){return Q8(e(n,o))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}c();d();f();c();d();f();c();d();f();var tT=["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 fu(e){return typeof e!="string"||e.includes("-")?!1:!!(tT.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var wT=ue(we(),1);c();d();f();var lT=ue(we(),1);c();d();f();c();d();f();var du={};function rT(e){Object.assign(du,e)}c();d();f();var hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],On=new Set(hu);function Nm(e,{layout:t,layoutId:r}){return On.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!du[e]||e==="opacity")}c();d();f();var Mr=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var jH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VH=(e,t)=>hu.indexOf(e)-hu.indexOf(t);function nT({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},o,i){let s="";t.sort(VH);for(let a of t)s+=`${jH[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):n&&o&&(s="none"),s}c();d();f();function km(e){return e.startsWith("--")}c();d();f();var oT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var Fo=(e,t,r)=>Math.min(Math.max(r,e),t);var go={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ns=ve(Q({},go),{transform:e=>Fo(0,1,e)}),ad=ve(Q({},go),{default:1});c();d();f();c();d();f();var ks=e=>Math.round(e*1e5)/1e5,Ls=/(-)?([\d]*\.?[\d])+/g,Lm=/(#[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,iT=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Mi(e){return typeof e=="string"}var ld=e=>({test:t=>Mi(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ei=ld("deg"),un=ld("%"),Be=ld("px"),sT=ld("vh"),aT=ld("vw"),Xb=ve(Q({},un),{parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)});c();d();f();var Zb=ve(Q({},go),{transform:Math.round});var Fm={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,radius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,size:Be,top:Be,right:Be,bottom:Be,left:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,rotate:ei,rotateX:ei,rotateY:ei,rotateZ:ei,scale:ad,scaleX:ad,scaleY:ad,scaleZ:ad,skew:ei,skewX:ei,skewY:ei,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:Ns,originX:Xb,originY:Xb,originZ:Be,zIndex:Zb,fillOpacity:Ns,strokeOpacity:Ns,numOctaves:Zb};function pu(e,t,r,n){let{style:o,vars:i,transform:s,transformKeys:a,transformOrigin:l}=e;a.length=0;let u=!1,h=!1,p=!0;for(let y in t){let w=t[y];if(km(y)){i[y]=w;continue}let v=Fm[y],S=oT(w,v);if(On.has(y)){if(u=!0,s[y]=S,a.push(y),!p)continue;w!==(v.default||0)&&(p=!1)}else y.startsWith("origin")?(h=!0,l[y]=S):o[y]=S}if(t.transform||(u||n?o.transform=nT(e,r,p,n):o.transform&&(o.transform="none")),h){let{originX:y="50%",originY:w="50%",originZ:v=0}=l;o.transformOrigin=`${y} ${w} ${v}`}}c();d();f();var mu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Jb(e,t,r){for(let n in t)!Mr(t[n])&&!Nm(n,r)&&(e[n]=t[n])}function zH({transformTemplate:e},t,r){return(0,lT.useMemo)(()=>{let n=mu();return pu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function HH(e,t,r){let n=e.style||{},o={};return Jb(o,n,e),Object.assign(o,zH(e,t,r)),e.transformValues?e.transformValues(o):o}function uT(e,t,r){let n={},o=HH(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=o,n}c();d();f();c();d();f();var KH=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],qH=["whileTap","onTap","onTapStart","onTapCancel"],GH=["onPan","onPanStart","onPanSessionStart","onPanEnd"],WH=["whileInView","onViewportEnter","onViewportLeave","viewport"],YH=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",...WH,...qH,...KH,...GH]);function ud(e){return YH.has(e)}var dT=e=>!ud(e);function tK(e){!e||(dT=t=>t.startsWith("on")?!ud(t):e(t))}try{tK(fT().default)}catch(e){}function hT(e,t,r){let n={};for(let o in e)(dT(o)||r===!0&&ud(o)||!t&&!ud(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}c();d();f();var yT=ue(we(),1);c();d();f();c();d();f();function pT(e,t,r){return typeof e=="string"?e:Be.transform(t+r*e)}function mT(e,t,r){let n=pT(t,e.x,e.width),o=pT(r,e.y,e.height);return`${n} ${o}`}c();d();f();var rK={offset:"stroke-dashoffset",array:"stroke-dasharray"},nK={offset:"strokeDashoffset",array:"strokeDasharray"};function gT(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?rK:nK;e[i.offset]=Be.transform(-n);let s=Be.transform(t),a=Be.transform(r);e[i.array]=`${s} ${a}`}function gu(e,y,u,h,p){var w=y,{attrX:t,attrY:r,originX:n,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:a=0}=w,l=Pe(w,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(pu(e,l,u,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:S,dimensions:I}=e;v.transform&&(I&&(S.transform=v.transform),delete v.transform),I&&(n!==void 0||o!==void 0||S.transform)&&(S.transformOrigin=mT(I,n!==void 0?n:.5,o!==void 0?o:.5)),t!==void 0&&(v.x=t),r!==void 0&&(v.y=r),i!==void 0&&gT(v,i,s,a,!1)}c();d();f();var $m=()=>ve(Q({},mu()),{attrs:{}});c();d();f();var yu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vT(e,t,r,n){let o=(0,yT.useMemo)(()=>{let i=$m();return gu(i,t,{enableHardwareAcceleration:!1},yu(n),e.transformTemplate),ve(Q({},i.attrs),{style:Q({},i.style)})},[t]);if(e.style){let i={};Jb(i,e.style,e),o.style=Q(Q({},i),o.style)}return o}function bT(e=!1){return(r,n,o,i,{latestValues:s},a)=>{let u=(fu(r)?vT:uT)(n,s,a,r),h=hT(n,typeof r=="string",e),p=ve(Q(Q({},h),u),{ref:i});return o&&(p["data-projection-id"]=o),(0,wT.createElement)(r,p)}}c();d();f();c();d();f();c();d();f();var vu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function Um(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let i in r)e.style.setProperty(i,r[i])}c();d();f();var Bm=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 jm(e,t,r,n){Um(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(Bm.has(o)?o:vu(o),t.attrs[o])}c();d();f();c();d();f();function wu(e){let{style:t}=e,r={};for(let n in t)(Mr(t[n])||Nm(n,e))&&(r[n]=t[n]);return r}function Vm(e){let t=wu(e);for(let r in e)if(Mr(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var t_=ue(we(),1);c();d();f();function bu(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}c();d();f();c();d();f();c();d();f();var Ra=e=>Array.isArray(e);var _T=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),xT=e=>Ra(e)?e[e.length-1]||0:e;function _u(e){let t=Mr(e)?e.get():e;return _T(t)?t.toValue():t}function oK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let s={latestValues:iK(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var zm=e=>(t,r)=>{let n=(0,t_.useContext)(Ia),o=(0,t_.useContext)(Qo),i=()=>oK(e,t,n,o);return r?i():Ms(i)};function iK(e,t,r,n){let o={},i=n(e);for(let y in i)o[y]=_u(i[y]);let{initial:s,animate:a}=e,l=Aa(e),u=Im(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 p=h?a:s;return p&&typeof p!="boolean"&&!Is(p)&&(Array.isArray(p)?p:[p]).forEach(w=>{let v=bu(e,w);if(!v)return;let O=v,{transitionEnd:S,transition:I}=O,T=Pe(O,["transitionEnd","transition"]);for(let M in T){let L=T[M];if(Array.isArray(L)){let G=h?L.length-1:0;L=L[G]}L!==null&&(o[M]=L)}for(let M in S)o[M]=S[M]}),o}var ET={useVisualState:zm({scrapeMotionValuesFromProps:Vm,createRenderState:$m,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}gu(r,n,{enableHardwareAcceleration:!1},yu(t.tagName),e.transformTemplate),jm(t,r)}})};c();d();f();var ST={useVisualState:zm({scrapeMotionValuesFromProps:wu,createRenderState:mu})};function CT(e,{forwardMotionProps:t=!1},r,n,o){let i=fu(e)?ET:ST;return ve(Q({},i),{preloadedFeatures:r,useRender:bT(t),createVisualElement:n,projectionNodeConstructor:o,Component:e})}c();d();f();c();d();f();c();d();f();var wt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(wt||(wt={}));c();d();f();var TT=ue(we(),1);function Na(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function cd(e,t,r,n){(0,TT.useEffect)(()=>{let o=e.current;if(r&&o)return Na(o,t,r,n)},[e,t,r,n])}function PT({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(wt.Focus,!0)},o=()=>{r&&r.setActive(wt.Focus,!1)};cd(t,"focus",e?n:void 0),cd(t,"blur",e?o:void 0)}c();d();f();c();d();f();function Hm(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Km(e){return!!e.touches}c();d();f();c();d();f();function sK(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var aK={pageX:0,pageY:0};function lK(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||aK;return{x:n[t+"X"],y:n[t+"Y"]}}function uK(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function fd(e,t="page"){return{point:Km(e)?lK(e,t):uK(e,t)}}var r_=(e,t=!1)=>{let r=n=>e(n,fd(n));return t?sK(r):r};c();d();f();var OT=()=>mo&&window.onpointerdown===null,DT=()=>mo&&window.ontouchstart===null,IT=()=>mo&&window.onmousedown===null;var cK={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},fK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function AT(e){return OT()?e:DT()?fK[e]:IT()?cK[e]:e}function Ri(e,t,r,n){return Na(e,AT(t),r_(r,t==="pointerdown"),n)}function ka(e,t,r,n){return cd(e,AT(t),r&&r_(r,t==="pointerdown"),n)}c();d();f();function NT(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var MT=NT("dragHorizontal"),RT=NT("dragVertical");function n_(e){let t=!1;if(e==="y")t=RT();else if(e==="x")t=MT();else{let r=MT(),n=RT();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function qm(){let e=n_(!0);return e?(e(),!1):!0}function kT(e,t,r){return(n,o)=>{!Hm(n)||qm()||(e.animationState&&e.animationState.setActive(wt.Hover,t),r&&r(n,o))}}function LT({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){ka(n,"pointerenter",e||r?kT(n,!0,e):void 0,{passive:!e}),ka(n,"pointerleave",t||r?kT(n,!1,t):void 0,{passive:!t})}c();d();f();var i_=ue(we(),1);c();d();f();var o_=(e,t)=>t?e===t?!0:o_(e,t.parentElement):!1;c();d();f();var FT=ue(we(),1);function xu(e){return(0,FT.useEffect)(()=>()=>e(),[])}c();d();f();var dK=(e,t)=>r=>t(e(r)),Fs=(...e)=>e.reduce(dK);function $T({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:o}){let i=e||t||r||n,s=(0,i_.useRef)(!1),a=(0,i_.useRef)(null),l={passive:!(t||e||r||w)};function u(){a.current&&a.current(),a.current=null}function h(){return u(),s.current=!1,o.animationState&&o.animationState.setActive(wt.Tap,!1),!qm()}function p(v,S){!h()||(o_(o.current,v.target)?e&&e(v,S):r&&r(v,S))}function y(v,S){!h()||r&&r(v,S)}function w(v,S){u(),!s.current&&(s.current=!0,a.current=Fs(Ri(window,"pointerup",p,l),Ri(window,"pointercancel",y,l)),o.animationState&&o.animationState.setActive(wt.Tap,!0),t&&t(v,S))}ka(o,"pointerdown",i?w:void 0,l),xu(u)}c();d();f();c();d();f();var hK="production",Eu=typeof process>"u"||process.env===void 0?hK:"production";var dd=ue(we(),1);c();d();f();var UT=new Set;function Gm(e,t,r){e||UT.has(t)||(console.warn(t),r&&console.warn(r),UT.add(t))}c();d();f();var a_=new WeakMap,s_=new WeakMap,pK=e=>{let t=a_.get(e.target);t&&t(e)},mK=e=>{e.forEach(pK)};function gK(r){var n=r,{root:e}=n,t=Pe(n,["root"]);let o=e||document;s_.has(o)||s_.set(o,{});let i=s_.get(o),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(mK,Q({root:e},t))),i[s]}function BT(e,t,r){let n=gK(t);return a_.set(e,r),n.observe(e),()=>{a_.delete(e),n.unobserve(e)}}function jT({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:o={}}){let i=(0,dd.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?wK:vK)(s,i.current,e,o)}var yK={some:0,all:1};function vK(e,t,r,{root:n,margin:o,amount:i="some",once:s}){(0,dd.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:o,threshold:typeof i=="number"?i:yK[i]},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(wt.InView,h);let p=r.getProps(),y=h?p.onViewportEnter:p.onViewportLeave;y&&y(u)};return BT(r.current,a,l)},[e,n,o,i])}function wK(e,t,r,{fallback:n=!0}){(0,dd.useEffect)(()=>{!e||!n||(Eu!=="production"&&Gm(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:o}=r.getProps();o&&o(null),r.animationState&&r.animationState.setActive(wt.InView,!0)}))},[e])}c();d();f();var $o=e=>t=>(e(t),null);var VT={inView:$o(jT),tap:$o($T),focus:$o(PT),hover:$o(LT)};c();d();f();var Sd=ue(we(),1);c();d();f();var Su=ue(we(),1);function Wm(){let e=(0,Su.useContext)(Qo);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,Su.useId)();return(0,Su.useEffect)(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}c();d();f();c();d();f();function l_(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 zT=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var HT=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var qn={delta:0,timestamp:0};c();d();f();c();d();f();var u_=16.666666666666668,bK=typeof performance<"u"?()=>performance.now():()=>Date.now(),c_=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bK()),u_);c();d();f();function KT(e){let t=[],r=[],n=0,o=!1,i=!1,s=new WeakSet,a={schedule:(l,u=!1,h=!1)=>{let p=h&&o,y=p?t:r;return u&&s.add(l),y.indexOf(l)===-1&&(y.push(l),p&&o&&(n=t.length)),l},cancel:l=>{let u=r.indexOf(l);u!==-1&&r.splice(u,1),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!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())}o=!1,i&&(i=!1,a.process(l))}};return a}var _K=40,f_=!0,hd=!1,d_=!1,pd=["read","update","preRender","render","postRender"],Ym=pd.reduce((e,t)=>(e[t]=KT(()=>hd=!0),e),{}),Wt=pd.reduce((e,t)=>{let r=Ym[t];return e[t]=(n,o=!1,i=!1)=>(hd||EK(),r.schedule(n,o,i)),e},{}),Gn=pd.reduce((e,t)=>(e[t]=Ym[t].cancel,e),{}),Xm=pd.reduce((e,t)=>(e[t]=()=>Ym[t].process(qn),e),{}),xK=e=>Ym[e].process(qn),qT=e=>{hd=!1,qn.delta=f_?u_:Math.max(Math.min(e-qn.timestamp,_K),1),qn.timestamp=e,d_=!0,pd.forEach(xK),d_=!1,hd&&(f_=!1,c_(qT))},EK=()=>{hd=!0,f_=!0,d_||c_(qT)};c();d();f();c();d();f();function Cu(e,t){e.indexOf(t)===-1&&e.push(t)}function Tu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var $s=class{constructor(){this.subscriptions=[]}add(t){return Cu(this.subscriptions,t),()=>Tu(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function Pu(e,t){return t?e*(1e3/t):0}var SK=e=>!isNaN(parseFloat(e)),h_=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;let{delta:i,timestamp:s}=qn;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Wt.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()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Wt.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=SK(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new $s),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?Pu(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 ti(e,t){return new h_(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Ou=(e,t)=>r=>Boolean(Mi(r)&&iT.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Zm=(e,t,r)=>n=>{if(!Mi(n))return n;let[o,i,s,a]=n.match(Ls);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var CK=e=>Fo(0,255,e),p_=ve(Q({},go),{transform:e=>Math.round(CK(e))}),ri={test:Ou("rgb","red"),parse:Zm("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+p_.transform(e)+", "+p_.transform(t)+", "+p_.transform(r)+", "+ks(Ns.transform(n))+")"};function TK(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var md={test:Ou("#"),parse:TK,transform:ri.transform};c();d();f();var Us={test:Ou("hsl","hue"),parse:Zm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+un.transform(ks(t))+", "+un.transform(ks(r))+", "+ks(Ns.transform(n))+")"};var gr={test:e=>ri.test(e)||md.test(e)||Us.test(e),parse:e=>ri.test(e)?ri.parse(e):Us.test(e)?Us.parse(e):md.parse(e),transform:e=>Mi(e)?e:e.hasOwnProperty("red")?ri.transform(e):Us.transform(e)};var GT="${c}",WT="${n}";function PK(e){var t,r;return isNaN(e)&&Mi(e)&&(((t=e.match(Ls))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Lm))===null||r===void 0?void 0:r.length)||0)>0}function gd(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,o=e.match(Lm);o&&(r=o.length,e=e.replace(Lm,GT),t.push(...o.map(gr.parse)));let i=e.match(Ls);return i&&(n=i.length,e=e.replace(Ls,WT),t.push(...i.map(go.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function YT(e){return gd(e).values}function XT(e){let{values:t,numColors:r,tokenised:n}=gd(e),o=t.length;return i=>{let s=n;for(let a=0;a<o;a++)s=s.replace(a<r?GT:WT,a<r?gr.transform(i[a]):ks(i[a]));return s}}var OK=e=>typeof e=="number"?0:e;function DK(e){let t=YT(e);return XT(e)(t.map(OK))}var cn={test:PK,parse:YT,createTransformer:XT,getAnimatableNone:DK};c();d();f();c();d();f();var IK=new Set(["brightness","contrast","saturate","opacity"]);function AK(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Ls)||[];if(!n)return e;let o=r.replace(n,""),i=IK.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var MK=/([a-z-]*)\(.*?\)/g,yd=ve(Q({},cn),{getAnimatableNone:e=>{let t=e.match(MK);return t?t.map(AK).join(" "):e}});c();d();f();var RK=ve(Q({},Fm),{color:gr,backgroundColor:gr,outlineColor:gr,fill:gr,stroke:gr,borderColor:gr,borderTopColor:gr,borderRightColor:gr,borderBottomColor:gr,borderLeftColor:gr,filter:yd,WebkitFilter:yd}),Du=e=>RK[e];function Iu(e,t){var r;let n=Du(e);return n!==yd&&(n=cn),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Jm=e=>t=>t.test(e);c();d();f();var ZT={test:e=>e==="auto",parse:e=>e};var m_=[go,Be,un,ei,aT,sT,ZT],Au=e=>m_.find(Jm(e));var NK=[...m_,gr,cn],JT=e=>NK.find(Jm(e));c();d();f();function kK(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function LK(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function La(e,t,r){let n=e.getProps();return bu(n,t,r!==void 0?r:n.custom,kK(e),LK(e))}function FK(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ti(r))}function QT(e,t){let r=La(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:o={}}=s,i=Pe(s,["transitionEnd","transition"]);i=Q(Q({},i),n);for(let a in i){let l=xT(i[a]);FK(e,a,l)}}function eP(e,t,r){var n,o;let i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(!!s)for(let a=0;a<s;a++){let l=i[a],u=t[l],h=null;Array.isArray(u)&&(h=u[0]),h===null&&(h=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),h!=null&&(typeof h=="string"&&(zT(h)||HT(h))?h=parseFloat(h):!JT(h)&&cn.test(u)&&(h=Iu(l,u)),e.addValue(l,ti(h,{owner:e})),r[l]===void 0&&(r[l]=h),h!==null&&e.setBaseTarget(l,h))}}function $K(e,t){return t?(t[e]||t.default||t).from:void 0}function tP(e,t,r){var n;let o={};for(let i in e){let s=$K(i,t);o[i]=s!==void 0?s:(n=r.getValue(i))===null||n===void 0?void 0:n.get()}return o}c();d();f();function Fa(e){return Boolean(Mr(e)&&e.add)}c();d();f();c();d();f();var rP=(e,t)=>`${e}: ${t}`;function nP(e,t){let{MotionAppearAnimations:r}=window,n=rP(e,On.has(t)?"transform":t),o=r&&r.get(n);return o?(Wt.render(()=>{try{o.cancel(),r.delete(n)}catch(i){}}),o.currentTime||0):0}c();d();f();var UK="framerAppearId",oP="data-"+vu(UK);c();d();f();c();d();f();var Mu=function(){},Lr=function(){};c();d();f();var Ru=e=>e*1e3;c();d();f();var iP={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Nu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var ku=e=>t=>1-e(1-t);var Qm=e=>e*e,sP=ku(Qm),vd=Nu(Qm);c();d();f();c();d();f();var bt=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function g_(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 aP({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=g_(l,a,e+1/3),i=g_(l,a,e),s=g_(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}var y_=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},BK=[md,ri,Us],jK=e=>BK.find(t=>t.test(e));function lP(e){let t=jK(e);Lr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Us&&(r=aP(r)),r}var e0=(e,t)=>{let r=lP(e),n=lP(t),o=Q({},r);return i=>(o.red=y_(r.red,n.red,i),o.green=y_(r.green,n.green,i),o.blue=y_(r.blue,n.blue,i),o.alpha=bt(r.alpha,n.alpha,i),ri.transform(o))};c();d();f();function uP(e,t){return typeof e=="number"?r=>bt(e,t,r):gr.test(e)?e0(e,t):w_(e,t)}var v_=(e,t)=>{let r=[...e],n=r.length,o=e.map((i,s)=>uP(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}},cP=(e,t)=>{let r=Q(Q({},e),t),n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=uP(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}},w_=(e,t)=>{let r=cn.createTransformer(t),n=gd(e),o=gd(t);return n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Fs(v_(n.values,o.values),r):(Mu(!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 $a=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var fP=(e,t)=>r=>bt(e,t,r);function VK(e){return typeof e=="number"?fP:typeof e=="string"?gr.test(e)?e0:w_:Array.isArray(e)?v_:typeof e=="object"?cP:fP}function zK(e,t,r){let n=[],o=r||VK(e[0]),i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]:t;a=Fs(l,a)}n.push(a)}return n}function t0(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;Lr(i===t.length,"Both input and output ranges must be the same length"),Lr(!n||!Array.isArray(n)||n.length===i-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[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=zK(t,n,o),a=s.length,l=u=>{let h=0;if(a>1)for(;h<e.length-2&&!(u<e[h+1]);h++);let p=$a(e[h],e[h+1],u);return s[h](p)};return r?u=>l(Fo(e[0],e[i-1],u)):l}c();d();f();c();d();f();c();d();f();var Lu=e=>e;var dP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,HK=1e-7,KK=12;function qK(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=dP(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>HK&&++a<KK);return s}function r0(e,t,r,n){if(e===t&&r===n)return Lu;let o=i=>qK(i,0,1,e,r);return i=>i===0||i===1?i:dP(o(i),t,n)}c();d();f();var b_=e=>1-Math.sin(Math.acos(e)),wd=ku(b_),hP=Nu(wd);c();d();f();var __=r0(.33,1.53,.69,.99),bd=ku(__),pP=Nu(bd);c();d();f();var mP=e=>(e*=2)<1?.5*bd(e):.5*(2-Math.pow(2,-10*(e-1)));var gP={linear:Lu,easeIn:Qm,easeInOut:vd,easeOut:sP,circIn:b_,circInOut:hP,circOut:wd,backIn:bd,backInOut:pP,backOut:__,anticipate:mP},x_=e=>{if(Array.isArray(e)){Lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return r0(t,r,n,o)}else if(typeof e=="string")return Lr(gP[e]!==void 0,`Invalid easing type '${e}'`),gP[e];return e},yP=e=>Array.isArray(e)&&typeof e[0]!="number";function GK(e,t){return e.map(()=>t||vd).splice(0,e.length-1)}function WK(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function YK(e,t){return e.map(r=>r*t)}function _d({keyframes:e,ease:t=vd,times:r,duration:n=300}){e=[...e];let o=_d[0],i=yP(t)?t.map(x_):x_(t),s={done:!1,value:o},a=YK(r&&r.length===_d.length?r:WK(e),n);function l(){return t0(a,e,{ease:Array.isArray(i)?i:GK(e,i)})}let u=l();return{next:h=>(s.value=u(h),s.done=h>=n,s),flipTarget:()=>{e.reverse(),u=l()}}}c();d();f();c();d();f();var E_=.001,XK=.01,vP=10,ZK=.05,JK=1;function wP({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Mu(e<=vP*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=Fo(ZK,JK,s),e=Fo(XK,vP,e/1e3),s<1?(o=u=>{let h=u*s,p=h*e,y=h-r,w=n0(u,s),v=Math.exp(-p);return E_-y/w*v},i=u=>{let p=u*s*e,y=p*r+r,w=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-p),S=n0(Math.pow(u,2),s);return(-o(u)+E_>0?-1:1)*((y-w)*v)/S}):(o=u=>{let h=Math.exp(-u*e),p=(u-r)*e+1;return-E_+h*p},i=u=>{let h=Math.exp(-u*e),p=(r-u)*(e*e);return h*p});let a=5/e,l=eq(o,i,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 QK=12;function eq(e,t,r){let n=r;for(let o=1;o<QK;o++)n=n-e(n)/t(n);return n}function n0(e,t){return e*Math.sqrt(1-t*t)}var tq=["duration","bounce"],rq=["stiffness","damping","mass"];function bP(e,t){return t.some(r=>e[r]!==void 0)}function nq(e){let t=Q({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!bP(e,rq)&&bP(e,tq)){let r=wP(e);t=ve(Q(Q({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var oq=5;function S_(o){var i=o,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=i,n=Pe(i,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],l={done:!1,value:s},{stiffness:u,damping:h,mass:p,velocity:y,duration:w,isResolvedFromDuration:v}=nq(n),S=iq,I=y?-(y/1e3):0,T=h/(2*Math.sqrt(u*p));function O(){let M=a-s,L=Math.sqrt(u/p)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),T<1){let G=n0(L,T);S=J=>{let V=Math.exp(-T*L*J);return a-V*((I+T*L*M)/G*Math.sin(G*J)+M*Math.cos(G*J))}}else if(T===1)S=G=>a-Math.exp(-L*G)*(M+(I+L*M)*G);else{let G=L*Math.sqrt(T*T-1);S=J=>{let V=Math.exp(-T*L*J),q=Math.min(G*J,300);return a-V*((I+T*L*M)*Math.sinh(q)+G*M*Math.cosh(q))/G}}}return O(),{next:M=>{let L=S(M);if(v)l.done=M>=w;else{let G=I;if(M!==0)if(T<1){let q=Math.max(0,M-oq);G=Pu(L-S(q),M-q)}else G=0;let J=Math.abs(G)<=t,V=Math.abs(a-L)<=r;l.done=J&&V}return l.value=l.done?a:L,l},flipTarget:()=>{I=-I,[s,a]=[a,s],O()}}}S_.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var iq=e=>0;c();d();f();function _P({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){let s=e[0],a={done:!1,value:s},l=r*t,u=s+l,h=i===void 0?u:i(u);return h!==u&&(l=h-s),{next:p=>{let y=-l*Math.exp(-p/n);return a.done=!(y>o||y<-o),a.value=a.done?h:h+y,a},flipTarget:()=>{}}}var sq={decay:_P,keyframes:_d,tween:_d,spring:S_};function xP(e,t,r=0){return e-t-r}function aq(e,t=0,r=0,n=!0){return n?xP(t+-e,t,r):t-(e-t)+r}function lq(e,t,r,n){return n?e>=t+r:e<=-r}var uq=e=>{let t=({delta:r})=>e(r);return{start:()=>Wt.update(t,!0),stop:()=>Gn.update(t)}};function Ua(S){var I=S,{duration:e,driver:t=uq,elapsed:r=0,repeat:n=0,repeatType:o="loop",repeatDelay:i=0,keyframes:s,autoplay:a=!0,onPlay:l,onStop:u,onComplete:h,onRepeat:p,onUpdate:y,type:w="keyframes"}=I,v=Pe(I,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var T,O;let M,L=0,G=e,J,V=!1,q=!0,ce,me=sq[s.length>2?"keyframes":w],fe=s[0],X=s[s.length-1];!((O=(T=me).needsInterpolation)===null||O===void 0)&&O.call(T,fe,X)&&(ce=t0([0,100],[fe,X],{clamp:!1}),s=[0,100]);let R=me(ve(Q({},v),{duration:e,keyframes:s}));function m(){L++,o==="reverse"?(q=L%2===0,r=aq(r,G,i,q)):(r=xP(r,G,i),o==="mirror"&&R.flipTarget()),V=!1,p&&p()}function b(){M.stop(),h&&h()}function E(k){if(q||(k=-k),r+=k,!V){let B=R.next(Math.max(0,r));J=B.value,ce&&(J=ce(J)),V=q?B.done:r<=0}y&&y(J),V&&(L===0&&(G=G!==void 0?G:r),L<n?lq(r,G,i,q)&&m():b())}function A(){l&&l(),M=t(E),M.start()}return a&&A(),{stop:()=>{u&&u(),M.stop()},sample:k=>R.next(Math.max(0,k))}}c();d();f();c();d();f();function EP(e){return!e||Array.isArray(e)||typeof e=="string"&&SP[e]}var xd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,SP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xd([0,.65,.55,1]),circOut:xd([.55,0,1,.45]),backIn:xd([.31,.01,.66,-.59]),backOut:xd([.33,1.53,.69,.99])};function CP(e){if(!!e)return Array.isArray(e)?xd(e):SP[e]}function TP(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){return e.animate({[t]:r,offset:l},{delay:n,duration:o,easing:CP(a),fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}var o0=10;function PP(e,t,i){var s=i,{onUpdate:r,onComplete:n}=s,o=Pe(s,["onUpdate","onComplete"]);let{keyframes:a,duration:l=.3,elapsed:u=0,ease:h}=o;if(o.type==="spring"||!EP(o.ease)){let y=Ua(o),w={done:!1,value:a[0]},v=[],S=0;for(;!w.done;)w=y.sample(S),v.push(w.value),S+=o0;a=v,l=S-o0,h="linear"}let p=TP(e.owner.current,t,a,ve(Q({},o),{delay:-u,duration:l,ease:h}));return p.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:y}=p;if(y){let w=Ua(o);e.setWithVelocity(w.sample(y-o0).value,w.sample(y).value,o0)}Wt.update(()=>p.cancel())}}c();d();f();c();d();f();function i0(e,t){let r=performance.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(Gn.read(n),e(i-t))};return Wt.read(n,!0),()=>Gn.read(n)}function OP({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let o=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?i0(o,-t):o()}c();d();f();function DP({keyframes:e,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:h,onUpdate:p,onComplete:y,onStop:w}){let v=e[0],S;function I(L){return r!==void 0&&L<r||n!==void 0&&L>n}function T(L){return r===void 0?n:n===void 0||Math.abs(r-L)<Math.abs(n-L)?r:n}function O(L){S==null||S.stop(),S=Ua(ve(Q({keyframes:[0,1],velocity:0},L),{driver:h,onUpdate:G=>{var J;p==null||p(G),(J=L.onUpdate)===null||J===void 0||J.call(L,G)},onComplete:y,onStop:w}))}function M(L){O(Q({type:"spring",stiffness:s,damping:a,restDelta:l},L))}if(I(v))M({velocity:t,keyframes:[v,T(v)]});else{let L=o*t+v;typeof u<"u"&&(L=u(L));let G=T(L),J=G===r?-1:1,V,q,ce=me=>{V=q,q=me,t=Pu(me-V,qn.delta),(J===1&&me>G||J===-1&&me<G)&&M({keyframes:[me,G],velocity:t})};O({type:"decay",keyframes:[v,0],velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:I(L)?ce:void 0})}return{stop:()=>S==null?void 0:S.stop()}}c();d();f();var Ba=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),s0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),C_=()=>({type:"keyframes",ease:"linear",duration:.3}),cq={type:"keyframes",duration:.8},IP={x:Ba,y:Ba,z:Ba,rotate:Ba,rotateX:Ba,rotateY:Ba,rotateZ:Ba,scaleX:s0,scaleY:s0,scale:s0,opacity:C_,backgroundColor:C_,color:C_,default:s0},AP=(e,{keyframes:t})=>t.length>2?cq:(IP[e]||IP.default)(t[1]);c();d();f();var Ed=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&cn.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function MP(h){var p=h,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l}=p,u=Pe(p,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(u).length}function T_(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function P_(e){return typeof e=="number"?0:Iu("",e)}function a0(e,t){return e[t]||e.default||e}function RP(e,t,r,n){let o=Ed(t,r),i=n.from!==void 0?n.from:e.get();return i==="none"&&o&&typeof r=="string"?i=Iu(t,r):T_(i)&&typeof r=="string"?i=P_(r):!Array.isArray(r)&&T_(r)&&typeof i=="string"&&(r=P_(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}c();d();f();var NP={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},O_={},D_={};for(let e in NP)D_[e]=()=>(O_[e]===void 0&&(O_[e]=NP[e]()),O_[e]);var fq=new Set(["opacity"]),Fu=(e,t,r,n={})=>o=>{let i=a0(n,e)||{},s=i.delay||n.delay||0,{elapsed:a=0}=n;a=a-Ru(s);let l=RP(t,e,r,i),u=l[0],h=l[l.length-1],p=Ed(e,u),y=Ed(e,h);Mu(p===y,`You are trying to animate ${e} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let w=ve(Q({keyframes:l,velocity:t.getVelocity()},i),{elapsed:a,onUpdate:T=>{t.set(T),i.onUpdate&&i.onUpdate(T)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}});if(!p||!y||iP.current||i.type===!1)return OP(w);if(i.type==="inertia"){let T=DP(w);return()=>T.stop()}MP(i)||(w=Q(Q({},w),AP(e,w))),w.duration&&(w.duration=Ru(w.duration)),w.repeatDelay&&(w.repeatDelay=Ru(w.repeatDelay));let v=t.owner,S=v&&v.current;if(D_.waapi()&&fq.has(e)&&!w.repeatDelay&&w.repeatType!=="mirror"&&w.damping!==0&&v&&S instanceof HTMLElement&&!v.getProps().onUpdate)return PP(t,e,w);{let T=Ua(w);return()=>T.stop()}};function kP(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>I_(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=I_(e,t,r);else{let o=typeof t=="function"?La(e,t,r.custom):t;n=LP(e,o,r)}return n.then(()=>e.notify("AnimationComplete",t))}function I_(e,t,r={}){var n;let o=La(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let s=o?()=>LP(e,o,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(u=0)=>{let{delayChildren:h=0,staggerChildren:p,staggerDirection:y}=i;return dq(e,t,h+u,p,y,r)}:()=>Promise.resolve(),{when:l}=i;if(l){let[u,h]=l==="beforeChildren"?[s,a]:[a,s];return u().then(h)}else return Promise.all([s(),a(r.delay)])}function LP(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,l=Pe(y,["transition","transitionEnd"]),u=e.getValue("willChange");n&&(s=n);let h=[],p=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(let w in l){let v=e.getValue(w),S=l[w];if(!v||S===void 0||p&&pq(p,w))continue;let I=Q({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&On.has(w)&&(I=ve(Q({},I),{type:!1,delay:0})),!v.hasAnimated){let O=e.getProps()[oP];O&&(I.elapsed=nP(O,w))}let T=v.start(Fu(w,v,S,I));Fa(u)&&(u.add(w),T=T.then(()=>u.remove(w))),h.push(T)}return Promise.all(h).then(()=>{a&&QT(e,a)})}function dq(e,t,r=0,n=0,o=1,i){let s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(hq).forEach((u,h)=>{s.push(I_(u,t,ve(Q({},i),{delay:r+l(h)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function hq(e,t){return e.sortNodePosition(t)}function pq({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var l0=[wt.Animate,wt.InView,wt.Focus,wt.Hover,wt.Tap,wt.Drag,wt.Exit],mq=[...l0].reverse(),gq=l0.length;function yq(e){return t=>Promise.all(t.map(({animation:r,options:n})=>kP(e,r,n)))}function FP(e){let t=yq(e),r=wq(),n=!0,o=(l,u)=>{let h=La(e,u);if(h){let p=h,{transition:y,transitionEnd:w}=p,v=Pe(p,["transition","transitionEnd"]);l=Q(Q(Q({},l),v),w)}return l};function i(l){t=l(e)}function s(l,u){let h=e.getProps(),p=e.getVariantContext(!0)||{},y=[],w=new Set,v={},S=1/0;for(let T=0;T<gq;T++){let O=mq[T],M=r[O],L=h[O]!==void 0?h[O]:p[O],G=Ii(L),J=O===u?M.isActive:null;J===!1&&(S=T);let V=L===p[O]&&L!==h[O]&&G;if(V&&n&&e.manuallyAnimateOnMount&&(V=!1),M.protectedKeys=Q({},v),!M.isActive&&J===null||!L&&!M.prevProp||Is(L)||typeof L=="boolean")continue;let q=vq(M.prevProp,L),ce=q||O===u&&M.isActive&&!V&&G||T>S&&G,me=Array.isArray(L)?L:[L],fe=me.reduce(o,{});J===!1&&(fe={});let{prevResolvedValues:X={}}=M,R=Q(Q({},X),fe),m=b=>{ce=!0,w.delete(b),M.needsAnimating[b]=!0};for(let b in R){let E=fe[b],A=X[b];v.hasOwnProperty(b)||(E!==A?Ra(E)&&Ra(A)?!l_(E,A)||q?m(b):M.protectedKeys[b]=!0:E!==void 0?m(b):w.add(b):E!==void 0&&w.has(b)?m(b):M.protectedKeys[b]=!0)}M.prevProp=L,M.prevResolvedValues=fe,M.isActive&&(v=Q(Q({},v),fe)),n&&e.blockInitialAnimation&&(ce=!1),ce&&!V&&y.push(...me.map(b=>({animation:b,options:Q({type:O},l)})))}if(w.size){let T={};w.forEach(O=>{let M=e.getBaseTarget(O);M!==void 0&&(T[O]=M)}),y.push({animation:T})}let I=Boolean(y.length);return n&&h.initial===!1&&!e.manuallyAnimateOnMount&&(I=!1),n=!1,I?t(y):Promise.resolve()}function a(l,u,h){var p;if(r[l].isActive===u)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(w=>{var v;return(v=w.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),r[l].isActive=u;let y=s(h,l);for(let w in r)r[w].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function vq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!l_(t,e):!1}function ja(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wq(){return{[wt.Animate]:ja(!0),[wt.InView]:ja(),[wt.Hover]:ja(),[wt.Tap]:ja(),[wt.Drag]:ja(),[wt.Focus]:ja(),[wt.Exit]:ja()}}var $P={animation:$o(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=FP(e)),Is(t)&&(0,Sd.useEffect)(()=>t.subscribe(e),[t])}),exit:$o(e=>{let{custom:t,visualElement:r}=e,[n,o]=Wm(),i=(0,Sd.useContext)(Qo);(0,Sd.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(wt.Exit,!n,{custom:i&&i.custom||t});s&&!n&&s.then(o)},[n])})};c();d();f();c();d();f();var $_=ue(we(),1);c();d();f();c();d();f();c();d();f();var UP=(e,t)=>Math.abs(e-t);function BP(e,t){let r=UP(e.x,t.x),n=UP(e.y,t.y);return Math.sqrt(r**2+n**2)}var $u=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=M_(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=BP(u.offset,{x:0,y:0})>=3;if(!h&&!p)return;let{point:y}=u,{timestamp:w}=qn;this.history.push(ve(Q({},y),{timestamp:w}));let{onStart:v,onMove:S}=this.handlers;h||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{if(this.lastMoveEvent=u,this.lastMoveEventInfo=A_(h,this.transformPagePoint),Hm(u)&&u.buttons===0){this.handlePointerUp(u,h);return}Wt.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();let{onEnd:p,onSessionEnd:y}=this.handlers,w=M_(A_(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,w),y&&y(u,w)},Km(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let o=fd(t),i=A_(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=qn;this.history=[ve(Q({},s),{timestamp:a})];let{onSessionStart:l}=r;l&&l(t,M_(i,this.history)),this.removeListeners=Fs(Ri(window,"pointermove",this.handlePointerMove),Ri(window,"pointerup",this.handlePointerUp),Ri(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gn.update(this.updatePoint)}};function A_(e,t){return t?{point:t(e.point)}:e}function jP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function M_({point:e},t){return{point:e,delta:jP(e,VP(t)),offset:jP(e,bq(t)),velocity:_q(t,.1)}}function bq(e){return e[0]}function VP(e){return e[e.length-1]}function _q(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=VP(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Ru(t)));)r--;if(!n)return{x:0,y:0};let i=(o.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};let s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function Fr(e){return e.max-e.min}function u0(e,t=0,r=.01){return Math.abs(e-t)<=r}function zP(e,t,r,n=.5){e.origin=n,e.originPoint=bt(t.min,t.max,e.origin),e.scale=Fr(r)/Fr(t),(u0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=bt(r.min,r.max,e.origin)-e.originPoint,(u0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Uu(e,t,r,n){zP(e.x,t.x,r.x,n==null?void 0:n.originX),zP(e.y,t.y,r.y,n==null?void 0:n.originY)}function HP(e,t,r){e.min=r.min+t.min,e.max=e.min+Fr(t)}function qP(e,t,r){HP(e.x,t.x,r.x),HP(e.y,t.y,r.y)}function KP(e,t,r){e.min=t.min-r.min,e.max=e.min+Fr(t)}function Bu(e,t,r){KP(e.x,t.x,r.x),KP(e.y,t.y,r.y)}function ZP(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?bt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?bt(r,e,n.max):Math.min(e,r)),e}function GP(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 JP(e,{top:t,left:r,bottom:n,right:o}){return{x:GP(e.x,r,o),y:GP(e.y,t,n)}}function WP(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 QP(e,t){return{x:WP(e.x,t.x),y:WP(e.y,t.y)}}function eO(e,t){let r=.5,n=Fr(e),o=Fr(t);return o>n?r=$a(t.min,t.max-n,e.min):n>o&&(r=$a(e.min,e.max-o,t.min)),Fo(0,1,r)}function tO(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 c0=.35;function rO(e=c0){return e===!1?e=0:e===!0&&(e=c0),{x:YP(e,"left","right"),y:YP(e,"top","bottom")}}function YP(e,t,r){return{min:XP(e,t),max:XP(e,r)}}function XP(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var nO=()=>({translate:0,scale:1,origin:0,originPoint:0}),ju=()=>({x:nO(),y:nO()}),oO=()=>({min:0,max:0}),er=()=>({x:oO(),y:oO()});c();d();f();function yo(e){return[e("x"),e("y")]}c();d();f();c();d();f();function f0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function iO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sO(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 R_(e){return e===void 0||e===1}function d0({scale:e,scaleX:t,scaleY:r}){return!R_(e)||!R_(t)||!R_(r)}function Ni(e){return d0(e)||N_(e)||e.z||e.rotate||e.rotateX||e.rotateY}function N_(e){return aO(e.x)||aO(e.y)}function aO(e){return e&&e!=="0%"}function Cd(e,t,r){let n=e-r,o=t*n;return r+o}function lO(e,t,r,n,o){return o!==void 0&&(e=Cd(e,o,n)),Cd(e,r,n)+t}function k_(e,t=0,r=1,n,o){e.min=lO(e.min,t,r,n,o),e.max=lO(e.max,t,r,n,o)}function L_(e,{x:t,y:r}){k_(e.x,t.translate,t.scale,t.originPoint),k_(e.y,r.translate,r.scale,r.originPoint)}function fO(e,t,r,n=!1){var o,i;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,((i=(o=a.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Va(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,L_(e,l)),n&&Ni(a.latestValues)&&Va(e,a.latestValues));t.x=uO(t.x),t.y=uO(t.y)}function uO(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ni(e,t){e.min=e.min+t,e.max=e.max+t}function cO(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,s=bt(e.min,e.max,i);k_(e,t[r],t[n],s,t.scale)}var xq=["x","scaleX","originX"],Eq=["y","scaleY","originY"];function Va(e,t){cO(e.x,t,xq),cO(e.y,t,Eq)}function F_(e,t){return f0(sO(e.getBoundingClientRect(),t))}function dO(e,t,r){let n=F_(e,r),{scroll:o}=t;return o&&(ni(n.x,o.offset.x),ni(n.y,o.offset.y)),n}var Sq=new WeakMap,p0=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=er(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(fd(a,"page").point)},o=(a,l)=>{var u;let{drag:h,dragPropagation:p,onDragStart:y}=this.getProps();h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=n_(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),yo(w=>{var v,S;let I=this.getAxisMotionValue(w).get()||0;if(un.test(I)){let T=(S=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||S===void 0?void 0:S.layoutBox[w];T&&(I=Fr(T)*(parseFloat(I)/100))}this.originPoint[w]=I}),y==null||y(a,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(wt.Drag,!0))},i=(a,l)=>{let{dragPropagation:u,dragDirectionLock:h,onDirectionLock:p,onDrag:y}=this.getProps();if(!u&&!this.openGlobalLock)return;let{offset:w}=l;if(h&&this.currentDirection===null){this.currentDirection=Cq(w),this.currentDirection!==null&&(p==null||p(this.currentDirection));return}this.updateAxis("x",l.point,w),this.updateAxis("y",l.point,w),this.visualElement.render(),y==null||y(a,l)},s=(a,l)=>this.stop(a,l);this.panSession=new $u(t,{onSessionStart:n,onStart:o,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i==null||i(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(wt.Drag,!1)}updateAxis(t,r,n){let{drag:o}=this.getProps();if(!n||!h0(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=ZP(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Di(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=JP(n.layoutBox,t):this.constraints=!1,this.elastic=rO(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&yo(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=tO(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Di(t))return!1;let n=t.current;Lr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=dO(n,o.root,this.visualElement.getTransformPagePoint()),s=QP(o.layout.layoutBox,i);if(r){let a=r(iO(s));this.hasMutatedConstraints=!!a,a&&(s=f0(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=yo(h=>{if(!h0(h,r,this.currentDirection))return;let p=(l==null?void 0:l[h])||{};s&&(p={min:0,max:0});let y=o?200:1e6,w=o?40:1e7,v=Q(Q({type:"inertia",velocity:n?t[h]:0,bounceStiffness:y,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10},i),p);return this.startAxisValueAnimation(h,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Fu(t,n,0,r))}stopAnimation(){yo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){yo(r=>{let{drag:n}=this.getProps();if(!h0(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){let{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-bt(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Di(n)||!o||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};yo(a=>{let l=this.getAxisMotionValue(a);if(l){let u=l.get();i[a]=eO({min:u,max:u},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),yo(a=>{if(!h0(a,r,null))return;let l=this.getAxisMotionValue(a),{min:u,max:h}=this.constraints[a];l.set(bt(u,h,i[a]))})}addListeners(){var t;if(!this.visualElement.current)return;Sq.set(this.visualElement,this);let r=this.visualElement.current,n=Ri(r,"pointerdown",u=>{let{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(u)}),o=()=>{let{dragConstraints:u}=this.getProps();Di(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();let a=Na(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h})=>{this.isDragging&&h&&(yo(p=>{let y=this.getAxisMotionValue(p);!y||(this.originPoint[p]+=u[p].translate,y.set(y.get()+u[p].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l==null||l()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=c0,dragMomentum:a=!0}=t;return ve(Q({},t),{drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a})}};function h0(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Cq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function hO(e){let{dragControls:t,visualElement:r}=e,n=Ms(()=>new p0(r));(0,$_.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,$_.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Vu=ue(we(),1);function pO({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:o}){let i=e||t||r||n,s=(0,Vu.useRef)(null),{transformPagePoint:a}=(0,Vu.useContext)(lu),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(h,p)=>{s.current=null,r&&r(h,p)}};(0,Vu.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(l)});function u(h){s.current=new $u(h,l,{transformPagePoint:a})}ka(o,"pointerdown",i&&u),xu(()=>s.current&&s.current.end())}var mO={pan:$o(pO),drag:$o(hO)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function U_(e){return typeof e=="string"&&e.startsWith("var(--")}var j_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Tq(e){let t=j_.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var Pq=4;function B_(e,t,r=1){Lr(r<=Pq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=Tq(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():U_(o)?B_(o,t,r+1):o}function gO(e,n,r){var t=Pe(n,[]);let o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r=Q({},r)),e.values.forEach(i=>{let s=i.get();if(!U_(s))return;let a=B_(s,o);a&&i.set(a)});for(let i in t){let s=t[i];if(!U_(s))continue;let a=B_(s,o);!a||(t[i]=a,r&&r[i]===void 0&&(r[i]=s))}return{target:t,transitionEnd:r}}c();d();f();var Oq=new Set(["width","height","top","left","right","bottom","x","y"]),_O=e=>Oq.has(e),Dq=e=>Object.keys(e).some(_O),xO=(e,t)=>{e.set(t,!1),e.set(t)},m0=e=>e===go||e===Be,yO;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(yO||(yO={}));var vO=(e,t)=>parseFloat(e.split(", ")[t]),wO=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/);if(o)return vO(o[1],t);{let i=n.match(/^matrix\((.+)\)$/);return i?vO(i[1],e):0}},Iq=new Set(["x","y","z"]),Aq=hu.filter(e=>!Iq.has(e));function Mq(e){let t=[];return Aq.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 bO={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:wO(4,13),y:wO(5,14)},Rq=(e,t,r)=>{let n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{a[u]=bO[u](n,i)}),t.render();let l=t.measureViewportBox();return r.forEach(u=>{let h=t.getValue(u);xO(h,a[u]),e[u]=bO[u](l,i)}),e},Nq=(e,t,r={},n={})=>{t=Q({},t),n=Q({},n);let o=Object.keys(t).filter(_O),i=[],s=!1,a=[];if(o.forEach(l=>{let u=e.getValue(l);if(!e.hasValue(l))return;let h=r[l],p=Au(h),y=t[l],w;if(Ra(y)){let v=y.length,S=y[0]===null?1:0;h=y[S],p=Au(h);for(let I=S;I<v;I++)w?Lr(Au(y[I])===w,"All keyframes must be of the same type"):(w=Au(y[I]),Lr(w===p||m0(p)&&m0(w),"Keyframes must be of the same dimension as the current value"))}else w=Au(y);if(p!==w)if(m0(p)&&m0(w)){let v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof y=="string"?t[l]=parseFloat(y):Array.isArray(y)&&w===Be&&(t[l]=y.map(parseFloat))}else(p==null?void 0:p.transform)&&(w==null?void 0:w.transform)&&(h===0||y===0)?h===0?u.set(w.transform(h)):t[l]=p.transform(y):(s||(i=Mq(e),s=!0),a.push(l),n[l]=n[l]!==void 0?n[l]:t[l],xO(u,y))}),a.length){let l=a.indexOf("height")>=0?window.pageYOffset:null,u=Rq(t,e,a);return i.length&&i.forEach(([h,p])=>{e.getValue(h).set(p)}),e.render(),mo&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function EO(e,t,r,n){return Dq(t)?Nq(e,t,r,n):{target:t,transitionEnd:n}}var SO=(e,t,r,n)=>{let o=gO(e,t,n);return t=o.target,n=o.transitionEnd,EO(e,t,r,n)};c();d();f();var OO=ue(we(),1);c();d();f();c();d();f();var Td={current:null},g0={current:!1};function CO(){if(g0.current=!0,!!mo)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Td.current=e.matches;e.addListener(t),t()}else Td.current=!1}c();d();f();function TO(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],s=r[o];if(Mr(i))e.addValue(o,i),Fa(n)&&n.add(o);else if(Mr(s))e.addValue(o,ti(i,{owner:e})),Fa(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){let a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{let a=e.getStaticValue(o);e.addValue(o,ti(a!==void 0?a:i))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var DO=Object.keys(As),kq=DO.length,PO=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],y0=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:o},i={}){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=()=>Wt.render(this.render,!1,!0);let{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget=Q({},s),this.initialValues=r.initial?Q({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=Aa(r),this.isVariantNode=Im(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let h=this.scrapeMotionValuesFromProps(r),{willChange:l}=h,u=Pe(h,["willChange"]);for(let p in u){let y=u[p];s[p]!==void 0&&Mr(y)&&(y.set(s[p],!1),Fa(l)&&l.add(p))}}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,o)=>this.bindToMotionValue(o,n)),g0.current||CO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Td.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(),Gn.update(this.notifyUpdate),Gn.render(this.render),this.valueSubscriptions.forEach(o=>o()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,r){let n=On.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Wt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,o,i,s){let a=[];Eu!=="production"&&n&&r&&Lr(!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<kq;l++){let u=DO[l],{isEnabled:h,Component:p}=As[u];h(t)&&p&&a.push((0,OO.createElement)(p,ve(Q({key:u},t),{visualElement:this})))}if(!this.projection&&i){this.projection=new i(o,this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:u,drag:h,dragConstraints:p,layoutScroll:y}=t;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:Boolean(h)||p&&Di(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):er()}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<PO.length;r++){let n=PO[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=TO(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 i=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}let o={};for(let i=0;i<Lq;i++){let s=IO[i],a=this.props[s];(Ii(a)||a===!1)&&(o[s]=a)}return o}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=ti(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,o=typeof n=="string"||typeof n=="object"?(r=bu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Mr(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new $s),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},IO=["initial",...l0],Lq=IO.length;var zu=class extends y0{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:o},i){var a=s,{transition:t,transitionEnd:r}=a,n=Pe(a,["transition","transitionEnd"]);let l=tP(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),l&&(l=o(l))),i){eP(this,n,l);let u=SO(this,n,l,r);r=u.transitionEnd,n=u.target}return Q({transition:t,transitionEnd:r},n)}};function Fq(e){return window.getComputedStyle(e)}var v0=class extends zu{readValueFromInstance(t,r){if(On.has(r)){let n=Du(r);return n&&n.default||0}else{let n=Fq(t),o=(km(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return F_(t,r)}build(t,r,n,o){pu(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return wu(t)}renderInstance(t,r,n,o){Um(t,r,n,o)}};c();d();f();var w0=class extends zu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return On.has(r)?((n=Du(r))===null||n===void 0?void 0:n.default)||0:(r=Bm.has(r)?r:vu(r),t.getAttribute(r))}measureInstanceViewportBox(){return er()}scrapeMotionValuesFromProps(t){return Vm(t)}build(t,r,n,o){gu(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){jm(t,r,n,o)}mount(t){this.isSVGTag=yu(t.tagName),super.mount(t)}};var AO=(e,t)=>fu(e)?new w0(t,{enableHardwareAcceleration:!1}):new v0(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var Ku=ue(we(),1);c();d();f();function MO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Hu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Be.test(e))e=parseFloat(e);else return e;let r=MO(e,t.target.x),n=MO(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var RO="_$css",NO={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=e.includes("var("),i=[];o&&(e=e.replace(j_,w=>(i.push(w),RO)));let s=cn.parse(e);if(s.length>5)return n;let a=cn.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 p=bt(u,h,.5);typeof s[2+l]=="number"&&(s[2+l]/=p),typeof s[3+l]=="number"&&(s[3+l]/=p);let y=a(s);if(o){let w=0;y=y.replace(RO,()=>{let v=i[w];return w++,v})}return y}};var V_=class extends Ku.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;rT($q),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(ve(Q({},i.options),{onExitComplete:()=>this.safeToRemove()}))),Rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Wt.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:o}=t;o&&(o.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(o),n!=null&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function kO(e){let[t,r]=Wm(),n=(0,Ku.useContext)(cu);return Ku.default.createElement(V_,ve(Q({},e),{layoutGroup:n,switchLayoutGroup:(0,Ku.useContext)(Rm),isPresent:t,safeToRemove:r}))}var $q={borderRadius:ve(Q({},Hu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:NO};var LO={measureLayout:kO};c();d();f();c();d();f();c();d();f();function FO(e,t,r={}){let n=Mr(e)?e:ti(e);return n.start(Fu("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var jO=["TopLeft","TopRight","BottomLeft","BottomRight"],Uq=jO.length,$O=e=>typeof e=="string"?parseFloat(e):e,UO=e=>typeof e=="number"||Be.test(e);function VO(e,t,r,n,o,i){o?(e.opacity=bt(0,r.opacity!==void 0?r.opacity:1,Bq(n)),e.opacityExit=bt(t.opacity!==void 0?t.opacity:1,0,jq(n))):i&&(e.opacity=bt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<Uq;s++){let a=`border${jO[s]}Radius`,l=BO(t,a),u=BO(r,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||UO(l)===UO(u)?(e[a]=Math.max(bt($O(l),$O(u),n),0),(un.test(u)||un.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||r.rotate)&&(e.rotate=bt(t.rotate||0,r.rotate||0,n))}function BO(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Bq=zO(0,.5,wd),jq=zO(.5,.95,Lu);function zO(e,t,r){return n=>n<e?0:n>t?1:r($a(e,t,n))}c();d();f();function HO(e,t){e.min=t.min,e.max=t.max}function vo(e,t){HO(e.x,t.x),HO(e.y,t.y)}c();d();f();function KO(e,t,r,n,o){return e-=t,e=Cd(e,1/r,n),o!==void 0&&(e=Cd(e,1/o,n)),e}function Vq(e,t=0,r=1,n=.5,o,i=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=bt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=bt(i.min,i.max,n);e===i&&(a-=t),e.min=KO(e.min,t,r,a,o),e.max=KO(e.max,t,r,a,o)}function qO(e,t,[r,n,o],i,s){Vq(e,t[r],t[n],t[o],t.scale,i,s)}var zq=["x","scaleX","originX"],Hq=["y","scaleY","originY"];function z_(e,t,r,n){qO(e.x,t,zq,r==null?void 0:r.x,n==null?void 0:n.x),qO(e.y,t,Hq,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function GO(e){return e.translate===0&&e.scale===1}function H_(e){return GO(e.x)&&GO(e.y)}function K_(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 q_(e){return Fr(e.x)/Fr(e.y)}c();d();f();var b0=class{constructor(){this.members=[]}add(t){Cu(this.members,t),t.scheduleRender()}remove(t){if(Tu(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(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,o,i,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}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 G_(e,t,r){let n="",o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:u,rotateY:h}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),h&&(n+=`rotateY(${h}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 WO=(e,t)=>e.depth-t.depth;var _0=class{constructor(){this.children=[],this.isDirty=!1}add(t){Cu(this.children,t),this.isDirty=!0}remove(t){Tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WO),this.isDirty=!1,this.children.forEach(t)}};var YO=["","X","Y","Z"],XO=1e3,Kq=0;function x0({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s,a={},l=t==null?void 0:t()){this.id=Kq++,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(Wq),this.nodes.forEach(Zq),this.nodes.forEach(Jq)},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 _0)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new $s),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:p}=this.options;if(p&&!p.current&&p.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 y,w=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=i0(w,250),Rs.hasAnimatedSinceResize&&(Rs.hasAnimatedSinceResize=!1,this.nodes.forEach(JO))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&p&&(u||h)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeTargetChanged:v,layout:S})=>{var I,T,O,M,L;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let G=(T=(I=this.options.transition)!==null&&I!==void 0?I:p.getDefaultTransition())!==null&&T!==void 0?T:nG,{onLayoutAnimationStart:J,onLayoutAnimationComplete:V}=p.getProps(),q=!this.targetLayout||!K_(this.targetLayout,S)||v,ce=!w&&v;if(((O=this.resumeFrom)===null||O===void 0?void 0:O.instance)||ce||w&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,ce);let me=ve(Q({},a0(G,"layout")),{onPlay:J,onComplete:V});p.shouldReduceMotion&&(me.delay=0,me.type=!1),this.startAnimation(me)}else!w&&this.animationProgress===0&&JO(this),this.isLead()&&((L=(M=this.options).onExitComplete)===null||L===void 0||L.call(M));this.targetLayout=S})}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,Gn.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(Qq),this.animationId++)}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 w=0;w<this.path.length;w++){let v=this.path[w];v.shouldResetTransform=!0,v.updateScroll("snapshot")}let{layoutId:h,layout:p}=this.options;if(h===void 0&&!p)return;let y=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ZO);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(oG),this.potentialNodes.clear()),this.nodes.forEach(Xq),this.nodes.forEach(qq),this.nodes.forEach(Gq),this.clearAllSnapshots(),Xm.update(),Xm.preRender(),Xm.render())}clearAllSnapshots(){this.nodes.forEach(Yq),this.sharedNodes.forEach(eG)}scheduleUpdateProjection(){Wt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Wt.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=er(),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(!o)return;let a=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!H_(this.projectionDelta),u=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,h=u==null?void 0:u(this.latestValues,""),p=h!==this.prevTransformTemplateValue;a&&(l||Ni(this.latestValues)||p)&&(o(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)),iG(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return er();let a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(ni(a.x,l.offset.x),ni(a.y,l.offset.y)),a}removeElementScroll(s){let a=er();vo(a,s);for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:h,options:p}=u;if(u!==this.root&&h&&p.layoutScroll){if(h.isRoot){vo(a,s);let{scroll:y}=this.root;y&&(ni(a.x,-y.offset.x),ni(a.y,-y.offset.y))}ni(a.x,h.offset.x),ni(a.y,h.offset.y)}}return a}applyTransform(s,a=!1){let l=er();vo(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&&Va(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Ni(h.latestValues)&&Va(l,h.latestValues)}return Ni(this.latestValues)&&Va(l,this.latestValues),l}removeTransform(s){var a;let l=er();vo(l,s);for(let u=0;u<this.path.length;u++){let h=this.path[u];if(!h.instance||!Ni(h.latestValues))continue;d0(h.latestValues)&&h.updateSnapshot();let p=er(),y=h.measurePageBox();vo(p,y),z_(l,h.latestValues,(a=h.snapshot)===null||a===void 0?void 0:a.layoutBox,p)}return Ni(this.latestValues)&&z_(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=ve(Q(Q({},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:l,layoutId:u}=this.options;if(!(!this.layout||!(l||u))){if(!this.targetDelta&&!this.relativeTarget){let h=this.getClosestProjectingParent();h&&h.layout?(this.relativeParent=h,this.relativeTarget=er(),this.relativeTargetOrigin=er(),Bu(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),vo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=er(),this.targetWithTransforms=er()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?qP(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):vo(this.target,this.layout.layoutBox),L_(this.target,this.targetDelta)):vo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let h=this.getClosestProjectingParent();h&&Boolean(h.resumingFrom)===Boolean(this.resumingFrom)&&!h.options.layoutScroll&&h.target?(this.relativeParent=h,this.relativeTarget=er(),this.relativeTargetOrigin=er(),Bu(this.relativeTargetOrigin,this.target,h.target),vo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||d0(this.parent.latestValues)||N_(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:l}=this;this.isProjectionDirty=this.isTransformDirty=!1;let u=this.getLead(),h=Boolean(this.resumingFrom)||this!==u,p=!0;if(a&&(p=!1),h&&l&&(p=!1),p)return;let{layout:y,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||!(y||w))return;vo(this.layoutCorrected,this.layout.layoutBox),fO(this.layoutCorrected,this.treeScale,this.path,h);let{target:v}=u;if(!v)return;this.projectionDelta||(this.projectionDelta=ju(),this.projectionDeltaWithTransform=ju());let S=this.treeScale.x,I=this.treeScale.y,T=this.projectionTransform;Uu(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=G_(this.projectionDelta,this.treeScale),(this.projectionTransform!==T||this.treeScale.x!==S||this.treeScale.y!==I)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}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,u;let h=this.snapshot,p=(h==null?void 0:h.latestValues)||{},y=Q({},this.latestValues),w=ju();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let v=er(),S=(h==null?void 0:h.source)!==((l=this.layout)===null||l===void 0?void 0:l.source),I=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,T=Boolean(S&&!I&&this.options.crossfade===!0&&!this.path.some(rG));this.animationProgress=0,this.mixTargetDelta=O=>{var M;let L=O/1e3;QO(w.x,s.x,L),QO(w.y,s.y,L),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((M=this.relativeParent)===null||M===void 0?void 0:M.layout)&&(Bu(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),tG(this.relativeTarget,this.relativeTargetOrigin,v,L)),S&&(this.animationValues=y,VO(y,p,this.latestValues,L,T,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},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&&(Gn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Wt.update(()=>{Rs.hasAnimatedSinceResize=!0,this.currentAnimation=FO(0,XO,ve(Q({},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,XO),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&&rD(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||er();let p=Fr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+p;let y=Fr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+y}vo(a,l),Va(a,h),Uu(this.projectionDeltaWithTransform,this.layoutCorrected,a,h)}}registerSharedNode(s,a){var l,u,h;this.sharedNodes.has(s)||this.sharedNodes.set(s,new b0),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,{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;let u={};for(let h=0;h<YO.length;h++){let p="rotate"+YO[h];l[p]&&(u[p]=l[p],s.setStaticValue(p,0))}s==null||s.render();for(let h in u)s.setStaticValue(h,u[h]);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 p=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=_u(s.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none",h;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=_u(s.pointerEvents)||""),this.hasProjected&&!Ni(this.latestValues)&&(I.transform=p?p({},""):"none",this.hasProjected=!1),I}let w=y.animationValues||y.latestValues;this.applyTransformsToTarget(),h.transform=G_(this.projectionDeltaWithTransform,this.treeScale,w),p&&(h.transform=p(w,h.transform));let{x:v,y:S}=this.projectionDelta;h.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,y.animationValues?h.opacity=y===this?(u=(l=w.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:h.opacity=y===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(let I in du){if(w[I]===void 0)continue;let{correct:T,applyTo:O}=du[I],M=T(w[I],y);if(O){let L=O.length;for(let G=0;G<L;G++)h[O[G]]=M}else h[I]=M}return this.options.layoutId&&(h.pointerEvents=y===this?_u(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(ZO),this.root.sharedNodes.clear()}}}function qq(e){e.updateLayout()}function Gq(e){var t,r,n;let o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:a}=e.options,l=o.source!==e.layout.source;a==="size"?yo(w=>{let v=l?o.measuredBox[w]:o.layoutBox[w],S=Fr(v);v.min=i[w].min,v.max=v.min+S}):rD(a,o.layoutBox,i)&&yo(w=>{let v=l?o.measuredBox[w]:o.layoutBox[w],S=Fr(i[w]);v.max=v.min+S});let u=ju();Uu(u,i,o.layoutBox);let h=ju();l?Uu(h,e.applyTransform(s,!0),o.measuredBox):Uu(h,i,o.layoutBox);let p=!H_(u),y=!1;if(!e.resumeFrom){let w=e.getClosestProjectingParent();if(w&&!w.resumeFrom){let{snapshot:v,layout:S}=w;if(v&&S){let I=er();Bu(I,o.layoutBox,v.layoutBox);let T=er();Bu(T,i,S.layoutBox),K_(I,T)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:h,layoutDelta:u,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function Wq(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function Yq(e){e.clearSnapshot()}function ZO(e){e.clearMeasurements()}function Xq(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Zq(e){e.resolveTargetDelta()}function Jq(e){e.calcProjection()}function Qq(e){e.resetRotation()}function eG(e){e.removeLeadSnapshot()}function QO(e,t,r){e.translate=bt(t.translate,0,r),e.scale=bt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function eD(e,t,r,n){e.min=bt(t.min,r.min,n),e.max=bt(t.max,r.max,n)}function tG(e,t,r,n){eD(e.x,t.x,r.x,n),eD(e.y,t.y,r.y,n)}function rG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var nG={duration:.45,ease:[.4,0,.1,1]};function oG(e,t){let r=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){r=e.path[i];break}let o=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function tD(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function iG(e){tD(e.x),tD(e.y)}function rD(e,t,r){return e==="position"||e==="preserve-aspect"&&!u0(q_(t),q_(r),.2)}c();d();f();var nD=x0({attachResizeListener:(e,t)=>Na(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var W_={current:void 0},oD=x0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!W_.current){let e=new nD(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),W_.current=e}return W_.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var sG=Q(Q(Q(Q({},$P),VT),mO),LO),Tt=eT((e,t)=>CT(e,t,sG,AO,oD));c();d();f();var ki=ue(we(),1),wo=ue(we(),1);c();d();f();var Pd=ue(we(),1);c();d();f();var iD=ue(we(),1);function E0(){let e=(0,iD.useRef)(!1);return Ds(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sD(){let e=E0(),[t,r]=(0,Pd.useState)(0),n=(0,Pd.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,Pd.useCallback)(()=>Wt.postRender(n),[n]),t]}c();d();f();var Od=ue(we(),1),Dd=ue(we(),1);c();d();f();var qu=ue(we(),1),za=ue(we(),1),Y_=class extends qu.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 aD({children:e,isPresent:t}){let r=(0,za.useId)(),n=(0,za.useRef)(null),o=(0,za.useRef)({width:0,height:0,top:0,left:0});return(0,za.useInsertionEffect)(()=>{let{width:i,height:s,top:a,left:l}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
25
|
-
[data-motion-pop-id="${r}"] {
|
|
26
|
-
position: absolute !important;
|
|
27
|
-
width: ${i}px !important;
|
|
28
|
-
height: ${s}px !important;
|
|
29
|
-
top: ${a}px !important;
|
|
30
|
-
left: ${l}px !important;
|
|
31
|
-
}
|
|
32
|
-
`),()=>{document.head.removeChild(u)}},[t]),qu.createElement(Y_,{isPresent:t,childRef:n,sizeRef:o},qu.cloneElement(e,{ref:n}))}var S0=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{let a=Ms(aG),l=(0,Dd.useId)(),u=(0,Dd.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:h=>{a.set(h,!0);for(let p of a.values())if(!p)return;n&&n()},register:h=>(a.set(h,!1),()=>a.delete(h))}),i?void 0:[r]);return(0,Dd.useMemo)(()=>{a.forEach((h,p)=>a.set(p,!1))},[r]),Od.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=Od.createElement(aD,{isPresent:r},e)),Od.createElement(Qo.Provider,{value:u},e)};function aG(){return new Map}var Gu=e=>e.key||"";function lG(e,t){e.forEach(r=>{let n=Gu(r);t.set(n,r)})}function uG(e){let t=[];return wo.Children.forEach(e,r=>{(0,wo.isValidElement)(r)&&t.push(r)}),t}var Wu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",Gm(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=sD(),l=(0,wo.useContext)(cu).forceRender;l&&(a=l);let u=E0(),h=uG(e),p=h,y=new Set,w=(0,wo.useRef)(p),v=(0,wo.useRef)(new Map).current,S=(0,wo.useRef)(!0);if(Ds(()=>{S.current=!1,lG(h,v),w.current=p}),xu(()=>{S.current=!0,v.clear(),y.clear()}),S.current)return ki.createElement(ki.Fragment,null,p.map(M=>ki.createElement(S0,{key:Gu(M),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},M)));p=[...p];let I=w.current.map(Gu),T=h.map(Gu),O=I.length;for(let M=0;M<O;M++){let L=I[M];T.indexOf(L)===-1&&y.add(L)}return s==="wait"&&y.size&&(p=[]),y.forEach(M=>{if(T.indexOf(M)!==-1)return;let L=v.get(M);if(!L)return;let G=I.indexOf(M),J=()=>{v.delete(M),y.delete(M);let V=w.current.findIndex(q=>q.key===M);if(w.current.splice(V,1),!y.size){if(w.current=h,u.current===!1)return;a(),n&&n()}};p.splice(G,0,ki.createElement(S0,{key:Gu(L),isPresent:!1,onExitComplete:J,custom:t,presenceAffectsLayout:i,mode:s},L))}),p=p.map(M=>{let L=M.key;return y.has(L)?M:ki.createElement(S0,{key:Gu(M),isPresent:!0,presenceAffectsLayout:i,mode:s},M)}),Eu!=="production"&&s==="wait"&&p.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.`),ki.createElement(ki.Fragment,null,y.size?p:p.map(M=>(0,wo.cloneElement)(M)))};c();d();f();var ND=ue(RD(),1),{__extends:Uwe,__assign:bo,__rest:O0,__decorate:Bwe,__param:jwe,__esDecorate:Vwe,__runInitializers:zwe,__propKey:Hwe,__setFunctionName:Kwe,__metadata:qwe,__awaiter:Gwe,__generator:Wwe,__exportStar:Ywe,__createBinding:Xwe,__values:Zwe,__read:Jwe,__spread:Qwe,__spreadArrays:ebe,__spreadArray:kD,__await:tbe,__asyncGenerator:rbe,__asyncDelegator:nbe,__asyncValues:obe,__makeTemplateObject:ibe,__importStar:sbe,__importDefault:abe,__classPrivateFieldGet:lbe,__classPrivateFieldSet:ube,__classPrivateFieldIn:cbe}=ND.default;c();d();f();var Yt=(...e)=>e.filter(Boolean).join(" "),LD=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Wn=(e,t)=>e!=null&&e[t]?e[t]:t5[t];var cG=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-6"},g.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),g.createElement("p",{className:"text-70868f mt-4 text-center"},"World ID is an identity protocol centered around persons. It can be used to prove someone is doing something once without revealing personal information."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"It currently supports verification through biometrics (using a device called an Orb), and through phone numbers. Zero-Knowledge Proofs and other cryptographic mechanisms are used to preserve privacy."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),g.createElement("div",null,g.createElement(Tt.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:Yt("inline-flex w-full justify-center space-x-2 items-center px-8 py-4 border border-transparent font-medium rounded-2xl shadow-sm","text-gray-500 dark:text-70868f bg-gray-200 dark:bg-29343f hover:bg-gray-300/50 dark:hover:bg-29343f/50","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-300 disabled:cursor-not-allowed transition")},g.createElement(Tt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),FD=cG;c();d();f();var fG=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),dG={["GENERIC_ERROR"]:"Something went wrong",["INVALID_CODE"]:"Invalid code",["PHONE_OTP_REQUEST_ERROR"]:"We could not send you a code",["REJECTED_BY_HOST_APP"]:"Verification declined by app"},hG=()=>{var r;let{retryFlow:e,errorState:t}=Bt(fG);return g.createElement("div",{className:"space-y-8"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},g.createElement(au,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},dG[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),g.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),g.createElement("div",{className:"flex justify-center"},g.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),g.createElement("div",null,g.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},$D=hG;c();d();f();var Xu={opacity:[1,.1,.2,.4,.6,.8]},Zu={repeat:1/0,duration:1,type:"spring"},pG=({className:e=""})=>g.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},g.createElement(Tt.path,{animate:Xu,transition:Zu,d:"M21.985 17.835a.742.742 0 0 0 .492-.211.768.768 0 0 0 .227-.492c.106-1.73.337-4.651.692-7.72 4.857-.214 8.217 2.033 8.217 2.033-.98-3.45-3.206-12.771-9.196-11.286-5.069 1.339-3.38 14.296-1.047 17.393a.75.75 0 0 0 .615.284Z"}),g.createElement(Tt.path,{animate:Xu,transition:ve(Q({},Zu),{delay:.15}),d:"M27.946 18.265c.892-3.791 9.724-13.28 13.938-10.113 4.905 3.8-.816 11.432-2.832 14.383 0 0-.403-4.084-3.619-7.788a162.5 162.5 0 0 0-6.326 4.31.748.748 0 0 1-.839-.004.784.784 0 0 1-.323-.788Zm3.6 5.727a.714.714 0 0 0-.404.547.764.764 0 0 0 .097.532.74.74 0 0 0 .422.328c1.632.489 4.387 1.349 7.247 2.365-.844 4.866-3.724 7.73-3.724 7.73 3.523-.235 12.94-.421 12.815-6.704-.183-5.325-12.978-6.45-16.453-4.798Z"}),g.createElement(Tt.path,{animate:Xu,transition:ve(Q({},Zu),{delay:.35}),d:"M29.386 30.421a.727.727 0 0 0-.834.128.756.756 0 0 0-.174.84c.633 1.602 1.699 4.329 2.697 7.25-4.272 2.355-8.265 1.837-8.265 1.837 2.371 2.658 8.38 10.045 13.122 6.039 3.984-3.46-3.11-14.354-6.546-16.094Z"}),g.createElement(Tt.path,{animate:Xu,transition:ve(Q({},Zu),{delay:.55}),d:"M23.098 32.706a.739.739 0 0 0-.432-.527.718.718 0 0 0-.533-.027.733.733 0 0 0-.408.35 160.789 160.789 0 0 1-3.897 6.654c-4.464-1.935-6.556-5.443-6.556-5.443-.567 3.547-2.506 12.937 3.532 14.227 5.136 1.016 9.1-11.423 8.294-15.233Z"}),g.createElement(Tt.path,{animate:Xu,transition:ve(Q({},Zu),{delay:.7}),d:"M17.434 29.113a.778.778 0 0 0-.177-1.108.729.729 0 0 0-.523-.114c-1.68.274-4.531.714-7.546 1.046-1.295-4.769.096-8.609.096-8.609-3.08 1.75-11.5 6.058-8.735 11.657 2.42 4.73 14.447.137 16.885-2.872Z"}),g.createElement(Tt.path,{animate:Xu,transition:ve(Q({},Zu),{delay:.85}),d:"M16.657 22.361a.709.709 0 0 0 .605-.303.772.772 0 0 0-.096-1.016 145.357 145.357 0 0 1-5.5-5.355c2.86-3.996 6.68-5.276 6.68-5.276-3.264-1.368-11.817-5.404-14.399.303-2.13 4.866 8.88 11.588 12.71 11.647Z"})),Bs=pG;c();d();f();c();d();f();function pt(){return pt=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},pt.apply(this,arguments)}var Me=ue(we()),rI=ue(Da());c();d();f();function yr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}c();d();f();var UD=ue(we());function mG(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Z_(...e){return t=>e.forEach(r=>mG(r,t))}function Xr(...e){return(0,UD.useCallback)(Z_(...e),e)}c();d();f();var Uo=ue(we());c();d();f();var fn=ue(we());function BD(e,t){let r=(0,fn.createContext)(t);function n(i){let u=i,{children:s}=u,a=Pe(u,["children"]),l=(0,fn.useMemo)(()=>a,Object.values(a));return(0,fn.createElement)(r.Provider,{value:l},s)}function o(i){let s=(0,fn.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Ju(e,t=[]){let r=[];function n(i,s){let a=(0,fn.createContext)(s),l=r.length;r=[...r,s];function u(p){let T=p,{scope:y,children:w}=T,v=Pe(T,["scope","children"]),S=(y==null?void 0:y[e][l])||a,I=(0,fn.useMemo)(()=>v,Object.values(v));return(0,fn.createElement)(S.Provider,{value:I},w)}function h(p,y){let w=(y==null?void 0:y[e][l])||a,v=(0,fn.useContext)(w);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,h]}let o=()=>{let i=r.map(s=>(0,fn.createContext)(s));return function(a){let l=(a==null?void 0:a[e])||i;return(0,fn.useMemo)(()=>({[`__scope${e}`]:ve(Q({},a),{[e]:l})}),[a,l])}};return o.scopeName=e,[n,gG(o,...t)]}function gG(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){let s=n.reduce((a,{useScope:l,scopeName:u})=>{let p=l(i)[`__scope${u}`];return Q(Q({},a),p)},{});return(0,fn.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var tr=ue(we());var js=(0,tr.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=Pe(s,["children"]),o=tr.Children.toArray(r),i=o.find(vG);if(i){let a=i.props.children,l=o.map(u=>u===i?tr.Children.count(a)>1?tr.Children.only(null):(0,tr.isValidElement)(a)?a.props.children:null:u);return(0,tr.createElement)(J_,pt({},n,{ref:t}),(0,tr.isValidElement)(a)?(0,tr.cloneElement)(a,void 0,l):null)}return(0,tr.createElement)(J_,pt({},n,{ref:t}),r)});js.displayName="Slot";var J_=(0,tr.forwardRef)((e,t)=>{let o=e,{children:r}=o,n=Pe(o,["children"]);return(0,tr.isValidElement)(r)?(0,tr.cloneElement)(r,ve(Q({},wG(n,r.props)),{ref:Z_(t,r.ref)})):tr.Children.count(r)>1?tr.Children.only(null):null});J_.displayName="SlotClone";var yG=({children:e})=>(0,tr.createElement)(tr.Fragment,null,e);function vG(e){return(0,tr.isValidElement)(e)&&e.type===yG}function wG(e,t){let r=Q({},t);for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]=Q(Q({},o),i):n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return Q(Q({},e),r)}function jD(e){let t=e+"CollectionProvider",[r,n]=Ju(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{let{scope:v,children:S}=w,I=Uo.default.useRef(null),T=Uo.default.useRef(new Map).current;return Uo.default.createElement(o,{scope:v,itemMap:T,collectionRef:I},S)},a=e+"CollectionSlot",l=Uo.default.forwardRef((w,v)=>{let{scope:S,children:I}=w,T=i(a,S),O=Xr(v,T.collectionRef);return Uo.default.createElement(js,{ref:O},I)}),u=e+"CollectionItemSlot",h="data-radix-collection-item",p=Uo.default.forwardRef((w,v)=>{let G=w,{scope:S,children:I}=G,T=Pe(G,["scope","children"]),O=Uo.default.useRef(null),M=Xr(v,O),L=i(u,S);return Uo.default.useEffect(()=>(L.itemMap.set(O,Q({ref:O},T)),()=>void L.itemMap.delete(O))),Uo.default.createElement(js,{[h]:"",ref:M},I)});function y(w){let v=i(e+"CollectionConsumer",w);return Uo.default.useCallback(()=>{let I=v.collectionRef.current;if(!I)return[];let T=Array.from(I.querySelectorAll(`[${h}]`));return Array.from(v.itemMap.values()).sort((L,G)=>T.indexOf(L.ref.current)-T.indexOf(G.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:p},y,n]}c();d();f();var kt=ue(we());c();d();f();var Qu=ue(we()),VD=ue(Da());var bG=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],Er=bG.reduce((e,t)=>{let r=(0,Qu.forwardRef)((n,o)=>{let l=n,{asChild:i}=l,s=Pe(l,["asChild"]),a=i?js:t;return(0,Qu.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Qu.createElement)(a,pt({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,ve(Q({},e),{[t]:r})},{});function D0(e,t){e&&(0,VD.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var ec=ue(we());function Zr(e){let t=(0,ec.useRef)(e);return(0,ec.useEffect)(()=>{t.current=e}),(0,ec.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var zD=ue(we());function HD(e,t=globalThis==null?void 0:globalThis.document){let r=Zr(e);(0,zD.useEffect)(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Q_="dismissableLayer.update",_G="dismissableLayer.pointerDownOutside",xG="dismissableLayer.focusOutside",KD,GD=(0,kt.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),e2=(0,kt.forwardRef)((e,t)=>{var r;let q=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:l}=q,u=Pe(q,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),h=(0,kt.useContext)(GD),[p,y]=(0,kt.useState)(null),w=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=(0,kt.useState)({}),S=Xr(t,ce=>y(ce)),I=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),O=I.indexOf(T),M=p?I.indexOf(p):-1,L=h.layersWithOutsidePointerEventsDisabled.size>0,G=M>=O,J=SG(ce=>{let me=ce.target,fe=[...h.branches].some(X=>X.contains(me));!G||fe||(i==null||i(ce),a==null||a(ce),ce.defaultPrevented||l==null||l())},w),V=CG(ce=>{let me=ce.target;[...h.branches].some(X=>X.contains(me))||(s==null||s(ce),a==null||a(ce),ce.defaultPrevented||l==null||l())},w);return HD(ce=>{M===h.layers.size-1&&(o==null||o(ce),!ce.defaultPrevented&&l&&(ce.preventDefault(),l()))},w),(0,kt.useEffect)(()=>{if(!!p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(KD=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),qD(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=KD)}},[p,w,n,h]),(0,kt.useEffect)(()=>()=>{!p||(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),qD())},[p,h]),(0,kt.useEffect)(()=>{let ce=()=>v({});return document.addEventListener(Q_,ce),()=>document.removeEventListener(Q_,ce)},[]),(0,kt.createElement)(Er.div,pt({},u,{ref:S,style:Q({pointerEvents:L?G?"auto":"none":void 0},e.style),onFocusCapture:yr(e.onFocusCapture,V.onFocusCapture),onBlurCapture:yr(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:yr(e.onPointerDownCapture,J.onPointerDownCapture)}))});var EG=(0,kt.forwardRef)((e,t)=>{let r=(0,kt.useContext)(GD),n=(0,kt.useRef)(null),o=Xr(t,n);return(0,kt.useEffect)(()=>{let i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,kt.createElement)(Er.div,pt({},e,{ref:o}))});function SG(e,t=globalThis==null?void 0:globalThis.document){let r=Zr(e),n=(0,kt.useRef)(!1),o=(0,kt.useRef)(()=>{});return(0,kt.useEffect)(()=>{let i=a=>{if(a.target&&!n.current){let u=function(){WD(_G,r,l,{discrete:!0})},l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function CG(e,t=globalThis==null?void 0:globalThis.document){let r=Zr(e),n=(0,kt.useRef)(!1);return(0,kt.useEffect)(()=>{let o=i=>{i.target&&!n.current&&WD(xG,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function qD(){let e=new CustomEvent(Q_);document.dispatchEvent(e)}function WD(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?D0(o,i):o.dispatchEvent(i)}var YD=e2,XD=EG;c();d();f();var I0=ue(we()),ZD=ue(Da());var A0=(0,I0.forwardRef)((e,t)=>{var r;let i=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=i,o=Pe(i,["container"]);return n?ZD.default.createPortal((0,I0.createElement)(Er.div,pt({},o,{ref:t})),n):null});c();d();f();var Jr=ue(we()),QD=ue(Da());c();d();f();var JD=ue(we()),Ha=Boolean(globalThis==null?void 0:globalThis.document)?JD.useLayoutEffect:()=>{};function TG(e,t){return(0,Jr.useReducer)((r,n)=>{let o=t[r][n];return o!=null?o:r},e)}var Ka=e=>{let{present:t,children:r}=e,n=PG(t),o=typeof r=="function"?r({present:n.isPresent}):Jr.Children.only(r),i=Xr(n.ref,o.ref);return typeof r=="function"||n.isPresent?(0,Jr.cloneElement)(o,{ref:i}):null};Ka.displayName="Presence";function PG(e){let[t,r]=(0,Jr.useState)(),n=(0,Jr.useRef)({}),o=(0,Jr.useRef)(e),i=(0,Jr.useRef)("none"),s=e?"mounted":"unmounted",[a,l]=TG(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Jr.useEffect)(()=>{let u=M0(n.current);i.current=a==="mounted"?u:"none"},[a]),Ha(()=>{let u=n.current,h=o.current;if(h!==e){let y=i.current,w=M0(u);e?l("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(h&&y!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ha(()=>{if(t){let u=p=>{let w=M0(n.current).includes(p.animationName);p.target===t&&w&&(0,QD.flushSync)(()=>l("ANIMATION_END"))},h=p=>{p.target===t&&(i.current=M0(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,Jr.useCallback)(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function M0(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var Vs=ue(we());function R0({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=OG({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,a=Zr(r),l=(0,Vs.useCallback)(u=>{if(i){let p=typeof u=="function"?u(e):u;p!==e&&a(p)}else o(u)},[i,e,o,a]);return[s,l]}function OG({defaultProp:e,onChange:t}){let r=(0,Vs.useState)(e),[n]=r,o=(0,Vs.useRef)(n),i=Zr(t);return(0,Vs.useEffect)(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}c();d();f();var N0=ue(we());var t2=(0,N0.forwardRef)((e,t)=>(0,N0.createElement)(Er.span,pt({},e,{ref:t,style:Q({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 nI="ToastProvider",[i2,DG,IG]=jD("Toast"),[oI,x_e]=Ju("Toast",[IG]),[AG,L0]=oI(nI),iI=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=(0,Me.useState)(null),[u,h]=(0,Me.useState)(0),p=(0,Me.useRef)(!1),y=(0,Me.useRef)(!1);return(0,Me.createElement)(i2.Provider,{scope:t},(0,Me.createElement)(AG,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:(0,Me.useCallback)(()=>h(w=>w+1),[]),onToastRemove:(0,Me.useCallback)(()=>h(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:y},s))};iI.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${nI}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var MG="ToastViewport",RG=["F8"],n2="toast.viewportPause",o2="toast.viewportResume",NG=(0,Me.forwardRef)((e,t)=>{let I=e,{__scopeToast:r,hotkey:n=RG,label:o="Notifications ({hotkey})"}=I,i=Pe(I,["__scopeToast","hotkey","label"]),s=L0(MG,r),a=DG(r),l=(0,Me.useRef)(null),u=(0,Me.useRef)(null),h=(0,Me.useRef)(null),p=(0,Me.useRef)(null),y=Xr(t,p,s.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;(0,Me.useEffect)(()=>{let T=O=>{var M;n.every(G=>O[G]||O.code===G)&&((M=p.current)===null||M===void 0||M.focus())};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[n]),(0,Me.useEffect)(()=>{let T=l.current,O=p.current;if(v&&T&&O){let M=()=>{if(!s.isClosePausedRef.current){let V=new CustomEvent(n2);O.dispatchEvent(V),s.isClosePausedRef.current=!0}},L=()=>{if(s.isClosePausedRef.current){let V=new CustomEvent(o2);O.dispatchEvent(V),s.isClosePausedRef.current=!1}},G=V=>{!T.contains(V.relatedTarget)&&L()},J=()=>{T.contains(document.activeElement)||L()};return T.addEventListener("focusin",M),T.addEventListener("focusout",G),T.addEventListener("pointermove",M),T.addEventListener("pointerleave",J),window.addEventListener("blur",M),window.addEventListener("focus",L),()=>{T.removeEventListener("focusin",M),T.removeEventListener("focusout",G),T.removeEventListener("pointermove",M),T.removeEventListener("pointerleave",J),window.removeEventListener("blur",M),window.removeEventListener("focus",L)}}},[v,s.isClosePausedRef]);let S=(0,Me.useCallback)(({tabbingDirection:T})=>{let M=a().map(L=>{let G=L.ref.current,J=[G,...XG(G)];return T==="forwards"?J:J.reverse()});return(T==="forwards"?M.reverse():M).flat()},[a]);return(0,Me.useEffect)(()=>{let T=p.current;if(T){let O=M=>{let L=M.altKey||M.ctrlKey||M.metaKey;if(M.key==="Tab"&&!L){let ce=document.activeElement,me=M.shiftKey;if(M.target===T&&me){var J;(J=u.current)===null||J===void 0||J.focus();return}let R=S({tabbingDirection:me?"backwards":"forwards"}),m=R.findIndex(b=>b===ce);if(r2(R.slice(m+1)))M.preventDefault();else{var V,q;me?(V=u.current)===null||V===void 0||V.focus():(q=h.current)===null||q===void 0||q.focus()}}};return T.addEventListener("keydown",O),()=>T.removeEventListener("keydown",O)}},[a,S]),(0,Me.createElement)(XD,{ref:l,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&(0,Me.createElement)(eI,{ref:u,onFocusFromOutsideViewport:()=>{let T=S({tabbingDirection:"forwards"});r2(T)}}),(0,Me.createElement)(i2.Slot,{scope:r},(0,Me.createElement)(Er.ol,pt({tabIndex:-1},i,{ref:y}))),v&&(0,Me.createElement)(eI,{ref:h,onFocusFromOutsideViewport:()=>{let T=S({tabbingDirection:"backwards"});r2(T)}}))}),kG="ToastFocusProxy",eI=(0,Me.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,o=Pe(s,["__scopeToast","onFocusFromOutsideViewport"]),i=L0(kG,r);return(0,Me.createElement)(t2,pt({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:a=>{var l;let u=a.relatedTarget;!((l=i.viewport)!==null&&l!==void 0&&l.contains(u))&&n()}}))}),F0="Toast",LG="toast.swipeStart",FG="toast.swipeMove",$G="toast.swipeCancel",UG="toast.swipeEnd",BG=(0,Me.forwardRef)((e,t)=>{let u=e,{forceMount:r,open:n,defaultOpen:o,onOpenChange:i}=u,s=Pe(u,["forceMount","open","defaultOpen","onOpenChange"]),[a=!0,l]=R0({prop:n,defaultProp:o,onChange:i});return(0,Me.createElement)(Ka,{present:r||a},(0,Me.createElement)(sI,pt({open:a},s,{ref:t,onClose:()=>l(!1),onPause:Zr(e.onPause),onResume:Zr(e.onResume),onSwipeStart:yr(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:yr(e.onSwipeMove,h=>{let{x:p,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:yr(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:yr(e.onSwipeEnd,h=>{let{x:p,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),l(!1)})})))}),[jG,VG]=oI(F0,{onClose(){}}),sI=(0,Me.forwardRef)((e,t)=>{let m=e,{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:h,onSwipeMove:p,onSwipeCancel:y,onSwipeEnd:w}=m,v=Pe(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),S=L0(F0,r),[I,T]=(0,Me.useState)(null),O=Xr(t,b=>T(b)),M=(0,Me.useRef)(null),L=(0,Me.useRef)(null),G=o||S.duration,J=(0,Me.useRef)(0),V=(0,Me.useRef)(G),q=(0,Me.useRef)(0),{onToastAdd:ce,onToastRemove:me}=S,fe=Zr(()=>{var b;(I==null?void 0:I.contains(document.activeElement))&&((b=S.viewport)===null||b===void 0||b.focus()),s()}),X=(0,Me.useCallback)(b=>{!b||b===1/0||(window.clearTimeout(q.current),J.current=new Date().getTime(),q.current=window.setTimeout(fe,b))},[fe]);(0,Me.useEffect)(()=>{let b=S.viewport;if(b){let E=()=>{X(V.current),u==null||u()},A=()=>{let k=new Date().getTime()-J.current;V.current=V.current-k,window.clearTimeout(q.current),l==null||l()};return b.addEventListener(n2,A),b.addEventListener(o2,E),()=>{b.removeEventListener(n2,A),b.removeEventListener(o2,E)}}},[S.viewport,G,l,u,X]),(0,Me.useEffect)(()=>{i&&!S.isClosePausedRef.current&&X(G)},[i,G,S.isClosePausedRef,X]),(0,Me.useEffect)(()=>(ce(),()=>me()),[ce,me]);let R=(0,Me.useMemo)(()=>I?uI(I):null,[I]);return S.viewport?(0,Me.createElement)(Me.Fragment,null,R&&(0,Me.createElement)(zG,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},R),(0,Me.createElement)(jG,{scope:r,onClose:fe},(0,rI.createPortal)((0,Me.createElement)(i2.ItemSlot,{scope:r},(0,Me.createElement)(YD,{asChild:!0,onEscapeKeyDown:yr(a,()=>{S.isFocusedToastEscapeKeyDownRef.current||fe(),S.isFocusedToastEscapeKeyDownRef.current=!1})},(0,Me.createElement)(Er.li,pt({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":S.swipeDirection},v,{ref:O,style:Q({userSelect:"none",touchAction:"none"},e.style),onKeyDown:yr(e.onKeyDown,b=>{b.key==="Escape"&&(a==null||a(b.nativeEvent),b.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:yr(e.onPointerDown,b=>{b.button===0&&(M.current={x:b.clientX,y:b.clientY})}),onPointerMove:yr(e.onPointerMove,b=>{if(!M.current)return;let E=b.clientX-M.current.x,A=b.clientY-M.current.y,k=Boolean(L.current),B=["left","right"].includes(S.swipeDirection),K=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,U=B?K(0,E):0,x=B?0:K(0,A),j=b.pointerType==="touch"?10:2,ie={x:U,y:x},D={originalEvent:b,delta:ie};k?(L.current=ie,k0(FG,p,D,{discrete:!1})):tI(ie,S.swipeDirection,j)?(L.current=ie,k0(LG,h,D,{discrete:!1}),b.target.setPointerCapture(b.pointerId)):(Math.abs(E)>j||Math.abs(A)>j)&&(M.current=null)}),onPointerUp:yr(e.onPointerUp,b=>{let E=L.current,A=b.target;if(A.hasPointerCapture(b.pointerId)&&A.releasePointerCapture(b.pointerId),L.current=null,M.current=null,E){let k=b.currentTarget,B={originalEvent:b,delta:E};tI(E,S.swipeDirection,S.swipeThreshold)?k0(UG,w,B,{discrete:!0}):k0($G,y,B,{discrete:!0}),k.addEventListener("click",K=>K.preventDefault(),{once:!0})}})})))),S.viewport))):null});sI.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${F0}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var zG=e=>{let u=e,{__scopeToast:t,children:r}=u,n=Pe(u,["__scopeToast","children"]),o=L0(F0,t),[i,s]=(0,Me.useState)(!1),[a,l]=(0,Me.useState)(!1);return WG(()=>s(!0)),(0,Me.useEffect)(()=>{let h=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(h)},[]),a?null:(0,Me.createElement)(A0,{asChild:!0},(0,Me.createElement)(t2,n,i&&(0,Me.createElement)(Me.Fragment,null,o.label," ",r)))};var HG=(0,Me.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=Pe(o,["__scopeToast"]);return(0,Me.createElement)(Er.div,pt({},n,{ref:t}))});var KG="ToastAction",aI=(0,Me.forwardRef)((e,t)=>{let o=e,{altText:r}=o,n=Pe(o,["altText"]);return r?(0,Me.createElement)(lI,{altText:r,asChild:!0},(0,Me.createElement)(GG,pt({},n,{ref:t}))):null});aI.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${KG}\``)}};var qG="ToastClose",GG=(0,Me.forwardRef)((e,t)=>{let i=e,{__scopeToast:r}=i,n=Pe(i,["__scopeToast"]),o=VG(qG,r);return(0,Me.createElement)(lI,{asChild:!0},(0,Me.createElement)(Er.button,pt({type:"button"},n,{ref:t,onClick:yr(e.onClick,o.onClose)})))}),lI=(0,Me.forwardRef)((e,t)=>{let i=e,{__scopeToast:r,altText:n}=i,o=Pe(i,["__scopeToast","altText"]);return(0,Me.createElement)(Er.div,pt({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function uI(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),YG(n)){let o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){let s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...uI(n))}}),t}function k0(e,t,r,{discrete:n}){let o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?D0(o,i):o.dispatchEvent(i)}var tI=(e,t,r=0)=>{let n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function WG(e=()=>{}){let t=Zr(e);Ha(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function YG(e){return e.nodeType===e.ELEMENT_NODE}function XG(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function r2(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var cI=iI,fI=NG,dI=BG,hI=HG;var pI=aI;c();d();f();c();d();f();var gI="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 JG=n=>{var o=n,{border:e,size:t="sm"}=o,r=Pe(o,["border","size"]);let i=t==="md"?36:24;return g.createElement(g.Fragment,null,e&&g.createElement("svg",{className:Yt(e,"absolute left-1/2 top-1/2 w-[34px] -mt-[2px] transform -translate-x-1/2 -translate-y-1/2"),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 26 26"},g.createElement("path",{d:"M8.382 2.244a6.938 6.938 0 0 1 9.236 0l1.626 1.451c.346.308.722.581 1.122.815l1.882 1.098a6.937 6.937 0 0 1 2.854 8.784l-.877 1.995c-.187.424-.33.866-.428 1.319l-.463 2.129a6.938 6.938 0 0 1-7.473 5.429l-2.168-.218a6.934 6.934 0 0 0-1.386 0l-2.168.218a6.938 6.938 0 0 1-7.473-5.429l-.463-2.13a6.937 6.937 0 0 0-.428-1.318l-.877-1.995a6.938 6.938 0 0 1 2.854-8.784L5.634 4.51c.4-.234.776-.507 1.122-.815l1.626-1.45Z"})),g.createElement("img",ve(Q({src:gI},r),{alt:"Verified",width:i,height:i})))},zs=JG;c();d();f();var QG=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.665 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-6-3.334a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Zm-1.333 1.5a.5.5 0 0 0 0 1h.167v4.167a.5.5 0 1 0 1 0V6.665a.5.5 0 0 0-.5-.5h-.667Z",clipRule:"evenodd"})),yI=QG;var eW=()=>g.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6"},g.createElement(zs,{className:"h-12 w-12"}),g.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"IDKit and World ID are fully privacy preserving."),g.createElement("ul",{className:"mb-6 list-disc space-y-3 px-4"},g.createElement("li",{className:"text-left dark:text-white"},"Phone numbers are never kept by anyone. IDKit and its phone carrier only uses your number to deliver a one-time code.",g.createElement("ul",{className:"text-9eafc0 dark:text-9eafc0 mt-3 list-disc pl-4"},g.createElement("li",null,"Apps only receive a hash-like nullifier which can't be reversed. Worldcoin or IDKit don't store nullifier hashes."))),g.createElement("li",{className:"text-left dark:text-white"},"Orb biometrics analyzed by the Orb are not stored. Orb credential is used with Zero-Knowledge Proofs which makes it cryptographically impossible to track persons across applications."),g.createElement("li",{className:"text-left dark:text-white"},"Our code is fully open source or source available on"," ",g.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0 underline",rel:"noreferrer"},"GitHub"),".")),g.createElement("div",{className:"-ml-4 flex items-center space-x-3"},g.createElement(yI,{className:"h-4 w-4 text-white"}),g.createElement("p",{className:"whitespace-nowrap text-sm font-medium text-white"},"Apps will never see your phone number or biometrics."))),vI=eW;c();d();f();c();d();f();var tW=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),g.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),$0=tW;var rW=e=>e.copy,nW=()=>{let e=Bt(rW);return g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},g.createElement($0,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),g.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},Wn(e,"success"))))},wI=nW;c();d();f();c();d();f();var EM=ue(we(),1),SM=ue(we(),1),CM=ue(SI(),1);c();d();f();var jd=ue(we(),1),wM=ue(CI(),1),bM=ue(gM(),1);c();d();f();var gX=e=>g.createElement("svg",ve(Q({},e),{viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{d:"M26.979 17.9748C27.0917 18.106 27.2493 18.1906 27.4209 18.212C27.5926 18.2335 27.7661 18.1903 27.9076 18.0909C29.2231 17.1623 31.4672 15.6147 33.9047 14.0864C35.7135 16.1216 36.9017 18.6323 37.3288 21.3215C39.244 18.5745 44.6607 11.4941 39.9985 7.95389C36.0133 4.99405 27.6561 13.8349 26.8243 17.3557C26.7972 17.4637 26.7972 17.5767 26.8241 17.6846C26.8511 17.7926 26.9043 17.8923 26.979 17.9748Z"}),g.createElement("path",{d:"M30.229 22.6759C30.1037 22.74 30 22.8396 29.931 22.9623C29.8619 23.085 29.8306 23.2253 29.841 23.3657C29.8513 23.5061 29.9028 23.6404 29.989 23.7516C30.0752 23.8629 30.1924 23.9463 30.3257 23.9914C31.8734 24.4556 34.485 25.2488 37.1933 26.1967C36.7314 28.8866 35.5021 31.3857 33.6532 33.3932C36.9999 33.1611 45.9181 32.9869 45.802 27.1446C45.6279 22.1922 33.5177 21.1476 30.229 22.6759Z"}),g.createElement("path",{d:"M28.1784 28.6729C28.0788 28.6249 27.9697 28.6 27.8592 28.6C27.7487 28.6 27.6395 28.6249 27.54 28.6729C27.386 28.7555 27.2675 28.8916 27.2069 29.0555C27.1464 29.2194 27.1478 29.3998 27.2111 29.5627C27.8302 31.0523 28.8361 33.6059 29.7647 36.3143C25.7215 38.5003 21.9492 38.0167 21.9492 38.0167C24.1932 40.4929 29.8808 47.3605 34.3882 43.6462C38.1412 40.4155 31.4284 30.2785 28.1784 28.6729Z"}),g.createElement("path",{d:"M22.2201 30.7816C22.1968 30.674 22.1476 30.5737 22.0768 30.4895C22.006 30.4052 21.9158 30.3395 21.8138 30.2979C21.6537 30.2287 21.4734 30.2221 21.3086 30.2794C21.1438 30.3367 21.0065 30.4538 20.924 30.6075C20.1308 32.0003 18.7766 34.3605 17.229 36.798C14.7141 35.7418 12.5577 33.9818 11.0191 31.7295C10.4775 35.0375 8.65899 43.7623 14.3659 44.9617C19.2409 45.9096 22.9746 34.3411 22.2201 30.7816Z"}),g.createElement("path",{d:"M16.8614 27.454C16.9266 27.3665 16.971 27.2652 16.9912 27.1579C17.0113 27.0506 17.0066 26.9402 16.9774 26.835C16.9359 26.6637 16.8309 26.5146 16.6837 26.4176C16.5365 26.3207 16.358 26.2832 16.1843 26.3126C14.598 26.5641 11.909 26.9704 9.04584 27.2799C8.31322 24.6557 8.34678 21.8767 9.14257 19.2709C6.22142 20.8959 -1.74887 24.9004 0.882103 30.1237C3.16486 34.5151 14.5593 30.2591 16.8614 27.454Z"}),g.createElement("path",{d:"M16.1262 21.1668C16.2366 21.1694 16.3458 21.1442 16.4438 21.0935C16.5419 21.0427 16.6256 20.9682 16.6872 20.8766C16.7957 20.7414 16.8481 20.5697 16.8337 20.3969C16.8193 20.2241 16.7392 20.0635 16.6099 19.948C15.4104 18.8647 13.4179 17.0075 11.406 14.9569C12.9978 12.7444 15.1943 11.0382 17.7319 10.0432C14.6366 8.78577 6.53092 5.03277 4.07406 10.3334C2.06214 14.8602 12.5086 21.1088 16.1262 21.1668Z"}),g.createElement("path",{d:"M21.156 16.9495C21.3329 16.9453 21.5019 16.8757 21.6305 16.7543C21.7591 16.6328 21.8382 16.468 21.8525 16.2917C21.9492 14.7054 22.162 11.9777 22.5102 9.13394C25.2291 8.99787 27.9294 9.64945 30.287 11.0104C29.3585 7.79911 27.2498 -0.867611 21.5816 0.525254C16.784 1.76336 18.3703 13.8155 20.595 16.698C20.6598 16.7837 20.7452 16.8517 20.8433 16.8957C20.9413 16.9397 21.0489 16.9582 21.156 16.9495Z"})),yM=gX;var yX=window.btoa((0,bM.renderToString)(g.createElement(yM,{style:{color:"#6445DD"}}))),vM=new wM.default({width:200,height:200,type:"svg",image:`data:image/svg+xml;base64,${yX}`,cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},dotsOptions:{color:"currentColor",type:"extra-rounded"},backgroundOptions:{color:"transparent"},imageOptions:{margin:4,hideBackgroundDots:!0}}),_M=({data:e,className:t=""})=>{let r=(0,jd.useRef)(null);return(0,jd.useEffect)(()=>{!r.current||vM.append(r.current)},[]),(0,jd.useEffect)(()=>{vM.update({data:e})},[e]),g.createElement("div",{ref:r,className:Yt(t,"relative z-0 flex items-center justify-center rounded border box-border border-white/10 dark:border-black/10 [&_*]:text-black dark:[&_*]:text-white")})};c();d();f();var vX=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{fill:"currentColor",d:"M13.973 9.133c.446-1.896 4.862-6.64 6.969-5.057 2.453 1.9-.408 5.716-1.416 7.192 0 0-.201-2.042-1.81-3.894a81.232 81.232 0 0 0-3.162 2.154.374.374 0 0 1-.559-.173.393.393 0 0 1-.022-.222Zm1.8 2.863a.358.358 0 0 0-.202.273.382.382 0 0 0 .048.266c.048.08.123.138.211.164a80.06 80.06 0 0 1 3.624 1.183c-.422 2.433-1.862 3.864-1.862 3.864 1.761-.117 6.47-.21 6.407-3.351-.09-2.663-6.489-3.225-8.226-2.4Zm-1.08 3.214a.364.364 0 0 0-.417.064.377.377 0 0 0-.087.42c.317.801.85 2.165 1.348 3.625-2.135 1.178-4.132.919-4.132.919 1.186 1.329 4.19 5.022 6.561 3.02 1.992-1.73-1.555-7.178-3.273-8.047Zm-3.144 1.144a.369.369 0 0 0-.216-.264.359.359 0 0 0-.47.161 80.237 80.237 0 0 1-1.949 3.327c-2.232-.967-3.278-2.721-3.278-2.721-.283 1.774-1.253 6.469 1.766 7.114 2.568.508 4.55-5.712 4.147-7.617Zm-2.832-1.798a.39.39 0 0 0-.088-.554.364.364 0 0 0-.262-.057 75.98 75.98 0 0 1-3.773.523c-.648-2.384.048-4.304.048-4.304-1.54.874-5.75 3.029-4.367 5.828 1.209 2.365 7.223.069 8.442-1.436Zm-.389-3.376a.355.355 0 0 0 .303-.152.386.386 0 0 0-.048-.508 72.636 72.636 0 0 1-2.75-2.677c1.43-1.998 3.34-2.638 3.34-2.638-1.632-.684-5.908-2.702-7.2.151-1.065 2.433 4.44 5.794 6.355 5.824Zm2.664-2.262a.371.371 0 0 0 .246-.106.384.384 0 0 0 .114-.246c.053-.865.168-2.326.346-3.86 2.428-.107 4.108 1.016 4.108 1.016-.49-1.724-1.603-6.385-4.598-5.643-2.534.67-1.69 7.148-.523 8.697a.374.374 0 0 0 .307.142Z"})),xM=vX;var wX=({qrData:e,showQR:t,setShowQR:r})=>{let n=su(),[o,i]=(0,EM.useState)(!1),s=(0,SM.useCallback)(()=>{var a;(0,CM.default)((a=e==null?void 0:e.default)!=null?a:""),i(!0),setTimeout(()=>i(!1),2e3)},[e]);return g.createElement(g.Fragment,null,g.createElement(Wu,null,(n=="desktop"||t)&&g.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},g.createElement("div",{className:"text-29343f dark:text-white"},e?g.createElement(_M,{data:n=="desktop"?e.default:e.mobile}):g.createElement("div",{className:"flex h-[202px] w-[202px] items-center justify-center"},g.createElement(Bs,{className:"h-24 w-24"}))))),g.createElement("div",{className:"space-y-4"},g.createElement(Tt.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:Yt("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d md:hidden")},g.createElement(xM,{className:"h-5 w-5"}),g.createElement(Tt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),g.createElement("div",{className:"space-x-2 md:hidden"},g.createElement(Tt.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&g.createElement(g.Fragment,null,g.createElement("span",{className:"text-9eafc0"},"\xB7"),g.createElement("button",{className:"text-sm dark:text-white",onClick:s},o?"Copied!":"Copy QR Code")))))},TM=wX;var Ph=ue(we(),1);c();d();f();var H2=(a=>(a.ConnectionFailed="connection_failed",a.VerificationRejected="verification_rejected",a.AlreadySigned="already_signed",a.InvalidActionID="invalid_action_id",a.InvalidSignal="invalid_signal",a.UnexpectedResponse="unexpected_response",a.GenericError="generic_error",a))(H2||{});c();d();f();var w$=ue(we(),1);c();d();f();function K2(e,t){let r=new window.URL("https://worldcoin.org/verify");return r.searchParams.append("w",e),t&&r.searchParams.append("r",t),r.toString()}c();d();f();var t$=ue(yg());c();d();f();var Wi=ue(Ws()),fE=ue(yg()),sF=ue(mR()),Hc=ue(vN()),Mt=ue(mx());c();d();f();$g();var KN=ue(Ws()),zg=class extends Bo{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var Hg=class extends Bo{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},Kg=class{constructor(t,r){this.logger=t,this.core=r}},qg=class extends Bo{constructor(t,r){super(),this.relayer=t,this.logger=r}},Gg=class extends Bo{constructor(t){super()}},Wg=class{constructor(t,r,n,o){this.core=t,this.logger=r,this.name=n}};var Yg=class extends Bo{constructor(t,r){super(),this.relayer=t,this.logger=r}};var Xg=class extends Bo{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function Xd(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 wc(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var nh=ue(x7()),tk=ue(Ja()),rk=ue(Ui());c();d();f();var E7="EdDSA",S7="JWT",Rx=".",Nx="base64url",C7="utf8",T7="utf8",P7=":",O7="did",D7="key",kx="base58btc",I7="z",A7="K36";c();d();f();c();d();f();c();d();f();c();d();f();function Sc(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function ry(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Sc(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function M7(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));let r=ry(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return Sc(r)}c();d();f();c();d();f();c();d();f();var Bx={};Hr(Bx,{identity:()=>nJ});c();d();f();c();d();f();c();d();f();function JZ(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 o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),h=Math.log(256)/Math.log(a);function p(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 S=0,I=0,T=0,O=v.length;T!==O&&v[T]===0;)T++,S++;for(var M=(O-T)*h+1>>>0,L=new Uint8Array(M);T!==O;){for(var G=v[T],J=0,V=M-1;(G!==0||J<I)&&V!==-1;V--,J++)G+=256*L[V]>>>0,L[V]=G%a>>>0,G=G/a>>>0;if(G!==0)throw new Error("Non-zero carry");I=J,T++}for(var q=M-I;q!==M&&L[q]===0;)q++;for(var ce=l.repeat(S);q<M;++q)ce+=e.charAt(L[q]);return ce}function y(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var S=0;if(v[S]!==" "){for(var I=0,T=0;v[S]===l;)I++,S++;for(var O=(v.length-S)*u+1>>>0,M=new Uint8Array(O);v[S];){var L=r[v.charCodeAt(S)];if(L===255)return;for(var G=0,J=O-1;(L!==0||G<T)&&J!==-1;J--,G++)L+=a*M[J]>>>0,M[J]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");T=G,S++}if(v[S]!==" "){for(var V=O-T;V!==O&&M[V]===0;)V++;for(var q=new Uint8Array(I+(O-V)),ce=I;V!==O;)q[ce++]=M[V++];return q}}}function w(v){var S=y(v);if(S)return S;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:y,decode:w}}var QZ=JZ,eJ=QZ,R7=eJ;c();d();f();var nxe=new Uint8Array(0);var N7=(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},ji=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 k7=e=>new TextEncoder().encode(e),L7=e=>new TextDecoder().decode(e);var Lx=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")}},Fx=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 $7(this,t)}},$x=class{constructor(t){this.decoders=t}or(t){return $7(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`)}},$7=(e,t)=>new $x(Q(Q({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Ux=class{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new Lx(t,r,n),this.decoder=new Fx(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},Cc=({name:e,prefix:t,encode:r,decode:n})=>new Ux(e,t,r,n),Xs=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=R7(r,t);return Cc({prefix:e,name:t,encode:n,decode:i=>ji(o(i))})},tJ=(e,t,r,n)=>{let o={};for(let h=0;h<t.length;++h)o[t[h]]=h;let i=e.length;for(;e[i-1]==="=";)--i;let s=new Uint8Array(i*r/8|0),a=0,l=0,u=0;for(let h=0;h<i;++h){let p=o[e[h]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);l=l<<r|p,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},rJ=(e,t,r)=>{let n=t[t.length-1]==="=",o=(1<<r)-1,i="",s=0,a=0;for(let l=0;l<e.length;++l)for(a=a<<8|e[l],s+=8;s>r;)s-=r,i+=t[o&a>>s];if(s&&(i+=t[o&a<<r-s]),n)for(;i.length*r&7;)i+="=";return i},or=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Cc({prefix:t,name:e,encode(o){return rJ(o,n,r)},decode(o){return tJ(o,n,r,e)}});var nJ=Cc({prefix:"\0",name:"identity",encode:e=>L7(e),decode:e=>k7(e)});var jx={};Hr(jx,{base2:()=>oJ});c();d();f();var oJ=or({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Vx={};Hr(Vx,{base8:()=>iJ});c();d();f();var iJ=or({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var zx={};Hr(zx,{base10:()=>sJ});c();d();f();var sJ=Xs({prefix:"9",name:"base10",alphabet:"0123456789"});var Hx={};Hr(Hx,{base16:()=>aJ,base16upper:()=>lJ});c();d();f();var aJ=or({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),lJ=or({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Kx={};Hr(Kx,{base32:()=>Tc,base32hex:()=>dJ,base32hexpad:()=>pJ,base32hexpadupper:()=>mJ,base32hexupper:()=>hJ,base32pad:()=>cJ,base32padupper:()=>fJ,base32upper:()=>uJ,base32z:()=>gJ});c();d();f();var Tc=or({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),uJ=or({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),cJ=or({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),fJ=or({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),dJ=or({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),hJ=or({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),pJ=or({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),mJ=or({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),gJ=or({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var qx={};Hr(qx,{base36:()=>yJ,base36upper:()=>vJ});c();d();f();var yJ=Xs({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),vJ=Xs({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Gx={};Hr(Gx,{base58btc:()=>li,base58flickr:()=>wJ});c();d();f();var li=Xs({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),wJ=Xs({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Wx={};Hr(Wx,{base64:()=>bJ,base64pad:()=>_J,base64url:()=>xJ,base64urlpad:()=>EJ});c();d();f();var bJ=or({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_J=or({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),xJ=or({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),EJ=or({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Yx={};Hr(Yx,{base256emoji:()=>OJ});c();d();f();var U7=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}"),SJ=U7.reduce((e,t,r)=>(e[r]=t,e),[]),CJ=U7.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function TJ(e){return e.reduce((t,r)=>(t+=SJ[r],t),"")}function PJ(e){let t=[];for(let r of e){let n=CJ[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var OJ=Cc({prefix:"\u{1F680}",name:"base256emoji",encode:TJ,decode:PJ});var Qx={};Hr(Qx,{sha256:()=>GJ,sha512:()=>WJ});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var DJ=V7,B7=128,IJ=127,AJ=~IJ,MJ=Math.pow(2,31);function V7(e,t,r){t=t||[],r=r||0;for(var n=r;e>=MJ;)t[r++]=e&255|B7,e/=128;for(;e&AJ;)t[r++]=e&255|B7,e>>>=7;return t[r]=e|0,V7.bytes=r-n+1,t}var RJ=Xx,NJ=128,j7=127;function Xx(e,n){var r=0,n=n||0,o=0,i=n,s,a=e.length;do{if(i>=a)throw Xx.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&j7)<<o:(s&j7)*Math.pow(2,o),o+=7}while(s>=NJ);return Xx.bytes=i-n,r}var kJ=Math.pow(2,7),LJ=Math.pow(2,14),FJ=Math.pow(2,21),$J=Math.pow(2,28),UJ=Math.pow(2,35),BJ=Math.pow(2,42),jJ=Math.pow(2,49),VJ=Math.pow(2,56),zJ=Math.pow(2,63),HJ=function(e){return e<kJ?1:e<LJ?2:e<FJ?3:e<$J?4:e<UJ?5:e<BJ?6:e<jJ?7:e<VJ?8:e<zJ?9:10},KJ={encode:DJ,decode:RJ,encodingLength:HJ},qJ=KJ,Qd=qJ;var eh=(e,t=0)=>[Qd.decode(e,t),Qd.decode.bytes],Pc=(e,t,r=0)=>(Qd.encode(e,t,r),t),Oc=e=>Qd.encodingLength(e);var rl=(e,t)=>{let r=t.byteLength,n=Oc(e),o=n+Oc(r),i=new Uint8Array(o+r);return Pc(e,i,0),Pc(r,i,n),i.set(t,o),new Dc(e,r,t,i)},z7=e=>{let t=ji(e),[r,n]=eh(t),[o,i]=eh(t.subarray(n)),s=t.subarray(n+i);if(s.byteLength!==o)throw new Error("Incorrect length");return new Dc(r,o,s,t)},H7=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&N7(e.bytes,t.bytes),Dc=class{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}};var Jx=({name:e,code:t,encode:r})=>new Zx(e,t,r),Zx=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?rl(this.code,r):r.then(n=>rl(this.code,n))}else throw Error("Unknown type, must be binary type")}};var q7=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),GJ=Jx({name:"sha2-256",code:18,encode:q7("SHA-256")}),WJ=Jx({name:"sha2-512",code:19,encode:q7("SHA-512")});var e3={};Hr(e3,{identity:()=>ZJ});c();d();f();var G7=0,YJ="identity",W7=ji,XJ=e=>rl(G7,W7(e)),ZJ={code:G7,name:YJ,encode:W7,digest:XJ};c();d();f();c();d();f();var Sxe=new TextEncoder,Cxe=new TextDecoder;c();d();f();c();d();f();var Sr=class{constructor(t,r,n,o){this.code=r,this.version=t,this.multihash=n,this.bytes=o,this.byteOffset=o.byteOffset,this.byteLength=o.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:iy,byteLength:iy,code:oy,version:oy,multihash:oy,bytes:oy,_baseCache:iy,asCID:iy})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==rh)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==nQ)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Sr.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=rl(t,r);return Sr.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&&H7(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:o}=this;switch(n){case 0:return tQ(r,o,t||li.encoder);default:return rQ(r,o,t||Tc.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 iQ(/^0\.0/,sQ),!!(t&&(t[X7]||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 Sr)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:o,bytes:i}=t;return new Sr(r,n,o,i||Y7(r,n,o.bytes))}else if(t!=null&&t[X7]===!0){let{version:r,multihash:n,code:o}=t,i=z7(n);return Sr.create(r,o,i)}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!==rh)throw new Error(`Version 0 CID must use dag-pb (code: ${rh}) block encoding`);return new Sr(t,r,n,n.bytes)}case 1:{let o=Y7(t,r,n.bytes);return new Sr(t,r,n,o)}default:throw new Error("Invalid version")}}static createV0(t){return Sr.create(0,rh,t)}static createV1(t,r){return Sr.create(1,t,r)}static decode(t){let[r,n]=Sr.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=Sr.inspectBytes(t),n=r.size-r.multihashSize,o=ji(t.subarray(n,n+r.multihashSize));if(o.byteLength!==r.multihashSize)throw new Error("Incorrect length");let i=o.subarray(r.multihashSize-r.digestSize),s=new Dc(r.multihashCode,r.digestSize,i,o);return[r.version===0?Sr.createV0(s):Sr.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[p,y]=eh(t.subarray(r));return r+=y,p},o=n(),i=rh;if(o===18?(o=0,r=0):o===1&&(i=n()),o!==0&&o!==1)throw new RangeError(`Invalid CID version ${o}`);let s=r,a=n(),l=n(),u=r+l,h=u-s;return{version:o,codec:i,multihashCode:a,digestSize:l,multihashSize:h,size:u}}static parse(t,r){let[n,o]=eQ(t,r),i=Sr.decode(o);return i._baseCache.set(n,t),i}},eQ=(e,t)=>{switch(e[0]){case"Q":{let r=t||li;return[li.prefix,r.decode(`${li.prefix}${e}`)]}case li.prefix:{let r=t||li;return[li.prefix,r.decode(e)]}case Tc.prefix:{let r=t||Tc;return[Tc.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)]}}},tQ=(e,t,r)=>{let{prefix:n}=r;if(n!==li.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let o=t.get(n);if(o==null){let i=r.encode(e).slice(1);return t.set(n,i),i}else return o},rQ=(e,t,r)=>{let{prefix:n}=r,o=t.get(n);if(o==null){let i=r.encode(e);return t.set(n,i),i}else return o},rh=112,nQ=18,Y7=(e,t,r)=>{let n=Oc(e),o=n+Oc(t),i=new Uint8Array(o+r.byteLength);return Pc(e,i,0),Pc(t,i,n),i.set(r,o),i},X7=Symbol.for("@ipld/js-cid/CID"),oy={writable:!1,configurable:!1,enumerable:!0},iy={writable:!1,enumerable:!1,configurable:!1},oQ="0.0.0-dev",iQ=(e,t)=>{if(e.test(oQ))console.warn(t);else throw new Error(t)},sQ=`CID.isCID(v) is deprecated and will be removed in the next major release.
|
|
33
|
-
Following code pattern:
|
|
34
|
-
|
|
35
|
-
if (CID.isCID(value)) {
|
|
36
|
-
doSomethingWithCID(value)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
Is replaced with:
|
|
40
|
-
|
|
41
|
-
const cid = CID.asCID(value)
|
|
42
|
-
if (cid) {
|
|
43
|
-
// Make sure to use cid instead of value
|
|
44
|
-
doSomethingWithCID(cid)
|
|
45
|
-
}
|
|
46
|
-
`;var Ic=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},Bx),jx),Vx),zx),Hx),Kx),qx),Gx),Wx),Yx),Rxe=Q(Q({},Qx),e3);function J7(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var Z7=J7("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),t3=J7("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=ry(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),aQ=Q({utf8:Z7,"utf-8":Z7,hex:Ic.base16,latin1:t3,ascii:t3,binary:t3},Ic),sy=aQ;function ay(e,t="utf8"){let r=sy[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 ly(e,t="utf8"){let r=sy[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Sc(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function uy(e){return ay(ly(wc(e),C7),Nx)}function cy(e){let t=ly(A7,kx),r=I7+ay(M7([t,e]),kx);return[O7,D7,r].join(P7)}function lQ(e){return ay(e,Nx)}function Q7(e){return ly([uy(e.header),uy(e.payload)].join(Rx),T7)}function ek(e){return[uy(e.header),uy(e.payload),lQ(e.signature)].join(Rx)}function r3(e=(0,tk.randomBytes)(32)){return nh.generateKeyPairFromSeed(e)}async function nk(e,t,r,n,o=(0,rk.fromMiliseconds)(Date.now())){let i={alg:E7,typ:S7},s=cy(n.publicKey),a=o+r,l={iss:s,sub:e,aud:t,iat:o,exp:a},u=Q7({header:i,payload:l}),h=nh.sign(n.secretKey,u);return ek({header:i,payload:l,signature:h})}c();d();f();c();d();f();var p3=ue(my()),Xk=ue(gy()),m3=ue(Ja()),ch=ue(wy()),Iy=ue(xy());c();d();f();c();d();f();c();d();f();c();d();f();function lh(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Mc(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));let r=lh(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}c();d();f();c();d();f();c();d();f();function _k(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var bk=_k("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),u3=_k("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=lh(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),UQ=Q({utf8:bk,"utf-8":bk,hex:Ic.base16,latin1:u3,ascii:u3,binary:u3},Ic),Ey=UQ;function mn(e,t="utf8"){let r=Ey[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 gn(e,t="utf8"){let r=Ey[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 xk=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},BQ=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var jQ=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var VQ=function(){function e(t,r,n,o){this.name=t,this.version=r,this.os=n,this.bot=o,this.type="bot-device"}return e}();var zQ=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var HQ=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var KQ=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,qQ=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Ek=3,GQ=[["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",KQ]],Sk=[["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 Tk(e){return e?Ck(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new HQ:typeof navigator<"u"?Ck(navigator.userAgent):XQ()}function WQ(e){return e!==""&&GQ.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1)}function Ck(e){var t=WQ(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new zQ;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?o.length<Ek&&(o=xk(xk([],o,!0),ZQ(Ek-o.length),!0)):o=[];var i=o.join("."),s=YQ(e),a=qQ.exec(e);return a&&a[1]?new VQ(r,i,s,a[1]):new BQ(r,i,s)}function YQ(e){for(var t=0,r=Sk.length;t<r;t++){var n=Sk[t],o=n[0],i=n[1],s=i.exec(e);if(s)return o}return null}function XQ(){var e=typeof process<"u"&&process.version;return e?new jQ(process.version.slice(1)):null}function ZQ(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Js=ue(Ui()),il=ue(ol()),vee=ue(Ok()),Nc=ue(zk());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Dy={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}};var Zk="base10",Rn="base16",d3="base64pad",g3="utf8",Jk=0,sl=1,wee=0,Hk=1,h3=12,y3=32;function Qk(){let e=Iy.generateKeyPair();return{privateKey:gn(e.secretKey,Rn),publicKey:gn(e.publicKey,Rn)}}function Ay(){let e=(0,m3.randomBytes)(y3);return gn(e,Rn)}function e9(e,t){let r=Iy.sharedKey(mn(e,Rn),mn(t,Rn)),n=new Xk.HKDF(ch.SHA256,r).expand(y3);return gn(n,Rn)}function t9(e){let t=(0,ch.hash)(mn(e,Rn));return gn(t,Rn)}function fh(e){let t=(0,ch.hash)(mn(e,g3));return gn(t,Rn)}function bee(e){return mn(`${e}`,Zk)}function kc(e){return Number(gn(e,Zk))}function r9(e){let t=bee(typeof e.type<"u"?e.type:Jk);if(kc(t)===sl&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?mn(e.senderPublicKey,Rn):void 0,n=typeof e.iv<"u"?mn(e.iv,Rn):(0,m3.randomBytes)(h3),o=new p3.ChaCha20Poly1305(mn(e.symKey,Rn)).seal(n,mn(e.message,g3));return _ee({type:t,sealed:o,iv:n,senderPublicKey:r})}function n9(e){let t=new p3.ChaCha20Poly1305(mn(e.symKey,Rn)),{sealed:r,iv:n}=My(e.encoded),o=t.open(n,r);if(o===null)throw new Error("Failed to decrypt");return gn(o,g3)}function _ee(e){if(kc(e.type)===sl){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return gn(Mc([e.type,e.senderPublicKey,e.iv,e.sealed]),d3)}return gn(Mc([e.type,e.iv,e.sealed]),d3)}function My(e){let t=mn(e,d3),r=t.slice(wee,Hk),n=Hk;if(kc(r)===sl){let a=n+y3,l=a+h3,u=t.slice(n,a),h=t.slice(a,l),p=t.slice(l);return{type:r,sealed:p,iv:h,senderPublicKey:u}}let o=n+h3,i=t.slice(n,o),s=t.slice(o);return{type:r,sealed:s,iv:i}}function o9(e,t){let r=My(e);return v3({type:kc(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?gn(r.senderPublicKey,Rn):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function v3(e){let t=(e==null?void 0:e.type)||Jk;if(t===sl){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 w3(e){return e.type===sl&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var xee=Object.defineProperty,Kk=Object.getOwnPropertySymbols,Eee=Object.prototype.hasOwnProperty,See=Object.prototype.propertyIsEnumerable,qk=(e,t,r)=>t in e?xee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gk=(e,t)=>{for(var r in t||(t={}))Eee.call(t,r)&&qk(e,r,t[r]);if(Kk)for(var r of Kk(t))See.call(t,r)&&qk(e,r,t[r]);return e},Cee="ReactNative",uh={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var Tee="js";function i9(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function Pee(){return!(0,il.getDocument)()&&!!(0,il.getNavigator)()&&navigator.product===Cee}function Oee(){return!i9()&&!!(0,il.getNavigator)()}function Dee(){return Pee()?uh.reactNative:i9()?uh.node:Oee()?uh.browser:uh.unknown}function Iee(e,t){let r=Nc.parse(e);return r=Gk(Gk({},r),t),e=Nc.stringify(r),e}function Aee(){let e=Tk();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 Mee(){var e;let t=Dee();return t===uh.browser?[t,((e=(0,il.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function Ree(e,t,r){let n=Aee(),o=Mee();return[[e,t].join("-"),[Tee,r].join("-"),n,o].join("/")}function s9({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:o,projectId:i}){let s=r.split("?"),a=Ree(e,t,n),l={auth:o,ua:a,projectId:i},u=Iee(s[1]||"",l);return s[0]+"?"+u}function b3(e){return Object.fromEntries(e.entries())}function _3(e){return new Map(Object.entries(e))}function a9(e){let t=(0,Js.toMiliseconds)(e||Js.FIVE_MINUTES),r,n,o;return{resolve:i=>{o&&r&&(clearTimeout(o),r(i))},reject:i=>{o&&n&&(clearTimeout(o),n(i))},done:()=>new Promise((i,s)=>{o=setTimeout(s,t),r=i,n=s})}}function x3(e,t){return new Promise(async(r,n)=>{let o=setTimeout(()=>n(),t),i=await e;clearTimeout(o),r(i)})}function l9(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 u9(e){return l9("topic",e)}function c9(e){return l9("id",e)}function f9(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 Ry(e,t){return(0,Js.fromMiliseconds)((t||Date.now())+(0,Js.toMiliseconds)(e))}function E3(e){return Date.now()>=(0,Js.toMiliseconds)(e)}function Ny(e,t){return`${e}${t?`:${t}`:""}`}var Nee="irn";function ky(e){return(e==null?void 0:e.relay)||{protocol:Nee}}function Ly(e){let t=Dy[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var kee=Object.defineProperty,Wk=Object.getOwnPropertySymbols,Lee=Object.prototype.hasOwnProperty,Fee=Object.prototype.propertyIsEnumerable,Yk=(e,t,r)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$ee=(e,t)=>{for(var r in t||(t={}))Lee.call(t,r)&&Yk(e,r,t[r]);if(Wk)for(var r of Wk(t))Fee.call(t,r)&&Yk(e,r,t[r]);return e};function Uee(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(o=>{if(o.startsWith(n)){let i=o.replace(n,""),s=e[o];r[i]=s}}),r}function d9(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),o=e.substring(t+1,r).split("@"),i=typeof r<"u"?e.substring(r):"",s=Nc.parse(i);return{protocol:n,topic:o[0],version:parseInt(o[1],10),symKey:s.symKey,relay:Uee(s)}}function Bee(e,t="-"){let r="relay",n={};return Object.keys(e).forEach(o=>{let i=r+t+o;e[o]&&(n[i]=e[o])}),n}function h9(e){return`${e.protocol}:${e.topic}@${e.version}?`+Nc.stringify($ee({symKey:e.symKey},Bee(e.relay)))}var jee={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}},Vee={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 At(e,t){let{message:r,code:n}=Vee[e];return{message:t?`${r} ${t}`:r,code:n}}function Lc(e,t){let{message:r,code:n}=jee[e];return{message:t?`${r} ${t}`:r,code:n}}function dh(e){return typeof e>"u"}function S3(e,t){return t&&dh(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function p9(e){if(S3(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function m9(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function g9(e){return e==null?void 0:e.topic}function Fy(e){return typeof e<"u"&&typeof e!==null}var Kt=ue(Ui());c();d();f();c();d();f();var eL=ue(Ws());var Cr={};Hr(Cr,{DEFAULT_ERROR:()=>ph,IBaseJsonRpcProvider:()=>Wy,IEvents:()=>Uc,IJsonRpcConnection:()=>I3,IJsonRpcProvider:()=>mh,INTERNAL_ERROR:()=>$y,INVALID_PARAMS:()=>b9,INVALID_REQUEST:()=>v9,METHOD_NOT_FOUND:()=>w9,PARSE_ERROR:()=>y9,RESERVED_ERROR_CODES:()=>C3,SERVER_ERROR:()=>hh,SERVER_ERROR_CODE_RANGE:()=>Uy,STANDARD_ERROR_MAP:()=>Qs,formatErrorMessage:()=>J9,formatJsonRpcError:()=>al,formatJsonRpcRequest:()=>ra,formatJsonRpcResult:()=>$c,getError:()=>jy,getErrorByCode:()=>Vy,isHttpUrl:()=>Qee,isJsonRpcError:()=>yn,isJsonRpcPayload:()=>M3,isJsonRpcRequest:()=>Bc,isJsonRpcResponse:()=>ll,isJsonRpcResult:()=>xo,isJsonRpcValidationInvalid:()=>ete,isLocalhostUrl:()=>A3,isNodeJs:()=>X9,isReservedErrorCode:()=>By,isServerErrorCode:()=>zee,isValidDefaultRoute:()=>qy,isValidErrorCode:()=>_9,isValidLeadingWildcardRoute:()=>Wee,isValidRoute:()=>Gee,isValidTrailingWildcardRoute:()=>Yee,isValidWildcardRoute:()=>Gy,isWsUrl:()=>Yy,parseConnectionError:()=>T3,payloadId:()=>Z9,validateJsonRpcError:()=>Hee});c();d();f();c();d();f();var y9="PARSE_ERROR",v9="INVALID_REQUEST",w9="METHOD_NOT_FOUND",b9="INVALID_PARAMS",$y="INTERNAL_ERROR",hh="SERVER_ERROR",C3=[-32700,-32600,-32601,-32602,-32603],Uy=[-32e3,-32099],Qs={[y9]:{code:-32700,message:"Parse error"},[v9]:{code:-32600,message:"Invalid Request"},[w9]:{code:-32601,message:"Method not found"},[b9]:{code:-32602,message:"Invalid params"},[$y]:{code:-32603,message:"Internal error"},[hh]:{code:-32e3,message:"Server error"}},ph=hh;c();d();f();function zee(e){return e<=Uy[0]&&e>=Uy[1]}function By(e){return C3.includes(e)}function _9(e){return typeof e=="number"}function jy(e){return Object.keys(Qs).includes(e)?Qs[e]:Qs[ph]}function Vy(e){let t=Object.values(Qs).find(r=>r.code===e);return t||Qs[ph]}function Hee(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(!_9(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(By(e.error.code)){let t=Vy(e.error.code);if(t.message!==Qs[ph].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function T3(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var ur={};Hr(ur,{isNodeJs:()=>X9});c();d();f();var Y9=ue(D3());br(ur,ue(D3()));var X9=Y9.isNode;br(Cr,ur);c();d();f();function Z9(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function ra(e,t,r){return{id:r||Z9(),jsonrpc:"2.0",method:e,params:t}}function $c(e,t){return{id:e,jsonrpc:"2.0",result:t}}function al(e,t,r){return{id:e,jsonrpc:"2.0",error:J9(t,r)}}function J9(e,t){return typeof e>"u"?jy($y):(typeof e=="string"&&(e=Object.assign(Object.assign({},jy(hh)),{message:e})),typeof t<"u"&&(e.data=t),By(e.code)&&(e=Vy(e.code)),e)}c();d();f();function Gee(e){return e.includes("*")?Gy(e):!/\W/g.test(e)}function qy(e){return e==="*"}function Gy(e){return qy(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function Wee(e){return!qy(e)&&Gy(e)&&!e.split("*")[0].trim()}function Yee(e){return!qy(e)&&Gy(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Uc=class{};c();d();f();var I3=class extends Uc{constructor(t){super()}},Wy=class extends Uc{constructor(){super()}},mh=class extends Wy{constructor(t){super()}};c();d();f();c();d();f();var Xee="^https?:",Zee="^wss?:";function Jee(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Q9(e,t){let r=Jee(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function Qee(e){return Q9(e,Xee)}function Yy(e){return Q9(e,Zee)}function A3(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function M3(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Bc(e){return M3(e)&&"method"in e}function ll(e){return M3(e)&&(xo(e)||yn(e))}function xo(e){return"result"in e}function yn(e){return"error"in e}function ete(e){return"error"in e&&e.valid===!1}var Xy=class extends mh{constructor(t){super(t),this.events=new eL.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(ra(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(n,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${t.id}`,i=>{yn(i)?o(i.error):n(i.result)});try{await this.connection.send(t,r)}catch(i){o(i)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),ll(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 oL=ue(Ws());var nL=10,tte=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:rL(),rte=()=>typeof window<"u",nte=tte(),R3=class{constructor(t){if(this.url=t,this.events=new oL.EventEmitter,this.registering=!1,!Yy(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(wc(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!Yy(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,o)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),o(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let o=(0,Cr.isReactNative)()?void 0:{rejectUnauthorized:!A3(t)},i=new nte(t,[],o);rte()?i.onerror=s=>{let a=s;n(this.emitError(a.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),r(i)}})}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"?Xd(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),o=n.message||n.toString(),i=al(t,o);this.events.emit("payload",i)}parseError(t,r=this.url){return T3(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>nL&&this.events.setMaxListeners(nL)}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}},iL=R3;var sL=iL;var aF=ue(jL());function Nre(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 o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),h=Math.log(256)/Math.log(a);function p(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 S=0,I=0,T=0,O=v.length;T!==O&&v[T]===0;)T++,S++;for(var M=(O-T)*h+1>>>0,L=new Uint8Array(M);T!==O;){for(var G=v[T],J=0,V=M-1;(G!==0||J<I)&&V!==-1;V--,J++)G+=256*L[V]>>>0,L[V]=G%a>>>0,G=G/a>>>0;if(G!==0)throw new Error("Non-zero carry");I=J,T++}for(var q=M-I;q!==M&&L[q]===0;)q++;for(var ce=l.repeat(S);q<M;++q)ce+=e.charAt(L[q]);return ce}function y(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var S=0;if(v[S]!==" "){for(var I=0,T=0;v[S]===l;)I++,S++;for(var O=(v.length-S)*u+1>>>0,M=new Uint8Array(O);v[S];){var L=r[v.charCodeAt(S)];if(L===255)return;for(var G=0,J=O-1;(L!==0||G<T)&&J!==-1;J--,G++)L+=a*M[J]>>>0,M[J]=L%256>>>0,L=L/256>>>0;if(L!==0)throw new Error("Non-zero carry");T=G,S++}if(v[S]!==" "){for(var V=O-T;V!==O&&M[V]===0;)V++;for(var q=new Uint8Array(I+(O-V)),ce=I;V!==O;)q[ce++]=M[V++];return q}}}function w(v){var S=y(v);if(S)return S;throw new Error(`Non-${t} character`)}return{encode:p,decodeUnsafe:y,decode:w}}var kre=Nre,Lre=kre,lF=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")},Fre=e=>new TextEncoder().encode(e),$re=e=>new TextDecoder().decode(e),G3=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")}},W3=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 uF(this,t)}},Y3=class{constructor(t){this.decoders=t}or(t){return uF(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`)}},uF=(e,t)=>new Y3(Q(Q({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),X3=class{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new G3(t,r,n),this.decoder=new W3(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},cv=({name:e,prefix:t,encode:r,decode:n})=>new X3(e,t,r,n),Eh=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=Lre(r,t);return cv({prefix:e,name:t,encode:n,decode:i=>lF(o(i))})},Ure=(e,t,r,n)=>{let o={};for(let h=0;h<t.length;++h)o[t[h]]=h;let i=e.length;for(;e[i-1]==="=";)--i;let s=new Uint8Array(i*r/8|0),a=0,l=0,u=0;for(let h=0;h<i;++h){let p=o[e[h]];if(p===void 0)throw new SyntaxError(`Non-${n} character`);l=l<<r|p,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},Bre=(e,t,r)=>{let n=t[t.length-1]==="=",o=(1<<r)-1,i="",s=0,a=0;for(let l=0;l<e.length;++l)for(a=a<<8|e[l],s+=8;s>r;)s-=r,i+=t[o&a>>s];if(s&&(i+=t[o&a<<r-s]),n)for(;i.length*r&7;)i+="=";return i},Vr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>cv({prefix:t,name:e,encode(o){return Bre(o,n,r)},decode(o){return Ure(o,n,r,e)}}),jre=cv({prefix:"\0",name:"identity",encode:e=>$re(e),decode:e=>Fre(e)}),Vre=Object.freeze({__proto__:null,identity:jre}),zre=Vr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Hre=Object.freeze({__proto__:null,base2:zre}),Kre=Vr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),qre=Object.freeze({__proto__:null,base8:Kre}),Gre=Eh({prefix:"9",name:"base10",alphabet:"0123456789"}),Wre=Object.freeze({__proto__:null,base10:Gre}),Yre=Vr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Xre=Vr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Zre=Object.freeze({__proto__:null,base16:Yre,base16upper:Xre}),Jre=Vr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Qre=Vr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ene=Vr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),tne=Vr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),rne=Vr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),nne=Vr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),one=Vr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),ine=Vr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),sne=Vr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),ane=Object.freeze({__proto__:null,base32:Jre,base32upper:Qre,base32pad:ene,base32padupper:tne,base32hex:rne,base32hexupper:nne,base32hexpad:one,base32hexpadupper:ine,base32z:sne}),lne=Eh({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),une=Eh({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),cne=Object.freeze({__proto__:null,base36:lne,base36upper:une}),fne=Eh({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),dne=Eh({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),hne=Object.freeze({__proto__:null,base58btc:fne,base58flickr:dne}),pne=Vr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),mne=Vr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),gne=Vr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),yne=Vr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),vne=Object.freeze({__proto__:null,base64:pne,base64pad:mne,base64url:gne,base64urlpad:yne}),cF=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}"),wne=cF.reduce((e,t,r)=>(e[r]=t,e),[]),bne=cF.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function _ne(e){return e.reduce((t,r)=>(t+=wne[r],t),"")}function xne(e){let t=[];for(let r of e){let n=bne[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var Ene=cv({prefix:"\u{1F680}",name:"base256emoji",encode:_ne,decode:xne}),Sne=Object.freeze({__proto__:null,base256emoji:Ene}),Cne=fF,VL=128,Tne=127,Pne=~Tne,One=Math.pow(2,31);function fF(e,t,r){t=t||[],r=r||0;for(var n=r;e>=One;)t[r++]=e&255|VL,e/=128;for(;e&Pne;)t[r++]=e&255|VL,e>>>=7;return t[r]=e|0,fF.bytes=r-n+1,t}var Dne=Z3,Ine=128,zL=127;function Z3(e,n){var r=0,n=n||0,o=0,i=n,s,a=e.length;do{if(i>=a)throw Z3.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&zL)<<o:(s&zL)*Math.pow(2,o),o+=7}while(s>=Ine);return Z3.bytes=i-n,r}var Ane=Math.pow(2,7),Mne=Math.pow(2,14),Rne=Math.pow(2,21),Nne=Math.pow(2,28),kne=Math.pow(2,35),Lne=Math.pow(2,42),Fne=Math.pow(2,49),$ne=Math.pow(2,56),Une=Math.pow(2,63),Bne=function(e){return e<Ane?1:e<Mne?2:e<Rne?3:e<Nne?4:e<kne?5:e<Lne?6:e<Fne?7:e<$ne?8:e<Une?9:10},jne={encode:Cne,decode:Dne,encodingLength:Bne},dF=jne,HL=(e,t,r=0)=>(dF.encode(e,t,r),t),KL=e=>dF.encodingLength(e),J3=(e,t)=>{let r=t.byteLength,n=KL(e),o=n+KL(r),i=new Uint8Array(o+r);return HL(e,i,0),HL(r,i,n),i.set(t,o),new Q3(e,r,t,i)},Q3=class{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}},hF=({name:e,code:t,encode:r})=>new eE(e,t,r),eE=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?J3(this.code,r):r.then(n=>J3(this.code,n))}else throw Error("Unknown type, must be binary type")}},pF=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Vne=hF({name:"sha2-256",code:18,encode:pF("SHA-256")}),zne=hF({name:"sha2-512",code:19,encode:pF("SHA-512")}),Hne=Object.freeze({__proto__:null,sha256:Vne,sha512:zne}),mF=0,Kne="identity",gF=lF,qne=e=>J3(mF,gF(e)),Gne={code:mF,name:Kne,encode:gF,digest:qne},Wne=Object.freeze({__proto__:null,identity:Gne});new TextEncoder,new TextDecoder;var qL=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},Vre),Hre),qre),Wre),Zre),ane),cne),hne),vne),Sne);Q(Q({},Hne),Wne);function Yne(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function yF(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var GL=yF("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),K3=yF("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=Yne(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Xne=Q({utf8:GL,"utf-8":GL,hex:qL.base16,latin1:K3,ascii:K3,binary:K3},qL);function Zne(e,t="utf8"){let r=Xne[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 vF="wc",Jne=2,dE="core",ia=`${vF}@${2}:${dE}:`,Qne={name:dE,logger:"error"},eoe={database:":memory:"},toe="crypto",WL="client_ed25519_seed",roe=Kt.ONE_DAY,noe="keychain",ooe="0.3",ioe="messages",soe="0.3",aoe=Kt.SIX_HOURS,loe="publisher",hE="irn",uoe="error",coe="wss://relay.walletconnect.com",foe="relayer",jr={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"},doe="_subscription",lv={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},YL=Kt.ONE_SECOND;var hoe="2.4.0",poe="0.3",hi={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var moe="subscription",goe="0.3",yoe=Kt.FIVE_SECONDS*1e3,voe="pairing",woe="0.3";var _h={wc_pairingDelete:{req:{ttl:Kt.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Kt.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Kt.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Kt.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Kt.ONE_DAY,prompt:!1,tag:0},res:{ttl:Kt.ONE_DAY,prompt:!1,tag:0}}},di={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},boe="history",_oe="0.3",xoe="expirer",ro={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},Eoe="0.3";var tE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=noe,this.version=ooe,this.initialized=!1,this.storagePrefix=ia,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,o)=>{this.isInitialized(),this.keychain.set(n,o),await this.persist()},this.get=n=>{this.isInitialized();let o=this.keychain.get(n);if(typeof o>"u"){let{message:i}=At("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return o},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=t,this.logger=(0,Mt.generateChildLogger)(r,this.name)}get context(){return(0,Mt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,b3(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?_3(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},rE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=toe,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=o=>(this.isInitialized(),this.keychain.has(o)),this.getClientId=async()=>{this.isInitialized();let o=await this.getClientSeed(),i=r3(o);return cy(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let o=Qk();return this.setPrivateKey(o.publicKey,o.privateKey)},this.signJWT=async o=>{this.isInitialized();let i=await this.getClientSeed(),s=r3(i),a=Ay();return await nk(a,o,roe,s)},this.generateSharedKey=(o,i,s)=>{this.isInitialized();let a=this.getPrivateKey(o),l=e9(a,i);return this.setSymKey(l,s)},this.setSymKey=async(o,i)=>{this.isInitialized();let s=i||t9(o);return await this.keychain.set(s,o),s},this.deleteKeyPair=async o=>{this.isInitialized(),await this.keychain.del(o)},this.deleteSymKey=async o=>{this.isInitialized(),await this.keychain.del(o)},this.encode=async(o,i,s)=>{this.isInitialized();let a=v3(s),l=wc(i);if(w3(a)){let y=a.senderPublicKey,w=a.receiverPublicKey;o=await this.generateSharedKey(y,w)}let u=this.getSymKey(o),{type:h,senderPublicKey:p}=a;return r9({type:h,symKey:u,message:l,senderPublicKey:p})},this.decode=async(o,i,s)=>{this.isInitialized();let a=o9(i,s);if(w3(a)){let h=a.receiverPublicKey,p=a.senderPublicKey;o=await this.generateSharedKey(h,p)}let l=this.getSymKey(o),u=n9({symKey:l,encoded:i});return Xd(u)},this.core=t,this.logger=(0,Mt.generateChildLogger)(r,this.name),this.keychain=n||new tE(this.core,this.logger)}get context(){return(0,Mt.getLoggerContext)(this.logger)}getPayloadType(t){let r=My(t);return kc(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(WL)}catch(r){t=Ay(),await this.keychain.set(WL,t)}return Zne(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},nE=class extends Kg{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=ioe,this.version=soe,this.initialized=!1,this.storagePrefix=ia,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,o)=>{this.isInitialized();let i=fh(o),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=o,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let o=this.messages.get(n);return typeof o>"u"&&(o={}),o},this.has=(n,o)=>{this.isInitialized();let i=this.get(n),s=fh(o);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,Mt.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,Mt.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,b3(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?_3(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},oE=class extends qg{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Wi.EventEmitter,this.name=loe,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,o,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:o,opts:i}});try{let s=(i==null?void 0:i.ttl)||aoe,a=ky(i),l=(i==null?void 0:i.prompt)||!1,u=(i==null?void 0:i.tag)||0,h={topic:n,message:o,opts:{ttl:s,relay:a,prompt:l,tag:u}},p=fh(o);this.queue.set(p,h);try{await await x3(this.rpcPublish(n,o,s,a,l,u),this.publishTimeout),this.relayer.events.emit(jr.publish,h)}catch(y){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(jr.connection_stalled);return}this.onPublish(p,h),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:o,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.relayer=t,this.logger=(0,Mt.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,Mt.getLoggerContext)(this.logger)}rpcPublish(t,r,n,o,i,s){var a,l,u,h;let p={method:Ly(o.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:i,tag:s}};return dh((a=p.params)==null?void 0:a.prompt)&&((l=p.params)==null||delete l.prompt),dh((u=p.params)==null?void 0:u.tag)&&((h=p.params)==null||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:p}),this.relayer.provider.request(p)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:o}=t;await this.publish(r,n,o)})}registerEventListeners(){this.relayer.core.heartbeat.on(Hc.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},iE=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 o=n.filter(i=>i!==r);if(!o.length){this.map.delete(t);return}this.map.set(t,o)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},Soe=Object.defineProperty,Coe=Object.defineProperties,Toe=Object.getOwnPropertyDescriptors,XL=Object.getOwnPropertySymbols,Poe=Object.prototype.hasOwnProperty,Ooe=Object.prototype.propertyIsEnumerable,ZL=(e,t,r)=>t in e?Soe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uv=(e,t)=>{for(var r in t||(t={}))Poe.call(t,r)&&ZL(e,r,t[r]);if(XL)for(var r of XL(t))Ooe.call(t,r)&&ZL(e,r,t[r]);return e},q3=(e,t)=>Coe(e,Toe(t)),sE=class extends Yg{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new iE,this.events=new Wi.EventEmitter,this.name=moe,this.version=goe,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=ia,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,o)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:o}});try{let i=ky(o),s={topic:n,relay:i};this.pending.set(n,s);let a=await this.rpcSubscribe(n,i);return this.onSubscribe(a,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:o}}),a}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,o)=>{await this.restartToComplete(),this.isInitialized(),typeof(o==null?void 0:o.id)<"u"?await this.unsubscribeById(n,o.id,o):await this.unsubscribeByTopic(n,o)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((o,i)=>{let s=new Kt.Watch;s.start(this.pendingSubscriptionWatchLabel);let a=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=yoe&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Mt.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,Mt.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(o){}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 o=>await this.unsubscribeById(t,o,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 o=ky(n);await this.rpcUnsubscribe(t,r,o);let i=Lc("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}})}catch(o){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(o),o}}async rpcSubscribe(t,r){let n={method:Ly(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await x3(this.relayer.provider.request(n),this.subscribeTimeout)}catch(o){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(jr.connection_stalled)}return fh(t+this.clientId)}rpcUnsubscribe(t,r,n){let o={method:Ly(n.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:o}),this.relayer.provider.request(o)}onSubscribe(t,r){this.setSubscription(t,q3(uv({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,q3(uv({},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,uv({},r)),this.topicMap.set(r.topic,t),this.events.emit(hi.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}=At("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(hi.deleted,q3(uv({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(hi.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(hi.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=At("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,o={topic:r,relay:n};this.pending.set(o.topic,o);let i=await this.rpcSubscribe(o.topic,o.relay);this.onResubscribe(i,o)}}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(Hc.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(jr.connect,async()=>{await this.onConnect()}),this.relayer.on(jr.disconnect,()=>{this.onDisconnect()}),this.events.on(hi.created,async t=>{let r=hi.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(hi.deleted,async t=>{let r=hi.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}=At("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)})}},Doe=Object.defineProperty,JL=Object.getOwnPropertySymbols,Ioe=Object.prototype.hasOwnProperty,Aoe=Object.prototype.propertyIsEnumerable,QL=(e,t,r)=>t in e?Doe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Moe=(e,t)=>{for(var r in t||(t={}))Ioe.call(t,r)&&QL(e,r,t[r]);if(JL)for(var r of JL(t))Aoe.call(t,r)&&QL(e,r,t[r]);return e},aE=class extends Gg{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Wi.EventEmitter,this.name=foe,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Mt.generateChildLogger)(t.logger,this.name):(0,fE.default)((0,Mt.getDefaultLoggerOptions)({level:t.logger||uoe})),this.messages=new nE(this.logger,t.core),this.subscriber=new sE(this,this.logger),this.publisher=new oE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||coe,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,Mt.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(o=>{this.subscriber.once(hi.created,i=>{i.topic===t&&o()})}),new Promise(async o=>{n=await this.subscriber.subscribe(t,r),o()})]),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(jr.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(hi.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(jr.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(jr.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(t){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(r=>setTimeout(r,YL)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new Xy(new sL(s9({sdkVersion:hoe,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}),Bc(t)){if(!t.method.endsWith(doe))return;let r=t.params,{topic:n,message:o}=r.data,i={topic:n,message:o};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Moe({type:"event",event:r.id},i)),this.events.emit(r.id,i),await this.acknowledgePayload(t),await this.onMessageEvent(i)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(jr.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=$c(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(lv.payload,t=>this.onProviderPayload(t)),this.provider.on(lv.connect,()=>{this.events.emit(jr.connect)}),this.provider.on(lv.disconnect,()=>{this.events.emit(jr.disconnect),this.attemptToReconnect()}),this.provider.on(lv.error,t=>this.events.emit(jr.error,t)),this.events.on(jr.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,Kt.toMiliseconds)(YL))}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},Roe=Object.defineProperty,eF=Object.getOwnPropertySymbols,Noe=Object.prototype.hasOwnProperty,koe=Object.prototype.propertyIsEnumerable,tF=(e,t,r)=>t in e?Roe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rF=(e,t)=>{for(var r in t||(t={}))Noe.call(t,r)&&tF(e,r,t[r]);if(eF)for(var r of eF(t))koe.call(t,r)&&tF(e,r,t[r]);return e},hl=class extends Wg{constructor(t,r,n,o=ia,i=void 0){super(t,r,n,o),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=poe,this.cached=[],this.initialized=!1,this.storagePrefix=ia,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{m9(s)?this.map.set(s.id,s):g9(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!dh(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,aF.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=rF(rF({},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,Mt.generateChildLogger)(r,this.name),this.storagePrefix=o,this.getKey=i}get context(){return(0,Mt.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}=At("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}=At("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}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},lE=class{constructor(t,r){this.core=t,this.logger=r,this.name=voe,this.version=woe,this.events=new Wi.default,this.initialized=!1,this.storagePrefix=ia,this.ignoredPayloadTypes=[sl],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=Ay(),o=await this.core.crypto.setSymKey(n),i=Ry(Kt.FIVE_MINUTES),s={protocol:hE},a={topic:o,expiry:i,relay:s,active:!1},l=h9({protocol:this.core.protocol,version:this.core.version,topic:o,symKey:n,relay:s});return await this.pairings.set(o,a),await this.core.relayer.subscribe(o),this.core.expirer.set(o,i),{topic:o,uri:l}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:o,symKey:i,relay:s}=d9(n.uri),a=Ry(Kt.FIVE_MINUTES),l={topic:o,relay:s,expiry:a,active:!1};return await this.pairings.set(o,l),await this.core.crypto.setSymKey(i,o),await this.core.relayer.subscribe(o,{relay:s}),this.core.expirer.set(o,a),n.activatePairing&&await this.activate({topic:o}),l},this.activate=async({topic:n})=>{this.isInitialized();let o=Ry(Kt.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:o}),this.core.expirer.set(n,o)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:o}=n;if(this.pairings.keys.includes(o)){let i=await this.sendRequest(o,"wc_pairingPing",{}),{done:s,resolve:a,reject:l}=a9();this.events.once(Ny("pairing_ping",i),({error:u})=>{u?l(u):a()}),await s()}},this.updateExpiry=async({topic:n,expiry:o})=>{this.isInitialized(),await this.pairings.update(n,{expiry:o})},this.updateMetadata=async({topic:n,metadata:o})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:o})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:o}=n;this.pairings.keys.includes(o)&&(await this.sendRequest(o,"wc_pairingDelete",Lc("USER_DISCONNECTED")),await this.deletePairing(o))},this.sendRequest=async(n,o,i)=>{let s=ra(o,i),a=await this.core.crypto.encode(n,s),l=_h[o].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,l),s.id},this.sendResult=async(n,o,i)=>{let s=$c(n,i),a=await this.core.crypto.encode(o,s),l=await this.core.history.get(o,n),u=_h[l.request.method].res;await this.core.relayer.publish(o,a,u),await this.core.history.resolve(s)},this.sendError=async(n,o,i)=>{let s=al(n,i),a=await this.core.crypto.encode(o,s),l=await this.core.history.get(o,n),u=_h[l.request.method]?_h[l.request.method].res:_h.unregistered_method.res;await this.core.relayer.publish(o,a,u),await this.core.history.resolve(s)},this.deletePairing=async(n,o)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Lc("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),o?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(o=>E3(o.expiry));await Promise.all(n.map(o=>this.deletePairing(o.topic)))},this.onRelayEventRequest=n=>{let{topic:o,payload:i}=n,s=i.method;if(this.pairings.keys.includes(o))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(o,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(o,i);default:return this.onUnknownRpcMethodRequest(o,i)}},this.onRelayEventResponse=async n=>{let{topic:o,payload:i}=n,s=(await this.core.history.get(o,i.id)).request.method;if(this.pairings.keys.includes(o))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(o,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,o)=>{let{id:i}=o;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,o)=>{let{id:i}=o;setTimeout(()=>{xo(o)?this.events.emit(Ny("pairing_ping",i),{}):yn(o)&&this.events.emit(Ny("pairing_ping",i),{error:o.error})},500)},this.onPairingDeleteRequest=async(n,o)=>{let{id:i}=o;try{this.isValidDisconnect({topic:n}),await this.sendResult(i,n,!0),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,o)=>{let{id:i,method:s}=o;try{if(this.registeredMethods.includes(s))return;let a=Lc("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,a),this.logger.error(a)}catch(a){await this.sendError(i,n,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Lc("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Fy(n)){let{message:o}=At("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(o)}if(!p9(n.uri)){let{message:o}=At("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(o)}},this.isValidPing=async n=>{if(!Fy(n)){let{message:i}=At("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidDisconnect=async n=>{if(!Fy(n)){let{message:i}=At("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidPairingTopic=async n=>{if(!S3(n,!1)){let{message:o}=At("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(o)}if(!this.pairings.keys.includes(n)){let{message:o}=At("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(o)}if(E3(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:o}=At("EXPIRED",`pairing topic: ${n}`);throw new Error(o)}},this.core=t,this.logger=(0,Mt.generateChildLogger)(r,this.name),this.pairings=new hl(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Mt.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(jr.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let o=await this.core.crypto.decode(r,n);Bc(o)?(this.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):ll(o)&&(await this.core.history.resolve(o),this.onRelayEventResponse({topic:r,payload:o}))})}registerExpirerEvents(){this.core.expirer.on(ro.expired,async t=>{let{topic:r}=f9(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},uE=class extends Hg{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Wi.EventEmitter,this.name=boe,this.version=_oe,this.cached=[],this.initialized=!1,this.storagePrefix=ia,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,o,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:o,chainId:i}),this.records.has(o.id))return;let s={id:o.id,topic:n,request:{method:o.method,params:o.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(di.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 o=await this.getRecord(n.id);typeof o.response>"u"&&(o.response=yn(n)?{error:n.error}:{result:n.result},this.records.set(o.id,o),this.events.emit(di.updated,o))},this.get=async(n,o)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:o}),await this.getRecord(o)),this.delete=(n,o)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:o}),this.values.forEach(i=>{if(i.topic===n){if(typeof o<"u"&&i.id!==o)return;this.records.delete(i.id),this.events.emit(di.deleted,i)}})},this.exists=async(n,o)=>(this.isInitialized(),this.records.has(o)?(await this.getRecord(o)).topic===n:!1),this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.logger=(0,Mt.generateChildLogger)(r,this.name)}get context(){return(0,Mt.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:ra(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}=At("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(di.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=At("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(di.created,t=>{let r=di.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(di.updated,t=>{let r=di.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(di.deleted,t=>{let r=di.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},cE=class extends Xg{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Wi.EventEmitter,this.name=xoe,this.version=Eoe,this.cached=[],this.initialized=!1,this.storagePrefix=ia,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 o=this.formatTarget(n);return typeof this.getExpiration(o)<"u"}catch(o){return!1}},this.set=(n,o)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:o};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(ro.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let o=this.formatTarget(n);return this.getExpiration(o)},this.del=n=>{if(this.isInitialized(),this.has(n)){let o=this.formatTarget(n),i=this.getExpiration(o);this.expirations.delete(o),this.events.emit(ro.deleted,{target:o,expiration:i})}},this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.logger=(0,Mt.generateChildLogger)(r,this.name)}get context(){return(0,Mt.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 u9(t);if(typeof t=="number")return c9(t);let{message:r}=At("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(ro.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=At("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}=At("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,Kt.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(ro.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(Hc.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(ro.created,t=>{let r=ro.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(ro.expired,t=>{let r=ro.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(ro.deleted,t=>{let r=ro.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=At("NOT_INITIALIZED",this.name);throw new Error(t)}}},Loe=Object.defineProperty,nF=Object.getOwnPropertySymbols,Foe=Object.prototype.hasOwnProperty,$oe=Object.prototype.propertyIsEnumerable,oF=(e,t,r)=>t in e?Loe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iF=(e,t)=>{for(var r in t||(t={}))Foe.call(t,r)&&oF(e,r,t[r]);if(nF)for(var r of nF(t))$oe.call(t,r)&&oF(e,r,t[r]);return e},xh=class extends zg{constructor(t){super(t),this.protocol=vF,this.version=Jne,this.name=dE,this.events=new Wi.EventEmitter,this.initialized=!1,this.on=(n,o)=>this.events.on(n,o),this.once=(n,o)=>this.events.once(n,o),this.off=(n,o)=>this.events.off(n,o),this.removeListener=(n,o)=>this.events.removeListener(n,o),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,fE.default)((0,Mt.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||Qne.logger}));this.logger=(0,Mt.generateChildLogger)(r,this.name),this.heartbeat=new Hc.HeartBeat,this.crypto=new rE(this,this.logger,t==null?void 0:t.keychain),this.history=new uE(this,this.logger),this.expirer=new cE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new sF.default(iF(iF({},eoe),t==null?void 0:t.storageOptions)),this.relayer=new aE({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new lE(this,this.logger)}static async init(t){let r=new xh(t);return await r.initialize(),r}get context(){return(0,Mt.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}}},wF=xh;var Gc=ue(mx());c();d();f();$g();var bF=ue(Ws());var fv=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var dv=class{constructor(t){this.client=t}};c();d();f();var Goe=ue(my()),Woe=ue(gy()),Yoe=ue(Ja()),MF=ue(wy()),RF=ue(xy());var aa=ue(Ui()),mE=ue(ol()),NF=ue(xF()),kF=ue(IF());function gE(e,t){return e.includes(":")?[e]:t.chains||[]}var LF=1;function FF(){return(0,NF.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function sa(e,t){return e.filter(r=>t.includes(r)).length===e.length}function pl(e){let t=(0,aa.toMiliseconds)(e||aa.FIVE_MINUTES),r,n,o;return{resolve:i=>{o&&r&&(clearTimeout(o),r(i))},reject:i=>{o&&n&&(clearTimeout(o),n(i))},done:()=>new Promise((i,s)=>{o=setTimeout(s,t),r=i,n=s})}}function $F(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 la(e,t){return(0,aa.fromMiliseconds)((t||Date.now())+(0,aa.toMiliseconds)(e))}function ml(e){return Date.now()>=(0,aa.toMiliseconds)(e)}function Tr(e,t){return`${e}${t?`:${t}`:""}`}function Sh(e){let t=[];return e.forEach(r=>{let[n,o]=r.split(":");t.push(`${n}:${o}`)}),t}function Xoe(e){let t=[];return Object.values(e).forEach(r=>{t.push(...Sh(r.accounts))}),t}function Zoe(e,t){let r=[];return Object.values(e).forEach(n=>{Sh(n.accounts).includes(t)&&r.push(...n.methods)}),r}function Joe(e,t){let r=[];return Object.values(e).forEach(n=>{Sh(n.accounts).includes(t)&&r.push(...n.events)}),r}function UF(e,t){let r=Ch(e,t);if(r)throw new Error(r.message);let n={};for(let[o,i]of Object.entries(e))n[o]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var Qoe={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}},eie={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function He(e,t){let{message:r,code:n}=eie[e];return{message:t?`${r} ${t}`:r,code:n}}function kn(e,t){let{message:r,code:n}=Qoe[e];return{message:t?`${r} ${t}`:r,code:n}}function pv(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Kc(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function no(e){return typeof e>"u"}function zr(e,t){return t&&no(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function yE(e,t){return t&&no(e)?!0:typeof e=="number"&&!isNaN(e)}function BF(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),o=Object.keys(r),i=!0;return sa(o,n)?(n.forEach(s=>{let{accounts:a,methods:l,events:u}=e.namespaces[s],h=Sh(a),p=r[s];(!sa(gE(s,p),h)||!sa(p.methods,l)||!sa(p.events,u))&&(i=!1)}),i):!1}function vE(e){return zr(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function tie(e){if(zr(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&vE(r)}}return!1}function jF(e,t){let r=null;return zr(e==null?void 0:e.publicKey,!1)||(r=He("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function AF(e){let t=!0;return pv(e)?e.length&&(t=e.every(r=>zr(r,!1))):t=!1,t}function rie(e,t,r){let n=null;return pv(t)?t.forEach(o=>{n||(!vE(o)||!o.includes(e))&&(n=kn("UNSUPPORTED_CHAINS",`${r}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):n=kn("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function nie(e,t){let r=null;return Object.entries(e).forEach(([n,o])=>{if(r)return;let i=rie(n,gE(n,o),`${t} requiredNamespace`);i&&(r=i)}),r}function oie(e,t){let r=null;return pv(e)?e.forEach(n=>{r||tie(n)||(r=kn("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=kn("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function iie(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let o=oie(n==null?void 0:n.accounts,`${t} namespace`);o&&(r=o)}),r}function sie(e,t){let r=null;return AF(e==null?void 0:e.methods)?AF(e==null?void 0:e.events)||(r=kn("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=kn("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function VF(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let o=sie(n,`${t}, namespace`);o&&(r=o)}),r}function zF(e,t,r){let n=null;if(e&&Kc(e)){let o=VF(e,t);o&&(n=o);let i=nie(e,t);i&&(n=i)}else n=He("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function Ch(e,t){let r=null;if(e&&Kc(e)){let n=VF(e,t);n&&(r=n);let o=iie(e,t);o&&(r=o)}else r=He("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function wE(e){return zr(e.protocol,!0)}function HF(e,t){let r=!1;return t&&!e?r=!0:e&&pv(e)&&e.length&&e.forEach(n=>{r=wE(n)}),r}function KF(e){return typeof e=="number"}function Eo(e){return typeof e<"u"&&typeof e!==null}function qF(e){return!(!e||typeof e!="object"||!e.code||!yE(e.code,!1)||!e.message||!zr(e.message,!1))}function GF(e){return!(no(e)||!zr(e.method,!1))}function WF(e){return!(no(e)||no(e.result)&&no(e.error)||!yE(e.id,!1)||!zr(e.jsonrpc,!1))}function YF(e){return!(no(e)||!zr(e.name,!1))}function bE(e,t){return!(!vE(t)||!Xoe(e).includes(t))}function XF(e,t,r){return zr(r,!1)?Zoe(e,t).includes(r):!1}function ZF(e,t,r){return zr(r,!1)?Joe(e,t).includes(r):!1}function mv(e,t,r,n){let o=null,i=Object.keys(e),s=Object.keys(t);return sa(i,s)?i.forEach(a=>{if(o)return;let l=Sh(t[a].accounts);sa(gE(a,e[a]),l)?sa(e[a].methods,t[a].methods)?sa(e[a].events,t[a].events)||(o=He("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${a}`)):o=He("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${a}`):o=He("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace chains for ${a}`)}):o=He("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy ${n}`),o}function JF(e,t){return yE(e,!1)&&e<=t.max&&e>=t.min}var yv=ue(Ws()),Ut=ue(Ui());var r$="wc",n$=2,o$="client",OE=`${r$}@${n$}:${o$}:`,_E={name:o$,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var aie="proposal";var lie="session",gv=Ut.SEVEN_DAYS,uie="engine",Th={wc_sessionPropose:{req:{ttl:Ut.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Ut.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Ut.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Ut.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Ut.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Ut.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Ut.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Ut.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Ut.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Ut.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Ut.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Ut.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Ut.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Ut.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Ut.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Ut.THIRTY_SECONDS,prompt:!1,tag:1115}}},xE={min:Ut.FIVE_MINUTES,max:Ut.SEVEN_DAYS},cie="request",fie=Object.defineProperty,die=Object.defineProperties,hie=Object.getOwnPropertyDescriptors,QF=Object.getOwnPropertySymbols,pie=Object.prototype.hasOwnProperty,mie=Object.prototype.propertyIsEnumerable,e$=(e,t,r)=>t in e?fie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,So=(e,t)=>{for(var r in t||(t={}))pie.call(t,r)&&e$(e,r,t[r]);if(QF)for(var r of QF(t))mie.call(t,r)&&e$(e,r,t[r]);return e},EE=(e,t)=>die(e,hie(t)),SE=class extends dv{constructor(t){super(t),this.name=uie,this.events=new yv.default,this.initialized=!1,this.ignoredPayloadTypes=[LF],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(Th)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=EE(So({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:o,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:a,relays:l}=n,u=o,h,p=!1;if(u&&(p=this.client.core.pairing.pairings.get(u).active),!u||!p){let{topic:M,uri:L}=await this.client.core.pairing.create();u=M,h=L}let y=await this.client.core.crypto.generateKeyPair(),w=So({requiredNamespaces:i,optionalNamespaces:s,relays:l!=null?l:[{protocol:hE}],proposer:{publicKey:y,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:v,resolve:S,done:I}=pl();if(this.events.once(Tr("session_connect"),async({error:M,session:L})=>{if(M)v(M);else if(L){L.self.publicKey=y;let G=EE(So({},L),{requiredNamespaces:L.requiredNamespaces,optionalNamespaces:L.optionalNamespaces});await this.client.session.set(L.topic,G),await this.setExpiry(L.topic,L.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:L.peer.metadata}),S(G)}}),!u){let{message:M}=He("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(M)}let T=await this.sendRequest(u,"wc_sessionPropose",w),O=la(Ut.FIVE_MINUTES);return await this.setProposal(T,So({id:T,expiry:O},w)),{uri:h,approval:I}},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:o,namespaces:i,sessionProperties:s}=r,a=this.client.proposal.get(n),{pairingTopic:l,proposer:u,requiredNamespaces:h,optionalNamespaces:p}=a;Kc(h)||(h=UF(i,"approve()"));let y=await this.client.core.crypto.generateKeyPair(),w=u.publicKey,v=await this.client.core.crypto.generateSharedKey(y,w);l&&n&&(await this.client.core.pairing.updateMetadata({topic:l,metadata:u.metadata}),await this.sendResult(n,l,{relay:{protocol:o!=null?o:"irn"},responderPublicKey:y}),await this.client.proposal.delete(n,kn("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:l}));let S=So({relay:{protocol:o!=null?o:"irn"},namespaces:i,requiredNamespaces:h,optionalNamespaces:p,controller:{publicKey:y,metadata:this.client.metadata},expiry:la(gv)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(v);let I=await this.sendRequest(v,"wc_sessionSettle",S),{done:T,resolve:O,reject:M}=pl();this.events.once(Tr("session_approve",I),({error:G})=>{G?M(G):O(this.client.session.get(v))});let L=EE(So({},S),{topic:v,acknowledged:!1,self:S.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:y});return await this.client.session.set(v,L),await this.setExpiry(v,la(gv)),{topic:v,acknowledged:T}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);let{id:n,reason:o}=r,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,o),await this.client.proposal.delete(n,kn("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);let{topic:n,namespaces:o}=r,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:o}),{done:s,resolve:a,reject:l}=pl();return this.events.once(Tr("session_update",i),({error:u})=>{u?l(u):a()}),await this.client.session.update(n,{namespaces:o}),{acknowledged:s}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);let{topic:n}=r,o=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:a}=pl();return this.events.once(Tr("session_extend",o),({error:l})=>{l?a(l):s()}),await this.setExpiry(n,la(gv)),{acknowledged:i}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:o,topic:i,expiry:s}=r,a=await this.sendRequest(i,"wc_sessionRequest",{request:o,chainId:n},s),{done:l,resolve:u,reject:h}=pl(s);return this.events.once(Tr("session_request",a),({error:p,result:y})=>{p?h(p):u(y)}),await l()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:o}=r,{id:i}=o;xo(o)?await this.sendResult(i,n,o.result):yn(o)&&await this.sendError(i,n,o.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 o=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:a}=pl();this.events.once(Tr("session_ping",o),({error:l})=>{l?a(l):s()}),await i()}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:o,chainId:i}=r;await this.sendRequest(n,"wc_sessionEvent",{event:o,chainId:i})},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",kn("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>BF(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(r,n)=>{let{self:o}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await Promise.all([this.client.session.delete(r,kn("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(o.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,kn("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,o=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),o?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=Th.wc_sessionRequest.req.ttl,{id:o,topic:i,params:s}=r;await this.client.pendingRequest.set(o,{id:o,topic:i,params:s}),n&&this.client.core.expirer.set(o,la(n))},this.sendRequest=async(r,n,o,i)=>{let s=ra(n,o),a=await this.client.core.crypto.encode(r,s),l=Th[n].req;return i&&(l.ttl=i),this.client.core.history.set(r,s),this.client.core.relayer.publish(r,a,l),s.id},this.sendResult=async(r,n,o)=>{let i=$c(r,o),s=await this.client.core.crypto.encode(n,i),a=await this.client.core.history.get(n,r),l=Th[a.request.method].res;this.client.core.relayer.publish(n,s,l),await this.client.core.history.resolve(i)},this.sendError=async(r,n,o)=>{let i=al(r,o),s=await this.client.core.crypto.encode(n,i),a=await this.client.core.history.get(n,r),l=Th[a.request.method].res;this.client.core.relayer.publish(n,s,l),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(o=>{ml(o.expiry)&&r.push(o.topic)}),this.client.proposal.getAll().forEach(o=>{ml(o.expiry)&&n.push(o.id)}),await Promise.all([...r.map(o=>this.deleteSession(o)),...n.map(o=>this.deleteProposal(o))])},this.onRelayEventRequest=r=>{let{topic:n,payload:o}=r,i=o.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest(n,o);case"wc_sessionSettle":return this.onSessionSettleRequest(n,o);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,o);case"wc_sessionExtend":return this.onSessionExtendRequest(n,o);case"wc_sessionPing":return this.onSessionPingRequest(n,o);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,o);case"wc_sessionRequest":return this.onSessionRequest(n,o);case"wc_sessionEvent":return this.onSessionEventRequest(n,o);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async r=>{let{topic:n,payload:o}=r,i=(await this.client.core.history.get(n,o.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,o);case"wc_sessionSettle":return this.onSessionSettleResponse(n,o);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,o);case"wc_sessionExtend":return this.onSessionExtendResponse(n,o);case"wc_sessionPing":return this.onSessionPingResponse(n,o);case"wc_sessionRequest":return this.onSessionRequestResponse(n,o);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onSessionProposeRequest=async(r,n)=>{let{params:o,id:i}=n;try{this.isValidConnect(So({},n.params));let s=la(Ut.FIVE_MINUTES),a=So({id:i,pairingTopic:r,expiry:s},o);await this.setProposal(i,a),this.client.events.emit("session_proposal",{id:i,params:a})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(r,n)=>{let{id:o}=n;if(xo(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(o);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=i.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 yn(n)&&(await this.client.proposal.delete(o,kn("USER_DISCONNECTED")),this.events.emit(Tr("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{let{id:o,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:a,expiry:l,namespaces:u,requiredNamespaces:h,optionalNamespaces:p,sessionProperties:y}=n.params,w=So({topic:r,relay:s,expiry:l,namespaces:u,acknowledged:!0,requiredNamespaces:h,optionalNamespaces:p,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},y&&{sessionProperties:y});await this.sendResult(n.id,r,!0),this.events.emit(Tr("session_connect"),{session:w})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:o}=n;xo(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Tr("session_approve",o),{})):yn(n)&&(await this.client.session.delete(r,kn("USER_DISCONNECTED")),this.events.emit(Tr("session_approve",o),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:o,id:i}=n;try{this.isValidUpdate(So({topic:r},o)),await this.client.session.update(r,{namespaces:o.namespaces}),await this.sendResult(i,r,!0),this.client.events.emit("session_update",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(r,n)=>{let{id:o}=n;xo(n)?this.events.emit(Tr("session_update",o),{}):yn(n)&&this.events.emit(Tr("session_update",o),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:o}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,la(gv)),await this.sendResult(o,r,!0),this.client.events.emit("session_extend",{id:o,topic:r})}catch(i){await this.sendError(o,r,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(r,n)=>{let{id:o}=n;xo(n)?this.events.emit(Tr("session_extend",o),{}):yn(n)&&this.events.emit(Tr("session_extend",o),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{let{id:o}=n;try{this.isValidPing({topic:r}),await this.sendResult(o,r,!0),this.client.events.emit("session_ping",{id:o,topic:r})}catch(i){await this.sendError(o,r,i),this.client.logger.error(i)}},this.onSessionPingResponse=(r,n)=>{let{id:o}=n;setTimeout(()=>{xo(n)?this.events.emit(Tr("session_ping",o),{}):yn(n)&&this.events.emit(Tr("session_ping",o),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:o}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),this.client.core.relayer.once(jr.publish,async()=>{await this.deleteSession(r)}),await this.sendResult(o,r,!0),this.client.events.emit("session_delete",{id:o,topic:r})}catch(i){await this.sendError(o,r,i),this.client.logger.error(i)}},this.onSessionRequest=async(r,n)=>{let{id:o,params:i}=n;try{this.isValidRequest(So({topic:r},i)),await this.setPendingSessionRequest({id:o,topic:r,params:i}),this.client.events.emit("session_request",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(r,n)=>{let{id:o}=n;xo(n)?this.events.emit(Tr("session_request",o),{result:n.result}):yn(n)&&this.events.emit(Tr("session_request",o),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:o,params:i}=n;try{this.isValidEmit(So({topic:r},i)),this.client.events.emit("session_event",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.isValidConnect=async r=>{if(!Eo(r)){let{message:l}=He("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(l)}let{pairingTopic:n,requiredNamespaces:o,optionalNamespaces:i,sessionProperties:s,relays:a}=r;if(no(n)||await this.isValidPairingTopic(n),!HF(a,!0)){let{message:l}=He("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(l)}!no(o)&&Kc(o)!==0&&this.validateNamespaces(o,"requiredNamespaces"),!no(i)&&Kc(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),no(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let o=zF(r,"connect()",n);if(o)throw new Error(o.message)},this.isValidApprove=async r=>{if(!Eo(r))throw new Error(He("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:o,relayProtocol:i,sessionProperties:s}=r;await this.isValidProposalId(n);let a=this.client.proposal.get(n),l=Ch(o,"approve()");if(l)throw new Error(l.message);let u=mv(a.requiredNamespaces,o,"approve()","requiredNamespaces");if(u)throw new Error(u.message);if(!zr(i,!0)){let{message:h}=He("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(h)}if(Object.keys(o).length>Object.keys(a.requiredNamespaces).length){let h=Object.keys(a.optionalNamespaces).filter(w=>o[w]),p={};for(let w in a.optionalNamespaces)h.includes(w)&&(p[w]=a.optionalNamespaces[w]);let y=mv(p,o,"approve()","optionalNamespaces");if(y)throw new Error(y.message)}no(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!Eo(r)){let{message:i}=He("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(i)}let{id:n,reason:o}=r;if(await this.isValidProposalId(n),!qF(o)){let{message:i}=He("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(o)}`);throw new Error(i)}},this.isValidSessionSettleRequest=r=>{if(!Eo(r)){let{message:u}=He("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(u)}let{relay:n,controller:o,namespaces:i,expiry:s}=r;if(!wE(n)){let{message:u}=He("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let a=jF(o,"onSessionSettleRequest()");if(a)throw new Error(a.message);let l=Ch(i,"onSessionSettleRequest()");if(l)throw new Error(l.message);if(ml(s)){let{message:u}=He("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async r=>{if(!Eo(r)){let{message:l}=He("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(l)}let{topic:n,namespaces:o}=r;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=Ch(o,"update()");if(s)throw new Error(s.message);let a=mv(i.requiredNamespaces,o,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!Eo(r)){let{message:o}=He("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(o)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!Eo(r)){let{message:l}=He("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(l)}let{topic:n,request:o,chainId:i,expiry:s}=r;await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!bE(a,i)){let{message:l}=He("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(l)}if(!GF(o)){let{message:l}=He("MISSING_OR_INVALID",`request() ${JSON.stringify(o)}`);throw new Error(l)}if(!XF(a,i,o.method)){let{message:l}=He("MISSING_OR_INVALID",`request() method: ${o.method}`);throw new Error(l)}if(s&&!JF(s,xE)){let{message:l}=He("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${xE.min} and ${xE.max}`);throw new Error(l)}},this.isValidRespond=async r=>{if(!Eo(r)){let{message:i}=He("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(i)}let{topic:n,response:o}=r;if(await this.isValidSessionTopic(n),!WF(o)){let{message:i}=He("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`);throw new Error(i)}},this.isValidPing=async r=>{if(!Eo(r)){let{message:o}=He("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(o)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!Eo(r)){let{message:a}=He("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:o,chainId:i}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!bE(s,i)){let{message:a}=He("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(a)}if(!YF(o)){let{message:a}=He("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(o)}`);throw new Error(a)}if(!ZF(s,i,o.name)){let{message:a}=He("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(o)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!Eo(r)){let{message:o}=He("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(o)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(o=>{if(!zr(o,!1)){let{message:i}=He("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(o)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:t}=He("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(jr.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let o=await this.client.core.crypto.decode(r,n);Bc(o)?(this.client.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):ll(o)&&(await this.client.core.history.resolve(o),this.onRelayEventResponse({topic:r,payload:o}))})}registerExpirerEvents(){this.client.core.expirer.on(ro.expired,async t=>{let{topic:r,id:n}=$F(t.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,He("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(t){if(!zr(t,!1)){let{message:r}=He("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(ml(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=He("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!zr(t,!1)){let{message:r}=He("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(ml(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=He("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.core.pairing.pairings.keys.includes(t))this.isValidPairingTopic(t);else if(zr(t,!1)){let{message:r}=He("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=He("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!KF(t)){let{message:r}=He("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=He("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(ml(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=He("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},CE=class extends hl{constructor(t,r){super(t,r,aie,OE),this.core=t,this.logger=r}},TE=class extends hl{constructor(t,r){super(t,r,lie,OE),this.core=t,this.logger=r}},PE=class extends hl{constructor(t,r){super(t,r,cie,OE),this.core=t,this.logger=r}},qc=class extends fv{constructor(t){super(t),this.protocol=r$,this.version=n$,this.name=_E.name,this.events=new yv.EventEmitter,this.on=(n,o)=>this.events.on(n,o),this.once=(n,o)=>this.events.once(n,o),this.off=(n,o)=>this.events.off(n,o),this.removeListener=(n,o)=>this.events.removeListener(n,o),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(o){throw this.logger.error(o.message),o}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(o){throw this.logger.error(o.message),o}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(o){throw this.logger.error(o.message),o}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(o){throw this.logger.error(o.message),o}},this.update=async n=>{try{return await this.engine.update(n)}catch(o){throw this.logger.error(o.message),o}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(o){throw this.logger.error(o.message),o}},this.request=async n=>{try{return await this.engine.request(n)}catch(o){throw this.logger.error(o.message),o}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(o){throw this.logger.error(o.message),o}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(o){throw this.logger.error(o.message),o}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(o){throw this.logger.error(o.message),o}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(o){throw this.logger.error(o.message),o}},this.find=n=>{try{return this.engine.find(n)}catch(o){throw this.logger.error(o.message),o}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(t==null?void 0:t.name)||_E.name,this.metadata=(t==null?void 0:t.metadata)||FF();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,t$.default)((0,Gc.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||_E.logger}));this.core=(t==null?void 0:t.core)||new wF(t),this.logger=(0,Gc.generateChildLogger)(r,this.name),this.session=new TE(this.core,this.logger),this.proposal=new CE(this.core,this.logger),this.pendingRequest=new PE(this.core,this.logger),this.engine=new SE(this)}static async init(t){let r=new qc(t);return await r.initialize(),r}get context(){return(0,Gc.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 Sie=ue(my()),Cie=ue(gy()),Tie=ue(Ja()),m$=ue(wy()),g$=ue(xy());var IE=ue(Ui()),AE=ue(ol()),Pie=ue(s$()),y$=ue(p$());var Oie={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 v$(e,t){let{message:r,code:n}=Oie[e];return{message:t?`${r} ${t}`:r,code:n}}var Iie={eip155:{methods:["wld_worldIDVerification"],chains:["eip155:1"],events:["accountsChanged"]}},Aie=ep()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",client:null,createClient:async(r,n,o="c3e6053f10efbb423808783ee874cf6a")=>{e({config:{action_id:r,signal:n,walletconnect_id:o}});try{let i=await qc.init({projectId:o,metadata:{name:"IDKit",description:"Verify with World ID",url:"#",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:i}),t().connectClient(i)}catch(i){console.error(i)}},connectClient:async r=>{try{let{uri:n,approval:o}=await r.connect({requiredNamespaces:Iie});if(n){t().setUri(n);let i=await o();if(typeof i<"u")return e({topic:i.topic}),t().onConnectionEstablished(r)}}catch(n){e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${n}`)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:K2(r),mobile:K2(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:Mie(t().config.action_id,t().config.signal)}).then(n=>{if(!Rie(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let o="generic_error",i=n.message;i&&Object.values(H2).includes(i)&&(o=i),e({errorCode:o,verificationState:"failed"})}).finally(async()=>{await r.disconnect({topic:t().topic,reason:v$("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"})}})),Mie=(e,t)=>({jsonrpc:"2.0",method:"wld_worldIDVerification",id:LD(1e5,9999999),params:[{signal:ff(t).digest,action_id:ff(e).digest}]}),Rie=e=>{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;for(let o of[r,n,t])if(!o||!U6(o))return!1;return!0},Nie=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}),kie=(e,t,r)=>{let{result:n,verificationState:o,errorCode:i,qrData:s,client:a,createClient:l,reset:u}=Aie(Nie);return(0,w$.useEffect)(()=>{!e||!t||a||l(e,t,r)},[e,t,r,a,l,o]),{result:n,reset:u,verificationState:o,errorCode:i,qrData:s}},b$=kie;c();d();f();c();d();f();var Lie=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 0a3.555 3.555 0 0 0-3.563 3.547v.052A3.001 3.001 0 0 0 0 6.547V11a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6.547a3.001 3.001 0 0 0-2.438-2.948v-.052A3.555 3.555 0 0 0 5.999 0Zm2.437 3.547A2.432 2.432 0 0 0 5.999 1.12a2.432 2.432 0 0 0-2.437 2.427h4.875ZM7.5 8.773c0 .825-.671 1.494-1.5 1.494-.828 0-1.5-.669-1.5-1.494 0-.824.672-1.493 1.5-1.493.829 0 1.5.669 1.5 1.493Z",clipRule:"evenodd"})),_$=Lie;c();d();f();var Fie=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),g.createElement("path",{fill:"currentColor",d:"M9.98 3.6c-.08-.345-.392-.553-.732-.477-.093.021-2.59.754-4.236.768C3.36 3.877.87 3.144.776 3.123a.629.629 0 0 0-.76.477.64.64 0 0 0 .467.767c.433.111 1.139.318 2.83.72 0 0-.02 2.28-.093 3.663-.1 1.99-.672 4.424-.672 4.424-.1.463.126.74.406.801.573.125.76-.276.826-.56l1.092-4.16A.128.128 0 0 1 5 9.164c.053 0 .106.027.126.09l1.093 4.16c.066.284.253.685.825.56.28-.062.507-.338.407-.801 0 0-.566-2.433-.673-4.424-.073-1.383-.093-3.664-.093-3.664 1.698-.4 2.398-.608 2.83-.719a.637.637 0 0 0 .467-.767Z"}),g.createElement("path",{fill:"currentColor",d:"M5.007 3.11a1.55 1.55 0 0 0 1.539-1.555C6.546.698 5.86 0 5.007 0A1.55 1.55 0 0 0 3.47 1.555c0 .857.686 1.555 1.538 1.555Z"})),x$=Fie;var $ie=({className:e})=>g.createElement("div",{className:Yt(e,"space-y-4 text-left")},g.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),g.createElement("div",{className:"space-y-3"},g.createElement(E$,{title:"Proving unique-humanness",icon:x$},g.createElement("p",null,"Human is doing an action only once."),g.createElement("p",null,"Stop bots, stop abouse.")),g.createElement(E$,{title:"Completely private",icon:_$},g.createElement("p",null,"Using Zero-knowledge proofs so no traceable information is ever public.")))),E$=({icon:e,title:t,children:r})=>g.createElement("div",{className:"flex space-x-6"},g.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},g.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),g.createElement("div",null,g.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),g.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),Wc=$ie;c();d();f();var Uie=e=>g.createElement("svg",ve(Q({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})),wv=Uie;var jie=e=>({signal:e.signal,copy:e.copy,actionId:e.actionId,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,showAbout:e.methods.length==1,hasPhone:e.methods.includes("phone"),usePhone:()=>e.setStage("ENTER_PHONE"),setStage:e.setStage}),Vie=()=>{let e=su(),[t,r]=(0,Ph.useState)(!1),{actionId:n,copy:o,signal:i,walletConnectProjectId:s,handleVerify:a,showAbout:l,hasPhone:u,usePhone:h,setStage:p}=Bt(jie),{result:y,qrData:w,verificationState:v,reset:S}=b$(n,i,s);return(0,Ph.useEffect)(()=>S,[S]),(0,Ph.useEffect)(()=>{v==="failed"&&p("ERROR"),y&&a({signal_type:"orb",nullifier_hash:y.nullifier_hash,proof_payload:{proof:y.proof,merkle_root:y.merkle_root}})},[y,S,a,v,p]),g.createElement("div",{className:"-mt-6 space-y-6"},g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm on the Worldcoin app":Wn(o,"heading")),g.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},v==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":Wn(o,"subheading"))),v==="awaiting_verification"?g.createElement("div",{className:"flex items-center justify-center"},g.createElement(Bs,{className:"h-20 w-20"})):g.createElement(TM,{showQR:t,setShowQR:r,qrData:w}),l&&(e=="desktop"||!t)&&g.createElement(Wc,null),u&&v=="awaiting_connection"&&g.createElement("div",{className:"hidden space-y-3 md:block"},g.createElement("div",{className:"flex items-center justify-between space-x-6"},g.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"}),g.createElement("p",{className:"text-9eafc0 dark:text-596673 text-xs"},"or"),g.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"})),g.createElement("div",{className:"flex items-center justify-center"},g.createElement("button",{onClick:h,className:"flex items-center space-x-2"},g.createElement(wv,{className:"text-0d151d/70 h-6 w-6 dark:text-white/70"}),g.createElement("p",{className:"text-0d151d text-sm font-medium dark:text-white"},"Verify with Phone Number")))))},S$=Vie;c();d();f();var Je=ue(we());c();d();f();var ME=ue(we());var zie=ME["useId".toString()]||(()=>{}),Hie=0;function bv(e){let[t,r]=ME.useState(zie());return Ha(()=>{e||r(n=>n!=null?n:String(Hie++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var Fn=ue(we());var RE="focusScope.autoFocusOnMount",NE="focusScope.autoFocusOnUnmount",C$={bubbles:!1,cancelable:!0};var D$=(0,Fn.forwardRef)((e,t)=>{let S=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i}=S,s=Pe(S,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,l]=(0,Fn.useState)(null),u=Zr(o),h=Zr(i),p=(0,Fn.useRef)(null),y=Xr(t,I=>l(I)),w=(0,Fn.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Fn.useEffect)(()=>{if(n){let I=function(O){if(w.paused||!a)return;let M=O.target;a.contains(M)?p.current=M:gl(p.current,{select:!0})},T=function(O){w.paused||!a||a.contains(O.relatedTarget)||gl(p.current,{select:!0})};return document.addEventListener("focusin",I),document.addEventListener("focusout",T),()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",T)}}},[n,a,w.paused]),(0,Fn.useEffect)(()=>{if(a){P$.add(w);let I=document.activeElement;if(!a.contains(I)){let O=new CustomEvent(RE,C$);a.addEventListener(RE,u),a.dispatchEvent(O),O.defaultPrevented||(Kie(Xie(I$(a)),{select:!0}),document.activeElement===I&&gl(a))}return()=>{a.removeEventListener(RE,u),setTimeout(()=>{let O=new CustomEvent(NE,C$);a.addEventListener(NE,h),a.dispatchEvent(O),O.defaultPrevented||gl(I!=null?I:document.body,{select:!0}),a.removeEventListener(NE,h),P$.remove(w)},0)}}},[a,u,h,w]);let v=(0,Fn.useCallback)(I=>{if(!r&&!n||w.paused)return;let T=I.key==="Tab"&&!I.altKey&&!I.ctrlKey&&!I.metaKey,O=document.activeElement;if(T&&O){let M=I.currentTarget,[L,G]=qie(M);L&&G?!I.shiftKey&&O===G?(I.preventDefault(),r&&gl(L,{select:!0})):I.shiftKey&&O===L&&(I.preventDefault(),r&&gl(G,{select:!0})):O===M&&I.preventDefault()}},[r,n,w.paused]);return(0,Fn.createElement)(Er.div,pt({tabIndex:-1},s,{ref:y,onKeyDown:v}))});function Kie(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(gl(n,{select:t}),document.activeElement!==r)return}function qie(e){let t=I$(e),r=T$(t,e),n=T$(t.reverse(),e);return[r,n]}function I$(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function T$(e,t){for(let r of e)if(!Gie(r,{upTo:t}))return r}function Gie(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 Wie(e){return e instanceof HTMLInputElement&&"select"in e}function gl(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Wie(e)&&t&&e.select()}}var P$=Yie();function Yie(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=O$(e,t),e.unshift(t)},remove(t){var r;e=O$(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function O$(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Xie(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var M$=ue(we()),kE=0;function R$(){(0,M$.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:A$()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:A$()),kE++,()=>{kE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),kE--}},[])}function A$(){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 Sv=ue(we());c();d();f();var tn=ue(we());c();d();f();var yl="right-scroll-bar-position",vl="width-before-scroll-bar",LE="with-scroll-bars-hidden",FE="--removed-body-scroll-bar-size";c();d();f();c();d();f();function N$(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var k$=ue(we());function L$(e,t){var r=(0,k$.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}c();d();f();function $E(e,t){return L$(t||null,function(r){return e.forEach(function(n){return N$(n,r)})})}c();d();f();c();d();f();c();d();f();function Zie(e){return e}function Jie(e,t){t===void 0&&(t=Zie);var r=[],n=!1,o={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(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var h=s;s=[],h.forEach(i)},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 o}function UE(e){e===void 0&&(e={});var t=Jie(null);return t.options=bo({async:!0,ssr:!1},e),t}c();d();f();var F$=ue(we()),$$=function(e){var t=e.sideCar,r=O0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return F$.createElement(n,bo({},r))};$$.isSideCarExport=!0;function BE(e,t){return e.useMedium(t),$$}var _v=UE();var jE=function(){},Oh=tn.forwardRef(function(e,t){var r=tn.useRef(null),n=tn.useState({onScrollCapture:jE,onWheelCapture:jE,onTouchMoveCapture:jE}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,h=e.enabled,p=e.shards,y=e.sideCar,w=e.noIsolation,v=e.inert,S=e.allowPinchZoom,I=e.as,T=I===void 0?"div":I,O=O0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),M=y,L=$E([r,t]),G=bo(bo({},O),o);return tn.createElement(tn.Fragment,null,h&&tn.createElement(M,{sideCar:_v,removeScrollBar:u,shards:p,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!S,lockRef:r}),s?tn.cloneElement(tn.Children.only(a),bo(bo({},G),{ref:L})):tn.createElement(T,bo({},G,{className:l,ref:L}),a))});Oh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oh.classNames={fullWidth:vl,zeroRight:yl};c();d();f();c();d();f();var qt=ue(we());c();d();f();c();d();f();var xv=ue(we());c();d();f();c();d();f();c();d();f();var j$=ue(we());c();d();f();c();d();f();var U$;var B$=function(){if(U$)return U$;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=B$();return t&&e.setAttribute("nonce",t),e}function ese(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tse(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var VE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Qie())&&(ese(t,r),tse(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var zE=function(){var e=VE();return function(t,r){j$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Dh=function(){var e=zE(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};c();d();f();var rse={left:0,top:0,right:0,gap:0},HE=function(e){return parseInt(e||"",10)||0},nse=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[HE(r),HE(n),HE(o)]},KE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rse;var t=nse(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 ose=Dh(),ise=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
|
|
47
|
-
.`.concat(LE,` {
|
|
48
|
-
overflow: hidden `).concat(n,`;
|
|
49
|
-
padding-right: `).concat(a,"px ").concat(n,`;
|
|
50
|
-
}
|
|
51
|
-
body {
|
|
52
|
-
overflow: hidden `).concat(n,`;
|
|
53
|
-
overscroll-behavior: contain;
|
|
54
|
-
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
55
|
-
padding-left: `.concat(o,`px;
|
|
56
|
-
padding-top: `).concat(i,`px;
|
|
57
|
-
padding-right: `).concat(s,`px;
|
|
58
|
-
margin-left:0;
|
|
59
|
-
margin-top:0;
|
|
60
|
-
margin-right: `).concat(a,"px ").concat(n,`;
|
|
61
|
-
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.`).concat(yl,` {
|
|
65
|
-
right: `).concat(a,"px ").concat(n,`;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.`).concat(vl,` {
|
|
69
|
-
margin-right: `).concat(a,"px ").concat(n,`;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.`).concat(yl," .").concat(yl,` {
|
|
73
|
-
right: 0 `).concat(n,`;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.`).concat(vl," .").concat(vl,` {
|
|
77
|
-
margin-right: 0 `).concat(n,`;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
body {
|
|
81
|
-
`).concat(FE,": ").concat(a,`px;
|
|
82
|
-
}
|
|
83
|
-
`)},qE=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=xv.useMemo(function(){return KE(o)},[o]);return xv.createElement(ose,{styles:ise(i,!t,o,r?"":"!important")})};c();d();f();var GE=!1;if(typeof window<"u")try{Ih=Object.defineProperty({},"passive",{get:function(){return GE=!0,!0}}),window.addEventListener("test",Ih,Ih),window.removeEventListener("test",Ih,Ih)}catch(e){GE=!1}var Ih,wl=GE?{passive:!1}:!1;c();d();f();var sse=function(e){return e.tagName==="TEXTAREA"},V$=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!sse(e)&&r[t]==="visible")},ase=function(e){return V$(e,"overflowY")},lse=function(e){return V$(e,"overflowX")},WE=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=z$(e,r);if(n){var o=H$(e,r),i=o[1],s=o[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},use=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},cse=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},z$=function(e,t){return e==="v"?ase(t):lse(t)},H$=function(e,t){return e==="v"?use(t):cse(t)},fse=function(e,t){return e==="h"&&t==="rtl"?-1:1},K$=function(e,t,r,n,o){var i=fse(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,l=t.contains(a),u=!1,h=s>0,p=0,y=0;do{var w=H$(e,a),v=w[0],S=w[1],I=w[2],T=S-I-i*v;(v||T)&&z$(e,a)&&(p+=T,y+=v),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(h&&(o&&p===0||!o&&s>p)||!h&&(o&&y===0||!o&&-s>y))&&(u=!0),u};var Ev=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q$=function(e){return[e.deltaX,e.deltaY]},G$=function(e){return e&&"current"in e?e.current:e},dse=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hse=function(e){return`
|
|
84
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
85
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
86
|
-
`)},pse=0,Yc=[];function W$(e){var t=qt.useRef([]),r=qt.useRef([0,0]),n=qt.useRef(),o=qt.useState(pse++)[0],i=qt.useState(function(){return Dh()})[0],s=qt.useRef(e);qt.useEffect(function(){s.current=e},[e]),qt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=kD([e.lockRef.current],(e.shards||[]).map(G$),!0).filter(Boolean);return S.forEach(function(I){return I.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=qt.useCallback(function(S,I){if("touches"in S&&S.touches.length===2)return!s.current.allowPinchZoom;var T=Ev(S),O=r.current,M="deltaX"in S?S.deltaX:O[0]-T[0],L="deltaY"in S?S.deltaY:O[1]-T[1],G,J=S.target,V=Math.abs(M)>Math.abs(L)?"h":"v";if("touches"in S&&V==="h"&&J.type==="range")return!1;var q=WE(V,J);if(!q)return!0;if(q?G=V:(G=V==="v"?"h":"v",q=WE(V,J)),!q)return!1;if(!n.current&&"changedTouches"in S&&(M||L)&&(n.current=G),!G)return!0;var ce=n.current||G;return K$(ce,I,S,ce==="h"?M:L,!0)},[]),l=qt.useCallback(function(S){var I=S;if(!(!Yc.length||Yc[Yc.length-1]!==i)){var T="deltaY"in I?q$(I):Ev(I),O=t.current.filter(function(G){return G.name===I.type&&G.target===I.target&&dse(G.delta,T)})[0];if(O&&O.should){I.cancelable&&I.preventDefault();return}if(!O){var M=(s.current.shards||[]).map(G$).filter(Boolean).filter(function(G){return G.contains(I.target)}),L=M.length>0?a(I,M[0]):!s.current.noIsolation;L&&I.cancelable&&I.preventDefault()}}},[]),u=qt.useCallback(function(S,I,T,O){var M={name:S,delta:I,target:T,should:O};t.current.push(M),setTimeout(function(){t.current=t.current.filter(function(L){return L!==M})},1)},[]),h=qt.useCallback(function(S){r.current=Ev(S),n.current=void 0},[]),p=qt.useCallback(function(S){u(S.type,q$(S),S.target,a(S,e.lockRef.current))},[]),y=qt.useCallback(function(S){u(S.type,Ev(S),S.target,a(S,e.lockRef.current))},[]);qt.useEffect(function(){return Yc.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",l,wl),document.addEventListener("touchmove",l,wl),document.addEventListener("touchstart",h,wl),function(){Yc=Yc.filter(function(S){return S!==i}),document.removeEventListener("wheel",l,wl),document.removeEventListener("touchmove",l,wl),document.removeEventListener("touchstart",h,wl)}},[]);var w=e.removeScrollBar,v=e.inert;return qt.createElement(qt.Fragment,null,v?qt.createElement(i,{styles:hse(o)}):null,w?qt.createElement(qE,{gapMode:"margin"}):null)}var Y$=BE(_v,W$);var X$=Sv.forwardRef(function(e,t){return Sv.createElement(Oh,bo({},e,{ref:t,sideCar:Y$}))});X$.classNames=Oh.classNames;var YE=X$;c();d();f();var mse=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xc=new WeakMap,Cv=new WeakMap,Tv={},XE=0,Z$=function(e){return e&&(e.host||Z$(e.parentNode))},gse=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Z$(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)})},yse=function(e,t,r,n){var o=gse(t,Array.isArray(e)?e:[e]);Tv[r]||(Tv[r]=new WeakMap);var i=Tv[r],s=[],a=new Set,l=new Set(o),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};o.forEach(u);var h=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(y){if(a.has(y))h(y);else{var w=y.getAttribute(n),v=w!==null&&w!=="false",S=(Xc.get(y)||0)+1,I=(i.get(y)||0)+1;Xc.set(y,S),i.set(y,I),s.push(y),S===1&&v&&Cv.set(y,!0),I===1&&y.setAttribute(r,"true"),v||y.setAttribute(n,"true")}})};return h(t),a.clear(),XE++,function(){s.forEach(function(p){var y=Xc.get(p)-1,w=i.get(p)-1;Xc.set(p,y),i.set(p,w),y||(Cv.has(p)||p.removeAttribute(n),Cv.delete(p)),w||p.removeAttribute(r)}),XE--,XE||(Xc=new WeakMap,Xc=new WeakMap,Cv=new WeakMap,Tv={})}},J$=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||mse(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),yse(n,o,r,"aria-hidden")):function(){return null}};var Q$="Dialog",[eU,F5e]=Ju(Q$),[vse,Zi]=eU(Q$),wse=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=(0,Je.useRef)(null),l=(0,Je.useRef)(null),[u=!1,h]=R0({prop:n,defaultProp:o,onChange:i});return(0,Je.createElement)(vse,{scope:t,triggerRef:a,contentRef:l,contentId:bv(),titleId:bv(),descriptionId:bv(),open:u,onOpenChange:h,onOpenToggle:(0,Je.useCallback)(()=>h(p=>!p),[h]),modal:s},r)};var tU="DialogPortal",[bse,rU]=eU(tU,{forceMount:void 0}),_se=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Zi(tU,t);return(0,Je.createElement)(bse,{scope:t,forceMount:r},Je.Children.map(n,s=>(0,Je.createElement)(Ka,{present:r||i.open},(0,Je.createElement)(A0,{asChild:!0,container:o},s))))},ZE="DialogOverlay",xse=(0,Je.forwardRef)((e,t)=>{let r=rU(ZE,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,o=Pe(s,["forceMount"]),i=Zi(ZE,e.__scopeDialog);return i.modal?(0,Je.createElement)(Ka,{present:n||i.open},(0,Je.createElement)(Ese,pt({},o,{ref:t}))):null}),Ese=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Pe(i,["__scopeDialog"]),o=Zi(ZE,r);return(0,Je.createElement)(YE,{as:js,allowPinchZoom:!0,shards:[o.contentRef]},(0,Je.createElement)(Er.div,pt({"data-state":iU(o.open)},n,{ref:t,style:Q({pointerEvents:"auto"},n.style)})))}),Zc="DialogContent",Sse=(0,Je.forwardRef)((e,t)=>{let r=rU(Zc,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,o=Pe(s,["forceMount"]),i=Zi(Zc,e.__scopeDialog);return(0,Je.createElement)(Ka,{present:n||i.open},i.modal?(0,Je.createElement)(Cse,pt({},o,{ref:t})):(0,Je.createElement)(Tse,pt({},o,{ref:t})))}),Cse=(0,Je.forwardRef)((e,t)=>{let r=Zi(Zc,e.__scopeDialog),n=(0,Je.useRef)(null),o=Xr(t,r.contentRef,n);return(0,Je.useEffect)(()=>{let i=n.current;if(i)return J$(i)},[]),(0,Je.createElement)(nU,pt({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yr(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:yr(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:yr(e.onFocusOutside,i=>i.preventDefault())}))}),Tse=(0,Je.forwardRef)((e,t)=>{let r=Zi(Zc,e.__scopeDialog),n=(0,Je.useRef)(!1);return(0,Je.createElement)(nU,pt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);let a=o.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(a))&&o.preventDefault()}}))}),nU=(0,Je.forwardRef)((e,t)=>{let h=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i}=h,s=Pe(h,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=Zi(Zc,r),l=(0,Je.useRef)(null),u=Xr(t,l);return R$(),(0,Je.createElement)(Je.Fragment,null,(0,Je.createElement)(D$,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,Je.createElement)(e2,pt({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":iU(a.open)},s,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),oU="DialogTitle",Pse=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Pe(i,["__scopeDialog"]),o=Zi(oU,r);return(0,Je.createElement)(Er.h2,pt({id:o.titleId},n,{ref:t}))});var Ose="DialogClose",Dse=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Pe(i,["__scopeDialog"]),o=Zi(Ose,r);return(0,Je.createElement)(Er.button,pt({type:"button"},n,{ref:t,onClick:yr(e.onClick,()=>o.onOpenChange(!1))}))});function iU(e){return e?"open":"closed"}var Ise="DialogTitleWarning",[$5e,U5e]=BD(Ise,{contentName:Zc,titleName:oU,docsSlug:"dialog"});var sU=wse;var aU=_se,lU=xse,uU=Sse,cU=Pse;var fU=Dse;var rf=ue(we(),1);c();d();f();var Mse=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),g.createElement("path",{d:"M13.961 2.717c-1.404-1.055-4.348 2.108-4.646 3.371a.262.262 0 0 0 .108.263.25.25 0 0 0 .28.001 54.105 54.105 0 0 1 2.108-1.436c1.072 1.234 1.206 2.596 1.206 2.596l.122-.177c.75-1.084 2.367-3.42.822-4.618Zm-3.536 5.354a.238.238 0 0 1 .09-.074c1.159-.55 5.424-.176 5.485 1.6.039 1.975-2.75 2.142-4.053 2.22l-.22.014s.96-.954 1.242-2.577a52.692 52.692 0 0 0-2.415-.788.247.247 0 0 1-.141-.11.254.254 0 0 1-.032-.176.243.243 0 0 1 .044-.109Zm-.775 2.046c.05-.007.1 0 .145.023 1.146.58 3.51 4.212 2.182 5.365-1.49 1.26-3.357-.86-4.228-1.848-.052-.06-.1-.115-.146-.165 0 0 1.331.173 2.755-.612a55.368 55.368 0 0 0-.899-2.417.255.255 0 0 1 .058-.28.244.244 0 0 1 .133-.066Zm-2.001.68c.025.03.042.066.05.105.27 1.27-1.052 5.417-2.764 5.078-1.898-.405-1.432-3.21-1.214-4.521l.036-.221s.698 1.17 2.186 1.814c.54-.87 1.02-1.716 1.299-2.218a.24.24 0 0 1 .314-.107.24.24 0 0 1 .093.07Zm-1.79-1.199a.26.26 0 0 1-.048.106C5 10.707.99 12.238.183 10.66c-.872-1.765 1.594-3.146 2.731-3.784l.18-.101s-.463 1.28-.031 2.87a50.668 50.668 0 0 0 2.515-.35.25.25 0 0 1 .278.186c.01.038.01.078.003.116Zm-.194-2.17a.236.236 0 0 1-.113.025c-1.276-.02-4.947-2.26-4.236-3.882.814-1.799 3.407-.694 4.607-.183l.192.082s-1.273.426-2.227 1.759c.71.732 1.415 1.397 1.834 1.784a.256.256 0 0 1 .032.34.241.241 0 0 1-.089.075Zm1.827-1.553a.247.247 0 0 1-.369-.024c-.777-1.033-1.34-5.352.35-5.798 1.889-.469 2.655 2.289 3.008 3.56l.056.202s-1.12-.75-2.738-.677a50.779 50.779 0 0 0-.23 2.573.256.256 0 0 1-.077.164Zm34.03 1.792c0 1.049-.197 1.947-.59 2.695-.389.745-.92 1.315-1.594 1.71-.671.397-1.432.595-2.284.595-.85 0-1.614-.198-2.288-.594-.67-.4-1.202-.971-1.595-1.716-.389-.748-.584-1.644-.584-2.69 0-1.049.195-1.946.584-2.69.393-.748.925-1.32 1.595-1.716.675-.396 1.437-.594 2.288-.594.852 0 1.613.198 2.284.594.674.396 1.206.968 1.595 1.716.392.744.588 1.641.588 2.69Zm-1.771 0c0-.738-.116-1.36-.347-1.868-.228-.51-.544-.895-.95-1.155a2.514 2.514 0 0 0-1.4-.394c-.528 0-.995.131-1.4.394-.405.26-.723.645-.954 1.155-.228.507-.342 1.13-.342 1.868 0 .738.114 1.362.342 1.873.23.507.549.892.954 1.155.405.26.872.39 1.4.39.529 0 .996-.13 1.4-.39.406-.263.722-.648.95-1.155.231-.51.347-1.135.347-1.873Zm-17.674 4.867L19.333 2.8h1.894l1.752 7.153h.09L24.94 2.8h1.724l1.875 7.158h.085L30.375 2.8h1.894l-2.744 9.734h-1.737l-1.947-6.83h-.075l-1.951 6.83h-1.738ZM43.053 2.8v9.734h1.76V8.969h1.793l1.91 3.565h1.966L48.379 8.68c.063-.025.125-.053.185-.081.513-.25.9-.604 1.163-1.06.266-.46.399-1.002.399-1.626 0-.62-.131-1.164-.394-1.63a2.66 2.66 0 0 0-1.154-1.093c-.506-.26-1.133-.39-1.88-.39h-3.645Zm1.76 4.705h1.624c.437 0 .795-.06 1.073-.18.279-.124.484-.303.617-.537.136-.238.204-.53.204-.875s-.068-.64-.204-.884a1.3 1.3 0 0 0-.622-.56c-.278-.13-.637-.196-1.077-.196h-1.614v3.232Zm6.8 5.029V2.8h1.761v8.256h4.282v1.478h-6.043Zm7.438 0h3.294c.988 0 1.833-.195 2.535-.585a3.907 3.907 0 0 0 1.62-1.677c.376-.73.564-1.6.564-2.615 0-1.01-.187-1.878-.56-2.604a3.906 3.906 0 0 0-1.605-1.668c-.693-.39-1.522-.585-2.487-.585h-3.36v9.734Zm3.21-1.526h-1.449V4.326h1.5c.659 0 1.21.123 1.652.37.447.244.784.614 1.011 1.108.228.491.342 1.109.342 1.853 0 .745-.114 1.366-.342 1.864a2.37 2.37 0 0 1-1.02 1.116c-.453.248-1.018.371-1.695.371ZM73.546 2.8v9.734h-1.761V2.8h1.761Zm1.773 9.734h3.295c.987 0 1.832-.195 2.535-.585a3.906 3.906 0 0 0 1.618-1.677c.377-.73.565-1.6.565-2.615 0-1.01-.186-1.878-.56-2.604a3.905 3.905 0 0 0-1.604-1.668c-.693-.39-1.522-.585-2.488-.585h-3.36v9.734Zm3.21-1.526h-1.448V4.326h1.5c.658 0 1.209.123 1.652.37.446.244.783.614 1.01 1.108.228.491.343 1.109.343 1.853 0 .745-.115 1.366-.342 1.864a2.371 2.371 0 0 1-1.02 1.116c-.453.248-1.018.371-1.696.371Z"})),dU=Mse;c();d();f();c();d();f();var rB=ue(yU(),1);c();d();f();c();d();f();var eS=ue(we());function Pv(){return Pv=Object.assign||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},Pv.apply(this,arguments)}function Use(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Bse=["cdnSuffix","cdnUrl","countryCode","style","svg"],jse="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/4.1.4/flags/4x3/",Vse="svg",zse=127397,Hse=function(t){var r=t.cdnSuffix,n=r===void 0?Vse:r,o=t.cdnUrl,i=o===void 0?jse:o,s=t.countryCode,a=t.style,l=t.svg,u=l===void 0?!1:l,h=Use(t,Bse);if(typeof s!="string")return null;if(u){var p=""+i+s.toLowerCase()+"."+n;return(0,eS.createElement)("img",Object.assign({},h,{src:p,style:Pv({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},a)}))}var y=s.toUpperCase().replace(/./g,function(w){return String.fromCodePoint(w.charCodeAt(0)+zse)});return(0,eS.createElement)("span",Object.assign({role:"img"},h,{style:Pv({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},a)}),y)},tS=Hse;var gS=ue(xU(),1);c();d();f();var Kse=e=>g.createElement("svg",ve(Q({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6"}),g.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.846",d:"m1.004 1 4 4 4-4"})),EU=Kse;c();d();f();var CU=ue(we(),1);c();d();f();var Iv=ue(we(),1);c();d();f();var qse=Object.defineProperty,Gse=(e,t,r)=>t in e?qse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rS=(e,t,r)=>(Gse(e,typeof t!="symbol"?t+"":t,r),r),nS=class{constructor(){rS(this,"current",this.detect()),rS(this,"handoffState","pending"),rS(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},oo=new nS;var vr=(e,t)=>{oo.isServer?(0,Iv.useEffect)(e,t):(0,Iv.useLayoutEffect)(e,t)};c();d();f();var SU=ue(we(),1);function wn(e){let t=(0,SU.useRef)(e);return vr(()=>{t.current=e},[e]),t}function oS(e,t){let[r,n]=(0,CU.useState)(e),o=wn(e);return vr(()=>n(o.current),[o,n,...t]),r}c();d();f();var Av=ue(we(),1);c();d();f();c();d();f();function TU(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function jo(){let e=[],t=[],r={enqueue(n){t.push(n)},addEventListener(n,o,i,s){return n.addEventListener(o,i,s),r.add(()=>n.removeEventListener(o,i,s))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return TU(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0){let[i]=e.splice(o,1);i()}}},dispose(){for(let n of e.splice(0))n()},async workQueue(){for(let n of t.splice(0))await n()},style(n,o,i){let s=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:i}),this.add(()=>{Object.assign(n.style,{[o]:s})})}};return r}function es(){let[e]=(0,Av.useState)(jo);return(0,Av.useEffect)(()=>()=>e.dispose(),[e]),e}c();d();f();var PU=ue(we(),1);var _t=function(e){let t=wn(e);return PU.default.useCallback((...r)=>t.current(...r),[t])};c();d();f();var iS=ue(we(),1);c();d();f();var Rh=ue(we(),1);function Nh(){let[e,t]=(0,Rh.useState)(oo.isHandoffComplete);return e&&oo.isHandoffComplete===!1&&t(!1),(0,Rh.useEffect)(()=>{e!==!0&&t(!0)},[e]),(0,Rh.useEffect)(()=>oo.handoff(),[]),e}var OU,kh=(OU=iS.default.useId)!=null?OU:function(){let e=Nh(),[t,r]=iS.default.useState(e?()=>oo.nextId():null);return vr(()=>{t===null&&r(oo.nextId())},[t]),t!=null?""+t:void 0};c();d();f();var Fh=ue(we(),1);c();d();f();c();d();f();function rr(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,rr),n}c();d();f();function Mv(e){return oo.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var DU=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Wse=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Wse||{}),Yse=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Yse||{}),Xse=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Xse||{});var Lh=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Lh||{});function Rv(e,t=0){var r;return e===((r=Mv(e))==null?void 0:r.body)?!1:rr(t,{[0](){return e.matches(DU)},[1](){let n=e;for(;n!==null;){if(n.matches(DU))return!0;n=n.parentElement}return!1}})}var w4e=["textarea","input"].join(",");function IU(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}c();d();f();var AU=ue(we(),1);function Nv(e,t,r){let n=wn(t);(0,AU.useEffect)(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function MU(e,t,r=!0){let n=(0,Fh.useRef)(!1);(0,Fh.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let l=function h(p){return typeof p=="function"?h(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e),u=a(s);if(u!==null&&!!u.getRootNode().contains(u)){for(let h of l){if(h===null)continue;let p=h instanceof HTMLElement?h:h.current;if(p!=null&&p.contains(u)||s.composed&&s.composedPath().includes(p))return}return!Rv(u,Lh.Loose)&&u.tabIndex!==-1&&s.preventDefault(),t(s,u)}}let i=(0,Fh.useRef)(null);Nv("mousedown",s=>{var a,l;n.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),Nv("click",s=>{!i.current||(o(s,()=>i.current),i.current=null)},!0),Nv("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}c();d();f();var NU=ue(we(),1);function RU(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function kU(e,t){let[r,n]=(0,NU.useState)(()=>RU(e));return vr(()=>{n(RU(e))},[e.type,e.as]),vr(()=>{r||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}c();d();f();var kv=ue(we(),1);var Zse=Symbol();function ts(...e){let t=(0,kv.useRef)(e);(0,kv.useEffect)(()=>{t.current=e},[e]);let r=_t(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[Zse]))?void 0:r}c();d();f();function Jse(e){throw new Error("Unexpected object: "+e)}var bn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(bn||{});function LU(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n!=null?n:-1,i=(()=>{switch(e.focus){case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((a,l,u)=>o!==-1&&u.length-l-1>=o?!1:!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 2:return r.findIndex((s,a)=>a<=o?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(a=>!t.resolveDisabled(a));return s===-1?s:r.length-1-s}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:Jse(e)}})();return i===-1?n:i}c();d();f();var Co=ue(we(),1);c();d();f();function Lv(...e){return e.filter(Boolean).join(" ")}var Jc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Jc||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function Vo({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s}){let a=FU(t,e);if(i)return Fv(a,r,n,s);let l=o!=null?o:0;if(l&2){let u=a,{static:p=!1}=u,y=Pe(u,["static"]);if(p)return Fv(y,r,n,s)}if(l&1){let h=a,{unmount:p=!0}=h,y=Pe(h,["unmount"]);return rr(p?0:1,{[0](){return null},[1](){return Fv(ve(Q({},y),{hidden:!0,style:{display:"none"}}),r,n,s)}})}return Fv(a,r,n,s)}function Fv(e,t={},r,n){var o;let y=sS(e,["unmount","static"]),{as:i=r,children:s,refName:a="ref"}=y,l=Pe(y,["as","children","refName"]),u=e.ref!==void 0?{[a]:e.ref}:{},h=typeof s=="function"?s(t):s;l.className&&typeof l.className=="function"&&(l.className=l.className(t));let p={};if(t){let w=!1,v=[];for(let[S,I]of Object.entries(t))typeof I=="boolean"&&(w=!0),I===!0&&v.push(S);w&&(p["data-headlessui-state"]=v.join(" "))}if(i===Co.Fragment&&Object.keys($v(l)).length>0){if(!(0,Co.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(S=>` - ${S}`).join(`
|
|
87
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
|
|
88
|
-
`)].join(`
|
|
89
|
-
`));let w=Lv((o=h.props)==null?void 0:o.className,l.className),v=w?{className:w}:{};return(0,Co.cloneElement)(h,Object.assign({},FU(h.props,$v(sS(l,["ref"]))),p,u,Qse(h.ref,u.ref),v))}return(0,Co.createElement)(i,Object.assign({},sS(l,["ref"]),i!==Co.Fragment&&u,i!==Co.Fragment&&p),h)}function Qse(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function FU(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let i in o)i.startsWith("on")&&typeof o[i]=="function"?((t=n[i])!=null||(n[i]=[]),n[i].push(o[i])):r[i]=o[i];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](i,...s){let a=n[o];for(let l of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...s)}}});return r}function To(e){var t;return Object.assign((0,Co.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $v(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function sS(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}c();d();f();function $U(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&eae(r)?!1:n}function eae(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}c();d();f();function aS(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))BU(r,UU(t,n),o);return r}function UU(e,t){return e?e+"["+t+"]":t}function BU(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())BU(e,UU(t,n.toString()),o);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):aS(r,t,e)}c();d();f();var tae="div",lS=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(lS||{}),jU=To(function(e,t){let i=e,{features:r=1}=i,n=Pe(i,["features"]),o={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:Q({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return Vo({ourProps:o,theirProps:n,slot:{},defaultTag:tae,name:"Hidden"})});c();d();f();var Qc=ue(we(),1),uS=(0,Qc.createContext)(null);uS.displayName="OpenClosedContext";var mi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mi||{});function $h(){return(0,Qc.useContext)(uS)}function Uv({value:e,children:t}){return Qc.default.createElement(uS.Provider,{value:e},t)}c();d();f();var Pr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Pr||{});c();d();f();var ef=ue(we(),1);function VU(e,t,r){let[n,o]=(0,ef.useState)(r),i=e!==void 0,s=(0,ef.useRef)(i),a=(0,ef.useRef)(!1),l=(0,ef.useRef)(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:n,_t(u=>(i||o(u),t==null?void 0:t(u)))]}c();d();f();var HU=ue(we(),1);function zU(e){return[e.screenX,e.screenY]}function KU(){let e=(0,HU.useRef)([-1,-1]);return{wasMoved(t){let r=zU(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=zU(t)}}}c();d();f();var qU=ue(we(),1);function Bv(){let e=(0,qU.useRef)(!1);return vr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}c();d();f();var ut=ue(we(),1);var rae=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(rae||{}),nae=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(nae||{}),oae=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(oae||{}),iae=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(iae||{});function cS(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=IU(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}var sae={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:ve(Q({},e),{activeOptionIndex:null,listboxState:1})},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(o=>r(o.dataRef.current.value));return n!==-1&&(t=n),ve(Q({},e),{listboxState:0,activeOptionIndex:t})},[2](e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=cS(e),o=LU(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return ve(Q(Q({},e),n),{searchQuery:"",activeOptionIndex:o,activationTrigger:(r=t.trigger)!=null?r:1})},[3]:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?ve(Q({},e),{searchQuery:n}):ve(Q({},e),{searchQuery:n,activeOptionIndex:i,activationTrigger:1})},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:ve(Q({},e),{searchQuery:""})},[5]:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=cS(e,o=>[...o,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),Q(Q({},e),n)},[6]:(e,t)=>{let r=cS(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return ve(Q(Q({},e),r),{activationTrigger:1})},[7]:(e,t)=>ve(Q({},e),{labelId:t.id})},fS=(0,ut.createContext)(null);fS.displayName="ListboxActionsContext";function Uh(e){let t=(0,ut.useContext)(fS);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Uh),r}return t}var dS=(0,ut.createContext)(null);dS.displayName="ListboxDataContext";function Bh(e){let t=(0,ut.useContext)(dS);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Bh),r}return t}function aae(e,t){return rr(t.type,sae,e,t)}var lae=ut.Fragment,uae=To(function(e,t){let j=e,{value:r,defaultValue:n,name:o,onChange:i,by:s=(ie,D)=>ie===D,disabled:a=!1,horizontal:l=!1,multiple:u=!1}=j,h=Pe(j,["value","defaultValue","name","onChange","by","disabled","horizontal","multiple"]),p=l?"horizontal":"vertical",y=ts(t),[w=u?[]:void 0,v]=VU(r,i,n),[S,I]=(0,ut.useReducer)(aae,{dataRef:(0,ut.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),T=(0,ut.useRef)({static:!1,hold:!1}),O=(0,ut.useRef)(null),M=(0,ut.useRef)(null),L=(0,ut.useRef)(null),G=_t(typeof s=="string"?(ie,D)=>{let Y=s;return(ie==null?void 0:ie[Y])===(D==null?void 0:D[Y])}:s),J=(0,ut.useCallback)(ie=>rr(V.mode,{[1]:()=>w.some(D=>G(D,ie)),[0]:()=>G(w,ie)}),[w]),V=(0,ut.useMemo)(()=>ve(Q({},S),{value:w,disabled:a,mode:u?1:0,orientation:p,compare:G,isSelected:J,optionsPropsRef:T,labelRef:O,buttonRef:M,optionsRef:L}),[w,a,u,S]);vr(()=>{S.dataRef.current=V},[V]),MU([V.buttonRef,V.optionsRef],(ie,D)=>{var Y;I({type:1}),Rv(D,Lh.Loose)||(ie.preventDefault(),(Y=V.buttonRef.current)==null||Y.focus())},V.listboxState===0);let q=(0,ut.useMemo)(()=>({open:V.listboxState===0,disabled:a,value:w}),[V,a,w]),ce=_t(ie=>{let D=V.options.find(Y=>Y.id===ie);!D||E(D.dataRef.current.value)}),me=_t(()=>{if(V.activeOptionIndex!==null){let{dataRef:ie,id:D}=V.options[V.activeOptionIndex];E(ie.current.value),I({type:2,focus:bn.Specific,id:D})}}),fe=_t(()=>I({type:0})),X=_t(()=>I({type:1})),R=_t((ie,D,Y)=>ie===bn.Specific?I({type:2,focus:bn.Specific,id:D,trigger:Y}):I({type:2,focus:ie,trigger:Y})),m=_t((ie,D)=>(I({type:5,id:ie,dataRef:D}),()=>I({type:6,id:ie}))),b=_t(ie=>(I({type:7,id:ie}),()=>I({type:7,id:null}))),E=_t(ie=>rr(V.mode,{[0](){return v==null?void 0:v(ie)},[1](){let D=V.value.slice(),Y=D.findIndex(ne=>G(ne,ie));return Y===-1?D.push(ie):D.splice(Y,1),v==null?void 0:v(D)}})),A=_t(ie=>I({type:3,value:ie})),k=_t(()=>I({type:4})),B=(0,ut.useMemo)(()=>({onChange:E,registerOption:m,registerLabel:b,goToOption:R,closeListbox:X,openListbox:fe,selectActiveOption:me,selectOption:ce,search:A,clearSearch:k}),[]),K={ref:y},U=(0,ut.useRef)(null),x=es();return(0,ut.useEffect)(()=>{!U.current||n!==void 0&&x.addEventListener(U.current,"reset",()=>{E(n)})},[U,E]),ut.default.createElement(fS.Provider,{value:B},ut.default.createElement(dS.Provider,{value:V},ut.default.createElement(Uv,{value:rr(V.listboxState,{[0]:mi.Open,[1]:mi.Closed})},o!=null&&w!=null&&aS({[o]:w}).map(([ie,D],Y)=>ut.default.createElement(jU,Q({features:lS.Hidden,ref:Y===0?ne=>{var ae;U.current=(ae=ne==null?void 0:ne.closest("form"))!=null?ae:null}:void 0},$v({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:ie,value:D})))),Vo({ourProps:K,theirProps:h,slot:q,defaultTag:lae,name:"Listbox"}))))}),cae="button",fae=To(function(e,t){var r;let n=kh(),I=e,{id:o=`headlessui-listbox-button-${n}`}=I,i=Pe(I,["id"]),s=Bh("Listbox.Button"),a=Uh("Listbox.Button"),l=ts(s.buttonRef,t),u=es(),h=_t(T=>{switch(T.key){case Pr.Space:case Pr.Enter:case Pr.ArrowDown:T.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(bn.First)});break;case Pr.ArrowUp:T.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(bn.Last)});break}}),p=_t(T=>{switch(T.key){case Pr.Space:T.preventDefault();break}}),y=_t(T=>{if($U(T.currentTarget))return T.preventDefault();s.listboxState===0?(a.closeListbox(),u.nextFrame(()=>{var O;return(O=s.buttonRef.current)==null?void 0:O.focus({preventScroll:!0})})):(T.preventDefault(),a.openListbox())}),w=oS(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),v=(0,ut.useMemo)(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),S={ref:l,id:o,type:kU(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.disabled?void 0:s.listboxState===0,"aria-labelledby":w,disabled:s.disabled,onKeyDown:h,onKeyUp:p,onClick:y};return Vo({ourProps:S,theirProps:i,slot:v,defaultTag:cae,name:"Listbox.Button"})}),dae="label",hae=To(function(e,t){let r=kh(),h=e,{id:n=`headlessui-listbox-label-${r}`}=h,o=Pe(h,["id"]),i=Bh("Listbox.Label"),s=Uh("Listbox.Label"),a=ts(i.labelRef,t);vr(()=>s.registerLabel(n),[n]);let l=_t(()=>{var p;return(p=i.buttonRef.current)==null?void 0:p.focus({preventScroll:!0})}),u=(0,ut.useMemo)(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return Vo({ourProps:{ref:a,id:n,onClick:l},theirProps:o,slot:u,defaultTag:dae,name:"Listbox.Label"})}),pae="ul",mae=Jc.RenderStrategy|Jc.Static,gae=To(function(e,t){var r;let n=kh(),T=e,{id:o=`headlessui-listbox-options-${n}`}=T,i=Pe(T,["id"]),s=Bh("Listbox.Options"),a=Uh("Listbox.Options"),l=ts(s.optionsRef,t),u=es(),h=es(),p=$h(),y=(()=>p!==null?p===mi.Open:s.listboxState===0)();(0,ut.useEffect)(()=>{var O;let M=s.optionsRef.current;!M||s.listboxState===0&&M!==((O=Mv(M))==null?void 0:O.activeElement)&&M.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let w=_t(O=>{switch(h.dispose(),O.key){case Pr.Space:if(s.searchQuery!=="")return O.preventDefault(),O.stopPropagation(),a.search(O.key);case Pr.Enter:if(O.preventDefault(),O.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:M}=s.options[s.activeOptionIndex];a.onChange(M.current.value)}s.mode===0&&(a.closeListbox(),jo().nextFrame(()=>{var M;return(M=s.buttonRef.current)==null?void 0:M.focus({preventScroll:!0})}));break;case rr(s.orientation,{vertical:Pr.ArrowDown,horizontal:Pr.ArrowRight}):return O.preventDefault(),O.stopPropagation(),a.goToOption(bn.Next);case rr(s.orientation,{vertical:Pr.ArrowUp,horizontal:Pr.ArrowLeft}):return O.preventDefault(),O.stopPropagation(),a.goToOption(bn.Previous);case Pr.Home:case Pr.PageUp:return O.preventDefault(),O.stopPropagation(),a.goToOption(bn.First);case Pr.End:case Pr.PageDown:return O.preventDefault(),O.stopPropagation(),a.goToOption(bn.Last);case Pr.Escape:return O.preventDefault(),O.stopPropagation(),a.closeListbox(),u.nextFrame(()=>{var M;return(M=s.buttonRef.current)==null?void 0:M.focus({preventScroll:!0})});case Pr.Tab:O.preventDefault(),O.stopPropagation();break;default:O.key.length===1&&(a.search(O.key),h.setTimeout(()=>a.clearSearch(),350));break}}),v=oS(()=>{var O,M,L;return(L=(O=s.labelRef.current)==null?void 0:O.id)!=null?L:(M=s.buttonRef.current)==null?void 0:M.id},[s.labelRef.current,s.buttonRef.current]),S=(0,ut.useMemo)(()=>({open:s.listboxState===0}),[s]),I={"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":s.mode===1?!0:void 0,"aria-labelledby":v,"aria-orientation":s.orientation,id:o,onKeyDown:w,role:"listbox",tabIndex:0,ref:l};return Vo({ourProps:I,theirProps:i,slot:S,defaultTag:pae,features:mae,visible:y,name:"Listbox.Options"})}),yae="li",vae=To(function(e,t){let r=kh(),G=e,{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i}=G,s=Pe(G,["id","disabled","value"]),a=Bh("Listbox.Option"),l=Uh("Listbox.Option"),u=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,h=a.isSelected(i),p=(0,ut.useRef)(null),y=wn({disabled:o,value:i,domRef:p,get textValue(){var J,V;return(V=(J=p.current)==null?void 0:J.textContent)==null?void 0:V.toLowerCase()}}),w=ts(t,p);vr(()=>{if(a.listboxState!==0||!u||a.activationTrigger===0)return;let J=jo();return J.requestAnimationFrame(()=>{var V,q;(q=(V=p.current)==null?void 0:V.scrollIntoView)==null||q.call(V,{block:"nearest"})}),J.dispose},[p,u,a.listboxState,a.activationTrigger,a.activeOptionIndex]),vr(()=>l.registerOption(n,y),[y,n]);let v=_t(J=>{if(o)return J.preventDefault();l.onChange(i),a.mode===0&&(l.closeListbox(),jo().nextFrame(()=>{var V;return(V=a.buttonRef.current)==null?void 0:V.focus({preventScroll:!0})}))}),S=_t(()=>{if(o)return l.goToOption(bn.Nothing);l.goToOption(bn.Specific,n)}),I=KU(),T=_t(J=>I.update(J)),O=_t(J=>{!I.wasMoved(J)||o||u||l.goToOption(bn.Specific,n,0)}),M=_t(J=>{!I.wasMoved(J)||o||!u||l.goToOption(bn.Nothing)}),L=(0,ut.useMemo)(()=>({active:u,selected:h,disabled:o}),[u,h,o]);return Vo({ourProps:{id:n,ref:w,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:v,onFocus:S,onPointerEnter:T,onMouseEnter:T,onPointerMove:O,onMouseMove:O,onPointerLeave:M,onMouseLeave:M},theirProps:s,slot:L,defaultTag:yae,name:"Listbox.Option"})}),tf=Object.assign(uae,{Button:fae,Label:hae,Options:gae,Option:vae});c();d();f();var Ye=ue(we(),1);c();d();f();c();d();f();c();d();f();function GU(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function hS(e,...t){e&&t.length>0&&e.classList.add(...t)}function pS(e,...t){e&&t.length>0&&e.classList.remove(...t)}function wae(e,t){let r=jo();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,h)=>h-u);return l});if(i+s!==0){let a=r.addEventListener(e,"transitionend",l=>{l.target===l.currentTarget&&(t(),a())})}else t();return r.add(()=>t()),r.dispose}function WU(e,t,r,n){let o=r?"enter":"leave",i=jo(),s=n!==void 0?GU(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=rr(o,{enter:()=>t.enter,leave:()=>t.leave}),l=rr(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=rr(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return pS(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),hS(e,...a,...u),i.nextFrame(()=>{pS(e,...u),hS(e,...l),wae(e,()=>(pS(e,...a),hS(e,...t.entered),s()))}),i.dispose}function YU({container:e,direction:t,classes:r,onStart:n,onStop:o}){let i=Bv(),s=es(),a=wn(t);vr(()=>{let l=jo();s.add(l.dispose);let u=e.current;if(!!u&&a.current!=="idle"&&!!i.current)return l.dispose(),n.current(a.current),l.add(WU(u,r.current,a.current==="enter",()=>{l.dispose(),o.current(a.current)})),l.dispose},[t])}function _l(e=""){return e.split(" ").filter(t=>t.trim().length>1)}var jv=(0,Ye.createContext)(null);jv.displayName="TransitionContext";var bae=(e=>(e.Visible="visible",e.Hidden="hidden",e))(bae||{});function _ae(){let e=(0,Ye.useContext)(jv);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function xae(){let e=(0,Ye.useContext)(Vv);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}var Vv=(0,Ye.createContext)(null);Vv.displayName="NestingContext";function zv(e){return"children"in e?zv(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function ZU(e,t){let r=wn(e),n=(0,Ye.useRef)([]),o=Bv(),i=es(),s=_t((w,v=pi.Hidden)=>{let S=n.current.findIndex(({el:I})=>I===w);S!==-1&&(rr(v,{[pi.Unmount](){n.current.splice(S,1)},[pi.Hidden](){n.current[S].state="hidden"}}),i.microTask(()=>{var I;!zv(n)&&o.current&&((I=r.current)==null||I.call(r))}))}),a=_t(w=>{let v=n.current.find(({el:S})=>S===w);return v?v.state!=="visible"&&(v.state="visible"):n.current.push({el:w,state:"visible"}),()=>s(w,pi.Unmount)}),l=(0,Ye.useRef)([]),u=(0,Ye.useRef)(Promise.resolve()),h=(0,Ye.useRef)({enter:[],leave:[],idle:[]}),p=_t((w,v,S)=>{l.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([I])=>I!==w)),t==null||t.chains.current[v].push([w,new Promise(I=>{l.current.push(I)})]),t==null||t.chains.current[v].push([w,new Promise(I=>{Promise.all(h.current[v].map(([T,O])=>O)).then(()=>I())})]),v==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>S(v)):S(v)}),y=_t((w,v,S)=>{Promise.all(h.current[v].splice(0).map(([I,T])=>T)).then(()=>{var I;(I=l.current.shift())==null||I()}).then(()=>S(v))});return(0,Ye.useMemo)(()=>({children:n,register:a,unregister:s,onStart:p,onStop:y,wait:u,chains:h}),[a,s,n,p,y,h,u])}function Eae(){}var Sae=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function XU(e){var t;let r={};for(let n of Sae)r[n]=(t=e[n])!=null?t:Eae;return r}function Cae(e){let t=(0,Ye.useRef)(XU(e));return(0,Ye.useEffect)(()=>{t.current=XU(e)},[e]),t}var Tae="div",JU=Jc.RenderStrategy,QU=To(function(e,t){let K=e,{beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:l,entered:u,leave:h,leaveFrom:p,leaveTo:y}=K,w=Pe(K,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),v=(0,Ye.useRef)(null),S=ts(v,t),I=w.unmount?pi.Unmount:pi.Hidden,{show:T,appear:O,initial:M}=_ae(),[L,G]=(0,Ye.useState)(T?"visible":"hidden"),J=xae(),{register:V,unregister:q}=J,ce=(0,Ye.useRef)(null);(0,Ye.useEffect)(()=>V(v),[V,v]),(0,Ye.useEffect)(()=>{if(I===pi.Hidden&&!!v.current){if(T&&L!=="visible"){G("visible");return}return rr(L,{hidden:()=>q(v),visible:()=>V(v)})}},[L,v,V,q,T,I]);let me=wn({enter:_l(s),enterFrom:_l(a),enterTo:_l(l),entered:_l(u),leave:_l(h),leaveFrom:_l(p),leaveTo:_l(y)}),fe=Cae({beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i}),X=Nh();(0,Ye.useEffect)(()=>{if(X&&L==="visible"&&v.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,L,X]);let R=M&&!O,m=(()=>!X||R||ce.current===T?"idle":T?"enter":"leave")(),b=_t(U=>rr(U,{enter:()=>fe.current.beforeEnter(),leave:()=>fe.current.beforeLeave(),idle:()=>{}})),E=_t(U=>rr(U,{enter:()=>fe.current.afterEnter(),leave:()=>fe.current.afterLeave(),idle:()=>{}})),A=ZU(()=>{G("hidden"),q(v)},J);YU({container:v,classes:me,direction:m,onStart:wn(U=>{A.onStart(v,U,b)}),onStop:wn(U=>{A.onStop(v,U,E),U==="leave"&&!zv(A)&&(G("hidden"),q(v))})}),(0,Ye.useEffect)(()=>{!R||(I===pi.Hidden?ce.current=null:ce.current=T)},[T,R,L]);let k=w,B={ref:S};return O&&T&&oo.isServer&&(k=ve(Q({},k),{className:Lv(w.className,...me.current.enter,...me.current.enterFrom)})),Ye.default.createElement(Vv.Provider,{value:A},Ye.default.createElement(Uv,{value:rr(L,{visible:mi.Open,hidden:mi.Closed})},Vo({ourProps:B,theirProps:k,defaultTag:Tae,features:JU,visible:L==="visible",name:"Transition.Child"})))}),mS=To(function(e,t){let T=e,{show:r,appear:n=!1,unmount:o}=T,i=Pe(T,["show","appear","unmount"]),s=(0,Ye.useRef)(null),a=ts(s,t);Nh();let l=$h();if(r===void 0&&l!==null&&(r=rr(l,{[mi.Open]:!0,[mi.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,h]=(0,Ye.useState)(r?"visible":"hidden"),p=ZU(()=>{h("hidden")}),[y,w]=(0,Ye.useState)(!0),v=(0,Ye.useRef)([r]);vr(()=>{y!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),w(!1))},[v,r]);let S=(0,Ye.useMemo)(()=>({show:r,appear:n,initial:y}),[r,n,y]);(0,Ye.useEffect)(()=>{if(r)h("visible");else if(!zv(p))h("hidden");else{let O=s.current;if(!O)return;let M=O.getBoundingClientRect();M.x===0&&M.y===0&&M.width===0&&M.height===0&&h("hidden")}},[r,p]);let I={unmount:o};return Ye.default.createElement(Vv.Provider,{value:p},Ye.default.createElement(jv.Provider,{value:S},Vo({ourProps:ve(Q({},I),{as:Ye.Fragment,children:Ye.default.createElement(QU,Q(Q({ref:a},I),i))}),theirProps:{},defaultTag:Ye.Fragment,features:JU,visible:u==="visible",name:"Transition"})))}),Pae=To(function(e,t){let r=(0,Ye.useContext)(jv)!==null,n=$h()!==null;return Ye.default.createElement(Ye.default.Fragment,null,!r&&n?Ye.default.createElement(mS,Q({ref:t},e)):Ye.default.createElement(QU,Q({ref:t},e)))}),eB=Object.assign(mS,{Child:Pae,Root:mS});var zo=ue(we(),1),Oae=({value:e,onChange:t})=>{let[r,n]=(0,zo.useState)("us"),o=(0,zo.useRef)(null);(0,zo.useEffect)(()=>{let s=o.current;if(!s)return;let a=0,l=p=>{s.scrollTop+=p.deltaY},u=p=>{a=s.scrollTop+p.touches[0].pageY},h=p=>{s.scrollTop=a-p.touches[0].pageY};return s.addEventListener("wheel",l),s.addEventListener("touchstart",u),s.addEventListener("touchmove",h),()=>{s.removeEventListener("wheel",l),s.removeEventListener("touchstart",u),s.removeEventListener("touchmove",h)}},[]);let i=(0,zo.useCallback)(()=>{let s=o.current;if(!s)return;let a=s.getBoundingClientRect();s.style.maxHeight=`${window.innerHeight-a.top-12}px`},[]);return(0,zo.useEffect)(()=>{t(gS.allCountries.find(s=>s.iso2===r).dialCode)},[r,t]),g.createElement(tf,{value:r,onChange:n},({open:s})=>g.createElement(g.Fragment,null,g.createElement(tf.Label,{className:"sr-only block text-sm font-medium text-gray-700"},"Country Code"),g.createElement(tf.Button,{className:"relative z-20 flex flex-none items-center"},g.createElement(tS,{svg:!0,countryCode:r,style:{width:24,height:24,flexShrink:0,objectFit:"cover",borderRadius:"50%"}}),g.createElement("p",{className:"ml-2.5 mr-1 dark:text-white"},"+",e),g.createElement(EU,{className:"text-9eafc0 h-1.5 w-auto shrink-0 basis-4","aria-hidden":"true"})),g.createElement(eB,{show:s,as:zo.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",beforeEnter:i,unmount:!1},g.createElement(tf.Options,{ref:o,className:"dark:bg-29343f absolute inset-x-0 top-full z-10 mt-1.5 max-h-[var(--max-h,_0px)] w-full min-w-[calc(100vw_-_48px)] overflow-hidden rounded-2xl bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm md:max-h-96 md:min-w-[20rem]",unmount:!1},g.createElement("div",{className:"overflow-y-scroll px-2 py-1"},gS.allCountries.map(a=>g.createElement(tf.Option,{key:a.iso2,className:({selected:l,active:u})=>Yt("dark:text-white",l?"bg-0d151d dark:bg-white text-white dark:text-0d151d font-medium":u?"bg-0d151d/5 dark:bg-ece8fb/10":"text-gray-900 dark:text-white","relative flex items-center justify-between px-2 py-2 w-full rounded-xl text-sm focus:bg-gray-100 dark:focus:bg-ece8fb/25","focus:outline-none select-none"),value:a.iso2},({selected:l})=>g.createElement(g.Fragment,null,g.createElement("div",{className:"flex items-center"},g.createElement(tS,{svg:!0,countryCode:a.iso2,style:{width:24,height:24,flexShrink:0}}),g.createElement("p",{className:"mx-2 whitespace-pre-wrap"},a.name),l?g.createElement("span",{className:"text-white"},g.createElement($0,{className:"h-auto w-3","aria-hidden":"true"})):null),g.createElement("span",{className:Yt("font-medium",l?"text-white dark:text-0d151d":"text-0d151d dark:text-white")},"+",a.dialCode)))))))))},tB=Oae;var rs=ue(we(),1),Dae=({setPhoneNumber:e})=>({setFullPhone:e}),Iae=({disabled:e,onSubmit:t})=>{let{setFullPhone:r}=Bt(Dae),[n,o]=(0,rs.useState)("1"),[i,s]=(0,rs.useState)("");return(0,rs.useEffect)(()=>{let a=(0,rB.phone)(`+${n} ${i}`);if(!a.isValid){r("");return}r(a.phoneNumber)},[n,i,r]),g.createElement(rs.Fragment,null,g.createElement("label",{htmlFor:"phone-number",className:"sr-only block text-sm font-medium text-gray-700"},"Phone Number"),g.createElement("div",{className:"dark:bg-29343f focus-within:border-0d151d relative mt-1 flex rounded-2xl border-2 border-transparent bg-gray-100 py-2 px-3 shadow-sm transition-colors focus-within:bg-white dark:focus-within:border-white dark:focus-within:bg-transparent"},g.createElement("div",{className:"flex items-center"},g.createElement("label",{htmlFor:"country",className:"sr-only"},"Country"),g.createElement(tB,{value:n,onChange:o})),g.createElement("input",{type:"tel",id:"phone-number",name:"phone-number",value:i,placeholder:"Phone number",onChange:a=>s(a.target.value),className:"placeholder:text-9eafc0 block w-full rounded-md border-transparent bg-transparent pl-6 focus:border-transparent focus:ring-transparent dark:text-white sm:text-sm",disabled:e,onKeyDown:a=>a.key==="Enter"&&void(t==null?void 0:t())})))},nB=(0,rs.memo)(Iae);c();d();f();var Aae="https://developer.worldcoin.org/api/v1";async function Hv(e,t,r,n){let o=await sB("/phone/request",{phone_number:e,action_id:t,channel:r,ph_distinct_id:n});if(!o.ok)throw await o.json()}async function oB(e,t,r,n){let o=await sB("/phone/verify",{phone_number:e,code:t,action_id:r,ph_distinct_id:n});if(!o.ok)throw await o.json();return o.json()}function Kv(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"detail")}function iB(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")}var sB=(e,t)=>fetch(`${Aae}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});var Rae=({processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,setStage:o,methods:i,setProcessing:s,setErrorState:a,copy:l})=>({copy:l,processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,showAbout:i.length==1,hasWorldID:i.includes("orb"),useWorldID:()=>o("WORLD_ID"),onSubmit:async()=>{try{s(!0),a(null),await Hv(r,n,"sms",Dl()),Q6(),s(!1),o("ENTER_CODE")}catch(u){console.error(u),s(!1);let h;Kv(u)?(h=Object.values(D1).includes(u.code)&&u.detail||void 0,u.code!=="timeout"&&o("ERROR")):o("ERROR"),a({code:"PHONE_OTP_REQUEST_ERROR",message:h})}},onResetErrorState:()=>{a(null)}}),Nae=()=>{let{copy:e,phoneNumber:t,processing:r,showAbout:n,onSubmit:o,errorState:i,onResetErrorState:s,hasWorldID:a,useWorldID:l}=Bt(Rae);return g.createElement("div",{className:"-mt-6 space-y-6"},g.createElement(dI,{className:"absolute -mt-1 flex gap-4 rounded-md bg-[#fecaca] p-3 shadow-lg",open:!!i,onOpenChange:s,asChild:!0},g.createElement(Tt.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},transition:{duration:.3}},g.createElement(hI,{className:"text-xs font-medium text-red-600"},(i==null?void 0:i.message)||"Unable to send code. Please try again."),g.createElement(pI,{altText:"Close"},g.createElement(au,{className:"h-4 w-4"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},Wn(e,"heading")),g.createElement("p",{className:"text-70868f mt-3 text-center md:mt-2"},Wn(e,"subheading"))),g.createElement("div",{className:"mt-2 space-y-2"},g.createElement(nB,{disabled:r,onSubmit:o}),g.createElement("p",{className:"text-9eafc0 dark:text-9eafc0 text-center text-xs"},"We'll call or text to confirm your number. No data is stored.")),g.createElement("div",{className:"mt-4 flex justify-center"},g.createElement(Tt.button,{animate:{opacity:t?1:.4},type:"button",whileTap:{scale:t?.95:1},whileHover:{scale:t?1.05:1},transition:{layout:{duration:.15}},onClick:()=>void o(),layoutId:"phone-button",disabled:!t||r,className:Yt("flex w-full items-center justify-center px-8 py-4 border border-transparent font-medium rounded-xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500","disabled:cursor-not-allowed disabled:bg-d3dfea dark:disabled:bg-29343f")},g.createElement(Tt.span,{transition:{layout:{duration:.15}},layoutId:"phone-text"},"Continue"))),n&&g.createElement(Wc,null),a&&g.createElement("div",{className:"hidden space-y-3 md:block"},g.createElement("div",{className:"flex items-center justify-between space-x-6"},g.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"}),g.createElement("p",{className:"text-9eafc0 dark:text-596673 text-xs"},"or"),g.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"})),g.createElement("div",{className:"flex items-center justify-center"},g.createElement("button",{onClick:l,className:"flex items-center space-x-2"},g.createElement(zs,null),g.createElement("p",{className:"text-0d151d text-sm font-medium dark:text-white"},"Verify with World ID")))))},aB=Nae;c();d();f();var Yv=ue(we(),1);c();d();f();var Gv=ue(we(),1);c();d();f();var Ho=ue(we()),Et=ue(qb());function uB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cB(e,t,r){return t&&lB(e.prototype,t),r&&lB(e,r),e}function fB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yS(e,t)}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qv(e)}function yS(e,t){return yS=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},yS(e,t)}function kae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Lae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fae(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Lae(e)}function dB(e){var t=kae();return function(){var n=qv(e),o;if(t){var i=qv(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Fae(this,o)}}function $ae(e){return Uae(e)||Bae(e)||jae(e)||Vae()}function Uae(e){if(Array.isArray(e))return vS(e)}function Bae(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function jae(e,t){if(!!e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(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}function Vae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
90
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=String(e);if(t===0)return r;var n=r.match(/(.*?)([0-9]+)(.*)/),o=n?n[1]:"",i=n?n[3]:"",s=n?n[2]:r,a=s.length>=t?s:($ae(Array(t)).map(function(){return"0"}).join("")+s).slice(t*-1);return"".concat(o).concat(a).concat(i)}var hB={daysInHours:!1,zeroPadTime:2};function zae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.now,n=r===void 0?Date.now:r,o=t.precision,i=o===void 0?0:o,s=t.controlled,a=t.offsetTime,l=a===void 0?0:a,u=t.overtime,h;typeof e=="string"?h=new Date(e).getTime():e instanceof Date?h=e.getTime():h=e,s||(h+=l);var p=s?h:h-n(),y=Math.min(20,Math.max(0,i)),w=Math.round(parseFloat(((u?p:Math.max(0,p))/1e3).toFixed(y))*1e3),v=Math.abs(w)/1e3;return{total:w,days:Math.floor(v/(3600*24)),hours:Math.floor(v/3600%24),minutes:Math.floor(v/60%60),seconds:Math.floor(v%60),milliseconds:Number((v%1*1e3).toFixed()),completed:w<=0}}function Hae(e,t){var r=e.days,n=e.hours,o=e.minutes,i=e.seconds,s=Object.assign(Object.assign({},hB),t),a=s.daysInHours,l=s.zeroPadTime,u=s.zeroPadDays,h=u===void 0?l:u,p=Math.min(2,l),y=a?jh(n+r*24,l):jh(n,p);return{days:a?"":jh(r,h),hours:y,minutes:jh(o,p),seconds:jh(i,p)}}var pB=function(e){fB(r,e);var t=dB(r);function r(){var n;return uB(this,r),n=t.apply(this,arguments),n.state={count:n.props.count||3},n.startCountdown=function(){n.interval=window.setInterval(function(){var o=n.state.count-1;o===0?(n.stopCountdown(),n.props.onComplete&&n.props.onComplete()):n.setState(function(i){return{count:i.count-1}})},1e3)},n.stopCountdown=function(){clearInterval(n.interval)},n.addTime=function(o){n.stopCountdown(),n.setState(function(i){return{count:i.count+o}},n.startCountdown)},n}return cB(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,Ho.cloneElement)(this.props.children,{count:this.state.count}):null}}]),r}(Ho.Component);pB.propTypes={count:Et.number,children:Et.element,onComplete:Et.func};var wS=function(e){fB(r,e);var t=dB(r);function r(n){var o;if(uB(this,r),o=t.call(this,n),o.mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=(0,Ho.createRef)(),o.tick=function(){var s=o.calcTimeDelta(),a=s.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(s,void 0,a)},o.start=function(){if(!o.isStarted()){var s=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=s?o.calcOffsetStartTimestamp()-s:0;var a=o.calcTimeDelta();o.setTimeDeltaState(a,"STARTED",o.props.onStart),!o.props.controlled&&(!a.completed||o.props.overtime)&&(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},n.date){var i=o.calcTimeDelta();o.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return cB(r,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(o){this.legacyMode||this.props.date!==o.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var o=this.props,i=o.date,s=o.now,a=o.precision,l=o.controlled,u=o.overtime;return zae(i,{now:s,precision:a,controlled:l,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(o){this.legacyCountdownRef.current.addTime(o)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(o){return this.state.status===o}},{key:"setTimeDeltaState",value:function(o,i,s){var a=this;if(!!this.mounted){var l=o.completed&&!this.state.timeDelta.completed,u=o.completed&&i==="STARTED";l&&!this.props.overtime&&this.clearTimer();var h=function(){s&&s(a.state.timeDelta),a.props.onComplete&&(l||u)&&a.props.onComplete(o,u)};return this.setState(function(p){var y=i||p.status;return o.completed&&!a.props.overtime?y="COMPLETED":!i&&y==="COMPLETED"&&(y="STOPPED"),{timeDelta:o,status:y}},h)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var o=this.props,i=o.daysInHours,s=o.zeroPadTime,a=o.zeroPadDays,l=this.state.timeDelta;return Object.assign(Object.assign({},l),{api:this.getApi(),props:this.props,formatted:Hae(l,{daysInHours:i,zeroPadTime:s,zeroPadDays:a})})}},{key:"render",value:function(){if(this.legacyMode){var o=this.props,i=o.count,s=o.children,a=o.onComplete;return(0,Ho.createElement)(pB,{ref:this.legacyCountdownRef,count:i,onComplete:a},s)}var l=this.props,u=l.className,h=l.overtime,p=l.children,y=l.renderer,w=this.getRenderProps();if(y)return y(w);if(p&&this.state.timeDelta.completed&&!h)return(0,Ho.cloneElement)(p,{countdown:w});var v=w.formatted,S=v.days,I=v.hours,T=v.minutes,O=v.seconds;return(0,Ho.createElement)("span",{className:u},w.total<0?"-":"",S,S?":":"",I,":",T,":",O)}}]),r}(Ho.Component);wS.defaultProps=Object.assign(Object.assign({},hB),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});wS.propTypes={date:(0,Et.oneOfType)([(0,Et.instanceOf)(Date),Et.string,Et.number]),daysInHours:Et.bool,zeroPadTime:Et.number,zeroPadDays:Et.number,controlled:Et.bool,intervalDelay:Et.number,precision:Et.number,autoStart:Et.bool,overtime:Et.bool,className:Et.string,children:Et.element,renderer:Et.func,now:Et.func,onMount:Et.func,onStart:Et.func,onPause:Et.func,onStop:Et.func,onTick:Et.func,onComplete:Et.func};var mB=wS;var gB=59*1e3,Kae=({minutes:e,seconds:t,completed:r})=>{if(!r)return g.createElement("span",null,"in ",e,":",t<10?`0${t}`:t)},qae=()=>{let{phoneNumber:e,stringifiedActionId:t,setProcessing:r,setStage:n,setErrorState:o}=Bt(),[i,s]=(0,Gv.useState)(new Date().getTime()+gB),a=async l=>{s(new Date().getTime()+gB);try{r(!0),await Hv(e,t,l,Dl()),e5(l),r(!1)}catch(u){r(!1),s(void 0),Kv(u)&&u.code!=="server_error"?(o({code:"GENERIC_ERROR"}),console.error(u)):n("ERROR")}};return g.createElement(g.Fragment,null,g.createElement("button",{type:"button",disabled:!!i,className:"font-medium text-indigo-500 disabled:cursor-wait disabled:text-gray-900 dark:disabled:text-white",onClick:()=>void a("sms")},"Resend"," ",i&&g.createElement(mB,{onComplete:()=>s(void 0),date:i,renderer:Kae}))," ","or"," ",g.createElement("button",{type:"button",className:"font-medium text-indigo-500 disabled:cursor-wait disabled:text-gray-900 dark:disabled:text-white",disabled:!!i,onClick:()=>void a("call")},"Call me"))},yB=(0,Gv.memo)(qae);c();d();f();var wr=ue(we(),1),Wv=e=>new Array(6).fill("").map((t,r)=>e[r]||""),Gae=({code:e,setCode:t})=>({code:e,setCode:t}),Wae=({submitRef:e,disabled:t})=>{let{code:r,setCode:n}=Bt(Gae),o=(0,wr.useMemo)(()=>new Array(6).fill(null).map(()=>(0,wr.createRef)()),[]),[i,s]=(0,wr.useState)(Wv("")),[a,l]=(0,wr.useState)(-1);(0,wr.useEffect)(()=>{r||s(Wv(""))},[r]);let u=(0,wr.useCallback)(T=>{requestAnimationFrame(()=>{var O;(O=o[T].current)==null||O.select()})},[o]),h=(0,wr.useCallback)((T,O)=>{let M=[...i];M[O]=T,s(M);let L=M.join("");n(""),L.length===6&&n(L)},[n,i]),p=(0,wr.useCallback)(T=>{requestAnimationFrame(()=>{var O,M;(M=(O=o[T])==null?void 0:O.current)==null||M.focus()})},[o]),y=(0,wr.useCallback)(T=>{requestAnimationFrame(()=>{var O;(O=o[T].current)==null||O.blur()})},[o]),w=T=>{var O;!((O=o[T])!=null&&O.current)||(l(T),u(T))},v=(0,wr.useCallback)((T,O)=>{let M=T.target.value.replace(i[O],"");if(!/^\d/.test(M))return u(O);if(M.length>1)return s(Wv(T.target.value)),T.target.value.length!==6?void 0:(n(T.target.value),y(O));h(M,O),O===5?requestAnimationFrame(()=>{var L;(L=e.current)==null||L.focus()}):p(O+1)},[y,e,p,u,n,h,i]),S=(0,wr.useCallback)((T,O)=>{if(T.key==="Backspace"||T.key==="Delete")return T.preventDefault(),h("",a),p(O-1);if(T.key===i[O]){if(O===5)return y(O);p(O+1)}},[p,y,a,h,i]),I=(0,wr.useCallback)((T,O)=>{T.preventDefault();let L=T.clipboardData.getData("text").slice(0,6);if(!!/^\d/.test(L)){if(s(Wv(L)),L.length!==6)return p(L.length);n(L),y(O)}},[y,p,n]);return(0,wr.useEffect)(()=>{p(0)},[p,o]),g.createElement("fieldset",{className:"flex items-center justify-center space-x-3"},g.createElement("legend",{className:"sr-only"},"Enter your SMS code"),o.map((T,O)=>g.createElement("input",{ref:T,key:O,maxLength:1,type:"number",pattern:"[0-9]*",value:i[O],inputMode:"numeric",autoComplete:"one-time-code",autoFocus:O===0,onFocus:()=>w(O),onPaste:M=>I(M,O),onChange:M=>v(M,O),onKeyDown:M=>S(M,O),className:Yt("w-10 xs:w-12 aspect-[6/7] border-0 outline-0 rounded-xl text-center caret-transparent text-29343f dark:text-white","bg-gray-100 dark:bg-29343f focus:bg-transparent","ring ring-transparent focus:ring-5b52f3"),disabled:t})))},vB=(0,wr.memo)(Wae);var Yae=({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,setStage:o,setProcessing:i,setCode:s,copy:a,handleVerify:l,setErrorState:u,errorState:h})=>({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,errorState:h,setCode:s,setErrorState:u,copy:a,onSubmit:async()=>{try{u(null),i(!0);let p=await oB(t,r,n,Dl()),{nullifier_hash:y}=p,w=Pe(p,["nullifier_hash"]);l({signal_type:"phone",nullifier_hash:y,proof_payload:w})}catch(y){i(!1),s(""),iB(y)?(u({code:"INVALID_CODE"}),console.error(y)):o("ERROR")}},useWorldID:()=>o("WORLD_ID")}),Xae=()=>{let e=(0,Yv.useRef)(null),{phoneNumber:t,processing:r,code:n,onSubmit:o,useWorldID:i,errorState:s}=Bt(Yae),a=(0,Yv.useMemo)(()=>{if(!r&&s)return{x:[0,-16,16,-8,8,0]}},[r,s]);return g.createElement("div",{className:"space-y-6"},g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Enter your 6-digit code to complete the verification."),g.createElement("p",{className:"text-70868f mt-2 text-center"},"Code has been sent to ",g.createElement("span",{className:"font-medium"},t))),g.createElement("form",{className:"mt-2 space-y-2"},g.createElement(Tt.div,{animate:a,transition:{type:"spring",stiffness:30}},g.createElement(vB,{submitRef:e,disabled:r})),g.createElement("p",{className:"text-70868f text-center text-xs"},s?g.createElement("span",{className:"text-red-400"},"That code is invalid. Please try again."):"Did not receive a code?"," ",g.createElement(yB,null))),g.createElement("div",{className:"flex items-center justify-center space-x-1"},g.createElement("div",{className:"flex items-center space-x-2"},g.createElement(zs,null),g.createElement("p",{className:"text-70868f font-medium"},"I have World ID")),g.createElement("span",{className:"font-medium text-gray-400"},"\u2022"),g.createElement("button",{type:"button",onClick:i,className:"bg-gradient-to-r from-[#FF6848] to-[#4940E0] bg-clip-text font-medium text-transparent"},"Verify human")),g.createElement("div",{className:"mt-4 flex justify-center"},g.createElement(Tt.button,{layoutId:"phone-button",type:"button",whileTap:{scale:t?.95:1},whileHover:{scale:t?1.05:1},animate:{opacity:n?1:.4},transition:{layout:{duration:.15}},onClick:()=>void o(),disabled:!n||r,ref:e,className:Yt("flex w-full items-center justify-center px-8 py-4 border border-transparent font-medium rounded-xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-0d151d","disabled:cursor-not-allowed disabled:bg-d3dfea dark:disabled:bg-29343f")},g.createElement(Tt.span,{transition:{layout:{duration:.15}},layoutId:"phone-text"},"Continue"))))},wB=Xae;c();d();f();var Zae=e=>g.createElement("svg",ve(Q({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),bB=Zae;c();d();f();var Jae=({setStage:e,methods:t,copy:r})=>({copy:r,methods:t,setStage:e}),Qae=()=>{let{copy:e,setStage:t,methods:r}=Bt(Jae);return g.createElement("div",{className:"-mt-6 space-y-6"},g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},Wn(e,"heading")),g.createElement("p",{className:"text-70868f mt-3 text-center md:mt-2"},Wn(e,"subheading"))),g.createElement("div",{className:"space-y-3"},r.map((n,o)=>g.createElement(ele,{primary:o==0,key:n,method:n,setStage:t}))),r.includes("orb")&&g.createElement("div",{className:"mt-4 flex justify-center"},g.createElement("p",{className:"text-70868f text-sm"},"Don't have your World ID yet?"," ",g.createElement("a",{className:"text-4940e0 font-medium",target:"_blank",href:"https://worldcoin.org/download",rel:"noreferrer"},"Download Now"))),g.createElement(Wc,{className:"mt-8"}))},ele=({method:e,primary:t,setStage:r})=>g.createElement(Tt.button,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:e=="orb"?"worldid-button":"phone-button",onClick:()=>r(e=="orb"?"WORLD_ID":"ENTER_PHONE"),className:Yt("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm",t?"bg-0d151d dark:bg-white text-white dark:text-0d151d":"bg-d3dfea/30 dark:bg-29343f text-0d151d dark:text-white")},e=="orb"?g.createElement(zs,{className:"h-5 w-5 text-gray-400"}):g.createElement(wv,{className:"h-5 w-5 text-gray-400"}),g.createElement(Tt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:e=="orb"?"worldid-text":"phone-text"},e=="orb"?"Verify with World ID":"Verify with Phone Number")),_B=Qae;c();d();f();var xB=ue(we(),1);var tle=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"flex justify-center"},g.createElement(Bs,{className:"h-24 w-24"})),g.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),EB=(0,xB.memo)(tle);var nle=({copy:e,open:t,processing:r,onOpenChange:n,stage:o,setStage:i,theme:s,computed:a,setOptions:l})=>({copy:e,stage:o,theme:s,setStage:i,processing:r,setOptions:l,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(o),defaultStage:a.getDefaultStage()}),ole=({children:e,actionId:t,theme:r,methods:n,signal:o,walletConnectProjectId:i,handleVerify:s,onSuccess:a,autoClose:l,copy:u})=>{let{isOpen:h,onOpenChange:p,processing:y,stage:w,setStage:v,canGoBack:S,defaultStage:I,setOptions:T,copy:O,theme:M}=Bt(nle),L=su();(0,rf.useEffect)(()=>{T({actionId:t,signal:o,walletConnectProjectId:i,methods:n,onSuccess:a,handleVerify:s,autoClose:l,copy:u,theme:r},"props")},[t,o,i,n,a,r,s,l,u,T]);let G=(0,rf.useMemo)(()=>{switch(w){case"SELECT_METHOD":return _B;case"ENTER_PHONE":return aB;case"WORLD_ID":return S$;case"ENTER_CODE":return wB;case"SUCCESS":return wI;case"ERROR":return $D;case"ABOUT":return FD;case"PRIVACY":return vI;case"HOST_APP_VERIFICATION":return EB;default:throw new Error("Invalid IDKitStage.")}},[w]);return g.createElement(sU,{open:h,onOpenChange:p},e==null?void 0:e({open:()=>p(!0)}),g.createElement(aU,{forceMount:!0},g.createElement(rf.Fragment,null,g.createElement(Wu,null,h&&g.createElement(N8.div,{mode:"open",id:"idkit-widget"},g.createElement(k8,null),g.createElement("div",{id:"modal",className:Yt(M=="dark"&&"dark","fixed z-10 font-sans")},g.createElement(lU,{asChild:!0},g.createElement(Tt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),g.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},g.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},g.createElement(uU,{asChild:!0},g.createElement(Tt.div,{layout:L=="mobile"?"position":!0,exit:L=="mobile"?"initMob":"init",initial:L=="mobile"?"initMob":"init",animate:L=="mobile"?"animateMob":"animate",variants:{init:{opacity:0,scale:.9},initMob:{translateY:"100%"},animate:{opacity:1,scale:1},animateMob:{translateY:0}},transition:{layout:{duration:.15}},className:"dark:bg-0d151d relative z-50 w-full rounded-t-3xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-3xl"},g.createElement(cI,null,g.createElement(fI,{className:"flex justify-center"}),g.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},g.createElement("button",{onClick:()=>v(I),disabled:!S,className:Yt(!S&&"invisible pointer-events-none","dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white")},g.createElement(bB,{className:"w-4"})),g.createElement(cU,{className:"dark:text-d3dfea font-medium text-gray-900"},w!="ABOUT"&&Wn(O,"title")),g.createElement(fU,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},g.createElement(au,{className:"h-5 w-5"}))),g.createElement("div",{className:"relative"},g.createElement(Tt.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:y?"hidden":"visible"},transition:{layout:{duration:.15}}},g.createElement(G,null)),g.createElement(Wu,null,y&&g.createElement(Tt.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},g.createElement(Bs,{className:"h-24 w-24"})))),g.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-3xl"},g.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},g.createElement("span",null,"Verified with"),g.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},g.createElement(dU,{className:"text-0d151d h-4 dark:text-white"}))),w!="PRIVACY"?g.createElement("button",{onClick:()=>v("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):g.createElement("a",{target:"_blank",href:"https://id.worldcoin.org/privacy",className:"text-0d151d dark:text-9eafc0 text-sm",rel:"noreferrer"},"Learn More \u2192")))))))))))))},SB=ole;var TB=(0,CB.memo)(SB);var bS,nf=!1,ile=e=>{if(nf)throw new Error("IDKit is already initialized");if(!e.actionId)throw new Error("You must provide your Action ID");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(!nf){let r=document.createElement("div");document.body.appendChild(r),bS=(0,PB.createRoot)(r),bS.render(g.createElement(TB,Q({},e))),Z6(e.enableTelemetry),nf=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},sle=e=>{if(!nf)throw new Error("IDKit is not initialized");Bt.getState().setOptions(e,"props")},ale=()=>new Promise((e,t)=>{if(!nf)return t("IDKitWidget is not initialized");Bt.getState().addSuccessCallback(e,"manual"),Bt.setState({open:!0})}),lle=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),bS.unmount(),nf=!1,Bt.destroy()};return SS(ule);})();
|
|
91
|
-
/*!
|
|
92
|
-
* The buffer module from node.js, for the browser.
|
|
93
|
-
*
|
|
94
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
95
|
-
* @license MIT
|
|
96
|
-
*/
|
|
97
|
-
/*! *****************************************************************************
|
|
98
|
-
Copyright (c) Microsoft Corporation.
|
|
99
|
-
|
|
100
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
101
|
-
purpose with or without fee is hereby granted.
|
|
102
|
-
|
|
103
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
104
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
105
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
106
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
107
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
108
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
109
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
110
|
-
***************************************************************************** */
|
|
111
|
-
/**
|
|
112
|
-
* @license React
|
|
113
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
114
|
-
*
|
|
115
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the MIT license found in the
|
|
118
|
-
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/
|
|
120
|
-
/**
|
|
121
|
-
* @license React
|
|
122
|
-
* react-dom-server.browser.production.min.js
|
|
123
|
-
*
|
|
124
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the MIT license found in the
|
|
127
|
-
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
* @license React
|
|
131
|
-
* react-dom.production.min.js
|
|
132
|
-
*
|
|
133
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the MIT license found in the
|
|
136
|
-
* LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/
|
|
138
|
-
/**
|
|
139
|
-
* @license React
|
|
140
|
-
* react.production.min.js
|
|
141
|
-
*
|
|
142
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the MIT license found in the
|
|
145
|
-
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/
|
|
147
|
-
/**
|
|
148
|
-
* @license React
|
|
149
|
-
* scheduler.production.min.js
|
|
150
|
-
*
|
|
151
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the MIT license found in the
|
|
154
|
-
* LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/
|
|
156
|
-
/**
|
|
157
|
-
* @license React
|
|
158
|
-
* use-sync-external-store-shim.production.min.js
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the MIT license found in the
|
|
163
|
-
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/
|
|
165
|
-
/**
|
|
166
|
-
* @license React
|
|
167
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
168
|
-
*
|
|
169
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the MIT license found in the
|
|
172
|
-
* LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/
|
|
174
|
-
/**
|
|
175
|
-
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
176
|
-
*
|
|
177
|
-
* @version 0.8.0
|
|
178
|
-
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
179
|
-
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
180
|
-
* @license MIT
|
|
181
|
-
*/
|