@worldcoin/idkit 0.3.0-alpha.2 → 0.3.0-alpha.4

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.
Files changed (50) hide show
  1. package/build/components/Button.d.ts +3 -0
  2. package/build/components/CountryCodeSelect.d.ts +6 -0
  3. package/build/components/Frame.d.ts +4 -0
  4. package/build/components/IDKitWidget/BaseWidget.d.ts +4 -0
  5. package/build/components/IDKitWidget/States/AboutState.d.ts +2 -0
  6. package/build/components/IDKitWidget/States/EnterPhoneState.d.ts +2 -0
  7. package/build/components/IDKitWidget/States/ErrorState.d.ts +4 -0
  8. package/build/components/IDKitWidget/States/HostAppVerificationState.d.ts +7 -0
  9. package/build/components/IDKitWidget/States/PrivacyState.d.ts +2 -0
  10. package/build/components/IDKitWidget/States/SuccessState.d.ts +2 -0
  11. package/build/components/IDKitWidget/States/VerifyCodeState.d.ts +2 -0
  12. package/build/components/IDKitWidget/States/WorldID/LoadingState.d.ts +2 -0
  13. package/build/components/IDKitWidget/States/WorldID/QRState.d.ts +9 -0
  14. package/build/components/IDKitWidget/States/WorldIDState.d.ts +2 -0
  15. package/build/components/IDKitWidget/index.d.ts +3 -0
  16. package/build/components/Icons/ArrowLongLeftIcon.d.ts +3 -0
  17. package/build/components/Icons/CheckIcon.d.ts +3 -0
  18. package/build/components/Icons/ChevronDownIcon.d.ts +3 -0
  19. package/build/components/Icons/DevicePhoneMobileIcon.d.ts +3 -0
  20. package/build/components/Icons/LoadingIcon.d.ts +4 -0
  21. package/build/components/Icons/QuestionMarkIcon.d.ts +4 -0
  22. package/build/components/Icons/WorldIDQR.d.ts +4 -0
  23. package/build/components/Icons/WorldIDWordmark.d.ts +4 -0
  24. package/build/components/Icons/WorldcoinLogomark.d.ts +5 -0
  25. package/build/components/Icons/XMarkIcon.d.ts +3 -0
  26. package/build/components/PhoneInput.d.ts +6 -0
  27. package/build/components/QRCode.d.ts +6 -0
  28. package/build/components/ResendButton.d.ts +3 -0
  29. package/build/components/SMSCodeInput.d.ts +6 -0
  30. package/build/components/WorldIDIcon.d.ts +7 -0
  31. package/build/hooks/useIDKit.d.ts +6 -0
  32. package/build/hooks/useMedia.d.ts +2 -0
  33. package/build/idkit-js.js +181 -0
  34. package/build/index.css +2 -1829
  35. package/build/index.d.ts +6 -0
  36. package/build/index.js +9 -0
  37. package/build/index.js.map +7 -0
  38. package/build/lib/hashing.d.ts +37 -0
  39. package/build/lib/qr.d.ts +4 -0
  40. package/build/lib/telemetry.d.ts +6 -0
  41. package/build/lib/utils.d.ts +2 -0
  42. package/build/services/phone.d.ts +18 -0
  43. package/build/services/walletconnect.d.ts +15 -0
  44. package/build/store/idkit.d.ts +34 -0
  45. package/build/tsconfig.tsbuildinfo +1 -0
  46. package/build/types/config.d.ts +34 -0
  47. package/build/types/index.d.ts +52 -0
  48. package/build/types/orb.d.ts +21 -0
  49. package/build/vanilla.d.ts +12 -0
  50. package/package.json +1 -1
@@ -0,0 +1,181 @@
1
+ var IDKit=(()=>{var T$=Object.create;var qc=Object.defineProperty,P$=Object.defineProperties,O$=Object.getOwnPropertyDescriptor,D$=Object.getOwnPropertyDescriptors,I$=Object.getOwnPropertyNames,xh=Object.getOwnPropertySymbols,A$=Object.getPrototypeOf,Gy=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable;var Q4=(e,t,r)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,te=(e,t)=>{for(var r in t||(t={}))Gy.call(t,r)&&Q4(e,r,t[r]);if(xh)for(var r of xh(t))e3.call(t,r)&&Q4(e,r,t[r]);return e},Se=(e,t)=>P$(e,D$(t));var t3=(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 Te=(e,t)=>{var r={};for(var n in e)Gy.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xh)for(var n of xh(e))t.indexOf(n)<0&&e3.call(e,n)&&(r[n]=e[n]);return r};var mu=(e,t)=>()=>(e&&(t=e(e=0)),t);var _e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vr=(e,t)=>{for(var r in t)qc(e,r,{get:t[r],enumerable:!0})},Eh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of I$(t))!Gy.call(e,o)&&o!==r&&qc(e,o,{get:()=>t[o],enumerable:!(n=O$(t,o))||n.enumerable});return e},gr=(e,t,r)=>(Eh(e,t,"default"),r&&Eh(r,t,"default")),ce=(e,t,r)=>(r=e!=null?T$(A$(e)):{},Eh(t||!e||!e.__esModule?qc(r,"default",{value:e,enumerable:!0}):r,e)),r3=e=>Eh(qc({},"__esModule",{value:!0}),e);var N$,P,c=mu(()=>{N$="production",P={MODE:N$}});function a3(){Yy=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)$o[t]=e[t],Jn[e.charCodeAt(t)]=t;Jn["-".charCodeAt(0)]=62,Jn["_".charCodeAt(0)]=63}function k$(e){Yy||a3();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 R$(a*3/4-i),n=i>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Jn[e.charCodeAt(t)]<<18|Jn[e.charCodeAt(t+1)]<<12|Jn[e.charCodeAt(t+2)]<<6|Jn[e.charCodeAt(t+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=o&255;return i===2?(o=Jn[e.charCodeAt(t)]<<2|Jn[e.charCodeAt(t+1)]>>4,s[u++]=o&255):i===1&&(o=Jn[e.charCodeAt(t)]<<10|Jn[e.charCodeAt(t+1)]<<4|Jn[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=o&255),s}function L$(e){return $o[e>>18&63]+$o[e>>12&63]+$o[e>>6&63]+$o[e&63]}function F$(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(L$(n));return o.join("")}function o3(e){Yy||a3();for(var t,r=e.length,n=r%3,o="",i=[],s=16383,a=0,u=r-n;a<u;a+=s)i.push(F$(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],o+=$o[t>>2],o+=$o[t<<4&63],o+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],o+=$o[t>>10],o+=$o[t>>4&63],o+=$o[t<<2&63],o+="="),i.push(o),i.join("")}function Sh(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ci(e,t){if(Sh()<t)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=x.prototype):(e===null&&(e=new x(t)),e.length=t),e}function x(e,t,r){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Xy(this,e)}return u3(this,e,t,r)}function u3(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?B$(e,t,r,n):typeof t=="string"?$$(e,t,r):V$(e,t)}function l3(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 U$(e,t,r,n){return l3(t),t<=0?ci(e,t):r!==void 0?typeof n=="string"?ci(e,t).fill(r,n):ci(e,t).fill(r):ci(e,t)}function Xy(e,t){if(l3(t),e=ci(e,t<0?0:Jy(t)|0),!x.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function $$(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!x.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=c3(t,r)|0;e=ci(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function Wy(e,t){var r=t.length<0?0:Jy(t.length)|0;e=ci(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function B$(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),x.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=x.prototype):e=Wy(e,t),e}function V$(e,t){if(Bo(t)){var r=Jy(t.length)|0;return e=ci(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||sB(t.length)?ci(e,0):Wy(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Wy(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Jy(e){if(e>=Sh())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sh().toString(16)+" bytes");return e|0}function Bo(e){return!!(e!=null&&e._isBuffer)}function c3(e,t){if(Bo(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 Ch(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return y3(e).length;default:if(n)return Ch(e).length;t=(""+t).toLowerCase(),n=!0}}function j$(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 J$(this,t,r);case"utf8":case"utf-8":return h3(this,t,r);case"ascii":return Y$(this,t,r);case"latin1":case"binary":return X$(this,t,r);case"base64":return G$(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q$(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Qs(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function f3(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=x.from(t,n)),Bo(t))return t.length===0?-1:i3(e,t,r,n,o);if(typeof t=="number")return t=t&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):i3(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function i3(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 u(b,v){return i===1?b[v]:b.readUInt16BE(v*i)}var l;if(o){var p=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*i}else p!==-1&&(l-=l-p),p=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var h=!0,y=0;y<a;y++)if(u(e,l+y)!==u(t,y)){h=!1;break}if(h)return l}return-1}function z$(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 H$(e,t,r,n){return Ph(Ch(t,e.length-r),e,r,n)}function d3(e,t,r,n){return Ph(oB(t),e,r,n)}function q$(e,t,r,n){return d3(e,t,r,n)}function K$(e,t,r,n){return Ph(y3(t),e,r,n)}function Z$(e,t,r,n){return Ph(iB(t,e.length-r),e,r,n)}function G$(e,t,r){return t===0&&r===e.length?o3(e):o3(e.slice(t,r))}function h3(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 u,l,p,h;switch(a){case 1:i<128&&(s=i);break;case 2:u=e[o+1],(u&192)===128&&(h=(i&31)<<6|u&63,h>127&&(s=h));break;case 3:u=e[o+1],l=e[o+2],(u&192)===128&&(l&192)===128&&(h=(i&15)<<12|(u&63)<<6|l&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=e[o+1],l=e[o+2],p=e[o+3],(u&192)===128&&(l&192)===128&&(p&192)===128&&(h=(i&15)<<18|(u&63)<<12|(l&63)<<6|p&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return W$(n)}function W$(e){var t=e.length;if(t<=s3)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=s3));return r}function Y$(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 X$(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 J$(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+=nB(e[i]);return o}function Q$(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 Cr(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 wn(e,t,r,n,o,i){if(!Bo(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 Mh(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 Th(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 p3(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 m3(e,t,r,n,o){return o||p3(e,t,r,4,34028234663852886e22,-34028234663852886e22),w3(e,t,r,n,23,4),r+4}function g3(e,t,r,n,o){return o||p3(e,t,r,8,17976931348623157e292,-17976931348623157e292),w3(e,t,r,n,52,8),r+8}function tB(e){if(e=rB(e).replace(eB,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rB(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function nB(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ch(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 oB(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function iB(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 y3(e){return k$(tB(e))}function Ph(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 sB(e){return e!==e}function aB(e){return e!=null&&(!!e._isBuffer||v3(e)||uB(e))}function v3(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function uB(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&v3(e.slice(0,0))}function Oh(e,t,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,l=u>>1,p=-7,h=r?o-1:0,y=r?-1:1,b=e[t+h];for(h+=y,i=b&(1<<-p)-1,b>>=-p,p+=a;p>0;i=i*256+e[t+h],h+=y,p-=8);for(s=i&(1<<-p)-1,i>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=y,p-=8);if(i===0)i=1-l;else{if(i===u)return s?NaN:(b?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-l}return(b?-1:1)*s*Math.pow(2,i-n)}function w3(e,t,r,n,o,i){var s,a,u,l=i*8-o-1,p=(1<<l)-1,h=p>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,v=n?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=y/u:t+=y*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=p?(a=0,s=p):s+h>=1?(a=(t*u-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[r+b]=a&255,b+=v,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[r+b]=s&255,b+=v,s/=256,l-=8);e[r+b-v]|=C*128}var $o,Jn,R$,Yy,s3,eB,b3=mu(()=>{c();d();f();$o=[],Jn=[],R$=typeof Uint8Array<"u"?Uint8Array:Array,Yy=!1;x.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;x.poolSize=8192;x._augment=function(e){return e.__proto__=x.prototype,e};x.from=function(e,t,r){return u3(null,e,t,r)};x.kMaxLength=Sh();x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&x[Symbol.species]);x.alloc=function(e,t,r){return U$(null,e,t,r)};x.allocUnsafe=function(e){return Xy(null,e)};x.allocUnsafeSlow=function(e){return Xy(null,e)};x.isBuffer=aB;x.compare=function(t,r){if(!Bo(t)||!Bo(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};x.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return x.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var o=x.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!Bo(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o};x.byteLength=c3;x.prototype._isBuffer=!0;x.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)Qs(this,r,r+1);return this};x.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)Qs(this,r,r+3),Qs(this,r+1,r+2);return this};x.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)Qs(this,r,r+7),Qs(this,r+1,r+6),Qs(this,r+2,r+5),Qs(this,r+3,r+4);return this};x.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?h3(this,0,t):j$.apply(this,arguments)};x.prototype.equals=function(t){if(!Bo(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:x.compare(this,t)===0};x.prototype.compare=function(t,r,n,o,i){if(!Bo(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,u=Math.min(s,a),l=this.slice(o,i),p=t.slice(r,n),h=0;h<u;++h)if(l[h]!==p[h]){s=l[h],a=p[h];break}return s<a?-1:a<s?1:0};x.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};x.prototype.indexOf=function(t,r,n){return f3(this,t,r,n,!0)};x.prototype.lastIndexOf=function(t,r,n){return f3(this,t,r,n,!1)};x.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 z$(this,t,r,n);case"utf8":case"utf-8":return H$(this,t,r,n);case"ascii":return d3(this,t,r,n);case"latin1":case"binary":return q$(this,t,r,n);case"base64":return K$(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z$(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};s3=4096;x.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var o;if(x.TYPED_ARRAY_SUPPORT)o=this.subarray(t,r),o.__proto__=x.prototype;else{var i=r-t;o=new x(i,void 0);for(var s=0;s<i;++s)o[s]=this[s+t]}return o};x.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Cr(t,r,this.length);for(var o=this[t],i=1,s=0;++s<r&&(i*=256);)o+=this[t+s]*i;return o};x.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Cr(t,r,this.length);for(var o=this[t+--r],i=1;r>0&&(i*=256);)o+=this[t+--r]*i;return o};x.prototype.readUInt8=function(t,r){return r||Cr(t,1,this.length),this[t]};x.prototype.readUInt16LE=function(t,r){return r||Cr(t,2,this.length),this[t]|this[t+1]<<8};x.prototype.readUInt16BE=function(t,r){return r||Cr(t,2,this.length),this[t]<<8|this[t+1]};x.prototype.readUInt32LE=function(t,r){return r||Cr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};x.prototype.readUInt32BE=function(t,r){return r||Cr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};x.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Cr(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};x.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Cr(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};x.prototype.readInt8=function(t,r){return r||Cr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};x.prototype.readInt16LE=function(t,r){r||Cr(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(t,r){r||Cr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(t,r){return r||Cr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};x.prototype.readInt32BE=function(t,r){return r||Cr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};x.prototype.readFloatLE=function(t,r){return r||Cr(t,4,this.length),Oh(this,t,!0,23,4)};x.prototype.readFloatBE=function(t,r){return r||Cr(t,4,this.length),Oh(this,t,!1,23,4)};x.prototype.readDoubleLE=function(t,r){return r||Cr(t,8,this.length),Oh(this,t,!0,52,8)};x.prototype.readDoubleBE=function(t,r){return r||Cr(t,8,this.length),Oh(this,t,!1,52,8)};x.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;wn(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};x.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;wn(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};x.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,1,255,0),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};x.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mh(this,t,r,!0),r+2};x.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mh(this,t,r,!1),r+2};x.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Th(this,t,r,!0),r+4};x.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Th(this,t,r,!1),r+4};x.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);wn(this,t,r,n,i-1,-i)}var s=0,a=1,u=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);wn(this,t,r,n,i-1,-i)}var s=n-1,a=1,u=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,1,127,-128),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};x.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Mh(this,t,r,!0),r+2};x.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Mh(this,t,r,!1),r+2};x.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Th(this,t,r,!0),r+4};x.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||wn(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Th(this,t,r,!1),r+4};x.prototype.writeFloatLE=function(t,r,n){return m3(this,t,r,!0,n)};x.prototype.writeFloatBE=function(t,r,n){return m3(this,t,r,!1,n)};x.prototype.writeDoubleLE=function(t,r,n){return g3(this,t,r,!0,n)};x.prototype.writeDoubleBE=function(t,r,n){return g3(this,t,r,!1,n)};x.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||!x.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};x.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"&&!x.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=Bo(t)?t:Ch(new x(t,o).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};eB=/[^+\/0-9A-Za-z-_]/g});var f=mu(()=>{b3()});var I3=_e(ft=>{"use strict";c();d();f();var Kc=Symbol.for("react.element"),lB=Symbol.for("react.portal"),cB=Symbol.for("react.fragment"),fB=Symbol.for("react.strict_mode"),dB=Symbol.for("react.profiler"),hB=Symbol.for("react.provider"),pB=Symbol.for("react.context"),mB=Symbol.for("react.forward_ref"),gB=Symbol.for("react.suspense"),yB=Symbol.for("react.memo"),vB=Symbol.for("react.lazy"),_3=Symbol.iterator;function wB(e){return e===null||typeof e!="object"?null:(e=_3&&e[_3]||e["@@iterator"],typeof e=="function"?e:null)}var S3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C3=Object.assign,M3={};function gu(e,t,r){this.props=e,this.context=t,this.refs=M3,this.updater=r||S3}gu.prototype.isReactComponent={};gu.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")};gu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function T3(){}T3.prototype=gu.prototype;function ev(e,t,r){this.props=e,this.context=t,this.refs=M3,this.updater=r||S3}var tv=ev.prototype=new T3;tv.constructor=ev;C3(tv,gu.prototype);tv.isPureReactComponent=!0;var x3=Array.isArray,P3=Object.prototype.hasOwnProperty,rv={current:null},O3={key:!0,ref:!0,__self:!0,__source:!0};function D3(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)P3.call(t,n)&&!O3.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:Kc,type:e,key:i,ref:s,props:o,_owner:rv.current}}function bB(e,t){return{$$typeof:Kc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kc}function _B(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var E3=/\/+/g;function Qy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_B(""+e.key):t.toString(36)}function Ih(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 Kc:case lB:s=!0}}if(s)return s=e,o=o(s),e=n===""?"."+Qy(s,0):n,x3(o)?(r="",e!=null&&(r=e.replace(E3,"$&/")+"/"),Ih(o,t,r,"",function(l){return l})):o!=null&&(nv(o)&&(o=bB(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(E3,"$&/")+"/")+e)),t.push(o)),1;if(s=0,n=n===""?".":n+":",x3(e))for(var a=0;a<e.length;a++){i=e[a];var u=n+Qy(i,a);s+=Ih(i,t,r,u,o)}else if(u=wB(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=n+Qy(i,a++),s+=Ih(i,t,r,u,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 Dh(e,t,r){if(e==null)return e;var n=[],o=0;return Ih(e,n,"","",function(i){return t.call(r,i,o++)}),n}function xB(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 nn={current:null},Ah={transition:null},EB={ReactCurrentDispatcher:nn,ReactCurrentBatchConfig:Ah,ReactCurrentOwner:rv};ft.Children={map:Dh,forEach:function(e,t,r){Dh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Dh(e,function(){t++}),t},toArray:function(e){return Dh(e,function(t){return t})||[]},only:function(e){if(!nv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ft.Component=gu;ft.Fragment=cB;ft.Profiler=dB;ft.PureComponent=ev;ft.StrictMode=fB;ft.Suspense=gB;ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EB;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=C3({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=rv.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)P3.call(t,u)&&!O3.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:Kc,type:e.type,key:o,ref:i,props:n,_owner:s}};ft.createContext=function(e){return e={$$typeof:pB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hB,_context:e},e.Consumer=e};ft.createElement=D3;ft.createFactory=function(e){var t=D3.bind(null,e);return t.type=e,t};ft.createRef=function(){return{current:null}};ft.forwardRef=function(e){return{$$typeof:mB,render:e}};ft.isValidElement=nv;ft.lazy=function(e){return{$$typeof:vB,_payload:{_status:-1,_result:e},_init:xB}};ft.memo=function(e,t){return{$$typeof:yB,type:e,compare:t===void 0?null:t}};ft.startTransition=function(e){var t=Ah.transition;Ah.transition={};try{e()}finally{Ah.transition=t}};ft.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ft.useCallback=function(e,t){return nn.current.useCallback(e,t)};ft.useContext=function(e){return nn.current.useContext(e)};ft.useDebugValue=function(){};ft.useDeferredValue=function(e){return nn.current.useDeferredValue(e)};ft.useEffect=function(e,t){return nn.current.useEffect(e,t)};ft.useId=function(){return nn.current.useId()};ft.useImperativeHandle=function(e,t,r){return nn.current.useImperativeHandle(e,t,r)};ft.useInsertionEffect=function(e,t){return nn.current.useInsertionEffect(e,t)};ft.useLayoutEffect=function(e,t){return nn.current.useLayoutEffect(e,t)};ft.useMemo=function(e,t){return nn.current.useMemo(e,t)};ft.useReducer=function(e,t,r){return nn.current.useReducer(e,t,r)};ft.useRef=function(e){return nn.current.useRef(e)};ft.useState=function(e){return nn.current.useState(e)};ft.useSyncExternalStore=function(e,t,r){return nn.current.useSyncExternalStore(e,t,r)};ft.useTransition=function(){return nn.current.useTransition()};ft.version="18.2.0"});var ve=_e((zse,A3)=>{"use strict";c();d();f();A3.exports=I3()});var m,d=mu(()=>{m=ce(ve(),1)});var L3=_e(k3=>{"use strict";c();d();f();var yu=ve();function SB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var CB=typeof Object.is=="function"?Object.is:SB,MB=yu.useState,TB=yu.useEffect,PB=yu.useLayoutEffect,OB=yu.useDebugValue;function DB(e,t){var r=t(),n=MB({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return PB(function(){o.value=r,o.getSnapshot=t,ov(o)&&i({inst:o})},[e,r,t]),TB(function(){return ov(o)&&i({inst:o}),e(function(){ov(o)&&i({inst:o})})},[e]),OB(r),r}function ov(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!CB(e,r)}catch(n){return!0}}function IB(e,t){return t()}var AB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IB:DB;k3.useSyncExternalStore=yu.useSyncExternalStore!==void 0?yu.useSyncExternalStore:AB});var U3=_e((Zse,F3)=>{"use strict";c();d();f();F3.exports=L3()});var B3=_e($3=>{"use strict";c();d();f();var Nh=ve(),NB=U3();function RB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kB=typeof Object.is=="function"?Object.is:RB,LB=NB.useSyncExternalStore,FB=Nh.useRef,UB=Nh.useEffect,$B=Nh.useMemo,BB=Nh.useDebugValue;$3.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=FB(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=$B(function(){function u(b){if(!l){if(l=!0,p=b,b=n(b),o!==void 0&&s.hasValue){var v=s.value;if(o(v,b))return h=v}return h=b}if(v=h,kB(p,b))return v;var C=n(b);return o!==void 0&&o(v,C)?v:(p=b,h=C)}var l=!1,p,h,y=r===void 0?null:r;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,r,n,o]);var a=LB(e,i[0],i[1]);return UB(function(){s.hasValue=!0,s.value=a},[a]),BB(a),a}});var j3=_e((Wse,V3)=>{"use strict";c();d();f();V3.exports=B3()});var K3=_e((Qse,kh)=>{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 kh=="object"&&kh.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],b=[6,1536,393216,100663296],v=[0,8,16,24],C=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],N=[224,256,384,512],M=[128,256],T=["hex","buffer","arrayBuffer","array","digest"],I={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(O){return typeof O=="object"&&O.buffer&&O.buffer.constructor===ArrayBuffer});for(var U=function(O,Y,ne){return function(ae){return new _(O,Y,O).update(ae)[ne]()}},K=function(O,Y,ne){return function(ae,he){return new _(O,Y,he).update(ae)[ne]()}},J=function(O,Y,ne){return function(ae,he,X,Q){return g["cshake"+O].update(ae,he,X,Q)[ne]()}},j=function(O,Y,ne){return function(ae,he,X,Q){return g["kmac"+O].update(ae,he,X,Q)[ne]()}},Z=function(O,Y,ne,ae){for(var he=0;he<T.length;++he){var X=T[he];O[X]=Y(ne,ae,X)}return O},le=function(O,Y){var ne=U(O,Y,"hex");return ne.create=function(){return new _(O,Y,O)},ne.update=function(ae){return ne.create().update(ae)},Z(ne,U,O,Y)},me=function(O,Y){var ne=K(O,Y,"hex");return ne.create=function(ae){return new _(O,Y,ae)},ne.update=function(ae,he){return ne.create(he).update(ae)},Z(ne,K,O,Y)},fe=function(O,Y){var ne=I[O],ae=J(O,Y,"hex");return ae.create=function(he,X,Q){return!X&&!Q?g["shake"+O].create(he):new _(O,Y,he).bytepad([X,Q],ne)},ae.update=function(he,X,Q,G){return ae.create(X,Q,G).update(he)},Z(ae,J,O,Y)},W=function(O,Y){var ne=I[O],ae=j(O,Y,"hex");return ae.create=function(he,X,Q){return new V(O,Y,X).bytepad(["KMAC",Q],ne).bytepad([he],ne)},ae.update=function(he,X,Q,G){return ae.create(he,Q,G).update(X)},Z(ae,j,O,Y)},A=[{name:"keccak",padding:y,bits:N,createMethod:le},{name:"sha3",padding:b,bits:N,createMethod:le},{name:"shake",padding:p,bits:M,createMethod:me},{name:"cshake",padding:h,bits:M,createMethod:fe},{name:"kmac",padding:h,bits:M,createMethod:W}],g={},w=[],E=0;E<A.length;++E)for(var D=A[E],k=D.bits,B=0;B<k.length;++B){var q=D.name+"_"+k[B];if(w.push(q),g[q]=D.createMethod(k[B],D.padding),D.name!=="sha3"){var $=D.name+k[B];w.push($),g[$]=g[q]}}function _(O,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-(O<<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}_.prototype.update=function(O){if(this.finalized)throw new Error(t);var Y,ne=typeof O;if(ne!=="string"){if(ne==="object"){if(O===null)throw new Error(e);if(u&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!Array.isArray(O)&&(!u||!ArrayBuffer.isView(O)))throw new Error(e)}else throw new Error(e);Y=!0}for(var ae=this.blocks,he=this.byteCount,X=O.length,Q=this.blockCount,G=0,ue=this.s,re,ge;G<X;){if(this.reset)for(this.reset=!1,ae[0]=this.block,re=1;re<Q+1;++re)ae[re]=0;if(Y)for(re=this.start;G<X&&re<he;++G)ae[re>>2]|=O[G]<<v[re++&3];else for(re=this.start;G<X&&re<he;++G)ge=O.charCodeAt(G),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|O.charCodeAt(++G)&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[Q],re=0;re<Q;++re)ue[re]^=ae[re];ie(ue),this.reset=!0}else this.start=re}return this},_.prototype.encode=function(O,Y){var ne=O&255,ae=1,he=[ne];for(O=O>>8,ne=O&255;ne>0;)he.unshift(ne),O=O>>8,ne=O&255,++ae;return Y?he.push(ae):he.unshift(ae),this.update(he),he.length},_.prototype.encodeString=function(O){var Y,ne=typeof O;if(ne!=="string"){if(ne==="object"){if(O===null)throw new Error(e);if(u&&O.constructor===ArrayBuffer)O=new Uint8Array(O);else if(!Array.isArray(O)&&(!u||!ArrayBuffer.isView(O)))throw new Error(e)}else throw new Error(e);Y=!0}var ae=0,he=O.length;if(Y)ae=he;else for(var X=0;X<O.length;++X){var Q=O.charCodeAt(X);Q<128?ae+=1:Q<2048?ae+=2:Q<55296||Q>=57344?ae+=3:(Q=65536+((Q&1023)<<10|O.charCodeAt(++X)&1023),ae+=4)}return ae+=this.encode(ae*8),this.update(O),ae},_.prototype.bytepad=function(O,Y){for(var ne=this.encode(Y),ae=0;ae<O.length;++ae)ne+=this.encodeString(O[ae]);var he=Y-ne%Y,X=[];return X.length=he,this.update(X),this},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var O=this.blocks,Y=this.lastByteIndex,ne=this.blockCount,ae=this.s;if(O[Y>>2]|=this.padding[Y&3],this.lastByteIndex===this.byteCount)for(O[0]=O[ne],Y=1;Y<ne+1;++Y)O[Y]=0;for(O[ne-1]|=2147483648,Y=0;Y<ne;++Y)ae[Y]^=O[Y];ie(ae)}},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var O=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,X=0,Q="",G;X<ne;){for(he=0;he<O&&X<ne;++he,++X)G=Y[he],Q+=l[G>>4&15]+l[G&15]+l[G>>12&15]+l[G>>8&15]+l[G>>20&15]+l[G>>16&15]+l[G>>28&15]+l[G>>24&15];X%O===0&&(ie(Y),he=0)}return ae&&(G=Y[he],Q+=l[G>>4&15]+l[G&15],ae>1&&(Q+=l[G>>12&15]+l[G>>8&15]),ae>2&&(Q+=l[G>>20&15]+l[G>>16&15])),Q},_.prototype.arrayBuffer=function(){this.finalize();var O=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,X=0,Q=this.outputBits>>3,G;ae?G=new ArrayBuffer(ne+1<<2):G=new ArrayBuffer(Q);for(var ue=new Uint32Array(G);X<ne;){for(he=0;he<O&&X<ne;++he,++X)ue[X]=Y[he];X%O===0&&ie(Y)}return ae&&(ue[he]=Y[he],G=G.slice(0,Q)),G},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var O=this.blockCount,Y=this.s,ne=this.outputBlocks,ae=this.extraBytes,he=0,X=0,Q=[],G,ue;X<ne;){for(he=0;he<O&&X<ne;++he,++X)G=X<<2,ue=Y[he],Q[G]=ue&255,Q[G+1]=ue>>8&255,Q[G+2]=ue>>16&255,Q[G+3]=ue>>24&255;X%O===0&&ie(Y)}return ae&&(G=X<<2,ue=Y[he],Q[G]=ue&255,ae>1&&(Q[G+1]=ue>>8&255),ae>2&&(Q[G+2]=ue>>16&255)),Q};function V(O,Y,ne){_.call(this,O,Y,ne)}V.prototype=new _,V.prototype.finalize=function(){return this.encode(this.outputBits,!0),_.prototype.finalize.call(this)};var ie=function(O){var Y,ne,ae,he,X,Q,G,ue,re,ge,Ge,Ne,Ue,st,ee,S,F,R,L,z,H,oe,se,pe,de,we,ye,Ee,Le,ze,Re,je,Pe,Ce,xe,Be,Me,xt,qe,et,Oe,Ye,mt,lr,St,Qe,tn,ct,Ct,wo,nt,Ke,Zt,Ze,at,rn,ut,gt,rs,ns,os,is,ss;for(ae=0;ae<48;ae+=2)he=O[0]^O[10]^O[20]^O[30]^O[40],X=O[1]^O[11]^O[21]^O[31]^O[41],Q=O[2]^O[12]^O[22]^O[32]^O[42],G=O[3]^O[13]^O[23]^O[33]^O[43],ue=O[4]^O[14]^O[24]^O[34]^O[44],re=O[5]^O[15]^O[25]^O[35]^O[45],ge=O[6]^O[16]^O[26]^O[36]^O[46],Ge=O[7]^O[17]^O[27]^O[37]^O[47],Ne=O[8]^O[18]^O[28]^O[38]^O[48],Ue=O[9]^O[19]^O[29]^O[39]^O[49],Y=Ne^(Q<<1|G>>>31),ne=Ue^(G<<1|Q>>>31),O[0]^=Y,O[1]^=ne,O[10]^=Y,O[11]^=ne,O[20]^=Y,O[21]^=ne,O[30]^=Y,O[31]^=ne,O[40]^=Y,O[41]^=ne,Y=he^(ue<<1|re>>>31),ne=X^(re<<1|ue>>>31),O[2]^=Y,O[3]^=ne,O[12]^=Y,O[13]^=ne,O[22]^=Y,O[23]^=ne,O[32]^=Y,O[33]^=ne,O[42]^=Y,O[43]^=ne,Y=Q^(ge<<1|Ge>>>31),ne=G^(Ge<<1|ge>>>31),O[4]^=Y,O[5]^=ne,O[14]^=Y,O[15]^=ne,O[24]^=Y,O[25]^=ne,O[34]^=Y,O[35]^=ne,O[44]^=Y,O[45]^=ne,Y=ue^(Ne<<1|Ue>>>31),ne=re^(Ue<<1|Ne>>>31),O[6]^=Y,O[7]^=ne,O[16]^=Y,O[17]^=ne,O[26]^=Y,O[27]^=ne,O[36]^=Y,O[37]^=ne,O[46]^=Y,O[47]^=ne,Y=ge^(he<<1|X>>>31),ne=Ge^(X<<1|he>>>31),O[8]^=Y,O[9]^=ne,O[18]^=Y,O[19]^=ne,O[28]^=Y,O[29]^=ne,O[38]^=Y,O[39]^=ne,O[48]^=Y,O[49]^=ne,st=O[0],ee=O[1],Qe=O[11]<<4|O[10]>>>28,tn=O[10]<<4|O[11]>>>28,Ee=O[20]<<3|O[21]>>>29,Le=O[21]<<3|O[20]>>>29,ns=O[31]<<9|O[30]>>>23,os=O[30]<<9|O[31]>>>23,Ye=O[40]<<18|O[41]>>>14,mt=O[41]<<18|O[40]>>>14,Ce=O[2]<<1|O[3]>>>31,xe=O[3]<<1|O[2]>>>31,S=O[13]<<12|O[12]>>>20,F=O[12]<<12|O[13]>>>20,ct=O[22]<<10|O[23]>>>22,Ct=O[23]<<10|O[22]>>>22,ze=O[33]<<13|O[32]>>>19,Re=O[32]<<13|O[33]>>>19,is=O[42]<<2|O[43]>>>30,ss=O[43]<<2|O[42]>>>30,Ze=O[5]<<30|O[4]>>>2,at=O[4]<<30|O[5]>>>2,Be=O[14]<<6|O[15]>>>26,Me=O[15]<<6|O[14]>>>26,R=O[25]<<11|O[24]>>>21,L=O[24]<<11|O[25]>>>21,wo=O[34]<<15|O[35]>>>17,nt=O[35]<<15|O[34]>>>17,je=O[45]<<29|O[44]>>>3,Pe=O[44]<<29|O[45]>>>3,pe=O[6]<<28|O[7]>>>4,de=O[7]<<28|O[6]>>>4,rn=O[17]<<23|O[16]>>>9,ut=O[16]<<23|O[17]>>>9,xt=O[26]<<25|O[27]>>>7,qe=O[27]<<25|O[26]>>>7,z=O[36]<<21|O[37]>>>11,H=O[37]<<21|O[36]>>>11,Ke=O[47]<<24|O[46]>>>8,Zt=O[46]<<24|O[47]>>>8,lr=O[8]<<27|O[9]>>>5,St=O[9]<<27|O[8]>>>5,we=O[18]<<20|O[19]>>>12,ye=O[19]<<20|O[18]>>>12,gt=O[29]<<7|O[28]>>>25,rs=O[28]<<7|O[29]>>>25,et=O[38]<<8|O[39]>>>24,Oe=O[39]<<8|O[38]>>>24,oe=O[48]<<14|O[49]>>>18,se=O[49]<<14|O[48]>>>18,O[0]=st^~S&R,O[1]=ee^~F&L,O[10]=pe^~we&Ee,O[11]=de^~ye&Le,O[20]=Ce^~Be&xt,O[21]=xe^~Me&qe,O[30]=lr^~Qe&ct,O[31]=St^~tn&Ct,O[40]=Ze^~rn&gt,O[41]=at^~ut&rs,O[2]=S^~R&z,O[3]=F^~L&H,O[12]=we^~Ee&ze,O[13]=ye^~Le&Re,O[22]=Be^~xt&et,O[23]=Me^~qe&Oe,O[32]=Qe^~ct&wo,O[33]=tn^~Ct&nt,O[42]=rn^~gt&ns,O[43]=ut^~rs&os,O[4]=R^~z&oe,O[5]=L^~H&se,O[14]=Ee^~ze&je,O[15]=Le^~Re&Pe,O[24]=xt^~et&Ye,O[25]=qe^~Oe&mt,O[34]=ct^~wo&Ke,O[35]=Ct^~nt&Zt,O[44]=gt^~ns&is,O[45]=rs^~os&ss,O[6]=z^~oe&st,O[7]=H^~se&ee,O[16]=ze^~je&pe,O[17]=Re^~Pe&de,O[26]=et^~Ye&Ce,O[27]=Oe^~mt&xe,O[36]=wo^~Ke&lr,O[37]=nt^~Zt&St,O[46]=ns^~is&Ze,O[47]=os^~ss&at,O[8]=oe^~st&S,O[9]=se^~ee&F,O[18]=je^~pe&we,O[19]=Pe^~de&ye,O[28]=Ye^~Ce&Be,O[29]=mt^~xe&Me,O[38]=Ke^~lr&Qe,O[39]=Zt^~St&tn,O[48]=is^~Ze&rn,O[49]=ss^~at&ut,O[0]^=C[ae],O[1]^=C[ae+1]};if(s)kh.exports=g;else{for(E=0;E<w.length;++E)n[w[E]]=g[w[E]];a&&define(function(){return g})}})()});var Z3=_e(()=>{c();d();f()});var W3=_e((G3,iv)=>{c();d();f();(function(e,t){"use strict";function r(A,g){if(!A)throw new Error(g||"Assertion failed")}function n(A,g){A.super_=g;var w=function(){};w.prototype=g.prototype,A.prototype=new w,A.prototype.constructor=A}function o(A,g,w){if(o.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((g==="le"||g==="be")&&(w=g,g=10),this._init(A||0,g||10,w||"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=Z3().Buffer}catch(A){}o.isBN=function(g){return g instanceof o?!0:g!==null&&typeof g=="object"&&g.constructor.wordSize===o.wordSize&&Array.isArray(g.words)},o.max=function(g,w){return g.cmp(w)>0?g:w},o.min=function(g,w){return g.cmp(w)<0?g:w},o.prototype._init=function(g,w,E){if(typeof g=="number")return this._initNumber(g,w,E);if(typeof g=="object")return this._initArray(g,w,E);w==="hex"&&(w=16),r(w===(w|0)&&w>=2&&w<=36),g=g.toString().replace(/\s+/g,"");var D=0;g[0]==="-"&&(D++,this.negative=1),D<g.length&&(w===16?this._parseHex(g,D,E):(this._parseBase(g,w,D),E==="le"&&this._initArray(this.toArray(),w,E)))},o.prototype._initNumber=function(g,w,E){g<0&&(this.negative=1,g=-g),g<67108864?(this.words=[g&67108863],this.length=1):g<4503599627370496?(this.words=[g&67108863,g/67108864&67108863],this.length=2):(r(g<9007199254740992),this.words=[g&67108863,g/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),w,E)},o.prototype._initArray=function(g,w,E){if(r(typeof g.length=="number"),g.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(g.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var k,B,q=0;if(E==="be")for(D=g.length-1,k=0;D>=0;D-=3)B=g[D]|g[D-1]<<8|g[D-2]<<16,this.words[k]|=B<<q&67108863,this.words[k+1]=B>>>26-q&67108863,q+=24,q>=26&&(q-=26,k++);else if(E==="le")for(D=0,k=0;D<g.length;D+=3)B=g[D]|g[D+1]<<8|g[D+2]<<16,this.words[k]|=B<<q&67108863,this.words[k+1]=B>>>26-q&67108863,q+=24,q>=26&&(q-=26,k++);return this._strip()};function s(A,g){var w=A.charCodeAt(g);if(w>=48&&w<=57)return w-48;if(w>=65&&w<=70)return w-55;if(w>=97&&w<=102)return w-87;r(!1,"Invalid character in "+A)}function a(A,g,w){var E=s(A,w);return w-1>=g&&(E|=s(A,w-1)<<4),E}o.prototype._parseHex=function(g,w,E){this.length=Math.ceil((g.length-w)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var k=0,B=0,q;if(E==="be")for(D=g.length-1;D>=w;D-=2)q=a(g,w,D)<<k,this.words[B]|=q&67108863,k>=18?(k-=18,B+=1,this.words[B]|=q>>>26):k+=8;else{var $=g.length-w;for(D=$%2===0?w+1:w;D<g.length;D+=2)q=a(g,w,D)<<k,this.words[B]|=q&67108863,k>=18?(k-=18,B+=1,this.words[B]|=q>>>26):k+=8}this._strip()};function u(A,g,w,E){for(var D=0,k=0,B=Math.min(A.length,w),q=g;q<B;q++){var $=A.charCodeAt(q)-48;D*=E,$>=49?k=$-49+10:$>=17?k=$-17+10:k=$,r($>=0&&k<E,"Invalid character"),D+=k}return D}o.prototype._parseBase=function(g,w,E){this.words=[0],this.length=1;for(var D=0,k=1;k<=67108863;k*=w)D++;D--,k=k/w|0;for(var B=g.length-E,q=B%D,$=Math.min(B,B-q)+E,_=0,V=E;V<$;V+=D)_=u(g,V,V+D,w),this.imuln(k),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_);if(q!==0){var ie=1;for(_=u(g,V,g.length,w),V=0;V<q;V++)ie*=w;this.imuln(ie),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_)}this._strip()},o.prototype.copy=function(g){g.words=new Array(this.length);for(var w=0;w<this.length;w++)g.words[w]=this.words[w];g.length=this.length,g.negative=this.negative,g.red=this.red};function l(A,g){A.words=g.words,A.length=g.length,A.negative=g.negative,A.red=g.red}if(o.prototype._move=function(g){l(g,this)},o.prototype.clone=function(){var g=new o(null);return this.copy(g),g},o.prototype._expand=function(g){for(;this.length<g;)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")]=p}catch(A){o.prototype.inspect=p}else o.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[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(g,w){g=g||10,w=w|0||1;var E;if(g===16||g==="hex"){E="";for(var D=0,k=0,B=0;B<this.length;B++){var q=this.words[B],$=((q<<D|k)&16777215).toString(16);k=q>>>24-D&16777215,D+=2,D>=26&&(D-=26,B--),k!==0||B!==this.length-1?E=h[6-$.length]+$+E:E=$+E}for(k!==0&&(E=k.toString(16)+E);E.length%w!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(g===(g|0)&&g>=2&&g<=36){var _=y[g],V=b[g];E="";var ie=this.clone();for(ie.negative=0;!ie.isZero();){var O=ie.modrn(V).toString(g);ie=ie.idivn(V),ie.isZero()?E=O+E:E=h[_-O.length]+O+E}for(this.isZero()&&(E="0"+E);E.length%w!==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 g=this.words[0];return this.length===2?g+=this.words[1]*67108864:this.length===3&&this.words[2]===1?g+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-g:g},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(g,w){return this.toArrayLike(i,g,w)}),o.prototype.toArray=function(g,w){return this.toArrayLike(Array,g,w)};var v=function(g,w){return g.allocUnsafe?g.allocUnsafe(w):new g(w)};o.prototype.toArrayLike=function(g,w,E){this._strip();var D=this.byteLength(),k=E||Math.max(1,D);r(D<=k,"byte array longer than desired length"),r(k>0,"Requested array length <= 0");var B=v(g,k),q=w==="le"?"LE":"BE";return this["_toArrayLike"+q](B,D),B},o.prototype._toArrayLikeLE=function(g,w){for(var E=0,D=0,k=0,B=0;k<this.length;k++){var q=this.words[k]<<B|D;g[E++]=q&255,E<g.length&&(g[E++]=q>>8&255),E<g.length&&(g[E++]=q>>16&255),B===6?(E<g.length&&(g[E++]=q>>24&255),D=0,B=0):(D=q>>>24,B+=2)}if(E<g.length)for(g[E++]=D;E<g.length;)g[E++]=0},o.prototype._toArrayLikeBE=function(g,w){for(var E=g.length-1,D=0,k=0,B=0;k<this.length;k++){var q=this.words[k]<<B|D;g[E--]=q&255,E>=0&&(g[E--]=q>>8&255),E>=0&&(g[E--]=q>>16&255),B===6?(E>=0&&(g[E--]=q>>24&255),D=0,B=0):(D=q>>>24,B+=2)}if(E>=0)for(g[E--]=D;E>=0;)g[E--]=0},Math.clz32?o.prototype._countBits=function(g){return 32-Math.clz32(g)}:o.prototype._countBits=function(g){var w=g,E=0;return w>=4096&&(E+=13,w>>>=13),w>=64&&(E+=7,w>>>=7),w>=8&&(E+=4,w>>>=4),w>=2&&(E+=2,w>>>=2),E+w},o.prototype._zeroBits=function(g){if(g===0)return 26;var w=g,E=0;return(w&8191)===0&&(E+=13,w>>>=13),(w&127)===0&&(E+=7,w>>>=7),(w&15)===0&&(E+=4,w>>>=4),(w&3)===0&&(E+=2,w>>>=2),(w&1)===0&&E++,E},o.prototype.bitLength=function(){var g=this.words[this.length-1],w=this._countBits(g);return(this.length-1)*26+w};function C(A){for(var g=new Array(A.bitLength()),w=0;w<g.length;w++){var E=w/26|0,D=w%26;g[w]=A.words[E]>>>D&1}return g}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var g=0,w=0;w<this.length;w++){var E=this._zeroBits(this.words[w]);if(g+=E,E!==26)break}return g},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(g){return this.negative!==0?this.abs().inotn(g).iaddn(1):this.clone()},o.prototype.fromTwos=function(g){return this.testn(g-1)?this.notn(g).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(g){for(;this.length<g.length;)this.words[this.length++]=0;for(var w=0;w<g.length;w++)this.words[w]=this.words[w]|g.words[w];return this._strip()},o.prototype.ior=function(g){return r((this.negative|g.negative)===0),this.iuor(g)},o.prototype.or=function(g){return this.length>g.length?this.clone().ior(g):g.clone().ior(this)},o.prototype.uor=function(g){return this.length>g.length?this.clone().iuor(g):g.clone().iuor(this)},o.prototype.iuand=function(g){var w;this.length>g.length?w=g:w=this;for(var E=0;E<w.length;E++)this.words[E]=this.words[E]&g.words[E];return this.length=w.length,this._strip()},o.prototype.iand=function(g){return r((this.negative|g.negative)===0),this.iuand(g)},o.prototype.and=function(g){return this.length>g.length?this.clone().iand(g):g.clone().iand(this)},o.prototype.uand=function(g){return this.length>g.length?this.clone().iuand(g):g.clone().iuand(this)},o.prototype.iuxor=function(g){var w,E;this.length>g.length?(w=this,E=g):(w=g,E=this);for(var D=0;D<E.length;D++)this.words[D]=w.words[D]^E.words[D];if(this!==w)for(;D<w.length;D++)this.words[D]=w.words[D];return this.length=w.length,this._strip()},o.prototype.ixor=function(g){return r((this.negative|g.negative)===0),this.iuxor(g)},o.prototype.xor=function(g){return this.length>g.length?this.clone().ixor(g):g.clone().ixor(this)},o.prototype.uxor=function(g){return this.length>g.length?this.clone().iuxor(g):g.clone().iuxor(this)},o.prototype.inotn=function(g){r(typeof g=="number"&&g>=0);var w=Math.ceil(g/26)|0,E=g%26;this._expand(w),E>0&&w--;for(var D=0;D<w;D++)this.words[D]=~this.words[D]&67108863;return E>0&&(this.words[D]=~this.words[D]&67108863>>26-E),this._strip()},o.prototype.notn=function(g){return this.clone().inotn(g)},o.prototype.setn=function(g,w){r(typeof g=="number"&&g>=0);var E=g/26|0,D=g%26;return this._expand(E+1),w?this.words[E]=this.words[E]|1<<D:this.words[E]=this.words[E]&~(1<<D),this._strip()},o.prototype.iadd=function(g){var w;if(this.negative!==0&&g.negative===0)return this.negative=0,w=this.isub(g),this.negative^=1,this._normSign();if(this.negative===0&&g.negative!==0)return g.negative=0,w=this.isub(g),g.negative=1,w._normSign();var E,D;this.length>g.length?(E=this,D=g):(E=g,D=this);for(var k=0,B=0;B<D.length;B++)w=(E.words[B]|0)+(D.words[B]|0)+k,this.words[B]=w&67108863,k=w>>>26;for(;k!==0&&B<E.length;B++)w=(E.words[B]|0)+k,this.words[B]=w&67108863,k=w>>>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(g){var w;return g.negative!==0&&this.negative===0?(g.negative=0,w=this.sub(g),g.negative^=1,w):g.negative===0&&this.negative!==0?(this.negative=0,w=g.sub(this),this.negative=1,w):this.length>g.length?this.clone().iadd(g):g.clone().iadd(this)},o.prototype.isub=function(g){if(g.negative!==0){g.negative=0;var w=this.iadd(g);return g.negative=1,w._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(g),this.negative=1,this._normSign();var E=this.cmp(g);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,k;E>0?(D=this,k=g):(D=g,k=this);for(var B=0,q=0;q<k.length;q++)w=(D.words[q]|0)-(k.words[q]|0)+B,B=w>>26,this.words[q]=w&67108863;for(;B!==0&&q<D.length;q++)w=(D.words[q]|0)+B,B=w>>26,this.words[q]=w&67108863;if(B===0&&q<D.length&&D!==this)for(;q<D.length;q++)this.words[q]=D.words[q];return this.length=Math.max(this.length,q),D!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(g){return this.clone().isub(g)};function N(A,g,w){w.negative=g.negative^A.negative;var E=A.length+g.length|0;w.length=E,E=E-1|0;var D=A.words[0]|0,k=g.words[0]|0,B=D*k,q=B&67108863,$=B/67108864|0;w.words[0]=q;for(var _=1;_<E;_++){for(var V=$>>>26,ie=$&67108863,O=Math.min(_,g.length-1),Y=Math.max(0,_-A.length+1);Y<=O;Y++){var ne=_-Y|0;D=A.words[ne]|0,k=g.words[Y]|0,B=D*k+ie,V+=B/67108864|0,ie=B&67108863}w.words[_]=ie|0,$=V|0}return $!==0?w.words[_]=$|0:w.length--,w._strip()}var M=function(g,w,E){var D=g.words,k=w.words,B=E.words,q=0,$,_,V,ie=D[0]|0,O=ie&8191,Y=ie>>>13,ne=D[1]|0,ae=ne&8191,he=ne>>>13,X=D[2]|0,Q=X&8191,G=X>>>13,ue=D[3]|0,re=ue&8191,ge=ue>>>13,Ge=D[4]|0,Ne=Ge&8191,Ue=Ge>>>13,st=D[5]|0,ee=st&8191,S=st>>>13,F=D[6]|0,R=F&8191,L=F>>>13,z=D[7]|0,H=z&8191,oe=z>>>13,se=D[8]|0,pe=se&8191,de=se>>>13,we=D[9]|0,ye=we&8191,Ee=we>>>13,Le=k[0]|0,ze=Le&8191,Re=Le>>>13,je=k[1]|0,Pe=je&8191,Ce=je>>>13,xe=k[2]|0,Be=xe&8191,Me=xe>>>13,xt=k[3]|0,qe=xt&8191,et=xt>>>13,Oe=k[4]|0,Ye=Oe&8191,mt=Oe>>>13,lr=k[5]|0,St=lr&8191,Qe=lr>>>13,tn=k[6]|0,ct=tn&8191,Ct=tn>>>13,wo=k[7]|0,nt=wo&8191,Ke=wo>>>13,Zt=k[8]|0,Ze=Zt&8191,at=Zt>>>13,rn=k[9]|0,ut=rn&8191,gt=rn>>>13;E.negative=g.negative^w.negative,E.length=19,$=Math.imul(O,ze),_=Math.imul(O,Re),_=_+Math.imul(Y,ze)|0,V=Math.imul(Y,Re);var rs=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(rs>>>26)|0,rs&=67108863,$=Math.imul(ae,ze),_=Math.imul(ae,Re),_=_+Math.imul(he,ze)|0,V=Math.imul(he,Re),$=$+Math.imul(O,Pe)|0,_=_+Math.imul(O,Ce)|0,_=_+Math.imul(Y,Pe)|0,V=V+Math.imul(Y,Ce)|0;var ns=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(ns>>>26)|0,ns&=67108863,$=Math.imul(Q,ze),_=Math.imul(Q,Re),_=_+Math.imul(G,ze)|0,V=Math.imul(G,Re),$=$+Math.imul(ae,Pe)|0,_=_+Math.imul(ae,Ce)|0,_=_+Math.imul(he,Pe)|0,V=V+Math.imul(he,Ce)|0,$=$+Math.imul(O,Be)|0,_=_+Math.imul(O,Me)|0,_=_+Math.imul(Y,Be)|0,V=V+Math.imul(Y,Me)|0;var os=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(os>>>26)|0,os&=67108863,$=Math.imul(re,ze),_=Math.imul(re,Re),_=_+Math.imul(ge,ze)|0,V=Math.imul(ge,Re),$=$+Math.imul(Q,Pe)|0,_=_+Math.imul(Q,Ce)|0,_=_+Math.imul(G,Pe)|0,V=V+Math.imul(G,Ce)|0,$=$+Math.imul(ae,Be)|0,_=_+Math.imul(ae,Me)|0,_=_+Math.imul(he,Be)|0,V=V+Math.imul(he,Me)|0,$=$+Math.imul(O,qe)|0,_=_+Math.imul(O,et)|0,_=_+Math.imul(Y,qe)|0,V=V+Math.imul(Y,et)|0;var is=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(is>>>26)|0,is&=67108863,$=Math.imul(Ne,ze),_=Math.imul(Ne,Re),_=_+Math.imul(Ue,ze)|0,V=Math.imul(Ue,Re),$=$+Math.imul(re,Pe)|0,_=_+Math.imul(re,Ce)|0,_=_+Math.imul(ge,Pe)|0,V=V+Math.imul(ge,Ce)|0,$=$+Math.imul(Q,Be)|0,_=_+Math.imul(Q,Me)|0,_=_+Math.imul(G,Be)|0,V=V+Math.imul(G,Me)|0,$=$+Math.imul(ae,qe)|0,_=_+Math.imul(ae,et)|0,_=_+Math.imul(he,qe)|0,V=V+Math.imul(he,et)|0,$=$+Math.imul(O,Ye)|0,_=_+Math.imul(O,mt)|0,_=_+Math.imul(Y,Ye)|0,V=V+Math.imul(Y,mt)|0;var ss=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(ss>>>26)|0,ss&=67108863,$=Math.imul(ee,ze),_=Math.imul(ee,Re),_=_+Math.imul(S,ze)|0,V=Math.imul(S,Re),$=$+Math.imul(Ne,Pe)|0,_=_+Math.imul(Ne,Ce)|0,_=_+Math.imul(Ue,Pe)|0,V=V+Math.imul(Ue,Ce)|0,$=$+Math.imul(re,Be)|0,_=_+Math.imul(re,Me)|0,_=_+Math.imul(ge,Be)|0,V=V+Math.imul(ge,Me)|0,$=$+Math.imul(Q,qe)|0,_=_+Math.imul(Q,et)|0,_=_+Math.imul(G,qe)|0,V=V+Math.imul(G,et)|0,$=$+Math.imul(ae,Ye)|0,_=_+Math.imul(ae,mt)|0,_=_+Math.imul(he,Ye)|0,V=V+Math.imul(he,mt)|0,$=$+Math.imul(O,St)|0,_=_+Math.imul(O,Qe)|0,_=_+Math.imul(Y,St)|0,V=V+Math.imul(Y,Qe)|0;var Ry=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Ry>>>26)|0,Ry&=67108863,$=Math.imul(R,ze),_=Math.imul(R,Re),_=_+Math.imul(L,ze)|0,V=Math.imul(L,Re),$=$+Math.imul(ee,Pe)|0,_=_+Math.imul(ee,Ce)|0,_=_+Math.imul(S,Pe)|0,V=V+Math.imul(S,Ce)|0,$=$+Math.imul(Ne,Be)|0,_=_+Math.imul(Ne,Me)|0,_=_+Math.imul(Ue,Be)|0,V=V+Math.imul(Ue,Me)|0,$=$+Math.imul(re,qe)|0,_=_+Math.imul(re,et)|0,_=_+Math.imul(ge,qe)|0,V=V+Math.imul(ge,et)|0,$=$+Math.imul(Q,Ye)|0,_=_+Math.imul(Q,mt)|0,_=_+Math.imul(G,Ye)|0,V=V+Math.imul(G,mt)|0,$=$+Math.imul(ae,St)|0,_=_+Math.imul(ae,Qe)|0,_=_+Math.imul(he,St)|0,V=V+Math.imul(he,Qe)|0,$=$+Math.imul(O,ct)|0,_=_+Math.imul(O,Ct)|0,_=_+Math.imul(Y,ct)|0,V=V+Math.imul(Y,Ct)|0;var ky=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(ky>>>26)|0,ky&=67108863,$=Math.imul(H,ze),_=Math.imul(H,Re),_=_+Math.imul(oe,ze)|0,V=Math.imul(oe,Re),$=$+Math.imul(R,Pe)|0,_=_+Math.imul(R,Ce)|0,_=_+Math.imul(L,Pe)|0,V=V+Math.imul(L,Ce)|0,$=$+Math.imul(ee,Be)|0,_=_+Math.imul(ee,Me)|0,_=_+Math.imul(S,Be)|0,V=V+Math.imul(S,Me)|0,$=$+Math.imul(Ne,qe)|0,_=_+Math.imul(Ne,et)|0,_=_+Math.imul(Ue,qe)|0,V=V+Math.imul(Ue,et)|0,$=$+Math.imul(re,Ye)|0,_=_+Math.imul(re,mt)|0,_=_+Math.imul(ge,Ye)|0,V=V+Math.imul(ge,mt)|0,$=$+Math.imul(Q,St)|0,_=_+Math.imul(Q,Qe)|0,_=_+Math.imul(G,St)|0,V=V+Math.imul(G,Qe)|0,$=$+Math.imul(ae,ct)|0,_=_+Math.imul(ae,Ct)|0,_=_+Math.imul(he,ct)|0,V=V+Math.imul(he,Ct)|0,$=$+Math.imul(O,nt)|0,_=_+Math.imul(O,Ke)|0,_=_+Math.imul(Y,nt)|0,V=V+Math.imul(Y,Ke)|0;var Ly=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Ly>>>26)|0,Ly&=67108863,$=Math.imul(pe,ze),_=Math.imul(pe,Re),_=_+Math.imul(de,ze)|0,V=Math.imul(de,Re),$=$+Math.imul(H,Pe)|0,_=_+Math.imul(H,Ce)|0,_=_+Math.imul(oe,Pe)|0,V=V+Math.imul(oe,Ce)|0,$=$+Math.imul(R,Be)|0,_=_+Math.imul(R,Me)|0,_=_+Math.imul(L,Be)|0,V=V+Math.imul(L,Me)|0,$=$+Math.imul(ee,qe)|0,_=_+Math.imul(ee,et)|0,_=_+Math.imul(S,qe)|0,V=V+Math.imul(S,et)|0,$=$+Math.imul(Ne,Ye)|0,_=_+Math.imul(Ne,mt)|0,_=_+Math.imul(Ue,Ye)|0,V=V+Math.imul(Ue,mt)|0,$=$+Math.imul(re,St)|0,_=_+Math.imul(re,Qe)|0,_=_+Math.imul(ge,St)|0,V=V+Math.imul(ge,Qe)|0,$=$+Math.imul(Q,ct)|0,_=_+Math.imul(Q,Ct)|0,_=_+Math.imul(G,ct)|0,V=V+Math.imul(G,Ct)|0,$=$+Math.imul(ae,nt)|0,_=_+Math.imul(ae,Ke)|0,_=_+Math.imul(he,nt)|0,V=V+Math.imul(he,Ke)|0,$=$+Math.imul(O,Ze)|0,_=_+Math.imul(O,at)|0,_=_+Math.imul(Y,Ze)|0,V=V+Math.imul(Y,at)|0;var Fy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Fy>>>26)|0,Fy&=67108863,$=Math.imul(ye,ze),_=Math.imul(ye,Re),_=_+Math.imul(Ee,ze)|0,V=Math.imul(Ee,Re),$=$+Math.imul(pe,Pe)|0,_=_+Math.imul(pe,Ce)|0,_=_+Math.imul(de,Pe)|0,V=V+Math.imul(de,Ce)|0,$=$+Math.imul(H,Be)|0,_=_+Math.imul(H,Me)|0,_=_+Math.imul(oe,Be)|0,V=V+Math.imul(oe,Me)|0,$=$+Math.imul(R,qe)|0,_=_+Math.imul(R,et)|0,_=_+Math.imul(L,qe)|0,V=V+Math.imul(L,et)|0,$=$+Math.imul(ee,Ye)|0,_=_+Math.imul(ee,mt)|0,_=_+Math.imul(S,Ye)|0,V=V+Math.imul(S,mt)|0,$=$+Math.imul(Ne,St)|0,_=_+Math.imul(Ne,Qe)|0,_=_+Math.imul(Ue,St)|0,V=V+Math.imul(Ue,Qe)|0,$=$+Math.imul(re,ct)|0,_=_+Math.imul(re,Ct)|0,_=_+Math.imul(ge,ct)|0,V=V+Math.imul(ge,Ct)|0,$=$+Math.imul(Q,nt)|0,_=_+Math.imul(Q,Ke)|0,_=_+Math.imul(G,nt)|0,V=V+Math.imul(G,Ke)|0,$=$+Math.imul(ae,Ze)|0,_=_+Math.imul(ae,at)|0,_=_+Math.imul(he,Ze)|0,V=V+Math.imul(he,at)|0,$=$+Math.imul(O,ut)|0,_=_+Math.imul(O,gt)|0,_=_+Math.imul(Y,ut)|0,V=V+Math.imul(Y,gt)|0;var Uy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Uy>>>26)|0,Uy&=67108863,$=Math.imul(ye,Pe),_=Math.imul(ye,Ce),_=_+Math.imul(Ee,Pe)|0,V=Math.imul(Ee,Ce),$=$+Math.imul(pe,Be)|0,_=_+Math.imul(pe,Me)|0,_=_+Math.imul(de,Be)|0,V=V+Math.imul(de,Me)|0,$=$+Math.imul(H,qe)|0,_=_+Math.imul(H,et)|0,_=_+Math.imul(oe,qe)|0,V=V+Math.imul(oe,et)|0,$=$+Math.imul(R,Ye)|0,_=_+Math.imul(R,mt)|0,_=_+Math.imul(L,Ye)|0,V=V+Math.imul(L,mt)|0,$=$+Math.imul(ee,St)|0,_=_+Math.imul(ee,Qe)|0,_=_+Math.imul(S,St)|0,V=V+Math.imul(S,Qe)|0,$=$+Math.imul(Ne,ct)|0,_=_+Math.imul(Ne,Ct)|0,_=_+Math.imul(Ue,ct)|0,V=V+Math.imul(Ue,Ct)|0,$=$+Math.imul(re,nt)|0,_=_+Math.imul(re,Ke)|0,_=_+Math.imul(ge,nt)|0,V=V+Math.imul(ge,Ke)|0,$=$+Math.imul(Q,Ze)|0,_=_+Math.imul(Q,at)|0,_=_+Math.imul(G,Ze)|0,V=V+Math.imul(G,at)|0,$=$+Math.imul(ae,ut)|0,_=_+Math.imul(ae,gt)|0,_=_+Math.imul(he,ut)|0,V=V+Math.imul(he,gt)|0;var $y=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+($y>>>26)|0,$y&=67108863,$=Math.imul(ye,Be),_=Math.imul(ye,Me),_=_+Math.imul(Ee,Be)|0,V=Math.imul(Ee,Me),$=$+Math.imul(pe,qe)|0,_=_+Math.imul(pe,et)|0,_=_+Math.imul(de,qe)|0,V=V+Math.imul(de,et)|0,$=$+Math.imul(H,Ye)|0,_=_+Math.imul(H,mt)|0,_=_+Math.imul(oe,Ye)|0,V=V+Math.imul(oe,mt)|0,$=$+Math.imul(R,St)|0,_=_+Math.imul(R,Qe)|0,_=_+Math.imul(L,St)|0,V=V+Math.imul(L,Qe)|0,$=$+Math.imul(ee,ct)|0,_=_+Math.imul(ee,Ct)|0,_=_+Math.imul(S,ct)|0,V=V+Math.imul(S,Ct)|0,$=$+Math.imul(Ne,nt)|0,_=_+Math.imul(Ne,Ke)|0,_=_+Math.imul(Ue,nt)|0,V=V+Math.imul(Ue,Ke)|0,$=$+Math.imul(re,Ze)|0,_=_+Math.imul(re,at)|0,_=_+Math.imul(ge,Ze)|0,V=V+Math.imul(ge,at)|0,$=$+Math.imul(Q,ut)|0,_=_+Math.imul(Q,gt)|0,_=_+Math.imul(G,ut)|0,V=V+Math.imul(G,gt)|0;var By=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(By>>>26)|0,By&=67108863,$=Math.imul(ye,qe),_=Math.imul(ye,et),_=_+Math.imul(Ee,qe)|0,V=Math.imul(Ee,et),$=$+Math.imul(pe,Ye)|0,_=_+Math.imul(pe,mt)|0,_=_+Math.imul(de,Ye)|0,V=V+Math.imul(de,mt)|0,$=$+Math.imul(H,St)|0,_=_+Math.imul(H,Qe)|0,_=_+Math.imul(oe,St)|0,V=V+Math.imul(oe,Qe)|0,$=$+Math.imul(R,ct)|0,_=_+Math.imul(R,Ct)|0,_=_+Math.imul(L,ct)|0,V=V+Math.imul(L,Ct)|0,$=$+Math.imul(ee,nt)|0,_=_+Math.imul(ee,Ke)|0,_=_+Math.imul(S,nt)|0,V=V+Math.imul(S,Ke)|0,$=$+Math.imul(Ne,Ze)|0,_=_+Math.imul(Ne,at)|0,_=_+Math.imul(Ue,Ze)|0,V=V+Math.imul(Ue,at)|0,$=$+Math.imul(re,ut)|0,_=_+Math.imul(re,gt)|0,_=_+Math.imul(ge,ut)|0,V=V+Math.imul(ge,gt)|0;var Vy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Vy>>>26)|0,Vy&=67108863,$=Math.imul(ye,Ye),_=Math.imul(ye,mt),_=_+Math.imul(Ee,Ye)|0,V=Math.imul(Ee,mt),$=$+Math.imul(pe,St)|0,_=_+Math.imul(pe,Qe)|0,_=_+Math.imul(de,St)|0,V=V+Math.imul(de,Qe)|0,$=$+Math.imul(H,ct)|0,_=_+Math.imul(H,Ct)|0,_=_+Math.imul(oe,ct)|0,V=V+Math.imul(oe,Ct)|0,$=$+Math.imul(R,nt)|0,_=_+Math.imul(R,Ke)|0,_=_+Math.imul(L,nt)|0,V=V+Math.imul(L,Ke)|0,$=$+Math.imul(ee,Ze)|0,_=_+Math.imul(ee,at)|0,_=_+Math.imul(S,Ze)|0,V=V+Math.imul(S,at)|0,$=$+Math.imul(Ne,ut)|0,_=_+Math.imul(Ne,gt)|0,_=_+Math.imul(Ue,ut)|0,V=V+Math.imul(Ue,gt)|0;var jy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(jy>>>26)|0,jy&=67108863,$=Math.imul(ye,St),_=Math.imul(ye,Qe),_=_+Math.imul(Ee,St)|0,V=Math.imul(Ee,Qe),$=$+Math.imul(pe,ct)|0,_=_+Math.imul(pe,Ct)|0,_=_+Math.imul(de,ct)|0,V=V+Math.imul(de,Ct)|0,$=$+Math.imul(H,nt)|0,_=_+Math.imul(H,Ke)|0,_=_+Math.imul(oe,nt)|0,V=V+Math.imul(oe,Ke)|0,$=$+Math.imul(R,Ze)|0,_=_+Math.imul(R,at)|0,_=_+Math.imul(L,Ze)|0,V=V+Math.imul(L,at)|0,$=$+Math.imul(ee,ut)|0,_=_+Math.imul(ee,gt)|0,_=_+Math.imul(S,ut)|0,V=V+Math.imul(S,gt)|0;var zy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(zy>>>26)|0,zy&=67108863,$=Math.imul(ye,ct),_=Math.imul(ye,Ct),_=_+Math.imul(Ee,ct)|0,V=Math.imul(Ee,Ct),$=$+Math.imul(pe,nt)|0,_=_+Math.imul(pe,Ke)|0,_=_+Math.imul(de,nt)|0,V=V+Math.imul(de,Ke)|0,$=$+Math.imul(H,Ze)|0,_=_+Math.imul(H,at)|0,_=_+Math.imul(oe,Ze)|0,V=V+Math.imul(oe,at)|0,$=$+Math.imul(R,ut)|0,_=_+Math.imul(R,gt)|0,_=_+Math.imul(L,ut)|0,V=V+Math.imul(L,gt)|0;var Hy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Hy>>>26)|0,Hy&=67108863,$=Math.imul(ye,nt),_=Math.imul(ye,Ke),_=_+Math.imul(Ee,nt)|0,V=Math.imul(Ee,Ke),$=$+Math.imul(pe,Ze)|0,_=_+Math.imul(pe,at)|0,_=_+Math.imul(de,Ze)|0,V=V+Math.imul(de,at)|0,$=$+Math.imul(H,ut)|0,_=_+Math.imul(H,gt)|0,_=_+Math.imul(oe,ut)|0,V=V+Math.imul(oe,gt)|0;var qy=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(qy>>>26)|0,qy&=67108863,$=Math.imul(ye,Ze),_=Math.imul(ye,at),_=_+Math.imul(Ee,Ze)|0,V=Math.imul(Ee,at),$=$+Math.imul(pe,ut)|0,_=_+Math.imul(pe,gt)|0,_=_+Math.imul(de,ut)|0,V=V+Math.imul(de,gt)|0;var Ky=(q+$|0)+((_&8191)<<13)|0;q=(V+(_>>>13)|0)+(Ky>>>26)|0,Ky&=67108863,$=Math.imul(ye,ut),_=Math.imul(ye,gt),_=_+Math.imul(Ee,ut)|0,V=Math.imul(Ee,gt);var Zy=(q+$|0)+((_&8191)<<13)|0;return q=(V+(_>>>13)|0)+(Zy>>>26)|0,Zy&=67108863,B[0]=rs,B[1]=ns,B[2]=os,B[3]=is,B[4]=ss,B[5]=Ry,B[6]=ky,B[7]=Ly,B[8]=Fy,B[9]=Uy,B[10]=$y,B[11]=By,B[12]=Vy,B[13]=jy,B[14]=zy,B[15]=Hy,B[16]=qy,B[17]=Ky,B[18]=Zy,q!==0&&(B[19]=q,E.length++),E};Math.imul||(M=N);function T(A,g,w){w.negative=g.negative^A.negative,w.length=A.length+g.length;for(var E=0,D=0,k=0;k<w.length-1;k++){var B=D;D=0;for(var q=E&67108863,$=Math.min(k,g.length-1),_=Math.max(0,k-A.length+1);_<=$;_++){var V=k-_,ie=A.words[V]|0,O=g.words[_]|0,Y=ie*O,ne=Y&67108863;B=B+(Y/67108864|0)|0,ne=ne+q|0,q=ne&67108863,B=B+(ne>>>26)|0,D+=B>>>26,B&=67108863}w.words[k]=q,E=B,B=D}return E!==0?w.words[k]=E:w.length--,w._strip()}function I(A,g,w){return T(A,g,w)}o.prototype.mulTo=function(g,w){var E,D=this.length+g.length;return this.length===10&&g.length===10?E=M(this,g,w):D<63?E=N(this,g,w):D<1024?E=T(this,g,w):E=I(this,g,w),E};function U(A,g){this.x=A,this.y=g}U.prototype.makeRBT=function(g){for(var w=new Array(g),E=o.prototype._countBits(g)-1,D=0;D<g;D++)w[D]=this.revBin(D,E,g);return w},U.prototype.revBin=function(g,w,E){if(g===0||g===E-1)return g;for(var D=0,k=0;k<w;k++)D|=(g&1)<<w-k-1,g>>=1;return D},U.prototype.permute=function(g,w,E,D,k,B){for(var q=0;q<B;q++)D[q]=w[g[q]],k[q]=E[g[q]]},U.prototype.transform=function(g,w,E,D,k,B){this.permute(B,g,w,E,D,k);for(var q=1;q<k;q<<=1)for(var $=q<<1,_=Math.cos(2*Math.PI/$),V=Math.sin(2*Math.PI/$),ie=0;ie<k;ie+=$)for(var O=_,Y=V,ne=0;ne<q;ne++){var ae=E[ie+ne],he=D[ie+ne],X=E[ie+ne+q],Q=D[ie+ne+q],G=O*X-Y*Q;Q=O*Q+Y*X,X=G,E[ie+ne]=ae+X,D[ie+ne]=he+Q,E[ie+ne+q]=ae-X,D[ie+ne+q]=he-Q,ne!==$&&(G=_*O-V*Y,Y=_*Y+V*O,O=G)}},U.prototype.guessLen13b=function(g,w){var E=Math.max(w,g)|1,D=E&1,k=0;for(E=E/2|0;E;E=E>>>1)k++;return 1<<k+1+D},U.prototype.conjugate=function(g,w,E){if(!(E<=1))for(var D=0;D<E/2;D++){var k=g[D];g[D]=g[E-D-1],g[E-D-1]=k,k=w[D],w[D]=-w[E-D-1],w[E-D-1]=-k}},U.prototype.normalize13b=function(g,w){for(var E=0,D=0;D<w/2;D++){var k=Math.round(g[2*D+1]/w)*8192+Math.round(g[2*D]/w)+E;g[D]=k&67108863,k<67108864?E=0:E=k/67108864|0}return g},U.prototype.convert13b=function(g,w,E,D){for(var k=0,B=0;B<w;B++)k=k+(g[B]|0),E[2*B]=k&8191,k=k>>>13,E[2*B+1]=k&8191,k=k>>>13;for(B=2*w;B<D;++B)E[B]=0;r(k===0),r((k&-8192)===0)},U.prototype.stub=function(g){for(var w=new Array(g),E=0;E<g;E++)w[E]=0;return w},U.prototype.mulp=function(g,w,E){var D=2*this.guessLen13b(g.length,w.length),k=this.makeRBT(D),B=this.stub(D),q=new Array(D),$=new Array(D),_=new Array(D),V=new Array(D),ie=new Array(D),O=new Array(D),Y=E.words;Y.length=D,this.convert13b(g.words,g.length,q,D),this.convert13b(w.words,w.length,V,D),this.transform(q,B,$,_,D,k),this.transform(V,B,ie,O,D,k);for(var ne=0;ne<D;ne++){var ae=$[ne]*ie[ne]-_[ne]*O[ne];_[ne]=$[ne]*O[ne]+_[ne]*ie[ne],$[ne]=ae}return this.conjugate($,_,D),this.transform($,_,Y,B,D,k),this.conjugate(Y,B,D),this.normalize13b(Y,D),E.negative=g.negative^w.negative,E.length=g.length+w.length,E._strip()},o.prototype.mul=function(g){var w=new o(null);return w.words=new Array(this.length+g.length),this.mulTo(g,w)},o.prototype.mulf=function(g){var w=new o(null);return w.words=new Array(this.length+g.length),I(this,g,w)},o.prototype.imul=function(g){return this.clone().mulTo(g,this)},o.prototype.imuln=function(g){var w=g<0;w&&(g=-g),r(typeof g=="number"),r(g<67108864);for(var E=0,D=0;D<this.length;D++){var k=(this.words[D]|0)*g,B=(k&67108863)+(E&67108863);E>>=26,E+=k/67108864|0,E+=B>>>26,this.words[D]=B&67108863}return E!==0&&(this.words[D]=E,this.length++),w?this.ineg():this},o.prototype.muln=function(g){return this.clone().imuln(g)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(g){var w=C(g);if(w.length===0)return new o(1);for(var E=this,D=0;D<w.length&&w[D]===0;D++,E=E.sqr());if(++D<w.length)for(var k=E.sqr();D<w.length;D++,k=k.sqr())w[D]!==0&&(E=E.mul(k));return E},o.prototype.iushln=function(g){r(typeof g=="number"&&g>=0);var w=g%26,E=(g-w)/26,D=67108863>>>26-w<<26-w,k;if(w!==0){var B=0;for(k=0;k<this.length;k++){var q=this.words[k]&D,$=(this.words[k]|0)-q<<w;this.words[k]=$|B,B=q>>>26-w}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(g){return r(this.negative===0),this.iushln(g)},o.prototype.iushrn=function(g,w,E){r(typeof g=="number"&&g>=0);var D;w?D=(w-w%26)/26:D=0;var k=g%26,B=Math.min((g-k)/26,this.length),q=67108863^67108863>>>k<<k,$=E;if(D-=B,D=Math.max(0,D),$){for(var _=0;_<B;_++)$.words[_]=this.words[_];$.length=B}if(B!==0)if(this.length>B)for(this.length-=B,_=0;_<this.length;_++)this.words[_]=this.words[_+B];else this.words[0]=0,this.length=1;var V=0;for(_=this.length-1;_>=0&&(V!==0||_>=D);_--){var ie=this.words[_]|0;this.words[_]=V<<26-k|ie>>>k,V=ie&q}return $&&V!==0&&($.words[$.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(g,w,E){return r(this.negative===0),this.iushrn(g,w,E)},o.prototype.shln=function(g){return this.clone().ishln(g)},o.prototype.ushln=function(g){return this.clone().iushln(g)},o.prototype.shrn=function(g){return this.clone().ishrn(g)},o.prototype.ushrn=function(g){return this.clone().iushrn(g)},o.prototype.testn=function(g){r(typeof g=="number"&&g>=0);var w=g%26,E=(g-w)/26,D=1<<w;if(this.length<=E)return!1;var k=this.words[E];return!!(k&D)},o.prototype.imaskn=function(g){r(typeof g=="number"&&g>=0);var w=g%26,E=(g-w)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(w!==0&&E++,this.length=Math.min(E,this.length),w!==0){var D=67108863^67108863>>>w<<w;this.words[this.length-1]&=D}return this._strip()},o.prototype.maskn=function(g){return this.clone().imaskn(g)},o.prototype.iaddn=function(g){return r(typeof g=="number"),r(g<67108864),g<0?this.isubn(-g):this.negative!==0?this.length===1&&(this.words[0]|0)<=g?(this.words[0]=g-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(g),this.negative=1,this):this._iaddn(g)},o.prototype._iaddn=function(g){this.words[0]+=g;for(var w=0;w<this.length&&this.words[w]>=67108864;w++)this.words[w]-=67108864,w===this.length-1?this.words[w+1]=1:this.words[w+1]++;return this.length=Math.max(this.length,w+1),this},o.prototype.isubn=function(g){if(r(typeof g=="number"),r(g<67108864),g<0)return this.iaddn(-g);if(this.negative!==0)return this.negative=0,this.iaddn(g),this.negative=1,this;if(this.words[0]-=g,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var w=0;w<this.length&&this.words[w]<0;w++)this.words[w]+=67108864,this.words[w+1]-=1;return this._strip()},o.prototype.addn=function(g){return this.clone().iaddn(g)},o.prototype.subn=function(g){return this.clone().isubn(g)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(g,w,E){var D=g.length+E,k;this._expand(D);var B,q=0;for(k=0;k<g.length;k++){B=(this.words[k+E]|0)+q;var $=(g.words[k]|0)*w;B-=$&67108863,q=(B>>26)-($/67108864|0),this.words[k+E]=B&67108863}for(;k<this.length-E;k++)B=(this.words[k+E]|0)+q,q=B>>26,this.words[k+E]=B&67108863;if(q===0)return this._strip();for(r(q===-1),q=0,k=0;k<this.length;k++)B=-(this.words[k]|0)+q,q=B>>26,this.words[k]=B&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(g,w){var E=this.length-g.length,D=this.clone(),k=g,B=k.words[k.length-1]|0,q=this._countBits(B);E=26-q,E!==0&&(k=k.ushln(E),D.iushln(E),B=k.words[k.length-1]|0);var $=D.length-k.length,_;if(w!=="mod"){_=new o(null),_.length=$+1,_.words=new Array(_.length);for(var V=0;V<_.length;V++)_.words[V]=0}var ie=D.clone()._ishlnsubmul(k,1,$);ie.negative===0&&(D=ie,_&&(_.words[$]=1));for(var O=$-1;O>=0;O--){var Y=(D.words[k.length+O]|0)*67108864+(D.words[k.length+O-1]|0);for(Y=Math.min(Y/B|0,67108863),D._ishlnsubmul(k,Y,O);D.negative!==0;)Y--,D.negative=0,D._ishlnsubmul(k,1,O),D.isZero()||(D.negative^=1);_&&(_.words[O]=Y)}return _&&_._strip(),D._strip(),w!=="div"&&E!==0&&D.iushrn(E),{div:_||null,mod:D}},o.prototype.divmod=function(g,w,E){if(r(!g.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var D,k,B;return this.negative!==0&&g.negative===0?(B=this.neg().divmod(g,w),w!=="mod"&&(D=B.div.neg()),w!=="div"&&(k=B.mod.neg(),E&&k.negative!==0&&k.iadd(g)),{div:D,mod:k}):this.negative===0&&g.negative!==0?(B=this.divmod(g.neg(),w),w!=="mod"&&(D=B.div.neg()),{div:D,mod:B.mod}):(this.negative&g.negative)!==0?(B=this.neg().divmod(g.neg(),w),w!=="div"&&(k=B.mod.neg(),E&&k.negative!==0&&k.isub(g)),{div:B.div,mod:k}):g.length>this.length||this.cmp(g)<0?{div:new o(0),mod:this}:g.length===1?w==="div"?{div:this.divn(g.words[0]),mod:null}:w==="mod"?{div:null,mod:new o(this.modrn(g.words[0]))}:{div:this.divn(g.words[0]),mod:new o(this.modrn(g.words[0]))}:this._wordDiv(g,w)},o.prototype.div=function(g){return this.divmod(g,"div",!1).div},o.prototype.mod=function(g){return this.divmod(g,"mod",!1).mod},o.prototype.umod=function(g){return this.divmod(g,"mod",!0).mod},o.prototype.divRound=function(g){var w=this.divmod(g);if(w.mod.isZero())return w.div;var E=w.div.negative!==0?w.mod.isub(g):w.mod,D=g.ushrn(1),k=g.andln(1),B=E.cmp(D);return B<0||k===1&&B===0?w.div:w.div.negative!==0?w.div.isubn(1):w.div.iaddn(1)},o.prototype.modrn=function(g){var w=g<0;w&&(g=-g),r(g<=67108863);for(var E=(1<<26)%g,D=0,k=this.length-1;k>=0;k--)D=(E*D+(this.words[k]|0))%g;return w?-D:D},o.prototype.modn=function(g){return this.modrn(g)},o.prototype.idivn=function(g){var w=g<0;w&&(g=-g),r(g<=67108863);for(var E=0,D=this.length-1;D>=0;D--){var k=(this.words[D]|0)+E*67108864;this.words[D]=k/g|0,E=k%g}return this._strip(),w?this.ineg():this},o.prototype.divn=function(g){return this.clone().idivn(g)},o.prototype.egcd=function(g){r(g.negative===0),r(!g.isZero());var w=this,E=g.clone();w.negative!==0?w=w.umod(g):w=w.clone();for(var D=new o(1),k=new o(0),B=new o(0),q=new o(1),$=0;w.isEven()&&E.isEven();)w.iushrn(1),E.iushrn(1),++$;for(var _=E.clone(),V=w.clone();!w.isZero();){for(var ie=0,O=1;(w.words[0]&O)===0&&ie<26;++ie,O<<=1);if(ie>0)for(w.iushrn(ie);ie-- >0;)(D.isOdd()||k.isOdd())&&(D.iadd(_),k.isub(V)),D.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()||q.isOdd())&&(B.iadd(_),q.isub(V)),B.iushrn(1),q.iushrn(1);w.cmp(E)>=0?(w.isub(E),D.isub(B),k.isub(q)):(E.isub(w),B.isub(D),q.isub(k))}return{a:B,b:q,gcd:E.iushln($)}},o.prototype._invmp=function(g){r(g.negative===0),r(!g.isZero());var w=this,E=g.clone();w.negative!==0?w=w.umod(g):w=w.clone();for(var D=new o(1),k=new o(0),B=E.clone();w.cmpn(1)>0&&E.cmpn(1)>0;){for(var q=0,$=1;(w.words[0]&$)===0&&q<26;++q,$<<=1);if(q>0)for(w.iushrn(q);q-- >0;)D.isOdd()&&D.iadd(B),D.iushrn(1);for(var _=0,V=1;(E.words[0]&V)===0&&_<26;++_,V<<=1);if(_>0)for(E.iushrn(_);_-- >0;)k.isOdd()&&k.iadd(B),k.iushrn(1);w.cmp(E)>=0?(w.isub(E),D.isub(k)):(E.isub(w),k.isub(D))}var ie;return w.cmpn(1)===0?ie=D:ie=k,ie.cmpn(0)<0&&ie.iadd(g),ie},o.prototype.gcd=function(g){if(this.isZero())return g.abs();if(g.isZero())return this.abs();var w=this.clone(),E=g.clone();w.negative=0,E.negative=0;for(var D=0;w.isEven()&&E.isEven();D++)w.iushrn(1),E.iushrn(1);do{for(;w.isEven();)w.iushrn(1);for(;E.isEven();)E.iushrn(1);var k=w.cmp(E);if(k<0){var B=w;w=E,E=B}else if(k===0||E.cmpn(1)===0)break;w.isub(E)}while(!0);return E.iushln(D)},o.prototype.invm=function(g){return this.egcd(g).a.umod(g)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(g){return this.words[0]&g},o.prototype.bincn=function(g){r(typeof g=="number");var w=g%26,E=(g-w)/26,D=1<<w;if(this.length<=E)return this._expand(E+1),this.words[E]|=D,this;for(var k=D,B=E;k!==0&&B<this.length;B++){var q=this.words[B]|0;q+=k,k=q>>>26,q&=67108863,this.words[B]=q}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(g){var w=g<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;this._strip();var E;if(this.length>1)E=1;else{w&&(g=-g),r(g<=67108863,"Number is too big");var D=this.words[0]|0;E=D===g?0:D<g?-1:1}return this.negative!==0?-E|0:E},o.prototype.cmp=function(g){if(this.negative!==0&&g.negative===0)return-1;if(this.negative===0&&g.negative!==0)return 1;var w=this.ucmp(g);return this.negative!==0?-w|0:w},o.prototype.ucmp=function(g){if(this.length>g.length)return 1;if(this.length<g.length)return-1;for(var w=0,E=this.length-1;E>=0;E--){var D=this.words[E]|0,k=g.words[E]|0;if(D!==k){D<k?w=-1:D>k&&(w=1);break}}return w},o.prototype.gtn=function(g){return this.cmpn(g)===1},o.prototype.gt=function(g){return this.cmp(g)===1},o.prototype.gten=function(g){return this.cmpn(g)>=0},o.prototype.gte=function(g){return this.cmp(g)>=0},o.prototype.ltn=function(g){return this.cmpn(g)===-1},o.prototype.lt=function(g){return this.cmp(g)===-1},o.prototype.lten=function(g){return this.cmpn(g)<=0},o.prototype.lte=function(g){return this.cmp(g)<=0},o.prototype.eqn=function(g){return this.cmpn(g)===0},o.prototype.eq=function(g){return this.cmp(g)===0},o.red=function(g){return new fe(g)},o.prototype.toRed=function(g){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),g.convertTo(this)._forceRed(g)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(g){return this.red=g,this},o.prototype.forceRed=function(g){return r(!this.red,"Already a number in reduction context"),this._forceRed(g)},o.prototype.redAdd=function(g){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,g)},o.prototype.redIAdd=function(g){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,g)},o.prototype.redSub=function(g){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,g)},o.prototype.redISub=function(g){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,g)},o.prototype.redShl=function(g){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,g)},o.prototype.redMul=function(g){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,g),this.red.mul(this,g)},o.prototype.redIMul=function(g){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,g),this.red.imul(this,g)},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(g){return r(this.red&&!g.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,g)};var K={k256:null,p224:null,p192:null,p25519:null};function J(A,g){this.name=A,this.p=new o(g,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 g=new o(null);return g.words=new Array(Math.ceil(this.n/13)),g},J.prototype.ireduce=function(g){var w=g,E;do this.split(w,this.tmp),w=this.imulK(w),w=w.iadd(this.tmp),E=w.bitLength();while(E>this.n);var D=E<this.n?-1:w.ucmp(this.p);return D===0?(w.words[0]=0,w.length=1):D>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},J.prototype.split=function(g,w){g.iushrn(this.n,0,w)},J.prototype.imulK=function(g){return g.imul(this.k)};function j(){J.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(j,J),j.prototype.split=function(g,w){for(var E=4194303,D=Math.min(g.length,9),k=0;k<D;k++)w.words[k]=g.words[k];if(w.length=D,g.length<=9){g.words[0]=0,g.length=1;return}var B=g.words[9];for(w.words[w.length++]=B&E,k=10;k<g.length;k++){var q=g.words[k]|0;g.words[k-10]=(q&E)<<4|B>>>22,B=q}B>>>=22,g.words[k-10]=B,B===0&&g.length>10?g.length-=10:g.length-=9},j.prototype.imulK=function(g){g.words[g.length]=0,g.words[g.length+1]=0,g.length+=2;for(var w=0,E=0;E<g.length;E++){var D=g.words[E]|0;w+=D*977,g.words[E]=w&67108863,w=D*64+(w/67108864|0)}return g.words[g.length-1]===0&&(g.length--,g.words[g.length-1]===0&&g.length--),g};function Z(){J.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(Z,J);function le(){J.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(le,J);function me(){J.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(me,J),me.prototype.imulK=function(g){for(var w=0,E=0;E<g.length;E++){var D=(g.words[E]|0)*19+w,k=D&67108863;D>>>=26,g.words[E]=k,w=D}return w!==0&&(g.words[g.length++]=w),g},o._prime=function(g){if(K[g])return K[g];var w;if(g==="k256")w=new j;else if(g==="p224")w=new Z;else if(g==="p192")w=new le;else if(g==="p25519")w=new me;else throw new Error("Unknown prime "+g);return K[g]=w,w};function fe(A){if(typeof A=="string"){var g=o._prime(A);this.m=g.p,this.prime=g}else r(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}fe.prototype._verify1=function(g){r(g.negative===0,"red works only with positives"),r(g.red,"red works only with red numbers")},fe.prototype._verify2=function(g,w){r((g.negative|w.negative)===0,"red works only with positives"),r(g.red&&g.red===w.red,"red works only with red numbers")},fe.prototype.imod=function(g){return this.prime?this.prime.ireduce(g)._forceRed(this):(l(g,g.umod(this.m)._forceRed(this)),g)},fe.prototype.neg=function(g){return g.isZero()?g.clone():this.m.sub(g)._forceRed(this)},fe.prototype.add=function(g,w){this._verify2(g,w);var E=g.add(w);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},fe.prototype.iadd=function(g,w){this._verify2(g,w);var E=g.iadd(w);return E.cmp(this.m)>=0&&E.isub(this.m),E},fe.prototype.sub=function(g,w){this._verify2(g,w);var E=g.sub(w);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},fe.prototype.isub=function(g,w){this._verify2(g,w);var E=g.isub(w);return E.cmpn(0)<0&&E.iadd(this.m),E},fe.prototype.shl=function(g,w){return this._verify1(g),this.imod(g.ushln(w))},fe.prototype.imul=function(g,w){return this._verify2(g,w),this.imod(g.imul(w))},fe.prototype.mul=function(g,w){return this._verify2(g,w),this.imod(g.mul(w))},fe.prototype.isqr=function(g){return this.imul(g,g.clone())},fe.prototype.sqr=function(g){return this.mul(g,g)},fe.prototype.sqrt=function(g){if(g.isZero())return g.clone();var w=this.m.andln(3);if(r(w%2===1),w===3){var E=this.m.add(new o(1)).iushrn(2);return this.pow(g,E)}for(var D=this.m.subn(1),k=0;!D.isZero()&&D.andln(1)===0;)k++,D.iushrn(1);r(!D.isZero());var B=new o(1).toRed(this),q=B.redNeg(),$=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new o(2*_*_).toRed(this);this.pow(_,$).cmp(q)!==0;)_.redIAdd(q);for(var V=this.pow(_,D),ie=this.pow(g,D.addn(1).iushrn(1)),O=this.pow(g,D),Y=k;O.cmp(B)!==0;){for(var ne=O,ae=0;ne.cmp(B)!==0;ae++)ne=ne.redSqr();r(ae<Y);var he=this.pow(V,new o(1).iushln(Y-ae-1));ie=ie.redMul(he),V=he.redSqr(),O=O.redMul(V),Y=ae}return ie},fe.prototype.invm=function(g){var w=g._invmp(this.m);return w.negative!==0?(w.negative=0,this.imod(w).redNeg()):this.imod(w)},fe.prototype.pow=function(g,w){if(w.isZero())return new o(1).toRed(this);if(w.cmpn(1)===0)return g.clone();var E=4,D=new Array(1<<E);D[0]=new o(1).toRed(this),D[1]=g;for(var k=2;k<D.length;k++)D[k]=this.mul(D[k-1],g);var B=D[0],q=0,$=0,_=w.bitLength()%26;for(_===0&&(_=26),k=w.length-1;k>=0;k--){for(var V=w.words[k],ie=_-1;ie>=0;ie--){var O=V>>ie&1;if(B!==D[0]&&(B=this.sqr(B)),O===0&&q===0){$=0;continue}q<<=1,q|=O,$++,!($!==E&&(k!==0||ie!==0))&&(B=this.mul(B,D[q]),$=0,q=0)}_=26}return B},fe.prototype.convertTo=function(g){var w=g.umod(this.m);return w===g?w.clone():w},fe.prototype.convertFrom=function(g){var w=g.clone();return w.red=null,w},o.mont=function(g){return new W(g)};function W(A){fe.call(this,A),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(W,fe),W.prototype.convertTo=function(g){return this.imod(g.ushln(this.shift))},W.prototype.convertFrom=function(g){var w=this.imod(g.mul(this.rinv));return w.red=null,w},W.prototype.imul=function(g,w){if(g.isZero()||w.isZero())return g.words[0]=0,g.length=1,g;var E=g.imul(w),D=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(D).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)},W.prototype.mul=function(g,w){if(g.isZero()||w.isZero())return new o(0)._forceRed(this);var E=g.mul(w),D=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=E.isub(D).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)},W.prototype.invm=function(g){var w=this.imod(g._invmp(this.m).mul(this.r2));return w._forceRed(this)}})(typeof iv>"u"||iv,G3)});var jE=_e(Nt=>{"use strict";c();d();f();function wv(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<jh(o,t))e[n]=t,e[r]=o,r=n;else break e}}function _o(e){return e.length===0?null:e[0]}function Hh(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],u=s+1,l=e[u];if(0>jh(a,r))u<o&&0>jh(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<o&&0>jh(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function jh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(NE=performance,Nt.unstable_now=function(){return NE.now()}):(gv=Date,RE=gv.now(),Nt.unstable_now=function(){return gv.now()-RE});var NE,gv,RE,Vo=[],as=[],yV=1,eo=null,jr=3,qh=!1,ia=!1,nf=!1,FE=typeof setTimeout=="function"?setTimeout:null,UE=typeof clearTimeout=="function"?clearTimeout:null,kE=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function bv(e){for(var t=_o(as);t!==null;){if(t.callback===null)Hh(as);else if(t.startTime<=e)Hh(as),t.sortIndex=t.expirationTime,wv(Vo,t);else break;t=_o(as)}}function _v(e){if(nf=!1,bv(e),!ia)if(_o(Vo)!==null)ia=!0,Ev(xv);else{var t=_o(as);t!==null&&Sv(_v,t.startTime-e)}}function xv(e,t){ia=!1,nf&&(nf=!1,UE(of),of=-1),qh=!0;var r=jr;try{for(bv(t),eo=_o(Vo);eo!==null&&(!(eo.expirationTime>t)||e&&!VE());){var n=eo.callback;if(typeof n=="function"){eo.callback=null,jr=eo.priorityLevel;var o=n(eo.expirationTime<=t);t=Nt.unstable_now(),typeof o=="function"?eo.callback=o:eo===_o(Vo)&&Hh(Vo),bv(t)}else Hh(Vo);eo=_o(Vo)}if(eo!==null)var i=!0;else{var s=_o(as);s!==null&&Sv(_v,s.startTime-t),i=!1}return i}finally{eo=null,jr=r,qh=!1}}var Kh=!1,zh=null,of=-1,$E=5,BE=-1;function VE(){return!(Nt.unstable_now()-BE<$E)}function yv(){if(zh!==null){var e=Nt.unstable_now();BE=e;var t=!0;try{t=zh(!0,e)}finally{t?rf():(Kh=!1,zh=null)}}else Kh=!1}var rf;typeof kE=="function"?rf=function(){kE(yv)}:typeof MessageChannel<"u"?(vv=new MessageChannel,LE=vv.port2,vv.port1.onmessage=yv,rf=function(){LE.postMessage(null)}):rf=function(){FE(yv,0)};var vv,LE;function Ev(e){zh=e,Kh||(Kh=!0,rf())}function Sv(e,t){of=FE(function(){e(Nt.unstable_now())},t)}Nt.unstable_IdlePriority=5;Nt.unstable_ImmediatePriority=1;Nt.unstable_LowPriority=4;Nt.unstable_NormalPriority=3;Nt.unstable_Profiling=null;Nt.unstable_UserBlockingPriority=2;Nt.unstable_cancelCallback=function(e){e.callback=null};Nt.unstable_continueExecution=function(){ia||qh||(ia=!0,Ev(xv))};Nt.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"):$E=0<e?Math.floor(1e3/e):5};Nt.unstable_getCurrentPriorityLevel=function(){return jr};Nt.unstable_getFirstCallbackNode=function(){return _o(Vo)};Nt.unstable_next=function(e){switch(jr){case 1:case 2:case 3:var t=3;break;default:t=jr}var r=jr;jr=t;try{return e()}finally{jr=r}};Nt.unstable_pauseExecution=function(){};Nt.unstable_requestPaint=function(){};Nt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=jr;jr=e;try{return t()}finally{jr=r}};Nt.unstable_scheduleCallback=function(e,t,r){var n=Nt.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:yV++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,wv(as,e),_o(Vo)===null&&e===_o(as)&&(nf?(UE(of),of=-1):nf=!0,Sv(_v,r-n))):(e.sortIndex=o,wv(Vo,e),ia||qh||(ia=!0,Ev(xv))),e};Nt.unstable_shouldYield=VE;Nt.unstable_wrapCallback=function(e){var t=jr;return function(){var r=jr;jr=t;try{return e.apply(this,arguments)}finally{jr=r}}}});var HE=_e((Zae,zE)=>{"use strict";c();d();f();zE.exports=jE()});var Y8=_e(Vn=>{"use strict";c();d();f();var X5=ve(),$n=HE();function be(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 J5=new Set,Tf={};function va(e,t){zu(e,t),zu(e+"Capture",t)}function zu(e,t){for(Tf[e]=t,e=0;e<t.length;e++)J5.add(t[e])}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zv=Object.prototype.hasOwnProperty,vV=/^[: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]*$/,qE={},KE={};function wV(e){return Zv.call(KE,e)?!0:Zv.call(qE,e)?!1:vV.test(e)?KE[e]=!0:(qE[e]=!0,!1)}function bV(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 _V(e,t,r,n){if(t===null||typeof t>"u"||bV(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 an(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 Ar={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ar[e]=new an(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ar[t]=new an(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ar[e]=new an(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ar[e]=new an(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){Ar[e]=new an(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ar[e]=new an(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ar[e]=new an(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ar[e]=new an(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ar[e]=new an(e,5,!1,e.toLowerCase(),null,!1,!1)});var $2=/[\-:]([a-z])/g;function B2(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($2,B2);Ar[t]=new an(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($2,B2);Ar[t]=new an(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($2,B2);Ar[t]=new an(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ar[e]=new an(e,1,!1,e.toLowerCase(),null,!1,!1)});Ar.xlinkHref=new an("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ar[e]=new an(e,1,!1,e.toLowerCase(),null,!0,!0)});function V2(e,t,r,n){var o=Ar.hasOwnProperty(t)?Ar[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_V(t,r,o,n)&&(r=null),n||o===null?wV(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 _i=X5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zh=Symbol.for("react.element"),Cu=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),j2=Symbol.for("react.strict_mode"),Gv=Symbol.for("react.profiler"),Q5=Symbol.for("react.provider"),eS=Symbol.for("react.context"),z2=Symbol.for("react.forward_ref"),Wv=Symbol.for("react.suspense"),Yv=Symbol.for("react.suspense_list"),H2=Symbol.for("react.memo"),ls=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var tS=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var ZE=Symbol.iterator;function sf(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var Xt=Object.assign,Cv;function pf(e){if(Cv===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Cv=t&&t[1]||""}return`
2
+ `+Cv+e}var Mv=!1;function Tv(e,t){if(!e||Mv)return"";Mv=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var o=l.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 u=`
5
+ `+o[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Mv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?pf(e):""}function xV(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=Tv(e.type,!1),e;case 11:return e=Tv(e.type.render,!1),e;case 1:return e=Tv(e.type,!0),e;default:return""}}function Xv(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 Mu:return"Fragment";case Cu:return"Portal";case Gv:return"Profiler";case j2:return"StrictMode";case Wv:return"Suspense";case Yv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eS:return(e.displayName||"Context")+".Consumer";case Q5:return(e._context.displayName||"Context")+".Provider";case z2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H2:return t=e.displayName||null,t!==null?t:Xv(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return Xv(e(t))}catch(r){}}return null}function EV(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 Xv(t);case 8:return t===j2?"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 Es(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SV(e){var t=rS(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 Gh(e){e._valueTracker||(e._valueTracker=SV(e))}function nS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=rS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function xp(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 Jv(e,t){var r=t.checked;return Xt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function GE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Es(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 oS(e,t){t=t.checked,t!=null&&V2(e,"checked",t,!1)}function Qv(e,t){oS(e,t);var r=Es(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")?e2(e,t.type,r):t.hasOwnProperty("defaultValue")&&e2(e,t.type,Es(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function WE(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 e2(e,t,r){(t!=="number"||xp(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var mf=Array.isArray;function Fu(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=""+Es(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 t2(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(be(91));return Xt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function YE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(be(92));if(mf(r)){if(1<r.length)throw Error(be(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Es(r)}}function iS(e,t){var r=Es(t.value),n=Es(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 XE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sS(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 r2(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wh,aS=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(Wh=Wh||document.createElement("div"),Wh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vf={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},CV=["Webkit","ms","Moz","O"];Object.keys(vf).forEach(function(e){CV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vf[t]=vf[e]})});function uS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vf.hasOwnProperty(e)&&vf[e]?(""+t).trim():t+"px"}function lS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=uS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var MV=Xt({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 n2(e,t){if(t){if(MV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(be(62))}}function o2(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 i2=null;function q2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var s2=null,Uu=null,$u=null;function JE(e){if(e=Kf(e)){if(typeof s2!="function")throw Error(be(280));var t=e.stateNode;t&&(t=Yp(t),s2(e.stateNode,e.type,t))}}function cS(e){Uu?$u?$u.push(e):$u=[e]:Uu=e}function fS(){if(Uu){var e=Uu,t=$u;if($u=Uu=null,JE(e),t)for(e=0;e<t.length;e++)JE(t[e])}}function dS(e,t){return e(t)}function hS(){}var Pv=!1;function pS(e,t,r){if(Pv)return e(t,r);Pv=!0;try{return dS(e,t,r)}finally{Pv=!1,(Uu!==null||$u!==null)&&(hS(),fS())}}function Of(e,t){var r=e.stateNode;if(r===null)return null;var n=Yp(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(be(231,t,typeof r));return r}var a2=!1;if(yi)try{Eu={},Object.defineProperty(Eu,"passive",{get:function(){a2=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch(e){a2=!1}var Eu;function TV(e,t,r,n,o,i,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(p){this.onError(p)}}var wf=!1,Ep=null,Sp=!1,u2=null,PV={onError:function(e){wf=!0,Ep=e}};function OV(e,t,r,n,o,i,s,a,u){wf=!1,Ep=null,TV.apply(PV,arguments)}function DV(e,t,r,n,o,i,s,a,u){if(OV.apply(this,arguments),wf){if(wf){var l=Ep;wf=!1,Ep=null}else throw Error(be(198));Sp||(Sp=!0,u2=l)}}function wa(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 mS(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 QE(e){if(wa(e)!==e)throw Error(be(188))}function IV(e){var t=e.alternate;if(!t){if(t=wa(e),t===null)throw Error(be(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 QE(o),e;if(i===n)return QE(o),t;i=i.sibling}throw Error(be(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(be(189))}}if(r.alternate!==n)throw Error(be(190))}if(r.tag!==3)throw Error(be(188));return r.stateNode.current===r?e:t}function gS(e){return e=IV(e),e!==null?yS(e):null}function yS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yS(e);if(t!==null)return t;e=e.sibling}return null}var vS=$n.unstable_scheduleCallback,e5=$n.unstable_cancelCallback,AV=$n.unstable_shouldYield,NV=$n.unstable_requestPaint,ir=$n.unstable_now,RV=$n.unstable_getCurrentPriorityLevel,K2=$n.unstable_ImmediatePriority,wS=$n.unstable_UserBlockingPriority,Cp=$n.unstable_NormalPriority,kV=$n.unstable_LowPriority,bS=$n.unstable_IdlePriority,Kp=null,qo=null;function LV(e){if(qo&&typeof qo.onCommitFiberRoot=="function")try{qo.onCommitFiberRoot(Kp,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Mo=Math.clz32?Math.clz32:$V,FV=Math.log,UV=Math.LN2;function $V(e){return e>>>=0,e===0?32:31-(FV(e)/UV|0)|0}var Yh=64,Xh=4194304;function gf(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 Mp(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=gf(a):(i&=s,i!==0&&(n=gf(i)))}else s=r&~o,s!==0?n=gf(s):i!==0&&(n=gf(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-Mo(t),o=1<<r,n|=e[r],t&=~o;return n}function BV(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-Mo(i),a=1<<s,u=o[s];u===-1?((a&r)===0||(a&n)!==0)&&(o[s]=BV(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function l2(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _S(){var e=Yh;return Yh<<=1,(Yh&4194240)===0&&(Yh=64),e}function Ov(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Hf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mo(t),e[t]=r}function jV(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-Mo(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Z2(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Mo(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var Tt=0;function xS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ES,G2,SS,CS,MS,c2=!1,Jh=[],ms=null,gs=null,ys=null,Df=new Map,If=new Map,fs=[],zV="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 t5(e,t){switch(e){case"focusin":case"focusout":ms=null;break;case"dragenter":case"dragleave":gs=null;break;case"mouseover":case"mouseout":ys=null;break;case"pointerover":case"pointerout":Df.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function af(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=Kf(t),t!==null&&G2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function HV(e,t,r,n,o){switch(t){case"focusin":return ms=af(ms,e,t,r,n,o),!0;case"dragenter":return gs=af(gs,e,t,r,n,o),!0;case"mouseover":return ys=af(ys,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Df.set(i,af(Df.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,af(If.get(i)||null,e,t,r,n,o)),!0}return!1}function TS(e){var t=ua(e.target);if(t!==null){var r=wa(t);if(r!==null){if(t=r.tag,t===13){if(t=mS(r),t!==null){e.blockedOn=t,MS(e.priority,function(){SS(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 dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=f2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);i2=n,r.target.dispatchEvent(n),i2=null}else return t=Kf(r),t!==null&&G2(t),e.blockedOn=r,!1;t.shift()}return!0}function r5(e,t,r){dp(e)&&r.delete(t)}function qV(){c2=!1,ms!==null&&dp(ms)&&(ms=null),gs!==null&&dp(gs)&&(gs=null),ys!==null&&dp(ys)&&(ys=null),Df.forEach(r5),If.forEach(r5)}function uf(e,t){e.blockedOn===t&&(e.blockedOn=null,c2||(c2=!0,$n.unstable_scheduleCallback($n.unstable_NormalPriority,qV)))}function Af(e){function t(o){return uf(o,e)}if(0<Jh.length){uf(Jh[0],e);for(var r=1;r<Jh.length;r++){var n=Jh[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ms!==null&&uf(ms,e),gs!==null&&uf(gs,e),ys!==null&&uf(ys,e),Df.forEach(t),If.forEach(t),r=0;r<fs.length;r++)n=fs[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<fs.length&&(r=fs[0],r.blockedOn===null);)TS(r),r.blockedOn===null&&fs.shift()}var Bu=_i.ReactCurrentBatchConfig,Tp=!0;function KV(e,t,r,n){var o=Tt,i=Bu.transition;Bu.transition=null;try{Tt=1,W2(e,t,r,n)}finally{Tt=o,Bu.transition=i}}function ZV(e,t,r,n){var o=Tt,i=Bu.transition;Bu.transition=null;try{Tt=4,W2(e,t,r,n)}finally{Tt=o,Bu.transition=i}}function W2(e,t,r,n){if(Tp){var o=f2(e,t,r,n);if(o===null)Lv(e,t,n,Pp,r),t5(e,n);else if(HV(o,e,t,r,n))n.stopPropagation();else if(t5(e,n),t&4&&-1<zV.indexOf(e)){for(;o!==null;){var i=Kf(o);if(i!==null&&ES(i),i=f2(e,t,r,n),i===null&&Lv(e,t,n,Pp,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Lv(e,t,n,null,r)}}var Pp=null;function f2(e,t,r,n){if(Pp=null,e=q2(n),e=ua(e),e!==null)if(t=wa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=mS(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 Pp=e,null}function PS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(RV()){case K2:return 1;case wS:return 4;case Cp:case kV:return 16;case bS:return 536870912;default:return 16}default:return 16}}var hs=null,Y2=null,hp=null;function OS(){if(hp)return hp;var e,t=Y2,r=t.length,n,o="value"in hs?hs.value:hs.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 hp=o.slice(e,1<n?1-n:void 0)}function pp(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 Qh(){return!0}function n5(){return!1}function Bn(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)?Qh:n5,this.isPropagationStopped=n5,this}return Xt(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=Qh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Qh)},persist:function(){},isPersistent:Qh}),t}var Yu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},X2=Bn(Yu),qf=Xt({},Yu,{view:0,detail:0}),GV=Bn(qf),Dv,Iv,lf,Zp=Xt({},qf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J2,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!==lf&&(lf&&e.type==="mousemove"?(Dv=e.screenX-lf.screenX,Iv=e.screenY-lf.screenY):Iv=Dv=0,lf=e),Dv)},movementY:function(e){return"movementY"in e?e.movementY:Iv}}),o5=Bn(Zp),WV=Xt({},Zp,{dataTransfer:0}),YV=Bn(WV),XV=Xt({},qf,{relatedTarget:0}),Av=Bn(XV),JV=Xt({},Yu,{animationName:0,elapsedTime:0,pseudoElement:0}),QV=Bn(JV),ej=Xt({},Yu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tj=Bn(ej),rj=Xt({},Yu,{data:0}),i5=Bn(rj),nj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oj={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"},ij={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ij[e])?!!t[e]:!1}function J2(){return sj}var aj=Xt({},qf,{key:function(e){if(e.key){var t=nj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J2,charCode:function(e){return e.type==="keypress"?pp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uj=Bn(aj),lj=Xt({},Zp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),s5=Bn(lj),cj=Xt({},qf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J2}),fj=Bn(cj),dj=Xt({},Yu,{propertyName:0,elapsedTime:0,pseudoElement:0}),hj=Bn(dj),pj=Xt({},Zp,{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}),mj=Bn(pj),gj=[9,13,27,32],Q2=yi&&"CompositionEvent"in window,bf=null;yi&&"documentMode"in document&&(bf=document.documentMode);var yj=yi&&"TextEvent"in window&&!bf,DS=yi&&(!Q2||bf&&8<bf&&11>=bf),a5=String.fromCharCode(32),u5=!1;function IS(e,t){switch(e){case"keyup":return gj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tu=!1;function vj(e,t){switch(e){case"compositionend":return AS(t);case"keypress":return t.which!==32?null:(u5=!0,a5);case"textInput":return e=t.data,e===a5&&u5?null:e;default:return null}}function wj(e,t){if(Tu)return e==="compositionend"||!Q2&&IS(e,t)?(e=OS(),hp=Y2=hs=null,Tu=!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 DS&&t.locale!=="ko"?null:t.data;default:return null}}var bj={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 l5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bj[e.type]:t==="textarea"}function NS(e,t,r,n){cS(n),t=Op(t,"onChange"),0<t.length&&(r=new X2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var _f=null,Nf=null;function _j(e){HS(e,0)}function Gp(e){var t=Du(e);if(nS(t))return e}function xj(e,t){if(e==="change")return t}var RS=!1;yi&&(yi?(tp="oninput"in document,tp||(Nv=document.createElement("div"),Nv.setAttribute("oninput","return;"),tp=typeof Nv.oninput=="function"),ep=tp):ep=!1,RS=ep&&(!document.documentMode||9<document.documentMode));var ep,tp,Nv;function c5(){_f&&(_f.detachEvent("onpropertychange",kS),Nf=_f=null)}function kS(e){if(e.propertyName==="value"&&Gp(Nf)){var t=[];NS(t,Nf,e,q2(e)),pS(_j,t)}}function Ej(e,t,r){e==="focusin"?(c5(),_f=t,Nf=r,_f.attachEvent("onpropertychange",kS)):e==="focusout"&&c5()}function Sj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gp(Nf)}function Cj(e,t){if(e==="click")return Gp(t)}function Mj(e,t){if(e==="input"||e==="change")return Gp(t)}function Tj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Po=typeof Object.is=="function"?Object.is:Tj;function Rf(e,t){if(Po(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(!Zv.call(t,o)||!Po(e[o],t[o]))return!1}return!0}function f5(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function d5(e,t){var r=f5(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=f5(r)}}function LS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?LS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FS(){for(var e=window,t=xp();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=xp(e.document)}return t}function e6(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 Pj(e){var t=FS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&LS(r.ownerDocument.documentElement,r)){if(n!==null&&e6(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=d5(r,i);var s=d5(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 Oj=yi&&"documentMode"in document&&11>=document.documentMode,Pu=null,d2=null,xf=null,h2=!1;function h5(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;h2||Pu==null||Pu!==xp(n)||(n=Pu,"selectionStart"in n&&e6(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}),xf&&Rf(xf,n)||(xf=n,n=Op(d2,"onSelect"),0<n.length&&(t=new X2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Pu)))}function rp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ou={animationend:rp("Animation","AnimationEnd"),animationiteration:rp("Animation","AnimationIteration"),animationstart:rp("Animation","AnimationStart"),transitionend:rp("Transition","TransitionEnd")},Rv={},US={};yi&&(US=document.createElement("div").style,"AnimationEvent"in window||(delete Ou.animationend.animation,delete Ou.animationiteration.animation,delete Ou.animationstart.animation),"TransitionEvent"in window||delete Ou.transitionend.transition);function Wp(e){if(Rv[e])return Rv[e];if(!Ou[e])return e;var t=Ou[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in US)return Rv[e]=t[r];return e}var $S=Wp("animationend"),BS=Wp("animationiteration"),VS=Wp("animationstart"),jS=Wp("transitionend"),zS=new Map,p5="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 Cs(e,t){zS.set(e,t),va(t,[e])}for(np=0;np<p5.length;np++)op=p5[np],m5=op.toLowerCase(),g5=op[0].toUpperCase()+op.slice(1),Cs(m5,"on"+g5);var op,m5,g5,np;Cs($S,"onAnimationEnd");Cs(BS,"onAnimationIteration");Cs(VS,"onAnimationStart");Cs("dblclick","onDoubleClick");Cs("focusin","onFocus");Cs("focusout","onBlur");Cs(jS,"onTransitionEnd");zu("onMouseEnter",["mouseout","mouseover"]);zu("onMouseLeave",["mouseout","mouseover"]);zu("onPointerEnter",["pointerout","pointerover"]);zu("onPointerLeave",["pointerout","pointerover"]);va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));va("onBeforeInput",["compositionend","keypress","textInput","paste"]);va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yf="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(" "),Dj=new Set("cancel close invalid load scroll toggle".split(" ").concat(yf));function y5(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,DV(n,t,void 0,e),e.currentTarget=null}function HS(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],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==i&&o.isPropagationStopped())break e;y5(o,a,l),i=u}else for(s=0;s<n.length;s++){if(a=n[s],u=a.instance,l=a.currentTarget,a=a.listener,u!==i&&o.isPropagationStopped())break e;y5(o,a,l),i=u}}}if(Sp)throw e=u2,Sp=!1,u2=null,e}function $t(e,t){var r=t[v2];r===void 0&&(r=t[v2]=new Set);var n=e+"__bubble";r.has(n)||(qS(t,e,2,!1),r.add(n))}function kv(e,t,r){var n=0;t&&(n|=4),qS(r,e,n,t)}var ip="_reactListening"+Math.random().toString(36).slice(2);function kf(e){if(!e[ip]){e[ip]=!0,J5.forEach(function(r){r!=="selectionchange"&&(Dj.has(r)||kv(r,!1,e),kv(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ip]||(t[ip]=!0,kv("selectionchange",!1,t))}}function qS(e,t,r,n){switch(PS(t)){case 1:var o=KV;break;case 4:o=ZV;break;default:o=W2}r=o.bind(null,t,r,e),o=void 0,!a2||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 Lv(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 u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;s=s.return}for(;a!==null;){if(s=ua(a),s===null)return;if(u=s.tag,u===5||u===6){n=i=s;continue e}a=a.parentNode}}n=n.return}pS(function(){var l=i,p=q2(r),h=[];e:{var y=zS.get(e);if(y!==void 0){var b=X2,v=e;switch(e){case"keypress":if(pp(r)===0)break e;case"keydown":case"keyup":b=uj;break;case"focusin":v="focus",b=Av;break;case"focusout":v="blur",b=Av;break;case"beforeblur":case"afterblur":b=Av;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":b=o5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=YV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=fj;break;case $S:case BS:case VS:b=QV;break;case jS:b=hj;break;case"scroll":b=GV;break;case"wheel":b=mj;break;case"copy":case"cut":case"paste":b=tj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=s5}var C=(t&4)!==0,N=!C&&e==="scroll",M=C?y!==null?y+"Capture":null:y;C=[];for(var T=l,I;T!==null;){I=T;var U=I.stateNode;if(I.tag===5&&U!==null&&(I=U,M!==null&&(U=Of(T,M),U!=null&&C.push(Lf(T,U,I)))),N)break;T=T.return}0<C.length&&(y=new b(y,v,null,r,p),h.push({event:y,listeners:C}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",y&&r!==i2&&(v=r.relatedTarget||r.fromElement)&&(ua(v)||v[vi]))break e;if((b||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,b?(v=r.relatedTarget||r.toElement,b=l,v=v?ua(v):null,v!==null&&(N=wa(v),v!==N||v.tag!==5&&v.tag!==6)&&(v=null)):(b=null,v=l),b!==v)){if(C=o5,U="onMouseLeave",M="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(C=s5,U="onPointerLeave",M="onPointerEnter",T="pointer"),N=b==null?y:Du(b),I=v==null?y:Du(v),y=new C(U,T+"leave",b,r,p),y.target=N,y.relatedTarget=I,U=null,ua(p)===l&&(C=new C(M,T+"enter",v,r,p),C.target=I,C.relatedTarget=N,U=C),N=U,b&&v)t:{for(C=b,M=v,T=0,I=C;I;I=Su(I))T++;for(I=0,U=M;U;U=Su(U))I++;for(;0<T-I;)C=Su(C),T--;for(;0<I-T;)M=Su(M),I--;for(;T--;){if(C===M||M!==null&&C===M.alternate)break t;C=Su(C),M=Su(M)}C=null}else C=null;b!==null&&v5(h,y,b,C,!1),v!==null&&N!==null&&v5(h,N,v,C,!0)}}e:{if(y=l?Du(l):window,b=y.nodeName&&y.nodeName.toLowerCase(),b==="select"||b==="input"&&y.type==="file")var K=xj;else if(l5(y))if(RS)K=Mj;else{K=Sj;var J=Ej}else(b=y.nodeName)&&b.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(K=Cj);if(K&&(K=K(e,l))){NS(h,K,r,p);break e}J&&J(e,y,l),e==="focusout"&&(J=y._wrapperState)&&J.controlled&&y.type==="number"&&e2(y,"number",y.value)}switch(J=l?Du(l):window,e){case"focusin":(l5(J)||J.contentEditable==="true")&&(Pu=J,d2=l,xf=null);break;case"focusout":xf=d2=Pu=null;break;case"mousedown":h2=!0;break;case"contextmenu":case"mouseup":case"dragend":h2=!1,h5(h,r,p);break;case"selectionchange":if(Oj)break;case"keydown":case"keyup":h5(h,r,p)}var j;if(Q2)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else Tu?IS(e,r)&&(Z="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Z="onCompositionStart");Z&&(DS&&r.locale!=="ko"&&(Tu||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&Tu&&(j=OS()):(hs=p,Y2="value"in hs?hs.value:hs.textContent,Tu=!0)),J=Op(l,Z),0<J.length&&(Z=new i5(Z,e,null,r,p),h.push({event:Z,listeners:J}),j?Z.data=j:(j=AS(r),j!==null&&(Z.data=j)))),(j=yj?vj(e,r):wj(e,r))&&(l=Op(l,"onBeforeInput"),0<l.length&&(p=new i5("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=j))}HS(h,t)})}function Lf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Op(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Of(e,r),i!=null&&n.unshift(Lf(e,i,o)),i=Of(e,t),i!=null&&n.push(Lf(e,i,o))),e=e.return}return n}function Su(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function v5(e,t,r,n,o){for(var i=t._reactName,s=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,o?(u=Of(r,i),u!=null&&s.unshift(Lf(r,u,a))):o||(u=Of(r,i),u!=null&&s.push(Lf(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var Ij=/\r\n?/g,Aj=/\u0000|\uFFFD/g;function w5(e){return(typeof e=="string"?e:""+e).replace(Ij,`
6
+ `).replace(Aj,"")}function sp(e,t,r){if(t=w5(t),w5(e)!==t&&r)throw Error(be(425))}function Dp(){}var p2=null,m2=null;function g2(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 y2=typeof setTimeout=="function"?setTimeout:void 0,Nj=typeof clearTimeout=="function"?clearTimeout:void 0,b5=typeof Promise=="function"?Promise:void 0,Rj=typeof queueMicrotask=="function"?queueMicrotask:typeof b5<"u"?function(e){return b5.resolve(null).then(e).catch(kj)}:y2;function kj(e){setTimeout(function(){throw e})}function Fv(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),Af(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Af(t)}function vs(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 _5(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 Xu=Math.random().toString(36).slice(2),Ho="__reactFiber$"+Xu,Ff="__reactProps$"+Xu,vi="__reactContainer$"+Xu,v2="__reactEvents$"+Xu,Lj="__reactListeners$"+Xu,Fj="__reactHandles$"+Xu;function ua(e){var t=e[Ho];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vi]||r[Ho]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=_5(e);e!==null;){if(r=e[Ho])return r;e=_5(e)}return t}e=r,r=e.parentNode}return null}function Kf(e){return e=e[Ho]||e[vi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Du(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(be(33))}function Yp(e){return e[Ff]||null}var w2=[],Iu=-1;function Ms(e){return{current:e}}function Bt(e){0>Iu||(e.current=w2[Iu],w2[Iu]=null,Iu--)}function Rt(e,t){Iu++,w2[Iu]=e.current,e.current=t}var Ss={},Kr=Ms(Ss),En=Ms(!1),ha=Ss;function Hu(e,t){var r=e.type.contextTypes;if(!r)return Ss;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 Sn(e){return e=e.childContextTypes,e!=null}function Ip(){Bt(En),Bt(Kr)}function x5(e,t,r){if(Kr.current!==Ss)throw Error(be(168));Rt(Kr,t),Rt(En,r)}function KS(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(be(108,EV(e)||"Unknown",o));return Xt({},r,n)}function Ap(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ss,ha=Kr.current,Rt(Kr,e),Rt(En,En.current),!0}function E5(e,t,r){var n=e.stateNode;if(!n)throw Error(be(169));r?(e=KS(e,t,ha),n.__reactInternalMemoizedMergedChildContext=e,Bt(En),Bt(Kr),Rt(Kr,e)):Bt(En),Rt(En,r)}var hi=null,Xp=!1,Uv=!1;function ZS(e){hi===null?hi=[e]:hi.push(e)}function Uj(e){Xp=!0,ZS(e)}function Ts(){if(!Uv&&hi!==null){Uv=!0;var e=0,t=Tt;try{var r=hi;for(Tt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}hi=null,Xp=!1}catch(o){throw hi!==null&&(hi=hi.slice(e+1)),vS(K2,Ts),o}finally{Tt=t,Uv=!1}}return null}var Au=[],Nu=0,Np=null,Rp=0,to=[],ro=0,pa=null,pi=1,mi="";function sa(e,t){Au[Nu++]=Rp,Au[Nu++]=Np,Np=e,Rp=t}function GS(e,t,r){to[ro++]=pi,to[ro++]=mi,to[ro++]=pa,pa=e;var n=pi;e=mi;var o=32-Mo(n)-1;n&=~(1<<o),r+=1;var i=32-Mo(t)+o;if(30<i){var s=o-o%5;i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,pi=1<<32-Mo(t)+o|r<<o|n,mi=i+e}else pi=1<<i|r<<o|n,mi=e}function t6(e){e.return!==null&&(sa(e,1),GS(e,1,0))}function r6(e){for(;e===Np;)Np=Au[--Nu],Au[Nu]=null,Rp=Au[--Nu],Au[Nu]=null;for(;e===pa;)pa=to[--ro],to[ro]=null,mi=to[--ro],to[ro]=null,pi=to[--ro],to[ro]=null}var Un=null,Fn=null,qt=!1,Co=null;function WS(e,t){var r=no(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 S5(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,Un=e,Fn=vs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Un=e,Fn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=pa!==null?{id:pi,overflow:mi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=no(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Un=e,Fn=null,!0):!1;default:return!1}}function b2(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _2(e){if(qt){var t=Fn;if(t){var r=t;if(!S5(e,t)){if(b2(e))throw Error(be(418));t=vs(r.nextSibling);var n=Un;t&&S5(e,t)?WS(n,r):(e.flags=e.flags&-4097|2,qt=!1,Un=e)}}else{if(b2(e))throw Error(be(418));e.flags=e.flags&-4097|2,qt=!1,Un=e}}}function C5(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Un=e}function ap(e){if(e!==Un)return!1;if(!qt)return C5(e),qt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!g2(e.type,e.memoizedProps)),t&&(t=Fn)){if(b2(e))throw YS(),Error(be(418));for(;t;)WS(e,t),t=vs(t.nextSibling)}if(C5(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(be(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Fn=vs(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Fn=null}}else Fn=Un?vs(e.stateNode.nextSibling):null;return!0}function YS(){for(var e=Fn;e;)e=vs(e.nextSibling)}function qu(){Fn=Un=null,qt=!1}function n6(e){Co===null?Co=[e]:Co.push(e)}var $j=_i.ReactCurrentBatchConfig;function Eo(e,t){if(e&&e.defaultProps){t=Xt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var kp=Ms(null),Lp=null,Ru=null,o6=null;function i6(){o6=Ru=Lp=null}function s6(e){var t=kp.current;Bt(kp),e._currentValue=t}function x2(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 Vu(e,t){Lp=e,o6=Ru=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(xn=!0),e.firstContext=null)}function io(e){var t=e._currentValue;if(o6!==e)if(e={context:e,memoizedValue:t,next:null},Ru===null){if(Lp===null)throw Error(be(308));Ru=e,Lp.dependencies={lanes:0,firstContext:e}}else Ru=Ru.next=e;return t}var la=null;function a6(e){la===null?la=[e]:la.push(e)}function XS(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,a6(t)):(r.next=o.next,o.next=r),t.interleaved=r,wi(e,n)}function wi(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 cs=!1;function u6(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ws(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,wi(e,r)}return o=n.interleaved,o===null?(t.next=t,a6(n)):(t.next=o.next,o.next=t),n.interleaved=t,wi(e,r)}function mp(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,Z2(e,r)}}function M5(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 Fp(e,t,r,n){var o=e.updateQueue;cs=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?i=l:s.next=l,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=u))}if(i!==null){var h=o.baseState;s=0,p=l=u=null,a=i;do{var y=a.lane,b=a.eventTime;if((n&y)===y){p!==null&&(p=p.next={eventTime:b,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,C=a;switch(y=t,b=r,C.tag){case 1:if(v=C.payload,typeof v=="function"){h=v.call(b,h,y);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=C.payload,y=typeof v=="function"?v.call(b,h,y):v,y==null)break e;h=Xt({},h,y);break e;case 2:cs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=o.effects,y===null?o.effects=[a]:y.push(a))}else b={eventTime:b,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=b,u=h):p=p.next=b,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(p===null&&(u=h),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=p,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);ga|=s,e.lanes=s,e.memoizedState=h}}function T5(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(be(191,o));o.call(n)}}}var QS=new X5.Component().refs;function E2(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Xt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Jp={isMounted:function(e){return(e=e._reactInternals)?wa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=sn(),o=_s(e),i=gi(n,o);i.payload=t,r!=null&&(i.callback=r),t=ws(e,i,o),t!==null&&(To(t,e,o,n),mp(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=sn(),o=_s(e),i=gi(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=ws(e,i,o),t!==null&&(To(t,e,o,n),mp(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),n=_s(e),o=gi(r,n);o.tag=2,t!=null&&(o.callback=t),t=ws(e,o,n),t!==null&&(To(t,e,n,r),mp(t,e,n))}};function P5(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?!Rf(r,n)||!Rf(o,i):!0}function e8(e,t,r){var n=!1,o=Ss,i=t.contextType;return typeof i=="object"&&i!==null?i=io(i):(o=Sn(t)?ha:Kr.current,n=t.contextTypes,i=(n=n!=null)?Hu(e,o):Ss),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jp,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function O5(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&&Jp.enqueueReplaceState(t,t.state,null)}function S2(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=QS,u6(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=io(i):(i=Sn(t)?ha:Kr.current,o.context=Hu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(E2(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&&Jp.enqueueReplaceState(o,o.state,null),Fp(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function cf(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(be(309));var n=r.stateNode}if(!n)throw Error(be(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===QS&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(be(284));if(!r._owner)throw Error(be(290,e))}return e}function up(e,t){throw e=Object.prototype.toString.call(t),Error(be(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function D5(e){var t=e._init;return t(e._payload)}function t8(e){function t(M,T){if(e){var I=M.deletions;I===null?(M.deletions=[T],M.flags|=16):I.push(T)}}function r(M,T){if(!e)return null;for(;T!==null;)t(M,T),T=T.sibling;return null}function n(M,T){for(M=new Map;T!==null;)T.key!==null?M.set(T.key,T):M.set(T.index,T),T=T.sibling;return M}function o(M,T){return M=xs(M,T),M.index=0,M.sibling=null,M}function i(M,T,I){return M.index=I,e?(I=M.alternate,I!==null?(I=I.index,I<T?(M.flags|=2,T):I):(M.flags|=2,T)):(M.flags|=1048576,T)}function s(M){return e&&M.alternate===null&&(M.flags|=2),M}function a(M,T,I,U){return T===null||T.tag!==6?(T=qv(I,M.mode,U),T.return=M,T):(T=o(T,I),T.return=M,T)}function u(M,T,I,U){var K=I.type;return K===Mu?p(M,T,I.props.children,U,I.key):T!==null&&(T.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ls&&D5(K)===T.type)?(U=o(T,I.props),U.ref=cf(M,T,I),U.return=M,U):(U=_p(I.type,I.key,I.props,null,M.mode,U),U.ref=cf(M,T,I),U.return=M,U)}function l(M,T,I,U){return T===null||T.tag!==4||T.stateNode.containerInfo!==I.containerInfo||T.stateNode.implementation!==I.implementation?(T=Kv(I,M.mode,U),T.return=M,T):(T=o(T,I.children||[]),T.return=M,T)}function p(M,T,I,U,K){return T===null||T.tag!==7?(T=da(I,M.mode,U,K),T.return=M,T):(T=o(T,I),T.return=M,T)}function h(M,T,I){if(typeof T=="string"&&T!==""||typeof T=="number")return T=qv(""+T,M.mode,I),T.return=M,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Zh:return I=_p(T.type,T.key,T.props,null,M.mode,I),I.ref=cf(M,null,T),I.return=M,I;case Cu:return T=Kv(T,M.mode,I),T.return=M,T;case ls:var U=T._init;return h(M,U(T._payload),I)}if(mf(T)||sf(T))return T=da(T,M.mode,I,null),T.return=M,T;up(M,T)}return null}function y(M,T,I,U){var K=T!==null?T.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return K!==null?null:a(M,T,""+I,U);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Zh:return I.key===K?u(M,T,I,U):null;case Cu:return I.key===K?l(M,T,I,U):null;case ls:return K=I._init,y(M,T,K(I._payload),U)}if(mf(I)||sf(I))return K!==null?null:p(M,T,I,U,null);up(M,I)}return null}function b(M,T,I,U,K){if(typeof U=="string"&&U!==""||typeof U=="number")return M=M.get(I)||null,a(T,M,""+U,K);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Zh:return M=M.get(U.key===null?I:U.key)||null,u(T,M,U,K);case Cu:return M=M.get(U.key===null?I:U.key)||null,l(T,M,U,K);case ls:var J=U._init;return b(M,T,I,J(U._payload),K)}if(mf(U)||sf(U))return M=M.get(I)||null,p(T,M,U,K,null);up(T,U)}return null}function v(M,T,I,U){for(var K=null,J=null,j=T,Z=T=0,le=null;j!==null&&Z<I.length;Z++){j.index>Z?(le=j,j=null):le=j.sibling;var me=y(M,j,I[Z],U);if(me===null){j===null&&(j=le);break}e&&j&&me.alternate===null&&t(M,j),T=i(me,T,Z),J===null?K=me:J.sibling=me,J=me,j=le}if(Z===I.length)return r(M,j),qt&&sa(M,Z),K;if(j===null){for(;Z<I.length;Z++)j=h(M,I[Z],U),j!==null&&(T=i(j,T,Z),J===null?K=j:J.sibling=j,J=j);return qt&&sa(M,Z),K}for(j=n(M,j);Z<I.length;Z++)le=b(j,M,Z,I[Z],U),le!==null&&(e&&le.alternate!==null&&j.delete(le.key===null?Z:le.key),T=i(le,T,Z),J===null?K=le:J.sibling=le,J=le);return e&&j.forEach(function(fe){return t(M,fe)}),qt&&sa(M,Z),K}function C(M,T,I,U){var K=sf(I);if(typeof K!="function")throw Error(be(150));if(I=K.call(I),I==null)throw Error(be(151));for(var J=K=null,j=T,Z=T=0,le=null,me=I.next();j!==null&&!me.done;Z++,me=I.next()){j.index>Z?(le=j,j=null):le=j.sibling;var fe=y(M,j,me.value,U);if(fe===null){j===null&&(j=le);break}e&&j&&fe.alternate===null&&t(M,j),T=i(fe,T,Z),J===null?K=fe:J.sibling=fe,J=fe,j=le}if(me.done)return r(M,j),qt&&sa(M,Z),K;if(j===null){for(;!me.done;Z++,me=I.next())me=h(M,me.value,U),me!==null&&(T=i(me,T,Z),J===null?K=me:J.sibling=me,J=me);return qt&&sa(M,Z),K}for(j=n(M,j);!me.done;Z++,me=I.next())me=b(j,M,Z,me.value,U),me!==null&&(e&&me.alternate!==null&&j.delete(me.key===null?Z:me.key),T=i(me,T,Z),J===null?K=me:J.sibling=me,J=me);return e&&j.forEach(function(W){return t(M,W)}),qt&&sa(M,Z),K}function N(M,T,I,U){if(typeof I=="object"&&I!==null&&I.type===Mu&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case Zh:e:{for(var K=I.key,J=T;J!==null;){if(J.key===K){if(K=I.type,K===Mu){if(J.tag===7){r(M,J.sibling),T=o(J,I.props.children),T.return=M,M=T;break e}}else if(J.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===ls&&D5(K)===J.type){r(M,J.sibling),T=o(J,I.props),T.ref=cf(M,J,I),T.return=M,M=T;break e}r(M,J);break}else t(M,J);J=J.sibling}I.type===Mu?(T=da(I.props.children,M.mode,U,I.key),T.return=M,M=T):(U=_p(I.type,I.key,I.props,null,M.mode,U),U.ref=cf(M,T,I),U.return=M,M=U)}return s(M);case Cu:e:{for(J=I.key;T!==null;){if(T.key===J)if(T.tag===4&&T.stateNode.containerInfo===I.containerInfo&&T.stateNode.implementation===I.implementation){r(M,T.sibling),T=o(T,I.children||[]),T.return=M,M=T;break e}else{r(M,T);break}else t(M,T);T=T.sibling}T=Kv(I,M.mode,U),T.return=M,M=T}return s(M);case ls:return J=I._init,N(M,T,J(I._payload),U)}if(mf(I))return v(M,T,I,U);if(sf(I))return C(M,T,I,U);up(M,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,T!==null&&T.tag===6?(r(M,T.sibling),T=o(T,I),T.return=M,M=T):(r(M,T),T=qv(I,M.mode,U),T.return=M,M=T),s(M)):r(M,T)}return N}var Ku=t8(!0),r8=t8(!1),Zf={},Ko=Ms(Zf),Uf=Ms(Zf),$f=Ms(Zf);function ca(e){if(e===Zf)throw Error(be(174));return e}function l6(e,t){switch(Rt($f,t),Rt(Uf,e),Rt(Ko,Zf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:r2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=r2(t,e)}Bt(Ko),Rt(Ko,t)}function Zu(){Bt(Ko),Bt(Uf),Bt($f)}function n8(e){ca($f.current);var t=ca(Ko.current),r=r2(t,e.type);t!==r&&(Rt(Uf,e),Rt(Ko,r))}function c6(e){Uf.current===e&&(Bt(Ko),Bt(Uf))}var Wt=Ms(0);function Up(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 $v=[];function f6(){for(var e=0;e<$v.length;e++)$v[e]._workInProgressVersionPrimary=null;$v.length=0}var gp=_i.ReactCurrentDispatcher,Bv=_i.ReactCurrentBatchConfig,ma=0,Yt=null,yr=null,Tr=null,$p=!1,Ef=!1,Bf=0,Bj=0;function zr(){throw Error(be(321))}function d6(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Po(e[r],t[r]))return!1;return!0}function h6(e,t,r,n,o,i){if(ma=i,Yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gp.current=e===null||e.memoizedState===null?Hj:qj,e=r(n,o),Ef){i=0;do{if(Ef=!1,Bf=0,25<=i)throw Error(be(301));i+=1,Tr=yr=null,t.updateQueue=null,gp.current=Kj,e=r(n,o)}while(Ef)}if(gp.current=Bp,t=yr!==null&&yr.next!==null,ma=0,Tr=yr=Yt=null,$p=!1,t)throw Error(be(300));return e}function p6(){var e=Bf!==0;return Bf=0,e}function zo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tr===null?Yt.memoizedState=Tr=e:Tr=Tr.next=e,Tr}function so(){if(yr===null){var e=Yt.alternate;e=e!==null?e.memoizedState:null}else e=yr.next;var t=Tr===null?Yt.memoizedState:Tr.next;if(t!==null)Tr=t,yr=e;else{if(e===null)throw Error(be(310));yr=e,e={memoizedState:yr.memoizedState,baseState:yr.baseState,baseQueue:yr.baseQueue,queue:yr.queue,next:null},Tr===null?Yt.memoizedState=Tr=e:Tr=Tr.next=e}return Tr}function Vf(e,t){return typeof t=="function"?t(e):t}function Vv(e){var t=so(),r=t.queue;if(r===null)throw Error(be(311));r.lastRenderedReducer=e;var n=yr,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,u=null,l=i;do{var p=l.lane;if((ma&p)===p)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var h={lane:p,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=h,s=n):u=u.next=h,Yt.lanes|=p,ga|=p}l=l.next}while(l!==null&&l!==i);u===null?s=n:u.next=a,Po(n,t.memoizedState)||(xn=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Yt.lanes|=i,ga|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function jv(e){var t=so(),r=t.queue;if(r===null)throw Error(be(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);Po(i,t.memoizedState)||(xn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function o8(){}function i8(e,t){var r=Yt,n=so(),o=t(),i=!Po(n.memoizedState,o);if(i&&(n.memoizedState=o,xn=!0),n=n.queue,m6(u8.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Tr!==null&&Tr.memoizedState.tag&1){if(r.flags|=2048,jf(9,a8.bind(null,r,n,o,t),void 0,null),Pr===null)throw Error(be(349));(ma&30)!==0||s8(r,t,o)}return o}function s8(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function a8(e,t,r,n){t.value=r,t.getSnapshot=n,l8(t)&&c8(e)}function u8(e,t,r){return r(function(){l8(t)&&c8(e)})}function l8(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Po(e,r)}catch(n){return!0}}function c8(e){var t=wi(e,1);t!==null&&To(t,e,1,-1)}function I5(e){var t=zo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vf,lastRenderedState:e},t.queue=e,e=e.dispatch=zj.bind(null,Yt,e),[t.memoizedState,e]}function jf(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Yt.updateQueue,t===null?(t={lastEffect:null,stores:null},Yt.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 f8(){return so().memoizedState}function yp(e,t,r,n){var o=zo();Yt.flags|=e,o.memoizedState=jf(1|t,r,void 0,n===void 0?null:n)}function Qp(e,t,r,n){var o=so();n=n===void 0?null:n;var i=void 0;if(yr!==null){var s=yr.memoizedState;if(i=s.destroy,n!==null&&d6(n,s.deps)){o.memoizedState=jf(t,r,i,n);return}}Yt.flags|=e,o.memoizedState=jf(1|t,r,i,n)}function A5(e,t){return yp(8390656,8,e,t)}function m6(e,t){return Qp(2048,8,e,t)}function d8(e,t){return Qp(4,2,e,t)}function h8(e,t){return Qp(4,4,e,t)}function p8(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 m8(e,t,r){return r=r!=null?r.concat([e]):null,Qp(4,4,p8.bind(null,t,e),r)}function g6(){}function g8(e,t){var r=so();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&d6(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function y8(e,t){var r=so();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&d6(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function v8(e,t,r){return(ma&21)===0?(e.baseState&&(e.baseState=!1,xn=!0),e.memoizedState=r):(Po(r,t)||(r=_S(),Yt.lanes|=r,ga|=r,e.baseState=!0),t)}function Vj(e,t){var r=Tt;Tt=r!==0&&4>r?r:4,e(!0);var n=Bv.transition;Bv.transition={};try{e(!1),t()}finally{Tt=r,Bv.transition=n}}function w8(){return so().memoizedState}function jj(e,t,r){var n=_s(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},b8(e))_8(t,r);else if(r=XS(e,t,r,n),r!==null){var o=sn();To(r,e,n,o),x8(r,t,n)}}function zj(e,t,r){var n=_s(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(b8(e))_8(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,Po(a,s)){var u=t.interleaved;u===null?(o.next=o,a6(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch(l){}finally{}r=XS(e,t,o,n),r!==null&&(o=sn(),To(r,e,n,o),x8(r,t,n))}}function b8(e){var t=e.alternate;return e===Yt||t!==null&&t===Yt}function _8(e,t){Ef=$p=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function x8(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Z2(e,r)}}var Bp={readContext:io,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},Hj={readContext:io,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:io,useEffect:A5,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yp(4194308,4,p8.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yp(4194308,4,e,t)},useInsertionEffect:function(e,t){return yp(4,2,e,t)},useMemo:function(e,t){var r=zo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=zo();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=jj.bind(null,Yt,e),[n.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:I5,useDebugValue:g6,useDeferredValue:function(e){return zo().memoizedState=e},useTransition:function(){var e=I5(!1),t=e[0];return e=Vj.bind(null,e[1]),zo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Yt,o=zo();if(qt){if(r===void 0)throw Error(be(407));r=r()}else{if(r=t(),Pr===null)throw Error(be(349));(ma&30)!==0||s8(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,A5(u8.bind(null,n,i,e),[e]),n.flags|=2048,jf(9,a8.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=zo(),t=Pr.identifierPrefix;if(qt){var r=mi,n=pi;r=(n&~(1<<32-Mo(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Bf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Bj++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qj={readContext:io,useCallback:g8,useContext:io,useEffect:m6,useImperativeHandle:m8,useInsertionEffect:d8,useLayoutEffect:h8,useMemo:y8,useReducer:Vv,useRef:f8,useState:function(){return Vv(Vf)},useDebugValue:g6,useDeferredValue:function(e){var t=so();return v8(t,yr.memoizedState,e)},useTransition:function(){var e=Vv(Vf)[0],t=so().memoizedState;return[e,t]},useMutableSource:o8,useSyncExternalStore:i8,useId:w8,unstable_isNewReconciler:!1},Kj={readContext:io,useCallback:g8,useContext:io,useEffect:m6,useImperativeHandle:m8,useInsertionEffect:d8,useLayoutEffect:h8,useMemo:y8,useReducer:jv,useRef:f8,useState:function(){return jv(Vf)},useDebugValue:g6,useDeferredValue:function(e){var t=so();return yr===null?t.memoizedState=e:v8(t,yr.memoizedState,e)},useTransition:function(){var e=jv(Vf)[0],t=so().memoizedState;return[e,t]},useMutableSource:o8,useSyncExternalStore:i8,useId:w8,unstable_isNewReconciler:!1};function Gu(e,t){try{var r="",n=t;do r+=xV(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 zv(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function C2(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Zj=typeof WeakMap=="function"?WeakMap:Map;function E8(e,t,r){r=gi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){jp||(jp=!0,k2=n),C2(e,t)},r}function S8(e,t,r){r=gi(-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(){C2(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){C2(e,t),typeof n!="function"&&(bs===null?bs=new Set([this]):bs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function N5(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Zj;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=az.bind(null,e,t,r),t.then(e,e))}function R5(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 k5(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=gi(-1,1),t.tag=2,ws(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Gj=_i.ReactCurrentOwner,xn=!1;function on(e,t,r,n){t.child=e===null?r8(t,null,r,n):Ku(t,e.child,r,n)}function L5(e,t,r,n,o){r=r.render;var i=t.ref;return Vu(t,o),n=h6(e,t,r,n,i,o),r=p6(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bi(e,t,o)):(qt&&r&&t6(t),t.flags|=1,on(e,t,n,o),t.child)}function F5(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!S6(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,C8(e,t,i,n,o)):(e=_p(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:Rf,r(s,n)&&e.ref===t.ref)return bi(e,t,o)}return t.flags|=1,e=xs(i,n),e.ref=t.ref,e.return=t,t.child=e}function C8(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Rf(i,n)&&e.ref===t.ref)if(xn=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(xn=!0);else return t.lanes=e.lanes,bi(e,t,o)}return M2(e,t,r,n,o)}function M8(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},Rt(Lu,Ln),Ln|=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,Rt(Lu,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Rt(Lu,Ln),Ln|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Rt(Lu,Ln),Ln|=n;return on(e,t,o,r),t.child}function T8(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function M2(e,t,r,n,o){var i=Sn(r)?ha:Kr.current;return i=Hu(t,i),Vu(t,o),r=h6(e,t,r,n,i,o),n=p6(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bi(e,t,o)):(qt&&n&&t6(t),t.flags|=1,on(e,t,r,o),t.child)}function U5(e,t,r,n,o){if(Sn(r)){var i=!0;Ap(t)}else i=!1;if(Vu(t,o),t.stateNode===null)vp(e,t),e8(t,r,n),S2(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=io(l):(l=Sn(r)?ha:Kr.current,l=Hu(t,l));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&O5(t,s,n,l),cs=!1;var y=t.memoizedState;s.state=y,Fp(t,n,s,o),u=t.memoizedState,a!==n||y!==u||En.current||cs?(typeof p=="function"&&(E2(t,r,p,n),u=t.memoizedState),(a=cs||P5(t,r,a,n,y,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,JS(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Eo(t.type,a),s.props=l,h=t.pendingProps,y=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=io(u):(u=Sn(r)?ha:Kr.current,u=Hu(t,u));var b=r.getDerivedStateFromProps;(p=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||y!==u)&&O5(t,s,n,u),cs=!1,y=t.memoizedState,s.state=y,Fp(t,n,s,o);var v=t.memoizedState;a!==h||y!==v||En.current||cs?(typeof b=="function"&&(E2(t,r,b,n),v=t.memoizedState),(l=cs||P5(t,r,l,n,y,v,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,v,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,v,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&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=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),n=!1)}return T2(e,t,r,n,i,o)}function T2(e,t,r,n,o,i){T8(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&E5(t,r,!1),bi(e,t,i);n=t.stateNode,Gj.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ku(t,e.child,null,i),t.child=Ku(t,null,a,i)):on(e,t,a,i),t.memoizedState=n.state,o&&E5(t,r,!0),t.child}function P8(e){var t=e.stateNode;t.pendingContext?x5(e,t.pendingContext,t.pendingContext!==t.context):t.context&&x5(e,t.context,!1),l6(e,t.containerInfo)}function $5(e,t,r,n,o){return qu(),n6(o),t.flags|=256,on(e,t,r,n),t.child}var P2={dehydrated:null,treeContext:null,retryLane:0};function O2(e){return{baseLanes:e,cachePool:null,transitions:null}}function O8(e,t,r){var n=t.pendingProps,o=Wt.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),Rt(Wt,o&1),e===null)return _2(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=r0(s,n,0,null),e=da(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=O2(r),t.memoizedState=P2,e):y6(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Wj(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=xs(o,u),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=xs(a,i):(i=da(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?O2(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=P2,n}return i=e.child,e=i.sibling,n=xs(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 y6(e,t){return t=r0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lp(e,t,r,n){return n!==null&&n6(n),Ku(t,e.child,null,r),e=y6(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wj(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=zv(Error(be(422))),lp(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=r0({mode:"visible",children:n.children},o,0,null),i=da(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Ku(t,e.child,null,s),t.child.memoizedState=O2(s),t.memoizedState=P2,i);if((t.mode&1)===0)return lp(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(be(419)),n=zv(i,n,void 0),lp(e,t,s,n)}if(a=(s&e.childLanes)!==0,xn||a){if(n=Pr,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,wi(e,o),To(n,e,o,-1))}return E6(),n=zv(Error(be(421))),lp(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=uz.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Fn=vs(o.nextSibling),Un=t,qt=!0,Co=null,e!==null&&(to[ro++]=pi,to[ro++]=mi,to[ro++]=pa,pi=e.id,mi=e.overflow,pa=t),t=y6(t,n.children),t.flags|=4096,t)}function B5(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),x2(e.return,t,r)}function Hv(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 D8(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(on(e,t,n.children,r),n=Wt.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&&B5(e,r,t);else if(e.tag===19)B5(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(Rt(Wt,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&&Up(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Hv(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&&Up(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Hv(t,!0,r,null,i);break;case"together":Hv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vp(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(be(153));if(t.child!==null){for(e=t.child,r=xs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=xs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Yj(e,t,r){switch(t.tag){case 3:P8(t),qu();break;case 5:n8(t);break;case 1:Sn(t.type)&&Ap(t);break;case 4:l6(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Rt(kp,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Rt(Wt,Wt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?O8(e,t,r):(Rt(Wt,Wt.current&1),e=bi(e,t,r),e!==null?e.sibling:null);Rt(Wt,Wt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return D8(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Rt(Wt,Wt.current),n)break;return null;case 22:case 23:return t.lanes=0,M8(e,t,r)}return bi(e,t,r)}var I8,D2,A8,N8;I8=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}};D2=function(){};A8=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ca(Ko.current);var i=null;switch(r){case"input":o=Jv(e,o),n=Jv(e,n),i=[];break;case"select":o=Xt({},o,{value:void 0}),n=Xt({},n,{value:void 0}),i=[];break;case"textarea":o=t2(e,o),n=t2(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Dp)}n2(r,n);var s;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var a=o[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Tf.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var u=n[l];if(a=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(i||(i=[]),i.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Tf.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&$t("scroll",e),i||a===u||(i=[])):(i=i||[]).push(l,u))}r&&(i=i||[]).push("style",r);var l=i;(t.updateQueue=l)&&(t.flags|=4)}};N8=function(e,t,r,n){r!==n&&(t.flags|=4)};function ff(e,t){if(!qt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var 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 Xj(e,t,r){var n=t.pendingProps;switch(r6(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hr(t),null;case 1:return Sn(t.type)&&Ip(),Hr(t),null;case 3:return n=t.stateNode,Zu(),Bt(En),Bt(Kr),f6(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ap(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co!==null&&(U2(Co),Co=null))),D2(e,t),Hr(t),null;case 5:c6(t);var o=ca($f.current);if(r=t.type,e!==null&&t.stateNode!=null)A8(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(be(166));return Hr(t),null}if(e=ca(Ko.current),ap(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Ho]=t,n[Ff]=i,e=(t.mode&1)!==0,r){case"dialog":$t("cancel",n),$t("close",n);break;case"iframe":case"object":case"embed":$t("load",n);break;case"video":case"audio":for(o=0;o<yf.length;o++)$t(yf[o],n);break;case"source":$t("error",n);break;case"img":case"image":case"link":$t("error",n),$t("load",n);break;case"details":$t("toggle",n);break;case"input":GE(n,i),$t("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},$t("invalid",n);break;case"textarea":YE(n,i),$t("invalid",n)}n2(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&&sp(n.textContent,a,e),o=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&sp(n.textContent,a,e),o=["children",""+a]):Tf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&$t("scroll",n)}switch(r){case"input":Gh(n),WE(n,i,!0);break;case"textarea":Gh(n),XE(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Dp)}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=sS(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[Ho]=t,e[Ff]=n,I8(e,t,!1,!1),t.stateNode=e;e:{switch(s=o2(r,n),r){case"dialog":$t("cancel",e),$t("close",e),o=n;break;case"iframe":case"object":case"embed":$t("load",e),o=n;break;case"video":case"audio":for(o=0;o<yf.length;o++)$t(yf[o],e);o=n;break;case"source":$t("error",e),o=n;break;case"img":case"image":case"link":$t("error",e),$t("load",e),o=n;break;case"details":$t("toggle",e),o=n;break;case"input":GE(e,n),o=Jv(e,n),$t("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Xt({},n,{value:void 0}),$t("invalid",e);break;case"textarea":YE(e,n),o=t2(e,n),$t("invalid",e);break;default:o=n}n2(r,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?lS(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&aS(e,u)):i==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Pf(e,u):typeof u=="number"&&Pf(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Tf.hasOwnProperty(i)?u!=null&&i==="onScroll"&&$t("scroll",e):u!=null&&V2(e,i,u,s))}switch(r){case"input":Gh(e),WE(e,n,!1);break;case"textarea":Gh(e),XE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Es(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Fu(e,!!n.multiple,i,!1):n.defaultValue!=null&&Fu(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Dp)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Hr(t),null;case 6:if(e&&t.stateNode!=null)N8(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(be(166));if(r=ca($f.current),ca(Ko.current),ap(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ho]=t,(i=n.nodeValue!==r)&&(e=Un,e!==null))switch(e.tag){case 3:sp(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sp(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ho]=t,t.stateNode=n}return Hr(t),null;case 13:if(Bt(Wt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(qt&&Fn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)YS(),qu(),t.flags|=98560,i=!1;else if(i=ap(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(be(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(be(317));i[Ho]=t}else qu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Hr(t),i=!1}else Co!==null&&(U2(Co),Co=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||(Wt.current&1)!==0?vr===0&&(vr=3):E6())),t.updateQueue!==null&&(t.flags|=4),Hr(t),null);case 4:return Zu(),D2(e,t),e===null&&kf(t.stateNode.containerInfo),Hr(t),null;case 10:return s6(t.type._context),Hr(t),null;case 17:return Sn(t.type)&&Ip(),Hr(t),null;case 19:if(Bt(Wt),i=t.memoizedState,i===null)return Hr(t),null;if(n=(t.flags&128)!==0,s=i.rendering,s===null)if(n)ff(i,!1);else{if(vr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Up(e),s!==null){for(t.flags|=128,ff(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 Rt(Wt,Wt.current&1|2),t.child}e=e.sibling}i.tail!==null&&ir()>Wu&&(t.flags|=128,n=!0,ff(i,!1),t.lanes=4194304)}else{if(!n)if(e=Up(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ff(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!qt)return Hr(t),null}else 2*ir()-i.renderingStartTime>Wu&&r!==1073741824&&(t.flags|=128,n=!0,ff(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=ir(),t.sibling=null,r=Wt.current,Rt(Wt,n?r&1|2:r&1),t):(Hr(t),null);case 22:case 23:return x6(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ln&1073741824)!==0&&(Hr(t),t.subtreeFlags&6&&(t.flags|=8192)):Hr(t),null;case 24:return null;case 25:return null}throw Error(be(156,t.tag))}function Jj(e,t){switch(r6(t),t.tag){case 1:return Sn(t.type)&&Ip(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zu(),Bt(En),Bt(Kr),f6(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return c6(t),null;case 13:if(Bt(Wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));qu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bt(Wt),null;case 4:return Zu(),null;case 10:return s6(t.type._context),null;case 22:case 23:return x6(),null;case 24:return null;default:return null}}var cp=!1,qr=!1,Qj=typeof WeakSet=="function"?WeakSet:Set,ke=null;function ku(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tr(e,t,n)}else r.current=null}function I2(e,t,r){try{r()}catch(n){tr(e,t,n)}}var V5=!1;function ez(e,t){if(p2=Tp,e=FS(),e6(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(U){r=null;break e}var s=0,a=-1,u=-1,l=0,p=0,h=e,y=null;t:for(;;){for(var b;h!==r||o!==0&&h.nodeType!==3||(a=s+o),h!==i||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(b=h.firstChild)!==null;)y=h,h=b;for(;;){if(h===e)break t;if(y===r&&++l===o&&(a=s),y===i&&++p===n&&(u=s),(b=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=b}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(m2={focusedElem:e,selectionRange:r},Tp=!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 C=v.memoizedProps,N=v.memoizedState,M=t.stateNode,T=M.getSnapshotBeforeUpdate(t.elementType===t.type?C:Eo(t.type,C),N);M.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(be(163))}}catch(U){tr(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}return v=V5,V5=!1,v}function Sf(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&&I2(t,r,i)}o=o.next}while(o!==n)}}function e0(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 A2(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 R8(e){var t=e.alternate;t!==null&&(e.alternate=null,R8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ho],delete t[Ff],delete t[v2],delete t[Lj],delete t[Fj])),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 k8(e){return e.tag===5||e.tag===3||e.tag===4}function j5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||k8(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 N2(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=Dp));else if(n!==4&&(e=e.child,e!==null))for(N2(e,t,r),e=e.sibling;e!==null;)N2(e,t,r),e=e.sibling}function R2(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(R2(e,t,r),e=e.sibling;e!==null;)R2(e,t,r),e=e.sibling}var Dr=null,So=!1;function us(e,t,r){for(r=r.child;r!==null;)L8(e,t,r),r=r.sibling}function L8(e,t,r){if(qo&&typeof qo.onCommitFiberUnmount=="function")try{qo.onCommitFiberUnmount(Kp,r)}catch(a){}switch(r.tag){case 5:qr||ku(r,t);case 6:var n=Dr,o=So;Dr=null,us(e,t,r),Dr=n,So=o,Dr!==null&&(So?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(So?(e=Dr,r=r.stateNode,e.nodeType===8?Fv(e.parentNode,r):e.nodeType===1&&Fv(e,r),Af(e)):Fv(Dr,r.stateNode));break;case 4:n=Dr,o=So,Dr=r.stateNode.containerInfo,So=!0,us(e,t,r),Dr=n,So=o;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&I2(r,t,s),o=o.next}while(o!==n)}us(e,t,r);break;case 1:if(!qr&&(ku(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){tr(r,t,a)}us(e,t,r);break;case 21:us(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,us(e,t,r),qr=n):us(e,t,r);break;default:us(e,t,r)}}function z5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Qj),t.forEach(function(n){var o=lz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xo(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:Dr=a.stateNode,So=!1;break e;case 3:Dr=a.stateNode.containerInfo,So=!0;break e;case 4:Dr=a.stateNode.containerInfo,So=!0;break e}a=a.return}if(Dr===null)throw Error(be(160));L8(i,s,o),Dr=null,So=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(l){tr(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)F8(t,e),t=t.sibling}function F8(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xo(t,e),jo(e),n&4){try{Sf(3,e,e.return),e0(3,e)}catch(C){tr(e,e.return,C)}try{Sf(5,e,e.return)}catch(C){tr(e,e.return,C)}}break;case 1:xo(t,e),jo(e),n&512&&r!==null&&ku(r,r.return);break;case 5:if(xo(t,e),jo(e),n&512&&r!==null&&ku(r,r.return),e.flags&32){var o=e.stateNode;try{Pf(o,"")}catch(C){tr(e,e.return,C)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=r!==null?r.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&oS(o,i),o2(a,s);var l=o2(a,i);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?lS(o,h):p==="dangerouslySetInnerHTML"?aS(o,h):p==="children"?Pf(o,h):V2(o,p,h,l)}switch(a){case"input":Qv(o,i);break;case"textarea":iS(o,i);break;case"select":var y=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var b=i.value;b!=null?Fu(o,!!i.multiple,b,!1):y!==!!i.multiple&&(i.defaultValue!=null?Fu(o,!!i.multiple,i.defaultValue,!0):Fu(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ff]=i}catch(C){tr(e,e.return,C)}}break;case 6:if(xo(t,e),jo(e),n&4){if(e.stateNode===null)throw Error(be(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(C){tr(e,e.return,C)}}break;case 3:if(xo(t,e),jo(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Af(t.containerInfo)}catch(C){tr(e,e.return,C)}break;case 4:xo(t,e),jo(e);break;case 13:xo(t,e),jo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(b6=ir())),n&4&&z5(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(qr=(l=qr)||p,xo(t,e),qr=l):xo(t,e),jo(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!p&&(e.mode&1)!==0)for(ke=e,p=e.child;p!==null;){for(h=ke=p;ke!==null;){switch(y=ke,b=y.child,y.tag){case 0:case 11:case 14:case 15:Sf(4,y,y.return);break;case 1:ku(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(C){tr(n,r,C)}}break;case 5:ku(y,y.return);break;case 22:if(y.memoizedState!==null){q5(h);continue}}b!==null?(b.return=y,ke=b):q5(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=uS("display",s))}catch(C){tr(e,e.return,C)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(C){tr(e,e.return,C)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:xo(t,e),jo(e),n&4&&z5(e);break;case 21:break;default:xo(t,e),jo(e)}}function jo(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(k8(r)){var n=r;break e}r=r.return}throw Error(be(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Pf(o,""),n.flags&=-33);var i=j5(e);R2(e,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,a=j5(e);N2(e,a,s);break;default:throw Error(be(161))}}catch(u){tr(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tz(e,t,r){ke=e,U8(e,t,r)}function U8(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||cp;if(!s){var a=o.alternate,u=a!==null&&a.memoizedState!==null||qr;a=cp;var l=qr;if(cp=s,(qr=u)&&!l)for(ke=o;ke!==null;)s=ke,u=s.child,s.tag===22&&s.memoizedState!==null?K5(o):u!==null?(u.return=s,ke=u):K5(o);for(;i!==null;)ke=i,U8(i,t,r),i=i.sibling;ke=o,cp=a,qr=l}H5(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,ke=i):H5(e,t,r)}}function H5(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:qr||e0(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!qr)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Eo(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&T5(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}T5(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Af(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(be(163))}qr||t.flags&512&&A2(t)}catch(y){tr(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 q5(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 K5(e){for(;ke!==null;){var t=ke;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{e0(4,t)}catch(u){tr(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(u){tr(t,o,u)}}var i=t.return;try{A2(t)}catch(u){tr(t,i,u)}break;case 5:var s=t.return;try{A2(t)}catch(u){tr(t,s,u)}}}catch(u){tr(t,t.return,u)}if(t===e){ke=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ke=a;break}ke=t.return}}var rz=Math.ceil,Vp=_i.ReactCurrentDispatcher,v6=_i.ReactCurrentOwner,oo=_i.ReactCurrentBatchConfig,vt=0,Pr=null,fr=null,Ir=0,Ln=0,Lu=Ms(0),vr=0,zf=null,ga=0,t0=0,w6=0,Cf=null,_n=null,b6=0,Wu=1/0,di=null,jp=!1,k2=null,bs=null,fp=!1,ps=null,zp=0,Mf=0,L2=null,wp=-1,bp=0;function sn(){return(vt&6)!==0?ir():wp!==-1?wp:wp=ir()}function _s(e){return(e.mode&1)===0?1:(vt&2)!==0&&Ir!==0?Ir&-Ir:$j.transition!==null?(bp===0&&(bp=_S()),bp):(e=Tt,e!==0||(e=window.event,e=e===void 0?16:PS(e.type)),e)}function To(e,t,r,n){if(50<Mf)throw Mf=0,L2=null,Error(be(185));Hf(e,r,n),((vt&2)===0||e!==Pr)&&(e===Pr&&((vt&2)===0&&(t0|=r),vr===4&&ds(e,Ir)),Cn(e,n),r===1&&vt===0&&(t.mode&1)===0&&(Wu=ir()+500,Xp&&Ts()))}function Cn(e,t){var r=e.callbackNode;VV(e,t);var n=Mp(e,e===Pr?Ir: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?Uj(Z5.bind(null,e)):ZS(Z5.bind(null,e)),Rj(function(){(vt&6)===0&&Ts()}),r=null;else{switch(xS(n)){case 1:r=K2;break;case 4:r=wS;break;case 16:r=Cp;break;case 536870912:r=bS;break;default:r=Cp}r=K8(r,$8.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function $8(e,t){if(wp=-1,bp=0,(vt&6)!==0)throw Error(be(327));var r=e.callbackNode;if(ju()&&e.callbackNode!==r)return null;var n=Mp(e,e===Pr?Ir:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Hp(e,n);else{t=n;var o=vt;vt|=2;var i=V8();(Pr!==e||Ir!==t)&&(di=null,Wu=ir()+500,fa(e,t));do try{iz();break}catch(a){B8(e,a)}while(1);i6(),Vp.current=i,vt=o,fr!==null?t=0:(Pr=null,Ir=0,t=vr)}if(t!==0){if(t===2&&(o=l2(e),o!==0&&(n=o,t=F2(e,o))),t===1)throw r=zf,fa(e,0),ds(e,n),Cn(e,ir()),r;if(t===6)ds(e,n);else{if(o=e.current.alternate,(n&30)===0&&!nz(o)&&(t=Hp(e,n),t===2&&(i=l2(e),i!==0&&(n=i,t=F2(e,i))),t===1))throw r=zf,fa(e,0),ds(e,n),Cn(e,ir()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(be(345));case 2:aa(e,_n,di);break;case 3:if(ds(e,n),(n&130023424)===n&&(t=b6+500-ir(),10<t)){if(Mp(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){sn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=y2(aa.bind(null,e,_n,di),t);break}aa(e,_n,di);break;case 4:if(ds(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-Mo(n);i=1<<s,s=t[s],s>o&&(o=s),n&=~i}if(n=o,n=ir()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*rz(n/1960))-n,10<n){e.timeoutHandle=y2(aa.bind(null,e,_n,di),n);break}aa(e,_n,di);break;case 5:aa(e,_n,di);break;default:throw Error(be(329))}}}return Cn(e,ir()),e.callbackNode===r?$8.bind(null,e):null}function F2(e,t){var r=Cf;return e.current.memoizedState.isDehydrated&&(fa(e,t).flags|=256),e=Hp(e,t),e!==2&&(t=_n,_n=r,t!==null&&U2(t)),e}function U2(e){_n===null?_n=e:_n.push.apply(_n,e)}function nz(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(!Po(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 ds(e,t){for(t&=~w6,t&=~t0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Mo(t),n=1<<r;e[r]=-1,t&=~n}}function Z5(e){if((vt&6)!==0)throw Error(be(327));ju();var t=Mp(e,0);if((t&1)===0)return Cn(e,ir()),null;var r=Hp(e,t);if(e.tag!==0&&r===2){var n=l2(e);n!==0&&(t=n,r=F2(e,n))}if(r===1)throw r=zf,fa(e,0),ds(e,t),Cn(e,ir()),r;if(r===6)throw Error(be(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,aa(e,_n,di),Cn(e,ir()),null}function _6(e,t){var r=vt;vt|=1;try{return e(t)}finally{vt=r,vt===0&&(Wu=ir()+500,Xp&&Ts())}}function ya(e){ps!==null&&ps.tag===0&&(vt&6)===0&&ju();var t=vt;vt|=1;var r=oo.transition,n=Tt;try{if(oo.transition=null,Tt=1,e)return e()}finally{Tt=n,oo.transition=r,vt=t,(vt&6)===0&&Ts()}}function x6(){Ln=Lu.current,Bt(Lu)}function fa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Nj(r)),fr!==null)for(r=fr.return;r!==null;){var n=r;switch(r6(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ip();break;case 3:Zu(),Bt(En),Bt(Kr),f6();break;case 5:c6(n);break;case 4:Zu();break;case 13:Bt(Wt);break;case 19:Bt(Wt);break;case 10:s6(n.type._context);break;case 22:case 23:x6()}r=r.return}if(Pr=e,fr=e=xs(e.current,null),Ir=Ln=t,vr=0,zf=null,w6=t0=ga=0,_n=Cf=null,la!==null){for(t=0;t<la.length;t++)if(r=la[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}la=null}return e}function B8(e,t){do{var r=fr;try{if(i6(),gp.current=Bp,$p){for(var n=Yt.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}$p=!1}if(ma=0,Tr=yr=Yt=null,Ef=!1,Bf=0,v6.current=null,r===null||r.return===null){vr=1,zf=t,fr=null;break}e:{var i=e,s=r.return,a=r,u=t;if(t=Ir,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,p=a,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var y=p.alternate;y?(p.updateQueue=y.updateQueue,p.memoizedState=y.memoizedState,p.lanes=y.lanes):(p.updateQueue=null,p.memoizedState=null)}var b=R5(s);if(b!==null){b.flags&=-257,k5(b,s,a,i,t),b.mode&1&&N5(i,l,t),t=b,u=l;var v=t.updateQueue;if(v===null){var C=new Set;C.add(u),t.updateQueue=C}else v.add(u);break e}else{if((t&1)===0){N5(i,l,t),E6();break e}u=Error(be(426))}}else if(qt&&a.mode&1){var N=R5(s);if(N!==null){(N.flags&65536)===0&&(N.flags|=256),k5(N,s,a,i,t),n6(Gu(u,a));break e}}i=u=Gu(u,a),vr!==4&&(vr=2),Cf===null?Cf=[i]:Cf.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var M=E8(i,u,t);M5(i,M);break e;case 1:a=u;var T=i.type,I=i.stateNode;if((i.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(bs===null||!bs.has(I)))){i.flags|=65536,t&=-t,i.lanes|=t;var U=S8(i,a,t);M5(i,U);break e}}i=i.return}while(i!==null)}z8(r)}catch(K){t=K,fr===r&&r!==null&&(fr=r=r.return);continue}break}while(1)}function V8(){var e=Vp.current;return Vp.current=Bp,e===null?Bp:e}function E6(){(vr===0||vr===3||vr===2)&&(vr=4),Pr===null||(ga&268435455)===0&&(t0&268435455)===0||ds(Pr,Ir)}function Hp(e,t){var r=vt;vt|=2;var n=V8();(Pr!==e||Ir!==t)&&(di=null,fa(e,t));do try{oz();break}catch(o){B8(e,o)}while(1);if(i6(),vt=r,Vp.current=n,fr!==null)throw Error(be(261));return Pr=null,Ir=0,vr}function oz(){for(;fr!==null;)j8(fr)}function iz(){for(;fr!==null&&!AV();)j8(fr)}function j8(e){var t=q8(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?z8(e):fr=t,v6.current=null}function z8(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Xj(r,t,Ln),r!==null){fr=r;return}}else{if(r=Jj(r,t),r!==null){r.flags&=32767,fr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vr=6,fr=null;return}}if(t=t.sibling,t!==null){fr=t;return}fr=t=e}while(t!==null);vr===0&&(vr=5)}function aa(e,t,r){var n=Tt,o=oo.transition;try{oo.transition=null,Tt=1,sz(e,t,r,n)}finally{oo.transition=o,Tt=n}return null}function sz(e,t,r,n){do ju();while(ps!==null);if((vt&6)!==0)throw Error(be(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(be(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(jV(e,i),e===Pr&&(fr=Pr=null,Ir=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||fp||(fp=!0,K8(Cp,function(){return ju(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=oo.transition,oo.transition=null;var s=Tt;Tt=1;var a=vt;vt|=4,v6.current=null,ez(e,r),F8(r,e),Pj(m2),Tp=!!p2,m2=p2=null,e.current=r,tz(r,e,o),NV(),vt=a,Tt=s,oo.transition=i}else e.current=r;if(fp&&(fp=!1,ps=e,zp=o),i=e.pendingLanes,i===0&&(bs=null),LV(r.stateNode,n),Cn(e,ir()),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(jp)throw jp=!1,e=k2,k2=null,e;return(zp&1)!==0&&e.tag!==0&&ju(),i=e.pendingLanes,(i&1)!==0?e===L2?Mf++:(Mf=0,L2=e):Mf=0,Ts(),null}function ju(){if(ps!==null){var e=xS(zp),t=oo.transition,r=Tt;try{if(oo.transition=null,Tt=16>e?16:e,ps===null)var n=!1;else{if(e=ps,ps=null,zp=0,(vt&6)!==0)throw Error(be(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 u=0;u<a.length;u++){var l=a[u];for(ke=l;ke!==null;){var p=ke;switch(p.tag){case 0:case 11:case 15:Sf(8,p,i)}var h=p.child;if(h!==null)h.return=p,ke=h;else for(;ke!==null;){p=ke;var y=p.sibling,b=p.return;if(R8(p),p===l){ke=null;break}if(y!==null){y.return=b,ke=y;break}ke=b}}}var v=i.alternate;if(v!==null){var C=v.child;if(C!==null){v.child=null;do{var N=C.sibling;C.sibling=null,C=N}while(C!==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:Sf(9,i,i.return)}var M=i.sibling;if(M!==null){M.return=i.return,ke=M;break e}ke=i.return}}var T=e.current;for(ke=T;ke!==null;){s=ke;var I=s.child;if((s.subtreeFlags&2064)!==0&&I!==null)I.return=s,ke=I;else e:for(s=T;ke!==null;){if(a=ke,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:e0(9,a)}}catch(K){tr(a,a.return,K)}if(a===s){ke=null;break e}var U=a.sibling;if(U!==null){U.return=a.return,ke=U;break e}ke=a.return}}if(vt=o,Ts(),qo&&typeof qo.onPostCommitFiberRoot=="function")try{qo.onPostCommitFiberRoot(Kp,e)}catch(K){}n=!0}return n}finally{Tt=r,oo.transition=t}}return!1}function G5(e,t,r){t=Gu(r,t),t=E8(e,t,1),e=ws(e,t,1),t=sn(),e!==null&&(Hf(e,1,t),Cn(e,t))}function tr(e,t,r){if(e.tag===3)G5(e,e,r);else for(;t!==null;){if(t.tag===3){G5(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(bs===null||!bs.has(n))){e=Gu(r,e),e=S8(t,e,1),t=ws(t,e,1),e=sn(),t!==null&&(Hf(t,1,e),Cn(t,e));break}}t=t.return}}function az(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=sn(),e.pingedLanes|=e.suspendedLanes&r,Pr===e&&(Ir&r)===r&&(vr===4||vr===3&&(Ir&130023424)===Ir&&500>ir()-b6?fa(e,0):w6|=r),Cn(e,t)}function H8(e,t){t===0&&((e.mode&1)===0?t=1:(t=Xh,Xh<<=1,(Xh&130023424)===0&&(Xh=4194304)));var r=sn();e=wi(e,t),e!==null&&(Hf(e,t,r),Cn(e,r))}function uz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),H8(e,r)}function lz(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(be(314))}n!==null&&n.delete(t),H8(e,r)}var q8;q8=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||En.current)xn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return xn=!1,Yj(e,t,r);xn=(e.flags&131072)!==0}else xn=!1,qt&&(t.flags&1048576)!==0&&GS(t,Rp,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;vp(e,t),e=t.pendingProps;var o=Hu(t,Kr.current);Vu(t,r),o=h6(null,t,n,e,o,r);var i=p6();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,Sn(n)?(i=!0,Ap(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,u6(t),o.updater=Jp,t.stateNode=o,o._reactInternals=t,S2(t,n,e,r),t=T2(null,t,n,!0,i,r)):(t.tag=0,qt&&i&&t6(t),on(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(vp(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=fz(n),e=Eo(n,e),o){case 0:t=M2(null,t,n,e,r);break e;case 1:t=U5(null,t,n,e,r);break e;case 11:t=L5(null,t,n,e,r);break e;case 14:t=F5(null,t,n,Eo(n.type,e),r);break e}throw Error(be(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Eo(n,o),M2(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Eo(n,o),U5(e,t,n,o,r);case 3:e:{if(P8(t),e===null)throw Error(be(387));n=t.pendingProps,i=t.memoizedState,o=i.element,JS(e,t),Fp(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=Gu(Error(be(423)),t),t=$5(e,t,n,r,o);break e}else if(n!==o){o=Gu(Error(be(424)),t),t=$5(e,t,n,r,o);break e}else for(Fn=vs(t.stateNode.containerInfo.firstChild),Un=t,qt=!0,Co=null,r=r8(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qu(),n===o){t=bi(e,t,r);break e}on(e,t,n,r)}t=t.child}return t;case 5:return n8(t),e===null&&_2(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,g2(n,o)?s=null:i!==null&&g2(n,i)&&(t.flags|=32),T8(e,t),on(e,t,s,r),t.child;case 6:return e===null&&_2(t),null;case 13:return O8(e,t,r);case 4:return l6(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ku(t,null,n,r):on(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Eo(n,o),L5(e,t,n,o,r);case 7:return on(e,t,t.pendingProps,r),t.child;case 8:return on(e,t,t.pendingProps.children,r),t.child;case 12:return on(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,Rt(kp,n._currentValue),n._currentValue=s,i!==null)if(Po(i.value,s)){if(i.children===o.children&&!En.current){t=bi(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 u=a.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=gi(-1,r&-r),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),x2(i.return,r,t),a.lanes|=r;break}u=u.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(be(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),x2(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}on(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Vu(t,r),o=io(o),n=n(o),t.flags|=1,on(e,t,n,r),t.child;case 14:return n=t.type,o=Eo(n,t.pendingProps),o=Eo(n.type,o),F5(e,t,n,o,r);case 15:return C8(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Eo(n,o),vp(e,t),t.tag=1,Sn(n)?(e=!0,Ap(t)):e=!1,Vu(t,r),e8(t,n,o),S2(t,n,o,r),T2(null,t,n,!0,e,r);case 19:return D8(e,t,r);case 22:return M8(e,t,r)}throw Error(be(156,t.tag))};function K8(e,t){return vS(e,t)}function cz(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 no(e,t,r,n){return new cz(e,t,r,n)}function S6(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fz(e){if(typeof e=="function")return S6(e)?1:0;if(e!=null){if(e=e.$$typeof,e===z2)return 11;if(e===H2)return 14}return 2}function xs(e,t){var r=e.alternate;return r===null?(r=no(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 _p(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")S6(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Mu:return da(r.children,o,i,t);case j2:s=8,o|=8;break;case Gv:return e=no(12,r,t,o|2),e.elementType=Gv,e.lanes=i,e;case Wv:return e=no(13,r,t,o),e.elementType=Wv,e.lanes=i,e;case Yv:return e=no(19,r,t,o),e.elementType=Yv,e.lanes=i,e;case tS:return r0(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q5:s=10;break e;case eS:s=9;break e;case z2:s=11;break e;case H2:s=14;break e;case ls:s=16,n=null;break e}throw Error(be(130,e==null?e:typeof e,""))}return t=no(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function da(e,t,r,n){return e=no(7,e,n,t),e.lanes=r,e}function r0(e,t,r,n){return e=no(22,e,n,t),e.elementType=tS,e.lanes=r,e.stateNode={isHidden:!1},e}function qv(e,t,r){return e=no(6,e,null,t),e.lanes=r,e}function Kv(e,t,r){return t=no(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dz(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=Ov(0),this.expirationTimes=Ov(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ov(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function C6(e,t,r,n,o,i,s,a,u){return e=new dz(e,t,r,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=no(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},u6(i),e}function hz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Z8(e){if(!e)return Ss;e=e._reactInternals;e:{if(wa(e)!==e||e.tag!==1)throw Error(be(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Sn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(be(171))}if(e.tag===1){var r=e.type;if(Sn(r))return KS(e,r,t)}return t}function G8(e,t,r,n,o,i,s,a,u){return e=C6(r,n,!0,e,o,i,s,a,u),e.context=Z8(null),r=e.current,n=sn(),o=_s(r),i=gi(n,o),i.callback=t!=null?t:null,ws(r,i,o),e.current.lanes=o,Hf(e,o,n),Cn(e,n),e}function n0(e,t,r,n){var o=t.current,i=sn(),s=_s(o);return r=Z8(r),t.context===null?t.context=r:t.pendingContext=r,t=gi(i,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ws(o,t,s),e!==null&&(To(e,o,s,i),mp(e,o,s)),s}function qp(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 W5(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function M6(e,t){W5(e,t),(e=e.alternate)&&W5(e,t)}function pz(){return null}var W8=typeof reportError=="function"?reportError:function(e){console.error(e)};function T6(e){this._internalRoot=e}o0.prototype.render=T6.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(be(409));n0(e,t,null,null)};o0.prototype.unmount=T6.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ya(function(){n0(null,e,null,null)}),t[vi]=null}};function o0(e){this._internalRoot=e}o0.prototype.unstable_scheduleHydration=function(e){if(e){var t=CS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<fs.length&&t!==0&&t<fs[r].priority;r++);fs.splice(r,0,e),r===0&&TS(e)}};function P6(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function i0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Y5(){}function mz(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=qp(s);i.call(l)}}var s=G8(t,n,e,0,null,!1,!1,"",Y5);return e._reactRootContainer=s,e[vi]=s.current,kf(e.nodeType===8?e.parentNode:e),ya(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var a=n;n=function(){var l=qp(u);a.call(l)}}var u=C6(e,0,!1,null,null,!1,!1,"",Y5);return e._reactRootContainer=u,e[vi]=u.current,kf(e.nodeType===8?e.parentNode:e),ya(function(){n0(t,u,r,n)}),u}function s0(e,t,r,n,o){var i=r._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var u=qp(s);a.call(u)}}n0(t,s,e,o)}else s=mz(r,t,e,o,n);return qp(s)}ES=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=gf(t.pendingLanes);r!==0&&(Z2(t,r|1),Cn(t,ir()),(vt&6)===0&&(Wu=ir()+500,Ts()))}break;case 13:ya(function(){var n=wi(e,1);if(n!==null){var o=sn();To(n,e,1,o)}}),M6(e,1)}};G2=function(e){if(e.tag===13){var t=wi(e,134217728);if(t!==null){var r=sn();To(t,e,134217728,r)}M6(e,134217728)}};SS=function(e){if(e.tag===13){var t=_s(e),r=wi(e,t);if(r!==null){var n=sn();To(r,e,t,n)}M6(e,t)}};CS=function(){return Tt};MS=function(e,t){var r=Tt;try{return Tt=e,t()}finally{Tt=r}};s2=function(e,t,r){switch(t){case"input":if(Qv(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=Yp(n);if(!o)throw Error(be(90));nS(n),Qv(n,o)}}}break;case"textarea":iS(e,r);break;case"select":t=r.value,t!=null&&Fu(e,!!r.multiple,t,!1)}};dS=_6;hS=ya;var gz={usingClientEntryPoint:!1,Events:[Kf,Du,Yp,cS,fS,_6]},df={findFiberByHostInstance:ua,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},yz={bundleType:df.bundleType,version:df.version,rendererPackageName:df.rendererPackageName,rendererConfig:df.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_i.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gS(e),e===null?null:e.stateNode},findFiberByHostInstance:df.findFiberByHostInstance||pz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(hf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!hf.isDisabled&&hf.supportsFiber))try{Kp=hf.inject(yz),qo=hf}catch(e){}var hf;Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gz;Vn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!P6(t))throw Error(be(200));return hz(e,t,null,r)};Vn.createRoot=function(e,t){if(!P6(e))throw Error(be(299));var r=!1,n="",o=W8;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=C6(e,1,!1,null,null,r,!1,n,o),e[vi]=t.current,kf(e.nodeType===8?e.parentNode:e),new T6(t)};Vn.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(be(188)):(e=Object.keys(e).join(","),Error(be(268,e)));return e=gS(t),e=e===null?null:e.stateNode,e};Vn.flushSync=function(e){return ya(e)};Vn.hydrate=function(e,t,r){if(!i0(t))throw Error(be(200));return s0(null,e,t,!0,r)};Vn.hydrateRoot=function(e,t,r){if(!P6(e))throw Error(be(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",s=W8;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=G8(t,null,e,1,r!=null?r:null,o,!1,i,s),e[vi]=t.current,kf(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 o0(t)};Vn.render=function(e,t,r){if(!i0(t))throw Error(be(200));return s0(null,e,t,!1,r)};Vn.unmountComponentAtNode=function(e){if(!i0(e))throw Error(be(40));return e._reactRootContainer?(ya(function(){s0(null,null,e,!1,function(){e._reactRootContainer=null,e[vi]=null})}),!0):!1};Vn.unstable_batchedUpdates=_6;Vn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!i0(r))throw Error(be(200));if(e==null||e._reactInternals===void 0)throw Error(be(38));return s0(e,t,r,!1,n)};Vn.version="18.2.0-next-9e3b772b8-20220608"});var ba=_e((Wae,J8)=>{"use strict";c();d();f();function X8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X8)}catch(e){console.error(e)}}X8(),J8.exports=Y8()});var e9=_e(O6=>{"use strict";c();d();f();var Q8=ba();O6.createRoot=Q8.createRoot,O6.hydrateRoot=Q8.hydrateRoot;var Yae});var r9=_e((Jae,t9)=>{"use strict";c();d();f();var vz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t9.exports=vz});var s9=_e((Qae,i9)=>{"use strict";c();d();f();var wz=r9();function n9(){}function o9(){}o9.resetWarningCache=n9;i9.exports=function(){function e(n,o,i,s,a,u){if(u!==wz){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o9,resetWarningCache:n9};return r.PropTypes=r,r}});var D6=_e((rue,a9)=>{c();d();f();a9.exports=s9()();var eue,tue});var q9=_e(U6=>{"use strict";c();d();f();Object.defineProperty(U6,"__esModule",{value:!0});function rH(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}U6.default=rH});var K9=_e($6=>{"use strict";c();d();f();Object.defineProperty($6,"__esModule",{value:!0});function nH(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var oH=nH(q9()),iH=/^((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)-.*))$/,sH=oH(function(e){return iH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});$6.default=sH});var tT=_e((Iye,mm)=>{c();d();f();var RM,kM,LM,FM,UM,$M,BM,VM,jM,hm,Iw,zM,HM,qM,Ul,KM,ZM,GM,WM,YM,XM,JM,QM,eT,pm;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof mm=="object"&&typeof mm.exports=="object"?e(r(t,r(mm.exports))):e(r(t));function r(n,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])};RM=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)},kM=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},LM=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},FM=function(n,o,i,s){var a=arguments.length,u=a<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,i):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,o,i,s);else for(var p=n.length-1;p>=0;p--)(l=n[p])&&(u=(a<3?l(u):a>3?l(o,i,u):l(o,i))||u);return a>3&&u&&Object.defineProperty(o,i,u),u},UM=function(n,o){return function(i,s){o(i,s,n)}},$M=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},BM=function(n,o,i,s){function a(u){return u instanceof i?u:new i(function(l){l(u)})}return new(i||(i=Promise))(function(u,l){function p(b){try{y(s.next(b))}catch(v){l(v)}}function h(b){try{y(s.throw(b))}catch(v){l(v)}}function y(b){b.done?u(b.value):a(b.value).then(p,h)}y((s=s.apply(n,o||[])).next())})},VM=function(n,o){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(y){return function(b){return h([y,b])}}function h(y){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,y[0]&&(i=0)),i;)try{if(s=1,a&&(u=y[0]&2?a.return:y[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,y[1])).done)return u;switch(a=0,u&&(y=[y[0]&2,u.value]),y[0]){case 0:case 1:u=y;break;case 4:return 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(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(y[0]===6||y[0]===2)){i=0;continue}if(y[0]===3&&(!u||y[1]>u[0]&&y[1]<u[3])){i.label=y[1];break}if(y[0]===6&&i.label<u[1]){i.label=u[1],u=y;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(y);break}u[2]&&i.ops.pop(),i.trys.pop();continue}y=o.call(n,i)}catch(b){y=[6,b],a=0}finally{s=u=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},jM=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&pm(o,n,i)},pm=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]},hm=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.")},Iw=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),a,u=[],l;try{for(;(o===void 0||o-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(p){l={error:p}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(l)throw l.error}}return u},zM=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(Iw(arguments[o]));return n},HM=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 u=arguments[o],l=0,p=u.length;l<p;l++,a++)s[a]=u[l];return s},qM=function(n,o,i){if(i||arguments.length===2)for(var s=0,a=o.length,u;s<a;s++)(u||!(s in o))&&(u||(u=Array.prototype.slice.call(o,0,s)),u[s]=o[s]);return n.concat(u||Array.prototype.slice.call(o))},Ul=function(n){return this instanceof Ul?(this.v=n,this):new Ul(n)},KM=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(n,o||[]),a,u=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(C){s[C]&&(a[C]=function(N){return new Promise(function(M,T){u.push([C,N,M,T])>1||p(C,N)})})}function p(C,N){try{h(s[C](N))}catch(M){v(u[0][3],M)}}function h(C){C.value instanceof Ul?Promise.resolve(C.value.v).then(y,b):v(u[0][2],C)}function y(C){p("next",C)}function b(C){p("throw",C)}function v(C,N){C(N),u.shift(),u.length&&p(u[0][0],u[0][1])}},ZM=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,u){o[a]=n[a]?function(l){return(i=!i)?{value:Ul(n[a](l)),done:a==="return"}:u?u(l):l}:u}},GM=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 hm=="function"?hm(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(u){i[u]=n[u]&&function(l){return new Promise(function(p,h){l=n[u](l),a(p,h,l.done,l.value)})}}function a(u,l,p,h){Promise.resolve(h).then(function(y){u({value:y,done:p})},l)}},WM=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};YM=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)&&pm(o,n,i);return r(o,n),o},XM=function(n){return n&&n.__esModule?n:{default:n}},JM=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)},QM=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},eT=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",RM),e("__assign",kM),e("__rest",LM),e("__decorate",FM),e("__param",UM),e("__metadata",$M),e("__awaiter",BM),e("__generator",VM),e("__exportStar",jM),e("__createBinding",pm),e("__values",hm),e("__read",Iw),e("__spread",zM),e("__spreadArrays",HM),e("__spreadArray",qM),e("__await",Ul),e("__asyncGenerator",KM),e("__asyncDelegator",ZM),e("__asyncValues",GM),e("__makeTemplateObject",WM),e("__importStar",YM),e("__importDefault",XM),e("__classPrivateFieldGet",JM),e("__classPrivateFieldSet",QM),e("__classPrivateFieldIn",eT)})});var BT=_e((ld,Vw)=>{c();d();f();(function(e,t){typeof ld=="object"&&typeof Vw=="object"?Vw.exports=t():typeof define=="function"&&define.amd?define([],t):typeof ld=="object"?ld.QRCodeStyling=t():e.QRCodeStyling=t()})(ld,function(){return(()=>{var e={192:(o,i)=>{var s,a,u=function(){var l=function(W,A){var g=W,w=C[A],E=null,D=0,k=null,B=[],q={},$=function(X,Q){E=function(G){for(var ue=new Array(G),re=0;re<G;re+=1){ue[re]=new Array(G);for(var ge=0;ge<G;ge+=1)ue[re][ge]=null}return ue}(D=4*g+17),_(0,0),_(D-7,0),_(0,D-7),ie(),V(),Y(X,Q),g>=7&&O(X),k==null&&(k=ae(g,w,B)),ne(k,Q)},_=function(X,Q){for(var G=-1;G<=7;G+=1)if(!(X+G<=-1||D<=X+G))for(var ue=-1;ue<=7;ue+=1)Q+ue<=-1||D<=Q+ue||(E[X+G][Q+ue]=0<=G&&G<=6&&(ue==0||ue==6)||0<=ue&&ue<=6&&(G==0||G==6)||2<=G&&G<=4&&2<=ue&&ue<=4)},V=function(){for(var X=8;X<D-8;X+=1)E[X][6]==null&&(E[X][6]=X%2==0);for(var Q=8;Q<D-8;Q+=1)E[6][Q]==null&&(E[6][Q]=Q%2==0)},ie=function(){for(var X=N.getPatternPosition(g),Q=0;Q<X.length;Q+=1)for(var G=0;G<X.length;G+=1){var ue=X[Q],re=X[G];if(E[ue][re]==null)for(var ge=-2;ge<=2;ge+=1)for(var Ge=-2;Ge<=2;Ge+=1)E[ue+ge][re+Ge]=ge==-2||ge==2||Ge==-2||Ge==2||ge==0&&Ge==0}},O=function(X){for(var Q=N.getBCHTypeNumber(g),G=0;G<18;G+=1){var ue=!X&&(Q>>G&1)==1;E[Math.floor(G/3)][G%3+D-8-3]=ue}for(G=0;G<18;G+=1)ue=!X&&(Q>>G&1)==1,E[G%3+D-8-3][Math.floor(G/3)]=ue},Y=function(X,Q){for(var G=w<<3|Q,ue=N.getBCHTypeInfo(G),re=0;re<15;re+=1){var ge=!X&&(ue>>re&1)==1;re<6?E[re][8]=ge:re<8?E[re+1][8]=ge:E[D-15+re][8]=ge}for(re=0;re<15;re+=1)ge=!X&&(ue>>re&1)==1,re<8?E[8][D-re-1]=ge:re<9?E[8][15-re-1+1]=ge:E[8][15-re-1]=ge;E[D-8][8]=!X},ne=function(X,Q){for(var G=-1,ue=D-1,re=7,ge=0,Ge=N.getMaskFunction(Q),Ne=D-1;Ne>0;Ne-=2)for(Ne==6&&(Ne-=1);;){for(var Ue=0;Ue<2;Ue+=1)if(E[ue][Ne-Ue]==null){var st=!1;ge<X.length&&(st=(X[ge]>>>re&1)==1),Ge(ue,Ne-Ue)&&(st=!st),E[ue][Ne-Ue]=st,(re-=1)==-1&&(ge+=1,re=7)}if((ue+=G)<0||D<=ue){ue-=G,G=-G;break}}},ae=function(X,Q,G){for(var ue=I.getRSBlocks(X,Q),re=U(),ge=0;ge<G.length;ge+=1){var Ge=G[ge];re.put(Ge.getMode(),4),re.put(Ge.getLength(),N.getLengthInBits(Ge.getMode(),X)),Ge.write(re)}var Ne=0;for(ge=0;ge<ue.length;ge+=1)Ne+=ue[ge].dataCount;if(re.getLengthInBits()>8*Ne)throw"code length overflow. ("+re.getLengthInBits()+">"+8*Ne+")";for(re.getLengthInBits()+4<=8*Ne&&re.put(0,4);re.getLengthInBits()%8!=0;)re.putBit(!1);for(;!(re.getLengthInBits()>=8*Ne||(re.put(236,8),re.getLengthInBits()>=8*Ne));)re.put(17,8);return function(Ue,st){for(var ee=0,S=0,F=0,R=new Array(st.length),L=new Array(st.length),z=0;z<st.length;z+=1){var H=st[z].dataCount,oe=st[z].totalCount-H;S=Math.max(S,H),F=Math.max(F,oe),R[z]=new Array(H);for(var se=0;se<R[z].length;se+=1)R[z][se]=255&Ue.getBuffer()[se+ee];ee+=H;var pe=N.getErrorCorrectPolynomial(oe),de=T(R[z],pe.getLength()-1).mod(pe);for(L[z]=new Array(pe.getLength()-1),se=0;se<L[z].length;se+=1){var we=se+de.getLength()-L[z].length;L[z][se]=we>=0?de.getAt(we):0}}var ye=0;for(se=0;se<st.length;se+=1)ye+=st[se].totalCount;var Ee=new Array(ye),Le=0;for(se=0;se<S;se+=1)for(z=0;z<st.length;z+=1)se<R[z].length&&(Ee[Le]=R[z][se],Le+=1);for(se=0;se<F;se+=1)for(z=0;z<st.length;z+=1)se<L[z].length&&(Ee[Le]=L[z][se],Le+=1);return Ee}(re,ue)};q.addData=function(X,Q){var G=null;switch(Q=Q||"Byte"){case"Numeric":G=K(X);break;case"Alphanumeric":G=J(X);break;case"Byte":G=j(X);break;case"Kanji":G=Z(X);break;default:throw"mode:"+Q}B.push(G),k=null},q.isDark=function(X,Q){if(X<0||D<=X||Q<0||D<=Q)throw X+","+Q;return E[X][Q]},q.getModuleCount=function(){return D},q.make=function(){if(g<1){for(var X=1;X<40;X++){for(var Q=I.getRSBlocks(X,w),G=U(),ue=0;ue<B.length;ue++){var re=B[ue];G.put(re.getMode(),4),G.put(re.getLength(),N.getLengthInBits(re.getMode(),X)),re.write(G)}var ge=0;for(ue=0;ue<Q.length;ue++)ge+=Q[ue].dataCount;if(G.getLengthInBits()<=8*ge)break}g=X}$(!1,function(){for(var Ge=0,Ne=0,Ue=0;Ue<8;Ue+=1){$(!0,Ue);var st=N.getLostPoint(q);(Ue==0||Ge>st)&&(Ge=st,Ne=Ue)}return Ne}())},q.createTableTag=function(X,Q){X=X||2;var G="";G+='<table style="',G+=" border-width: 0px; border-style: none;",G+=" border-collapse: collapse;",G+=" padding: 0px; margin: "+(Q=Q===void 0?4*X:Q)+"px;",G+='">',G+="<tbody>";for(var ue=0;ue<q.getModuleCount();ue+=1){G+="<tr>";for(var re=0;re<q.getModuleCount();re+=1)G+='<td style="',G+=" border-width: 0px; border-style: none;",G+=" border-collapse: collapse;",G+=" padding: 0px; margin: 0px;",G+=" width: "+X+"px;",G+=" height: "+X+"px;",G+=" background-color: ",G+=q.isDark(ue,re)?"#000000":"#ffffff",G+=";",G+='"/>';G+="</tr>"}return(G+="</tbody>")+"</table>"},q.createSvgTag=function(X,Q,G,ue){var re={};typeof arguments[0]=="object"&&(X=(re=arguments[0]).cellSize,Q=re.margin,G=re.alt,ue=re.title),X=X||2,Q=Q===void 0?4*X:Q,(G=typeof G=="string"?{text:G}:G||{}).text=G.text||null,G.id=G.text?G.id||"qrcode-description":null,(ue=typeof ue=="string"?{text:ue}:ue||{}).text=ue.text||null,ue.id=ue.text?ue.id||"qrcode-title":null;var ge,Ge,Ne,Ue,st=q.getModuleCount()*X+2*Q,ee="";for(Ue="l"+X+",0 0,"+X+" -"+X+",0 0,-"+X+"z ",ee+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',ee+=re.scalable?"":' width="'+st+'px" height="'+st+'px"',ee+=' viewBox="0 0 '+st+" "+st+'" ',ee+=' preserveAspectRatio="xMinYMin meet"',ee+=ue.text||G.text?' role="img" aria-labelledby="'+he([ue.id,G.id].join(" ").trim())+'"':"",ee+=">",ee+=ue.text?'<title id="'+he(ue.id)+'">'+he(ue.text)+"</title>":"",ee+=G.text?'<description id="'+he(G.id)+'">'+he(G.text)+"</description>":"",ee+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',ee+='<path d="',Ge=0;Ge<q.getModuleCount();Ge+=1)for(Ne=Ge*X+Q,ge=0;ge<q.getModuleCount();ge+=1)q.isDark(Ge,ge)&&(ee+="M"+(ge*X+Q)+","+Ne+Ue);return(ee+='" stroke="transparent" fill="black"/>')+"</svg>"},q.createDataURL=function(X,Q){X=X||2,Q=Q===void 0?4*X:Q;var G=q.getModuleCount()*X+2*Q,ue=Q,re=G-Q;return fe(G,G,function(ge,Ge){if(ue<=ge&&ge<re&&ue<=Ge&&Ge<re){var Ne=Math.floor((ge-ue)/X),Ue=Math.floor((Ge-ue)/X);return q.isDark(Ue,Ne)?0:1}return 1})},q.createImgTag=function(X,Q,G){X=X||2,Q=Q===void 0?4*X:Q;var ue=q.getModuleCount()*X+2*Q,re="";return re+="<img",re+=' src="',re+=q.createDataURL(X,Q),re+='"',re+=' width="',re+=ue,re+='"',re+=' height="',re+=ue,re+='"',G&&(re+=' alt="',re+=he(G),re+='"'),re+"/>"};var he=function(X){for(var Q="",G=0;G<X.length;G+=1){var ue=X.charAt(G);switch(ue){case"<":Q+="&lt;";break;case">":Q+="&gt;";break;case"&":Q+="&amp;";break;case'"':Q+="&quot;";break;default:Q+=ue}}return Q};return q.createASCII=function(X,Q){if((X=X||1)<2)return function(R){R=R===void 0?2:R;var L,z,H,oe,se,pe=1*q.getModuleCount()+2*R,de=R,we=pe-R,ye={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Ee={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Le="";for(L=0;L<pe;L+=2){for(H=Math.floor((L-de)/1),oe=Math.floor((L+1-de)/1),z=0;z<pe;z+=1)se="\u2588",de<=z&&z<we&&de<=L&&L<we&&q.isDark(H,Math.floor((z-de)/1))&&(se=" "),de<=z&&z<we&&de<=L+1&&L+1<we&&q.isDark(oe,Math.floor((z-de)/1))?se+=" ":se+="\u2588",Le+=R<1&&L+1>=we?Ee[se]:ye[se];Le+=`
9
+ `}return pe%2&&R>0?Le.substring(0,Le.length-pe-1)+Array(pe+1).join("\u2580"):Le.substring(0,Le.length-1)}(Q);X-=1,Q=Q===void 0?2*X:Q;var G,ue,re,ge,Ge=q.getModuleCount()*X+2*Q,Ne=Q,Ue=Ge-Q,st=Array(X+1).join("\u2588\u2588"),ee=Array(X+1).join(" "),S="",F="";for(G=0;G<Ge;G+=1){for(re=Math.floor((G-Ne)/X),F="",ue=0;ue<Ge;ue+=1)ge=1,Ne<=ue&&ue<Ue&&Ne<=G&&G<Ue&&q.isDark(re,Math.floor((ue-Ne)/X))&&(ge=0),F+=ge?st:ee;for(re=0;re<X;re+=1)S+=F+`
10
+ `}return S.substring(0,S.length-1)},q.renderTo2dContext=function(X,Q){Q=Q||2;for(var G=q.getModuleCount(),ue=0;ue<G;ue++)for(var re=0;re<G;re++)X.fillStyle=q.isDark(ue,re)?"black":"white",X.fillRect(ue*Q,re*Q,Q,Q)},q};l.stringToBytes=(l.stringToBytesFuncs={default:function(W){for(var A=[],g=0;g<W.length;g+=1){var w=W.charCodeAt(g);A.push(255&w)}return A}}).default,l.createStringToBytes=function(W,A){var g=function(){for(var E=me(W),D=function(){var V=E.read();if(V==-1)throw"eof";return V},k=0,B={};;){var q=E.read();if(q==-1)break;var $=D(),_=D()<<8|D();B[String.fromCharCode(q<<8|$)]=_,k+=1}if(k!=A)throw k+" != "+A;return B}(),w="?".charCodeAt(0);return function(E){for(var D=[],k=0;k<E.length;k+=1){var B=E.charCodeAt(k);if(B<128)D.push(B);else{var q=g[E.charAt(k)];typeof q=="number"?(255&q)==q?D.push(q):(D.push(q>>>8),D.push(255&q)):D.push(w)}}return D}};var p,h,y,b,v,C={L:1,M:0,Q:3,H:2},N=(p=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],h=1335,y=7973,v=function(W){for(var A=0;W!=0;)A+=1,W>>>=1;return A},(b={}).getBCHTypeInfo=function(W){for(var A=W<<10;v(A)-v(h)>=0;)A^=h<<v(A)-v(h);return 21522^(W<<10|A)},b.getBCHTypeNumber=function(W){for(var A=W<<12;v(A)-v(y)>=0;)A^=y<<v(A)-v(y);return W<<12|A},b.getPatternPosition=function(W){return p[W-1]},b.getMaskFunction=function(W){switch(W){case 0:return function(A,g){return(A+g)%2==0};case 1:return function(A,g){return A%2==0};case 2:return function(A,g){return g%3==0};case 3:return function(A,g){return(A+g)%3==0};case 4:return function(A,g){return(Math.floor(A/2)+Math.floor(g/3))%2==0};case 5:return function(A,g){return A*g%2+A*g%3==0};case 6:return function(A,g){return(A*g%2+A*g%3)%2==0};case 7:return function(A,g){return(A*g%3+(A+g)%2)%2==0};default:throw"bad maskPattern:"+W}},b.getErrorCorrectPolynomial=function(W){for(var A=T([1],0),g=0;g<W;g+=1)A=A.multiply(T([1,M.gexp(g)],0));return A},b.getLengthInBits=function(W,A){if(1<=A&&A<10)switch(W){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+W}else if(A<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+W}else{if(!(A<41))throw"type:"+A;switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+W}}},b.getLostPoint=function(W){for(var A=W.getModuleCount(),g=0,w=0;w<A;w+=1)for(var E=0;E<A;E+=1){for(var D=0,k=W.isDark(w,E),B=-1;B<=1;B+=1)if(!(w+B<0||A<=w+B))for(var q=-1;q<=1;q+=1)E+q<0||A<=E+q||B==0&&q==0||k==W.isDark(w+B,E+q)&&(D+=1);D>5&&(g+=3+D-5)}for(w=0;w<A-1;w+=1)for(E=0;E<A-1;E+=1){var $=0;W.isDark(w,E)&&($+=1),W.isDark(w+1,E)&&($+=1),W.isDark(w,E+1)&&($+=1),W.isDark(w+1,E+1)&&($+=1),$!=0&&$!=4||(g+=3)}for(w=0;w<A;w+=1)for(E=0;E<A-6;E+=1)W.isDark(w,E)&&!W.isDark(w,E+1)&&W.isDark(w,E+2)&&W.isDark(w,E+3)&&W.isDark(w,E+4)&&!W.isDark(w,E+5)&&W.isDark(w,E+6)&&(g+=40);for(E=0;E<A;E+=1)for(w=0;w<A-6;w+=1)W.isDark(w,E)&&!W.isDark(w+1,E)&&W.isDark(w+2,E)&&W.isDark(w+3,E)&&W.isDark(w+4,E)&&!W.isDark(w+5,E)&&W.isDark(w+6,E)&&(g+=40);var _=0;for(E=0;E<A;E+=1)for(w=0;w<A;w+=1)W.isDark(w,E)&&(_+=1);return g+Math.abs(100*_/A/A-50)/5*10},b),M=function(){for(var W=new Array(256),A=new Array(256),g=0;g<8;g+=1)W[g]=1<<g;for(g=8;g<256;g+=1)W[g]=W[g-4]^W[g-5]^W[g-6]^W[g-8];for(g=0;g<255;g+=1)A[W[g]]=g;return{glog:function(w){if(w<1)throw"glog("+w+")";return A[w]},gexp:function(w){for(;w<0;)w+=255;for(;w>=256;)w-=255;return W[w]}}}();function T(W,A){if(W.length===void 0)throw W.length+"/"+A;var g=function(){for(var E=0;E<W.length&&W[E]==0;)E+=1;for(var D=new Array(W.length-E+A),k=0;k<W.length-E;k+=1)D[k]=W[k+E];return D}(),w={getAt:function(E){return g[E]},getLength:function(){return g.length},multiply:function(E){for(var D=new Array(w.getLength()+E.getLength()-1),k=0;k<w.getLength();k+=1)for(var B=0;B<E.getLength();B+=1)D[k+B]^=M.gexp(M.glog(w.getAt(k))+M.glog(E.getAt(B)));return T(D,0)},mod:function(E){if(w.getLength()-E.getLength()<0)return w;for(var D=M.glog(w.getAt(0))-M.glog(E.getAt(0)),k=new Array(w.getLength()),B=0;B<w.getLength();B+=1)k[B]=w.getAt(B);for(B=0;B<E.getLength();B+=1)k[B]^=M.gexp(M.glog(E.getAt(B))+D);return T(k,0).mod(E)}};return w}var I=function(){var W=[[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]],A=function(w,E){var D={};return D.totalCount=w,D.dataCount=E,D},g={getRSBlocks:function(w,E){var D=function(O,Y){switch(Y){case C.L:return W[4*(O-1)+0];case C.M:return W[4*(O-1)+1];case C.Q:return W[4*(O-1)+2];case C.H:return W[4*(O-1)+3];default:return}}(w,E);if(D===void 0)throw"bad rs block @ typeNumber:"+w+"/errorCorrectionLevel:"+E;for(var k=D.length/3,B=[],q=0;q<k;q+=1)for(var $=D[3*q+0],_=D[3*q+1],V=D[3*q+2],ie=0;ie<$;ie+=1)B.push(A(_,V));return B}};return g}(),U=function(){var W=[],A=0,g={getBuffer:function(){return W},getAt:function(w){var E=Math.floor(w/8);return(W[E]>>>7-w%8&1)==1},put:function(w,E){for(var D=0;D<E;D+=1)g.putBit((w>>>E-D-1&1)==1)},getLengthInBits:function(){return A},putBit:function(w){var E=Math.floor(A/8);W.length<=E&&W.push(0),w&&(W[E]|=128>>>A%8),A+=1}};return g},K=function(W){var A=W,g={getMode:function(){return 1},getLength:function(D){return A.length},write:function(D){for(var k=A,B=0;B+2<k.length;)D.put(w(k.substring(B,B+3)),10),B+=3;B<k.length&&(k.length-B==1?D.put(w(k.substring(B,B+1)),4):k.length-B==2&&D.put(w(k.substring(B,B+2)),7))}},w=function(D){for(var k=0,B=0;B<D.length;B+=1)k=10*k+E(D.charAt(B));return k},E=function(D){if("0"<=D&&D<="9")return D.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+D};return g},J=function(W){var A=W,g={getMode:function(){return 2},getLength:function(E){return A.length},write:function(E){for(var D=A,k=0;k+1<D.length;)E.put(45*w(D.charAt(k))+w(D.charAt(k+1)),11),k+=2;k<D.length&&E.put(w(D.charAt(k)),6)}},w=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 g},j=function(W){var A=l.stringToBytes(W);return{getMode:function(){return 4},getLength:function(g){return A.length},write:function(g){for(var w=0;w<A.length;w+=1)g.put(A[w],8)}}},Z=function(W){var A=l.stringToBytesFuncs.SJIS;if(!A)throw"sjis not supported.";(function(E,D){var k=A("\u53CB");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var g=A(W),w={getMode:function(){return 8},getLength:function(E){return~~(g.length/2)},write:function(E){for(var D=g,k=0;k+1<D.length;){var B=(255&D[k])<<8|255&D[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<D.length)throw"illegal char at "+(k+1)}};return w},le=function(){var W=[],A={writeByte:function(g){W.push(255&g)},writeShort:function(g){A.writeByte(g),A.writeByte(g>>>8)},writeBytes:function(g,w,E){w=w||0,E=E||g.length;for(var D=0;D<E;D+=1)A.writeByte(g[D+w])},writeString:function(g){for(var w=0;w<g.length;w+=1)A.writeByte(g.charCodeAt(w))},toByteArray:function(){return W},toString:function(){var g="";g+="[";for(var w=0;w<W.length;w+=1)w>0&&(g+=","),g+=W[w];return g+"]"}};return A},me=function(W){var A=W,g=0,w=0,E=0,D={read:function(){for(;E<8;){if(g>=A.length){if(E==0)return-1;throw"unexpected end of file./"+E}var B=A.charAt(g);if(g+=1,B=="=")return E=0,-1;B.match(/^\s$/)||(w=w<<6|k(B.charCodeAt(0)),E+=6)}var q=w>>>E-8&255;return E-=8,q}},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 D},fe=function(W,A,g){for(var w=function(_,V){var ie=_,O=V,Y=new Array(_*V),ne={setPixel:function(X,Q,G){Y[Q*ie+X]=G},write:function(X){X.writeString("GIF87a"),X.writeShort(ie),X.writeShort(O),X.writeByte(128),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(0),X.writeByte(255),X.writeByte(255),X.writeByte(255),X.writeString(","),X.writeShort(0),X.writeShort(0),X.writeShort(ie),X.writeShort(O),X.writeByte(0);var Q=ae(2);X.writeByte(2);for(var G=0;Q.length-G>255;)X.writeByte(255),X.writeBytes(Q,G,255),G+=255;X.writeByte(Q.length-G),X.writeBytes(Q,G,Q.length-G),X.writeByte(0),X.writeString(";")}},ae=function(X){for(var Q=1<<X,G=1+(1<<X),ue=X+1,re=he(),ge=0;ge<Q;ge+=1)re.add(String.fromCharCode(ge));re.add(String.fromCharCode(Q)),re.add(String.fromCharCode(G));var Ge,Ne,Ue,st=le(),ee=(Ge=st,Ne=0,Ue=0,{write:function(L,z){if(L>>>z!=0)throw"length over";for(;Ne+z>=8;)Ge.writeByte(255&(L<<Ne|Ue)),z-=8-Ne,L>>>=8-Ne,Ue=0,Ne=0;Ue|=L<<Ne,Ne+=z},flush:function(){Ne>0&&Ge.writeByte(Ue)}});ee.write(Q,ue);var S=0,F=String.fromCharCode(Y[S]);for(S+=1;S<Y.length;){var R=String.fromCharCode(Y[S]);S+=1,re.contains(F+R)?F+=R:(ee.write(re.indexOf(F),ue),re.size()<4095&&(re.size()==1<<ue&&(ue+=1),re.add(F+R)),F=R)}return ee.write(re.indexOf(F),ue),ee.write(G,ue),ee.flush(),st.toByteArray()},he=function(){var X={},Q=0,G={add:function(ue){if(G.contains(ue))throw"dup key:"+ue;X[ue]=Q,Q+=1},size:function(){return Q},indexOf:function(ue){return X[ue]},contains:function(ue){return X[ue]!==void 0}};return G};return ne}(W,A),E=0;E<A;E+=1)for(var D=0;D<W;D+=1)w.setPixel(D,E,g(D,E));var k=le();w.write(k);for(var B=function(){var _=0,V=0,ie=0,O="",Y={},ne=function(he){O+=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(_=_<<8|255&he,V+=8,ie+=1;V>=6;)ne(_>>>V-6),V-=6},Y.flush=function(){if(V>0&&(ne(_<<6-V),_=0,V=0),ie%3!=0)for(var he=3-ie%3,X=0;X<he;X+=1)O+="="},Y.toString=function(){return O},Y}(),q=k.toByteArray(),$=0;$<q.length;$+=1)B.writeByte(q[$]);return B.flush(),"data:image/gif;base64,"+B};return l}();u.stringToBytesFuncs["UTF-8"]=function(l){return function(p){for(var h=[],y=0;y<p.length;y++){var b=p.charCodeAt(y);b<128?h.push(b):b<2048?h.push(192|b>>6,128|63&b):b<55296||b>=57344?h.push(224|b>>12,128|b>>6&63,128|63&b):(y++,b=65536+((1023&b)<<10|1023&p.charCodeAt(y)),h.push(240|b>>18,128|b>>12&63,128|b>>6&63,128|63&b))}return h}(l)},(a=typeof(s=function(){return u})=="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(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},o.apply(this,arguments)},i=function(ee,S,F){if(F||arguments.length===2)for(var R,L=0,z=S.length;L<z;L++)!R&&L in S||(R||(R=Array.prototype.slice.call(S,0,L)),R[L]=S[L]);return ee.concat(R||Array.prototype.slice.call(S))},s=function(ee){return!!ee&&typeof ee=="object"&&!Array.isArray(ee)};function a(ee){for(var S=[],F=1;F<arguments.length;F++)S[F-1]=arguments[F];if(!S.length)return ee;var R=S.shift();return R!==void 0&&s(ee)&&s(R)?(ee=o({},ee),Object.keys(R).forEach(function(L){var z=ee[L],H=R[L];Array.isArray(z)&&Array.isArray(H)?ee[L]=H:s(z)&&s(H)?ee[L]=a(Object.assign({},z),H):ee[L]=H}),a.apply(void 0,i([ee],S,!1))):ee}function u(ee,S){var F=document.createElement("a");F.download=S,F.href=ee,document.body.appendChild(F),F.click(),document.body.removeChild(F)}function l(ee){var S=ee.originalHeight,F=ee.originalWidth,R=ee.maxHiddenDots,L=ee.maxHiddenAxisDots,z=ee.dotSize,H={x:0,y:0},oe={x:0,y:0};if(S<=0||F<=0||R<=0||z<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var se=S/F;return H.x=Math.floor(Math.sqrt(R/se)),H.x<=0&&(H.x=1),L&&L<H.x&&(H.x=L),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>R||L&&L<H.y)&&(L&&L<H.y?(H.y=L,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 p={L:.07,M:.15,Q:.25,H:.3},h="dots",y="rounded",b="classy",v="classy-rounded",C="extra-rounded";var N=function(){return N=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},N.apply(this,arguments)},M=function(){function ee(S){var F=S.context,R=S.type;this._context=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){var z,H=this._context;switch(this._type){case h:z=this._drawDot;break;case b:z=this._drawClassy;break;case v:z=this._drawClassyRounded;break;case y:z=this._drawRounded;break;case C:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:S,y:F,size:R,context:H,getNeighbor:L})},ee.prototype._rotateFigure=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation,oe=H===void 0?0:H,se=S.draw,pe=F+L/2,de=R+L/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},ee.prototype._basicDot=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(0,0,F/2,0,2*Math.PI)}}))},ee.prototype._basicSquare=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.rect(-F/2,-F/2,F,F)}}))},ee.prototype._basicSideRounded=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(0,0,F/2,-Math.PI/2,Math.PI/2),R.lineTo(-F/2,F/2),R.lineTo(-F/2,-F/2),R.lineTo(0,-F/2)}}))},ee.prototype._basicCornerRounded=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(0,0,F/2,-Math.PI/2,0),R.lineTo(F/2,F/2),R.lineTo(-F/2,F/2),R.lineTo(-F/2,-F/2),R.lineTo(0,-F/2)}}))},ee.prototype._basicCornerExtraRounded=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(-F/2,F/2,F,-Math.PI/2,0),R.lineTo(-F/2,F/2),R.lineTo(-F/2,-F/2)}}))},ee.prototype._basicCornersRounded=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(0,0,F/2,-Math.PI/2,0),R.lineTo(F/2,F/2),R.lineTo(0,F/2),R.arc(0,0,F/2,Math.PI/2,Math.PI),R.lineTo(-F/2,-F/2),R.lineTo(0,-F/2)}}))},ee.prototype._basicCornersExtraRounded=function(S){var F=S.size,R=S.context;this._rotateFigure(N(N({},S),{draw:function(){R.arc(-F/2,F/2,F,-Math.PI/2,0),R.arc(F/2,-F/2,F,Math.PI/2,Math.PI)}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size,z=S.context;this._basicDot({x:F,y:R,size:L,context:z,rotation:0})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size,z=S.context;this._basicSquare({x:F,y:R,size:L,context:z,rotation:0})},ee.prototype._drawRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.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,we=oe+se+pe+de;if(we!==0)if(we>2||oe&&se||pe&&de)this._basicSquare({x:F,y:R,size:L,context:z,rotation:0});else{if(we===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:F,y:R,size:L,context:z,rotation:ye})}if(we===1)return ye=0,pe?ye=Math.PI/2:se?ye=Math.PI:de&&(ye=-Math.PI/2),void this._basicSideRounded({x:F,y:R,size:L,context:z,rotation:ye})}else this._basicDot({x:F,y:R,size:L,context:z,rotation:0})},ee.prototype._drawExtraRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.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,we=oe+se+pe+de;if(we!==0)if(we>2||oe&&se||pe&&de)this._basicSquare({x:F,y:R,size:L,context:z,rotation:0});else{if(we===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:F,y:R,size:L,context:z,rotation:ye})}if(we===1)return ye=0,pe?ye=Math.PI/2:se?ye=Math.PI:de&&(ye=-Math.PI/2),void this._basicSideRounded({x:F,y:R,size:L,context:z,rotation:ye})}else this._basicDot({x:F,y:R,size:L,context:z,rotation:0})},ee.prototype._drawClassy=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.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:F,y:R,size:L,context:z,rotation:0}):this._basicCornerRounded({x:F,y:R,size:L,context:z,rotation:Math.PI/2}):this._basicCornerRounded({x:F,y:R,size:L,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:R,size:L,context:z,rotation:Math.PI/2})},ee.prototype._drawClassyRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.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:F,y:R,size:L,context:z,rotation:0}):this._basicCornerExtraRounded({x:F,y:R,size:L,context:z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:F,y:R,size:L,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:R,size:L,context:z,rotation:Math.PI/2})},ee}();let T=M,I="square",U="extra-rounded";var K=function(){return K=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},K.apply(this,arguments)},J=function(){function ee(S){var F=S.context,R=S.type;this._context=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){var z,H=this._context;switch(this._type){case I:z=this._drawSquare;break;case U:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:S,y:F,size:R,context:H,rotation:L})},ee.prototype._rotateFigure=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation,oe=H===void 0?0:H,se=S.draw,pe=F+L/2,de=R+L/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},ee.prototype._basicDot=function(S){var F=S.size,R=S.context,L=F/7;this._rotateFigure(K(K({},S),{draw:function(){R.arc(0,0,F/2,0,2*Math.PI),R.arc(0,0,F/2-L,0,2*Math.PI)}}))},ee.prototype._basicSquare=function(S){var F=S.size,R=S.context,L=F/7;this._rotateFigure(K(K({},S),{draw:function(){R.rect(-F/2,-F/2,F,F),R.rect(-F/2+L,-F/2+L,F-2*L,F-2*L)}}))},ee.prototype._basicExtraRounded=function(S){var F=S.size,R=S.context,L=F/7;this._rotateFigure(K(K({},S),{draw:function(){R.arc(-L,-L,2.5*L,Math.PI,-Math.PI/2),R.lineTo(L,-3.5*L),R.arc(L,-L,2.5*L,-Math.PI/2,0),R.lineTo(3.5*L,-L),R.arc(L,L,2.5*L,0,Math.PI/2),R.lineTo(-L,3.5*L),R.arc(-L,L,2.5*L,Math.PI/2,Math.PI),R.lineTo(-3.5*L,-L),R.arc(-L,-L,1.5*L,Math.PI,-Math.PI/2),R.lineTo(L,-2.5*L),R.arc(L,-L,1.5*L,-Math.PI/2,0),R.lineTo(2.5*L,-L),R.arc(L,L,1.5*L,0,Math.PI/2),R.lineTo(-L,2.5*L),R.arc(-L,L,1.5*L,Math.PI/2,Math.PI),R.lineTo(-2.5*L,-L)}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation;this._basicDot({x:F,y:R,size:L,context:z,rotation:H})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation;this._basicSquare({x:F,y:R,size:L,context:z,rotation:H})},ee.prototype._drawExtraRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation;this._basicExtraRounded({x:F,y:R,size:L,context:z,rotation:H})},ee}();let j=J,Z="square";var le=function(){return le=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},le.apply(this,arguments)},me=function(){function ee(S){var F=S.context,R=S.type;this._context=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){var z=this._context;(this._type===Z?this._drawSquare:this._drawDot).call(this,{x:S,y:F,size:R,context:z,rotation:L})},ee.prototype._rotateFigure=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation,oe=H===void 0?0:H,se=S.draw,pe=F+L/2,de=R+L/2;z.translate(pe,de),oe&&z.rotate(oe),se(),z.closePath(),oe&&z.rotate(-oe),z.translate(-pe,-de)},ee.prototype._basicDot=function(S){var F=S.size,R=S.context;this._rotateFigure(le(le({},S),{draw:function(){R.arc(0,0,F/2,0,2*Math.PI)}}))},ee.prototype._basicSquare=function(S){var F=S.size,R=S.context;this._rotateFigure(le(le({},S),{draw:function(){R.rect(-F/2,-F/2,F,F)}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation;this._basicDot({x:F,y:R,size:L,context:z,rotation:H})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size,z=S.context,H=S.rotation;this._basicSquare({x:F,y:R,size:L,context:z,rotation:H})},ee}();let fe=me,W="radial";var A=[[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]],g=[[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 w=function(){function ee(S){this._canvas=document.createElement("canvas"),this._canvas.width=S.width,this._canvas.height=S.height,this._options=S}return Object.defineProperty(ee.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),ee.prototype.getCanvas=function(){return this._canvas},ee.prototype.clear=function(){var S=this.context;S&&S.clearRect(0,0,this._canvas.width,this._canvas.height)},ee.prototype.drawQR=function(S){return F=this,R=void 0,z=function(){var H,oe,se,pe,de,we,ye,Ee,Le,ze=this;return function(Re,je){var Pe,Ce,xe,Be,Me={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return Be={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function xt(qe){return function(et){return function(Oe){if(Pe)throw new TypeError("Generator is already executing.");for(;Me;)try{if(Pe=1,Ce&&(xe=2&Oe[0]?Ce.return:Oe[0]?Ce.throw||((xe=Ce.return)&&xe.call(Ce),0):Ce.next)&&!(xe=xe.call(Ce,Oe[1])).done)return xe;switch(Ce=0,xe&&(Oe=[2&Oe[0],xe.value]),Oe[0]){case 0:case 1:xe=Oe;break;case 4:return Me.label++,{value:Oe[1],done:!1};case 5:Me.label++,Ce=Oe[1],Oe=[0];continue;case 7:Oe=Me.ops.pop(),Me.trys.pop();continue;default:if(!((xe=(xe=Me.trys).length>0&&xe[xe.length-1])||Oe[0]!==6&&Oe[0]!==2)){Me=0;continue}if(Oe[0]===3&&(!xe||Oe[1]>xe[0]&&Oe[1]<xe[3])){Me.label=Oe[1];break}if(Oe[0]===6&&Me.label<xe[1]){Me.label=xe[1],xe=Oe;break}if(xe&&Me.label<xe[2]){Me.label=xe[2],Me.ops.push(Oe);break}xe[2]&&Me.ops.pop(),Me.trys.pop();continue}Oe=je.call(Re,Me)}catch(Ye){Oe=[6,Ye],Ce=0}finally{Pe=xe=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([qe,et])}}}(this,function(Re){switch(Re.label){case 0:return H=S.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=S,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Re.sent(),!this._image)return[2];de=this._options,we=de.imageOptions,ye=de.qrOptions,Ee=we.imageSize*p[ye.errorCorrectionLevel],Le=Math.floor(Ee*H*H),pe=l({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Le,maxHiddenAxisDots:H-14,dotSize:se}),Re.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(je,Pe){var Ce,xe,Be,Me,xt,qe;return!(ze._options.imageOptions.hideBackgroundDots&&je>=(H-pe.hideXDots)/2&&je<(H+pe.hideXDots)/2&&Pe>=(H-pe.hideYDots)/2&&Pe<(H+pe.hideYDots)/2||((Ce=A[je])===null||Ce===void 0?void 0:Ce[Pe])||((xe=A[je-H+7])===null||xe===void 0?void 0:xe[Pe])||((Be=A[je])===null||Be===void 0?void 0:Be[Pe-H+7])||((Me=g[je])===null||Me===void 0?void 0:Me[Pe])||((xt=g[je-H+7])===null||xt===void 0?void 0:xt[Pe])||((qe=g[je])===null||qe===void 0?void 0:qe[Pe-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:pe.width,height:pe.height,count:H,dotSize:se}),[2]}})},new((L=void 0)||(L=Promise))(function(H,oe){function se(we){try{de(z.next(we))}catch(ye){oe(ye)}}function pe(we){try{de(z.throw(we))}catch(ye){oe(ye)}}function de(we){var ye;we.done?H(we.value):(ye=we.value,ye instanceof L?ye:new L(function(Ee){Ee(ye)})).then(se,pe)}de((z=z.apply(F,R||[])).next())});var F,R,L,z},ee.prototype.drawBackground=function(){var S=this.context,F=this._options;if(S){if(F.backgroundOptions.gradient){var R=F.backgroundOptions.gradient,L=this._createGradient({context:S,options:R,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});R.colorStops.forEach(function(z){var H=z.offset,oe=z.color;L.addColorStop(H,oe)}),S.fillStyle=L}else F.backgroundOptions.color&&(S.fillStyle=F.backgroundOptions.color);S.fillRect(0,0,this._canvas.width,this._canvas.height)}},ee.prototype.drawDots=function(S){var F=this;if(!this._qr)throw"QR code is not defined";var R=this.context;if(!R)throw"QR code is not defined";var L=this._options,z=this._qr.getModuleCount();if(z>L.width||z>L.height)throw"The canvas is too small.";var H=Math.min(L.width,L.height)-2*L.margin,oe=Math.floor(H/z),se=Math.floor((L.width-z*oe)/2),pe=Math.floor((L.height-z*oe)/2),de=new T({context:R,type:L.dotsOptions.type});R.beginPath();for(var we=function(Re){for(var je=function(Ce){return S&&!S(Re,Ce)?"continue":ye._qr.isDark(Re,Ce)?void de.draw(se+Re*oe,pe+Ce*oe,oe,function(xe,Be){return!(Re+xe<0||Ce+Be<0||Re+xe>=z||Ce+Be>=z)&&!(S&&!S(Re+xe,Ce+Be))&&!!F._qr&&F._qr.isDark(Re+xe,Ce+Be)}):"continue"},Pe=0;Pe<z;Pe++)je(Pe)},ye=this,Ee=0;Ee<z;Ee++)we(Ee);if(L.dotsOptions.gradient){var Le=L.dotsOptions.gradient,ze=this._createGradient({context:R,options:Le,additionalRotation:0,x:se,y:pe,size:z*oe});Le.colorStops.forEach(function(Re){var je=Re.offset,Pe=Re.color;ze.addColorStop(je,Pe)}),R.fillStyle=R.strokeStyle=ze}else L.dotsOptions.color&&(R.fillStyle=R.strokeStyle=L.dotsOptions.color);R.fill("evenodd")},ee.prototype.drawCorners=function(S){var F=this;if(!this._qr)throw"QR code is not defined";var R=this.context;if(!R)throw"QR code is not defined";var L=this._options,z=this._qr.getModuleCount(),H=Math.min(L.width,L.height)-2*L.margin,oe=Math.floor(H/z),se=7*oe,pe=3*oe,de=Math.floor((L.width-z*oe)/2),we=Math.floor((L.height-z*oe)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(ye){var Ee,Le,ze,Re,je,Pe,Ce,xe,Be,Me,xt=ye[0],qe=ye[1],et=ye[2];if(!S||S(xt,qe)){var Oe=de+xt*oe*(z-7),Ye=we+qe*oe*(z-7);if(!((Ee=L.cornersSquareOptions)===null||Ee===void 0)&&Ee.type){var mt=new j({context:R,type:(Le=L.cornersSquareOptions)===null||Le===void 0?void 0:Le.type});R.beginPath(),mt.draw(Oe,Ye,se,et)}else{var lr=new T({context:R,type:L.dotsOptions.type});R.beginPath();for(var St=function(Ke){for(var Zt=function(at){if(!(!((ze=A[Ke])===null||ze===void 0)&&ze[at]))return"continue";lr.draw(Oe+Ke*oe,Ye+at*oe,oe,function(rn,ut){var gt;return!!(!((gt=A[Ke+rn])===null||gt===void 0)&&gt[at+ut])})},Ze=0;Ze<A[Ke].length;Ze++)Zt(Ze)},Qe=0;Qe<A.length;Qe++)St(Qe)}if(!((Re=L.cornersSquareOptions)===null||Re===void 0)&&Re.gradient){var tn=L.cornersSquareOptions.gradient,ct=F._createGradient({context:R,options:tn,additionalRotation:et,x:Oe,y:Ye,size:se});tn.colorStops.forEach(function(Ke){var Zt=Ke.offset,Ze=Ke.color;ct.addColorStop(Zt,Ze)}),R.fillStyle=R.strokeStyle=ct}else!((je=L.cornersSquareOptions)===null||je===void 0)&&je.color&&(R.fillStyle=R.strokeStyle=L.cornersSquareOptions.color);if(R.fill("evenodd"),(Pe=L.cornersDotOptions)===null||Pe===void 0?void 0:Pe.type){var Ct=new fe({context:R,type:(Ce=L.cornersDotOptions)===null||Ce===void 0?void 0:Ce.type});R.beginPath(),Ct.draw(Oe+2*oe,Ye+2*oe,pe,et)}else{lr=new T({context:R,type:L.dotsOptions.type}),R.beginPath();var wo=function(Ke){for(var Zt=function(at){if(!(!((xe=g[Ke])===null||xe===void 0)&&xe[at]))return"continue";lr.draw(Oe+Ke*oe,Ye+at*oe,oe,function(rn,ut){var gt;return!!(!((gt=g[Ke+rn])===null||gt===void 0)&&gt[at+ut])})},Ze=0;Ze<g[Ke].length;Ze++)Zt(Ze)};for(Qe=0;Qe<g.length;Qe++)wo(Qe)}if(!((Be=L.cornersDotOptions)===null||Be===void 0)&&Be.gradient){tn=L.cornersDotOptions.gradient;var nt=F._createGradient({context:R,options:tn,additionalRotation:et,x:Oe+2*oe,y:Ye+2*oe,size:pe});tn.colorStops.forEach(function(Ke){var Zt=Ke.offset,Ze=Ke.color;nt.addColorStop(Zt,Ze)}),R.fillStyle=R.strokeStyle=nt}else!((Me=L.cornersDotOptions)===null||Me===void 0)&&Me.color&&(R.fillStyle=R.strokeStyle=L.cornersDotOptions.color);R.fill("evenodd")}})},ee.prototype.loadImage=function(){var S=this;return new Promise(function(F,R){var L=S._options,z=new Image;if(!L.image)return R("Image is not defined");typeof L.imageOptions.crossOrigin=="string"&&(z.crossOrigin=L.imageOptions.crossOrigin),S._image=z,z.onload=function(){F()},z.src=L.image})},ee.prototype.drawImage=function(S){var F=S.width,R=S.height,L=S.count,z=S.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-L*z)/2),pe=Math.floor((oe.height-L*z)/2),de=se+oe.imageOptions.margin+(L*z-F)/2,we=pe+oe.imageOptions.margin+(L*z-R)/2,ye=F-2*oe.imageOptions.margin,Ee=R-2*oe.imageOptions.margin;H.drawImage(this._image,de,we,ye<0?0:ye,Ee<0?0:Ee)},ee.prototype._createGradient=function(S){var F,R=S.context,L=S.options,z=S.additionalRotation,H=S.x,oe=S.y,se=S.size;if(L.type===W)F=R.createRadialGradient(H+se/2,oe+se/2,0,H+se/2,oe+se/2,se/2);else{var pe=((L.rotation||0)+z)%(2*Math.PI),de=(pe+2*Math.PI)%(2*Math.PI),we=H+se/2,ye=oe+se/2,Ee=H+se/2,Le=oe+se/2;de>=0&&de<=.25*Math.PI||de>1.75*Math.PI&&de<=2*Math.PI?(we-=se/2,ye-=se/2*Math.tan(pe),Ee+=se/2,Le+=se/2*Math.tan(pe)):de>.25*Math.PI&&de<=.75*Math.PI?(ye-=se/2,we-=se/2/Math.tan(pe),Le+=se/2,Ee+=se/2/Math.tan(pe)):de>.75*Math.PI&&de<=1.25*Math.PI?(we+=se/2,ye+=se/2*Math.tan(pe),Ee-=se/2,Le-=se/2*Math.tan(pe)):de>1.25*Math.PI&&de<=1.75*Math.PI&&(ye+=se/2,we+=se/2/Math.tan(pe),Le-=se/2,Ee-=se/2/Math.tan(pe)),F=R.createLinearGradient(Math.round(we),Math.round(ye),Math.round(Ee),Math.round(Le))}return F},ee}();var E=function(){return E=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},E.apply(this,arguments)},D=function(){function ee(S){var F=S.svg,R=S.type;this._svg=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){var z;switch(this._type){case h:z=this._drawDot;break;case b:z=this._drawClassy;break;case v:z=this._drawClassyRounded;break;case y:z=this._drawRounded;break;case C:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:S,y:F,size:R,getNeighbor:L})},ee.prototype._rotateFigure=function(S){var F,R=S.x,L=S.y,z=S.size,H=S.rotation,oe=H===void 0?0:H,se=R+z/2,pe=L+z/2;(0,S.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},ee.prototype._basicDot=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),F._element.setAttribute("cx",String(L+R/2)),F._element.setAttribute("cy",String(z+R/2)),F._element.setAttribute("r",String(R/2))}}))},ee.prototype._basicSquare=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),F._element.setAttribute("x",String(L)),F._element.setAttribute("y",String(z)),F._element.setAttribute("width",String(R)),F._element.setAttribute("height",String(R))}}))},ee.prototype._basicSideRounded=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat(L," ").concat(z)+"v ".concat(R)+"h ".concat(R/2)+"a ".concat(R/2," ").concat(R/2,", 0, 0, 0, 0 ").concat(-R))}}))},ee.prototype._basicCornerRounded=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat(L," ").concat(z)+"v ".concat(R)+"h ".concat(R)+"v ".concat(-R/2)+"a ".concat(R/2," ").concat(R/2,", 0, 0, 0, ").concat(-R/2," ").concat(-R/2))}}))},ee.prototype._basicCornerExtraRounded=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat(L," ").concat(z)+"v ".concat(R)+"h ".concat(R)+"a ".concat(R," ").concat(R,", 0, 0, 0, ").concat(-R," ").concat(-R))}}))},ee.prototype._basicCornersRounded=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(E(E({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat(L," ").concat(z)+"v ".concat(R/2)+"a ".concat(R/2," ").concat(R/2,", 0, 0, 0, ").concat(R/2," ").concat(R/2)+"h ".concat(R/2)+"v ".concat(-R/2)+"a ".concat(R/2," ").concat(R/2,", 0, 0, 0, ").concat(-R/2," ").concat(-R/2))}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size;this._basicDot({x:F,y:R,size:L,rotation:0})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size;this._basicSquare({x:F,y:R,size:L,rotation:0})},ee.prototype._drawRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.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:F,y:R,size:L,rotation:0});else{if(de===2){var we=0;return H&&se?we=Math.PI/2:se&&oe?we=Math.PI:oe&&pe&&(we=-Math.PI/2),void this._basicCornerRounded({x:F,y:R,size:L,rotation:we})}if(de===1)return we=0,se?we=Math.PI/2:oe?we=Math.PI:pe&&(we=-Math.PI/2),void this._basicSideRounded({x:F,y:R,size:L,rotation:we})}else this._basicDot({x:F,y:R,size:L,rotation:0})},ee.prototype._drawExtraRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.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:F,y:R,size:L,rotation:0});else{if(de===2){var we=0;return H&&se?we=Math.PI/2:se&&oe?we=Math.PI:oe&&pe&&(we=-Math.PI/2),void this._basicCornerExtraRounded({x:F,y:R,size:L,rotation:we})}if(de===1)return we=0,se?we=Math.PI/2:oe?we=Math.PI:pe&&(we=-Math.PI/2),void this._basicSideRounded({x:F,y:R,size:L,rotation:we})}else this._basicDot({x:F,y:R,size:L,rotation:0})},ee.prototype._drawClassy=function(S){var F=S.x,R=S.y,L=S.size,z=S.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:F,y:R,size:L,rotation:0}):this._basicCornerRounded({x:F,y:R,size:L,rotation:Math.PI/2}):this._basicCornerRounded({x:F,y:R,size:L,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:R,size:L,rotation:Math.PI/2})},ee.prototype._drawClassyRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.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:F,y:R,size:L,rotation:0}):this._basicCornerExtraRounded({x:F,y:R,size:L,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:F,y:R,size:L,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:R,size:L,rotation:Math.PI/2})},ee}();let k=D;var B=function(){return B=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},B.apply(this,arguments)},q=function(){function ee(S){var F=S.svg,R=S.type;this._svg=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){var z;switch(this._type){case I:z=this._drawSquare;break;case U:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:S,y:F,size:R,rotation:L})},ee.prototype._rotateFigure=function(S){var F,R=S.x,L=S.y,z=S.size,H=S.rotation,oe=H===void 0?0:H,se=R+z/2,pe=L+z/2;(0,S.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},ee.prototype._basicDot=function(S){var F=this,R=S.size,L=S.x,z=S.y,H=R/7;this._rotateFigure(B(B({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat(L+R/2," ").concat(z)+"a ".concat(R/2," ").concat(R/2," 0 1 0 0.1 0")+"z"+"m 0 ".concat(H)+"a ".concat(R/2-H," ").concat(R/2-H," 0 1 1 -0.1 0")+"Z")}}))},ee.prototype._basicSquare=function(S){var F=this,R=S.size,L=S.x,z=S.y,H=R/7;this._rotateFigure(B(B({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat(L," ").concat(z)+"v ".concat(R)+"h ".concat(R)+"v ".concat(-R)+"z"+"M ".concat(L+H," ").concat(z+H)+"h ".concat(R-2*H)+"v ".concat(R-2*H)+"h ".concat(2*H-R)+"z")}}))},ee.prototype._basicExtraRounded=function(S){var F=this,R=S.size,L=S.x,z=S.y,H=R/7;this._rotateFigure(B(B({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat(L," ").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(L+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))}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size,z=S.rotation;this._basicDot({x:F,y:R,size:L,rotation:z})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size,z=S.rotation;this._basicSquare({x:F,y:R,size:L,rotation:z})},ee.prototype._drawExtraRounded=function(S){var F=S.x,R=S.y,L=S.size,z=S.rotation;this._basicExtraRounded({x:F,y:R,size:L,rotation:z})},ee}();let $=q;var _=function(){return _=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},_.apply(this,arguments)},V=function(){function ee(S){var F=S.svg,R=S.type;this._svg=F,this._type=R}return ee.prototype.draw=function(S,F,R,L){(this._type===Z?this._drawSquare:this._drawDot).call(this,{x:S,y:F,size:R,rotation:L})},ee.prototype._rotateFigure=function(S){var F,R=S.x,L=S.y,z=S.size,H=S.rotation,oe=H===void 0?0:H,se=R+z/2,pe=L+z/2;(0,S.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*oe/Math.PI,",").concat(se,",").concat(pe,")"))},ee.prototype._basicDot=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(_(_({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),F._element.setAttribute("cx",String(L+R/2)),F._element.setAttribute("cy",String(z+R/2)),F._element.setAttribute("r",String(R/2))}}))},ee.prototype._basicSquare=function(S){var F=this,R=S.size,L=S.x,z=S.y;this._rotateFigure(_(_({},S),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),F._element.setAttribute("x",String(L)),F._element.setAttribute("y",String(z)),F._element.setAttribute("width",String(R)),F._element.setAttribute("height",String(R))}}))},ee.prototype._drawDot=function(S){var F=S.x,R=S.y,L=S.size,z=S.rotation;this._basicDot({x:F,y:R,size:L,rotation:z})},ee.prototype._drawSquare=function(S){var F=S.x,R=S.y,L=S.size,z=S.rotation;this._basicSquare({x:F,y:R,size:L,rotation:z})},ee}();let ie=V;var O=[[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 ee(S){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(S.width)),this._element.setAttribute("height",String(S.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=S}return Object.defineProperty(ee.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),ee.prototype.getElement=function(){return this._element},ee.prototype.clear=function(){var S,F=this._element;this._element=F.cloneNode(!1),(S=F==null?void 0:F.parentNode)===null||S===void 0||S.replaceChild(this._element,F),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},ee.prototype.drawQR=function(S){return F=this,R=void 0,z=function(){var H,oe,se,pe,de,we,ye,Ee,Le,ze=this;return function(Re,je){var Pe,Ce,xe,Be,Me={label:0,sent:function(){if(1&xe[0])throw xe[1];return xe[1]},trys:[],ops:[]};return Be={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function xt(qe){return function(et){return function(Oe){if(Pe)throw new TypeError("Generator is already executing.");for(;Me;)try{if(Pe=1,Ce&&(xe=2&Oe[0]?Ce.return:Oe[0]?Ce.throw||((xe=Ce.return)&&xe.call(Ce),0):Ce.next)&&!(xe=xe.call(Ce,Oe[1])).done)return xe;switch(Ce=0,xe&&(Oe=[2&Oe[0],xe.value]),Oe[0]){case 0:case 1:xe=Oe;break;case 4:return Me.label++,{value:Oe[1],done:!1};case 5:Me.label++,Ce=Oe[1],Oe=[0];continue;case 7:Oe=Me.ops.pop(),Me.trys.pop();continue;default:if(!((xe=(xe=Me.trys).length>0&&xe[xe.length-1])||Oe[0]!==6&&Oe[0]!==2)){Me=0;continue}if(Oe[0]===3&&(!xe||Oe[1]>xe[0]&&Oe[1]<xe[3])){Me.label=Oe[1];break}if(Oe[0]===6&&Me.label<xe[1]){Me.label=xe[1],xe=Oe;break}if(xe&&Me.label<xe[2]){Me.label=xe[2],Me.ops.push(Oe);break}xe[2]&&Me.ops.pop(),Me.trys.pop();continue}Oe=je.call(Re,Me)}catch(Ye){Oe=[6,Ye],Ce=0}finally{Pe=xe=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([qe,et])}}}(this,function(Re){switch(Re.label){case 0:return H=S.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=S,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Re.sent(),!this._image)return[2];de=this._options,we=de.imageOptions,ye=de.qrOptions,Ee=we.imageSize*p[ye.errorCorrectionLevel],Le=Math.floor(Ee*H*H),pe=l({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Le,maxHiddenAxisDots:H-14,dotSize:se}),Re.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(je,Pe){var Ce,xe,Be,Me,xt,qe;return!(ze._options.imageOptions.hideBackgroundDots&&je>=(H-pe.hideXDots)/2&&je<(H+pe.hideXDots)/2&&Pe>=(H-pe.hideYDots)/2&&Pe<(H+pe.hideYDots)/2||((Ce=O[je])===null||Ce===void 0?void 0:Ce[Pe])||((xe=O[je-H+7])===null||xe===void 0?void 0:xe[Pe])||((Be=O[je])===null||Be===void 0?void 0:Be[Pe-H+7])||((Me=Y[je])===null||Me===void 0?void 0:Me[Pe])||((xt=Y[je-H+7])===null||xt===void 0?void 0:xt[Pe])||((qe=Y[je])===null||qe===void 0?void 0:qe[Pe-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:pe.width,height:pe.height,count:H,dotSize:se}),[2]}})},new((L=void 0)||(L=Promise))(function(H,oe){function se(we){try{de(z.next(we))}catch(ye){oe(ye)}}function pe(we){try{de(z.throw(we))}catch(ye){oe(ye)}}function de(we){var ye;we.done?H(we.value):(ye=we.value,ye instanceof L?ye:new L(function(Ee){Ee(ye)})).then(se,pe)}de((z=z.apply(F,R||[])).next())});var F,R,L,z},ee.prototype.drawBackground=function(){var S,F,R=this._element,L=this._options;if(R){var z=(S=L.backgroundOptions)===null||S===void 0?void 0:S.gradient,H=(F=L.backgroundOptions)===null||F===void 0?void 0:F.color;(z||H)&&this._createColor({options:z,color:H,additionalRotation:0,x:0,y:0,height:L.height,width:L.width,name:"background-color"})}},ee.prototype.drawDots=function(S){var F,R,L=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:(F=z.dotsOptions)===null||F===void 0?void 0:F.gradient,color:z.dotsOptions.color,additionalRotation:0,x:se,y:pe,height:H*oe,width:H*oe,name:"dot-color"});for(var we=function(Le){for(var ze=function(je){return S&&!S(Le,je)?"continue":!((R=ye._qr)===null||R===void 0)&&R.isDark(Le,je)?(de.draw(se+Le*oe,pe+je*oe,oe,function(Pe,Ce){return!(Le+Pe<0||je+Ce<0||Le+Pe>=H||je+Ce>=H)&&!(S&&!S(Le+Pe,je+Ce))&&!!L._qr&&L._qr.isDark(Le+Pe,je+Ce)}),void(de._element&&ye._dotsClipPath&&ye._dotsClipPath.appendChild(de._element))):"continue"},Re=0;Re<H;Re++)ze(Re)},ye=this,Ee=0;Ee<H;Ee++)we(Ee)},ee.prototype.drawCorners=function(){var S=this;if(!this._qr)throw"QR code is not defined";var F=this._element,R=this._options;if(!F)throw"Element code is not defined";var L=this._qr.getModuleCount(),z=(Math.min(R.width,R.height)-2*R.margin)/L,H=7*z,oe=3*z,se=(R.width-L*z)/2,pe=(R.height-L*z)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(de){var we,ye,Ee,Le,ze,Re,je,Pe,Ce,xe,Be,Me,xt=de[0],qe=de[1],et=de[2],Oe=se+xt*z*(L-7),Ye=pe+qe*z*(L-7),mt=S._dotsClipPath,lr=S._dotsClipPath;if((((we=R.cornersSquareOptions)===null||we===void 0?void 0:we.gradient)||((ye=R.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(qe)),S._defs.appendChild(mt),S._cornersSquareClipPath=S._cornersDotClipPath=lr=mt,S._createColor({options:(Ee=R.cornersSquareOptions)===null||Ee===void 0?void 0:Ee.gradient,color:(Le=R.cornersSquareOptions)===null||Le===void 0?void 0:Le.color,additionalRotation:et,x:Oe,y:Ye,height:H,width:H,name:"corners-square-color-".concat(xt,"-").concat(qe)})),(ze=R.cornersSquareOptions)===null||ze===void 0?void 0:ze.type){var St=new $({svg:S._element,type:R.cornersSquareOptions.type});St.draw(Oe,Ye,H,et),St._element&&mt&&mt.appendChild(St._element)}else for(var Qe=new k({svg:S._element,type:R.dotsOptions.type}),tn=function(nt){for(var Ke=function(Ze){if(!(!((Re=O[nt])===null||Re===void 0)&&Re[Ze]))return"continue";Qe.draw(Oe+nt*z,Ye+Ze*z,z,function(at,rn){var ut;return!!(!((ut=O[nt+at])===null||ut===void 0)&&ut[Ze+rn])}),Qe._element&&mt&&mt.appendChild(Qe._element)},Zt=0;Zt<O[nt].length;Zt++)Ke(Zt)},ct=0;ct<O.length;ct++)tn(ct);if((((je=R.cornersDotOptions)===null||je===void 0?void 0:je.gradient)||((Pe=R.cornersDotOptions)===null||Pe===void 0?void 0:Pe.color))&&((lr=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-".concat(xt,"-").concat(qe)),S._defs.appendChild(lr),S._cornersDotClipPath=lr,S._createColor({options:(Ce=R.cornersDotOptions)===null||Ce===void 0?void 0:Ce.gradient,color:(xe=R.cornersDotOptions)===null||xe===void 0?void 0:xe.color,additionalRotation:et,x:Oe+2*z,y:Ye+2*z,height:oe,width:oe,name:"corners-dot-color-".concat(xt,"-").concat(qe)})),(Be=R.cornersDotOptions)===null||Be===void 0?void 0:Be.type){var Ct=new ie({svg:S._element,type:R.cornersDotOptions.type});Ct.draw(Oe+2*z,Ye+2*z,oe,et),Ct._element&&lr&&lr.appendChild(Ct._element)}else{Qe=new k({svg:S._element,type:R.dotsOptions.type});var wo=function(nt){for(var Ke=function(Ze){if(!(!((Me=Y[nt])===null||Me===void 0)&&Me[Ze]))return"continue";Qe.draw(Oe+nt*z,Ye+Ze*z,z,function(at,rn){var ut;return!!(!((ut=Y[nt+at])===null||ut===void 0)&&ut[Ze+rn])}),Qe._element&&lr&&lr.appendChild(Qe._element)},Zt=0;Zt<Y[nt].length;Zt++)Ke(Zt)};for(ct=0;ct<Y.length;ct++)wo(ct)}})},ee.prototype.loadImage=function(){var S=this;return new Promise(function(F,R){var L=S._options,z=new Image;if(!L.image)return R("Image is not defined");typeof L.imageOptions.crossOrigin=="string"&&(z.crossOrigin=L.imageOptions.crossOrigin),S._image=z,z.onload=function(){F()},z.src=L.image})},ee.prototype.drawImage=function(S){var F=S.width,R=S.height,L=S.count,z=S.dotSize,H=this._options,oe=(H.width-L*z)/2,se=(H.height-L*z)/2,pe=oe+H.imageOptions.margin+(L*z-F)/2,de=se+H.imageOptions.margin+(L*z-R)/2,we=F-2*H.imageOptions.margin,ye=R-2*H.imageOptions.margin,Ee=document.createElementNS("http://www.w3.org/2000/svg","image");Ee.setAttribute("href",H.image||""),Ee.setAttribute("x",String(pe)),Ee.setAttribute("y",String(de)),Ee.setAttribute("width","".concat(we,"px")),Ee.setAttribute("height","".concat(ye,"px")),this._element.appendChild(Ee)},ee.prototype._createColor=function(S){var F=S.options,R=S.color,L=S.additionalRotation,z=S.x,H=S.y,oe=S.height,se=S.width,pe=S.name,de=se>oe?se:oe,we=document.createElementNS("http://www.w3.org/2000/svg","rect");if(we.setAttribute("x",String(z)),we.setAttribute("y",String(H)),we.setAttribute("height",String(oe)),we.setAttribute("width",String(se)),we.setAttribute("clip-path","url('#clip-path-".concat(pe,"')")),F){var ye;if(F.type===W)(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 Ee=((F.rotation||0)+L)%(2*Math.PI),Le=(Ee+2*Math.PI)%(2*Math.PI),ze=z+se/2,Re=H+oe/2,je=z+se/2,Pe=H+oe/2;Le>=0&&Le<=.25*Math.PI||Le>1.75*Math.PI&&Le<=2*Math.PI?(ze-=se/2,Re-=oe/2*Math.tan(Ee),je+=se/2,Pe+=oe/2*Math.tan(Ee)):Le>.25*Math.PI&&Le<=.75*Math.PI?(Re-=oe/2,ze-=se/2/Math.tan(Ee),Pe+=oe/2,je+=se/2/Math.tan(Ee)):Le>.75*Math.PI&&Le<=1.25*Math.PI?(ze+=se/2,Re+=oe/2*Math.tan(Ee),je-=se/2,Pe-=oe/2*Math.tan(Ee)):Le>1.25*Math.PI&&Le<=1.75*Math.PI&&(Re+=oe/2,ze+=se/2/Math.tan(Ee),Pe-=oe/2,je-=se/2/Math.tan(Ee)),(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(Re))),ye.setAttribute("x2",String(Math.round(je))),ye.setAttribute("y2",String(Math.round(Pe)))}F.colorStops.forEach(function(Ce){var xe=Ce.offset,Be=Ce.color,Me=document.createElementNS("http://www.w3.org/2000/svg","stop");Me.setAttribute("offset","".concat(100*xe,"%")),Me.setAttribute("stop-color",Be),ye.appendChild(Me)}),we.setAttribute("fill","url('#".concat(pe,"')")),this._defs.appendChild(ye)}else R&&we.setAttribute("fill",R);this._element.appendChild(we)},ee}(),ae="canvas";for(var he={},X=0;X<=40;X++)he[X]=X;let Q={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 G=function(){return G=Object.assign||function(ee){for(var S,F=1,R=arguments.length;F<R;F++)for(var L in S=arguments[F])Object.prototype.hasOwnProperty.call(S,L)&&(ee[L]=S[L]);return ee},G.apply(this,arguments)};function ue(ee){var S=G({},ee);if(!S.colorStops||!S.colorStops.length)throw"Field 'colorStops' is required in gradient";return S.rotation?S.rotation=Number(S.rotation):S.rotation=0,S.colorStops=S.colorStops.map(function(F){return G(G({},F),{offset:Number(F.offset)})}),S}function re(ee){var S=G({},ee);return S.width=Number(S.width),S.height=Number(S.height),S.margin=Number(S.margin),S.imageOptions=G(G({},S.imageOptions),{hideBackgroundDots:Boolean(S.imageOptions.hideBackgroundDots),imageSize:Number(S.imageOptions.imageSize),margin:Number(S.imageOptions.margin)}),S.margin>Math.min(S.width,S.height)&&(S.margin=Math.min(S.width,S.height)),S.dotsOptions=G({},S.dotsOptions),S.dotsOptions.gradient&&(S.dotsOptions.gradient=ue(S.dotsOptions.gradient)),S.cornersSquareOptions&&(S.cornersSquareOptions=G({},S.cornersSquareOptions),S.cornersSquareOptions.gradient&&(S.cornersSquareOptions.gradient=ue(S.cornersSquareOptions.gradient))),S.cornersDotOptions&&(S.cornersDotOptions=G({},S.cornersDotOptions),S.cornersDotOptions.gradient&&(S.cornersDotOptions.gradient=ue(S.cornersDotOptions.gradient))),S.backgroundOptions&&(S.backgroundOptions=G({},S.backgroundOptions),S.backgroundOptions.gradient&&(S.backgroundOptions.gradient=ue(S.backgroundOptions.gradient))),S}var ge=r(192),Ge=r.n(ge),Ne=function(ee,S,F,R){return new(F||(F=Promise))(function(L,z){function H(pe){try{se(R.next(pe))}catch(de){z(de)}}function oe(pe){try{se(R.throw(pe))}catch(de){z(de)}}function se(pe){var de;pe.done?L(pe.value):(de=pe.value,de instanceof F?de:new F(function(we){we(de)})).then(H,oe)}se((R=R.apply(ee,S||[])).next())})},Ue=function(ee,S){var F,R,L,z,H={label:0,sent:function(){if(1&L[0])throw L[1];return L[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(F)throw new TypeError("Generator is already executing.");for(;H;)try{if(F=1,R&&(L=2&de[0]?R.return:de[0]?R.throw||((L=R.return)&&L.call(R),0):R.next)&&!(L=L.call(R,de[1])).done)return L;switch(R=0,L&&(de=[2&de[0],L.value]),de[0]){case 0:case 1:L=de;break;case 4:return H.label++,{value:de[1],done:!1};case 5:H.label++,R=de[1],de=[0];continue;case 7:de=H.ops.pop(),H.trys.pop();continue;default:if(!((L=(L=H.trys).length>0&&L[L.length-1])||de[0]!==6&&de[0]!==2)){H=0;continue}if(de[0]===3&&(!L||de[1]>L[0]&&de[1]<L[3])){H.label=de[1];break}if(de[0]===6&&H.label<L[1]){H.label=L[1],L=de;break}if(L&&H.label<L[2]){H.label=L[2],H.ops.push(de);break}L[2]&&H.ops.pop(),H.trys.pop();continue}de=S.call(ee,H)}catch(we){de=[6,we],R=0}finally{F=L=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([se,pe])}}};let st=function(){function ee(S){this._options=S?re(a(Q,S)):Q,this.update()}return ee._clearContainer=function(S){S&&(S.innerHTML="")},ee.prototype._getQRStylingElement=function(S){return S===void 0&&(S="png"),Ne(this,void 0,void 0,function(){var F,R,L;return Ue(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return S.toLowerCase()!=="svg"?[3,2]:(R=void 0,F=void 0,this._svg&&this._svgDrawingPromise?(F=this._svg,R=this._svgDrawingPromise):(F=new ne(this._options),R=F.drawQR(this._qr)),[4,R]);case 1:return z.sent(),[2,F];case 2:return R=void 0,L=void 0,this._canvas&&this._canvasDrawingPromise?(L=this._canvas,R=this._canvasDrawingPromise):(L=new w(this._options),R=L.drawQR(this._qr)),[4,R];case 3:return z.sent(),[2,L]}})})},ee.prototype.update=function(S){ee._clearContainer(this._container),this._options=S?re(a(this._options,S)):this._options,this._options.data&&(this._qr=Ge()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(F){switch(!0){case/^[0-9]*$/.test(F):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(F):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ae?(this._canvas=new w(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))},ee.prototype.append=function(S){if(S){if(typeof S.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ae?this._canvas&&S.appendChild(this._canvas.getCanvas()):this._svg&&S.appendChild(this._svg.getElement()),this._container=S}},ee.prototype.getRawData=function(S){return S===void 0&&(S="png"),Ne(this,void 0,void 0,function(){var F,R,L;return Ue(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(S)];case 1:return F=z.sent(),S.toLowerCase()==="svg"?(R=new XMLSerializer,L=R.serializeToString(F.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
11
+ `+L],{type:"image/svg+xml"})]):[2,new Promise(function(H){return F.getCanvas().toBlob(H,"image/".concat(S),1)})]}})})},ee.prototype.download=function(S){return Ne(this,void 0,void 0,function(){var F,R,L,z,H;return Ue(this,function(oe){switch(oe.label){case 0:if(!this._qr)throw"QR code is empty";return F="png",R="qr",typeof S=="string"?(F=S,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof S=="object"&&S!==null&&(S.name&&(R=S.name),S.extension&&(F=S.extension)),[4,this._getQRStylingElement(F)];case 1:return L=oe.sent(),F.toLowerCase()==="svg"?(z=new XMLSerializer,H=`<?xml version="1.0" standalone="no"?>\r
12
+ `+(H=z.serializeToString(L.getElement())),u("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(H),"".concat(R,".svg"))):u(L.getCanvas().toDataURL("image/".concat(F)),"".concat(R,".").concat(F)),[2]}})})},ee}()})(),n.default})()})});var IP=_e(ql=>{"use strict";c();d();f();var aP=ve();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 Mn=Object.prototype.hasOwnProperty,oZ=/^[: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]*$/,VT={},jT={};function uP(e){return Mn.call(jT,e)?!0:Mn.call(VT,e)?!1:oZ.test(e)?jT[e]=!0:(VT[e]=!0,!1)}function cn(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 Fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fr[e]=new cn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fr[t]=new cn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fr[e]=new cn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fr[e]=new cn(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){Fr[e]=new cn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fr[e]=new cn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fr[e]=new cn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fr[e]=new cn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fr[e]=new cn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Xw(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(Yw,Xw);Fr[t]=new cn(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(Yw,Xw);Fr[t]=new cn(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(Yw,Xw);Fr[t]=new cn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fr[e]=new cn(e,1,!1,e.toLowerCase(),null,!1,!1)});Fr.xlinkHref=new cn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fr[e]=new cn(e,1,!1,e.toLowerCase(),null,!0,!0)});var Dm={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},iZ=["Webkit","ms","Moz","O"];Object.keys(Dm).forEach(function(e){iZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dm[t]=Dm[e]})});var sZ=/["'&<>]/;function ln(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=sZ.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";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 aZ=/([A-Z])/g,uZ=/^ms-/,qw=Array.isArray;function Ni(e,t){return{insertionMode:e,selectedValue:t}}function lZ(e,t,r){switch(t){case"select":return Ni(1,r.value!=null?r.value:r.defaultValue);case"svg":return Ni(2,null);case"math":return Ni(3,null);case"foreignObject":return Ni(1,null);case"table":return Ni(4,null);case"thead":case"tbody":case"tfoot":return Ni(5,null);case"colgroup":return Ni(7,null);case"tr":return Ni(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Ni(1,null):e}var zT=new Map;function lP(e,t,r){if(typeof r!="object")throw Error(Xe(62));t=!0;for(var n in r)if(Mn.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=ln(n);o=ln((""+o).trim())}else{i=n;var s=zT.get(i);s!==void 0||(s=ln(i.replace(aZ,"-$1").toLowerCase().replace(uZ,"-ms-")),zT.set(i,s)),i=s,o=typeof o=="number"?o===0||Mn.call(Dm,n)?""+o:o+"px":ln((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function Hn(e,t,r,n){switch(r){case"style":lP(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=Fr.hasOwnProperty(r)?Fr[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,'="',ln(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',ln(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',ln(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',ln(n),'"')}}else if(uP(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,'="',ln(n),'"')}}}function Im(e,t,r){if(t!=null){if(r!=null)throw Error(Xe(60));if(typeof t!="object"||!("__html"in t))throw Error(Xe(61));t=t.__html,t!=null&&e.push(""+t)}}function cZ(e){var t="";return aP.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function jw(e,t,r,n){e.push(Xo(r));var o=r=null,i;for(i in t)if(Mn.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:Hn(e,n,i,s)}}return e.push(">"),Im(e,o,r),typeof r=="string"?(e.push(ln(r)),null):r}var fZ=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,HT=new Map;function Xo(e){var t=HT.get(e);if(t===void 0){if(!fZ.test(e))throw Error(Xe(65,e));t="<"+e,HT.set(e,t)}return t}function dZ(e,t,r,n,o){switch(t){case"select":e.push(Xo("select"));var i=null,s=null;for(p in r)if(Mn.call(r,p)){var a=r[p];if(a!=null)switch(p){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Hn(e,n,p,a)}}return e.push(">"),Im(e,s,i),i;case"option":s=o.selectedValue,e.push(Xo("option"));var u=a=null,l=null,p=null;for(i in r)if(Mn.call(r,i)){var h=r[i];if(h!=null)switch(i){case"children":a=h;break;case"selected":l=h;break;case"dangerouslySetInnerHTML":p=h;break;case"value":u=h;default:Hn(e,n,i,h)}}if(s!=null)if(r=u!==null?""+u:cZ(a),qw(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(' selected=""');break}}else""+s===r&&e.push(' selected=""');else l&&e.push(' selected=""');return e.push(">"),Im(e,p,a),a;case"textarea":e.push(Xo("textarea")),p=s=i=null;for(a in r)if(Mn.call(r,a)&&(u=r[a],u!=null))switch(a){case"children":p=u;break;case"value":i=u;break;case"defaultValue":s=u;break;case"dangerouslySetInnerHTML":throw Error(Xe(91));default:Hn(e,n,a,u)}if(i===null&&s!==null&&(i=s),e.push(">"),p!=null){if(i!=null)throw Error(Xe(92));if(qw(p)&&1<p.length)throw Error(Xe(93));i=""+p}return typeof i=="string"&&i[0]===`
13
+ `&&e.push(`
14
+ `),i!==null&&e.push(ln(""+i)),null;case"input":e.push(Xo("input")),u=p=a=i=null;for(s in r)if(Mn.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Xe(399,"input"));case"defaultChecked":u=l;break;case"defaultValue":a=l;break;case"checked":p=l;break;case"value":i=l;break;default:Hn(e,n,s,l)}return p!==null?Hn(e,n,"checked",p):u!==null&&Hn(e,n,"checked",u),i!==null?Hn(e,n,"value",i):a!==null&&Hn(e,n,"value",a),e.push("/>"),null;case"menuitem":e.push(Xo("menuitem"));for(var y in r)if(Mn.call(r,y)&&(i=r[y],i!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(Xe(400));default:Hn(e,n,y,i)}return e.push(">"),null;case"title":e.push(Xo("title")),i=null;for(h in r)if(Mn.call(r,h)&&(s=r[h],s!=null))switch(h){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(Xe(434));default:Hn(e,n,h,s)}return e.push(">"),i;case"listing":case"pre":e.push(Xo(t)),s=i=null;for(u in r)if(Mn.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Hn(e,n,u,a)}if(e.push(">"),s!=null){if(i!=null)throw Error(Xe(60));if(typeof s!="object"||!("__html"in s))throw Error(Xe(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(Xo(t));for(var b in r)if(Mn.call(r,b)&&(i=r[b],i!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(Xe(399,t));default:Hn(e,n,b,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 jw(e,r,t,n);case"html":return o.insertionMode===0&&e.push("<!DOCTYPE html>"),jw(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return jw(e,r,t,n);e.push(Xo(t)),s=i=null;for(l in r)if(Mn.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":lP(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:uP(l)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",l,'="',ln(a),'"')}return e.push(">"),Im(e,s,i),i}}function qT(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(Xe(395));return e.push(r),e.push('"></template>')}function hZ(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(Xe(397))}}function pZ(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Xe(397))}}var mZ=/[<\u2028\u2029]/g;function zw(e){return JSON.stringify(e).replace(mZ,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 gZ(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 KT(e,t,r,n){return r.generateStaticMarkup?(e.push(ln(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(ln(t)),e=!0),e)}var dd=Object.assign,yZ=Symbol.for("react.element"),cP=Symbol.for("react.portal"),fP=Symbol.for("react.fragment"),dP=Symbol.for("react.strict_mode"),hP=Symbol.for("react.profiler"),pP=Symbol.for("react.provider"),mP=Symbol.for("react.context"),gP=Symbol.for("react.forward_ref"),yP=Symbol.for("react.suspense"),vP=Symbol.for("react.suspense_list"),wP=Symbol.for("react.memo"),Jw=Symbol.for("react.lazy"),vZ=Symbol.for("react.scope"),wZ=Symbol.for("react.debug_trace_mode"),bZ=Symbol.for("react.legacy_hidden"),_Z=Symbol.for("react.default_value"),ZT=Symbol.iterator;function Kw(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 fP:return"Fragment";case cP:return"Portal";case hP:return"Profiler";case dP:return"StrictMode";case yP:return"Suspense";case vP:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mP:return(e.displayName||"Context")+".Consumer";case pP:return(e._context.displayName||"Context")+".Provider";case gP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wP:return t=e.displayName||null,t!==null?t:Kw(e.type)||"Memo";case Jw:t=e._payload,e=e._init;try{return Kw(e(t))}catch(r){}}return null}var bP={};function GT(e,t){if(e=e.contextTypes,!e)return bP;var r={},n;for(n in e)r[n]=t[n];return r}var Ba=null;function Bm(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(Xe(401))}else{if(r===null)throw Error(Xe(401));Bm(e,r)}t.context._currentValue2=t.value}}function _P(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&_P(e)}function xP(e){var t=e.parent;t!==null&&xP(t),e.context._currentValue2=e.value}function EP(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(Xe(402));e.depth===t.depth?Bm(e,t):EP(e,t)}function SP(e,t){var r=t.parent;if(r===null)throw Error(Xe(402));e.depth===r.depth?Bm(e,r):SP(e,r),t.context._currentValue2=t.value}function km(e){var t=Ba;t!==e&&(t===null?xP(e):e===null?_P(t):t.depth===e.depth?Bm(t,e):t.depth>e.depth?EP(t,e):SP(t,e),Ba=e)}var WT={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 YT(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=WT,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:dd({},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&&WT.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=dd({},i,a)):dd(i,a))}e.state=i}else i.queue=null}var xZ={id:1,overflow:""};function Zw(e,t,r){var n=e.id;e=e.overflow;var o=32-Am(n)-1;n&=~(1<<o),r+=1;var i=32-Am(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-Am(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Am=Math.clz32?Math.clz32:CZ,EZ=Math.log,SZ=Math.LN2;function CZ(e){return e>>>=0,e===0?32:31-(EZ(e)/SZ|0)|0}function MZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TZ=typeof Object.is=="function"?Object.is:MZ,Ri=null,Qw=null,Nm=null,Lt=null,cd=!1,Lm=!1,hd=0,Us=null,Vm=0;function $a(){if(Ri===null)throw Error(Xe(321));return Ri}function XT(){if(0<Vm)throw Error(Xe(312));return{memoizedState:null,queue:null,next:null}}function eb(){return Lt===null?Nm===null?(cd=!1,Nm=Lt=XT()):(cd=!0,Lt=Nm):Lt.next===null?(cd=!1,Lt=Lt.next=XT()):(cd=!0,Lt=Lt.next),Lt}function tb(){Qw=Ri=null,Lm=!1,Nm=null,Vm=0,Lt=Us=null}function CP(e,t){return typeof t=="function"?t(e):t}function JT(e,t,r){if(Ri=$a(),Lt=eb(),cd){var n=Lt.queue;if(t=n.dispatch,Us!==null&&(r=Us.get(n),r!==void 0)){Us.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===CP?typeof t=="function"?t():t:r!==void 0?r(t):t,Lt.memoizedState=e,e=Lt.queue={last:null,dispatch:null},e=e.dispatch=PZ.bind(null,Ri,e),[Lt.memoizedState,e]}function QT(e,t){if(Ri=$a(),Lt=eb(),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(!TZ(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Lt.memoizedState=[e,t],e}function PZ(e,t,r){if(25<=Vm)throw Error(Xe(301));if(e===Ri)if(Lm=!0,e={action:r,next:null},Us===null&&(Us=new Map),r=Us.get(t),r===void 0)Us.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function OZ(){throw Error(Xe(394))}function Pm(){}var eP={readContext:function(e){return e._currentValue2},useContext:function(e){return $a(),e._currentValue2},useMemo:QT,useReducer:JT,useRef:function(e){Ri=$a(),Lt=eb();var t=Lt.memoizedState;return t===null?(e={current:e},Lt.memoizedState=e):t},useState:function(e){return JT(CP,e)},useInsertionEffect:Pm,useLayoutEffect:function(){},useCallback:function(e,t){return QT(function(){return e},t)},useImperativeHandle:Pm,useEffect:Pm,useDebugValue:Pm,useDeferredValue:function(e){return $a(),e},useTransition:function(){return $a(),[!1,OZ]},useId:function(){var e=Qw.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Am(e)-1)).toString(32)+t;var r=Rm;if(r===null)throw Error(Xe(404));return t=hd++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return $a(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(Xe(407));return r()}},Rm=null,Hw=aP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function DZ(e){return console.error(e),null}function fd(){}function IZ(e,t,r,n,o,i,s,a,u){var l=[],p=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:p,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?DZ:o,onAllReady:i===void 0?fd:i,onShellReady:s===void 0?fd:s,onShellError:a===void 0?fd:a,onFatalError:u===void 0?fd:u},r=Fm(t,0,null,r,!1,!1),r.parentFlushed=!0,e=rb(t,e,null,r,p,bP,null,xZ),l.push(e),t}function rb(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var u={node:t,ping:function(){var l=e.pingedTasks;l.push(u),l.length===1&&PP(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(u),u}function Fm(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 pd(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 Um(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 tP(e,t,r,n,o){for(Ri={},Qw=t,hd=0,e=r(n,o);Lm;)Lm=!1,hd=0,Vm+=1,Lt=null,e=r(n,o);return tb(),e}function rP(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(Xe(108,Kw(n)||"Unknown",a));n=dd({},s,r)}t.legacyContext=n,qn(e,t,o),t.legacyContext=s}else qn(e,t,o)}function nP(e,t){if(e&&e.defaultProps){t=dd({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Gw(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=GT(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue2:o),YT(i,r,n,o),rP(e,t,i,r)}else{i=GT(r,t.legacyContext),o=tP(e,t,r,n,i);var s=hd!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)YT(o,r,n,i),rP(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=Zw(n,1,0);try{qn(e,t,o)}finally{t.treeContext=n}}else qn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=dZ(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=lZ(s,r,n),Ww(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 bZ:case wZ:case dP:case hP:case fP:qn(e,t,n.children);return;case vP:qn(e,t,n.children);return;case vZ:throw Error(Xe(343));case yP: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},u=Fm(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(u),o.lastPushedText=!1;var l=Fm(e,0,null,o.formatContext,!1,!1);l.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=l;try{if(Ww(e,t,n),e.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),l.status=1,$m(a,l),a.pendingTasks===0)break e}catch(p){l.status=4,a.forceClientRender=!0,a.errorDigest=pd(e,p)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=rb(e,i,r,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case gP:if(n=tP(e,t,r.render,n,o),hd!==0){r=t.treeContext,t.treeContext=Zw(r,1,0);try{qn(e,t,n)}finally{t.treeContext=r}}else qn(e,t,n);return;case wP:r=r.type,n=nP(r,n),Gw(e,t,r,n,o);return;case pP:if(o=n.children,r=r._context,n=n.value,i=r._currentValue2,r._currentValue2=n,s=Ba,Ba=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,qn(e,t,o),e=Ba,e===null)throw Error(Xe(403));n=e.parentValue,e.context._currentValue2=n===_Z?e.context._defaultValue:n,e=Ba=e.parent,t.context=e;return;case mP:n=n.children,n=n(r._currentValue2),qn(e,t,n);return;case Jw:o=r._init,r=o(r._payload),n=nP(r,n),Gw(e,t,r,n,void 0);return}throw Error(Xe(130,r==null?r:typeof r,""))}}function qn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case yZ:Gw(e,t,r.type,r.props,r.ref);return;case cP:throw Error(Xe(257));case Jw:var n=r._init;r=n(r._payload),qn(e,t,r);return}if(qw(r)){oP(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=ZT&&r[ZT]||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);oP(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(Xe(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=KT(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=KT(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function oP(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Zw(i,n,o);try{Ww(e,t,r[o])}finally{t.treeContext=i}}}function Ww(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return qn(e,t,r)}catch(u){if(tb(),typeof u=="object"&&u!==null&&typeof u.then=="function"){r=u;var s=t.blockedSegment,a=Fm(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=rb(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,km(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,km(i),u}}function AZ(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,TP(this,t,e)}function MP(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(Xe(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return MP(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function $m(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&&$m(e,r)}else e.completedSegments.push(t)}function TP(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(Xe(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=fd,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&$m(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(AZ,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&($m(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function PP(e){if(e.status!==2){var t=Ba,r=Hw.current;Hw.current=eP;var n=Rm;Rm=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,u=s.blockedSegment;if(u.status===0){km(s.context);try{qn(a,s,s.node),a.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),s.abortSet.delete(s),u.status=1,TP(a,s.blockedBoundary,u)}catch(v){if(tb(),typeof v=="object"&&v!==null&&typeof v.then=="function"){var l=s.ping;v.then(l,l)}else{s.abortSet.delete(s),u.status=4;var p=s.blockedBoundary,h=v,y=pd(a,h);if(p===null?Um(a,h):(p.pendingTasks--,p.forceClientRender||(p.forceClientRender=!0,p.errorDigest=y,p.parentFlushed&&a.clientRenderedBoundaries.push(p))),a.allPendingTasks--,a.allPendingTasks===0){var b=a.onAllReady;b()}}}finally{}}}o.splice(0,i),e.destination!==null&&nb(e,e.destination)}catch(v){pd(e,v),Um(e,v)}finally{Rm=n,Hw.current=r,r===eP&&km(t)}}}function Om(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=jm(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(Xe(390))}}function jm(e,t,r){var n=r.boundary;if(n===null)return Om(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=ln(n),t.push(n),t.push('"')),t.push("></template>")),Om(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,qT(t,e.responseState,n),Om(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),qT(t,e.responseState,n.id),Om(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(Xe(391));return jm(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function iP(e,t,r){return hZ(t,e.responseState,r.formatContext,r.id),jm(e,t,r),pZ(t,r.formatContext)}function sP(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)OP(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(Xe(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function OP(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(Xe(392));return iP(e,t,n)}return iP(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 nb(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){jm(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,u=s.id,l=s.errorDigest,p=s.errorMessage,h=s.errorComponentStack;if(n.push(a.startInlineScript),a.sentClientRenderFunction?n.push('$RX("'):(a.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),u===null)throw Error(Xe(395));if(n.push(u),n.push('"'),l||p||h){n.push(",");var y=zw(l||"");n.push(y)}if(p||h){n.push(",");var b=zw(p||"");n.push(b)}if(h){n.push(",");var v=zw(h);n.push(v)}if(!n.push(")<\/script>")){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var C=e.completedBoundaries;for(i=0;i<C.length;i++)if(!sP(e,t,C[i])){e.destination=null,i++,C.splice(0,i);return}C.splice(0,i);var N=e.partialBoundaries;for(i=0;i<N.length;i++){var M=N[i];e:{o=e,s=t;var T=M.completedSegments;for(a=0;a<T.length;a++)if(!OP(o,s,M,T[a])){a++,T.splice(0,a);var I=!1;break e}T.splice(0,a),I=!0}if(!I){e.destination=null,i++,N.splice(0,i);return}}N.splice(0,i);var U=e.completedBoundaries;for(i=0;i<U.length;i++)if(!sP(e,t,U[i])){e.destination=null,i++,U.splice(0,i);return}U.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function NZ(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return MP(n,e,t)}),r.clear(),e.destination!==null&&nb(e,e.destination)}catch(n){pd(e,n),Um(e,n)}}function RZ(){}function DP(e,t,r,n){var o=!1,i=null,s="",a={push:function(l){return l!==null&&(s+=l),!0},destroy:function(l){o=!0,i=l}},u=!1;if(e=IZ(e,gZ(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,RZ,void 0,function(){u=!0},void 0,void 0),PP(e),NZ(e,n),e.status===1)e.status=2,a.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=a;try{nb(e,a)}catch(l){pd(e,l),Um(e,l)}}if(o)throw i;if(!u)throw Error(Xe(426));return s}ql.renderToNodeStream=function(){throw Error(Xe(207))};ql.renderToStaticMarkup=function(e,t){return DP(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')};ql.renderToStaticNodeStream=function(){throw Error(Xe(208))};ql.renderToString=function(e,t){return DP(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')};ql.version="18.2.0"});var OO=_e(Sb=>{"use strict";c();d();f();var oO=ve();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 Zn=null,Gn=0;function Fe(e,t){if(t.length!==0)if(512<t.length)0<Gn&&(e.enqueue(new Uint8Array(Zn.buffer,0,Gn)),Zn=new Uint8Array(512),Gn=0),e.enqueue(t);else{var r=Zn.length-Gn;r<t.length&&(r===0?e.enqueue(Zn):(Zn.set(t.subarray(0,r),Gn),e.enqueue(Zn),t=t.subarray(r)),Zn=new Uint8Array(512),Gn=0),Zn.set(t,Gn),Gn+=t.length}}function Vt(e,t){return Fe(e,t),!0}function AP(e){Zn&&0<Gn&&(e.enqueue(new Uint8Array(Zn.buffer,0,Gn)),Zn=null,Gn=0)}var iO=new TextEncoder;function ot(e){return iO.encode(e)}function De(e){return iO.encode(e)}function sO(e,t){typeof e.error=="function"?e.error(t):e.close()}var Tn=Object.prototype.hasOwnProperty,kZ=/^[: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]*$/,NP={},RP={};function aO(e){return Tn.call(RP,e)?!0:Tn.call(NP,e)?!1:kZ.test(e)?RP[e]=!0:(NP[e]=!0,!1)}function fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$r[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$r[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$r[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$r[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$r[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$r[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var mb=/[\-:]([a-z])/g;function gb(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(mb,gb);$r[t]=new fn(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(mb,gb);$r[t]=new fn(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(mb,gb);$r[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$r[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});$r.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$r[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});var qm={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},LZ=["Webkit","ms","Moz","O"];Object.keys(qm).forEach(function(e){LZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qm[t]=qm[e]})});var FZ=/["'&<>]/;function Ur(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=FZ.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";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 UZ=/([A-Z])/g,$Z=/^ms-/,cb=Array.isArray,BZ=De("<script>"),VZ=De("<\/script>"),jZ=De('<script src="'),zZ=De('<script type="module" src="'),kP=De('" async=""><\/script>'),HZ=/(<\/|<)(s)(cript)/gi;function qZ(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function KZ(e,t,r,n,o){e=e===void 0?"":e,t=t===void 0?BZ:De('<script nonce="'+Ur(t)+'">');var i=[];if(r!==void 0&&i.push(t,ot((""+r).replace(HZ,qZ)),VZ),n!==void 0)for(r=0;r<n.length;r++)i.push(jZ,ot(Ur(n[r])),kP);if(o!==void 0)for(n=0;n<o.length;n++)i.push(zZ,ot(Ur(o[n])),kP);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:De(e+"P:"),segmentPrefix:De(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Jo(e,t){return{insertionMode:e,selectedValue:t}}function ZZ(e){return Jo(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function GZ(e,t,r){switch(t){case"select":return Jo(1,r.value!=null?r.value:r.defaultValue);case"svg":return Jo(2,null);case"math":return Jo(3,null);case"foreignObject":return Jo(1,null);case"table":return Jo(4,null);case"thead":case"tbody":case"tfoot":return Jo(5,null);case"colgroup":return Jo(7,null);case"tr":return Jo(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Jo(1,null):e}var yb=De("<!-- -->");function LP(e,t,r,n){return t===""?n:(n&&e.push(yb),e.push(ot(Ur(t))),!0)}var FP=new Map,WZ=De(' style="'),UP=De(":"),YZ=De(";");function uO(e,t,r){if(typeof r!="object")throw Error(rt(62));t=!0;for(var n in r)if(Tn.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=FP.get(i);s!==void 0||(s=De(Ur(i.replace(UZ,"-$1").toLowerCase().replace($Z,"-ms-"))),FP.set(i,s)),i=s,o=typeof o=="number"?o===0||Tn.call(qm,n)?ot(""+o):ot(o+"px"):ot(Ur((""+o).trim()))}t?(t=!1,e.push(WZ,i,UP,o)):e.push(YZ,i,UP,o)}}t||e.push(Va)}var $s=De(" "),Kl=De('="'),Va=De('"'),$P=De('=""');function Kn(e,t,r,n){switch(r){case"style":uO(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=ot(t.attributeName),t.type){case 3:n&&e.push($s,r,$P);break;case 4:n===!0?e.push($s,r,$P):n!==!1&&e.push($s,r,Kl,ot(Ur(n)),Va);break;case 5:isNaN(n)||e.push($s,r,Kl,ot(Ur(n)),Va);break;case 6:!isNaN(n)&&1<=n&&e.push($s,r,Kl,ot(Ur(n)),Va);break;default:t.sanitizeURL&&(n=""+n),e.push($s,r,Kl,ot(Ur(n)),Va)}}else if(aO(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($s,ot(r),Kl,ot(Ur(n)),Va)}}}var Bs=De(">"),BP=De("/>");function Km(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 XZ(e){var t="";return oO.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var ob=De(' selected=""');function ib(e,t,r,n){e.push(Qo(r));var o=r=null,i;for(i in t)if(Tn.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:Kn(e,n,i,s)}}return e.push(Bs),Km(e,o,r),typeof r=="string"?(e.push(ot(Ur(r))),null):r}var sb=De(`
19
+ `),JZ=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,VP=new Map;function Qo(e){var t=VP.get(e);if(t===void 0){if(!JZ.test(e))throw Error(rt(65,e));t=De("<"+e),VP.set(e,t)}return t}var QZ=De("<!DOCTYPE html>");function eG(e,t,r,n,o){switch(t){case"select":e.push(Qo("select"));var i=null,s=null;for(p in r)if(Tn.call(r,p)){var a=r[p];if(a!=null)switch(p){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Kn(e,n,p,a)}}return e.push(Bs),Km(e,s,i),i;case"option":s=o.selectedValue,e.push(Qo("option"));var u=a=null,l=null,p=null;for(i in r)if(Tn.call(r,i)){var h=r[i];if(h!=null)switch(i){case"children":a=h;break;case"selected":l=h;break;case"dangerouslySetInnerHTML":p=h;break;case"value":u=h;default:Kn(e,n,i,h)}}if(s!=null)if(r=u!==null?""+u:XZ(a),cb(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(ob);break}}else""+s===r&&e.push(ob);else l&&e.push(ob);return e.push(Bs),Km(e,p,a),a;case"textarea":e.push(Qo("textarea")),p=s=i=null;for(a in r)if(Tn.call(r,a)&&(u=r[a],u!=null))switch(a){case"children":p=u;break;case"value":i=u;break;case"defaultValue":s=u;break;case"dangerouslySetInnerHTML":throw Error(rt(91));default:Kn(e,n,a,u)}if(i===null&&s!==null&&(i=s),e.push(Bs),p!=null){if(i!=null)throw Error(rt(92));if(cb(p)&&1<p.length)throw Error(rt(93));i=""+p}return typeof i=="string"&&i[0]===`
20
+ `&&e.push(sb),i!==null&&e.push(ot(Ur(""+i))),null;case"input":e.push(Qo("input")),u=p=a=i=null;for(s in r)if(Tn.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(rt(399,"input"));case"defaultChecked":u=l;break;case"defaultValue":a=l;break;case"checked":p=l;break;case"value":i=l;break;default:Kn(e,n,s,l)}return p!==null?Kn(e,n,"checked",p):u!==null&&Kn(e,n,"checked",u),i!==null?Kn(e,n,"value",i):a!==null&&Kn(e,n,"value",a),e.push(BP),null;case"menuitem":e.push(Qo("menuitem"));for(var y in r)if(Tn.call(r,y)&&(i=r[y],i!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(rt(400));default:Kn(e,n,y,i)}return e.push(Bs),null;case"title":e.push(Qo("title")),i=null;for(h in r)if(Tn.call(r,h)&&(s=r[h],s!=null))switch(h){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(rt(434));default:Kn(e,n,h,s)}return e.push(Bs),i;case"listing":case"pre":e.push(Qo(t)),s=i=null;for(u in r)if(Tn.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Kn(e,n,u,a)}if(e.push(Bs),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(sb,ot(r)):e.push(ot(""+r)))}return typeof i=="string"&&i[0]===`
22
+ `&&e.push(sb),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(Qo(t));for(var b in r)if(Tn.call(r,b)&&(i=r[b],i!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(rt(399,t));default:Kn(e,n,b,i)}return e.push(BP),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 ib(e,r,t,n);case"html":return o.insertionMode===0&&e.push(QZ),ib(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return ib(e,r,t,n);e.push(Qo(t)),s=i=null;for(l in r)if(Tn.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":uO(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:aO(l)&&typeof a!="function"&&typeof a!="symbol"&&e.push($s,ot(l),Kl,ot(Ur(a)),Va)}return e.push(Bs),Km(e,s,i),i}}var tG=De("</"),rG=De(">"),nG=De('<template id="'),oG=De('"></template>'),iG=De("<!--$-->"),sG=De('<!--$?--><template id="'),aG=De('"></template>'),uG=De("<!--$!-->"),lG=De("<!--/$-->"),cG=De("<template"),fG=De('"'),dG=De(' data-dgst="');De(' data-msg="');De(' data-stck="');var hG=De("></template>");function jP(e,t,r){if(Fe(e,sG),r===null)throw Error(rt(395));return Fe(e,r),Vt(e,aG)}var pG=De('<div hidden id="'),mG=De('">'),gG=De("</div>"),yG=De('<svg aria-hidden="true" style="display:none" id="'),vG=De('">'),wG=De("</svg>"),bG=De('<math aria-hidden="true" style="display:none" id="'),_G=De('">'),xG=De("</math>"),EG=De('<table hidden id="'),SG=De('">'),CG=De("</table>"),MG=De('<table hidden><tbody id="'),TG=De('">'),PG=De("</tbody></table>"),OG=De('<table hidden><tr id="'),DG=De('">'),IG=De("</tr></table>"),AG=De('<table hidden><colgroup id="'),NG=De('">'),RG=De("</colgroup></table>");function kG(e,t,r,n){switch(r.insertionMode){case 0:case 1:return Fe(e,pG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,mG);case 2:return Fe(e,yG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,vG);case 3:return Fe(e,bG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,_G);case 4:return Fe(e,EG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,SG);case 5:return Fe(e,MG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,TG);case 6:return Fe(e,OG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,DG);case 7:return Fe(e,AG),Fe(e,t.segmentPrefix),Fe(e,ot(n.toString(16))),Vt(e,NG);default:throw Error(rt(397))}}function LG(e,t){switch(t.insertionMode){case 0:case 1:return Vt(e,gG);case 2:return Vt(e,wG);case 3:return Vt(e,xG);case 4:return Vt(e,CG);case 5:return Vt(e,PG);case 6:return Vt(e,IG);case 7:return Vt(e,RG);default:throw Error(rt(397))}}var FG=De('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("'),UG=De('$RS("'),$G=De('","'),BG=De('")<\/script>'),VG=De('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("'),jG=De('$RC("'),zG=De('","'),HG=De('")<\/script>'),qG=De('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("'),KG=De('$RX("'),ZG=De('"'),GG=De(")<\/script>"),ab=De(","),WG=/[<\u2028\u2029]/g;function ub(e){return JSON.stringify(e).replace(WG,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 yd=Object.assign,YG=Symbol.for("react.element"),lO=Symbol.for("react.portal"),cO=Symbol.for("react.fragment"),fO=Symbol.for("react.strict_mode"),dO=Symbol.for("react.profiler"),hO=Symbol.for("react.provider"),pO=Symbol.for("react.context"),mO=Symbol.for("react.forward_ref"),gO=Symbol.for("react.suspense"),yO=Symbol.for("react.suspense_list"),vO=Symbol.for("react.memo"),vb=Symbol.for("react.lazy"),XG=Symbol.for("react.scope"),JG=Symbol.for("react.debug_trace_mode"),QG=Symbol.for("react.legacy_hidden"),eW=Symbol.for("react.default_value"),zP=Symbol.iterator;function fb(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 cO:return"Fragment";case lO:return"Portal";case dO:return"Profiler";case fO:return"StrictMode";case gO:return"Suspense";case yO:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pO:return(e.displayName||"Context")+".Consumer";case hO:return(e._context.displayName||"Context")+".Provider";case mO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vO:return t=e.displayName||null,t!==null?t:fb(e.type)||"Memo";case vb:t=e._payload,e=e._init;try{return fb(e(t))}catch(r){}}return null}var wO={};function HP(e,t){if(e=e.contextTypes,!e)return wO;var r={},n;for(n in e)r[n]=t[n];return r}var za=null;function t1(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));t1(e,r)}t.context._currentValue=t.value}}function bO(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&bO(e)}function _O(e){var t=e.parent;t!==null&&_O(t),e.context._currentValue=e.value}function xO(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(rt(402));e.depth===t.depth?t1(e,t):xO(e,t)}function EO(e,t){var r=t.parent;if(r===null)throw Error(rt(402));e.depth===r.depth?t1(e,r):EO(e,r),t.context._currentValue=t.value}function Ym(e){var t=za;t!==e&&(t===null?_O(e):e===null?bO(t):t.depth===e.depth?t1(t,e):t.depth>e.depth?xO(t,e):EO(t,e),za=e)}var qP={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 KP(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=qP,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:yd({},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&&qP.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=yd({},i,a)):yd(i,a))}e.state=i}else i.queue=null}var tW={id:1,overflow:""};function db(e,t,r){var n=e.id;e=e.overflow;var o=32-Zm(n)-1;n&=~(1<<o),r+=1;var i=32-Zm(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-Zm(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Zm=Math.clz32?Math.clz32:oW,rW=Math.log,nW=Math.LN2;function oW(e){return e>>>=0,e===0?32:31-(rW(e)/nW|0)|0}function iW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sW=typeof Object.is=="function"?Object.is:iW,ki=null,wb=null,Gm=null,Ft=null,md=!1,Xm=!1,vd=0,Vs=null,r1=0;function ja(){if(ki===null)throw Error(rt(321));return ki}function ZP(){if(0<r1)throw Error(rt(312));return{memoizedState:null,queue:null,next:null}}function bb(){return Ft===null?Gm===null?(md=!1,Gm=Ft=ZP()):(md=!0,Ft=Gm):Ft.next===null?(md=!1,Ft=Ft.next=ZP()):(md=!0,Ft=Ft.next),Ft}function _b(){wb=ki=null,Xm=!1,Gm=null,r1=0,Ft=Vs=null}function SO(e,t){return typeof t=="function"?t(e):t}function GP(e,t,r){if(ki=ja(),Ft=bb(),md){var n=Ft.queue;if(t=n.dispatch,Vs!==null&&(r=Vs.get(n),r!==void 0)){Vs.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===SO?typeof t=="function"?t():t:r!==void 0?r(t):t,Ft.memoizedState=e,e=Ft.queue={last:null,dispatch:null},e=e.dispatch=aW.bind(null,ki,e),[Ft.memoizedState,e]}function WP(e,t){if(ki=ja(),Ft=bb(),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(!sW(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Ft.memoizedState=[e,t],e}function aW(e,t,r){if(25<=r1)throw Error(rt(301));if(e===ki)if(Xm=!0,e={action:r,next:null},Vs===null&&(Vs=new Map),r=Vs.get(t),r===void 0)Vs.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function uW(){throw Error(rt(394))}function zm(){}var YP={readContext:function(e){return e._currentValue},useContext:function(e){return ja(),e._currentValue},useMemo:WP,useReducer:GP,useRef:function(e){ki=ja(),Ft=bb();var t=Ft.memoizedState;return t===null?(e={current:e},Ft.memoizedState=e):t},useState:function(e){return GP(SO,e)},useInsertionEffect:zm,useLayoutEffect:function(){},useCallback:function(e,t){return WP(function(){return e},t)},useImperativeHandle:zm,useEffect:zm,useDebugValue:zm,useDeferredValue:function(e){return ja(),e},useTransition:function(){return ja(),[!1,uW]},useId:function(){var e=wb.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Zm(e)-1)).toString(32)+t;var r=Wm;if(r===null)throw Error(rt(404));return t=vd++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return ja(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(rt(407));return r()}},Wm=null,lb=oO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function lW(e){return console.error(e),null}function gd(){}function cW(e,t,r,n,o,i,s,a,u){var l=[],p=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:p,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?lW:o,onAllReady:i===void 0?gd:i,onShellReady:s===void 0?gd:s,onShellError:a===void 0?gd:a,onFatalError:u===void 0?gd:u},r=Jm(t,0,null,r,!1,!1),r.parentFlushed=!0,e=xb(t,e,null,r,p,wO,null,tW),l.push(e),t}function xb(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var u={node:t,ping:function(){var l=e.pingedTasks;l.push(u),l.length===1&&TO(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(u),u}function Jm(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 wd(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 Qm(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,sO(e.destination,t)):(e.status=1,e.fatalError=t)}function XP(e,t,r,n,o){for(ki={},wb=t,vd=0,e=r(n,o);Xm;)Xm=!1,vd=0,r1+=1,Ft=null,e=r(n,o);return _b(),e}function JP(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,fb(n)||"Unknown",a));n=yd({},s,r)}t.legacyContext=n,Wn(e,t,o),t.legacyContext=s}else Wn(e,t,o)}function QP(e,t){if(e&&e.defaultProps){t=yd({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function hb(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=HP(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),KP(i,r,n,o),JP(e,t,i,r)}else{i=HP(r,t.legacyContext),o=XP(e,t,r,n,i);var s=vd!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)KP(o,r,n,i),JP(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=db(n,1,0);try{Wn(e,t,o)}finally{t.treeContext=n}}else Wn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=eG(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=GZ(s,r,n),pb(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(tG,ot(r),rG)}o.lastPushedText=!1}else{switch(r){case QG:case JG:case fO:case dO:case cO:Wn(e,t,n.children);return;case yO:Wn(e,t,n.children);return;case XG:throw Error(rt(343));case gO: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},u=Jm(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(u),o.lastPushedText=!1;var l=Jm(e,0,null,o.formatContext,!1,!1);l.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=l;try{if(pb(e,t,n),l.lastPushedText&&l.textEmbedded&&l.chunks.push(yb),l.status=1,e1(a,l),a.pendingTasks===0)break e}catch(p){l.status=4,a.forceClientRender=!0,a.errorDigest=wd(e,p)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=xb(e,i,r,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case mO:if(n=XP(e,t,r.render,n,o),vd!==0){r=t.treeContext,t.treeContext=db(r,1,0);try{Wn(e,t,n)}finally{t.treeContext=r}}else Wn(e,t,n);return;case vO:r=r.type,n=QP(r,n),hb(e,t,r,n,o);return;case hO:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,s=za,za=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,Wn(e,t,o),e=za,e===null)throw Error(rt(403));n=e.parentValue,e.context._currentValue=n===eW?e.context._defaultValue:n,e=za=e.parent,t.context=e;return;case pO:n=n.children,n=n(r._currentValue),Wn(e,t,n);return;case vb:o=r._init,r=o(r._payload),n=QP(r,n),hb(e,t,r,n,void 0);return}throw Error(rt(130,r==null?r:typeof r,""))}}function Wn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case YG:hb(e,t,r.type,r.props,r.ref);return;case lO:throw Error(rt(257));case vb:var n=r._init;r=n(r._payload),Wn(e,t,r);return}if(cb(r)){eO(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=zP&&r[zP]||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);eO(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=LP(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=LP(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function eO(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=db(i,n,o);try{pb(e,t,r[o])}finally{t.treeContext=i}}}function pb(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Wn(e,t,r)}catch(u){if(_b(),typeof u=="object"&&u!==null&&typeof u.then=="function"){r=u;var s=t.blockedSegment,a=Jm(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=xb(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,Ym(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Ym(i),u}}function fW(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,MO(this,t,e)}function CO(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 CO(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function e1(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&&e1(e,r)}else e.completedSegments.push(t)}function MO(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=gd,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&e1(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(fW,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(e1(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function TO(e){if(e.status!==2){var t=za,r=lb.current;lb.current=YP;var n=Wm;Wm=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,u=s.blockedSegment;if(u.status===0){Ym(s.context);try{Wn(a,s,s.node),u.lastPushedText&&u.textEmbedded&&u.chunks.push(yb),s.abortSet.delete(s),u.status=1,MO(a,s.blockedBoundary,u)}catch(v){if(_b(),typeof v=="object"&&v!==null&&typeof v.then=="function"){var l=s.ping;v.then(l,l)}else{s.abortSet.delete(s),u.status=4;var p=s.blockedBoundary,h=v,y=wd(a,h);if(p===null?Qm(a,h):(p.pendingTasks--,p.forceClientRender||(p.forceClientRender=!0,p.errorDigest=y,p.parentFlushed&&a.clientRenderedBoundaries.push(p))),a.allPendingTasks--,a.allPendingTasks===0){var b=a.onAllReady;b()}}}finally{}}}o.splice(0,i),e.destination!==null&&Eb(e,e.destination)}catch(v){wd(e,v),Qm(e,v)}finally{Wm=n,lb.current=r,r===YP&&Ym(t)}}}function Hm(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,nG),Fe(t,e.placeholderPrefix),e=ot(n.toString(16)),Fe(t,e),Vt(t,oG);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=n1(e,t,o)}for(;i<n.length-1;i++)Fe(t,n[i]);return i<n.length&&(o=Vt(t,n[i])),o;default:throw Error(rt(390))}}function n1(e,t,r){var n=r.boundary;if(n===null)return Hm(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Vt(t,uG),Fe(t,cG),n&&(Fe(t,dG),Fe(t,ot(Ur(n))),Fe(t,fG)),Vt(t,hG),Hm(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=De(o.boundaryPrefix+i.toString(16)),n=n.id=o,jP(t,e.responseState,n),Hm(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),jP(t,e.responseState,n.id),Hm(e,t,r);else{if(Vt(t,iG),r=n.completedSegments,r.length!==1)throw Error(rt(391));n1(e,t,r[0])}return Vt(t,lG)}function tO(e,t,r){return kG(t,e.responseState,r.formatContext,r.id),n1(e,t,r),LG(t,r.formatContext)}function rO(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)PO(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,jG):(e.sentCompleteBoundaryFunction=!0,Fe(t,VG)),n===null)throw Error(rt(395));return r=ot(r.toString(16)),Fe(t,n),Fe(t,zG),Fe(t,e.segmentPrefix),Fe(t,r),Vt(t,HG)}function PO(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 tO(e,t,n)}return tO(e,t,n),e=e.responseState,Fe(t,e.startInlineScript),e.sentCompleteSegmentFunction?Fe(t,UG):(e.sentCompleteSegmentFunction=!0,Fe(t,FG)),Fe(t,e.segmentPrefix),o=ot(o.toString(16)),Fe(t,o),Fe(t,$G),Fe(t,e.placeholderPrefix),Fe(t,o),Vt(t,BG)}function Eb(e,t){Zn=new Uint8Array(512),Gn=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){n1(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&&Vt(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,u=s.id,l=s.errorDigest,p=s.errorMessage,h=s.errorComponentStack;if(Fe(n,a.startInlineScript),a.sentClientRenderFunction?Fe(n,KG):(a.sentClientRenderFunction=!0,Fe(n,qG)),u===null)throw Error(rt(395));if(Fe(n,u),Fe(n,ZG),(l||p||h)&&(Fe(n,ab),Fe(n,ot(ub(l||"")))),(p||h)&&(Fe(n,ab),Fe(n,ot(ub(p||"")))),h&&(Fe(n,ab),Fe(n,ot(ub(h)))),!Vt(n,GG)){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(!rO(e,t,y[i])){e.destination=null,i++,y.splice(0,i);return}y.splice(0,i),AP(t),Zn=new Uint8Array(512),Gn=0;var b=e.partialBoundaries;for(i=0;i<b.length;i++){var v=b[i];e:{o=e,s=t;var C=v.completedSegments;for(a=0;a<C.length;a++)if(!PO(o,s,v,C[a])){a++,C.splice(0,a);var N=!1;break e}C.splice(0,a),N=!0}if(!N){e.destination=null,i++,b.splice(0,i);return}}b.splice(0,i);var M=e.completedBoundaries;for(i=0;i<M.length;i++)if(!rO(e,t,M[i])){e.destination=null,i++,M.splice(0,i);return}M.splice(0,i)}finally{AP(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function nO(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return CO(n,e,t)}),r.clear(),e.destination!==null&&Eb(e,e.destination)}catch(n){wd(e,n),Qm(e,n)}}Sb.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,s=new Promise(function(p,h){i=p,o=h}),a=cW(e,KZ(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),ZZ(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var p=new ReadableStream({type:"bytes",pull:function(h){if(a.status===1)a.status=2,sO(h,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=h;try{Eb(a,h)}catch(y){wd(a,y),Qm(a,y)}}},cancel:function(){nO(a)}},{highWaterMark:0});p.allReady=s,r(p)},function(p){s.catch(function(){}),n(p)},o);if(t&&t.signal){var u=t.signal,l=function(){nO(a,u.reason),u.removeEventListener("abort",l)};u.addEventListener("abort",l)}TO(a)})};Sb.version="18.2.0"});var IO=_e(Ha=>{"use strict";c();d();f();var Zl,DO;Zl=IP(),DO=OO();Ha.version=Zl.version;Ha.renderToString=Zl.renderToString;Ha.renderToStaticMarkup=Zl.renderToStaticMarkup;Ha.renderToNodeStream=Zl.renderToNodeStream;Ha.renderToStaticNodeStream=Zl.renderToStaticNodeStream;Ha.renderToReadableStream=DO.renderToReadableStream});var jO=_e((F2e,VO)=>{"use strict";c();d();f();function vW(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}VO.exports=wW;function wW(e,t,r){var n=r&&r.stringify||vW,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 u=t.length;if(u===0)return e;for(var l="",p=1-o,h=-1,y=e&&e.length||0,b=0;b<y;){if(e.charCodeAt(b)===37&&b+1<y){switch(h=h>-1?h:0,e.charCodeAt(b+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<b&&(l+=e.slice(h,b)),l+=Number(t[p]),h=b+2,b++;break;case 105:if(p>=u||t[p]==null)break;h<b&&(l+=e.slice(h,b)),l+=Math.floor(Number(t[p])),h=b+2,b++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<b&&(l+=e.slice(h,b));var v=typeof t[p];if(v==="string"){l+="'"+t[p]+"'",h=b+2,b++;break}if(v==="function"){l+=t[p].name||"<anonymous>",h=b+2,b++;break}l+=n(t[p]),h=b+2,b++;break;case 115:if(p>=u)break;h<b&&(l+=e.slice(h,b)),l+=String(t[p]),h=b+2,b++;break;case 37:h<b&&(l+=e.slice(h,b)),l+="%",h=b+2,b++,p--;break}++p}++b}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var s1=_e((U2e,KO)=>{"use strict";c();d();f();var zO=jO();KO.exports=ei;var _d=OW().console||{},bW={mapHttpRequest:o1,mapHttpResponse:o1,wrapRequestSerializer:Tb,wrapResponseSerializer:Tb,wrapErrorSerializer:Tb,req:o1,res:o1,err:CW};function _W(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ei(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||_d;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=_W(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",u=Object.create(r);u.log||(u.log=xd),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:o,asObject:e.browser.asObject,levels:s,timestamp:MW(e)};u.levels=ei.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=xd,u.serializers=n,u._serialize=o,u._stdErrSerialize=i,u.child=b,t&&(u._logEvent=Pb());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(v){if(v!=="silent"&&!this.levels.values[v])throw Error("unknown level "+v);this._level=v,Gl(l,u,"error","log"),Gl(l,u,"fatal","error"),Gl(l,u,"warn","error"),Gl(l,u,"info","log"),Gl(l,u,"debug","log"),Gl(l,u,"trace","log")}function b(v,C){if(!v)throw new Error("missing bindings for child Pino");C=C||{},o&&v.serializers&&(C.serializers=v.serializers);let N=C.serializers;if(o&&N){var M=Object.assign({},n,N),T=e.browser.serialize===!0?Object.keys(M):o;delete v.serializers,i1([v],T,M,this._stdErrSerialize)}function I(U){this._childLevel=(U._childLevel|0)+1,this.error=Wl(U,v,"error"),this.fatal=Wl(U,v,"fatal"),this.warn=Wl(U,v,"warn"),this.info=Wl(U,v,"info"),this.debug=Wl(U,v,"debug"),this.trace=Wl(U,v,"trace"),M&&(this.serializers=M,this._serialize=T),t&&(this._logEvent=Pb([].concat(U._logEvent.bindings,v)))}return I.prototype=this,new I(this)}return u}ei.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"}};ei.stdSerializers=bW;ei.stdTimeFunctions=Object.assign({},{nullTime:HO,epochTime:qO,unixTime:TW,isoTime:PW});function Gl(e,t,r,n){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?xd:o[r]?o[r]:_d[r]||_d[n]||xd,xW(e,t,r)}function xW(e,t,r){!e.transmit&&t[r]===xd||(t[r]=function(n){return function(){let i=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===_d?_d:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&i1(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,EW(this,r,s,i)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=ei.levels.values[l],h=ei.levels.values[r];if(h<p)return;SW(this,{ts:i,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:ei.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function EW(e,t,r,n){e._serialize&&i1(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),i=o[0],s={};n&&(s.time=n),s.level=ei.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?zO(o.shift(),o):void 0}else typeof i=="string"&&(i=zO(o.shift(),o));return i!==void 0&&(s.msg=i),s}function i1(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=ei.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 Wl(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 SW(e,t,r){let n=t.send,o=t.ts,i=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;i1(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(l){return u.indexOf(l)===-1}),e._logEvent.level.label=i,e._logEvent.level.value=s,n(i,e._logEvent,a),e._logEvent=Pb(u)}function Pb(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function CW(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 MW(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?HO:qO}function o1(){return{}}function Tb(e){return e}function xd(){}function HO(){return!1}function qO(){return Date.now()}function TW(){return Math.round(Date.now()/1e3)}function PW(){return new Date(Date.now()).toISOString()}function OW(){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 js=_e(($2e,Ob)=>{"use strict";c();d();f();var Yl=typeof Reflect=="object"?Reflect:null,ZO=Yl&&typeof Yl.apply=="function"?Yl.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},a1;Yl&&typeof Yl.ownKeys=="function"?a1=Yl.ownKeys:Object.getOwnPropertySymbols?a1=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:a1=function(t){return Object.getOwnPropertyNames(t)};function DW(e){console&&console.warn&&console.warn(e)}var WO=Number.isNaN||function(t){return t!==t};function Pt(){Pt.init.call(this)}Ob.exports=Pt;Ob.exports.once=RW;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var GO=10;function u1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:function(){return GO},set:function(e){if(typeof e!="number"||e<0||WO(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");GO=e}});Pt.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};Pt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||WO(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 YO(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return YO(this)};Pt.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 u=i[t];if(u===void 0)return!1;if(typeof u=="function")ZO(u,this,r);else for(var l=u.length,p=tD(u,l),n=0;n<l;++n)ZO(p[n],this,r);return!0};function XO(e,t,r,n){var o,i,s;if(u1(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=YO(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,DW(a)}return e}Pt.prototype.addListener=function(t,r){return XO(this,t,r,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(t,r){return XO(this,t,r,!0)};function IW(){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 JO(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=IW.bind(n);return o.listener=r,n.wrapFn=o,o}Pt.prototype.once=function(t,r){return u1(r),this.on(t,JO(this,t,r)),this};Pt.prototype.prependOnceListener=function(t,r){return u1(r),this.prependListener(t,JO(this,t,r)),this};Pt.prototype.removeListener=function(t,r){var n,o,i,s,a;if(u1(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():AW(n,i),n.length===1&&(o[t]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Pt.prototype.off=Pt.prototype.removeListener;Pt.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 QO(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?NW(o):tD(o,o.length)}Pt.prototype.listeners=function(t){return QO(this,t,!0)};Pt.prototype.rawListeners=function(t){return QO(this,t,!1)};Pt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):eD.call(e,t)};Pt.prototype.listenerCount=eD;function eD(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}Pt.prototype.eventNames=function(){return this._eventsCount>0?a1(this._events):[]};function tD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function AW(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function NW(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function RW(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))}rD(e,t,i,{once:!0}),t!=="error"&&kW(e,o,{once:!0})})}function kW(e,t,r){typeof e.on=="function"&&rD(e,"error",t,r)}function rD(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 Ib=_e((B2e,c1)=>{c();d();f();var nD,oD,iD,sD,aD,uD,lD,cD,fD,l1,Db,dD,hD,Xl,pD,mD,gD,yD,vD,wD,bD,_D,xD;(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 c1=="object"&&typeof c1.exports=="object"?e(r(t,r(c1.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])};nD=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},oD=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},iD=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},sD=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,o,a):u(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},aD=function(r,n){return function(o,i){n(o,i,r)}},uD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},lD=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(u){u(a)})}return new(o||(o=Promise))(function(a,u){function l(y){try{h(i.next(y))}catch(b){u(b)}}function p(y){try{h(i.throw(y))}catch(b){u(b)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((i=i.apply(r,n||[])).next())})},cD=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){o.label=h[1];break}if(h[0]===6&&o.label<a[1]){o.label=a[1],a=h;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(h);break}a[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(y){h=[6,y],s=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},xD=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},fD=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},l1=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.")},Db=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error}}return a},dD=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Db(arguments[n]));return r},hD=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],u=0,l=a.length;u<l;u++,s++)i[s]=a[u];return i},Xl=function(r){return this instanceof Xl?(this.v=r,this):new Xl(r)},pD=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){i[v]&&(s[v]=function(C){return new Promise(function(N,M){a.push([v,C,N,M])>1||l(v,C)})})}function l(v,C){try{p(i[v](C))}catch(N){b(a[0][3],N)}}function p(v){v.value instanceof Xl?Promise.resolve(v.value.v).then(h,y):b(a[0][2],v)}function h(v){l("next",v)}function y(v){l("throw",v)}function b(v,C){v(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},mD=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(u){return(o=!o)?{value:Xl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},gD=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 l1=="function"?l1(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(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},yD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},vD=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},wD=function(r){return r&&r.__esModule?r:{default:r}},bD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},_D=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",nD),e("__assign",oD),e("__rest",iD),e("__decorate",sD),e("__param",aD),e("__metadata",uD),e("__awaiter",lD),e("__generator",cD),e("__exportStar",fD),e("__createBinding",xD),e("__values",l1),e("__read",Db),e("__spread",dD),e("__spreadArrays",hD),e("__await",Xl),e("__asyncGenerator",pD),e("__asyncDelegator",mD),e("__asyncValues",gD),e("__makeTemplateObject",yD),e("__importStar",vD),e("__importDefault",wD),e("__classPrivateFieldGet",bD),e("__classPrivateFieldSet",_D)})});var Ab=_e(f1=>{"use strict";c();d();f();Object.defineProperty(f1,"__esModule",{value:!0});function LW(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}}f1.safeJsonParse=LW;function FW(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}f1.safeJsonStringify=FW});var ED=_e((j2e,d1)=>{"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?d1.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?d1.exports=window.localStorage:d1.exports=new t})()});var SD=_e(h1=>{"use strict";c();d();f();Object.defineProperty(h1,"__esModule",{value:!0});h1.IKeyValueStorage=void 0;var Nb=class{};h1.IKeyValueStorage=Nb});var CD=_e(p1=>{"use strict";c();d();f();Object.defineProperty(p1,"__esModule",{value:!0});p1.parseEntry=void 0;var UW=Ab();function $W(e){var t;return[e[0],UW.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}p1.parseEntry=$W});var TD=_e(m1=>{"use strict";c();d();f();Object.defineProperty(m1,"__esModule",{value:!0});var MD=Ib();MD.__exportStar(SD(),m1);MD.__exportStar(CD(),m1)});var OD=_e(Ed=>{"use strict";c();d();f();Object.defineProperty(Ed,"__esModule",{value:!0});Ed.KeyValueStorage=void 0;var Jl=Ib(),PD=Ab(),BW=Jl.__importDefault(ED()),VW=TD(),g1=class{constructor(){this.localStorage=BW.default}getKeys(){return Jl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return Jl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(VW.parseEntry)})}getItem(t){return Jl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return PD.safeJsonParse(r)})}setItem(t,r){return Jl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,PD.safeJsonStringify(r))})}removeItem(t){return Jl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Ed.KeyValueStorage=g1;Ed.default=g1});var Sd=_e((Z2e,v1)=>{c();d();f();var DD,ID,AD,ND,RD,kD,LD,FD,UD,y1,Rb,$D,BD,Ql,VD,jD,zD,HD,qD,KD,ZD,GD,WD;(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 v1=="object"&&typeof v1.exports=="object"?e(r(t,r(v1.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])};DD=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},ID=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},AD=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},ND=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,o,a):u(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},RD=function(r,n){return function(o,i){n(o,i,r)}},kD=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},LD=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(u){u(a)})}return new(o||(o=Promise))(function(a,u){function l(y){try{h(i.next(y))}catch(b){u(b)}}function p(y){try{h(i.throw(y))}catch(b){u(b)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((i=i.apply(r,n||[])).next())})},FD=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){o.label=h[1];break}if(h[0]===6&&o.label<a[1]){o.label=a[1],a=h;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(h);break}a[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(y){h=[6,y],s=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},WD=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},UD=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},y1=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.")},Rb=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error}}return a},$D=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Rb(arguments[n]));return r},BD=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],u=0,l=a.length;u<l;u++,s++)i[s]=a[u];return i},Ql=function(r){return this instanceof Ql?(this.v=r,this):new Ql(r)},VD=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){i[v]&&(s[v]=function(C){return new Promise(function(N,M){a.push([v,C,N,M])>1||l(v,C)})})}function l(v,C){try{p(i[v](C))}catch(N){b(a[0][3],N)}}function p(v){v.value instanceof Ql?Promise.resolve(v.value.v).then(h,y):b(a[0][2],v)}function h(v){l("next",v)}function y(v){l("throw",v)}function b(v,C){v(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},jD=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(u){return(o=!o)?{value:Ql(r[s](u)),done:s==="return"}:a?a(u):u}:a}},zD=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 y1=="function"?y1(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(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},HD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},qD=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},KD=function(r){return r&&r.__esModule?r:{default:r}},ZD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},GD=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",DD),e("__assign",ID),e("__rest",AD),e("__decorate",ND),e("__param",RD),e("__metadata",kD),e("__awaiter",LD),e("__generator",FD),e("__exportStar",UD),e("__createBinding",WD),e("__values",y1),e("__read",Rb),e("__spread",$D),e("__spreadArrays",BD),e("__await",Ql),e("__asyncGenerator",VD),e("__asyncDelegator",jD),e("__asyncValues",zD),e("__makeTemplateObject",HD),e("__importStar",qD),e("__importDefault",KD),e("__classPrivateFieldGet",ZD),e("__classPrivateFieldSet",GD)})});var Cd=_e((G2e,b1)=>{c();d();f();var YD,XD,JD,QD,eI,tI,rI,nI,oI,w1,kb,iI,sI,ec,aI,uI,lI,cI,fI,dI,hI,pI,mI;(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 b1=="object"&&typeof b1.exports=="object"?e(r(t,r(b1.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])};YD=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},XD=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},JD=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},QD=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,o,a):u(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},eI=function(r,n){return function(o,i){n(o,i,r)}},tI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},rI=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(u){u(a)})}return new(o||(o=Promise))(function(a,u){function l(y){try{h(i.next(y))}catch(b){u(b)}}function p(y){try{h(i.throw(y))}catch(b){u(b)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((i=i.apply(r,n||[])).next())})},nI=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){o.label=h[1];break}if(h[0]===6&&o.label<a[1]){o.label=a[1],a=h;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(h);break}a[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(y){h=[6,y],s=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},mI=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},oI=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},w1=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.")},kb=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error}}return a},iI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(kb(arguments[n]));return r},sI=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],u=0,l=a.length;u<l;u++,s++)i[s]=a[u];return i},ec=function(r){return this instanceof ec?(this.v=r,this):new ec(r)},aI=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){i[v]&&(s[v]=function(C){return new Promise(function(N,M){a.push([v,C,N,M])>1||l(v,C)})})}function l(v,C){try{p(i[v](C))}catch(N){b(a[0][3],N)}}function p(v){v.value instanceof ec?Promise.resolve(v.value.v).then(h,y):b(a[0][2],v)}function h(v){l("next",v)}function y(v){l("throw",v)}function b(v,C){v(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},uI=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(u){return(o=!o)?{value:ec(r[s](u)),done:s==="return"}:a?a(u):u}:a}},lI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof w1=="function"?w1(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(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},cI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},fI=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},dI=function(r){return r&&r.__esModule?r:{default:r}},hI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},pI=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",YD),e("__assign",XD),e("__rest",JD),e("__decorate",QD),e("__param",eI),e("__metadata",tI),e("__awaiter",rI),e("__generator",nI),e("__exportStar",oI),e("__createBinding",mI),e("__values",w1),e("__read",kb),e("__spread",iI),e("__spreadArrays",sI),e("__await",ec),e("__asyncGenerator",aI),e("__asyncDelegator",uI),e("__asyncValues",lI),e("__makeTemplateObject",cI),e("__importStar",fI),e("__importDefault",dI),e("__classPrivateFieldGet",hI),e("__classPrivateFieldSet",pI)})});var gI=_e(_1=>{"use strict";c();d();f();Object.defineProperty(_1,"__esModule",{value:!0});_1.delay=void 0;function jW(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}_1.delay=jW});var yI=_e(tc=>{"use strict";c();d();f();Object.defineProperty(tc,"__esModule",{value:!0});tc.ONE_THOUSAND=tc.ONE_HUNDRED=void 0;tc.ONE_HUNDRED=100;tc.ONE_THOUSAND=1e3});var vI=_e(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.ONE_YEAR=Ie.FOUR_WEEKS=Ie.THREE_WEEKS=Ie.TWO_WEEKS=Ie.ONE_WEEK=Ie.THIRTY_DAYS=Ie.SEVEN_DAYS=Ie.FIVE_DAYS=Ie.THREE_DAYS=Ie.ONE_DAY=Ie.TWENTY_FOUR_HOURS=Ie.TWELVE_HOURS=Ie.SIX_HOURS=Ie.THREE_HOURS=Ie.ONE_HOUR=Ie.SIXTY_MINUTES=Ie.THIRTY_MINUTES=Ie.TEN_MINUTES=Ie.FIVE_MINUTES=Ie.ONE_MINUTE=Ie.SIXTY_SECONDS=Ie.THIRTY_SECONDS=Ie.TEN_SECONDS=Ie.FIVE_SECONDS=Ie.ONE_SECOND=void 0;Ie.ONE_SECOND=1;Ie.FIVE_SECONDS=5;Ie.TEN_SECONDS=10;Ie.THIRTY_SECONDS=30;Ie.SIXTY_SECONDS=60;Ie.ONE_MINUTE=Ie.SIXTY_SECONDS;Ie.FIVE_MINUTES=Ie.ONE_MINUTE*5;Ie.TEN_MINUTES=Ie.ONE_MINUTE*10;Ie.THIRTY_MINUTES=Ie.ONE_MINUTE*30;Ie.SIXTY_MINUTES=Ie.ONE_MINUTE*60;Ie.ONE_HOUR=Ie.SIXTY_MINUTES;Ie.THREE_HOURS=Ie.ONE_HOUR*3;Ie.SIX_HOURS=Ie.ONE_HOUR*6;Ie.TWELVE_HOURS=Ie.ONE_HOUR*12;Ie.TWENTY_FOUR_HOURS=Ie.ONE_HOUR*24;Ie.ONE_DAY=Ie.TWENTY_FOUR_HOURS;Ie.THREE_DAYS=Ie.ONE_DAY*3;Ie.FIVE_DAYS=Ie.ONE_DAY*5;Ie.SEVEN_DAYS=Ie.ONE_DAY*7;Ie.THIRTY_DAYS=Ie.ONE_DAY*30;Ie.ONE_WEEK=Ie.SEVEN_DAYS;Ie.TWO_WEEKS=Ie.ONE_WEEK*2;Ie.THREE_WEEKS=Ie.ONE_WEEK*3;Ie.FOUR_WEEKS=Ie.ONE_WEEK*4;Ie.ONE_YEAR=Ie.ONE_DAY*365});var Lb=_e(x1=>{"use strict";c();d();f();Object.defineProperty(x1,"__esModule",{value:!0});var wI=Cd();wI.__exportStar(yI(),x1);wI.__exportStar(vI(),x1)});var _I=_e(rc=>{"use strict";c();d();f();Object.defineProperty(rc,"__esModule",{value:!0});rc.fromMiliseconds=rc.toMiliseconds=void 0;var bI=Lb();function zW(e){return e*bI.ONE_THOUSAND}rc.toMiliseconds=zW;function HW(e){return Math.floor(e/bI.ONE_THOUSAND)}rc.fromMiliseconds=HW});var EI=_e(E1=>{"use strict";c();d();f();Object.defineProperty(E1,"__esModule",{value:!0});var xI=Cd();xI.__exportStar(gI(),E1);xI.__exportStar(_I(),E1)});var SI=_e(Md=>{"use strict";c();d();f();Object.defineProperty(Md,"__esModule",{value:!0});Md.Watch=void 0;var S1=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}};Md.Watch=S1;Md.default=S1});var CI=_e(C1=>{"use strict";c();d();f();Object.defineProperty(C1,"__esModule",{value:!0});C1.IWatch=void 0;var Fb=class{};C1.IWatch=Fb});var MI=_e(Ub=>{"use strict";c();d();f();Object.defineProperty(Ub,"__esModule",{value:!0});var qW=Cd();qW.__exportStar(CI(),Ub)});var Li=_e(nc=>{"use strict";c();d();f();Object.defineProperty(nc,"__esModule",{value:!0});var M1=Cd();M1.__exportStar(EI(),nc);M1.__exportStar(SI(),nc);M1.__exportStar(MI(),nc);M1.__exportStar(Lb(),nc)});var No,TI=mu(()=>{c();d();f();No=class{}});var PI={};Vr(PI,{IEvents:()=>No});var T1=mu(()=>{c();d();f();TI()});var OI=_e(P1=>{"use strict";c();d();f();Object.defineProperty(P1,"__esModule",{value:!0});P1.IHeartBeat=void 0;var KW=(T1(),r3(PI)),$b=class extends KW.IEvents{constructor(t){super()}};P1.IHeartBeat=$b});var Vb=_e(Bb=>{"use strict";c();d();f();Object.defineProperty(Bb,"__esModule",{value:!0});var ZW=Sd();ZW.__exportStar(OI(),Bb)});var DI=_e(oc=>{"use strict";c();d();f();Object.defineProperty(oc,"__esModule",{value:!0});oc.HEARTBEAT_EVENTS=oc.HEARTBEAT_INTERVAL=void 0;var GW=Li();oc.HEARTBEAT_INTERVAL=GW.FIVE_SECONDS;oc.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var zb=_e(jb=>{"use strict";c();d();f();Object.defineProperty(jb,"__esModule",{value:!0});var WW=Sd();WW.__exportStar(DI(),jb)});var II=_e(O1=>{"use strict";c();d();f();Object.defineProperty(O1,"__esModule",{value:!0});O1.HeartBeat=void 0;var Hb=Sd(),YW=js(),XW=Li(),JW=Vb(),qb=zb(),Td=class extends JW.IHeartBeat{constructor(t){super(t),this.events=new YW.EventEmitter,this.interval=qb.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||qb.HEARTBEAT_INTERVAL}static init(t){return Hb.__awaiter(this,void 0,void 0,function*(){let r=new Td(t);return yield r.init(),r})}init(){return Hb.__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 Hb.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),XW.toMiliseconds(this.interval))})}pulse(){this.events.emit(qb.HEARTBEAT_EVENTS.pulse)}};O1.HeartBeat=Td});var AI=_e(Pd=>{"use strict";c();d();f();Object.defineProperty(Pd,"__esModule",{value:!0});var Kb=Sd();Kb.__exportStar(II(),Pd);Kb.__exportStar(Vb(),Pd);Kb.__exportStar(zb(),Pd)});var QI=_e((h6e,I1)=>{c();d();f();var NI,RI,kI,LI,FI,UI,$I,BI,VI,D1,Zb,jI,zI,ic,HI,qI,KI,ZI,GI,WI,YI,XI,JI;(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 I1=="object"&&typeof I1.exports=="object"?e(r(t,r(I1.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])};NI=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},RI=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},kI=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},LI=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,o,a):u(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},FI=function(r,n){return function(o,i){n(o,i,r)}},UI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},$I=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(u){u(a)})}return new(o||(o=Promise))(function(a,u){function l(y){try{h(i.next(y))}catch(b){u(b)}}function p(y){try{h(i.throw(y))}catch(b){u(b)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((i=i.apply(r,n||[])).next())})},BI=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){o.label=h[1];break}if(h[0]===6&&o.label<a[1]){o.label=a[1],a=h;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(h);break}a[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(y){h=[6,y],s=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},JI=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},VI=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},D1=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.")},Zb=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error}}return a},jI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Zb(arguments[n]));return r},zI=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],u=0,l=a.length;u<l;u++,s++)i[s]=a[u];return i},ic=function(r){return this instanceof ic?(this.v=r,this):new ic(r)},HI=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){i[v]&&(s[v]=function(C){return new Promise(function(N,M){a.push([v,C,N,M])>1||l(v,C)})})}function l(v,C){try{p(i[v](C))}catch(N){b(a[0][3],N)}}function p(v){v.value instanceof ic?Promise.resolve(v.value.v).then(h,y):b(a[0][2],v)}function h(v){l("next",v)}function y(v){l("throw",v)}function b(v,C){v(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},qI=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(u){return(o=!o)?{value:ic(r[s](u)),done:s==="return"}:a?a(u):u}:a}},KI=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 D1=="function"?D1(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(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},ZI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},GI=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},WI=function(r){return r&&r.__esModule?r:{default:r}},YI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},XI=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",NI),e("__assign",RI),e("__rest",kI),e("__decorate",LI),e("__param",FI),e("__metadata",UI),e("__awaiter",$I),e("__generator",BI),e("__exportStar",VI),e("__createBinding",JI),e("__values",D1),e("__read",Zb),e("__spread",jI),e("__spreadArrays",zI),e("__await",ic),e("__asyncGenerator",HI),e("__asyncDelegator",qI),e("__asyncValues",KI),e("__makeTemplateObject",ZI),e("__importStar",GI),e("__importDefault",WI),e("__classPrivateFieldGet",YI),e("__classPrivateFieldSet",XI)})});var Gb=_e(sc=>{"use strict";c();d();f();Object.defineProperty(sc,"__esModule",{value:!0});sc.PINO_CUSTOM_CONTEXT_KEY=sc.PINO_LOGGER_DEFAULTS=void 0;sc.PINO_LOGGER_DEFAULTS={level:"info"};sc.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var oA=_e(Pn=>{"use strict";c();d();f();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.generateChildLogger=Pn.formatChildLoggerContext=Pn.getLoggerContext=Pn.setBrowserLoggerContext=Pn.getBrowserLoggerContext=Pn.getDefaultLoggerOptions=void 0;var ac=Gb();function QW(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||ac.PINO_LOGGER_DEFAULTS.level})}Pn.getDefaultLoggerOptions=QW;function eA(e,t=ac.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Pn.getBrowserLoggerContext=eA;function tA(e,t,r=ac.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Pn.setBrowserLoggerContext=tA;function rA(e,t=ac.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=eA(e,t):r=e.bindings().context||"",r}Pn.getLoggerContext=rA;function nA(e,t,r=ac.PINO_CUSTOM_CONTEXT_KEY){let n=rA(e,r);return n.trim()?`${n}/${t}`:t}Pn.formatChildLoggerContext=nA;function eY(e,t,r=ac.PINO_CUSTOM_CONTEXT_KEY){let n=nA(e,t,r),o=e.child({context:n});return tA(o,n,r)}Pn.generateChildLogger=eY});var Yb=_e(uc=>{"use strict";c();d();f();Object.defineProperty(uc,"__esModule",{value:!0});uc.pino=void 0;var Wb=QI(),tY=Wb.__importDefault(s1());Object.defineProperty(uc,"pino",{enumerable:!0,get:function(){return tY.default}});Wb.__exportStar(Gb(),uc);Wb.__exportStar(oA(),uc)});var aA=_e(B1=>{"use strict";c();d();f();Object.defineProperty(B1,"__esModule",{value:!0});B1.BrowserRandomSource=void 0;var sA=65536,Xb=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+=sA)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,sA)));return r}};B1.BrowserRandomSource=Xb});var po=_e(Jb=>{"use strict";c();d();f();Object.defineProperty(Jb,"__esModule",{value:!0});function rY(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Jb.wipe=rY});var uA=_e(()=>{c();d();f()});var lA=_e(V1=>{"use strict";c();d();f();Object.defineProperty(V1,"__esModule",{value:!0});V1.NodeRandomSource=void 0;var nY=po(),Qb=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof t3<"u"){let t=uA();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,nY.wipe)(r),n}};V1.NodeRandomSource=Qb});var cA=_e(j1=>{"use strict";c();d();f();Object.defineProperty(j1,"__esModule",{value:!0});j1.SystemRandomSource=void 0;var oY=aA(),iY=lA(),e_=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new oY.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new iY.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)}};j1.SystemRandomSource=e_});var fA=_e(Yn=>{"use strict";c();d();f();Object.defineProperty(Yn,"__esModule",{value:!0});function sY(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}Yn.mul=Math.imul||sY;function aY(e,t){return e+t|0}Yn.add=aY;function uY(e,t){return e-t|0}Yn.sub=uY;function lY(e,t){return e<<t|e>>>32-t}Yn.rotl=lY;function cY(e,t){return e<<32-t|e>>>t}Yn.rotr=cY;function fY(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}Yn.isInteger=Number.isInteger||fY;Yn.MAX_SAFE_INTEGER=9007199254740991;Yn.isSafeInteger=function(e){return Yn.isInteger(e)&&e>=-Yn.MAX_SAFE_INTEGER&&e<=Yn.MAX_SAFE_INTEGER}});var cc=_e(it=>{"use strict";c();d();f();Object.defineProperty(it,"__esModule",{value:!0});var dA=fA();function dY(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}it.readInt16BE=dY;function hY(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}it.readUint16BE=hY;function pY(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}it.readInt16LE=pY;function mY(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}it.readUint16LE=mY;function hA(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=hA;it.writeInt16BE=hA;function pA(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=pA;it.writeInt16LE=pA;function t_(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}it.readInt32BE=t_;function r_(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=r_;function n_(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}it.readInt32LE=n_;function o_(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=o_;function z1(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=z1;it.writeInt32BE=z1;function H1(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=H1;it.writeInt32LE=H1;function gY(e,t){t===void 0&&(t=0);var r=t_(e,t),n=t_(e,t+4);return r*4294967296+n-(n>>31)*4294967296}it.readInt64BE=gY;function yY(e,t){t===void 0&&(t=0);var r=r_(e,t),n=r_(e,t+4);return r*4294967296+n}it.readUint64BE=yY;function vY(e,t){t===void 0&&(t=0);var r=n_(e,t),n=n_(e,t+4);return n*4294967296+r-(r>>31)*4294967296}it.readInt64LE=vY;function wY(e,t){t===void 0&&(t=0);var r=o_(e,t),n=o_(e,t+4);return n*4294967296+r}it.readUint64LE=wY;function mA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),z1(e/4294967296>>>0,t,r),z1(e>>>0,t,r+4),t}it.writeUint64BE=mA;it.writeInt64BE=mA;function gA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),H1(e>>>0,t,r),H1(e/4294967296>>>0,t,r+4),t}it.writeUint64LE=gA;it.writeInt64LE=gA;function bY(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=bY;function _Y(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=_Y;function xY(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(!dA.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=xY;function EY(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(!dA.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=EY;function SY(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}it.readFloat32BE=SY;function CY(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}it.readFloat32LE=CY;function MY(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}it.readFloat64BE=MY;function TY(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}it.readFloat64LE=TY;function PY(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=PY;function OY(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=OY;function DY(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=DY;function IY(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=IY});var qa=_e(Xr=>{"use strict";c();d();f();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.randomStringForEntropy=Xr.randomString=Xr.randomUint32=Xr.randomBytes=Xr.defaultRandomSource=void 0;var AY=cA(),NY=cc(),yA=po();Xr.defaultRandomSource=new AY.SystemRandomSource;function i_(e,t=Xr.defaultRandomSource){return t.randomBytes(e)}Xr.randomBytes=i_;function RY(e=Xr.defaultRandomSource){let t=i_(4,e),r=(0,NY.readUint32LE)(t);return(0,yA.wipe)(t),r}Xr.randomUint32=RY;var vA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function wA(e,t=vA,r=Xr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",o=t.length,i=256-256%o;for(;e>0;){let s=i_(Math.ceil(e*256/i),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<i&&(n+=t.charAt(u%o),e--)}(0,yA.wipe)(s)}return n}Xr.randomString=wA;function kY(e,t=vA,r=Xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return wA(n,t,r)}Xr.randomStringForEntropy=kY});var xA=_e(Fi=>{"use strict";c();d();f();Object.defineProperty(Fi,"__esModule",{value:!0});var dc=cc(),fc=po();Fi.DIGEST_LENGTH=64;Fi.BLOCK_SIZE=128;var _A=function(){function e(){this.digestLength=Fi.DIGEST_LENGTH,this.blockSize=Fi.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(){fc.wipe(this._buffer),fc.wipe(this._tempHi),fc.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<Fi.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(s_(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=s_(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;dc.writeUint32BE(o,this._buffer,s-8),dc.writeUint32BE(i,this._buffer,s-4),s_(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)dc.writeUint32BE(this._stateHi[a],t,a*8),dc.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){fc.wipe(t.stateHi),fc.wipe(t.stateLo),t.buffer&&fc.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Fi.SHA512=_A;var bA=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 s_(e,t,r,n,o,i,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],b=r[6],v=r[7],C=n[0],N=n[1],M=n[2],T=n[3],I=n[4],U=n[5],K=n[6],J=n[7],j,Z,le,me,fe,W,A,g;s>=128;){for(var w=0;w<16;w++){var E=8*w+i;e[w]=dc.readUint32BE(o,E),t[w]=dc.readUint32BE(o,E+4)}for(var w=0;w<80;w++){var D=a,k=u,B=l,q=p,$=h,_=y,V=b,ie=v,O=C,Y=N,ne=M,ae=T,he=I,X=U,Q=K,G=J;if(j=v,Z=J,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=(h>>>14|I<<32-14)^(h>>>18|I<<32-18)^(I>>>41-32|h<<32-(41-32)),Z=(I>>>14|h<<32-14)^(I>>>18|h<<32-18)^(h>>>41-32|I<<32-(41-32)),fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,j=h&y^~h&b,Z=I&U^~I&K,fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,j=bA[w*2],Z=bA[w*2+1],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,j=e[w%16],Z=t[w%16],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,le=A&65535|g<<16,me=fe&65535|W<<16,j=le,Z=me,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=(a>>>28|C<<32-28)^(C>>>34-32|a<<32-(34-32))^(C>>>39-32|a<<32-(39-32)),Z=(C>>>28|a<<32-28)^(a>>>34-32|C<<32-(34-32))^(a>>>39-32|C<<32-(39-32)),fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,j=a&u^a&l^u&l,Z=C&N^C&M^N&M,fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,ie=A&65535|g<<16,G=fe&65535|W<<16,j=q,Z=ae,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=le,Z=me,fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,q=A&65535|g<<16,ae=fe&65535|W<<16,u=D,l=k,p=B,h=q,y=$,b=_,v=V,a=ie,N=O,M=Y,T=ne,I=ae,U=he,K=X,J=Q,C=G,w%16===15)for(var E=0;E<16;E++)j=e[E],Z=t[E],fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=e[(E+9)%16],Z=t[(E+9)%16],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,le=e[(E+1)%16],me=t[(E+1)%16],j=(le>>>1|me<<32-1)^(le>>>8|me<<32-8)^le>>>7,Z=(me>>>1|le<<32-1)^(me>>>8|le<<32-8)^(me>>>7|le<<32-7),fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,le=e[(E+14)%16],me=t[(E+14)%16],j=(le>>>19|me<<32-19)^(me>>>61-32|le<<32-(61-32))^le>>>6,Z=(me>>>19|le<<32-19)^(le>>>61-32|me<<32-(61-32))^(me>>>6|le<<32-6),fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,e[E]=A&65535|g<<16,t[E]=fe&65535|W<<16}j=a,Z=C,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[0],Z=n[0],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[0]=a=A&65535|g<<16,n[0]=C=fe&65535|W<<16,j=u,Z=N,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[1],Z=n[1],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[1]=u=A&65535|g<<16,n[1]=N=fe&65535|W<<16,j=l,Z=M,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[2],Z=n[2],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[2]=l=A&65535|g<<16,n[2]=M=fe&65535|W<<16,j=p,Z=T,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[3],Z=n[3],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[3]=p=A&65535|g<<16,n[3]=T=fe&65535|W<<16,j=h,Z=I,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[4],Z=n[4],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[4]=h=A&65535|g<<16,n[4]=I=fe&65535|W<<16,j=y,Z=U,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[5],Z=n[5],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[5]=y=A&65535|g<<16,n[5]=U=fe&65535|W<<16,j=b,Z=K,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[6],Z=n[6],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[6]=b=A&65535|g<<16,n[6]=K=fe&65535|W<<16,j=v,Z=J,fe=Z&65535,W=Z>>>16,A=j&65535,g=j>>>16,j=r[7],Z=n[7],fe+=Z&65535,W+=Z>>>16,A+=j&65535,g+=j>>>16,W+=fe>>>16,A+=W>>>16,g+=A>>>16,r[7]=v=A&65535|g<<16,n[7]=J=fe&65535|W<<16,i+=128,s-=128}return i}function LY(e){var t=new _A;t.update(e);var r=t.digest();return t.clean(),r}Fi.hash=LY});var LA=_e(Mt=>{"use strict";c();d();f();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.convertSecretKeyToX25519=Mt.convertPublicKeyToX25519=Mt.verify=Mt.sign=Mt.extractPublicKeyFromSecretKey=Mt.generateKeyPair=Mt.generateKeyPairFromSeed=Mt.SEED_LENGTH=Mt.SECRET_KEY_LENGTH=Mt.PUBLIC_KEY_LENGTH=Mt.SIGNATURE_LENGTH=void 0;var FY=qa(),Dd=xA(),TA=po();Mt.SIGNATURE_LENGTH=64;Mt.PUBLIC_KEY_LENGTH=32;Mt.SECRET_KEY_LENGTH=64;Mt.SEED_LENGTH=32;function Ve(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var UY=new Uint8Array(32);UY[0]=9;var l_=Ve(),hc=Ve([1]),$Y=Ve([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),BY=Ve([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),EA=Ve([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),SA=Ve([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),VY=Ve([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function zs(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function a_(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 PA(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 Id(e,t){let r=Ve(),n=Ve();for(let o=0;o<16;o++)n[o]=t[o];a_(n),a_(n),a_(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,PA(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 OA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function CA(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return Id(r,e),Id(n,t),OA(r,n)}function DA(e){let t=new Uint8Array(32);return Id(t,e),t[0]&1}function jY(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Ka(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function Ga(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Ot(e,t,r){let n,o,i=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,b=0,v=0,C=0,N=0,M=0,T=0,I=0,U=0,K=0,J=0,j=0,Z=0,le=0,me=0,fe=0,W=0,A=0,g=0,w=0,E=0,D=0,k=0,B=0,q=r[0],$=r[1],_=r[2],V=r[3],ie=r[4],O=r[5],Y=r[6],ne=r[7],ae=r[8],he=r[9],X=r[10],Q=r[11],G=r[12],ue=r[13],re=r[14],ge=r[15];n=t[0],i+=n*q,s+=n*$,a+=n*_,u+=n*V,l+=n*ie,p+=n*O,h+=n*Y,y+=n*ne,b+=n*ae,v+=n*he,C+=n*X,N+=n*Q,M+=n*G,T+=n*ue,I+=n*re,U+=n*ge,n=t[1],s+=n*q,a+=n*$,u+=n*_,l+=n*V,p+=n*ie,h+=n*O,y+=n*Y,b+=n*ne,v+=n*ae,C+=n*he,N+=n*X,M+=n*Q,T+=n*G,I+=n*ue,U+=n*re,K+=n*ge,n=t[2],a+=n*q,u+=n*$,l+=n*_,p+=n*V,h+=n*ie,y+=n*O,b+=n*Y,v+=n*ne,C+=n*ae,N+=n*he,M+=n*X,T+=n*Q,I+=n*G,U+=n*ue,K+=n*re,J+=n*ge,n=t[3],u+=n*q,l+=n*$,p+=n*_,h+=n*V,y+=n*ie,b+=n*O,v+=n*Y,C+=n*ne,N+=n*ae,M+=n*he,T+=n*X,I+=n*Q,U+=n*G,K+=n*ue,J+=n*re,j+=n*ge,n=t[4],l+=n*q,p+=n*$,h+=n*_,y+=n*V,b+=n*ie,v+=n*O,C+=n*Y,N+=n*ne,M+=n*ae,T+=n*he,I+=n*X,U+=n*Q,K+=n*G,J+=n*ue,j+=n*re,Z+=n*ge,n=t[5],p+=n*q,h+=n*$,y+=n*_,b+=n*V,v+=n*ie,C+=n*O,N+=n*Y,M+=n*ne,T+=n*ae,I+=n*he,U+=n*X,K+=n*Q,J+=n*G,j+=n*ue,Z+=n*re,le+=n*ge,n=t[6],h+=n*q,y+=n*$,b+=n*_,v+=n*V,C+=n*ie,N+=n*O,M+=n*Y,T+=n*ne,I+=n*ae,U+=n*he,K+=n*X,J+=n*Q,j+=n*G,Z+=n*ue,le+=n*re,me+=n*ge,n=t[7],y+=n*q,b+=n*$,v+=n*_,C+=n*V,N+=n*ie,M+=n*O,T+=n*Y,I+=n*ne,U+=n*ae,K+=n*he,J+=n*X,j+=n*Q,Z+=n*G,le+=n*ue,me+=n*re,fe+=n*ge,n=t[8],b+=n*q,v+=n*$,C+=n*_,N+=n*V,M+=n*ie,T+=n*O,I+=n*Y,U+=n*ne,K+=n*ae,J+=n*he,j+=n*X,Z+=n*Q,le+=n*G,me+=n*ue,fe+=n*re,W+=n*ge,n=t[9],v+=n*q,C+=n*$,N+=n*_,M+=n*V,T+=n*ie,I+=n*O,U+=n*Y,K+=n*ne,J+=n*ae,j+=n*he,Z+=n*X,le+=n*Q,me+=n*G,fe+=n*ue,W+=n*re,A+=n*ge,n=t[10],C+=n*q,N+=n*$,M+=n*_,T+=n*V,I+=n*ie,U+=n*O,K+=n*Y,J+=n*ne,j+=n*ae,Z+=n*he,le+=n*X,me+=n*Q,fe+=n*G,W+=n*ue,A+=n*re,g+=n*ge,n=t[11],N+=n*q,M+=n*$,T+=n*_,I+=n*V,U+=n*ie,K+=n*O,J+=n*Y,j+=n*ne,Z+=n*ae,le+=n*he,me+=n*X,fe+=n*Q,W+=n*G,A+=n*ue,g+=n*re,w+=n*ge,n=t[12],M+=n*q,T+=n*$,I+=n*_,U+=n*V,K+=n*ie,J+=n*O,j+=n*Y,Z+=n*ne,le+=n*ae,me+=n*he,fe+=n*X,W+=n*Q,A+=n*G,g+=n*ue,w+=n*re,E+=n*ge,n=t[13],T+=n*q,I+=n*$,U+=n*_,K+=n*V,J+=n*ie,j+=n*O,Z+=n*Y,le+=n*ne,me+=n*ae,fe+=n*he,W+=n*X,A+=n*Q,g+=n*G,w+=n*ue,E+=n*re,D+=n*ge,n=t[14],I+=n*q,U+=n*$,K+=n*_,J+=n*V,j+=n*ie,Z+=n*O,le+=n*Y,me+=n*ne,fe+=n*ae,W+=n*he,A+=n*X,g+=n*Q,w+=n*G,E+=n*ue,D+=n*re,k+=n*ge,n=t[15],U+=n*q,K+=n*$,J+=n*_,j+=n*V,Z+=n*ie,le+=n*O,me+=n*Y,fe+=n*ne,W+=n*ae,A+=n*he,g+=n*X,w+=n*Q,E+=n*G,D+=n*ue,k+=n*re,B+=n*ge,i+=38*K,s+=38*J,a+=38*j,u+=38*Z,l+=38*le,p+=38*me,h+=38*fe,y+=38*W,b+=38*A,v+=38*g,C+=38*w,N+=38*E,M+=38*D,T+=38*k,I+=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=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=b+o+65535,o=Math.floor(n/65536),b=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=C+o+65535,o=Math.floor(n/65536),C=n-o*65536,n=N+o+65535,o=Math.floor(n/65536),N=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=U+o+65535,o=Math.floor(n/65536),U=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=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=b+o+65535,o=Math.floor(n/65536),b=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=C+o+65535,o=Math.floor(n/65536),C=n-o*65536,n=N+o+65535,o=Math.floor(n/65536),N=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=U+o+65535,o=Math.floor(n/65536),U=n-o*65536,i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=b,e[9]=v,e[10]=C,e[11]=N,e[12]=M,e[13]=T,e[14]=I,e[15]=U}function Za(e,t){Ot(e,t,t)}function IA(e,t){let r=Ve(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Za(r,r),n!==2&&n!==4&&Ot(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function zY(e,t){let r=Ve(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Za(r,r),n!==1&&Ot(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function c_(e,t){let r=Ve(),n=Ve(),o=Ve(),i=Ve(),s=Ve(),a=Ve(),u=Ve(),l=Ve(),p=Ve();Ga(r,e[1],e[0]),Ga(p,t[1],t[0]),Ot(r,r,p),Ka(n,e[0],e[1]),Ka(p,t[0],t[1]),Ot(n,n,p),Ot(o,e[3],t[3]),Ot(o,o,BY),Ot(i,e[2],t[2]),Ka(i,i,i),Ga(s,n,r),Ga(a,i,o),Ka(u,i,o),Ka(l,n,r),Ot(e[0],s,a),Ot(e[1],l,u),Ot(e[2],u,a),Ot(e[3],s,l)}function MA(e,t,r){for(let n=0;n<4;n++)PA(e[n],t[n],r)}function d_(e,t){let r=Ve(),n=Ve(),o=Ve();IA(o,t[2]),Ot(r,t[0],o),Ot(n,t[1],o),Id(e,n),e[31]^=DA(r)<<7}function AA(e,t,r){zs(e[0],l_),zs(e[1],hc),zs(e[2],hc),zs(e[3],l_);for(let n=255;n>=0;--n){let o=r[n/8|0]>>(n&7)&1;MA(e,t,o),c_(t,e),c_(e,e),MA(e,t,o)}}function h_(e,t){let r=[Ve(),Ve(),Ve(),Ve()];zs(r[0],EA),zs(r[1],SA),zs(r[2],hc),Ot(r[3],EA,SA),AA(e,r,t)}function NA(e){if(e.length!==Mt.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Mt.SEED_LENGTH} bytes`);let t=(0,Dd.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[Ve(),Ve(),Ve(),Ve()];h_(n,t),d_(r,n);let o=new Uint8Array(64);return o.set(e),o.set(r,32),{publicKey:r,secretKey:o}}Mt.generateKeyPairFromSeed=NA;function HY(e){let t=(0,FY.randomBytes)(32,e),r=NA(t);return(0,TA.wipe)(t),r}Mt.generateKeyPair=HY;function qY(e){if(e.length!==Mt.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Mt.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Mt.extractPublicKeyFromSecretKey=qY;var u_=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 RA(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]*u_[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)*u_[o],r=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=r*u_[o];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function f_(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;RA(e,t)}function KY(e,t){let r=new Float64Array(64),n=[Ve(),Ve(),Ve(),Ve()],o=(0,Dd.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 Dd.SHA512;s.update(i.subarray(32)),s.update(t);let a=s.digest();s.clean(),f_(a),h_(n,a),d_(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();f_(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*o[p];return RA(i.subarray(32),r),i}Mt.sign=KY;function kA(e,t){let r=Ve(),n=Ve(),o=Ve(),i=Ve(),s=Ve(),a=Ve(),u=Ve();return zs(e[2],hc),jY(e[1],t),Za(o,e[1]),Ot(i,o,$Y),Ga(o,o,e[2]),Ka(i,e[2],i),Za(s,i),Za(a,s),Ot(u,a,s),Ot(r,u,o),Ot(r,r,i),zY(r,r),Ot(r,r,o),Ot(r,r,i),Ot(r,r,i),Ot(e[0],r,i),Za(n,e[0]),Ot(n,n,i),CA(n,o)&&Ot(e[0],e[0],VY),Za(n,e[0]),Ot(n,n,i),CA(n,o)?-1:(DA(e[0])===t[31]>>7&&Ga(e[0],l_,e[0]),Ot(e[3],e[0],e[1]),0)}function ZY(e,t,r){let n=new Uint8Array(32),o=[Ve(),Ve(),Ve(),Ve()],i=[Ve(),Ve(),Ve(),Ve()];if(r.length!==Mt.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Mt.SIGNATURE_LENGTH} bytes`);if(kA(i,e))return!1;let s=new Dd.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return f_(a),AA(o,i,a),h_(i,r.subarray(32)),c_(o,i),d_(n,o),!OA(r,n)}Mt.verify=ZY;function GY(e){let t=[Ve(),Ve(),Ve(),Ve()];if(kA(t,e))throw new Error("Ed25519: invalid public key");let r=Ve(),n=Ve(),o=t[1];Ka(r,hc,o),Ga(n,hc,o),IA(n,n),Ot(r,r,n);let i=new Uint8Array(32);return Id(i,r),i}Mt.convertPublicKeyToX25519=GY;function WY(e){let t=(0,Dd.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,TA.wipe)(t),r}Mt.convertSecretKeyToX25519=WY});var wN=_e(eg=>{"use strict";c();d();f();Object.defineProperty(eg,"__esModule",{value:!0});var Jr=cc(),U_=po(),lJ=20;function cJ(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],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],b=r[27]<<24|r[26]<<16|r[25]<<8|r[24],v=r[31]<<24|r[30]<<16|r[29]<<8|r[28],C=t[3]<<24|t[2]<<16|t[1]<<8|t[0],N=t[7]<<24|t[6]<<16|t[5]<<8|t[4],M=t[11]<<24|t[10]<<16|t[9]<<8|t[8],T=t[15]<<24|t[14]<<16|t[13]<<8|t[12],I=n,U=o,K=i,J=s,j=a,Z=u,le=l,me=p,fe=h,W=y,A=b,g=v,w=C,E=N,D=M,k=T,B=0;B<lJ;B+=2)I=I+j|0,w^=I,w=w>>>32-16|w<<16,fe=fe+w|0,j^=fe,j=j>>>32-12|j<<12,U=U+Z|0,E^=U,E=E>>>32-16|E<<16,W=W+E|0,Z^=W,Z=Z>>>32-12|Z<<12,K=K+le|0,D^=K,D=D>>>32-16|D<<16,A=A+D|0,le^=A,le=le>>>32-12|le<<12,J=J+me|0,k^=J,k=k>>>32-16|k<<16,g=g+k|0,me^=g,me=me>>>32-12|me<<12,K=K+le|0,D^=K,D=D>>>32-8|D<<8,A=A+D|0,le^=A,le=le>>>32-7|le<<7,J=J+me|0,k^=J,k=k>>>32-8|k<<8,g=g+k|0,me^=g,me=me>>>32-7|me<<7,U=U+Z|0,E^=U,E=E>>>32-8|E<<8,W=W+E|0,Z^=W,Z=Z>>>32-7|Z<<7,I=I+j|0,w^=I,w=w>>>32-8|w<<8,fe=fe+w|0,j^=fe,j=j>>>32-7|j<<7,I=I+Z|0,k^=I,k=k>>>32-16|k<<16,A=A+k|0,Z^=A,Z=Z>>>32-12|Z<<12,U=U+le|0,w^=U,w=w>>>32-16|w<<16,g=g+w|0,le^=g,le=le>>>32-12|le<<12,K=K+me|0,E^=K,E=E>>>32-16|E<<16,fe=fe+E|0,me^=fe,me=me>>>32-12|me<<12,J=J+j|0,D^=J,D=D>>>32-16|D<<16,W=W+D|0,j^=W,j=j>>>32-12|j<<12,K=K+me|0,E^=K,E=E>>>32-8|E<<8,fe=fe+E|0,me^=fe,me=me>>>32-7|me<<7,J=J+j|0,D^=J,D=D>>>32-8|D<<8,W=W+D|0,j^=W,j=j>>>32-7|j<<7,U=U+le|0,w^=U,w=w>>>32-8|w<<8,g=g+w|0,le^=g,le=le>>>32-7|le<<7,I=I+Z|0,k^=I,k=k>>>32-8|k<<8,A=A+k|0,Z^=A,Z=Z>>>32-7|Z<<7;Jr.writeUint32LE(I+n|0,e,0),Jr.writeUint32LE(U+o|0,e,4),Jr.writeUint32LE(K+i|0,e,8),Jr.writeUint32LE(J+s|0,e,12),Jr.writeUint32LE(j+a|0,e,16),Jr.writeUint32LE(Z+u|0,e,20),Jr.writeUint32LE(le+l|0,e,24),Jr.writeUint32LE(me+p|0,e,28),Jr.writeUint32LE(fe+h|0,e,32),Jr.writeUint32LE(W+y|0,e,36),Jr.writeUint32LE(A+b|0,e,40),Jr.writeUint32LE(g+v|0,e,44),Jr.writeUint32LE(w+C|0,e,48),Jr.writeUint32LE(E+N|0,e,52),Jr.writeUint32LE(D+M|0,e,56),Jr.writeUint32LE(k+T|0,e,60)}function vN(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),u=0;u<r.length;u+=64){cJ(a,i,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];dJ(i,0,s)}return U_.wipe(a),o===0&&U_.wipe(i),n}eg.streamXOR=vN;function fJ(e,t,r,n){return n===void 0&&(n=0),U_.wipe(r),vN(e,t,r,r,n)}eg.stream=fJ;function dJ(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 tg=_e(_c=>{"use strict";c();d();f();Object.defineProperty(_c,"__esModule",{value:!0});function hJ(e,t,r){return~(e-1)&t|e-1&r}_c.select=hJ;function pJ(e,t){return(e|0)-(t|0)-1>>>31&1}_c.lessOrEqual=pJ;function bN(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}_c.compare=bN;function mJ(e,t){return e.length===0||t.length===0?!1:bN(e,t)!==0}_c.equal=mJ});var xN=_e($i=>{"use strict";c();d();f();Object.defineProperty($i,"__esModule",{value:!0});var gJ=tg(),rg=po();$i.DIGEST_LENGTH=16;var _N=function(){function e(t){this.digestLength=$i.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 u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var o=this._fin?0:2048,i=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],b=this._h[8],v=this._h[9],C=this._r[0],N=this._r[1],M=this._r[2],T=this._r[3],I=this._r[4],U=this._r[5],K=this._r[6],J=this._r[7],j=this._r[8],Z=this._r[9];n>=16;){var le=t[r+0]|t[r+1]<<8;i+=le&8191;var me=t[r+2]|t[r+3]<<8;s+=(le>>>13|me<<3)&8191;var fe=t[r+4]|t[r+5]<<8;a+=(me>>>10|fe<<6)&8191;var W=t[r+6]|t[r+7]<<8;u+=(fe>>>7|W<<9)&8191;var A=t[r+8]|t[r+9]<<8;l+=(W>>>4|A<<12)&8191,p+=A>>>1&8191;var g=t[r+10]|t[r+11]<<8;h+=(A>>>14|g<<2)&8191;var w=t[r+12]|t[r+13]<<8;y+=(g>>>11|w<<5)&8191;var E=t[r+14]|t[r+15]<<8;b+=(w>>>8|E<<8)&8191,v+=E>>>5|o;var D=0,k=D;k+=i*C,k+=s*(5*Z),k+=a*(5*j),k+=u*(5*J),k+=l*(5*K),D=k>>>13,k&=8191,k+=p*(5*U),k+=h*(5*I),k+=y*(5*T),k+=b*(5*M),k+=v*(5*N),D+=k>>>13,k&=8191;var B=D;B+=i*N,B+=s*C,B+=a*(5*Z),B+=u*(5*j),B+=l*(5*J),D=B>>>13,B&=8191,B+=p*(5*K),B+=h*(5*U),B+=y*(5*I),B+=b*(5*T),B+=v*(5*M),D+=B>>>13,B&=8191;var q=D;q+=i*M,q+=s*N,q+=a*C,q+=u*(5*Z),q+=l*(5*j),D=q>>>13,q&=8191,q+=p*(5*J),q+=h*(5*K),q+=y*(5*U),q+=b*(5*I),q+=v*(5*T),D+=q>>>13,q&=8191;var $=D;$+=i*T,$+=s*M,$+=a*N,$+=u*C,$+=l*(5*Z),D=$>>>13,$&=8191,$+=p*(5*j),$+=h*(5*J),$+=y*(5*K),$+=b*(5*U),$+=v*(5*I),D+=$>>>13,$&=8191;var _=D;_+=i*I,_+=s*T,_+=a*M,_+=u*N,_+=l*C,D=_>>>13,_&=8191,_+=p*(5*Z),_+=h*(5*j),_+=y*(5*J),_+=b*(5*K),_+=v*(5*U),D+=_>>>13,_&=8191;var V=D;V+=i*U,V+=s*I,V+=a*T,V+=u*M,V+=l*N,D=V>>>13,V&=8191,V+=p*C,V+=h*(5*Z),V+=y*(5*j),V+=b*(5*J),V+=v*(5*K),D+=V>>>13,V&=8191;var ie=D;ie+=i*K,ie+=s*U,ie+=a*I,ie+=u*T,ie+=l*M,D=ie>>>13,ie&=8191,ie+=p*N,ie+=h*C,ie+=y*(5*Z),ie+=b*(5*j),ie+=v*(5*J),D+=ie>>>13,ie&=8191;var O=D;O+=i*J,O+=s*K,O+=a*U,O+=u*I,O+=l*T,D=O>>>13,O&=8191,O+=p*M,O+=h*N,O+=y*C,O+=b*(5*Z),O+=v*(5*j),D+=O>>>13,O&=8191;var Y=D;Y+=i*j,Y+=s*J,Y+=a*K,Y+=u*U,Y+=l*I,D=Y>>>13,Y&=8191,Y+=p*T,Y+=h*M,Y+=y*N,Y+=b*C,Y+=v*(5*Z),D+=Y>>>13,Y&=8191;var ne=D;ne+=i*Z,ne+=s*j,ne+=a*J,ne+=u*K,ne+=l*U,D=ne>>>13,ne&=8191,ne+=p*I,ne+=h*T,ne+=y*M,ne+=b*N,ne+=v*C,D+=ne>>>13,ne&=8191,D=(D<<2)+D|0,D=D+k|0,k=D&8191,D=D>>>13,B+=D,i=k,s=B,a=q,u=$,l=_,p=V,h=ie,y=O,b=Y,v=ne,r+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=b,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 rg.wipe(this._buffer),rg.wipe(this._r),rg.wipe(this._h),rg.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();$i.Poly1305=_N;function yJ(e,t){var r=new _N(e);r.update(t);var n=r.digest();return r.clean(),n}$i.oneTimeAuth=yJ;function vJ(e,t){return e.length!==$i.DIGEST_LENGTH||t.length!==$i.DIGEST_LENGTH?!1:gJ.equal(e,t)}$i.equal=vJ});var og=_e(Bi=>{"use strict";c();d();f();Object.defineProperty(Bi,"__esModule",{value:!0});var ng=wN(),wJ=xN(),Fd=po(),EN=cc(),bJ=tg();Bi.KEY_LENGTH=32;Bi.NONCE_LENGTH=12;Bi.TAG_LENGTH=16;var SN=new Uint8Array(16),_J=function(){function e(t){if(this.nonceLength=Bi.NONCE_LENGTH,this.tagLength=Bi.TAG_LENGTH,t.length!==Bi.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);ng.stream(this._key,i,s,4);var a=r.length+this.tagLength,u;if(o){if(o.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=o}else u=new Uint8Array(a);return ng.streamXOR(this._key,i,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),Fd.wipe(i),u},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);ng.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),!bJ.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(o){if(o.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=o}else l=new Uint8Array(u);return ng.streamXOR(this._key,i,r.subarray(0,r.length-this.tagLength),l,4),Fd.wipe(i),l},e.prototype.clean=function(){return Fd.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,o){var i=new wJ.Poly1305(r);o&&(i.update(o),o.length%16>0&&i.update(SN.subarray(o.length%16))),i.update(n),n.length%16>0&&i.update(SN.subarray(n.length%16));var s=new Uint8Array(8);o&&EN.writeUint64LE(o.length,s),i.update(s),EN.writeUint64LE(n.length,s),i.update(s);for(var a=i.digest(),u=0;u<a.length;u++)t[u]=a[u];i.clean(),Fd.wipe(a),Fd.wipe(s)},e}();Bi.ChaCha20Poly1305=_J});var CN=_e($_=>{"use strict";c();d();f();Object.defineProperty($_,"__esModule",{value:!0});function xJ(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}$_.isSerializableHash=xJ});var TN=_e(Ud=>{"use strict";c();d();f();Object.defineProperty(Ud,"__esModule",{value:!0});var ri=CN(),EJ=tg(),SJ=po(),MN=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),ri.isSerializableHash(this._inner)&&ri.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),SJ.wipe(n)}return e.prototype.reset=function(){if(!ri.isSerializableHash(this._inner)||!ri.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(){ri.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),ri.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(!ri.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(!ri.isSerializableHash(this._inner)||!ri.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(!ri.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Ud.HMAC=MN;function CJ(e,t,r){var n=new MN(e,t);n.update(r);var o=n.digest();return n.clean(),o}Ud.hmac=CJ;Ud.equal=EJ.equal});var ig=_e(B_=>{"use strict";c();d();f();Object.defineProperty(B_,"__esModule",{value:!0});var PN=TN(),ON=po(),MJ=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=PN.hmac(this._hash,n,r);this._hmac=new PN.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(),ON.wipe(this._buffer),ON.wipe(this._counter),this._bufpos=0},e}();B_.HKDF=MJ});var ug=_e(qs=>{"use strict";c();d();f();Object.defineProperty(qs,"__esModule",{value:!0});var ag=cc(),sg=po();qs.DIGEST_LENGTH=32;qs.BLOCK_SIZE=64;var DN=function(){function e(){this.digestLength=qs.DIGEST_LENGTH,this.blockSize=qs.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(){sg.wipe(this._buffer),sg.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&&(V_(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=V_(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;ag.writeUint32BE(o,this._buffer,s-8),ag.writeUint32BE(i,this._buffer,s-4),V_(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)ag.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){sg.wipe(t.state),t.buffer&&sg.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();qs.SHA256=DN;var TJ=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 V_(e,t,r,n,o){for(;o>=64;){for(var i=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],b=0;b<16;b++){var v=n+b*4;e[b]=ag.readUint32BE(r,v)}for(var b=16;b<64;b++){var C=e[b-2],N=(C>>>17|C<<32-17)^(C>>>19|C<<32-19)^C>>>10;C=e[b-15];var M=(C>>>7|C<<32-7)^(C>>>18|C<<32-18)^C>>>3;e[b]=(N+e[b-7]|0)+(M+e[b-16]|0)}for(var b=0;b<64;b++){var N=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(TJ[b]+e[b]|0)|0)|0,M=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&a^s&a)|0;y=h,h=p,p=l,l=u+N|0,u=a,a=s,s=i,i=N+M|0}t[0]+=i,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,o-=64}return n}function PJ(e){var t=new DN;t.update(e);var r=t.digest();return t.clean(),r}qs.hash=PJ});var fg=_e(nr=>{"use strict";c();d();f();Object.defineProperty(nr,"__esModule",{value:!0});nr.sharedKey=nr.generateKeyPair=nr.generateKeyPairFromSeed=nr.scalarMultBase=nr.scalarMult=nr.SHARED_KEY_LENGTH=nr.SECRET_KEY_LENGTH=nr.PUBLIC_KEY_LENGTH=void 0;var OJ=qa(),DJ=po();nr.PUBLIC_KEY_LENGTH=32;nr.SECRET_KEY_LENGTH=32;nr.SHARED_KEY_LENGTH=32;function ni(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var IN=new Uint8Array(32);IN[0]=9;var IJ=ni([56129,1]);function j_(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 $d(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 AJ(e,t){let r=ni(),n=ni();for(let o=0;o<16;o++)n[o]=t[o];j_(n),j_(n),j_(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,$d(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 NJ(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function lg(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function cg(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Vi(e,t,r){let n,o,i=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,b=0,v=0,C=0,N=0,M=0,T=0,I=0,U=0,K=0,J=0,j=0,Z=0,le=0,me=0,fe=0,W=0,A=0,g=0,w=0,E=0,D=0,k=0,B=0,q=r[0],$=r[1],_=r[2],V=r[3],ie=r[4],O=r[5],Y=r[6],ne=r[7],ae=r[8],he=r[9],X=r[10],Q=r[11],G=r[12],ue=r[13],re=r[14],ge=r[15];n=t[0],i+=n*q,s+=n*$,a+=n*_,u+=n*V,l+=n*ie,p+=n*O,h+=n*Y,y+=n*ne,b+=n*ae,v+=n*he,C+=n*X,N+=n*Q,M+=n*G,T+=n*ue,I+=n*re,U+=n*ge,n=t[1],s+=n*q,a+=n*$,u+=n*_,l+=n*V,p+=n*ie,h+=n*O,y+=n*Y,b+=n*ne,v+=n*ae,C+=n*he,N+=n*X,M+=n*Q,T+=n*G,I+=n*ue,U+=n*re,K+=n*ge,n=t[2],a+=n*q,u+=n*$,l+=n*_,p+=n*V,h+=n*ie,y+=n*O,b+=n*Y,v+=n*ne,C+=n*ae,N+=n*he,M+=n*X,T+=n*Q,I+=n*G,U+=n*ue,K+=n*re,J+=n*ge,n=t[3],u+=n*q,l+=n*$,p+=n*_,h+=n*V,y+=n*ie,b+=n*O,v+=n*Y,C+=n*ne,N+=n*ae,M+=n*he,T+=n*X,I+=n*Q,U+=n*G,K+=n*ue,J+=n*re,j+=n*ge,n=t[4],l+=n*q,p+=n*$,h+=n*_,y+=n*V,b+=n*ie,v+=n*O,C+=n*Y,N+=n*ne,M+=n*ae,T+=n*he,I+=n*X,U+=n*Q,K+=n*G,J+=n*ue,j+=n*re,Z+=n*ge,n=t[5],p+=n*q,h+=n*$,y+=n*_,b+=n*V,v+=n*ie,C+=n*O,N+=n*Y,M+=n*ne,T+=n*ae,I+=n*he,U+=n*X,K+=n*Q,J+=n*G,j+=n*ue,Z+=n*re,le+=n*ge,n=t[6],h+=n*q,y+=n*$,b+=n*_,v+=n*V,C+=n*ie,N+=n*O,M+=n*Y,T+=n*ne,I+=n*ae,U+=n*he,K+=n*X,J+=n*Q,j+=n*G,Z+=n*ue,le+=n*re,me+=n*ge,n=t[7],y+=n*q,b+=n*$,v+=n*_,C+=n*V,N+=n*ie,M+=n*O,T+=n*Y,I+=n*ne,U+=n*ae,K+=n*he,J+=n*X,j+=n*Q,Z+=n*G,le+=n*ue,me+=n*re,fe+=n*ge,n=t[8],b+=n*q,v+=n*$,C+=n*_,N+=n*V,M+=n*ie,T+=n*O,I+=n*Y,U+=n*ne,K+=n*ae,J+=n*he,j+=n*X,Z+=n*Q,le+=n*G,me+=n*ue,fe+=n*re,W+=n*ge,n=t[9],v+=n*q,C+=n*$,N+=n*_,M+=n*V,T+=n*ie,I+=n*O,U+=n*Y,K+=n*ne,J+=n*ae,j+=n*he,Z+=n*X,le+=n*Q,me+=n*G,fe+=n*ue,W+=n*re,A+=n*ge,n=t[10],C+=n*q,N+=n*$,M+=n*_,T+=n*V,I+=n*ie,U+=n*O,K+=n*Y,J+=n*ne,j+=n*ae,Z+=n*he,le+=n*X,me+=n*Q,fe+=n*G,W+=n*ue,A+=n*re,g+=n*ge,n=t[11],N+=n*q,M+=n*$,T+=n*_,I+=n*V,U+=n*ie,K+=n*O,J+=n*Y,j+=n*ne,Z+=n*ae,le+=n*he,me+=n*X,fe+=n*Q,W+=n*G,A+=n*ue,g+=n*re,w+=n*ge,n=t[12],M+=n*q,T+=n*$,I+=n*_,U+=n*V,K+=n*ie,J+=n*O,j+=n*Y,Z+=n*ne,le+=n*ae,me+=n*he,fe+=n*X,W+=n*Q,A+=n*G,g+=n*ue,w+=n*re,E+=n*ge,n=t[13],T+=n*q,I+=n*$,U+=n*_,K+=n*V,J+=n*ie,j+=n*O,Z+=n*Y,le+=n*ne,me+=n*ae,fe+=n*he,W+=n*X,A+=n*Q,g+=n*G,w+=n*ue,E+=n*re,D+=n*ge,n=t[14],I+=n*q,U+=n*$,K+=n*_,J+=n*V,j+=n*ie,Z+=n*O,le+=n*Y,me+=n*ne,fe+=n*ae,W+=n*he,A+=n*X,g+=n*Q,w+=n*G,E+=n*ue,D+=n*re,k+=n*ge,n=t[15],U+=n*q,K+=n*$,J+=n*_,j+=n*V,Z+=n*ie,le+=n*O,me+=n*Y,fe+=n*ne,W+=n*ae,A+=n*he,g+=n*X,w+=n*Q,E+=n*G,D+=n*ue,k+=n*re,B+=n*ge,i+=38*K,s+=38*J,a+=38*j,u+=38*Z,l+=38*le,p+=38*me,h+=38*fe,y+=38*W,b+=38*A,v+=38*g,C+=38*w,N+=38*E,M+=38*D,T+=38*k,I+=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=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=b+o+65535,o=Math.floor(n/65536),b=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=C+o+65535,o=Math.floor(n/65536),C=n-o*65536,n=N+o+65535,o=Math.floor(n/65536),N=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=U+o+65535,o=Math.floor(n/65536),U=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=u+o+65535,o=Math.floor(n/65536),u=n-o*65536,n=l+o+65535,o=Math.floor(n/65536),l=n-o*65536,n=p+o+65535,o=Math.floor(n/65536),p=n-o*65536,n=h+o+65535,o=Math.floor(n/65536),h=n-o*65536,n=y+o+65535,o=Math.floor(n/65536),y=n-o*65536,n=b+o+65535,o=Math.floor(n/65536),b=n-o*65536,n=v+o+65535,o=Math.floor(n/65536),v=n-o*65536,n=C+o+65535,o=Math.floor(n/65536),C=n-o*65536,n=N+o+65535,o=Math.floor(n/65536),N=n-o*65536,n=M+o+65535,o=Math.floor(n/65536),M=n-o*65536,n=T+o+65535,o=Math.floor(n/65536),T=n-o*65536,n=I+o+65535,o=Math.floor(n/65536),I=n-o*65536,n=U+o+65535,o=Math.floor(n/65536),U=n-o*65536,i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=b,e[9]=v,e[10]=C,e[11]=N,e[12]=M,e[13]=T,e[14]=I,e[15]=U}function Bd(e,t){Vi(e,t,t)}function RJ(e,t){let r=ni();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Bd(r,r),n!==2&&n!==4&&Vi(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function z_(e,t){let r=new Uint8Array(32),n=new Float64Array(80),o=ni(),i=ni(),s=ni(),a=ni(),u=ni(),l=ni();for(let b=0;b<31;b++)r[b]=e[b];r[31]=e[31]&127|64,r[0]&=248,NJ(n,t);for(let b=0;b<16;b++)i[b]=n[b];o[0]=a[0]=1;for(let b=254;b>=0;--b){let v=r[b>>>3]>>>(b&7)&1;$d(o,i,v),$d(s,a,v),lg(u,o,s),cg(o,o,s),lg(s,i,a),cg(i,i,a),Bd(a,u),Bd(l,o),Vi(o,s,o),Vi(s,i,u),lg(u,o,s),cg(o,o,s),Bd(i,o),cg(s,a,l),Vi(o,s,IJ),lg(o,o,a),Vi(s,s,o),Vi(o,a,l),Vi(a,i,n),Bd(i,u),$d(o,i,v),$d(s,a,v)}for(let b=0;b<16;b++)n[b+16]=o[b],n[b+32]=s[b],n[b+48]=i[b],n[b+64]=a[b];let p=n.subarray(32),h=n.subarray(16);RJ(p,p),Vi(h,h,p);let y=new Uint8Array(32);return AJ(y,h),y}nr.scalarMult=z_;function AN(e){return z_(e,IN)}nr.scalarMultBase=AN;function NN(e){if(e.length!==nr.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${nr.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:AN(t),secretKey:t}}nr.generateKeyPairFromSeed=NN;function kJ(e){let t=(0,OJ.randomBytes)(32,e),r=NN(t);return(0,DJ.wipe)(t),r}nr.generateKeyPair=kJ;function LJ(e,t,r=!1){if(e.length!==nr.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==nr.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=z_(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}nr.sharedKey=LJ});var jd=_e(Ut=>{"use strict";c();d();f();Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getLocalStorage=Ut.getLocalStorageOrThrow=Ut.getCrypto=Ut.getCryptoOrThrow=Ut.getLocation=Ut.getLocationOrThrow=Ut.getNavigator=Ut.getNavigatorOrThrow=Ut.getDocument=Ut.getDocumentOrThrow=Ut.getFromWindowOrThrow=Ut.getFromWindow=void 0;function Ya(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ut.getFromWindow=Ya;function Ec(e){let t=Ya(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ut.getFromWindowOrThrow=Ec;function YJ(){return Ec("document")}Ut.getDocumentOrThrow=YJ;function XJ(){return Ya("document")}Ut.getDocument=XJ;function JJ(){return Ec("navigator")}Ut.getNavigatorOrThrow=JJ;function QJ(){return Ya("navigator")}Ut.getNavigator=QJ;function eQ(){return Ec("location")}Ut.getLocationOrThrow=eQ;function tQ(){return Ya("location")}Ut.getLocation=tQ;function rQ(){return Ec("crypto")}Ut.getCryptoOrThrow=rQ;function nQ(){return Ya("crypto")}Ut.getCrypto=nQ;function oQ(){return Ec("localStorage")}Ut.getLocalStorageOrThrow=oQ;function iQ(){return Ya("localStorage")}Ut.getLocalStorage=iQ});var pg=_e(hg=>{"use strict";c();d();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.getWindowMetadata=void 0;var VN=jd();function sQ(){let e,t;try{e=VN.getDocumentOrThrow(),t=VN.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let b=0;b<h.length;b++){let v=h[b],C=v.getAttribute("rel");if(C&&C.toLowerCase().indexOf("icon")>-1){let N=v.getAttribute("href");if(N)if(N.toLowerCase().indexOf("https:")===-1&&N.toLowerCase().indexOf("http:")===-1&&N.indexOf("//")!==0){let M=t.protocol+"//"+t.host;if(N.indexOf("/")===0)M+=N;else{let T=t.pathname.split("/");T.pop(),M+=T.join("/")+"/"+N}y.push(M)}else if(N.indexOf("//")===0){let M=t.protocol+N;y.push(M)}else y.push(N)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let b=0;b<y.length;b++){let v=y[b],C=["itemprop","property","name"].map(N=>v.getAttribute(N)).filter(N=>N?h.includes(N):!1);if(C.length&&C){let N=v.getAttribute("content");if(N)return N}}return""}function o(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=o(),a=i(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}hg.getWindowMetadata=sQ});var zN=_e((Ebe,jN)=>{"use strict";c();d();f();jN.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var GN=_e((Sbe,ZN)=>{"use strict";c();d();f();var KN="%[a-f0-9]{2}",HN=new RegExp("("+KN+")|([^%]+?)","gi"),qN=new RegExp("("+KN+")+","gi");function q_(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([],q_(r),q_(n))}function aQ(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(HN)||[],r=1;r<t.length;r++)e=q_(t,r).join(""),t=e.match(HN)||[];return e}}function uQ(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=qN.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=aQ(r[0]);n!==r[0]&&(t[r[0]]=n)}r=qN.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}ZN.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 uQ(e)}}});var YN=_e((Cbe,WN)=>{"use strict";c();d();f();WN.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 JN=_e((Mbe,XN)=>{"use strict";c();d();f();XN.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 mg=_e(On=>{"use strict";c();d();f();var lQ=zN(),cQ=GN(),eR=YN(),fQ=JN(),dQ=e=>e==null,K_=Symbol("encodeFragmentIdentifier");function hQ(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,[ar(t,e),"[",o,"]"].join("")]:[...r,[ar(t,e),"[",ar(o,e),"]=",ar(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[ar(t,e),"[]"].join("")]:[...r,[ar(t,e),"[]=",ar(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,[ar(t,e),":list="].join("")]:[...r,[ar(t,e),":list=",ar(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?[[ar(r,e),t,ar(o,e)].join("")]:[[n,ar(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,ar(t,e)]:[...r,[ar(t,e),"=",ar(n,e)].join("")]}}function pQ(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&&ji(n,e).includes(e.arrayFormatSeparator);n=s?ji(n,e):n;let a=i||s?n.split(e.arrayFormatSeparator).map(u=>ji(u,e)):n===null?n:ji(n,e);o[r]=a};case"bracket-separator":return(r,n,o)=>{let i=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!i){o[r]=n&&ji(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>ji(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 tR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ar(e,t){return t.encode?t.strict?lQ(e):encodeURIComponent(e):e}function ji(e,t){return t.decode?cQ(e):e}function rR(e){return Array.isArray(e)?e.sort():typeof e=="object"?rR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function nR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function mQ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function oR(e){e=nR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function QN(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 iR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),tR(t.arrayFormatSeparator);let r=pQ(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]=eR(t.decode?o.replace(/\+/g," "):o,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:ji(s,t),r(ji(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]=QN(i[s],t);else n[o]=QN(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]=rR(s):o[i]=s,o},Object.create(null))}On.extract=oR;On.parse=iR;On.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),tR(t.arrayFormatSeparator);let r=s=>t.skipNull&&dQ(e[s])||t.skipEmptyString&&e[s]==="",n=hQ(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?ar(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?ar(s,t)+"[]":a.reduce(n(s),[]).join("&"):ar(s,t)+"="+ar(a,t)}).filter(s=>s.length>0).join("&")};On.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=eR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:iR(oR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:ji(n,t)}:{})};On.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[K_]:!0},t);let r=nR(e.url).split("?")[0]||"",n=On.extract(e.url),o=On.parse(n,{sort:!1}),i=Object.assign(o,e.query),s=On.stringify(i,t);s&&(s=`?${s}`);let a=mQ(e.url);return e.fragmentIdentifier&&(a=`#${t[K_]?ar(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};On.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[K_]:!1},r);let{url:n,query:o,fragmentIdentifier:i}=On.parseUrl(e,r);return On.stringifyUrl({url:n,query:fQ(o,t),fragmentIdentifier:i},r)};On.exclude=(e,t,r)=>{let n=Array.isArray(t)?o=>!t.includes(o):(o,i)=>!t(o,i);return On.pick(e,n,r)}});var ok=_e((o_e,Ag)=>{c();d();f();var UR,$R,BR,VR,jR,zR,HR,qR,KR,Ig,ux,ZR,GR,Tc,WR,YR,XR,JR,QR,ek,tk,rk,nk;(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])};UR=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},$R=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},BR=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},VR=function(r,n,o,i){var s=arguments.length,a=s<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,o,i);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,o,a):u(n,o))||a);return s>3&&a&&Object.defineProperty(n,o,a),a},jR=function(r,n){return function(o,i){n(o,i,r)}},zR=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},HR=function(r,n,o,i){function s(a){return a instanceof o?a:new o(function(u){u(a)})}return new(o||(o=Promise))(function(a,u){function l(y){try{h(i.next(y))}catch(b){u(b)}}function p(y){try{h(i.throw(y))}catch(b){u(b)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((i=i.apply(r,n||[])).next())})},qR=function(r,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){o.label=h[1];break}if(h[0]===6&&o.label<a[1]){o.label=a[1],a=h;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(h);break}a[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(y){h=[6,y],s=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},nk=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},KR=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.")},ux=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(u)throw u.error}}return a},ZR=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ux(arguments[n]));return r},GR=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],u=0,l=a.length;u<l;u++,s++)i[s]=a[u];return i},Tc=function(r){return this instanceof Tc?(this.v=r,this):new Tc(r)},WR=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={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){i[v]&&(s[v]=function(C){return new Promise(function(N,M){a.push([v,C,N,M])>1||l(v,C)})})}function l(v,C){try{p(i[v](C))}catch(N){b(a[0][3],N)}}function p(v){v.value instanceof Tc?Promise.resolve(v.value.v).then(h,y):b(a[0][2],v)}function h(v){l("next",v)}function y(v){l("throw",v)}function b(v,C){v(C),a.shift(),a.length&&l(a[0][0],a[0][1])}},YR=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(u){return(o=!o)?{value:Tc(r[s](u)),done:s==="return"}:a?a(u):u}:a}},XR=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(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},JR=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},QR=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},ek=function(r){return r&&r.__esModule?r:{default:r}},tk=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},rk=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",UR),e("__assign",$R),e("__rest",BR),e("__decorate",VR),e("__param",jR),e("__metadata",zR),e("__awaiter",HR),e("__generator",qR),e("__exportStar",KR),e("__createBinding",nk),e("__values",Ig),e("__read",ux),e("__spread",ZR),e("__spreadArrays",GR),e("__await",Tc),e("__asyncGenerator",WR),e("__asyncDelegator",YR),e("__asyncValues",XR),e("__makeTemplateObject",JR),e("__importStar",QR),e("__importDefault",ek),e("__classPrivateFieldGet",tk),e("__classPrivateFieldSet",rk)})});var sk=_e(Zs=>{"use strict";c();d();f();Object.defineProperty(Zs,"__esModule",{value:!0});Zs.isBrowserCryptoAvailable=Zs.getSubtleCrypto=Zs.getBrowerCrypto=void 0;function lx(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Zs.getBrowerCrypto=lx;function ik(){let e=lx();return e.subtle||e.webkitSubtle}Zs.getSubtleCrypto=ik;function zQ(){return!!lx()&&!!ik()}Zs.isBrowserCryptoAvailable=zQ});var lk=_e(Gs=>{"use strict";c();d();f();Object.defineProperty(Gs,"__esModule",{value:!0});Gs.isBrowser=Gs.isNode=Gs.isReactNative=void 0;function ak(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Gs.isReactNative=ak;function uk(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Gs.isNode=uk;function HQ(){return!ak()&&!uk()}Gs.isBrowser=HQ});var cx=_e(Ng=>{"use strict";c();d();f();Object.defineProperty(Ng,"__esModule",{value:!0});var ck=ok();ck.__exportStar(sk(),Ng);ck.__exportStar(lk(),Ng)});var vk=_e(($_e,yk)=>{"use strict";c();d();f();yk.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var nL=_e((Wd,Ac)=>{c();d();f();var ree=200,Cx="__lodash_hash_undefined__",Kg=1,Rk=2,kk=9007199254740991,$g="[object Arguments]",vx="[object Array]",nee="[object AsyncFunction]",Lk="[object Boolean]",Fk="[object Date]",Uk="[object Error]",$k="[object Function]",oee="[object GeneratorFunction]",Bg="[object Map]",Bk="[object Number]",iee="[object Null]",Ic="[object Object]",Ek="[object Promise]",see="[object Proxy]",Vk="[object RegExp]",Vg="[object Set]",jk="[object String]",aee="[object Symbol]",uee="[object Undefined]",wx="[object WeakMap]",zk="[object ArrayBuffer]",jg="[object DataView]",lee="[object Float32Array]",cee="[object Float64Array]",fee="[object Int8Array]",dee="[object Int16Array]",hee="[object Int32Array]",pee="[object Uint8Array]",mee="[object Uint8ClampedArray]",gee="[object Uint16Array]",yee="[object Uint32Array]",vee=/[\\^$.*+?()[\]{}|]/g,wee=/^\[object .+?Constructor\]$/,bee=/^(?:0|[1-9]\d*)$/,jt={};jt[lee]=jt[cee]=jt[fee]=jt[dee]=jt[hee]=jt[pee]=jt[mee]=jt[gee]=jt[yee]=!0;jt[$g]=jt[vx]=jt[zk]=jt[Lk]=jt[jg]=jt[Fk]=jt[Uk]=jt[$k]=jt[Bg]=jt[Bk]=jt[Ic]=jt[Vk]=jt[Vg]=jt[jk]=jt[wx]=!1;var Hk=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,_ee=typeof self=="object"&&self&&self.Object===Object&&self,Hi=Hk||_ee||Function("return this")(),qk=typeof Wd=="object"&&Wd&&!Wd.nodeType&&Wd,Sk=qk&&typeof Ac=="object"&&Ac&&!Ac.nodeType&&Ac,Kk=Sk&&Sk.exports===qk,mx=Kk&&Hk.process,Ck=function(){try{return mx&&mx.binding&&mx.binding("util")}catch(e){}}(),Mk=Ck&&Ck.isTypedArray;function xee(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 Eee(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function See(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 Cee(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Mee(e){return function(t){return e(t)}}function Tee(e,t){return e.has(t)}function Pee(e,t){return e==null?void 0:e[t]}function Oee(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Dee(e,t){return function(r){return e(t(r))}}function Iee(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Aee=Array.prototype,Nee=Function.prototype,Zg=Object.prototype,gx=Hi["__core-js_shared__"],Zk=Nee.toString,oi=Zg.hasOwnProperty,Tk=function(){var e=/[^.]+$/.exec(gx&&gx.keys&&gx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gk=Zg.toString,Ree=RegExp("^"+Zk.call(oi).replace(vee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pk=Kk?Hi.Buffer:void 0,zg=Hi.Symbol,Ok=Hi.Uint8Array,Wk=Zg.propertyIsEnumerable,kee=Aee.splice,tu=zg?zg.toStringTag:void 0,Dk=Object.getOwnPropertySymbols,Lee=Pk?Pk.isBuffer:void 0,Fee=Dee(Object.keys,Object),bx=Nc(Hi,"DataView"),Yd=Nc(Hi,"Map"),_x=Nc(Hi,"Promise"),xx=Nc(Hi,"Set"),Ex=Nc(Hi,"WeakMap"),Xd=Nc(Object,"create"),Uee=ou(bx),$ee=ou(Yd),Bee=ou(_x),Vee=ou(xx),jee=ou(Ex),Ik=zg?zg.prototype:void 0,yx=Ik?Ik.valueOf:void 0;function ru(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 zee(){this.__data__=Xd?Xd(null):{},this.size=0}function Hee(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function qee(e){var t=this.__data__;if(Xd){var r=t[e];return r===Cx?void 0:r}return oi.call(t,e)?t[e]:void 0}function Kee(e){var t=this.__data__;return Xd?t[e]!==void 0:oi.call(t,e)}function Zee(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xd&&t===void 0?Cx:t,this}ru.prototype.clear=zee;ru.prototype.delete=Hee;ru.prototype.get=qee;ru.prototype.has=Kee;ru.prototype.set=Zee;function qi(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 Gee(){this.__data__=[],this.size=0}function Wee(e){var t=this.__data__,r=Gg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():kee.call(t,r,1),--this.size,!0}function Yee(e){var t=this.__data__,r=Gg(t,e);return r<0?void 0:t[r][1]}function Xee(e){return Gg(this.__data__,e)>-1}function Jee(e,t){var r=this.__data__,n=Gg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}qi.prototype.clear=Gee;qi.prototype.delete=Wee;qi.prototype.get=Yee;qi.prototype.has=Xee;qi.prototype.set=Jee;function nu(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 Qee(){this.size=0,this.__data__={hash:new ru,map:new(Yd||qi),string:new ru}}function ete(e){var t=Wg(this,e).delete(e);return this.size-=t?1:0,t}function tte(e){return Wg(this,e).get(e)}function rte(e){return Wg(this,e).has(e)}function nte(e,t){var r=Wg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}nu.prototype.clear=Qee;nu.prototype.delete=ete;nu.prototype.get=tte;nu.prototype.has=rte;nu.prototype.set=nte;function Hg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nu;++t<r;)this.add(e[t])}function ote(e){return this.__data__.set(e,Cx),this}function ite(e){return this.__data__.has(e)}Hg.prototype.add=Hg.prototype.push=ote;Hg.prototype.has=ite;function Xs(e){var t=this.__data__=new qi(e);this.size=t.size}function ste(){this.__data__=new qi,this.size=0}function ate(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ute(e){return this.__data__.get(e)}function lte(e){return this.__data__.has(e)}function cte(e,t){var r=this.__data__;if(r instanceof qi){var n=r.__data__;if(!Yd||n.length<ree-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new nu(n)}return r.set(e,t),this.size=r.size,this}Xs.prototype.clear=ste;Xs.prototype.delete=ate;Xs.prototype.get=ute;Xs.prototype.has=lte;Xs.prototype.set=cte;function fte(e,t){var r=qg(e),n=!r&&Mte(e),o=!r&&!n&&Sx(e),i=!r&&!n&&!o&&rL(e),s=r||n||o||i,a=s?Cee(e.length,String):[],u=a.length;for(var l in e)(t||oi.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||_te(l,u)))&&a.push(l);return a}function Gg(e,t){for(var r=e.length;r--;)if(Jk(e[r][0],t))return r;return-1}function dte(e,t,r){var n=t(e);return qg(e)?n:Eee(n,r(e))}function Qd(e){return e==null?e===void 0?uee:iee:tu&&tu in Object(e)?wte(e):Cte(e)}function Ak(e){return Jd(e)&&Qd(e)==$g}function Yk(e,t,r,n,o){return e===t?!0:e==null||t==null||!Jd(e)&&!Jd(t)?e!==e&&t!==t:hte(e,t,r,n,Yk,o)}function hte(e,t,r,n,o,i){var s=qg(e),a=qg(t),u=s?vx:Ys(e),l=a?vx:Ys(t);u=u==$g?Ic:u,l=l==$g?Ic:l;var p=u==Ic,h=l==Ic,y=u==l;if(y&&Sx(e)){if(!Sx(t))return!1;s=!0,p=!1}if(y&&!p)return i||(i=new Xs),s||rL(e)?Xk(e,t,r,n,o,i):yte(e,t,u,r,n,o,i);if(!(r&Kg)){var b=p&&oi.call(e,"__wrapped__"),v=h&&oi.call(t,"__wrapped__");if(b||v){var C=b?e.value():e,N=v?t.value():t;return i||(i=new Xs),o(C,N,r,n,i)}}return y?(i||(i=new Xs),vte(e,t,r,n,o,i)):!1}function pte(e){if(!tL(e)||Ete(e))return!1;var t=Qk(e)?Ree:wee;return t.test(ou(e))}function mte(e){return Jd(e)&&eL(e.length)&&!!jt[Qd(e)]}function gte(e){if(!Ste(e))return Fee(e);var t=[];for(var r in Object(e))oi.call(e,r)&&r!="constructor"&&t.push(r);return t}function Xk(e,t,r,n,o,i){var s=r&Kg,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var p=-1,h=!0,y=r&Rk?new Hg:void 0;for(i.set(e,t),i.set(t,e);++p<a;){var b=e[p],v=t[p];if(n)var C=s?n(v,b,p,t,e,i):n(b,v,p,e,t,i);if(C!==void 0){if(C)continue;h=!1;break}if(y){if(!See(t,function(N,M){if(!Tee(y,M)&&(b===N||o(b,N,r,n,i)))return y.push(M)})){h=!1;break}}else if(!(b===v||o(b,v,r,n,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function yte(e,t,r,n,o,i,s){switch(r){case jg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zk:return!(e.byteLength!=t.byteLength||!i(new Ok(e),new Ok(t)));case Lk:case Fk:case Bk:return Jk(+e,+t);case Uk:return e.name==t.name&&e.message==t.message;case Vk:case jk:return e==t+"";case Bg:var a=Oee;case Vg:var u=n&Kg;if(a||(a=Iee),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=Rk,s.set(e,t);var p=Xk(a(e),a(t),n,o,i,s);return s.delete(e),p;case aee:if(yx)return yx.call(e)==yx.call(t)}return!1}function vte(e,t,r,n,o,i){var s=r&Kg,a=Nk(e),u=a.length,l=Nk(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:oi.call(t,y)))return!1}var b=i.get(e);if(b&&i.get(t))return b==t;var v=!0;i.set(e,t),i.set(t,e);for(var C=s;++h<u;){y=a[h];var N=e[y],M=t[y];if(n)var T=s?n(M,N,y,t,e,i):n(N,M,y,e,t,i);if(!(T===void 0?N===M||o(N,M,r,n,i):T)){v=!1;break}C||(C=y=="constructor")}if(v&&!C){var I=e.constructor,U=t.constructor;I!=U&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof U=="function"&&U instanceof U)&&(v=!1)}return i.delete(e),i.delete(t),v}function Nk(e){return dte(e,Ote,bte)}function Wg(e,t){var r=e.__data__;return xte(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Nc(e,t){var r=Pee(e,t);return pte(r)?r:void 0}function wte(e){var t=oi.call(e,tu),r=e[tu];try{e[tu]=void 0;var n=!0}catch(i){}var o=Gk.call(e);return n&&(t?e[tu]=r:delete e[tu]),o}var bte=Dk?function(e){return e==null?[]:(e=Object(e),xee(Dk(e),function(t){return Wk.call(e,t)}))}:Dte,Ys=Qd;(bx&&Ys(new bx(new ArrayBuffer(1)))!=jg||Yd&&Ys(new Yd)!=Bg||_x&&Ys(_x.resolve())!=Ek||xx&&Ys(new xx)!=Vg||Ex&&Ys(new Ex)!=wx)&&(Ys=function(e){var t=Qd(e),r=t==Ic?e.constructor:void 0,n=r?ou(r):"";if(n)switch(n){case Uee:return jg;case $ee:return Bg;case Bee:return Ek;case Vee:return Vg;case jee:return wx}return t});function _te(e,t){return t=t==null?kk:t,!!t&&(typeof e=="number"||bee.test(e))&&e>-1&&e%1==0&&e<t}function xte(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ete(e){return!!Tk&&Tk in e}function Ste(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Zg;return e===r}function Cte(e){return Gk.call(e)}function ou(e){if(e!=null){try{return Zk.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Jk(e,t){return e===t||e!==e&&t!==t}var Mte=Ak(function(){return arguments}())?Ak:function(e){return Jd(e)&&oi.call(e,"callee")&&!Wk.call(e,"callee")},qg=Array.isArray;function Tte(e){return e!=null&&eL(e.length)&&!Qk(e)}var Sx=Lee||Ite;function Pte(e,t){return Yk(e,t)}function Qk(e){if(!tL(e))return!1;var t=Qd(e);return t==$k||t==oee||t==nee||t==see}function eL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kk}function tL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Jd(e){return e!=null&&typeof e=="object"}var rL=Mk?Mee(Mk):mte;function Ote(e){return Tte(e)?fte(e):gte(e)}function Dte(){return[]}function Ite(){return!1}Ac.exports=Pte});var A4=_e(I4=>{"use strict";c();d();f();Object.defineProperty(I4,"__esModule",{value:!0});I4.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","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","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 fU=_e(Rn=>{"use strict";c();d();f();var aie=Rn&&Rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.validatePhoneISO3166=Rn.findCountryPhoneDataByPhoneNumber=Rn.findPossibleCountryPhoneData=Rn.findExactCountryPhoneData=Rn.findCountryPhoneDataByCountry=void 0;var fh=aie(A4());function uie(e){return e?e.length===2?fh.default.find(t=>e.toUpperCase()===t.alpha2)||null:e.length===3?fh.default.find(t=>e.toUpperCase()===t.alpha3)||null:fh.default.find(t=>e.toUpperCase()===t.country_name.toUpperCase())||null:fh.default.find(t=>t.alpha3==="USA")||null}Rn.findCountryPhoneDataByCountry=uie;function lU(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}Rn.findExactCountryPhoneData=lU;function cU(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}Rn.findPossibleCountryPhoneData=cU;function lie(e,t){let r,n;for(let o of fh.default)!e.match(new RegExp("^"+o.country_code))||(r||(r=lU(e,t,o)),n||(n=cU(e,t,o)));return{exactCountryPhoneData:r,possibleCountryPhoneData:n}}Rn.findCountryPhoneDataByPhoneNumber=lie;function cie(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(l=>o.length===l),u=s.length?s.some(l=>o.match(new RegExp("^"+l))):!0;return a&&(!r||u)}Rn.validatePhoneISO3166=cie});var hU=_e(Yi=>{"use strict";c();d();f();var fie=Yi&&Yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.countryPhoneData=Yi.phone=void 0;var die=fie(A4());Yi.countryPhoneData=die.default;var dh=fU();function dU(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 u=(0,dh.findCountryPhoneDataByCountry)(s);if(!u)return o;let l=!1;if(s)["CIV","COG"].includes(u.alpha3)||(i=i.replace(/^0+/,"")),u.alpha3==="RUS"&&i.length===11&&i.match(/^89/)!==null&&(i=i.replace(/^8+/,"")),!a&&u.phone_number_lengths.includes(i.length)&&(i=`${u.country_code}${i}`);else if(a){let{exactCountryPhoneData:h,possibleCountryPhoneData:y}=(0,dh.findCountryPhoneDataByPhoneNumber)(i,r);h?u=h:y&&!n?(u=y,i=u.country_code+i.replace(new RegExp(`^${u.country_code}\\d`),"")):u=null}else u.phone_number_lengths.indexOf(i.length)!==-1&&(i=`1${i}`,l=!0);if(!u)return o;let p=(0,dh.validatePhoneISO3166)(i,u,r,a);return p?{isValid:!0,phoneNumber:`+${i}`,countryIso2:u.alpha2,countryIso3:u.alpha3,countryCode:`+${u.country_code}`}:l&&(u=(0,dh.findCountryPhoneDataByCountry)("CAN"),p=(0,dh.validatePhoneISO3166)(i,u,r,a),p)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:u.alpha2,countryIso3:u.alpha3,countryCode:`+${u.country_code}`}:o}Yi.default=dU;Yi.phone=dU});var vU=_e((d3e,yU)=>{"use strict";c();d();f();var hu=[["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","+...-.-......"]],dy={},gU={},pU=function(e,t,r){t in dy||(dy[t]=[]);var n=r||0;dy[t][n]=e};for(Xi=0;Xi<hu.length;Xi++){if(gn=hu[Xi],hu[Xi]={name:gn[0],iso2:gn[1],dialCode:gn[2],priority:gn[4]||0},gn[3]&&(hu[Xi].format=gn[3]),gn[5])for(hu[Xi].hasAreaCodes=!0,fy=0;fy<gn[5].length;fy++)mU=gn[2]+gn[5][fy],pU(gn[1],mU);gU[hu[Xi].iso2]=Xi,pU(gn[1],gn[2],gn[4])}var gn,mU,fy,Xi;yU.exports={allCountries:hu,iso2Lookup:gU,allCountryCodes:dy}});var Lse={};Vr(Lse,{init:()=>Ase,open:()=>Rse,reset:()=>kse,update:()=>Nse});c();d();f();c();d();f();c();d();f();c();d();f();var N3=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},o=()=>t,a={setState:n,getState:o,subscribe:u=>(r.add(u),()=>r.delete(u)),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},R3=e=>e?N3(e):N3;var H3=ce(ve(),1),q3=ce(j3(),1),{useSyncExternalStoreWithSelector:VB}=q3.default;function jB(e,t=e.getState,r){let n=VB(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,H3.useDebugValue)(n),n}var z3=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"?R3(e):e,r=(n,o)=>jB(t,n,o);return Object.assign(r,t),r},Rh=e=>e?z3(e):z3;c();d();f();var gE=ce(K3(),1);c();d();f();c();d();f();c();d();f();var lE=ce(W3());c();d();f();c();d();f();c();d();f();var Y3="logger/5.7.0";var X3=!1,J3=!1,Lh={debug:1,default:2,info:2,warning:3,error:4,off:5},Q3=Lh.default,sv=null;function zB(){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 eE=zB(),av;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(av||(av={}));var bo;(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"})(bo||(bo={}));var tE="0123456789abcdef",dt=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Lh[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(Q3>Lh[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(J3)return this.makeError("censored error",r,{});r||(r=dt.errors.UNKNOWN_ERROR),n||(n={});let o=[];Object.keys(n).forEach(u=>{let l=n[u];try{if(l instanceof Uint8Array){let p="";for(let h=0;h<l.length;h++)p+=tE[l[h]>>4],p+=tE[l[h]&15];o.push(u+"=Uint8Array(0x"+p+")")}else o.push(u+"="+JSON.stringify(l))}catch(p){o.push(u+"="+JSON.stringify(n[u].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);let i=t,s="";switch(r){case bo.NUMERIC_FAULT:{s="NUMERIC_FAULT";let u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case bo.CALL_EXCEPTION:case bo.INSUFFICIENT_FUNDS:case bo.MISSING_NEW:case bo.NONCE_EXPIRED:case bo.REPLACEMENT_UNDERPRICED:case bo.TRANSACTION_REPLACED:case bo.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(u){a[u]=n[u]}),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"),eE&&this.throwError("platform missing String.prototype.normalize",dt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:eE})}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 sv||(sv=new dt(Y3)),sv}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",dt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),X3){if(!t)return;this.globalLogger().throwError("error censorship permanent",dt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}J3=!!t,X3=!!r}static setLogLevel(t){let r=Lh[t.toLowerCase()];if(r==null){dt.globalLogger().warn("invalid log level - "+t);return}Q3=r}static from(t){return new dt(t)}};dt.errors=bo;dt.levels=av;c();d();f();var rE="bytes/5.7.0";var ea=new dt(rE);function oE(e){return!!e.toHexString}function vu(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return vu(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function iE(e){return wu(e)&&!(e.length%2)||Zc(e)}function nE(e){return typeof e=="number"&&e==e&&e%1===0}function Zc(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!nE(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!nE(r)||r<0||r>=256)return!1}return!0}function kn(e,t){if(t||(t={}),typeof e=="number"){ea.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),vu(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),oE(e)&&(e=e.toHexString()),wu(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ea.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 vu(new Uint8Array(n))}return Zc(e)?vu(new Uint8Array(e)):ea.throwArgumentError("invalid arrayify value","value",e)}function Gc(e){let t=e.map(o=>kn(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),vu(n)}function Fh(e,t){e=kn(e),e.length>t&&ea.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),vu(r)}function wu(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var uv="0123456789abcdef";function bu(e,t){if(t||(t={}),typeof e=="number"){ea.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=uv[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),oE(e))return e.toHexString();if(wu(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ea.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Zc(e)){let r="0x";for(let n=0;n<e.length;n++){let o=e[n];r+=uv[(o&240)>>4]+uv[o&15]}return r}return ea.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var sE="bignumber/5.7.0";var cv=lE.default.BN,fi=new dt(sE),lv={},aE=9007199254740991;var uE=!1,Mr=class{constructor(t,r){t!==lv&&fi.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 bn(ht(this).fromTwos(t))}toTwos(t){return bn(ht(this).toTwos(t))}abs(){return this._hex[0]==="-"?Mr.from(this._hex.substring(1)):this}add(t){return bn(ht(this).add(ht(t)))}sub(t){return bn(ht(this).sub(ht(t)))}div(t){return Mr.from(t).isZero()&&Qn("division-by-zero","div"),bn(ht(this).div(ht(t)))}mul(t){return bn(ht(this).mul(ht(t)))}mod(t){let r=ht(t);return r.isNeg()&&Qn("division-by-zero","mod"),bn(ht(this).umod(r))}pow(t){let r=ht(t);return r.isNeg()&&Qn("negative-power","pow"),bn(ht(this).pow(r))}and(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&Qn("unbound-bitwise-result","and"),bn(ht(this).and(r))}or(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&Qn("unbound-bitwise-result","or"),bn(ht(this).or(r))}xor(t){let r=ht(t);return(this.isNegative()||r.isNeg())&&Qn("unbound-bitwise-result","xor"),bn(ht(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&Qn("negative-width","mask"),bn(ht(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Qn("negative-width","shl"),bn(ht(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Qn("negative-width","shr"),bn(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){Qn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return fi.throwError("this platform does not support BigInt",dt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?uE||(uE=!0,fi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?fi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",dt.errors.UNEXPECTED_ARGUMENT,{}):fi.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 Mr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new Mr(lv,Wc(t)):t.match(/^-?[0-9]+$/)?new Mr(lv,Wc(new cv(t))):fi.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&Qn("underflow","BigNumber.from",t),(t>=aE||t<=-aE)&&Qn("overflow","BigNumber.from",t),Mr.from(String(t));let r=t;if(typeof r=="bigint")return Mr.from(r.toString());if(Zc(r))return Mr.from(bu(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return Mr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(wu(n)||n[0]==="-"&&wu(n.substring(1))))return Mr.from(n)}return fi.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function Wc(e){if(typeof e!="string")return Wc(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&fi.throwArgumentError("invalid hex","value",e),e=Wc(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 bn(e){return Mr.from(Wc(e))}function ht(e){let t=Mr.from(e).toHexString();return t[0]==="-"?new cv("-"+t.substring(3),16):new cv(t.substring(2),16)}function Qn(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),fi.throwError(e,dt.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var cE="strings/5.7.0";var fE=new dt(cE),Yc;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(Yc||(Yc={}));var ta;(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"})(ta||(ta={}));function HB(e,t,r,n,o){return fE.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function dE(e,t,r,n,o){if(e===ta.BAD_PREFIX||e===ta.UNEXPECTED_CONTINUE){let i=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)i++;return i}return e===ta.OVERRUN?r.length-t-1:0}function qB(e,t,r,n,o){return e===ta.OVERLONG?(n.push(o),0):(n.push(65533),dE(e,t,r,n,o))}var KB=Object.freeze({error:HB,ignore:dE,replace:qB});function fv(e,t=Yc.current){t!=Yc.current&&(fE.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 kn(r)}c();d();f();var hE="solidity/5.7.0";var ZB=new RegExp("^bytes([0-9]+)$"),GB=new RegExp("^(u?int)([0-9]*)$"),WB=new RegExp("^(.*)\\[([0-9]*)\\]$"),YB="0000000000000000000000000000000000000000000000000000000000000000",_u=new dt(hE);function pE(e,t,r){switch(e){case"address":return r?Fh(t,32):kn(t);case"string":return fv(t);case"bytes":return kn(t);case"bool":return t=t?"0x01":"0x00",r?Fh(t,32):kn(t)}let n=e.match(GB);if(n){let o=parseInt(n[2]||"256");return(n[2]&&String(o)!==n[2]||o%8!==0||o===0||o>256)&&_u.throwArgumentError("invalid number type","type",e),r&&(o=256),t=Mr.from(t).toTwos(o),Fh(t,o/8)}if(n=e.match(ZB),n){let o=parseInt(n[1]);return(String(o)!==n[1]||o===0||o>32)&&_u.throwArgumentError("invalid bytes type","type",e),kn(t).byteLength!==o&&_u.throwArgumentError(`invalid value for ${e}`,"value",t),r?kn((t+YB).substring(0,66)):t}if(n=e.match(WB),n&&Array.isArray(t)){let o=n[1];parseInt(n[2]||String(t.length))!=t.length&&_u.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(pE(o,a,!0))}),Gc(s)}return _u.throwArgumentError("invalid type","type",e)}function mE(e,t){e.length!=t.length&&_u.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,o){r.push(pE(n,t[o]))}),bu(Gc(r))}function Xc(e){return Array.isArray(e)?XB(e):iE(e)?dv(e):JB(e)}function XB(e){let[t,r]=e.reduce(([n,o],[i,s])=>(n.push(i),o.push(s),[n,o]),[[],[]]);return dv(mE(t,r))}function JB(e){let t=x.from(e);return dv(t)}function dv(e){let t=BigInt(QB(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function QB(e){let t=bu(Gc([kn(e)]));return"0x"+gE.default.keccak_256(kn(t))}var yE=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66};c();d();f();var hv=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(hv||{});c();d();f();c();d();f();var mv=function(e,t){return mv=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])},mv(e,t)};function eV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mv(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 ra(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(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?i(p.value):o(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function na(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(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function tV(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 rV(e,t){if(!e)throw new Error(t)}function nV(e){return e==null?void 0:e.replace(/\/+$/,"")}function oV(e,t){return t===void 0&&(t={}),ra(this,void 0,void 0,function(){var r,n,o,i,s,a,u,l,p,h;return na(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,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(b){return setTimeout(b,i)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function vE(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 SE(){return new Date().getTime()}function wE(){return new Date().toISOString()}function bE(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var Jc=String.fromCharCode,_E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Uh={};function iV(e,t){if(!Uh[e]){Uh[e]={};for(var r=0;r<e.length;r++)Uh[e][e.charAt(r)]=r}return Uh[e][t]}var tf={compressToBase64:function(e){if(e==null)return"";var t=tf._compress(e,6,function(r){return _E.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:tf._decompress(e.length,32,function(t){return iV(_E,e.charAt(t))})},compress:function(e){return tf._compress(e,16,function(t){return Jc(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},o={},i=[],s,a,u="",l="",p="",h=2,y=3,b=2,v=0,C=0,N;for(N=0;N<e.length;N+=1)if(u=e.charAt(N),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,o[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(o,p)){if(p.charCodeAt(0)<256){for(s=0;s<b;s++)v=v<<1,C==t-1?(C=0,i.push(r(v)),v=0):C++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1}else{for(a=1,s=0;s<b;s++)v=v<<1|a,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1}h--,h==0&&(h=Math.pow(2,b),b++),delete o[p]}else for(a=n[p],s=0;s<b;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1;h--,h==0&&(h=Math.pow(2,b),b++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(o,p)){if(p.charCodeAt(0)<256){for(s=0;s<b;s++)v=v<<1,C==t-1?(C=0,i.push(r(v)),v=0):C++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1}else{for(a=1,s=0;s<b;s++)v=v<<1|a,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1}h--,h==0&&(h=Math.pow(2,b),b++),delete o[p]}else for(a=n[p],s=0;s<b;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1;h--,h==0&&(h=Math.pow(2,b),b++)}for(a=2,s=0;s<b;s++)v=v<<1|a&1,C==t-1?(C=0,i.push(r(v)),v=0):C++,a=a>>1;for(;;)if(v=v<<1,C==t-1){i.push(r(v));break}else C++;return i.join("")},decompress:function(e){return e==null?"":e==""?null:tf._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,u=3,l="",p,h,y,b,v,C,N;for(p=0;p<3;p+=1)n[p]=p;for(y=0,v=Math.pow(2,2),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;switch(y){case 0:for(y=0,v=Math.pow(2,8),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;N=Jc(y);break;case 1:for(y=0,v=Math.pow(2,16),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;N=Jc(y);break;case 2:return""}for(n[3]=N,h=N,o.push(N);;){if(i.index>e)return"";for(y=0,v=Math.pow(2,u),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;switch(N=y){case 0:for(y=0,v=Math.pow(2,8),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;n[a++]=Jc(y),N=a-1,s--;break;case 1:for(y=0,v=Math.pow(2,16),C=1;C!=v;)b=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),y|=(b>0?1:0)*C,C<<=1;n[a++]=Jc(y),N=a-1,s--;break;case 2:return o.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[N])l=n[N];else if(N===a)l=h+h.charAt(0);else return null;o.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},sV=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}(),aV=function(){function e(t,r){var n=this,o,i,s,a,u,l;this.flagCallReported={},this._events=new sV,rV(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=nV((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=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&bE(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 u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(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=tV([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=vE(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=vE(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),ra(this,void 0,void 0,function(){var r,n,o,i,s,a,u=this;return na(this,function(l){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(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(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),ra(this,void 0,void 0,function(){return na(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 ra(r,void 0,void 0,function(){var n;return na(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 ra(n,void 0,void 0,function(){var o;return na(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:wE()});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=bE(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(h){return h.message}),s={api_key:this.apiKey,batch:i,sent_at:wE()},a=function(h){t==null||t(h,i),r._events.emit("flush",i)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(SE(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(tf.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var o,i;return ra(this,void 0,void 0,function(){var s=this;return na(this,function(a){return(o=(i=AbortSignal).timeout)!==null&&o!==void 0||(i.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,oV(function(){return s.fetch(t,yt({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return ra(this,void 0,void 0,function(){return na(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}(),CE="2.0.0";function uV(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=yt(yt({},t),{$os:cV(e),$browser:ME(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:dV(e.document.referrer),$device:fV(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:lV(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:CE,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:SE()/1e3}),t}function or(e,t){return e.indexOf(t)>=0}function ME(e,t,r){return t=t||"",r||or(e," OPR/")?or(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":or(e,"IEMobile")||or(e,"WPDesktop")?"Internet Explorer Mobile":or(e,"SamsungBrowser/")?"Samsung Internet":or(e,"Edge")||or(e,"Edg/")?"Microsoft Edge":or(e,"FBIOS")?"Facebook Mobile":or(e,"Chrome")?"Chrome":or(e,"CriOS")?"Chrome iOS":or(e,"UCWEB")||or(e,"UCBrowser")?"UC Browser":or(e,"FxiOS")?"Firefox iOS":or(t,"Apple")?or(e,"Mobile")?"Mobile Safari":"Safari":or(e,"Android")?"Android Mobile":or(e,"Konqueror")?"Konqueror":or(e,"Firefox")?"Firefox":or(e,"MSIE")||or(e,"Trident/")?"Internet Explorer":or(e,"Gecko")?"Mozilla":""}function lV(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=ME(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 cV(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 fV(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 dV(e){var t=e.split("/");return t.length>=3?t[2]:""}var TE={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{TE.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}},xE=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}}},EE=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}},pv=void 0,Qc=void 0,ef=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},hV=function(e,t){if(t){if(!localStorage){var r=xE(t.localStorage);pv=EE(r)?r:void 0}if(!Qc){var n=xE(t.sessionStorage);Qc=EE(n)?n:void 0}}switch(e){case"cookie":return TE||pv||Qc||ef();case"localStorage":return pv||Qc||ef();case"sessionStorage":return Qc||ef();case"memory":return ef();default:return ef()}},PE=function(e){eV(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=hV((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 CE},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return yt(yt({},e.prototype.getCommonEventProperties.call(this)),uV(window))},t}(aV);function pV(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function mV(e,t){try{return await fetch(e,t)}catch(r){throw pV(r)}}var cr=null;typeof globalThis.window<"u"&&(cr=new PE("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),cr.fetch=mV);var $h={version:"0.3.0-alpha.4",package:"idkit-js"},xu=()=>{var e;return(e=cr==null?void 0:cr.getDistinctId())!=null?e:""},OE=e=>{e?cr==null||cr.capture("idkit loaded",$h):cr==null||cr.optOut()},DE=()=>{cr==null||cr.capture("idkit opened",$h)},IE=()=>{cr==null||cr.capture("idkit phone typed",$h)},AE=e=>{cr==null||cr.capture("idkit phone code retried",Se(te({},$h),{channel:e}))};var gV=Rh()((e,t)=>({open:!1,code:"",signal:"",result:null,actionId:"",walletconnectId:"",theme:"light",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",stage:"ENTER_PHONE",copy:{},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>e({stage:"ENTER_PHONE",phoneNumber:"",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,walletconnectId:s,autoClose:a,copy:u,theme:l},p)=>{let h=typeof i=="string"?i:Xc(i).digest;e(y=>({theme:l,signal:o,walletconnectId:s,actionId:i,autoClose:a,stringifiedActionId:h,copy:te(te({},y.copy),u)})),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 DE(),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,phoneNumber:"",code:"",processing:!1,stage:"ENTER_PHONE",result:null,errorState:null})}})),Gt=gV;c();d();f();var oa={title:"World ID",heading:"Verify your phone number",subheading:"We'll take care of the rest!",success:"Your phone number has been verified"};var M$=ce(e9(),1);c();d();f();var S$=ce(ve(),1);c();d();f();c();d();f();var wr=ce(ve()),l9=ce(ba()),xi=ce(D6()),bz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function c9(e,t){return e(t={exports:{}},t.exports),t.exports}var _z=c9(function(e){(function(t){var r=function(N,M,T){if(!u(M)||p(M)||h(M)||y(M)||a(M))return M;var I,U=0,K=0;if(l(M))for(I=[],K=M.length;U<K;U++)I.push(r(N,M[U],T));else for(var J in I={},M)Object.prototype.hasOwnProperty.call(M,J)&&(I[N(J,T)]=r(N,M[J],T));return I},n=function(N){return b(N)?N:(N=N.replace(/[\-_\s]+(.)?/g,function(M,T){return T?T.toUpperCase():""})).substr(0,1).toLowerCase()+N.substr(1)},o=function(N){var M=n(N);return M.substr(0,1).toUpperCase()+M.substr(1)},i=function(N,M){return function(T,I){var U=(I=I||{}).separator||"_",K=I.split||/(?=[A-Z])/;return T.split(K).join(U)}(N,M).toLowerCase()},s=Object.prototype.toString,a=function(N){return typeof N=="function"},u=function(N){return N===Object(N)},l=function(N){return s.call(N)=="[object Array]"},p=function(N){return s.call(N)=="[object Date]"},h=function(N){return s.call(N)=="[object RegExp]"},y=function(N){return s.call(N)=="[object Boolean]"},b=function(N){return(N-=0)==N},v=function(N,M){var T=M&&"process"in M?M.process:M;return typeof T!="function"?N:function(I,U){return T(I,N,U)}},C={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(N,M){return r(v(n,M),N)},decamelizeKeys:function(N,M){return r(v(i,M),N,M)},pascalizeKeys:function(N,M){return r(v(o,M),N)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=C:t.humps=C})(bz)}).decamelize,xz=c9(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}),Ez=function(e){if(Array.isArray(e))return e},Sz=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(u){o=!0,i=u}finally{try{n||a.return==null||a.return()}finally{if(o)throw i}}return r}},u9=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},Cz=function(e,t){if(e){if(typeof e=="string")return u9(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)?u9(e,t):void 0}},Mz=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.`)},Tz=function(e,t){return Ez(e)||Sz(e,t)||Cz(e,t)||Mz()},Pz=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},Oz=function(e,t){if(e==null)return{};var r,n,o=Pz(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},Dz=(0,wr.createContext)(null);function A6(e){var t=e.root,r=e.children;return(0,l9.createPortal)(r,t)}function Iz(e){var t=(0,wr.forwardRef)(function(r,n){var o,i,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=Oz(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(i=(0,wr.useRef)((o=n)&&o.current),(0,wr.useEffect)(function(){o&&(o.current=i.current)},[o]),i),b=(0,wr.useState)(null),v=Tz(b,2),C=v[0],N=v[1],M="node_".concat(s).concat(a);return(0,wr.useEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),l){var T=y.current.shadowRoot;return void N(T)}var I=y.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(I.adoptedStyleSheets=u),N(I)}catch(U){(function(K){var J=K.error,j=K.styleSheets,Z=K.root;switch(J.name){case"NotSupportedError":j.length>0&&(Z.adoptedStyleSheets=j);break;default:throw J}})({error:U,styleSheets:u,root:C})}},[n,y,u]),wr.default.createElement(wr.default.Fragment,null,wr.default.createElement(e.tag,xz({key:M,ref:y},h),(C||l)&&wr.default.createElement(Dz.Provider,{value:C},l?wr.default.createElement("template",{shadowroot:"open"},e.render({root:C,ssr:l,children:p})):wr.default.createElement(A6,{root:C},e.render({root:C,ssr:l,children:p})))))});return t.propTypes={mode:xi.default.oneOf(["open","closed"]),delegatesFocus:xi.default.bool,styleSheets:xi.default.arrayOf(xi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:xi.default.bool,children:xi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}A6.propTypes={root:xi.default.object.isRequired,children:xi.default.node},A6.defaultProps={children:null};var I6=new Map;function Az(){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=_z(o,{separator:"-"}),s="".concat(t,"-").concat(i);return I6.has(s)||I6.set(s,Iz({tag:i,render:r})),I6.get(s)}})}var Nz=Az(),f9=Nz;c();d();f();var Rz=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
24
+ /*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.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}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;top:0}.inset-0,.inset-x-0{left:0;right:0}.top-full{top:100%}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.bottom-0{bottom:0}.z-10{z-index:10}.z-0{z-index:0}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.ml-2\\.5{margin-left:.625rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.mt-1\\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.-mt-6{margin-top:-1.5rem}.mt-4{margin-top:1rem}.mt-3{margin-top:.75rem}.-mt-1{margin-top:-.25rem}.mt-2{margin-top:.5rem}.-mt-5{margin-top:-1.25rem}.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}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-24{height:6rem}.h-20{height:5rem}.h-80{height:20rem}.max-h-\\[var\\(--max-h\\2c _0px\\)\\]{max-height:var(--max-h,0)}.min-h-full{min-height:100%}.w-4{width:1rem}.w-full{width:100%}.w-5{width:1.25rem}.w-10{width:2.5rem}.w-\\[34px\\]{width:34px}.w-8{width:2rem}.w-1\\.5{width:.375rem}.w-1{width:.25rem}.w-24{width:6rem}.w-20{width:5rem}.w-80{width:20rem}.min-w-\\[calc\\(100vw_-_48px\\)\\]{min-width:calc(100vw - 48px)}.max-w-\\[15rem\\]{max-width:15rem}.max-w-xs{max-width:20rem}.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%}.translate-y-1\\/2{--tw-translate-y:50%}.transform,.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))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;user-select:none}.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-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-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-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-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-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-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(3rem*var(--tw-space-y-reverse));margin-top:calc(3rem*(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)))}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-md{border-radius:.375rem}.rounded-2xl{border-radius:1rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-full{border-radius:9999px}.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-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-50\\/50{background-color:rgba(238,242,255,.5)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-\\[\\#fecaca\\]{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-ff6848\\/10{background-color:rgba(255,104,72,.1)}.bg-ff6848{--tw-bg-opacity:1;background-color:rgb(255 104 72/var(--tw-bg-opacity))}.bg-6445dd\\/10{background-color:rgba(100,69,221,.1)}.bg-6445dd{--tw-bg-opacity:1;background-color:rgb(100 69 221/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-3{padding:.75rem}.p-5{padding:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-6{padding-left:1.5rem}.pt-6{padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.text-center{text-align:center}.text-justify{text-align:justify}.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-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-6445dd{--tw-text-opacity:1;color:rgb(100 69 221/var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.caret-transparent{caret-color:transparent}.opacity-100{opacity:1}.opacity-0{opacity:0}.opacity-20{opacity:.2}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-lg,.shadow-sm{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{--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);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-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,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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-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,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-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}.focus-within\\:border-\\[\\#5b52f3\\]:focus-within{--tw-border-opacity:1;border-color:rgb(91 82 243/var(--tw-border-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.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-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-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-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-wait:disabled{cursor:wait}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.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\\:text-9eafc0:disabled{--tw-text-opacity:1;color:rgb(158 175 192/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-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-ece8fb\\/10{background-color:rgba(236,232,251,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-596673{--tw-text-opacity:1;color:rgb(89 102 115/var(--tw-text-opacity))}.dark .dark\\:text-white\\/80{color:hsla(0,0%,100%,.8)}.dark .dark\\:text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.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\\/50:disabled{background-color:rgba(41,52,63,.5)}.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\\: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))}`,d9=()=>m.createElement("style",null,Rz);c();d();f();var Nr=(...e)=>e.filter(Boolean).join(" "),h9=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);c();d();f();var kz=e=>m.createElement("svg",Se(te({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})),Ju=kz;c();d();f();c();d();f();c();d();f();c();d();f();var N6=ce(ve(),1),Sa=ce(ve(),1);c();d();f();var p9=ce(ve(),1),Qu=(0,p9.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var a0=ce(ve(),1),_a=(0,a0.createContext)({});function m9(){return(0,a0.useContext)(_a).visualElement}c();d();f();var Ps=ce(ve(),1);c();d();f();var g9=ce(ve(),1),Zo=(0,g9.createContext)(null);c();d();f();var u0=ce(ve(),1);c();d();f();var ao=typeof document<"u";var xa=ao?u0.useLayoutEffect:u0.useEffect;c();d();f();var y9=ce(ve(),1),l0=(0,y9.createContext)({strict:!1});function v9(e,t,r,n){let o=m9(),i=(0,Ps.useContext)(l0),s=(0,Ps.useContext)(Zo),a=(0,Ps.useContext)(Qu).reducedMotion,u=(0,Ps.useRef)();n=n||i.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return xa(()=>{l&&l.render()}),(0,Ps.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),xa(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var w9=ce(ve(),1);c();d();f();function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function b9(e,t,r){return(0,w9.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ei(r)&&(r.current=n))},[t])}c();d();f();var f0=ce(ve(),1);c();d();f();c();d();f();function Si(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function Os(e){return typeof e=="object"&&typeof e.start=="function"}var Lz=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ea(e){return Os(e.animate)||Lz.some(t=>Si(e[t]))}function c0(e){return Boolean(Ea(e)||e.variants)}function _9(e,t){if(Ea(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Si(r)?r:void 0,animate:Si(n)?n:void 0}}return e.inherit!==!1?t:{}}function E9(e){let{initial:t,animate:r}=_9(e,(0,f0.useContext)(_a));return(0,f0.useMemo)(()=>({initial:t,animate:r}),[x9(t),x9(r)])}function x9(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Ci=e=>({isEnabled:t=>e.some(r=>!!t[r])}),Ds={measureLayout:Ci(["layout","layoutId","drag"]),animation:Ci(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ci(["exit"]),drag:Ci(["drag","dragControls"]),focus:Ci(["whileFocus"]),hover:Ci(["whileHover","onHoverStart","onHoverEnd"]),tap:Ci(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ci(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ci(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function S9(e){for(let t in e)t==="projectionNodeConstructor"?Ds.projectionNodeConstructor=e[t]:Ds[t].Component=e[t]}c();d();f();c();d();f();var C9=ce(ve(),1);function Is(e){let t=(0,C9.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var As={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Fz=1;function M9(){return Is(()=>{if(As.hasEverUpdated)return Fz++})}c();d();f();var T9=ce(ve(),1),el=(0,T9.createContext)({});c();d();f();var P9=ce(ve(),1),d0=class extends P9.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 O9=ce(ve(),1),h0=(0,O9.createContext)({});c();d();f();var D9=Symbol.for("motionComponentSymbol");function I9({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:o,Component:i}){e&&S9(e);function s(u,l){let p=Se(te(te({},(0,Sa.useContext)(Qu)),u),{layoutId:Uz(u)}),{isStatic:h}=p,y=null,b=E9(u),v=h?void 0:M9(),C=o(u,h);if(!h&&ao){b.visualElement=v9(i,C,p,t);let N=(0,Sa.useContext)(l0).strict,M=(0,Sa.useContext)(h0);b.visualElement&&(y=b.visualElement.loadFeatures(p,N,e,v,r||Ds.projectionNodeConstructor,M))}return N6.createElement(d0,{visualElement:b.visualElement,props:p},y,N6.createElement(_a.Provider,{value:b},n(i,u,v,b9(C,b.visualElement,l),C,h,b.visualElement)))}let a=(0,Sa.forwardRef)(s);return a[D9]=i,a}function Uz({layoutId:e}){let t=(0,Sa.useContext)(el).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function A9(e){function t(n,o={}){return I9(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 N9=["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 tl(e){return typeof e!="string"||e.includes("-")?!1:!!(N9.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var e7=ce(ve(),1);c();d();f();var z9=ce(ve(),1);c();d();f();c();d();f();var rl={};function R9(e){Object.assign(rl,e)}c();d();f();var nl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],uo=new Set(nl);function p0(e,{layout:t,layoutId:r}){return uo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!rl[e]||e==="opacity")}c();d();f();var Or=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var $z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bz=(e,t)=>nl.indexOf(e)-nl.indexOf(t);function k9({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},o,i){let s="";t.sort(Bz);for(let a of t)s+=`${$z[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 m0(e){return e.startsWith("--")}c();d();f();var L9=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();c();d();f();var g0=(e,t)=>r=>Math.max(Math.min(r,t),e),Ns=e=>e%1?Number(e.toFixed(5)):e,Rs=/(-)?([\d]*\.?[\d])+/g,y0=/(#[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,F9=/^(#[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 jn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ti=Object.assign(Object.assign({},jn),{transform:g0(0,1)}),ol=Object.assign(Object.assign({},jn),{default:1});c();d();f();var Gf=e=>({test:t=>Mi(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Oo=Gf("deg"),Zr=Gf("%"),$e=Gf("px"),R6=Gf("vh"),k6=Gf("vw"),v0=Object.assign(Object.assign({},Zr),{parse:e=>Zr.parse(e)/100,transform:e=>Zr.transform(e*100)});c();d();f();c();d();f();var il=(e,t)=>r=>Boolean(Mi(r)&&F9.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),w0=(e,t,r)=>n=>{if(!Mi(n))return n;let[o,i,s,a]=n.match(Rs);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var Pi={test:il("hsl","hue"),parse:w0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Zr.transform(Ns(t))+", "+Zr.transform(Ns(r))+", "+Ns(Ti.transform(n))+")"};c();d();f();var Vz=g0(0,255),b0=Object.assign(Object.assign({},jn),{transform:e=>Math.round(Vz(e))}),Do={test:il("rgb","red"),parse:w0("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+b0.transform(e)+", "+b0.transform(t)+", "+b0.transform(r)+", "+Ns(Ti.transform(n))+")"};c();d();f();function jz(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),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 sl={test:il("#"),parse:jz,transform:Do.transform};c();d();f();var sr={test:e=>Do.test(e)||sl.test(e)||Pi.test(e),parse:e=>Do.test(e)?Do.parse(e):Pi.test(e)?Pi.parse(e):sl.parse(e),transform:e=>Mi(e)?e:e.hasOwnProperty("red")?Do.transform(e):Pi.transform(e)};c();d();f();var U9="${c}",$9="${n}";function zz(e){var t,r,n,o;return isNaN(e)&&Mi(e)&&((r=(t=e.match(Rs))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(y0))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function B9(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(y0);n&&(r=n.length,e=e.replace(y0,U9),t.push(...n.map(sr.parse)));let o=e.match(Rs);return o&&(e=e.replace(Rs,$9),t.push(...o.map(jn.parse))),{values:t,numColors:r,tokenised:e}}function V9(e){return B9(e).values}function j9(e){let{values:t,numColors:r,tokenised:n}=B9(e),o=t.length;return i=>{let s=n;for(let a=0;a<o;a++)s=s.replace(a<r?U9:$9,a<r?sr.transform(i[a]):Ns(i[a]));return s}}var Hz=e=>typeof e=="number"?0:e;function qz(e){let t=V9(e);return j9(e)(t.map(Hz))}var Rr={test:zz,parse:V9,createTransformer:j9,getAnimatableNone:qz};c();d();f();var Kz=new Set(["brightness","contrast","saturate","opacity"]);function Zz(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Rs)||[];if(!n)return e;let o=r.replace(n,""),i=Kz.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var Gz=/([a-z-]*)\(.*?\)/g,al=Object.assign(Object.assign({},Rr),{getAnimatableNone:e=>{let t=e.match(Gz);return t?t.map(Zz).join(" "):e}});c();d();f();var L6=Se(te({},jn),{transform:Math.round});var _0={borderWidth:$e,borderTopWidth:$e,borderRightWidth:$e,borderBottomWidth:$e,borderLeftWidth:$e,borderRadius:$e,radius:$e,borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomRightRadius:$e,borderBottomLeftRadius:$e,width:$e,maxWidth:$e,height:$e,maxHeight:$e,size:$e,top:$e,right:$e,bottom:$e,left:$e,padding:$e,paddingTop:$e,paddingRight:$e,paddingBottom:$e,paddingLeft:$e,margin:$e,marginTop:$e,marginRight:$e,marginBottom:$e,marginLeft:$e,rotate:Oo,rotateX:Oo,rotateY:Oo,rotateZ:Oo,scale:ol,scaleX:ol,scaleY:ol,scaleZ:ol,skew:Oo,skewX:Oo,skewY:Oo,distance:$e,translateX:$e,translateY:$e,translateZ:$e,x:$e,y:$e,z:$e,perspective:$e,transformPerspective:$e,opacity:Ti,originX:v0,originY:v0,originZ:$e,zIndex:L6,fillOpacity:Ti,strokeOpacity:Ti,numOctaves:L6};function ul(e,t,r,n){let{style:o,vars:i,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let y in t){let b=t[y];if(m0(y)){i[y]=b;continue}let v=_0[y],C=L9(b,v);if(uo.has(y)){if(l=!0,s[y]=C,a.push(y),!h)continue;b!==(v.default||0)&&(h=!1)}else y.startsWith("origin")?(p=!0,u[y]=C):o[y]=C}if(t.transform||(l||n?o.transform=k9(e,r,h,n):o.transform&&(o.transform="none")),p){let{originX:y="50%",originY:b="50%",originZ:v=0}=u;o.transformOrigin=`${y} ${b} ${v}`}}c();d();f();var ll=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function F6(e,t,r){for(let n in t)!Or(t[n])&&!p0(n,r)&&(e[n]=t[n])}function Wz({transformTemplate:e},t,r){return(0,z9.useMemo)(()=>{let n=ll();return ul(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function Yz(e,t,r){let n=e.style||{},o={};return F6(o,n,e),Object.assign(o,Wz(e,t,r)),e.transformValues?e.transformValues(o):o}function H9(e,t,r){let n={},o=Yz(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 Xz=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],Jz=["whileTap","onTap","onTapStart","onTapCancel"],Qz=["onPan","onPanStart","onPanSessionStart","onPanEnd"],eH=["whileInView","onViewportEnter","onViewportLeave","viewport"],tH=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",...eH,...Jz,...Xz,...Qz]);function Wf(e){return tH.has(e)}var Z9=e=>!Wf(e);function aH(e){!e||(Z9=t=>t.startsWith("on")?!Wf(t):e(t))}try{aH(K9().default)}catch(e){}function G9(e,t,r){let n={};for(let o in e)(Z9(o)||r===!0&&Wf(o)||!t&&!Wf(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}c();d();f();var J9=ce(ve(),1);c();d();f();c();d();f();function W9(e,t,r){return typeof e=="string"?e:$e.transform(t+r*e)}function Y9(e,t,r){let n=W9(t,e.x,e.width),o=W9(r,e.y,e.height);return`${n} ${o}`}c();d();f();var uH={offset:"stroke-dashoffset",array:"stroke-dasharray"},lH={offset:"strokeDashoffset",array:"strokeDasharray"};function X9(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?uH:lH;e[i.offset]=$e.transform(-n);let s=$e.transform(t),a=$e.transform(r);e[i.array]=`${s} ${a}`}function cl(e,y,l,p,h){var b=y,{attrX:t,attrY:r,originX:n,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:a=0}=b,u=Te(b,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(ul(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:C,dimensions:N}=e;v.transform&&(N&&(C.transform=v.transform),delete v.transform),N&&(n!==void 0||o!==void 0||C.transform)&&(C.transformOrigin=Y9(N,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&&X9(v,i,s,a,!1)}c();d();f();var x0=()=>Se(te({},ll()),{attrs:{}});c();d();f();var fl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Q9(e,t,r,n){let o=(0,J9.useMemo)(()=>{let i=x0();return cl(i,t,{enableHardwareAcceleration:!1},fl(n),e.transformTemplate),Se(te({},i.attrs),{style:te({},i.style)})},[t]);if(e.style){let i={};F6(i,e.style,e),o.style=te(te({},i),o.style)}return o}function t7(e=!1){return(r,n,o,i,{latestValues:s},a)=>{let l=(tl(r)?Q9:H9)(n,s,a,r),p=G9(n,typeof r=="string",e),h=Se(te(te({},p),l),{ref:i});return o&&(h["data-projection-id"]=o),(0,e7.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var E0=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function S0(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 C0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function M0(e,t,r,n){S0(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(C0.has(o)?o:E0(o),t.attrs[o])}c();d();f();c();d();f();function dl(e){let{style:t}=e,r={};for(let n in t)(Or(t[n])||p0(n,e))&&(r[n]=t[n]);return r}function T0(e){let t=dl(e);for(let r in e)if(Or(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var B6=ce(ve(),1);c();d();f();function hl(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 Oi=e=>Array.isArray(e);var r7=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),P0=e=>Oi(e)?e[e.length-1]||0:e;function pl(e){let t=Or(e)?e.get():e;return r7(t)?t.toValue():t}function cH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let s={latestValues:fH(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var O0=e=>(t,r)=>{let n=(0,B6.useContext)(_a),o=(0,B6.useContext)(Zo),i=()=>cH(e,t,n,o);return r?i():Is(i)};function fH(e,t,r,n){let o={},i=n(e);for(let y in i)o[y]=pl(i[y]);let{initial:s,animate:a}=e,u=Ea(e),l=c0(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!Os(h)&&(Array.isArray(h)?h:[h]).forEach(b=>{let v=hl(e,b);if(!v)return;let T=v,{transitionEnd:C,transition:N}=T,M=Te(T,["transitionEnd","transition"]);for(let I in M){let U=M[I];if(Array.isArray(U)){let K=p?U.length-1:0;U=U[K]}U!==null&&(o[I]=U)}for(let I in C)o[I]=C[I]}),o}var n7={useVisualState:O0({scrapeMotionValuesFromProps:T0,createRenderState:x0,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}}cl(r,n,{enableHardwareAcceleration:!1},fl(t.tagName),e.transformTemplate),M0(t,r)}})};c();d();f();var o7={useVisualState:O0({scrapeMotionValuesFromProps:dl,createRenderState:ll})};function i7(e,{forwardMotionProps:t=!1},r,n,o){let i=tl(e)?n7:o7;return Se(te({},i),{preloadedFeatures:r,useRender:t7(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 s7=ce(ve(),1);function Ca(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Yf(e,t,r,n){(0,s7.useEffect)(()=>{let o=e.current;if(r&&o)return Ca(o,t,r,n)},[e,t,r,n])}function a7({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(wt.Focus,!0)},o=()=>{r&&r.setActive(wt.Focus,!1)};Yf(t,"focus",e?n:void 0),Yf(t,"blur",e?o:void 0)}c();d();f();c();d();f();function D0(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function I0(e){return!!e.touches}c();d();f();c();d();f();function dH(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var hH={pageX:0,pageY:0};function pH(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||hH;return{x:n[t+"X"],y:n[t+"Y"]}}function mH(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Xf(e,t="page"){return{point:I0(e)?pH(e,t):mH(e,t)}}var V6=(e,t=!1)=>{let r=n=>e(n,Xf(n));return t?dH(r):r};c();d();f();var u7=()=>ao&&window.onpointerdown===null,l7=()=>ao&&window.ontouchstart===null,c7=()=>ao&&window.onmousedown===null;var gH={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},yH={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function f7(e){return u7()?e:l7()?yH[e]:c7()?gH[e]:e}function Di(e,t,r,n){return Ca(e,f7(t),V6(r,t==="pointerdown"),n)}function Ma(e,t,r,n){return Yf(e,f7(t),r&&V6(r,t==="pointerdown"),n)}c();d();f();function p7(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var d7=p7("dragHorizontal"),h7=p7("dragVertical");function j6(e){let t=!1;if(e==="y")t=h7();else if(e==="x")t=d7();else{let r=d7(),n=h7();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function A0(){let e=j6(!0);return e?(e(),!1):!0}function m7(e,t,r){return(n,o)=>{!D0(n)||A0()||(e.animationState&&e.animationState.setActive(wt.Hover,t),r&&r(n,o))}}function g7({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Ma(n,"pointerenter",e||r?m7(n,!0,e):void 0,{passive:!e}),Ma(n,"pointerleave",t||r?m7(n,!1,t):void 0,{passive:!t})}c();d();f();var H6=ce(ve(),1);c();d();f();var z6=(e,t)=>t?e===t?!0:z6(e,t.parentElement):!1;c();d();f();var y7=ce(ve(),1);function ml(e){return(0,y7.useEffect)(()=>()=>e(),[])}c();d();f();var vH=(e,t)=>r=>t(e(r)),ks=(...e)=>e.reduce(vH);function v7({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:o}){let i=e||t||r||n,s=(0,H6.useRef)(!1),a=(0,H6.useRef)(null),u={passive:!(t||e||r||b)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,o.animationState&&o.animationState.setActive(wt.Tap,!1),!A0()}function h(v,C){!p()||(z6(o.current,v.target)?e&&e(v,C):r&&r(v,C))}function y(v,C){!p()||r&&r(v,C)}function b(v,C){l(),!s.current&&(s.current=!0,a.current=ks(Di(window,"pointerup",h,u),Di(window,"pointercancel",y,u)),o.animationState&&o.animationState.setActive(wt.Tap,!0),t&&t(v,C))}Ma(o,"pointerdown",i?b:void 0,u),ml(l)}c();d();f();c();d();f();var wH="production",gl=typeof process>"u"||process.env===void 0?wH:"production";var Jf=ce(ve(),1);c();d();f();var w7=new Set;function N0(e,t,r){e||w7.has(t)||(console.warn(t),r&&console.warn(r),w7.add(t))}c();d();f();var K6=new WeakMap,q6=new WeakMap,bH=e=>{let t=K6.get(e.target);t&&t(e)},_H=e=>{e.forEach(bH)};function xH(r){var n=r,{root:e}=n,t=Te(n,["root"]);let o=e||document;q6.has(o)||q6.set(o,{});let i=q6.get(o),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(_H,te({root:e},t))),i[s]}function b7(e,t,r){let n=xH(t);return K6.set(e,r),n.observe(e),()=>{K6.delete(e),n.unobserve(e)}}function _7({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:o={}}){let i=(0,Jf.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?CH:SH)(s,i.current,e,o)}var EH={some:0,all:1};function SH(e,t,r,{root:n,margin:o,amount:i="some",once:s}){(0,Jf.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:o,threshold:typeof i=="number"?i:EH[i]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(wt.InView,p);let h=r.getProps(),y=p?h.onViewportEnter:h.onViewportLeave;y&&y(l)};return b7(r.current,a,u)},[e,n,o,i])}function CH(e,t,r,{fallback:n=!0}){(0,Jf.useEffect)(()=>{!e||!n||(gl!=="production"&&N0(!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 Io=e=>t=>(e(t),null);var x7={inView:Io(_7),tap:Io(v7),focus:Io(a7),hover:Io(g7)};c();d();f();var nd=ce(ve(),1);c();d();f();var yl=ce(ve(),1);function R0(){let e=(0,yl.useContext)(Zo);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,yl.useId)();return(0,yl.useEffect)(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}c();d();f();c();d();f();function Z6(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 vl=e=>e*1e3;c();d();f();c();d();f();var Ta=function(){},kr=function(){};c();d();f();c();d();f();var wl=e=>e;var E7=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,MH=1e-7,TH=12;function PH(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=E7(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>MH&&++a<TH);return s}function S7(e,t,r,n){if(e===t&&r===n)return wl;let o=i=>PH(i,0,1,e,r);return i=>i===0||i===1?i:E7(o(i),t,n)}c();d();f();c();d();f();var bl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var _l=e=>t=>1-e(1-t);var k0=e=>e*e,C7=_l(k0),L0=bl(k0);c();d();f();var G6=e=>1-Math.sin(Math.acos(e)),Qf=_l(G6),M7=bl(Qf);c();d();f();var W6=(e=1.525)=>t=>t*t*((e+1)*t-e),F0=W6(),T7=_l(F0),P7=bl(F0);c();d();f();var OH=e=>{let t=W6(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},O7=OH();var D7={linear:wl,easeIn:k0,easeInOut:L0,easeOut:C7,circIn:G6,circInOut:M7,circOut:Qf,backIn:F0,backInOut:P7,backOut:T7,anticipate:O7},Y6=e=>{if(Array.isArray(e)){kr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return S7(t,r,n,o)}else if(typeof e=="string")return kr(D7[e]!==void 0,`Invalid easing type '${e}'`),D7[e];return e},I7=e=>Array.isArray(e)&&typeof e[0]!="number";c();d();f();var X6=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Rr.test(t)&&!t.startsWith("url("));c();d();f();var Pa=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),U0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),J6=()=>({type:"keyframes",ease:"linear",duration:.3}),DH=e=>({type:"keyframes",duration:.8,values:e}),A7={x:Pa,y:Pa,z:Pa,rotate:Pa,rotateX:Pa,rotateY:Pa,rotateZ:Pa,scaleX:U0,scaleY:U0,scale:U0,opacity:J6,backgroundColor:J6,color:J6,default:U0},N7=(e,t)=>{let r;return Oi(t)?r=DH:r=A7[e]||A7.default,te({to:t},r(t))};c();d();f();c();d();f();var IH=Se(te({},_0),{color:sr,backgroundColor:sr,outlineColor:sr,fill:sr,stroke:sr,borderColor:sr,borderTopColor:sr,borderRightColor:sr,borderBottomColor:sr,borderLeftColor:sr,filter:al,WebkitFilter:al}),xl=e=>IH[e];function ed(e,t){var r;let n=xl(e);return n!==al&&(n=Rr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();var R7={current:!1};c();d();f();c();d();f();c();d();f();var Q6=16.666666666666668,AH=typeof performance<"u"?()=>performance.now():()=>Date.now(),ew=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(AH()),Q6);c();d();f();function k7(e){let t=[],r=[],n=0,o=!1,i=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&o,y=h?t:r;return l&&s.add(u),y.indexOf(u)===-1&&(y.push(u),h&&o&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}o=!1,i&&(i=!1,a.process(u))}};return a}var NH=40,tw=!0,td=!1,rw=!1,El={delta:0,timestamp:0},rd=["read","update","preRender","render","postRender"],$0=rd.reduce((e,t)=>(e[t]=k7(()=>td=!0),e),{}),RH=rd.reduce((e,t)=>{let r=$0[t];return e[t]=(n,o=!1,i=!1)=>(td||LH(),r.schedule(n,o,i)),e},{}),zn=rd.reduce((e,t)=>(e[t]=$0[t].cancel,e),{}),B0=rd.reduce((e,t)=>(e[t]=()=>$0[t].process(El),e),{}),kH=e=>$0[e].process(El),L7=e=>{td=!1,El.delta=tw?Q6:Math.max(Math.min(e-El.timestamp,NH),1),El.timestamp=e,rw=!0,rd.forEach(kH),rw=!1,td&&(tw=!1,ew(L7))},LH=()=>{td=!0,tw=!0,rw||ew(L7)},Oa=()=>El,dr=RH;function V0(e,t){let r=performance.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(zn.read(n),e(i-t))};return dr.read(n,!0),()=>zn.read(n)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Da=(e,t,r)=>Math.min(Math.max(r,e),t);c();d();f();var bt=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function nw(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 F7({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,u=2*r-a;o=nw(u,a,e+1/3),i=nw(u,a,e),s=nw(u,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}var ow=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},FH=[sl,Do,Pi],UH=e=>FH.find(t=>t.test(e));function U7(e){let t=UH(e);kr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Pi&&(r=F7(r)),r}var j0=(e,t)=>{let r=U7(e),n=U7(t),o=te({},r);return i=>(o.red=ow(r.red,n.red,i),o.green=ow(r.green,n.green,i),o.blue=ow(r.blue,n.blue,i),o.alpha=bt(r.alpha,n.alpha,i),Do.transform(o))};c();d();f();function B7(e,t){return typeof e=="number"?r=>bt(e,t,r):sr.test(e)?j0(e,t):sw(e,t)}var iw=(e,t)=>{let r=[...e],n=r.length,o=e.map((i,s)=>B7(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}},V7=(e,t)=>{let r=te(te({},e),t),n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=B7(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}};function $7(e){let t=Rr.parse(e),r=t.length,n=0,o=0;for(let i=0;i<r;i++)n||typeof t[i]=="number"?n++:o++;return{parsed:t,numNumbers:n,numColors:o}}var sw=(e,t)=>{let r=Rr.createTransformer(t),n=$7(e),o=$7(t);return n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?ks(iw(n.parsed,o.parsed),r):(Ta(!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 Ia=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var j7=(e,t)=>r=>bt(e,t,r);function $H(e){return typeof e=="number"?j7:typeof e=="string"?sr.test(e)?j0:sw:Array.isArray(e)?iw:typeof e=="object"?V7:j7}function BH(e,t,r){let n=[],o=r||$H(e[0]),i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=ks(u,a)}n.push(a)}return n}function z0(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;kr(i===t.length,"Both input and output ranges must be the same length"),kr(!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=BH(t,n,o),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=Ia(e[p],e[p+1],l);return s[p](h)};return r?l=>u(Da(e[0],e[i-1],l)):u}function VH(e,t){return e.map(()=>t||L0).splice(0,e.length-1)}function jH(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function zH(e,t){return e.map(r=>r*t)}function z7({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){let i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],a=zH(n&&n.length===s.length?n:jH(s),o);function u(){return z0(a,s,{ease:Array.isArray(r)?r:VH(s,r)})}let l=u();return{next:p=>(i.value=l(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),l=u()}}}c();d();f();c();d();f();var aw=.001,HH=.01,H7=10,qH=.05,KH=1;function q7({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Ta(e<=H7*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=Da(qH,KH,s),e=Da(HH,H7,e/1e3),s<1?(o=l=>{let p=l*s,h=p*e,y=p-r,b=H0(l,s),v=Math.exp(-h);return aw-y/b*v},i=l=>{let h=l*s*e,y=h*r+r,b=Math.pow(s,2)*Math.pow(l,2)*e,v=Math.exp(-h),C=H0(Math.pow(l,2),s);return(-o(l)+aw>0?-1:1)*((y-b)*v)/C}):(o=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-aw+p*h},i=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=GH(o,i,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var ZH=12;function GH(e,t,r){let n=r;for(let o=1;o<ZH;o++)n=n-e(n)/t(n);return n}function H0(e,t){return e*Math.sqrt(1-t*t)}var WH=["duration","bounce"],YH=["stiffness","damping","mass"];function K7(e,t){return t.some(r=>e[r]!==void 0)}function XH(e){let t=te({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!K7(e,YH)&&K7(e,WH)){let r=q7(e);t=Se(te(te({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function uw(i){var s=i,{from:e=0,to:t=1,restSpeed:r=2,restDelta:n=.01}=s,o=Te(s,["from","to","restSpeed","restDelta"]);let a={done:!1,value:e},{stiffness:u,damping:l,mass:p,velocity:h,duration:y,isResolvedFromDuration:b}=XH(o),v=Z7,C=Z7;function N(){let M=h?-(h/1e3):0,T=t-e,I=l/(2*Math.sqrt(u*p)),U=Math.sqrt(u/p)/1e3;if(n===void 0&&(n=Math.min(Math.abs(t-e)/100,.4)),I<1){let K=H0(U,I);v=J=>{let j=Math.exp(-I*U*J);return t-j*((M+I*U*T)/K*Math.sin(K*J)+T*Math.cos(K*J))},C=J=>{let j=Math.exp(-I*U*J);return I*U*j*(Math.sin(K*J)*(M+I*U*T)/K+T*Math.cos(K*J))-j*(Math.cos(K*J)*(M+I*U*T)-K*T*Math.sin(K*J))}}else if(I===1)v=K=>t-Math.exp(-U*K)*(T+(M+U*T)*K);else{let K=U*Math.sqrt(I*I-1);v=J=>{let j=Math.exp(-I*U*J),Z=Math.min(K*J,300);return t-j*((M+I*U*T)*Math.sinh(Z)+K*T*Math.cosh(Z))/K}}}return N(),{next:M=>{let T=v(M);if(b)a.done=M>=y;else{let I=C(M)*1e3,U=Math.abs(I)<=r,K=Math.abs(t-T)<=n;a.done=U&&K}return a.value=a.done?t:T,a},flipTarget:()=>{h=-h,[e,t]=[t,e],N()}}}uw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var Z7=e=>0;c();d();f();function G7({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){let s={done:!1,value:t},a=r*e,u=t+a,l=i===void 0?u:i(u);return l!==u&&(a=l-t),{next:p=>{let h=-a*Math.exp(-p/n);return s.done=!(h>o||h<-o),s.value=s.done?l:l+h,s},flipTarget:()=>{}}}var JH={decay:G7,keyframes:z7,spring:uw};function W7(e,t,r=0){return e-t-r}function QH(e,t=0,r=0,n=!0){return n?W7(t+-e,t,r):t-(e-t)+r}function eq(e,t,r,n){return n?e>=t+r:e<=-r}var tq=e=>{let t=({delta:r})=>e(r);return{start:()=>dr.update(t,!0),stop:()=>zn.update(t)}};function q0(v){var C=v,{from:e,autoplay:t=!0,driver:r=tq,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:s=0,onPlay:a,onStop:u,onComplete:l,onRepeat:p,onUpdate:h,type:y="keyframes"}=C,b=Te(C,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var N,M;let{to:T}=b,I,U=0,K=b.duration,J,j=!1,Z=!0,le,me=JH[Array.isArray(T)?"keyframes":y];!((M=(N=me).needsInterpolation)===null||M===void 0)&&M.call(N,e,T)&&(le=z0([0,100],[e,T],{clamp:!1}),e=0,T=100);let fe=me(Se(te({},b),{from:e,to:T}));function W(){U++,i==="reverse"?(Z=U%2===0,n=QH(n,K,s,Z)):(n=W7(n,K,s),i==="mirror"&&fe.flipTarget()),j=!1,p&&p()}function A(){I.stop(),l&&l()}function g(E){if(Z||(E=-E),n+=E,!j){let D=fe.next(Math.max(0,n));J=D.value,le&&(J=le(J)),j=Z?D.done:n<=0}h==null||h(J),j&&(U===0&&(K!=null||(K=n)),U<o?eq(n,K,s,Z)&&W():A())}function w(){a==null||a(),I=r(g),I.start()}return t&&w(),{stop:()=>{u==null||u(),I.stop()}}}c();d();f();function K0(e,t){return t?e*(1e3/t):0}function Y7({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:y,onStop:b}){let v;function C(I){return r!==void 0&&I<r||n!==void 0&&I>n}function N(I){return r===void 0?n:n===void 0||Math.abs(r-I)<Math.abs(n-I)?r:n}function M(I){v==null||v.stop(),v=q0(Se(te({},I),{driver:p,onUpdate:U=>{var K;h==null||h(U),(K=I.onUpdate)===null||K===void 0||K.call(I,U)},onComplete:y,onStop:b}))}function T(I){M(te({type:"spring",stiffness:s,damping:a,restDelta:u},I))}if(C(e))T({from:e,velocity:t,to:N(e)});else{let I=o*t+e;typeof l<"u"&&(I=l(I));let U=N(I),K=U===r?-1:1,J,j,Z=le=>{J=j,j=le,t=K0(le-J,Oa().delta),(K===1&&le>U||K===-1&&le<U)&&T({from:le,to:U,velocity:t})};M({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:u,modifyTarget:l,onUpdate:C(I)?Z:void 0})}return{stop:()=>v==null?void 0:v.stop()}}function rq(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:u}=h,l=Te(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}var X7=!1;function nq(s){var a=s,{ease:e,times:t,yoyo:r,flip:n,loop:o}=a,i=Te(a,["ease","times","yoyo","flip","loop"]);let u=te({},i);return t&&(u.offset=t),i.duration&&(u.duration=vl(i.duration)),i.repeatDelay&&(u.repeatDelay=vl(i.repeatDelay)),e&&(u.ease=I7(e)?e.map(Y6):Y6(e)),i.type==="tween"&&(u.type="keyframes"),(r||o||n)&&(Ta(!X7,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),X7=!0,r?u.repeatType="reverse":o?u.repeatType="loop":n&&(u.repeatType="mirror"),u.repeat=o||r||n||i.repeat),i.type!=="spring"&&(u.type="keyframes"),u}function oq(e,t){var r,n;return(n=(r=(Z0(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function iq(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function sq(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),iq(t),rq(e)||(e=te(te({},e),N7(r,t.to))),te(te({},t),nq(e))}function aq(e,t,r,n,o){let i=Z0(n,e)||{},s=i.from!==void 0?i.from:t.get(),a=X6(e,r);s==="none"&&a&&typeof r=="string"?s=ed(e,r):J7(s)&&typeof r=="string"?s=Q7(r):!Array.isArray(r)&&J7(r)&&typeof s=="string"&&(r=Q7(s));let u=X6(e,s);Ta(u===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`);function l(){let h={from:s,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:y=>t.set(y)};return i.type==="inertia"||i.type==="decay"?Y7(te(te({},h),i)):q0(Se(te({},sq(i,h,e)),{onUpdate:y=>{h.onUpdate(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}}))}function p(){let h=P0(r);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!u||!a||i.type===!1?p:l}function J7(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Q7(e){return typeof e=="number"?0:ed("",e)}function Z0(e,t){return e[t]||e.default||e}function Sl(e,t,r,n={}){return R7.current&&(n={type:!1}),t.start(o=>{let i,s=aq(e,t,r,n,o),a=oq(n,e),u=()=>i=s(),l;return a?l=V0(u,vl(a)):u(),()=>{l&&l(),i&&i.stop()}})}c();d();f();c();d();f();var eC=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var tC=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();c();d();f();function Cl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ml(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Go=class{constructor(){this.subscriptions=[]}add(t){return Cl(this.subscriptions,t),()=>Ml(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}};var uq=e=>!isNaN(parseFloat(e)),lw=class{constructor(t){this.version="7.6.19",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Go,this.velocityUpdateSubscribers=new Go,this.renderSubscribers=new Go,this.canTrackVelocity=!1,this.updateAndNotify=(r,n=!0)=>{this.prev=this.current,this.current=r;let{delta:o,timestamp:i}=Oa();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,dr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),n&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>dr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=uq(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?K0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}};function Wo(e){return new lw(e)}c();d();f();c();d();f();c();d();f();var G0=e=>t=>t.test(e);c();d();f();var rC={test:e=>e==="auto",parse:e=>e};var cw=[jn,$e,Zr,Oo,k6,R6,rC],Tl=e=>cw.find(G0(e));var lq=[...cw,sr,Rr],nC=e=>lq.find(G0(e));c();d();f();function cq(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function fq(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Aa(e,t,r){let n=e.getProps();return hl(n,t,r!==void 0?r:n.custom,cq(e),fq(e))}function dq(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Wo(r))}function oC(e,t){let r=Aa(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:o={}}=s,i=Te(s,["transitionEnd","transition"]);i=te(te({},i),n);for(let a in i){let u=P0(i[a]);dq(e,a,u)}}function iC(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 u=i[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(o=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&o!==void 0?o:t[u]),p!=null&&(typeof p=="string"&&(eC(p)||tC(p))?p=parseFloat(p):!nC(p)&&Rr.test(l)&&(p=ed(u,l)),e.addValue(u,Wo(p)),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function hq(e,t){return t?(t[e]||t.default||t).from:void 0}function sC(e,t,r){var n;let o={};for(let i in e){let s=hq(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 Na(e){return Boolean(Or(e)&&e.add)}function aC(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>fw(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=fw(e,t,r);else{let o=typeof t=="function"?Aa(e,t,r.custom):t;n=uC(e,o,r)}return n.then(()=>e.notify("AnimationComplete",t))}function fw(e,t,r={}){var n;let o=Aa(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let s=o?()=>uC(e,o,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:y}=i;return pq(e,t,p+l,h,y,r)}:()=>Promise.resolve(),{when:u}=i;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function uC(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,u=Te(y,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(let b in u){let v=e.getValue(b),C=u[b];if(!v||C===void 0||h&&gq(h,b))continue;let N=te({delay:r},s);e.shouldReduceMotion&&uo.has(b)&&(N=Se(te({},N),{type:!1,delay:0}));let M=Sl(b,v,C,N);Na(l)&&(l.add(b),M=M.then(()=>l.remove(b))),p.push(M)}return Promise.all(p).then(()=>{a&&oC(e,a)})}function pq(e,t,r=0,n=0,o=1,i){let s=[],a=(e.variantChildren.size-1)*n,u=o===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(mq).forEach((l,p)=>{s.push(fw(l,t,Se(te({},i),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function mq(e,t){return e.sortNodePosition(t)}function gq({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var W0=[wt.Animate,wt.InView,wt.Focus,wt.Hover,wt.Tap,wt.Drag,wt.Exit],yq=[...W0].reverse(),vq=W0.length;function wq(e){return t=>Promise.all(t.map(({animation:r,options:n})=>aC(e,r,n)))}function lC(e){let t=wq(e),r=_q(),n=!0,o=(u,l)=>{let p=Aa(e,l);if(p){let h=p,{transition:y,transitionEnd:b}=h,v=Te(h,["transition","transitionEnd"]);u=te(te(te({},u),v),b)}return u};function i(u){t=u(e)}function s(u,l){var p;let h=e.getProps(),y=e.getVariantContext(!0)||{},b=[],v=new Set,C={},N=1/0;for(let T=0;T<vq;T++){let I=yq[T],U=r[I],K=(p=h[I])!==null&&p!==void 0?p:y[I],J=Si(K),j=I===l?U.isActive:null;j===!1&&(N=T);let Z=K===y[I]&&K!==h[I]&&J;if(Z&&n&&e.manuallyAnimateOnMount&&(Z=!1),U.protectedKeys=te({},C),!U.isActive&&j===null||!K&&!U.prevProp||Os(K)||typeof K=="boolean")continue;let le=bq(U.prevProp,K),me=le||I===l&&U.isActive&&!Z&&J||T>N&&J,fe=Array.isArray(K)?K:[K],W=fe.reduce(o,{});j===!1&&(W={});let{prevResolvedValues:A={}}=U,g=te(te({},A),W),w=E=>{me=!0,v.delete(E),U.needsAnimating[E]=!0};for(let E in g){let D=W[E],k=A[E];C.hasOwnProperty(E)||(D!==k?Oi(D)&&Oi(k)?!Z6(D,k)||le?w(E):U.protectedKeys[E]=!0:D!==void 0?w(E):v.add(E):D!==void 0&&v.has(E)?w(E):U.protectedKeys[E]=!0)}U.prevProp=K,U.prevResolvedValues=W,U.isActive&&(C=te(te({},C),W)),n&&e.blockInitialAnimation&&(me=!1),me&&!Z&&b.push(...fe.map(E=>({animation:E,options:te({type:I},u)})))}if(v.size){let T={};v.forEach(I=>{let U=e.getBaseTarget(I);U!==void 0&&(T[I]=U)}),b.push({animation:T})}let M=Boolean(b.length);return n&&h.initial===!1&&!e.manuallyAnimateOnMount&&(M=!1),n=!1,M?t(b):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(b=>{var v;return(v=b.animationState)===null||v===void 0?void 0:v.setActive(u,l)}),r[u].isActive=l;let y=s(p,u);for(let b in r)r[b].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function bq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Z6(t,e):!1}function Ra(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _q(){return{[wt.Animate]:Ra(!0),[wt.InView]:Ra(),[wt.Hover]:Ra(),[wt.Tap]:Ra(),[wt.Drag]:Ra(),[wt.Focus]:Ra(),[wt.Exit]:Ra()}}var cC={animation:Io(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=lC(e)),Os(t)&&(0,nd.useEffect)(()=>t.subscribe(e),[t])}),exit:Io(e=>{let{custom:t,visualElement:r}=e,[n,o]=R0(),i=(0,nd.useContext)(Zo);(0,nd.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 ww=ce(ve(),1);c();d();f();c();d();f();c();d();f();var fC=(e,t)=>Math.abs(e-t);function dC(e,t){let r=fC(e.x,t.x),n=fC(e.y,t.y);return Math.sqrt(r**2+n**2)}var Pl=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=hw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=dC(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:y}=l,{timestamp:b}=Oa();this.history.push(Se(te({},y),{timestamp:b}));let{onStart:v,onMove:C}=this.handlers;p||(v&&v(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=dw(p,this.transformPagePoint),D0(l)&&l.buttons===0){this.handlePointerUp(l,p);return}dr.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:y}=this.handlers,b=hw(dw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,b),y&&y(l,b)},I0(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let o=Xf(t),i=dw(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Oa();this.history=[Se(te({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,hw(i,this.history)),this.removeListeners=ks(Di(window,"pointermove",this.handlePointerMove),Di(window,"pointerup",this.handlePointerUp),Di(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),zn.update(this.updatePoint)}};function dw(e,t){return t?{point:t(e.point)}:e}function hC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hw({point:e},t){return{point:e,delta:hC(e,pC(t)),offset:hC(e,xq(t)),velocity:Eq(t,.1)}}function xq(e){return e[0]}function pC(e){return e[e.length-1]}function Eq(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=pC(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>vl(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 Lr(e){return e.max-e.min}function Y0(e,t=0,r=.01){return Math.abs(e-t)<=r}function mC(e,t,r,n=.5){e.origin=n,e.originPoint=bt(t.min,t.max,e.origin),e.scale=Lr(r)/Lr(t),(Y0(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=bt(r.min,r.max,e.origin)-e.originPoint,(Y0(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ol(e,t,r,n){mC(e.x,t.x,r.x,n==null?void 0:n.originX),mC(e.y,t.y,r.y,n==null?void 0:n.originY)}function gC(e,t,r){e.min=r.min+t.min,e.max=e.min+Lr(t)}function vC(e,t,r){gC(e.x,t.x,r.x),gC(e.y,t.y,r.y)}function yC(e,t,r){e.min=t.min-r.min,e.max=e.min+Lr(t)}function Dl(e,t,r){yC(e.x,t.x,r.x),yC(e.y,t.y,r.y)}function EC(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 wC(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 SC(e,{top:t,left:r,bottom:n,right:o}){return{x:wC(e.x,r,o),y:wC(e.y,t,n)}}function bC(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 CC(e,t){return{x:bC(e.x,t.x),y:bC(e.y,t.y)}}function MC(e,t){let r=.5,n=Lr(e),o=Lr(t);return o>n?r=Ia(t.min,t.max-n,e.min):n>o&&(r=Ia(e.min,e.max-o,t.min)),Da(0,1,r)}function TC(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 X0=.35;function PC(e=X0){return e===!1?e=0:e===!0&&(e=X0),{x:_C(e,"left","right"),y:_C(e,"top","bottom")}}function _C(e,t,r){return{min:xC(e,t),max:xC(e,r)}}function xC(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}c();d();f();var OC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Il=()=>({x:OC(),y:OC()}),DC=()=>({min:0,max:0}),Jt=()=>({x:DC(),y:DC()});c();d();f();function lo(e){return[e("x"),e("y")]}c();d();f();c();d();f();function J0({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function IC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function AC(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 pw(e){return e===void 0||e===1}function Q0({scale:e,scaleX:t,scaleY:r}){return!pw(e)||!pw(t)||!pw(r)}function Ii(e){return Q0(e)||mw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function mw(e){return NC(e.x)||NC(e.y)}function NC(e){return e&&e!=="0%"}function od(e,t,r){let n=e-r,o=t*n;return r+o}function RC(e,t,r,n,o){return o!==void 0&&(e=od(e,o,n)),od(e,r,n)+t}function gw(e,t=0,r=1,n,o){e.min=RC(e.min,t,r,n,o),e.max=RC(e.max,t,r,n,o)}function yw(e,{x:t,y:r}){gw(e.x,t.translate,t.scale,t.originPoint),gw(e.y,r.translate,r.scale,r.originPoint)}function FC(e,t,r,n=!1){var o,i;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((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&&ka(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,yw(e,u)),n&&Ii(a.latestValues)&&ka(e,a.latestValues));t.x=kC(t.x),t.y=kC(t.y)}function kC(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Yo(e,t){e.min=e.min+t,e.max=e.max+t}function LC(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,s=bt(e.min,e.max,i);gw(e,t[r],t[n],s,t.scale)}var Sq=["x","scaleX","originX"],Cq=["y","scaleY","originY"];function ka(e,t){LC(e.x,t,Sq),LC(e.y,t,Cq)}function vw(e,t){return J0(AC(e.getBoundingClientRect(),t))}function UC(e,t,r){let n=vw(e,r),{scroll:o}=t;return o&&(Yo(n.x,o.offset.x),Yo(n.y,o.offset.y)),n}var Mq=new WeakMap,tm=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=Jt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(Xf(a,"page").point)},o=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=j6(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lo(b=>{var v,C;let N=this.getAxisMotionValue(b).get()||0;if(Zr.test(N)){let M=(C=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||C===void 0?void 0:C.layoutBox[b];M&&(N=Lr(M)*(parseFloat(N)/100))}this.originPoint[b]=N}),y==null||y(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(wt.Drag,!0))},i=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:b}=u;if(p&&this.currentDirection===null){this.currentDirection=Tq(b),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,b),this.updateAxis("y",u.point,b),this.visualElement.render(),y==null||y(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Pl(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||!em(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=EC(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&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=SC(n.layoutBox,t):this.constraints=!1,this.elastic=PC(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&lo(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=TC(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ei(t))return!1;let n=t.current;kr(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=UC(n,o.root,this.visualElement.getTransformPagePoint()),s=CC(o.layout.layoutBox,i);if(r){let a=r(IC(s));this.hasMutatedConstraints=!!a,a&&(s=J0(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=lo(p=>{var h;if(!em(p,r,this.currentDirection))return;let y=(h=u==null?void 0:u[p])!==null&&h!==void 0?h:{};s&&(y={min:0,max:0});let b=o?200:1e6,v=o?40:1e7,C=te(te({type:"inertia",velocity:n?t[p]:0,bounceStiffness:b,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},i),y);return this.startAxisValueAnimation(p,C)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return Sl(t,n,0,r)}stopAnimation(){lo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,n;let o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)}snapToCursor(t){lo(r=>{let{drag:n}=this.getProps();if(!em(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(!Ei(n)||!o||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};lo(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();i[a]=MC({min:l,max:l},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(),lo(a=>{if(!em(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(bt(l,p,i[a]))})}addListeners(){var t;if(!this.visualElement.current)return;Mq.set(this.visualElement,this);let r=this.visualElement.current,n=Di(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),o=()=>{let{dragConstraints:l}=this.getProps();Ei(l)&&(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=Ca(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(lo(h=>{let y=this.getAxisMotionValue(h);!y||(this.originPoint[h]+=l[h].translate,y.set(y.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=X0,dragMomentum:a=!0}=t;return Se(te({},t),{drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a})}};function em(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Tq(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function $C(e){let{dragControls:t,visualElement:r}=e,n=Is(()=>new tm(r));(0,ww.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,ww.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Al=ce(ve(),1);function BC({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:o}){let i=e||t||r||n,s=(0,Al.useRef)(null),{transformPagePoint:a}=(0,Al.useContext)(Qu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,Al.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Pl(p,u,{transformPagePoint:a})}Ma(o,"pointerdown",i&&l),ml(()=>s.current&&s.current.end())}var VC={pan:Io(BC),drag:Io($C)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function bw(e){return typeof e=="string"&&e.startsWith("var(--")}var xw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pq(e){let t=xw.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var Oq=4;function _w(e,t,r=1){kr(r<=Oq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=Pq(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():bw(o)?_w(o,t,r+1):o}function jC(e,n,r){var t=Te(n,[]);let o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r=te({},r)),e.values.forEach(i=>{let s=i.get();if(!bw(s))return;let a=_w(s,o);a&&i.set(a)});for(let i in t){let s=t[i];if(!bw(s))continue;let a=_w(s,o);!a||(t[i]=a,r&&r[i]===void 0&&(r[i]=s))}return{target:t,transitionEnd:r}}c();d();f();var Dq=new Set(["width","height","top","left","right","bottom","x","y"]),ZC=e=>Dq.has(e),Iq=e=>Object.keys(e).some(ZC),GC=(e,t)=>{e.set(t,!1),e.set(t)},rm=e=>e===jn||e===$e,zC;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(zC||(zC={}));var HC=(e,t)=>parseFloat(e.split(", ")[t]),qC=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/);if(o)return HC(o[1],t);{let i=n.match(/^matrix\((.+)\)$/);return i?HC(i[1],e):0}},Aq=new Set(["x","y","z"]),Nq=nl.filter(e=>!Aq.has(e));function Rq(e){let t=[];return Nq.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 KC={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:qC(4,13),y:qC(5,14)},kq=(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(l=>{a[l]=KC[l](n,i)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);GC(p,a[l]),e[l]=KC[l](u,i)}),e},Lq=(e,t,r={},n={})=>{t=te({},t),n=te({},n);let o=Object.keys(t).filter(ZC),i=[],s=!1,a=[];if(o.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Tl(p),y=t[u],b;if(Oi(y)){let v=y.length,C=y[0]===null?1:0;p=y[C],h=Tl(p);for(let N=C;N<v;N++)b?kr(Tl(y[N])===b,"All keyframes must be of the same type"):(b=Tl(y[N]),kr(b===h||rm(h)&&rm(b),"Keyframes must be of the same dimension as the current value"))}else b=Tl(y);if(h!==b)if(rm(h)&&rm(b)){let v=l.get();typeof v=="string"&&l.set(parseFloat(v)),typeof y=="string"?t[u]=parseFloat(y):Array.isArray(y)&&b===$e&&(t[u]=y.map(parseFloat))}else(h==null?void 0:h.transform)&&(b==null?void 0:b.transform)&&(p===0||y===0)?p===0?l.set(b.transform(p)):t[u]=h.transform(y):(s||(i=Rq(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],GC(l,y))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=kq(t,e,a);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),ao&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function WC(e,t,r,n){return Iq(t)?Lq(e,t,r,n):{target:t,transitionEnd:n}}var YC=(e,t,r,n)=>{let o=jC(e,t,n);return t=o.target,n=o.transitionEnd,WC(e,t,r,n)};c();d();f();var eM=ce(ve(),1);c();d();f();c();d();f();var id={current:null},nm={current:!1};function XC(){if(nm.current=!0,!!ao)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>id.current=e.matches;e.addListener(t),t()}else id.current=!1}c();d();f();function JC(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],s=r[o];if(Or(i))e.addValue(o,i),Na(n)&&n.add(o);else if(Or(s))e.addValue(o,Wo(i)),Na(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,Wo(a!==void 0?a:i))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var tM=Object.keys(Ds),Fq=tM.length,QC=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],om=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=()=>dr.render(this.render,!1,!0);let{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget=te({},s),this.initialValues=r.initial?te({},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=Ea(r),this.isVariantNode=c0(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=Te(p,["willChange"]);for(let h in l){let y=l[h];s[h]!==void 0&&Or(y)&&(y.set(s[h],!1),Na(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),nm.current||XC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:id.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(),zn.update(this.notifyUpdate),zn.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=uo.has(t),o=r.onChange(s=>{this.latestValues[t]=s,this.props.onUpdate&&dr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.onRenderRequest(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=[];gl!=="production"&&n&&r&&kr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<Fq;u++){let l=tM[u],{isEnabled:p,Component:h}=Ds[l];p(t)&&h&&a.push((0,eM.createElement)(h,Se(te({key:l},t),{visualElement:this})))}if(!this.projection&&i){this.projection=new i(o,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:y}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&Ei(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}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<QC.length;r++){let n=QC[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=JC(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<Uq;i++){let s=rM[i],a=this.props[s];(Si(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=Wo(r),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=hl(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&&!Or(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 Go),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},rM=["initial",...W0],Uq=rM.length;var Nl=class extends om{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:o},i){var a=s,{transition:t,transitionEnd:r}=a,n=Te(a,["transition","transitionEnd"]);let u=sC(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),u&&(u=o(u))),i){iC(this,n,u);let l=YC(this,n,u,r);r=l.transitionEnd,n=l.target}return te({transition:t,transitionEnd:r},n)}};function $q(e){return window.getComputedStyle(e)}var im=class extends Nl{readValueFromInstance(t,r){if(uo.has(r)){let n=xl(r);return n&&n.default||0}else{let n=$q(t),o=(m0(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return vw(t,r)}build(t,r,n,o){ul(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return dl(t)}renderInstance(t,r,n,o){S0(t,r,n,o)}};c();d();f();var sm=class extends Nl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return uo.has(r)?((n=xl(r))===null||n===void 0?void 0:n.default)||0:(r=C0.has(r)?r:E0(r),t.getAttribute(r))}measureInstanceViewportBox(){return Jt()}scrapeMotionValuesFromProps(t){return T0(t)}build(t,r,n,o){cl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){M0(t,r,n,o)}mount(t){this.isSVGTag=fl(t.tagName),super.mount(t)}};var nM=(e,t)=>tl(e)?new sm(t,{enableHardwareAcceleration:!1}):new im(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var kl=ce(ve(),1);c();d();f();function oM(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Rl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($e.test(e))e=parseFloat(e);else return e;let r=oM(e,t.target.x),n=oM(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var iM="_$css",sM={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=e.includes("var("),i=[];o&&(e=e.replace(xw,b=>(i.push(b),iM)));let s=Rr.parse(e);if(s.length>5)return n;let a=Rr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=bt(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let y=a(s);if(o){let b=0;y=y.replace(iM,()=>{let v=i[b];return b++,v})}return y}};var Ew=class extends kl.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;R9(Bq),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(Se(te({},i.options),{onExitComplete:()=>this.safeToRemove()}))),As.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()||dr.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 aM(e){let[t,r]=R0(),n=(0,kl.useContext)(el);return kl.default.createElement(Ew,Se(te({},e),{layoutGroup:n,switchLayoutGroup:(0,kl.useContext)(h0),isPresent:t,safeToRemove:r}))}var Bq={borderRadius:Se(te({},Rl),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Rl,borderTopRightRadius:Rl,borderBottomLeftRadius:Rl,borderBottomRightRadius:Rl,boxShadow:sM};var uM={measureLayout:aM};c();d();f();c();d();f();c();d();f();function lM(e,t,r={}){let n=Or(e)?e:Wo(e);return Sl("",n,t,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var hM=["TopLeft","TopRight","BottomLeft","BottomRight"],Vq=hM.length,cM=e=>typeof e=="string"?parseFloat(e):e,fM=e=>typeof e=="number"||$e.test(e);function pM(e,t,r,n,o,i){var s,a,u,l;o?(e.opacity=bt(0,(s=r.opacity)!==null&&s!==void 0?s:1,jq(n)),e.opacityExit=bt((a=t.opacity)!==null&&a!==void 0?a:1,0,zq(n))):i&&(e.opacity=bt((u=t.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(let p=0;p<Vq;p++){let h=`border${hM[p]}Radius`,y=dM(t,h),b=dM(r,h);if(y===void 0&&b===void 0)continue;y||(y=0),b||(b=0),y===0||b===0||fM(y)===fM(b)?(e[h]=Math.max(bt(cM(y),cM(b),n),0),(Zr.test(b)||Zr.test(y))&&(e[h]+="%")):e[h]=b}(t.rotate||r.rotate)&&(e.rotate=bt(t.rotate||0,r.rotate||0,n))}function dM(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var jq=mM(0,.5,Qf),zq=mM(.5,.95,wl);function mM(e,t,r){return n=>n<e?0:n>t?1:r(Ia(e,t,n))}c();d();f();function gM(e,t){e.min=t.min,e.max=t.max}function co(e,t){gM(e.x,t.x),gM(e.y,t.y)}c();d();f();function yM(e,t,r,n,o){return e-=t,e=od(e,1/r,n),o!==void 0&&(e=od(e,1/o,n)),e}function Hq(e,t=0,r=1,n=.5,o,i=e,s=e){if(Zr.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=yM(e.min,t,r,a,o),e.max=yM(e.max,t,r,a,o)}function vM(e,t,[r,n,o],i,s){Hq(e,t[r],t[n],t[o],t.scale,i,s)}var qq=["x","scaleX","originX"],Kq=["y","scaleY","originY"];function Sw(e,t,r,n){vM(e.x,t,qq,r==null?void 0:r.x,n==null?void 0:n.x),vM(e.y,t,Kq,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function wM(e){return e.translate===0&&e.scale===1}function Cw(e){return wM(e.x)&&wM(e.y)}function Mw(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Tw(e){return Lr(e.x)/Lr(e.y)}c();d();f();var am=class{constructor(){this.members=[]}add(t){Cl(this.members,t),t.scheduleRender()}remove(t){if(Ml(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 Pw(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:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var bM=(e,t)=>e.depth-t.depth;var um=class{constructor(){this.children=[],this.isDirty=!1}add(t){Cl(this.children,t),this.isDirty=!0}remove(t){Ml(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bM),this.isDirty=!1,this.children.forEach(t)}};var _M=["","X","Y","Z"],xM=1e3,Zq=0;function lm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=Zq++,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(Yq),this.nodes.forEach(Qq),this.nodes.forEach(eK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new um)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Go),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let y,b=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=V0(b,250),As.hasAnimatedSinceResize&&(As.hasAnimatedSinceResize=!1,this.nodes.forEach(SM))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeTargetChanged:v,layout:C})=>{var N,M,T,I,U;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let K=(M=(N=this.options.transition)!==null&&N!==void 0?N:h.getDefaultTransition())!==null&&M!==void 0?M:iK,{onLayoutAnimationStart:J,onLayoutAnimationComplete:j}=h.getProps(),Z=!this.targetLayout||!Mw(this.targetLayout,C)||v,le=!b&&v;if(((T=this.resumeFrom)===null||T===void 0?void 0:T.instance)||le||b&&(Z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,le);let me=Se(te({},Z0(K,"layout")),{onPlay:J,onComplete:j});h.shouldReduceMotion&&(me.delay=0,me.type=!1),this.startAnimation(me)}else!b&&this.animationProgress===0&&SM(this),this.isLead()&&((U=(I=this.options).onExitComplete)===null||U===void 0||U.call(I));this.targetLayout=C})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,zn.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(tK),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){let v=this.path[b];v.shouldResetTransform=!0,v.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(EM);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(sK),this.potentialNodes.clear()),this.nodes.forEach(Jq),this.nodes.forEach(Gq),this.nodes.forEach(Wq),this.clearAllSnapshots(),B0.update(),B0.preRender(),B0.render())}clearAllSnapshots(){this.nodes.forEach(Xq),this.sharedNodes.forEach(rK)}scheduleUpdateProjection(){dr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){dr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Jt(),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,u=this.projectionDelta&&!Cw(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||Ii(this.latestValues)||h)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),aK(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Jt();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(Yo(a.x,u.offset.x),Yo(a.y,u.offset.y)),a}removeElementScroll(s){let a=Jt();co(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){co(a,s);let{scroll:y}=this.root;y&&(Yo(a.x,-y.offset.x),Yo(a.y,-y.offset.y))}Yo(a.x,p.offset.x),Yo(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=Jt();co(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&ka(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Ii(p.latestValues)&&ka(u,p.latestValues)}return Ii(this.latestValues)&&ka(u,this.latestValues),u}removeTransform(s){var a;let u=Jt();co(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Ii(p.latestValues))continue;Q0(p.latestValues)&&p.updateSnapshot();let h=Jt(),y=p.measurePageBox();co(h,y),Sw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Ii(this.latestValues)&&Sw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=Se(te(te({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),Dl(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),co(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?vC(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):co(this.target,this.layout.layoutBox),yw(this.target,this.targetDelta)):co(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),Dl(this.relativeTargetOrigin,this.target,p.target),co(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Q0(this.parent.latestValues)||mw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:y,layoutId:b}=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||b))return;co(this.layoutCorrected,this.layout.layoutBox),FC(this.layoutCorrected,this.treeScale,this.path,p);let{target:v}=l;if(!v)return;this.projectionDelta||(this.projectionDelta=Il(),this.projectionDeltaWithTransform=Il());let C=this.treeScale.x,N=this.treeScale.y,M=this.projectionTransform;Ol(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=Pw(this.projectionDelta,this.treeScale),(this.projectionTransform!==M||this.treeScale.x!==C||this.treeScale.y!==N)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},y=te({},this.latestValues),b=Il();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let v=Jt(),C=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),N=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,M=Boolean(C&&!N&&this.options.crossfade===!0&&!this.path.some(oK));this.animationProgress=0,this.mixTargetDelta=T=>{var I;let U=T/1e3;CM(b.x,s.x,U),CM(b.y,s.y,U),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((I=this.relativeParent)===null||I===void 0?void 0:I.layout)&&(Dl(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),nK(this.relativeTarget,this.relativeTargetOrigin,v,U)),C&&(this.animationValues=y,pM(y,h,this.latestValues,U,M,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(zn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dr.update(()=>{As.hasAnimatedSinceResize=!0,this.currentAnimation=lM(0,xM,Se(te({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,xM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&PM(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Jt();let h=Lr(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let y=Lr(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+y}co(a,u),ka(a,p),Ol(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new am),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<_M.length;p++){let h="rotate"+_M[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=pl(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let N={};return this.options.layoutId&&(N.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,N.pointerEvents=pl(s.pointerEvents)||""),this.hasProjected&&!Ii(this.latestValues)&&(N.transform=h?h({},""):"none",this.hasProjected=!1),N}let b=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=Pw(this.projectionDeltaWithTransform,this.treeScale,b),h&&(p.transform=h(b,p.transform));let{x:v,y:C}=this.projectionDelta;p.transformOrigin=`${v.origin*100}% ${C.origin*100}% 0`,y.animationValues?p.opacity=y===this?(l=(u=b.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:p.opacity=y===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(let N in rl){if(b[N]===void 0)continue;let{correct:M,applyTo:T}=rl[N],I=M(b[N],y);if(T){let U=T.length;for(let K=0;K<U;K++)p[T[K]]=I}else p[N]=I}return this.options.layoutId&&(p.pointerEvents=y===this?pl(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(EM),this.root.sharedNodes.clear()}}}function Gq(e){e.updateLayout()}function Wq(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,u=o.source!==e.layout.source;a==="size"?lo(b=>{let v=u?o.measuredBox[b]:o.layoutBox[b],C=Lr(v);v.min=i[b].min,v.max=v.min+C}):PM(a,o.layoutBox,i)&&lo(b=>{let v=u?o.measuredBox[b]:o.layoutBox[b],C=Lr(i[b]);v.max=v.min+C});let l=Il();Ol(l,i,o.layoutBox);let p=Il();u?Ol(p,e.applyTransform(s,!0),o.measuredBox):Ol(p,i,o.layoutBox);let h=!Cw(l),y=!1;if(!e.resumeFrom){let b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){let{snapshot:v,layout:C}=b;if(v&&C){let N=Jt();Dl(N,o.layoutBox,v.layoutBox);let M=Jt();Dl(M,i,C.layoutBox),Mw(N,M)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function Yq(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function Xq(e){e.clearSnapshot()}function EM(e){e.clearMeasurements()}function Jq(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Qq(e){e.resolveTargetDelta()}function eK(e){e.calcProjection()}function tK(e){e.resetRotation()}function rK(e){e.removeLeadSnapshot()}function CM(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 MM(e,t,r,n){e.min=bt(t.min,r.min,n),e.max=bt(t.max,r.max,n)}function nK(e,t,r,n){MM(e.x,t.x,r.x,n),MM(e.y,t.y,r.y,n)}function oK(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var iK={duration:.45,ease:[.4,0,.1,1]};function sK(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 TM(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function aK(e){TM(e.x),TM(e.y)}function PM(e,t,r){return e==="position"||e==="preserve-aspect"&&!Y0(Tw(t),Tw(r),.2)}c();d();f();var OM=lm({attachResizeListener:(e,t)=>Ca(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Ow={current:void 0},DM=lm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ow.current){let e=new OM(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ow.current=e}return Ow.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var uK=te(te(te(te({},cC),x7),VC),uM),Dt=A9((e,t)=>i7(e,t,uK,nM,DM));c();d();f();var Ai=ce(ve(),1),fo=ce(ve(),1);c();d();f();var sd=ce(ve(),1);c();d();f();var IM=ce(ve(),1);function cm(){let e=(0,IM.useRef)(!1);return xa(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function AM(){let e=cm(),[t,r]=(0,sd.useState)(0),n=(0,sd.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,sd.useCallback)(()=>dr.postRender(n),[n]),t]}c();d();f();var ad=ce(ve(),1),ud=ce(ve(),1);c();d();f();var Ll=ce(ve(),1),La=ce(ve(),1),Dw=class extends Ll.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function NM({children:e,isPresent:t}){let r=(0,La.useId)(),n=(0,La.useRef)(null),o=(0,La.useRef)({width:0,height:0,top:0,left:0});return(0,La.useInsertionEffect)(()=>{let{width:i,height:s,top:a,left:u}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.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: ${u}px !important;
31
+ }
32
+ `),()=>{document.head.removeChild(l)}},[t]),Ll.createElement(Dw,{isPresent:t,childRef:n,sizeRef:o},Ll.cloneElement(e,{ref:n}))}var fm=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{let a=Is(lK),u=(0,ud.useId)(),l=(0,ud.useMemo)(()=>({id:u,initial:t,isPresent:r,custom:o,onExitComplete:p=>{a.set(p,!0);for(let h of a.values())if(!h)return;n&&n()},register:p=>(a.set(p,!1),()=>a.delete(p))}),i?void 0:[r]);return(0,ud.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),ad.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=ad.createElement(NM,{isPresent:r},e)),ad.createElement(Zo.Provider,{value:l},e)};function lK(){return new Map}var Fl=e=>e.key||"";function cK(e,t){e.forEach(r=>{let n=Fl(r);t.set(n,r)})}function fK(e){let t=[];return fo.Children.forEach(e,r=>{(0,fo.isValidElement)(r)&&t.push(r)}),t}var dm=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",N0(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=AM(),u=(0,fo.useContext)(el).forceRender;u&&(a=u);let l=cm(),p=fK(e),h=p,y=new Set,b=(0,fo.useRef)(h),v=(0,fo.useRef)(new Map).current,C=(0,fo.useRef)(!0);if(xa(()=>{C.current=!1,cK(p,v),b.current=h}),ml(()=>{C.current=!0,v.clear(),y.clear()}),C.current)return Ai.createElement(Ai.Fragment,null,h.map(I=>Ai.createElement(fm,{key:Fl(I),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},I)));h=[...h];let N=b.current.map(Fl),M=p.map(Fl),T=N.length;for(let I=0;I<T;I++){let U=N[I];M.indexOf(U)===-1&&y.add(U)}return s==="wait"&&y.size&&(h=[]),y.forEach(I=>{if(M.indexOf(I)!==-1)return;let U=v.get(I);if(!U)return;let K=N.indexOf(I),J=()=>{v.delete(I),y.delete(I);let j=b.current.findIndex(Z=>Z.key===I);if(b.current.splice(j,1),!y.size){if(b.current=p,l.current===!1)return;a(),n&&n()}};h.splice(K,0,Ai.createElement(fm,{key:Fl(U),isPresent:!1,onExitComplete:J,custom:t,presenceAffectsLayout:i,mode:s},U))}),h=h.map(I=>{let U=I.key;return y.has(U)?I:Ai.createElement(fm,{key:Fl(I),isPresent:!0,presenceAffectsLayout:i,mode:s},I)}),gl!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Ai.createElement(Ai.Fragment,null,y.size?h:h.map(I=>(0,fo.cloneElement)(I)))};c();d();f();var rT=ce(tT(),1),{__extends:Aye,__assign:ho,__rest:gm,__decorate:Nye,__param:Rye,__metadata:kye,__awaiter:Lye,__generator:Fye,__exportStar:Uye,__createBinding:$ye,__values:Bye,__read:Vye,__spread:jye,__spreadArrays:zye,__spreadArray:nT,__await:Hye,__asyncGenerator:qye,__asyncDelegator:Kye,__asyncValues:Zye,__makeTemplateObject:Gye,__importStar:Wye,__importDefault:Yye,__classPrivateFieldGet:Xye,__classPrivateFieldSet:Jye,__classPrivateFieldIn:Qye}=rT.default;var dK=()=>m.createElement("div",{className:"space-y-6"},m.createElement("div",{className:"-mt-6"},m.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),m.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."),m.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."),m.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),m.createElement("div",null,m.createElement(Dt.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:Nr("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")},m.createElement(Dt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),oT=dK;c();d();f();var hK=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),pK={["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"},mK=()=>{var r;let{retryFlow:e,errorState:t}=Gt(hK);return m.createElement("div",{className:"space-y-8"},m.createElement("div",{className:"-mt-5 flex items-center justify-center"},m.createElement("div",{className:"bg-ff6848/10 inline-flex items-center justify-center rounded-full p-5"},m.createElement("div",{className:"bg-ff6848 flex items-center justify-center rounded-full p-5"},m.createElement(Ju,{className:"w-8 text-white"})))),m.createElement("div",null,m.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},pK[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),m.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),m.createElement("div",{className:"flex justify-center"},m.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")),m.createElement("div",null,m.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},iT=mK;c();d();f();var $l={opacity:[1,.1,.2,.4,.6,.8]},Bl={repeat:1/0,duration:1,type:"spring"},gK=({className:e=""})=>m.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},m.createElement(Dt.path,{animate:$l,transition:Bl,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"}),m.createElement(Dt.path,{animate:$l,transition:Se(te({},Bl),{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"}),m.createElement(Dt.path,{animate:$l,transition:Se(te({},Bl),{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"}),m.createElement(Dt.path,{animate:$l,transition:Se(te({},Bl),{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"}),m.createElement(Dt.path,{animate:$l,transition:Se(te({},Bl),{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"}),m.createElement(Dt.path,{animate:$l,transition:Se(te({},Bl),{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"})),Vl=gK;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 Ae=ce(ve()),ET=ce(ba());c();d();f();function hr(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 sT=ce(ve());function yK(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Aw(...e){return t=>e.forEach(r=>yK(r,t))}function Gr(...e){return(0,sT.useCallback)(Aw(...e),e)}c();d();f();var Ao=ce(ve());c();d();f();var un=ce(ve());function aT(e,t){let r=(0,un.createContext)(t);function n(i){let l=i,{children:s}=l,a=Te(l,["children"]),u=(0,un.useMemo)(()=>a,Object.values(a));return(0,un.createElement)(r.Provider,{value:u},s)}function o(i){let s=(0,un.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 jl(e,t=[]){let r=[];function n(i,s){let a=(0,un.createContext)(s),u=r.length;r=[...r,s];function l(h){let M=h,{scope:y,children:b}=M,v=Te(M,["scope","children"]),C=(y==null?void 0:y[e][u])||a,N=(0,un.useMemo)(()=>v,Object.values(v));return(0,un.createElement)(C.Provider,{value:N},b)}function p(h,y){let b=(y==null?void 0:y[e][u])||a,v=(0,un.useContext)(b);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,p]}let o=()=>{let i=r.map(s=>(0,un.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||i;return(0,un.useMemo)(()=>({[`__scope${e}`]:Se(te({},a),{[e]:u})}),[a,u])}};return o.scopeName=e,[n,vK(o,...t)]}function vK(...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:u,scopeName:l})=>{let h=u(i)[`__scope${l}`];return te(te({},a),h)},{});return(0,un.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var Qt=ce(ve());var Ls=(0,Qt.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=Te(s,["children"]),o=Qt.Children.toArray(r),i=o.find(bK);if(i){let a=i.props.children,u=o.map(l=>l===i?Qt.Children.count(a)>1?Qt.Children.only(null):(0,Qt.isValidElement)(a)?a.props.children:null:l);return(0,Qt.createElement)(Nw,pt({},n,{ref:t}),(0,Qt.isValidElement)(a)?(0,Qt.cloneElement)(a,void 0,u):null)}return(0,Qt.createElement)(Nw,pt({},n,{ref:t}),r)});Ls.displayName="Slot";var Nw=(0,Qt.forwardRef)((e,t)=>{let o=e,{children:r}=o,n=Te(o,["children"]);return(0,Qt.isValidElement)(r)?(0,Qt.cloneElement)(r,Se(te({},_K(n,r.props)),{ref:Aw(t,r.ref)})):Qt.Children.count(r)>1?Qt.Children.only(null):null});Nw.displayName="SlotClone";var wK=({children:e})=>(0,Qt.createElement)(Qt.Fragment,null,e);function bK(e){return(0,Qt.isValidElement)(e)&&e.type===wK}function _K(e,t){let r=te({},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]=te(te({},o),i):n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return te(te({},e),r)}function uT(e){let t=e+"CollectionProvider",[r,n]=jl(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=b=>{let{scope:v,children:C}=b,N=Ao.default.useRef(null),M=Ao.default.useRef(new Map).current;return Ao.default.createElement(o,{scope:v,itemMap:M,collectionRef:N},C)},a=e+"CollectionSlot",u=Ao.default.forwardRef((b,v)=>{let{scope:C,children:N}=b,M=i(a,C),T=Gr(v,M.collectionRef);return Ao.default.createElement(Ls,{ref:T},N)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=Ao.default.forwardRef((b,v)=>{let K=b,{scope:C,children:N}=K,M=Te(K,["scope","children"]),T=Ao.default.useRef(null),I=Gr(v,T),U=i(l,C);return Ao.default.useEffect(()=>(U.itemMap.set(T,te({ref:T},M)),()=>void U.itemMap.delete(T))),Ao.default.createElement(Ls,{[p]:"",ref:I},N)});function y(b){let v=i(e+"CollectionConsumer",b);return Ao.default.useCallback(()=>{let N=v.collectionRef.current;if(!N)return[];let M=Array.from(N.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((U,K)=>M.indexOf(U.ref.current)-M.indexOf(K.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,n]}c();d();f();var kt=ce(ve());c();d();f();var zl=ce(ve()),lT=ce(ba());var xK=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],br=xK.reduce((e,t)=>{let r=(0,zl.forwardRef)((n,o)=>{let u=n,{asChild:i}=u,s=Te(u,["asChild"]),a=i?Ls:t;return(0,zl.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,zl.createElement)(a,pt({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,Se(te({},e),{[t]:r})},{});function ym(e,t){e&&(0,lT.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var Hl=ce(ve());function Wr(e){let t=(0,Hl.useRef)(e);return(0,Hl.useEffect)(()=>{t.current=e}),(0,Hl.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var cT=ce(ve());function fT(e,t=globalThis==null?void 0:globalThis.document){let r=Wr(e);(0,cT.useEffect)(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Rw="dismissableLayer.update",EK="dismissableLayer.pointerDownOutside",SK="dismissableLayer.focusOutside",dT,pT=(0,kt.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kw=(0,kt.forwardRef)((e,t)=>{var r;let Z=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:u}=Z,l=Te(Z,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),p=(0,kt.useContext)(pT),[h,y]=(0,kt.useState)(null),b=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=(0,kt.useState)({}),C=Gr(t,le=>y(le)),N=Array.from(p.layers),[M]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=N.indexOf(M),I=h?N.indexOf(h):-1,U=p.layersWithOutsidePointerEventsDisabled.size>0,K=I>=T,J=MK(le=>{let me=le.target,fe=[...p.branches].some(W=>W.contains(me));!K||fe||(i==null||i(le),a==null||a(le),le.defaultPrevented||u==null||u())},b),j=TK(le=>{let me=le.target;[...p.branches].some(W=>W.contains(me))||(s==null||s(le),a==null||a(le),le.defaultPrevented||u==null||u())},b);return fT(le=>{I===p.layers.size-1&&(o==null||o(le),!le.defaultPrevented&&u&&(le.preventDefault(),u()))},b),(0,kt.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(dT=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),hT(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=dT)}},[h,b,n,p]),(0,kt.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),hT())},[h,p]),(0,kt.useEffect)(()=>{let le=()=>v({});return document.addEventListener(Rw,le),()=>document.removeEventListener(Rw,le)},[]),(0,kt.createElement)(br.div,pt({},l,{ref:C,style:te({pointerEvents:U?K?"auto":"none":void 0},e.style),onFocusCapture:hr(e.onFocusCapture,j.onFocusCapture),onBlurCapture:hr(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:hr(e.onPointerDownCapture,J.onPointerDownCapture)}))});var CK=(0,kt.forwardRef)((e,t)=>{let r=(0,kt.useContext)(pT),n=(0,kt.useRef)(null),o=Gr(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)(br.div,pt({},e,{ref:o}))});function MK(e,t=globalThis==null?void 0:globalThis.document){let r=Wr(e),n=(0,kt.useRef)(!1),o=(0,kt.useRef)(()=>{});return(0,kt.useEffect)(()=>{let i=a=>{if(a.target&&!n.current){let l=function(){mT(EK,r,u,{discrete:!0})},u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}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 TK(e,t=globalThis==null?void 0:globalThis.document){let r=Wr(e),n=(0,kt.useRef)(!1);return(0,kt.useEffect)(()=>{let o=i=>{i.target&&!n.current&&mT(SK,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 hT(){let e=new CustomEvent(Rw);document.dispatchEvent(e)}function mT(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?ym(o,i):o.dispatchEvent(i)}var gT=kw,yT=CK;c();d();f();var vm=ce(ve()),vT=ce(ba());var wm=(0,vm.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=Te(i,["container"]);return n?vT.default.createPortal((0,vm.createElement)(br.div,pt({},o,{ref:t})),n):null});c();d();f();var Yr=ce(ve()),bT=ce(ba());c();d();f();var wT=ce(ve()),Fa=Boolean(globalThis==null?void 0:globalThis.document)?wT.useLayoutEffect:()=>{};function PK(e,t){return(0,Yr.useReducer)((r,n)=>{let o=t[r][n];return o!=null?o:r},e)}var Ua=e=>{let{present:t,children:r}=e,n=OK(t),o=typeof r=="function"?r({present:n.isPresent}):Yr.Children.only(r),i=Gr(n.ref,o.ref);return typeof r=="function"||n.isPresent?(0,Yr.cloneElement)(o,{ref:i}):null};Ua.displayName="Presence";function OK(e){let[t,r]=(0,Yr.useState)(),n=(0,Yr.useRef)({}),o=(0,Yr.useRef)(e),i=(0,Yr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=PK(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Yr.useEffect)(()=>{let l=bm(n.current);i.current=a==="mounted"?l:"none"},[a]),Fa(()=>{let l=n.current,p=o.current;if(p!==e){let y=i.current,b=bm(l);e?u("MOUNT"):b==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&y!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Fa(()=>{if(t){let l=h=>{let b=bm(n.current).includes(h.animationName);h.target===t&&b&&(0,bT.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(i.current=bm(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,Yr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function bm(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var Fs=ce(ve());function _m({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=DK({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,a=Wr(r),u=(0,Fs.useCallback)(l=>{if(i){let h=typeof l=="function"?l(e):l;h!==e&&a(h)}else o(l)},[i,e,o,a]);return[s,u]}function DK({defaultProp:e,onChange:t}){let r=(0,Fs.useState)(e),[n]=r,o=(0,Fs.useRef)(n),i=Wr(t);return(0,Fs.useEffect)(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}c();d();f();var xm=ce(ve());var Lw=(0,xm.forwardRef)((e,t)=>(0,xm.createElement)(br.span,pt({},e,{ref:t,style:te({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 ST="ToastProvider",[Bw,IK,AK]=uT("Toast"),[CT,l2e]=jl("Toast",[AK]),[NK,Sm]=CT(ST),MT=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,u]=(0,Ae.useState)(null),[l,p]=(0,Ae.useState)(0),h=(0,Ae.useRef)(!1),y=(0,Ae.useRef)(!1);return(0,Ae.createElement)(Bw.Provider,{scope:t},(0,Ae.createElement)(NK,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,Ae.useCallback)(()=>p(b=>b+1),[]),onToastRemove:(0,Ae.useCallback)(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:y},s))};MT.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${ST}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var RK="ToastViewport",kK=["F8"],Uw="toast.viewportPause",$w="toast.viewportResume",LK=(0,Ae.forwardRef)((e,t)=>{let N=e,{__scopeToast:r,hotkey:n=kK,label:o="Notifications ({hotkey})"}=N,i=Te(N,["__scopeToast","hotkey","label"]),s=Sm(RK,r),a=IK(r),u=(0,Ae.useRef)(null),l=(0,Ae.useRef)(null),p=(0,Ae.useRef)(null),h=(0,Ae.useRef)(null),y=Gr(t,h,s.onViewportChange),b=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;(0,Ae.useEffect)(()=>{let M=T=>{var I;n.every(K=>T[K]||T.code===K)&&((I=h.current)===null||I===void 0||I.focus())};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[n]),(0,Ae.useEffect)(()=>{let M=u.current,T=h.current;if(v&&M&&T){let I=()=>{if(!s.isClosePausedRef.current){let j=new CustomEvent(Uw);T.dispatchEvent(j),s.isClosePausedRef.current=!0}},U=()=>{if(s.isClosePausedRef.current){let j=new CustomEvent($w);T.dispatchEvent(j),s.isClosePausedRef.current=!1}},K=j=>{!M.contains(j.relatedTarget)&&U()},J=()=>{M.contains(document.activeElement)||U()};return M.addEventListener("focusin",I),M.addEventListener("focusout",K),M.addEventListener("pointermove",I),M.addEventListener("pointerleave",J),window.addEventListener("blur",I),window.addEventListener("focus",U),()=>{M.removeEventListener("focusin",I),M.removeEventListener("focusout",K),M.removeEventListener("pointermove",I),M.removeEventListener("pointerleave",J),window.removeEventListener("blur",I),window.removeEventListener("focus",U)}}},[v,s.isClosePausedRef]);let C=(0,Ae.useCallback)(({tabbingDirection:M})=>{let I=a().map(U=>{let K=U.ref.current,J=[K,...JK(K)];return M==="forwards"?J:J.reverse()});return(M==="forwards"?I.reverse():I).flat()},[a]);return(0,Ae.useEffect)(()=>{let M=h.current;if(M){let T=I=>{let U=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!U){let le=document.activeElement,me=I.shiftKey;if(I.target===M&&me){var J;(J=l.current)===null||J===void 0||J.focus();return}let A=C({tabbingDirection:me?"backwards":"forwards"}),g=A.findIndex(w=>w===le);if(Fw(A.slice(g+1)))I.preventDefault();else{var j,Z;me?(j=l.current)===null||j===void 0||j.focus():(Z=p.current)===null||Z===void 0||Z.focus()}}};return M.addEventListener("keydown",T),()=>M.removeEventListener("keydown",T)}},[a,C]),(0,Ae.createElement)(yT,{ref:u,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&(0,Ae.createElement)(_T,{ref:l,onFocusFromOutsideViewport:()=>{let M=C({tabbingDirection:"forwards"});Fw(M)}}),(0,Ae.createElement)(Bw.Slot,{scope:r},(0,Ae.createElement)(br.ol,pt({tabIndex:-1},i,{ref:y}))),v&&(0,Ae.createElement)(_T,{ref:p,onFocusFromOutsideViewport:()=>{let M=C({tabbingDirection:"backwards"});Fw(M)}}))}),FK="ToastFocusProxy",_T=(0,Ae.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,o=Te(s,["__scopeToast","onFocusFromOutsideViewport"]),i=Sm(FK,r);return(0,Ae.createElement)(Lw,pt({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:a=>{var u;let l=a.relatedTarget;!((u=i.viewport)!==null&&u!==void 0&&u.contains(l))&&n()}}))}),Cm="Toast",UK="toast.swipeStart",$K="toast.swipeMove",BK="toast.swipeCancel",VK="toast.swipeEnd",jK=(0,Ae.forwardRef)((e,t)=>{let l=e,{forceMount:r,open:n,defaultOpen:o,onOpenChange:i}=l,s=Te(l,["forceMount","open","defaultOpen","onOpenChange"]),[a=!0,u]=_m({prop:n,defaultProp:o,onChange:i});return(0,Ae.createElement)(Ua,{present:r||a},(0,Ae.createElement)(TT,pt({open:a},s,{ref:t,onClose:()=>u(!1),onPause:Wr(e.onPause),onResume:Wr(e.onResume),onSwipeStart:hr(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:hr(e.onSwipeMove,p=>{let{x:h,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${h}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:hr(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:hr(e.onSwipeEnd,p=>{let{x:h,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${h}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),u(!1)})})))}),[zK,HK]=CT(Cm,{onClose(){}}),TT=(0,Ae.forwardRef)((e,t)=>{let g=e,{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:y,onSwipeEnd:b}=g,v=Te(g,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),C=Sm(Cm,r),[N,M]=(0,Ae.useState)(null),T=Gr(t,w=>M(w)),I=(0,Ae.useRef)(null),U=(0,Ae.useRef)(null),K=o||C.duration,J=(0,Ae.useRef)(0),j=(0,Ae.useRef)(K),Z=(0,Ae.useRef)(0),{onToastAdd:le,onToastRemove:me}=C,fe=Wr(()=>{var w;(N==null?void 0:N.contains(document.activeElement))&&((w=C.viewport)===null||w===void 0||w.focus()),s()}),W=(0,Ae.useCallback)(w=>{!w||w===1/0||(window.clearTimeout(Z.current),J.current=new Date().getTime(),Z.current=window.setTimeout(fe,w))},[fe]);(0,Ae.useEffect)(()=>{let w=C.viewport;if(w){let E=()=>{W(j.current),l==null||l()},D=()=>{let k=new Date().getTime()-J.current;j.current=j.current-k,window.clearTimeout(Z.current),u==null||u()};return w.addEventListener(Uw,D),w.addEventListener($w,E),()=>{w.removeEventListener(Uw,D),w.removeEventListener($w,E)}}},[C.viewport,K,u,l,W]),(0,Ae.useEffect)(()=>{i&&!C.isClosePausedRef.current&&W(K)},[i,K,C.isClosePausedRef,W]),(0,Ae.useEffect)(()=>(le(),()=>me()),[le,me]);let A=(0,Ae.useMemo)(()=>N?DT(N):null,[N]);return C.viewport?(0,Ae.createElement)(Ae.Fragment,null,A&&(0,Ae.createElement)(qK,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},A),(0,Ae.createElement)(zK,{scope:r,onClose:fe},(0,ET.createPortal)((0,Ae.createElement)(Bw.ItemSlot,{scope:r},(0,Ae.createElement)(gT,{asChild:!0,onEscapeKeyDown:hr(a,()=>{C.isFocusedToastEscapeKeyDownRef.current||fe(),C.isFocusedToastEscapeKeyDownRef.current=!1})},(0,Ae.createElement)(br.li,pt({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":C.swipeDirection},v,{ref:T,style:te({userSelect:"none",touchAction:"none"},e.style),onKeyDown:hr(e.onKeyDown,w=>{w.key==="Escape"&&(a==null||a(w.nativeEvent),w.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:hr(e.onPointerDown,w=>{w.button===0&&(I.current={x:w.clientX,y:w.clientY})}),onPointerMove:hr(e.onPointerMove,w=>{if(!I.current)return;let E=w.clientX-I.current.x,D=w.clientY-I.current.y,k=Boolean(U.current),B=["left","right"].includes(C.swipeDirection),q=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,$=B?q(0,E):0,_=B?0:q(0,D),V=w.pointerType==="touch"?10:2,ie={x:$,y:_},O={originalEvent:w,delta:ie};k?(U.current=ie,Em($K,h,O,{discrete:!1})):xT(ie,C.swipeDirection,V)?(U.current=ie,Em(UK,p,O,{discrete:!1}),w.target.setPointerCapture(w.pointerId)):(Math.abs(E)>V||Math.abs(D)>V)&&(I.current=null)}),onPointerUp:hr(e.onPointerUp,w=>{let E=U.current,D=w.target;if(D.hasPointerCapture(w.pointerId)&&D.releasePointerCapture(w.pointerId),U.current=null,I.current=null,E){let k=w.currentTarget,B={originalEvent:w,delta:E};xT(E,C.swipeDirection,C.swipeThreshold)?Em(VK,b,B,{discrete:!0}):Em(BK,y,B,{discrete:!0}),k.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),C.viewport))):null});TT.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${Cm}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var qK=e=>{let l=e,{__scopeToast:t,children:r}=l,n=Te(l,["__scopeToast","children"]),o=Sm(Cm,t),[i,s]=(0,Ae.useState)(!1),[a,u]=(0,Ae.useState)(!1);return YK(()=>s(!0)),(0,Ae.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,Ae.createElement)(wm,{asChild:!0},(0,Ae.createElement)(Lw,n,i&&(0,Ae.createElement)(Ae.Fragment,null,o.label," ",r)))};var KK=(0,Ae.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=Te(o,["__scopeToast"]);return(0,Ae.createElement)(br.div,pt({},n,{ref:t}))});var ZK="ToastAction",PT=(0,Ae.forwardRef)((e,t)=>{let o=e,{altText:r}=o,n=Te(o,["altText"]);return r?(0,Ae.createElement)(OT,{altText:r,asChild:!0},(0,Ae.createElement)(WK,pt({},n,{ref:t}))):null});PT.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${ZK}\``)}};var GK="ToastClose",WK=(0,Ae.forwardRef)((e,t)=>{let i=e,{__scopeToast:r}=i,n=Te(i,["__scopeToast"]),o=HK(GK,r);return(0,Ae.createElement)(OT,{asChild:!0},(0,Ae.createElement)(br.button,pt({type:"button"},n,{ref:t,onClick:hr(e.onClick,o.onClose)})))}),OT=(0,Ae.forwardRef)((e,t)=>{let i=e,{__scopeToast:r,altText:n}=i,o=Te(i,["__scopeToast","altText"]);return(0,Ae.createElement)(br.div,pt({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function DT(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),XK(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(...DT(n))}}),t}function Em(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?ym(o,i):o.dispatchEvent(i)}var xT=(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 YK(e=()=>{}){let t=Wr(e);Fa(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function XK(e){return e.nodeType===e.ELEMENT_NODE}function JK(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 Fw(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var IT=MT,AT=LK,NT=jK,RT=KK;var kT=PT;c();d();f();var QK=()=>m.createElement("div",{className:"space-y-6"},m.createElement("div",{className:"-mt-6"},m.createElement("p",{className:"text-70868f mt-4 text-justify"},"Proof of Personhood Verification Service (\u201CPOP Service\u201D) allows other developers to leverage the World ID protocol to verify that their users are unique humans."),m.createElement("p",{className:"text-70868f mt-4 text-justify"},"The POP Service may allow developers to use other signals such as phone number verifications instead of, or in addition to the IrisCode. In the case of phone number verification, we use Twilio to collect, mask, and verify the phone number pursuant to"," ",m.createElement("a",{href:"https://www.twilio.com/legal/privacy",target:"_blank",rel:"noreferrer",className:"underline"},"its privacy notice"),"."),m.createElement("p",{className:"text-70868f mt-4 text-justify"},"Upon receipt of the confirmation of uniqueness from Twilio, we then inform the developers that the phone number has been verified. We only transmit your phone number until receipt of verification code,"," ",m.createElement("b",{className:"font-medium text-gray-900 dark:text-white/80"},"we do not store phone numbers or hashes of the phone numbers.")," ","We only provide developers with an irreversible hash of your phone number that lets them validate that the phone number is real and unique."),m.createElement("p",{className:"text-70868f mt-3 text-justify"},"Please note that this section only covers data that we collect, use, and share. It does not explain what developers do with any data we provide to them (or any other information they may collect about you separately)."),m.createElement("p",{className:"text-70868f mt-3 text-justify"},"More details in our"," ",m.createElement("a",{href:"https://worldcoin.org/privacy-statement",className:"underline",target:"_blank",rel:"noreferrer noopener"},"Privacy Statement"),"."))),FT=QK;c();d();f();c();d();f();var eZ=e=>m.createElement("svg",Se(te({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})),Mm=eZ;var tZ=e=>e.copy,rZ=()=>{let e=Gt(tZ);return m.createElement("div",{className:"space-y-6"},m.createElement("div",{className:"-mt-5 flex items-center justify-center"},m.createElement("div",{className:"bg-6445dd/10 inline-flex items-center justify-center rounded-full p-5"},m.createElement("div",{className:"bg-6445dd flex items-center justify-center rounded-full p-5"},m.createElement(Mm,{className:"w-8 text-white"})))),m.createElement("div",null,m.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),m.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},(e==null?void 0:e.success)||oa.success)))},UT=rZ;c();d();f();var c4=ce(ve(),1);c();d();f();c();d();f();var Tm=ce(ve(),1),nZ=()=>{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},$T=nZ;c();d();f();var bd=ce(ve(),1),RO=ce(BT(),1),kO=ce(IO(),1);c();d();f();var dW=({style:e})=>m.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:e},m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"})),AO=dW;var hW=window.btoa((0,kO.renderToString)(m.createElement(AO,{style:{color:"#6445DD"}}))),NO=new RO.default({width:320,height:320,type:"svg",image:`data:image/svg+xml;base64,${hW}`,cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},dotsOptions:{color:"currentColor",type:"extra-rounded"},backgroundOptions:{color:"transparent"},imageOptions:{margin:16,hideBackgroundDots:!0}}),LO=({data:e,className:t=""})=>{let r=(0,bd.useRef)(null);return(0,bd.useEffect)(()=>{!r.current||NO.append(r.current)},[]),(0,bd.useEffect)(()=>{NO.update({data:e})},[e]),m.createElement("div",{ref:r,className:Nr(t,"relative z-0 flex items-center justify-center rounded border box-border border-white/10 dark:border-black/10 [&_*]:text-black dark:[&_*]:text-white")})};c();d();f();var pW=({className:e=""})=>m.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 304 304"},m.createElement("path",{d:"M87.515 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM105.939 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M152 0a4.606 4.606 0 1 1 0 9.212A4.606 4.606 0 0 1 152 0Z"}),m.createElement("path",{d:"M161.212 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M170.424 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM207.273 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 0a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M105.939 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM133.576 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M142.788 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M152 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M179.636 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M188.848 9.212a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M198.061 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M207.273 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 9.212a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M105.939 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M115.151 18.424a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214Z"}),m.createElement("path",{d:"M124.364 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM179.636 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM198.061 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 18.424a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM115.151 27.636a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214Z"}),m.createElement("path",{d:"M124.364 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM198.061 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 27.636a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM124.364 36.849a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 36.849a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM161.212 36.849a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M105.939 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM133.576 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M142.788 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M152 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M179.636 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M188.848 46.06a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214Z"}),m.createElement("path",{d:"M198.061 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 46.06a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM115.151 55.273a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214ZM133.576 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM152 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM188.848 55.273a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214ZM207.273 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 55.273a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 64.485a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M96.727 64.485a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM115.151 64.485a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM179.636 64.485a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM207.273 64.485a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 64.485a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM32.242 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M41.454 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM59.879 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M69.09 73.697a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M96.727 73.697a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM124.364 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM152 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M280.97 73.697a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M13.818 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM69.09 82.91a4.606 4.606 0 1 1 .001 9.211 4.606 4.606 0 0 1 0-9.212ZM124.364 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M133.576 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM161.212 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM188.848 82.91a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.214ZM216.485 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM234.909 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM253.333 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 82.91a4.607 4.607 0 1 1-.001 9.212 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M271.758 82.91a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.212ZM4.606 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM23.03 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M32.242 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M41.454 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M50.667 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M59.879 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M69.09 92.121a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M78.303 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM105.939 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M115.151 92.121a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214Z"}),m.createElement("path",{d:"M124.364 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM188.848 92.121a4.607 4.607 0 1 1 0 9.214 4.607 4.607 0 0 1 0-9.214Z"}),m.createElement("path",{d:"M198.061 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM253.333 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM290.182 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M299.394 92.121a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM23.03 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M32.242 101.333a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM50.667 101.333a4.607 4.607 0 1 1-.002 9.213 4.607 4.607 0 0 1 .002-9.213ZM69.09 101.333a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M78.303 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M87.515 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM207.273 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M216.485 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM253.333 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M262.546 101.333a4.607 4.607 0 1 1-.003 9.215 4.607 4.607 0 0 1 .003-9.215ZM280.97 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M290.182 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M299.394 101.333a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM32.242 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M41.454 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M50.667 110.545a4.606 4.606 0 1 1-.001 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M59.879 110.545a4.606 4.606 0 1 1-.001 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M69.09 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M78.303 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M87.515 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM216.485 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M225.697 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM244.121 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M253.333 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM271.758 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM299.394 110.545a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM23.03 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM41.454 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM69.09 119.758a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M78.303 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM207.273 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM234.909 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM253.333 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM290.182 119.758a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM13.818 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM41.454 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M50.667 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M59.879 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 128.97a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM280.97 128.97a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM13.818 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM69.09 138.182a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M78.303 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 138.182a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M280.97 138.182a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM23.03 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM59.879 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M96.727 147.394a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM216.485 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM244.121 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M253.333 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 147.394a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM299.394 147.394a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM41.454 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 156.606a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM207.273 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM244.121 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M253.333 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 156.606a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM299.394 156.606a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM13.818 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M23.03 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM59.879 165.818a4.606 4.606 0 1 1-.001 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M69.09 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M78.303 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M87.515 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM207.273 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M216.485 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM244.121 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M253.333 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM271.758 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M280.97 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM299.394 165.818a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM4.606 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M13.818 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM32.242 175.03a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M41.454 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM207.273 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M244.121 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M280.97 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M290.182 175.03a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM50.667 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M59.879 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM253.333 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM299.394 184.243a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM23.03 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM50.667 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM69.09 193.455a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM207.273 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM253.333 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 193.455a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 193.455a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM32.242 202.667a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212ZM50.667 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M59.879 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M96.727 202.667a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM124.364 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM152 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M161.212 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM188.848 202.667a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM207.273 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM244.121 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M253.333 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 202.667a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM299.394 202.667a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM23.03 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM41.454 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM69.09 211.879a4.606 4.606 0 1 1 .001 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M78.303 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 211.879a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211ZM115.151 211.879a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M124.364 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 211.879a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM280.97 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM299.394 211.879a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM4.606 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M13.818 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M23.03 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM41.454 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M50.667 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M59.879 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM115.151 221.091a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M124.364 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M152 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM188.848 221.091a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM225.697 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M244.121 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M253.333 221.091a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M262.546 221.091a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM78.303 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM115.151 230.303a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M124.364 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM142.788 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M152 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM225.697 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 230.303a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 230.303a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M87.515 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M96.727 239.515a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211Z"}),m.createElement("path",{d:"M105.939 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM124.364 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M179.636 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM198.061 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M207.273 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM244.121 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 239.515a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 239.515a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM105.939 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M115.151 248.727a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM133.576 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM161.212 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M170.424 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM188.848 248.727a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM207.273 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M216.485 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 248.727a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M271.758 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M280.97 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M290.182 248.727a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM78.303 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M87.515 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM115.151 257.939a4.607 4.607 0 0 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M124.364 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM142.788 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM161.212 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM198.061 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM216.485 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M225.697 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M234.909 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M244.121 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M253.333 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213Z"}),m.createElement("path",{d:"M262.546 257.939a4.607 4.607 0 1 1-.003 9.215 4.607 4.607 0 0 1 .003-9.215ZM290.182 257.939a4.607 4.607 0 1 1-.001 9.213 4.607 4.607 0 0 1 .001-9.213ZM78.303 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M87.515 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M96.727 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM133.576 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M142.788 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM161.212 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM188.848 267.151a4.607 4.607 0 1 1 0 9.21 4.607 4.607 0 0 1 0-9.21ZM207.273 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM234.909 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM253.333 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM299.394 267.151a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM115.151 276.364a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213Z"}),m.createElement("path",{d:"M124.364 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M133.576 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM152 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM179.636 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M188.848 276.364a4.607 4.607 0 1 1 0 9.213 4.607 4.607 0 0 1 0-9.213ZM262.546 276.364a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM290.182 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M299.394 276.364a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM87.515 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM105.939 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM244.121 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM271.758 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M280.97 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M290.182 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M299.394 285.576a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM96.727 294.788a4.606 4.606 0 1 1 0 9.211 4.606 4.606 0 0 1 0-9.211Z"}),m.createElement("path",{d:"M105.939 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM133.576 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM152 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM170.424 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M179.636 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM216.485 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M225.697 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212Z"}),m.createElement("path",{d:"M234.909 294.788a4.606 4.606 0 1 1 0 9.212 4.606 4.606 0 0 1 0-9.212ZM262.546 294.788a4.606 4.606 0 1 1 0 9.213 4.606 4.606 0 0 1 0-9.213ZM42.47.005H22.015C12.048.005 3.603 6.591.903 15.593A21.361 21.361 0 0 0 0 21.769v20.939c0 12.006 9.88 21.77 22.016 21.77l10.226.002 10.227-.003c12.136 0 22.016-9.763 22.016-21.77V21.77c0-12-9.88-21.764-22.016-21.764Zm12.342 42.703c0 6.67-5.536 12.097-12.345 12.097l-10.225.002-10.224-.002c-6.809 0-12.345-5.428-12.345-12.097V21.769c0-2.083.54-4.045 1.491-5.76a12.267 12.267 0 0 1 3.771-4.14 12.45 12.45 0 0 1 7.08-2.19H42.47c6.806 0 12.343 5.423 12.343 12.09v20.939ZM281.984.005h-20.453c-9.968 0-18.413 6.586-21.113 15.588a21.467 21.467 0 0 0-.903 6.176v20.939c0 12.006 9.879 21.77 22.016 21.77l10.227.002 10.226-.003c12.136 0 22.016-9.763 22.016-21.77V21.77c0-12-9.879-21.764-22.016-21.764Zm12.343 42.703c0 6.67-5.536 12.097-12.345 12.097l-10.224.002-10.225-.002c-6.808 0-12.345-5.428-12.345-12.097V21.769c0-2.083.54-4.045 1.491-5.76a12.28 12.28 0 0 1 3.771-4.14 12.452 12.452 0 0 1 7.08-2.19h20.454c6.807 0 12.343 5.423 12.343 12.09v20.939ZM42.47 239.521H22.015c-9.968 0-18.413 6.585-21.113 15.587A21.36 21.36 0 0 0 0 261.284v20.939c0 12.006 9.88 21.77 22.016 21.77l10.226.002 10.227-.003c12.136 0 22.016-9.763 22.016-21.77v-20.938c0-12-9.88-21.763-22.016-21.763Zm12.342 42.702c0 6.67-5.536 12.097-12.345 12.097l-10.225.002-10.224-.002c-6.809 0-12.345-5.427-12.345-12.097v-20.939c0-2.083.54-4.045 1.491-5.759a12.27 12.27 0 0 1 3.771-4.141 12.454 12.454 0 0 1 7.08-2.191H42.47c6.806 0 12.343 5.424 12.343 12.091v20.939Z"}),m.createElement("path",{d:"M31.972 45.519c7.481 0 13.547-6.066 13.547-13.547 0-7.482-6.066-13.548-13.547-13.548-7.482 0-13.548 6.066-13.548 13.548 0 7.481 6.066 13.547 13.548 13.547ZM271.487 45.519c7.482 0 13.547-6.066 13.547-13.547 0-7.482-6.065-13.548-13.547-13.548s-13.548 6.066-13.548 13.548c0 7.481 6.066 13.547 13.548 13.547ZM31.972 285.034c7.481 0 13.547-6.065 13.547-13.547s-6.066-13.548-13.547-13.548c-7.482 0-13.548 6.066-13.548 13.548s6.066 13.547 13.548 13.547Z"}),m.createElement("path",{fill:"url(#b)",d:"M158.863 143.54a1.213 1.213 0 0 0 1.635.208 240.578 240.578 0 0 1 10.557-7.177 25.755 25.755 0 0 1 6.027 12.966c3.372-4.923 12.907-17.611 4.7-23.955-7.015-5.304-21.727 10.539-23.191 16.848a1.236 1.236 0 0 0 .272 1.11Z"}),m.createElement("path",{fill:"url(#c)",d:"M164.584 151.964c-.22.115-.403.294-.524.513a1.3 1.3 0 0 0 .102 1.415c.151.199.358.349.592.43 2.725.832 7.322 2.253 12.09 3.952a25.552 25.552 0 0 1-6.232 12.896c5.891-.416 21.59-.728 21.386-11.198-.306-8.875-21.625-10.747-27.414-8.008Z"}),m.createElement("path",{fill:"url(#d)",d:"M160.974 162.711a1.274 1.274 0 0 0-1.123 0c-.272.148-.48.392-.587.686-.106.294-.104.617.008.909a219.174 219.174 0 0 1 4.495 12.099c-7.118 3.917-13.758 3.051-13.758 3.051 3.95 4.437 13.962 16.744 21.897 10.088 6.606-5.79-5.21-23.956-10.932-26.833Z"}),m.createElement("path",{fill:"url(#e)",d:"M150.486 166.49a1.225 1.225 0 0 0-.252-.523 1.197 1.197 0 0 0-.463-.344 1.207 1.207 0 0 0-.89-.033c-.29.103-.531.313-.677.588-1.396 2.496-3.78 6.725-6.504 11.094a25.035 25.035 0 0 1-10.932-9.083c-.953 5.928-4.154 21.563 5.892 23.712 8.581 1.699 15.154-19.032 13.826-25.411Z"}),m.createElement("path",{fill:"url(#f)",d:"M141.053 160.527a1.299 1.299 0 0 0 .204-1.11 1.246 1.246 0 0 0-.517-.747 1.21 1.21 0 0 0-.879-.189c-2.793.451-7.526 1.179-12.566 1.734a26.024 26.024 0 0 1 .17-14.353c-5.142 2.912-19.173 10.089-14.541 19.449 4.018 7.87 24.076.243 28.129-4.784Z"}),m.createElement("path",{fill:"url(#g)",d:"M139.758 149.26a1.15 1.15 0 0 0 .988-.52 1.23 1.23 0 0 0-.136-1.664 222.986 222.986 0 0 1-9.161-8.945 24.994 24.994 0 0 1 11.136-8.805c-5.449-2.254-19.718-8.979-24.042.52-3.542 8.112 14.847 19.31 21.215 19.414Z"}),m.createElement("path",{fill:"url(#h)",d:"M148.613 141.702c.311-.007.609-.132.835-.35.226-.217.365-.513.391-.829.17-2.842.544-7.73 1.157-12.827 4.787-.243 9.54.924 13.69 3.363-1.634-5.755-5.346-21.286-15.324-18.79-8.446 2.219-5.653 23.817-1.737 28.983.114.153.264.275.437.354a1.1 1.1 0 0 0 .551.096Z"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"b",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"c",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"d",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"e",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"f",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"g",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})),m.createElement("linearGradient",{id:"h",x1:"188.378",x2:"100.564",y1:"93.493",y2:"106.103",gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FF6848"}),m.createElement("stop",{offset:"1",stopColor:"#5645F5"})))),FO=pW;c();d();f();var mW=e=>m.createElement("svg",Se(te({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),m.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"})),UO=mW;var gW=({qrData:e})=>{let t=$T();return m.createElement(m.Fragment,null,m.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative -mt-6 flex items-center justify-center rounded-2xl border py-8"},m.createElement("div",{className:"text-29343f dark:text-white"},e?m.createElement(LO,{data:t=="desktop"?e.default:e.mobile,className:"h-80 w-80"}):m.createElement(FO,{className:"h-80 w-80 animate-pulse opacity-20"})),m.createElement("div",{className:"absolute inset-x-0 bottom-0 flex translate-y-1/2 items-center justify-center"},m.createElement("p",{className:"text-d3dfea dark:bg-0d151d dark:text-596673 bg-white px-4"},"or"))),m.createElement("div",null,m.createElement(Dt.a,{layoutId:"submit-button",href:"https://worldcoin.org/download",target:"_blank",transition:{layout:{duration:.15}},className:Nr("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")},m.createElement(UO,{className:"h-5 w-5 text-gray-400"}),m.createElement(Dt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Download the Worldcoin app"))))},$O=gW;c();d();f();var Cb=(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))(Cb||{});c();d();f();var yW=()=>m.createElement("div",{className:"flex flex-col items-center justify-center space-y-12 pb-10"},m.createElement(Vl,{className:"h-20 w-20"}),m.createElement("div",{className:"space-y-4"},m.createElement("p",{className:"mx-auto max-w-[15rem] text-center text-3xl font-semibold text-black dark:text-white"},"Confirm on the Worldcoin app"),m.createElement("p",{className:"mx-auto max-w-xs text-lg text-gray-400 dark:text-gray-600"},"Please confirm the request inside the Worldcoin app to continue."))),BO=yW;c();d();f();var vF=ce(ve(),1);c();d();f();function Mb(e,t){let r=new window.URL("https://worldcoin.org/verify"),n=new RegExp("(?<=wc:)(.*?)(?=@)"),o=new RegExp("(?<=@)(.*?)(?=(\\?|$))"),i=new RegExp("(?<=relay-protocol=)(.*?)(?=(&|$))"),s=new RegExp("(?<=symKey=)(.*?)(?=(&|$))"),a=e.match(n),u=e.match(o),l=e.match(i),p=e.match(s);return a&&r.searchParams.append("t",a[0]),u&&r.searchParams.append("v",u[0]),l&&r.searchParams.append("p",l[0]),p&&r.searchParams.append("k",p[0]),t&&r.searchParams.append("r",t),console.log(`WC URI: ${e}`),console.log(`WLD URL: ${r.toString()}`),r.toString()}c();d();f();var cF=ce(s1());c();d();f();var Ki=ce(js()),Kx=ce(s1()),xL=ce(OD()),Rc=ce(AI()),At=ce(Yb());c();d();f();T1();var iA=ce(js()),A1=class extends No{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var N1=class extends No{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},R1=class{constructor(t,r){this.logger=t,this.core=r}},k1=class extends No{constructor(t,r){super(),this.relayer=t,this.logger=r}},L1=class extends No{constructor(t){super()}},F1=class{constructor(t,r,n,o){this.core=t,this.logger=r,this.name=n}};var U1=class extends No{constructor(t,r){super(),this.relayer=t,this.logger=r}};var $1=class extends No{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function Od(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 lc(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var Ld=ce(LA()),mN=ce(qa()),gN=ce(Li());c();d();f();var FA="EdDSA",UA="JWT",p_=".",m_="base64url",$A="utf8",BA="utf8",VA=":",jA="did",zA="key",g_="base58btc",HA="z",qA="K36";c();d();f();c();d();f();c();d();f();c();d();f();function pc(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function q1(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?pc(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function KA(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));let r=q1(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return pc(r)}c();d();f();c();d();f();c();d();f();var __={};Vr(__,{identity:()=>tX});c();d();f();c();d();f();c();d();f();function YY(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,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var C=0,N=0,M=0,T=v.length;M!==T&&v[M]===0;)M++,C++;for(var I=(T-M)*p+1>>>0,U=new Uint8Array(I);M!==T;){for(var K=v[M],J=0,j=I-1;(K!==0||J<N)&&j!==-1;j--,J++)K+=256*U[j]>>>0,U[j]=K%a>>>0,K=K/a>>>0;if(K!==0)throw new Error("Non-zero carry");N=J,M++}for(var Z=I-N;Z!==I&&U[Z]===0;)Z++;for(var le=u.repeat(C);Z<I;++Z)le+=e.charAt(U[Z]);return le}function y(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var C=0;if(v[C]!==" "){for(var N=0,M=0;v[C]===u;)N++,C++;for(var T=(v.length-C)*l+1>>>0,I=new Uint8Array(T);v[C];){var U=r[v.charCodeAt(C)];if(U===255)return;for(var K=0,J=T-1;(U!==0||K<M)&&J!==-1;J--,K++)U+=a*I[J]>>>0,I[J]=U%256>>>0,U=U/256>>>0;if(U!==0)throw new Error("Non-zero carry");M=K,C++}if(v[C]!==" "){for(var j=T-M;j!==T&&I[j]===0;)j++;for(var Z=new Uint8Array(N+(T-j)),le=N;j!==T;)Z[le++]=I[j++];return Z}}}function b(v){var C=y(v);if(C)return C;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:b}}var XY=YY,JY=XY,ZA=JY;c();d();f();var $6e=new Uint8Array(0);var GA=(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},Ui=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 WA=e=>new TextEncoder().encode(e),YA=e=>new TextDecoder().decode(e);var y_=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")}},v_=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 JA(this,t)}},w_=class{constructor(t){this.decoders=t}or(t){return JA(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`)}},JA=(e,t)=>new w_(te(te({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),b_=class{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new y_(t,r,n),this.decoder=new v_(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},mc=({name:e,prefix:t,encode:r,decode:n})=>new b_(e,t,r,n),Hs=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=ZA(r,t);return mc({prefix:e,name:t,encode:n,decode:i=>Ui(o(i))})},QY=(e,t,r,n)=>{let o={};for(let p=0;p<t.length;++p)o[t[p]]=p;let i=e.length;for(;e[i-1]==="=";)--i;let s=new Uint8Array(i*r/8|0),a=0,u=0,l=0;for(let p=0;p<i;++p){let h=o[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},eX=(e,t,r)=>{let n=t[t.length-1]==="=",o=(1<<r)-1,i="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],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},rr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>mc({prefix:t,name:e,encode(o){return eX(o,n,r)},decode(o){return QY(o,n,r,e)}});var tX=mc({prefix:"\0",name:"identity",encode:e=>YA(e),decode:e=>WA(e)});var x_={};Vr(x_,{base2:()=>rX});c();d();f();var rX=rr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var E_={};Vr(E_,{base8:()=>nX});c();d();f();var nX=rr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var S_={};Vr(S_,{base10:()=>oX});c();d();f();var oX=Hs({prefix:"9",name:"base10",alphabet:"0123456789"});var C_={};Vr(C_,{base16:()=>iX,base16upper:()=>sX});c();d();f();var iX=rr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),sX=rr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var M_={};Vr(M_,{base32:()=>gc,base32hex:()=>cX,base32hexpad:()=>dX,base32hexpadupper:()=>hX,base32hexupper:()=>fX,base32pad:()=>uX,base32padupper:()=>lX,base32upper:()=>aX,base32z:()=>pX});c();d();f();var gc=rr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),aX=rr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),uX=rr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),lX=rr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),cX=rr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),fX=rr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),dX=rr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),hX=rr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),pX=rr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var T_={};Vr(T_,{base36:()=>mX,base36upper:()=>gX});c();d();f();var mX=Hs({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),gX=Hs({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var P_={};Vr(P_,{base58btc:()=>ti,base58flickr:()=>yX});c();d();f();var ti=Hs({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),yX=Hs({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var O_={};Vr(O_,{base64:()=>vX,base64pad:()=>wX,base64url:()=>bX,base64urlpad:()=>_X});c();d();f();var vX=rr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),wX=rr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),bX=rr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),_X=rr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var D_={};Vr(D_,{base256emoji:()=>MX});c();d();f();var QA=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}"),xX=QA.reduce((e,t,r)=>(e[r]=t,e),[]),EX=QA.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function SX(e){return e.reduce((t,r)=>(t+=xX[r],t),"")}function CX(e){let t=[];for(let r of e){let n=EX[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var MX=mc({prefix:"\u{1F680}",name:"base256emoji",encode:SX,decode:CX});var R_={};Vr(R_,{sha256:()=>qX,sha512:()=>KX});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var TX=rN,eN=128,PX=127,OX=~PX,DX=Math.pow(2,31);function rN(e,t,r){t=t||[],r=r||0;for(var n=r;e>=DX;)t[r++]=e&255|eN,e/=128;for(;e&OX;)t[r++]=e&255|eN,e>>>=7;return t[r]=e|0,rN.bytes=r-n+1,t}var IX=I_,AX=128,tN=127;function I_(e,n){var r=0,n=n||0,o=0,i=n,s,a=e.length;do{if(i>=a)throw I_.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&tN)<<o:(s&tN)*Math.pow(2,o),o+=7}while(s>=AX);return I_.bytes=i-n,r}var NX=Math.pow(2,7),RX=Math.pow(2,14),kX=Math.pow(2,21),LX=Math.pow(2,28),FX=Math.pow(2,35),UX=Math.pow(2,42),$X=Math.pow(2,49),BX=Math.pow(2,56),VX=Math.pow(2,63),jX=function(e){return e<NX?1:e<RX?2:e<kX?3:e<LX?4:e<FX?5:e<UX?6:e<$X?7:e<BX?8:e<VX?9:10},zX={encode:TX,decode:IX,encodingLength:jX},HX=zX,Ad=HX;var Nd=(e,t=0)=>[Ad.decode(e,t),Ad.decode.bytes],yc=(e,t,r=0)=>(Ad.encode(e,t,r),t),vc=e=>Ad.encodingLength(e);var Wa=(e,t)=>{let r=t.byteLength,n=vc(e),o=n+vc(r),i=new Uint8Array(o+r);return yc(e,i,0),yc(r,i,n),i.set(t,o),new wc(e,r,t,i)},nN=e=>{let t=Ui(e),[r,n]=Nd(t),[o,i]=Nd(t.subarray(n)),s=t.subarray(n+i);if(s.byteLength!==o)throw new Error("Incorrect length");return new wc(r,o,s,t)},oN=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&GA(e.bytes,t.bytes),wc=class{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}};var N_=({name:e,code:t,encode:r})=>new A_(e,t,r),A_=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?Wa(this.code,r):r.then(n=>Wa(this.code,n))}else throw Error("Unknown type, must be binary type")}};var sN=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),qX=N_({name:"sha2-256",code:18,encode:sN("SHA-256")}),KX=N_({name:"sha2-512",code:19,encode:sN("SHA-512")});var k_={};Vr(k_,{identity:()=>WX});c();d();f();var aN=0,ZX="identity",uN=Ui,GX=e=>Wa(aN,uN(e)),WX={code:aN,name:ZX,encode:uN,digest:GX};c();d();f();c();d();f();var swe=new TextEncoder,awe=new TextDecoder;c();d();f();c();d();f();var _r=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:G1,byteLength:G1,code:Z1,version:Z1,multihash:Z1,bytes:Z1,_baseCache:G1,asCID:G1})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==kd)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==tJ)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return _r.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=Wa(t,r);return _r.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&&oN(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:o}=this;switch(n){case 0:return QX(r,o,t||ti.encoder);default:return eJ(r,o,t||gc.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 nJ(/^0\.0/,oJ),!!(t&&(t[cN]||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 _r)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:o,bytes:i}=t;return new _r(r,n,o,i||lN(r,n,o.bytes))}else if(t!=null&&t[cN]===!0){let{version:r,multihash:n,code:o}=t,i=nN(n);return _r.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!==kd)throw new Error(`Version 0 CID must use dag-pb (code: ${kd}) block encoding`);return new _r(t,r,n,n.bytes)}case 1:{let o=lN(t,r,n.bytes);return new _r(t,r,n,o)}default:throw new Error("Invalid version")}}static createV0(t){return _r.create(0,kd,t)}static createV1(t,r){return _r.create(1,t,r)}static decode(t){let[r,n]=_r.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=_r.inspectBytes(t),n=r.size-r.multihashSize,o=Ui(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 wc(r.multihashCode,r.digestSize,i,o);return[r.version===0?_r.createV0(s):_r.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,y]=Nd(t.subarray(r));return r+=y,h},o=n(),i=kd;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(),u=n(),l=r+u,p=l-s;return{version:o,codec:i,multihashCode:a,digestSize:u,multihashSize:p,size:l}}static parse(t,r){let[n,o]=JX(t,r),i=_r.decode(o);return i._baseCache.set(n,t),i}},JX=(e,t)=>{switch(e[0]){case"Q":{let r=t||ti;return[ti.prefix,r.decode(`${ti.prefix}${e}`)]}case ti.prefix:{let r=t||ti;return[ti.prefix,r.decode(e)]}case gc.prefix:{let r=t||gc;return[gc.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)]}}},QX=(e,t,r)=>{let{prefix:n}=r;if(n!==ti.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},eJ=(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},kd=112,tJ=18,lN=(e,t,r)=>{let n=vc(e),o=n+vc(t),i=new Uint8Array(o+r.byteLength);return yc(e,i,0),yc(t,i,n),i.set(r,o),i},cN=Symbol.for("@ipld/js-cid/CID"),Z1={writable:!1,configurable:!1,enumerable:!0},G1={writable:!1,enumerable:!1,configurable:!1},rJ="0.0.0-dev",nJ=(e,t)=>{if(e.test(rJ))console.warn(t);else throw new Error(t)},oJ=`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 bc=te(te(te(te(te(te(te(te(te(te({},__),x_),E_),S_),C_),M_),T_),P_),O_),D_),mwe=te(te({},R_),k_);function dN(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var fN=dN("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),L_=dN("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=q1(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),iJ=te({utf8:fN,"utf-8":fN,hex:bc.base16,latin1:L_,ascii:L_,binary:L_},bc),W1=iJ;function Y1(e,t="utf8"){let r=W1[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 X1(e,t="utf8"){let r=W1[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?pc(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function J1(e){return Y1(X1(lc(e),$A),m_)}function Q1(e){let t=X1(qA,g_),r=HA+Y1(KA([t,e]),g_);return[jA,zA,r].join(VA)}function sJ(e){return Y1(e,m_)}function hN(e){return X1([J1(e.header),J1(e.payload)].join(p_),BA)}function pN(e){return[J1(e.header),J1(e.payload),sJ(e.signature)].join(p_)}function F_(e=(0,mN.randomBytes)(32)){return Ld.generateKeyPairFromSeed(e)}async function yN(e,t,r,n,o=(0,gN.fromMiliseconds)(Date.now())){let i={alg:FA,typ:UA},s=Q1(n.publicKey),a=o+r,u={iss:s,sub:e,aud:t,iat:o,exp:a},l=hN({header:i,payload:u}),p=Ld.sign(n.secretKey,l);return pN({header:i,payload:u,signature:p})}c();d();f();c();d();f();var W_=ce(og()),dR=ce(ig()),Y_=ce(qa()),Hd=ce(ug()),yg=ce(fg());c();d();f();c();d();f();c();d();f();c();d();f();function Vd(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function xc(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));let r=Vd(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 kN(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var RN=kN("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),H_=kN("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=Vd(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),FJ=te({utf8:RN,"utf-8":RN,hex:bc.base16,latin1:H_,ascii:H_,binary:H_},bc),dg=FJ;function dn(e,t="utf8"){let r=dg[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 hn(e,t="utf8"){let r=dg[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 LN=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))},UJ=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var $J=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var BJ=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 VJ=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var jJ=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var zJ=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,HJ=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,FN=3,qJ=[["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",zJ]],UN=[["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 BN(e){return e?$N(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new jJ:typeof navigator<"u"?$N(navigator.userAgent):GJ()}function KJ(e){return e!==""&&qJ.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 $N(e){var t=KJ(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new VJ;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?o.length<FN&&(o=LN(LN([],o,!0),WJ(FN-o.length),!0)):o=[];var i=o.join("."),s=ZJ(e),a=HJ.exec(e);return a&&a[1]?new BJ(r,i,s,a[1]):new UJ(r,i,s)}function ZJ(e){for(var t=0,r=UN.length;t<r;t++){var n=UN[t],o=n[0],i=n[1],s=i.exec(e);if(s)return o}return null}function GJ(){var e=typeof process<"u"&&process.version;return e?new $J(process.version.slice(1)):null}function WJ(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var zi=ce(Li()),Xa=ce(jd()),gQ=ce(pg()),Sc=ce(mg());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var gg={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 hR="base10",Dn="base16",Z_="base64pad",X_="utf8",pR=0,Ja=1,yQ=0,sR=1,G_=12,J_=32;function mR(){let e=yg.generateKeyPair();return{privateKey:hn(e.secretKey,Dn),publicKey:hn(e.publicKey,Dn)}}function vg(){let e=(0,Y_.randomBytes)(J_);return hn(e,Dn)}function gR(e,t){let r=yg.sharedKey(dn(e,Dn),dn(t,Dn)),n=new dR.HKDF(Hd.SHA256,r).expand(J_);return hn(n,Dn)}function yR(e){let t=(0,Hd.hash)(dn(e,Dn));return hn(t,Dn)}function wg(e){let t=(0,Hd.hash)(dn(e,X_));return hn(t,Dn)}function vQ(e){return dn(`${e}`,hR)}function Cc(e){return Number(hn(e,hR))}function vR(e){let t=vQ(typeof e.type<"u"?e.type:pR);if(Cc(t)===Ja&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?dn(e.senderPublicKey,Dn):void 0,n=typeof e.iv<"u"?dn(e.iv,Dn):(0,Y_.randomBytes)(G_),o=new W_.ChaCha20Poly1305(dn(e.symKey,Dn)).seal(n,dn(e.message,X_));return wQ({type:t,sealed:o,iv:n,senderPublicKey:r})}function wR(e){let t=new W_.ChaCha20Poly1305(dn(e.symKey,Dn)),{sealed:r,iv:n}=bg(e.encoded),o=t.open(n,r);if(o===null)throw new Error("Failed to decrypt");return hn(o,X_)}function wQ(e){if(Cc(e.type)===Ja){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return hn(xc([e.type,e.senderPublicKey,e.iv,e.sealed]),Z_)}return hn(xc([e.type,e.iv,e.sealed]),Z_)}function bg(e){let t=dn(e,Z_),r=t.slice(yQ,sR),n=sR;if(Cc(r)===Ja){let a=n+J_,u=a+G_,l=t.slice(n,a),p=t.slice(a,u),h=t.slice(u);return{type:r,sealed:h,iv:p,senderPublicKey:l}}let o=n+G_,i=t.slice(n,o),s=t.slice(o);return{type:r,sealed:s,iv:i}}function bR(e,t){let r=bg(e);return Q_({type:Cc(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?hn(r.senderPublicKey,Dn):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function Q_(e){let t=(e==null?void 0:e.type)||pR;if(t===Ja){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 ex(e){return e.type===Ja&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var bQ=Object.defineProperty,aR=Object.getOwnPropertySymbols,_Q=Object.prototype.hasOwnProperty,xQ=Object.prototype.propertyIsEnumerable,uR=(e,t,r)=>t in e?bQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lR=(e,t)=>{for(var r in t||(t={}))_Q.call(t,r)&&uR(e,r,t[r]);if(aR)for(var r of aR(t))xQ.call(t,r)&&uR(e,r,t[r]);return e},EQ="ReactNative",zd={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var SQ="js";function _R(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function CQ(){return!(0,Xa.getDocument)()&&!!(0,Xa.getNavigator)()&&navigator.product===EQ}function MQ(){return!_R()&&!!(0,Xa.getNavigator)()}function TQ(){return CQ()?zd.reactNative:_R()?zd.node:MQ()?zd.browser:zd.unknown}function PQ(e,t){let r=Sc.parse(e);return r=lR(lR({},r),t),e=Sc.stringify(r),e}function OQ(){let e=BN();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 DQ(){var e;let t=TQ();return t===zd.browser?[t,((e=(0,Xa.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function IQ(e,t,r){let n=OQ(),o=DQ();return[[e,t].join("-"),[SQ,r].join("-"),n,o].join("/")}function xR({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:o,projectId:i}){let s=r.split("?"),a=IQ(e,t,n),u={auth:o,ua:a,projectId:i},l=PQ(s[1]||"",u);return s[0]+"?"+l}function tx(e){return Object.fromEntries(e.entries())}function rx(e){return new Map(Object.entries(e))}function _g(e,t){return(0,zi.fromMiliseconds)((t||Date.now())+(0,zi.toMiliseconds)(e))}function nx(e){return(0,zi.fromMiliseconds)(Date.now())>=(0,zi.toMiliseconds)(e)}function ER(){let e=(0,zi.toMiliseconds)(zi.FIVE_MINUTES),t,r,n;return{resolve:o=>{n&&t&&(clearTimeout(n),t(o))},reject:o=>{n&&r&&(clearTimeout(n),r(o))},done:()=>new Promise((o,i)=>{n=setTimeout(i,e),t=o,r=i})}}function ox(e,t){return new Promise(async(r,n)=>{let o=setTimeout(()=>n(),t),i=await e;clearTimeout(o),r(i)})}function SR(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 CR(e){return SR("topic",e)}function MR(e){return SR("id",e)}function TR(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 xg(e,t){return`${e}${t?`:${t}`:""}`}var AQ="irn";function Eg(e){return(e==null?void 0:e.relay)||{protocol:AQ}}function Sg(e){let t=gg[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var NQ=Object.defineProperty,cR=Object.getOwnPropertySymbols,RQ=Object.prototype.hasOwnProperty,kQ=Object.prototype.propertyIsEnumerable,fR=(e,t,r)=>t in e?NQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LQ=(e,t)=>{for(var r in t||(t={}))RQ.call(t,r)&&fR(e,r,t[r]);if(cR)for(var r of cR(t))kQ.call(t,r)&&fR(e,r,t[r]);return e};function FQ(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 PR(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=Sc.parse(i);return{protocol:n,topic:o[0],version:parseInt(o[1],10),symKey:s.symKey,relay:FQ(s)}}function UQ(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 OR(e){return`${e.protocol}:${e.topic}@${e.version}?`+Sc.stringify(LQ({symKey:e.symKey},UQ(e.relay)))}var $Q={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},BQ={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 It(e,t){let{message:r,code:n}=BQ[e];return{message:t?`${r} ${t}`:r,code:n}}function Mc(e,t){let{message:r,code:n}=$Q[e];return{message:t?`${r} ${t}`:r,code:n}}function qd(e){return typeof e>"u"}function ix(e,t){return t&&qd(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function DR(e){if(ix(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function IR(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function AR(e){return e==null?void 0:e.topic}function Cg(e){return typeof e<"u"&&typeof e!==null}var zt=ce(Li());c();d();f();c();d();f();var gk=ce(js());var xr={};Vr(xr,{DEFAULT_ERROR:()=>Zd,IBaseJsonRpcProvider:()=>Lg,IEvents:()=>Oc,IJsonRpcConnection:()=>fx,IJsonRpcProvider:()=>Gd,INTERNAL_ERROR:()=>Mg,INVALID_PARAMS:()=>LR,INVALID_REQUEST:()=>RR,METHOD_NOT_FOUND:()=>kR,PARSE_ERROR:()=>NR,RESERVED_ERROR_CODES:()=>sx,SERVER_ERROR:()=>Kd,SERVER_ERROR_CODE_RANGE:()=>Tg,STANDARD_ERROR_MAP:()=>Ks,formatErrorMessage:()=>pk,formatJsonRpcError:()=>Qa,formatJsonRpcRequest:()=>Ws,formatJsonRpcResult:()=>Pc,getError:()=>Og,getErrorByCode:()=>Dg,isHttpUrl:()=>XQ,isJsonRpcError:()=>pn,isJsonRpcPayload:()=>hx,isJsonRpcRequest:()=>Dc,isJsonRpcResponse:()=>eu,isJsonRpcResult:()=>mo,isJsonRpcValidationInvalid:()=>JQ,isLocalhostUrl:()=>dx,isNodeJs:()=>dk,isReservedErrorCode:()=>Pg,isServerErrorCode:()=>VQ,isValidDefaultRoute:()=>Rg,isValidErrorCode:()=>FR,isValidLeadingWildcardRoute:()=>KQ,isValidRoute:()=>qQ,isValidTrailingWildcardRoute:()=>ZQ,isValidWildcardRoute:()=>kg,isWsUrl:()=>Fg,parseConnectionError:()=>ax,payloadId:()=>hk,validateJsonRpcError:()=>jQ});c();d();f();c();d();f();var NR="PARSE_ERROR",RR="INVALID_REQUEST",kR="METHOD_NOT_FOUND",LR="INVALID_PARAMS",Mg="INTERNAL_ERROR",Kd="SERVER_ERROR",sx=[-32700,-32600,-32601,-32602,-32603],Tg=[-32e3,-32099],Ks={[NR]:{code:-32700,message:"Parse error"},[RR]:{code:-32600,message:"Invalid Request"},[kR]:{code:-32601,message:"Method not found"},[LR]:{code:-32602,message:"Invalid params"},[Mg]:{code:-32603,message:"Internal error"},[Kd]:{code:-32e3,message:"Server error"}},Zd=Kd;c();d();f();function VQ(e){return e<=Tg[0]&&e>=Tg[1]}function Pg(e){return sx.includes(e)}function FR(e){return typeof e=="number"}function Og(e){return Object.keys(Ks).includes(e)?Ks[e]:Ks[Zd]}function Dg(e){let t=Object.values(Ks).find(r=>r.code===e);return t||Ks[Zd]}function jQ(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(!FR(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(Pg(e.error.code)){let t=Dg(e.error.code);if(t.message!==Ks[Zd].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function ax(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={};Vr(ur,{isNodeJs:()=>dk});c();d();f();var fk=ce(cx());gr(ur,ce(cx()));var dk=fk.isNode;gr(xr,ur);c();d();f();function hk(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Ws(e,t,r){return{id:r||hk(),jsonrpc:"2.0",method:e,params:t}}function Pc(e,t){return{id:e,jsonrpc:"2.0",result:t}}function Qa(e,t,r){return{id:e,jsonrpc:"2.0",error:pk(t,r)}}function pk(e,t){return typeof e>"u"?Og(Mg):(typeof e=="string"&&(e=Object.assign(Object.assign({},Og(Kd)),{message:e})),typeof t<"u"&&(e.data=t),Pg(e.code)&&(e=Dg(e.code)),e)}c();d();f();function qQ(e){return e.includes("*")?kg(e):!/\W/g.test(e)}function Rg(e){return e==="*"}function kg(e){return Rg(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function KQ(e){return!Rg(e)&&kg(e)&&!e.split("*")[0].trim()}function ZQ(e){return!Rg(e)&&kg(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Oc=class{};c();d();f();var fx=class extends Oc{constructor(t){super()}},Lg=class extends Oc{constructor(){super()}},Gd=class extends Lg{constructor(t){super()}};c();d();f();c();d();f();var GQ="^https?:",WQ="^wss?:";function YQ(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function mk(e,t){let r=YQ(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function XQ(e){return mk(e,GQ)}function Fg(e){return mk(e,WQ)}function dx(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function hx(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Dc(e){return hx(e)&&"method"in e}function eu(e){return hx(e)&&(mo(e)||pn(e))}function mo(e){return"result"in e}function pn(e){return"error"in e}function JQ(e){return"error"in e&&e.valid===!1}var Ug=class extends Gd{constructor(t){super(t),this.events=new gk.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(Ws(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=>{pn(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),eu(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 bk=ce(js());var wk=10,QQ=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:vk(),eee=()=>typeof window<"u",tee=QQ(),px=class{constructor(t){if(this.url=t,this.events=new bk.EventEmitter,this.registering=!1,!Fg(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(){if(typeof this.socket>"u")throw new Error("Connection already closed");this.socket.close(),this.onClose()}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(lc(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!Fg(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,xr.isReactNative)()?void 0:{rejectUnauthorized:!dx(t)},i=new tee(t,[],o);eee()?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"?Od(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),o=n.message||n.toString(),i=Qa(t,o);this.events.emit("payload",i)}parseError(t,r=this.url){return ax(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>wk&&this.events.setMaxListeners(wk)}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}},_k=px;var xk=_k;var EL=ce(nL());function Ate(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,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var C=0,N=0,M=0,T=v.length;M!==T&&v[M]===0;)M++,C++;for(var I=(T-M)*p+1>>>0,U=new Uint8Array(I);M!==T;){for(var K=v[M],J=0,j=I-1;(K!==0||J<N)&&j!==-1;j--,J++)K+=256*U[j]>>>0,U[j]=K%a>>>0,K=K/a>>>0;if(K!==0)throw new Error("Non-zero carry");N=J,M++}for(var Z=I-N;Z!==I&&U[Z]===0;)Z++;for(var le=u.repeat(C);Z<I;++Z)le+=e.charAt(U[Z]);return le}function y(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var C=0;if(v[C]!==" "){for(var N=0,M=0;v[C]===u;)N++,C++;for(var T=(v.length-C)*l+1>>>0,I=new Uint8Array(T);v[C];){var U=r[v.charCodeAt(C)];if(U===255)return;for(var K=0,J=T-1;(U!==0||K<M)&&J!==-1;J--,K++)U+=a*I[J]>>>0,I[J]=U%256>>>0,U=U/256>>>0;if(U!==0)throw new Error("Non-zero carry");M=K,C++}if(v[C]!==" "){for(var j=T-M;j!==T&&I[j]===0;)j++;for(var Z=new Uint8Array(N+(T-j)),le=N;j!==T;)Z[le++]=I[j++];return Z}}}function b(v){var C=y(v);if(C)return C;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:b}}var Nte=Ate,Rte=Nte,SL=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")},kte=e=>new TextEncoder().encode(e),Lte=e=>new TextDecoder().decode(e),Px=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")}},Ox=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 CL(this,t)}},Dx=class{constructor(t){this.decoders=t}or(t){return CL(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`)}},CL=(e,t)=>new Dx(te(te({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Ix=class{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new Px(t,r,n),this.decoder=new Ox(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},Jg=({name:e,prefix:t,encode:r,decode:n})=>new Ix(e,t,r,n),rh=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=Rte(r,t);return Jg({prefix:e,name:t,encode:n,decode:i=>SL(o(i))})},Fte=(e,t,r,n)=>{let o={};for(let p=0;p<t.length;++p)o[t[p]]=p;let i=e.length;for(;e[i-1]==="=";)--i;let s=new Uint8Array(i*r/8|0),a=0,u=0,l=0;for(let p=0;p<i;++p){let h=o[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},Ute=(e,t,r)=>{let n=t[t.length-1]==="=",o=(1<<r)-1,i="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],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},Br=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Jg({prefix:t,name:e,encode(o){return Ute(o,n,r)},decode(o){return Fte(o,n,r,e)}}),$te=Jg({prefix:"\0",name:"identity",encode:e=>Lte(e),decode:e=>kte(e)}),Bte=Object.freeze({__proto__:null,identity:$te}),Vte=Br({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),jte=Object.freeze({__proto__:null,base2:Vte}),zte=Br({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Hte=Object.freeze({__proto__:null,base8:zte}),qte=rh({prefix:"9",name:"base10",alphabet:"0123456789"}),Kte=Object.freeze({__proto__:null,base10:qte}),Zte=Br({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Gte=Br({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Wte=Object.freeze({__proto__:null,base16:Zte,base16upper:Gte}),Yte=Br({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Xte=Br({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Jte=Br({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Qte=Br({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ere=Br({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),tre=Br({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),rre=Br({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),nre=Br({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ore=Br({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),ire=Object.freeze({__proto__:null,base32:Yte,base32upper:Xte,base32pad:Jte,base32padupper:Qte,base32hex:ere,base32hexupper:tre,base32hexpad:rre,base32hexpadupper:nre,base32z:ore}),sre=rh({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),are=rh({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),ure=Object.freeze({__proto__:null,base36:sre,base36upper:are}),lre=rh({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),cre=rh({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),fre=Object.freeze({__proto__:null,base58btc:lre,base58flickr:cre}),dre=Br({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),hre=Br({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),pre=Br({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),mre=Br({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),gre=Object.freeze({__proto__:null,base64:dre,base64pad:hre,base64url:pre,base64urlpad:mre}),ML=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}"),yre=ML.reduce((e,t,r)=>(e[r]=t,e),[]),vre=ML.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function wre(e){return e.reduce((t,r)=>(t+=yre[r],t),"")}function bre(e){let t=[];for(let r of e){let n=vre[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var _re=Jg({prefix:"\u{1F680}",name:"base256emoji",encode:wre,decode:bre}),xre=Object.freeze({__proto__:null,base256emoji:_re}),Ere=TL,oL=128,Sre=127,Cre=~Sre,Mre=Math.pow(2,31);function TL(e,t,r){t=t||[],r=r||0;for(var n=r;e>=Mre;)t[r++]=e&255|oL,e/=128;for(;e&Cre;)t[r++]=e&255|oL,e>>>=7;return t[r]=e|0,TL.bytes=r-n+1,t}var Tre=Ax,Pre=128,iL=127;function Ax(e,n){var r=0,n=n||0,o=0,i=n,s,a=e.length;do{if(i>=a)throw Ax.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&iL)<<o:(s&iL)*Math.pow(2,o),o+=7}while(s>=Pre);return Ax.bytes=i-n,r}var Ore=Math.pow(2,7),Dre=Math.pow(2,14),Ire=Math.pow(2,21),Are=Math.pow(2,28),Nre=Math.pow(2,35),Rre=Math.pow(2,42),kre=Math.pow(2,49),Lre=Math.pow(2,56),Fre=Math.pow(2,63),Ure=function(e){return e<Ore?1:e<Dre?2:e<Ire?3:e<Are?4:e<Nre?5:e<Rre?6:e<kre?7:e<Lre?8:e<Fre?9:10},$re={encode:Ere,decode:Tre,encodingLength:Ure},PL=$re,sL=(e,t,r=0)=>(PL.encode(e,t,r),t),aL=e=>PL.encodingLength(e),Nx=(e,t)=>{let r=t.byteLength,n=aL(e),o=n+aL(r),i=new Uint8Array(o+r);return sL(e,i,0),sL(r,i,n),i.set(t,o),new Rx(e,r,t,i)},Rx=class{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}},OL=({name:e,code:t,encode:r})=>new kx(e,t,r),kx=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?Nx(this.code,r):r.then(n=>Nx(this.code,n))}else throw Error("Unknown type, must be binary type")}},DL=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Bre=OL({name:"sha2-256",code:18,encode:DL("SHA-256")}),Vre=OL({name:"sha2-512",code:19,encode:DL("SHA-512")}),jre=Object.freeze({__proto__:null,sha256:Bre,sha512:Vre}),IL=0,zre="identity",AL=SL,Hre=e=>Nx(IL,AL(e)),qre={code:IL,name:zre,encode:AL,digest:Hre},Kre=Object.freeze({__proto__:null,identity:qre});new TextEncoder,new TextDecoder;var uL=te(te(te(te(te(te(te(te(te(te({},Bte),jte),Hte),Kte),Wte),ire),ure),fre),gre),xre);te(te({},jre),Kre);function Zre(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function NL(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var lL=NL("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Mx=NL("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=Zre(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Gre=te({utf8:lL,"utf-8":lL,hex:uL.base16,latin1:Mx,ascii:Mx,binary:Mx},uL);function Wre(e,t="utf8"){let r=Gre[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 RL="wc",Yre=2,Zx="core",Js=`${RL}@${2}:${Zx}:`,Xre={name:Zx,logger:"error"},Jre={database:":memory:"},Qre="crypto",cL="client_ed25519_seed",ene=zt.ONE_DAY,tne="keychain",rne="0.3",nne="messages",one="0.3",ine=zt.SIX_HOURS,sne="publisher",Gx="irn",ane="error",une="wss://relay.walletconnect.com",lne="relayer",mn={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed"},cne="_subscription",Yg={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},fL=zt.ONE_SECOND;var fne="2.2.0",dne="0.3",si={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var hne="subscription",pne="0.3",mne=zt.FIVE_SECONDS*1e3,gne="pairing",yne="0.3";var eh={wc_pairingDelete:{req:{ttl:zt.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:zt.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:zt.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:zt.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:zt.ONE_DAY,prompt:!1,tag:0},res:{ttl:zt.ONE_DAY,prompt:!1,tag:0}}},ii={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},vne="history",wne="0.3",bne="expirer",Xn={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},_ne="0.3";var Lx=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=tne,this.version=rne,this.initialized=!1,this.storagePrefix=Js,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}=It("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,At.generateChildLogger)(r,this.name)}get context(){return(0,At.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,tx(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?rx(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},Fx=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=Qre,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=F_(o);return Q1(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let o=mR();return this.setPrivateKey(o.publicKey,o.privateKey)},this.signJWT=async o=>{this.isInitialized();let i=await this.getClientSeed(),s=F_(i),a=vg();return await yN(a,o,ene,s)},this.generateSharedKey=(o,i,s)=>{this.isInitialized();let a=this.getPrivateKey(o),u=gR(a,i);return this.setSymKey(u,s)},this.setSymKey=async(o,i)=>{this.isInitialized();let s=i||yR(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=Q_(s),u=lc(i);if(ex(a)){let y=a.senderPublicKey,b=a.receiverPublicKey;o=await this.generateSharedKey(y,b)}let l=this.getSymKey(o),{type:p,senderPublicKey:h}=a;return vR({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(o,i,s)=>{this.isInitialized();let a=bR(i,s);if(ex(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;o=await this.generateSharedKey(p,h)}let u=this.getSymKey(o),l=wR({symKey:u,encoded:i});return Od(l)},this.core=t,this.logger=(0,At.generateChildLogger)(r,this.name),this.keychain=n||new Lx(this.core,this.logger)}get context(){return(0,At.getLoggerContext)(this.logger)}getPayloadType(t){let r=bg(t);return Cc(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(cL)}catch(r){t=vg(),await this.keychain.set(cL,t)}return Wre(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},Ux=class extends R1{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=nne,this.version=one,this.initialized=!1,this.storagePrefix=Js,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=wg(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=wg(o);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,At.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,At.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,tx(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?rx(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},$x=class extends k1{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Ki.EventEmitter,this.name=sne,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)||ine,a=Eg(i),u=(i==null?void 0:i.prompt)||!1,l=(i==null?void 0:i.tag)||0,p={topic:n,message:o,opts:{ttl:s,relay:a,prompt:u,tag:l}},h=wg(o);this.queue.set(h,p);try{await await ox(this.rpcPublish(n,o,s,a,u,l),this.publishTimeout)}catch(y){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(mn.connection_stalled);return}this.onPublish(h,p),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,At.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,At.getLoggerContext)(this.logger)}rpcPublish(t,r,n,o,i,s){var a,u,l,p;let h={method:Sg(o.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:i,tag:s}};return qd((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),qd((l=h.params)==null?void 0:l.tag)&&((p=h.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:o}=t;await this.publish(r,n,o)})}registerEventListeners(){this.relayer.core.heartbeat.on(Rc.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},Bx=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())}},xne=Object.defineProperty,Ene=Object.defineProperties,Sne=Object.getOwnPropertyDescriptors,dL=Object.getOwnPropertySymbols,Cne=Object.prototype.hasOwnProperty,Mne=Object.prototype.propertyIsEnumerable,hL=(e,t,r)=>t in e?xne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xg=(e,t)=>{for(var r in t||(t={}))Cne.call(t,r)&&hL(e,r,t[r]);if(dL)for(var r of dL(t))Mne.call(t,r)&&hL(e,r,t[r]);return e},Tx=(e,t)=>Ene(e,Sne(t)),Vx=class extends U1{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new Bx,this.events=new Ki.EventEmitter,this.name=hne,this.version=pne,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pendingSubInterval=20,this.storagePrefix=Js,this.subscribeTimeout=1e4,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable())},this.subscribe=async(n,o)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:o}});try{let i=Eg(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)=>{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 zt.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)>=mne&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pendingSubInterval)}),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()=>{await this.restore(),await this.reset()},this.relayer=t,this.logger=(0,At.generateChildLogger)(r,this.name)}get context(){return(0,At.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=Eg(n);await this.rpcUnsubscribe(t,r,o);let i=Mc("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:Sg(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});let o;try{o=await await ox(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(mn.connection_stalled)}return o}rpcUnsubscribe(t,r,n){let o={method:Sg(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,Tx(Xg({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,Tx(Xg({},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,Xg({},r)),this.topicMap.set(r.topic,t),this.events.emit(si.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}=It("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(si.deleted,Tx(Xg({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(si.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(si.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=It("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){let{topic:r,relay:n}=t,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(){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(Rc.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(mn.connect,async()=>{await this.onConnect()}),this.relayer.on(mn.disconnect,()=>{this.onDisconnect()}),this.events.on(si.created,async t=>{let r=si.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(si.deleted,async t=>{let r=si.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}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},Tne=Object.defineProperty,pL=Object.getOwnPropertySymbols,Pne=Object.prototype.hasOwnProperty,One=Object.prototype.propertyIsEnumerable,mL=(e,t,r)=>t in e?Tne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dne=(e,t)=>{for(var r in t||(t={}))Pne.call(t,r)&&mL(e,r,t[r]);if(pL)for(var r of pL(t))One.call(t,r)&&mL(e,r,t[r]);return e},jx=class extends L1{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Ki.EventEmitter,this.name=lne,this.transportExplicitlyClosed=!1,this.initialized=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,At.generateChildLogger)(t.logger,this.name):(0,Kx.default)((0,At.getDefaultLoggerOptions)({level:t.logger||ane})),this.messages=new Ux(this.logger,t.core),this.subscriber=new Vx(this,this.logger),this.publisher=new $x(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||une,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,At.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(si.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(mn.transport_closed)}async transportOpen(t){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(si.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(mn.transport_closed,()=>{n()}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw new Error(n.message);this.logger.error(n),this.events.emit(mn.transport_closed)}}async restartTransport(t){await this.transportClose(),await new Promise(r=>setTimeout(r,fL)),await this.transportOpen(t)}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new Ug(new xk(xR({sdkVersion:fne,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}),Dc(t)){if(!t.method.endsWith(cne))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(Dne({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(mn.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=Pc(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(Yg.payload,t=>this.onProviderPayload(t)),this.provider.on(Yg.connect,()=>{this.events.emit(mn.connect)}),this.provider.on(Yg.disconnect,()=>{this.events.emit(mn.disconnect),this.attemptToReconnect()}),this.provider.on(Yg.error,t=>this.events.emit(mn.error,t)),this.events.on(mn.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,zt.toMiliseconds)(fL))}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},Ine=Object.defineProperty,gL=Object.getOwnPropertySymbols,Ane=Object.prototype.hasOwnProperty,Nne=Object.prototype.propertyIsEnumerable,yL=(e,t,r)=>t in e?Ine(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vL=(e,t)=>{for(var r in t||(t={}))Ane.call(t,r)&&yL(e,r,t[r]);if(gL)for(var r of gL(t))Nne.call(t,r)&&yL(e,r,t[r]);return e},iu=class extends F1{constructor(t,r,n,o=Js,i=void 0){super(t,r,n,o),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=dne,this.cached=[],this.initialized=!1,this.storagePrefix=Js,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{IR(s)?this.map.set(s.id,s):AR(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!qd(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,a)=>{this.isInitialized(),this.map.has(s)?await this.update(s,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:a}),this.map.set(s,a),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(a=>Object.keys(s).every(u=>(0,EL.default)(a[u],s[u]))):this.values),this.update=async(s,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:a});let u=vL(vL({},this.getData(s)),a);this.map.set(s,u),await this.persist()},this.delete=async(s,a)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:a}),this.map.delete(s),await this.persist())},this.logger=(0,At.generateChildLogger)(r,this.name),this.storagePrefix=o,this.getKey=i}get context(){return(0,At.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}=It("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}=It("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}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},zx=class{constructor(t,r){this.core=t,this.logger=r,this.name=gne,this.version=yne,this.events=new Ki.default,this.initialized=!1,this.storagePrefix=Js,this.ignoredPayloadTypes=[Ja],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=vg(),o=await this.core.crypto.setSymKey(n),i=_g(zt.FIVE_MINUTES),s={protocol:Gx},a={topic:o,expiry:i,relay:s,active:!1},u=OR({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:u}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:o,symKey:i,relay:s}=PR(n.uri),a=_g(zt.FIVE_MINUTES),u={topic:o,relay:s,expiry:a,active:!1};return await this.pairings.set(o,u),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}),u},this.activate=async({topic:n})=>{this.isInitialized();let o=_g(zt.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:u}=ER();this.events.once(xg("pairing_ping",i),({error:l})=>{l?u(l):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",Mc("USER_DISCONNECTED")),await this.deletePairing(o))},this.sendRequest=async(n,o,i)=>{let s=Ws(o,i),a=await this.core.crypto.encode(n,s),u=eh[o].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,u),s.id},this.sendResult=async(n,o,i)=>{let s=Pc(n,i),a=await this.core.crypto.encode(o,s),u=await this.core.history.get(o,n),l=eh[u.request.method].res;await this.core.relayer.publish(o,a,l),await this.core.history.resolve(s)},this.sendError=async(n,o,i)=>{let s=Qa(n,i),a=await this.core.crypto.encode(o,s),u=await this.core.history.get(o,n),l=eh[u.request.method]?eh[u.request.method].res:eh.unregistered_method.res;await this.core.relayer.publish(o,a,l),await this.core.history.resolve(s)},this.deletePairing=async(n,o)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Mc("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=>nx(o.expiry));await Promise.all(n.map(o=>this.deletePairing(o.topic)))},this.onRelayEventRequest=n=>{let{topic:o,payload:i}=n;switch(i.method){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;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(()=>{mo(o)?this.events.emit(xg("pairing_ping",i),{}):pn(o)&&this.events.emit(xg("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=Mc("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(Mc("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Cg(n)){let{message:o}=It("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(o)}if(!DR(n.uri)){let{message:o}=It("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(o)}},this.isValidPing=async n=>{if(!Cg(n)){let{message:i}=It("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidDisconnect=async n=>{if(!Cg(n)){let{message:i}=It("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidPairingTopic=async n=>{if(!ix(n,!1)){let{message:o}=It("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(o)}if(!this.pairings.keys.includes(n)){let{message:o}=It("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(o)}if(nx(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:o}=It("EXPIRED",`pairing topic: ${n}`);throw new Error(o)}},this.core=t,this.logger=(0,At.generateChildLogger)(r,this.name),this.pairings=new iu(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,At.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(mn.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);Dc(o)?(this.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):eu(o)&&(await this.core.history.resolve(o),this.onRelayEventResponse({topic:r,payload:o}))})}registerExpirerEvents(){this.core.expirer.on(Xn.expired,async t=>{let{topic:r}=TR(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},Hx=class extends N1{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Ki.EventEmitter,this.name=vne,this.version=wne,this.cached=[],this.initialized=!1,this.storagePrefix=Js,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(ii.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=pn(n)?{error:n.error}:{result:n.result},this.records.set(o.id,o),this.events.emit(ii.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(ii.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,At.generateChildLogger)(r,this.name)}get context(){return(0,At.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:Ws(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}=It("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ii.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=It("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(ii.created,t=>{let r=ii.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ii.updated,t=>{let r=ii.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ii.deleted,t=>{let r=ii.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},qx=class extends $1{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Ki.EventEmitter,this.name=bne,this.version=_ne,this.cached=[],this.initialized=!1,this.storagePrefix=Js,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(Xn.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let o=this.formatTarget(n);return this.getExpiration(o)},this.del=n=>{this.isInitialized();let o=this.formatTarget(n);if(this.has(o)){let i=this.getExpiration(o);this.expirations.delete(o),this.events.emit(Xn.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,At.generateChildLogger)(r,this.name)}get context(){return(0,At.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 CR(t);if(typeof t=="number")return MR(t);let{message:r}=It("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(Xn.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=It("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}=It("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,zt.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(Xn.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(Rc.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Xn.created,t=>{let r=Xn.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Xn.expired,t=>{let r=Xn.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Xn.deleted,t=>{let r=Xn.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=It("NOT_INITIALIZED",this.name);throw new Error(t)}}},Rne=Object.defineProperty,wL=Object.getOwnPropertySymbols,kne=Object.prototype.hasOwnProperty,Lne=Object.prototype.propertyIsEnumerable,bL=(e,t,r)=>t in e?Rne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_L=(e,t)=>{for(var r in t||(t={}))kne.call(t,r)&&bL(e,r,t[r]);if(wL)for(var r of wL(t))Lne.call(t,r)&&bL(e,r,t[r]);return e},th=class extends A1{constructor(t){super(t),this.protocol=RL,this.version=Yre,this.name=Zx,this.events=new Ki.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,Kx.default)((0,At.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||Xre.logger}));this.logger=(0,At.generateChildLogger)(r,this.name),this.heartbeat=new Rc.HeartBeat,this.crypto=new Fx(this,this.logger,t==null?void 0:t.keychain),this.history=new Hx(this,this.logger),this.expirer=new qx(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new xL.default(_L(_L({},Jre),t==null?void 0:t.storageOptions)),this.relayer=new jx({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new zx(this,this.logger)}static async init(t){let r=new th(t);return await r.initialize(),r}get context(){return(0,At.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initilization Success")}catch(t){throw this.logger.warn(`Core Initilization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},kL=th;var Lc=ce(Yb());c();d();f();T1();var LL=ce(js());var Qg=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var ey=class{constructor(t){this.client=t}};c();d();f();var Fne=ce(og()),Une=ce(ig()),$ne=ce(qa()),VL=ce(ug()),jL=ce(fg());var Zi=ce(Li()),Wx=ce(jd()),zL=ce(pg()),HL=ce(mg());var qL=1;function KL(){return(0,zL.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function In(e,t){return e.filter(r=>t.includes(r)).length===e.length}function su(e,t){return(0,Zi.fromMiliseconds)((t||Date.now())+(0,Zi.toMiliseconds)(e))}function au(e){return(0,Zi.fromMiliseconds)(Date.now())>=(0,Zi.toMiliseconds)(e)}function uu(){let e=(0,Zi.toMiliseconds)(Zi.FIVE_MINUTES),t,r,n;return{resolve:o=>{n&&t&&(clearTimeout(n),t(o))},reject:o=>{n&&r&&(clearTimeout(n),r(o))},done:()=>new Promise((o,i)=>{n=setTimeout(i,e),t=o,r=i})}}function ZL(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 Er(e,t){return`${e}${t?`:${t}`:""}`}function ai(e){let t=[];return e.forEach(r=>{let[n,o]=r.split(":");t.push(`${n}:${o}`)}),t}function Bne(e){let t=[];return Object.values(e).forEach(r=>{t.push(...ai(r.accounts)),r.extension&&r.extension.forEach(n=>{t.push(...ai(n.accounts))})}),t}function Vne(e,t){let r=[];return Object.values(e).forEach(n=>{ai(n.accounts).includes(t)&&r.push(...n.methods),n.extension&&n.extension.forEach(o=>{ai(o.accounts).includes(t)&&r.push(...o.methods)})}),r}function jne(e,t){let r=[];return Object.values(e).forEach(n=>{ai(n.accounts).includes(t)&&r.push(...n.events),n.extension&&n.extension.forEach(o=>{ai(o.accounts).includes(t)&&r.push(...o.events)})}),r}function GL(e,t){let r=ih(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 zne={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}},Hne={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}=Hne[e];return{message:t?`${r} ${t}`:r,code:n}}function An(e,t){let{message:r,code:n}=zne[e];return{message:t?`${r} ${t}`:r,code:n}}function nh(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function oh(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function Ro(e){return typeof e>"u"}function Qr(e,t){return t&&Ro(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function WL(e,t){return t&&Ro(e)?!0:typeof e=="number"&&!isNaN(e)}function YL(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),o=Object.keys(r),i=!0;return In(o,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l,extension:p}=e.namespaces[s],h=ai(a),y=r[s];(!In(y.chains,h)||!In(y.methods,u)||!In(y.events,l))&&(i=!1),i&&p&&p.forEach(b=>{var v;let{accounts:C,methods:N,events:M}=b,T=ai(C);(v=y.extension)!=null&&v.find(I=>In(I.chains,T)&&In(I.methods,N)&&In(I.events,M))||(i=!1)})}),i):!1}function Yx(e){return Qr(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function qne(e){if(Qr(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&Yx(r)}}return!1}function XL(e,t){let r=null;return Qr(e==null?void 0:e.publicKey,!1)||(r=He("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function Xx(e,t){let r=null;return Ro(e==null?void 0:e.extension)||(!nh(e.extension)||!e.extension.length)&&(r=He("MISSING_OR_INVALID",`${t} extension should be an array of namespaces, or omitted`)),r}function FL(e){let t=!0;return nh(e)?e.length&&(t=e.every(r=>Qr(r,!1))):t=!1,t}function UL(e,t,r){let n=null;return nh(t)?t.forEach(o=>{n||(!Yx(o)||!o.includes(e))&&(n=An("UNSUPPORTED_CHAINS",`${r}, chain ${o} should be a string and conform to "namespace:chainId" format`))}):n=An("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function Kne(e,t){let r=null;return Object.entries(e).forEach(([n,o])=>{if(r)return;let i=UL(n,o==null?void 0:o.chains,`${t} requiredNamespace`),s=Xx(o,t);i?r=i:s?r=s:o.extension&&o.extension.forEach(a=>{if(r)return;let u=UL(n,a.chains,`${t} extension`);u&&(r=u)})}),r}function $L(e,t){let r=null;return nh(e)?e.forEach(n=>{r||qne(n)||(r=An("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=An("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function Zne(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let o=$L(n==null?void 0:n.accounts,`${t} namespace`),i=Xx(n,t);o?r=o:i?r=i:n.extension&&n.extension.forEach(s=>{if(r)return;let a=$L(s.accounts,`${t} extension`);a&&(r=a)})}),r}function BL(e,t){let r=null;return FL(e==null?void 0:e.methods)?FL(e==null?void 0:e.events)||(r=An("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=An("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function JL(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let o=BL(n,`${t}, namespace`),i=Xx(n,t);o?r=o:i?r=i:n.extension&&n.extension.forEach(s=>{if(r)return;let a=BL(s,`${t}, extension`);a&&(r=a)})}),r}function QL(e,t){let r=null;if(e&&oh(e)){let n=JL(e,t);n&&(r=n);let o=Kne(e,t);o&&(r=o)}else r=He("MISSING_OR_INVALID",`${t}, requiredNamespaces should be an object with data`);return r}function ih(e,t){let r=null;if(e&&oh(e)){let n=JL(e,t);n&&(r=n);let o=Zne(e,t);o&&(r=o)}else r=He("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function Jx(e){return Qr(e.protocol,!0)}function eF(e,t){let r=!1;return t&&!e?r=!0:e&&nh(e)&&e.length&&e.forEach(n=>{r=Jx(n)}),r}function tF(e){return typeof e=="number"}function go(e){return typeof e<"u"&&typeof e!==null}function rF(e){return!(!e||typeof e!="object"||!e.code||!WL(e.code,!1)||!e.message||!Qr(e.message,!1))}function nF(e){return!(Ro(e)||!Qr(e.method,!1))}function oF(e){return!(Ro(e)||Ro(e.result)&&Ro(e.error)||!WL(e.id,!1)||!Qr(e.jsonrpc,!1))}function iF(e){return!(Ro(e)||!Qr(e.name,!1))}function Qx(e,t){return!(!Yx(t)||!Bne(e).includes(t))}function sF(e,t,r){return Qr(r,!1)?Vne(e,t).includes(r):!1}function aF(e,t,r){return Qr(r,!1)?jne(e,t).includes(r):!1}function e4(e,t,r){let n=null,o=Object.keys(e),i=Object.keys(t);return In(o,i)?o.forEach(s=>{var a;if(n)return;let u=e[s].chains,l=ai(t[s].accounts);In(u,l)?In(e[s].methods,t[s].methods)?In(e[s].events,t[s].events)?e[s].extension&&!t[s].extension?n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${s}`):e[s].extension&&t[s].extension&&((a=e[s].extension)==null||a.forEach(({methods:p,events:h,chains:y})=>{var b;n||(b=t[s].extension)!=null&&b.find(v=>{let C=ai(v.accounts);return In(y,C)&&In(h,v.events)&&In(p,v.methods)})||(n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces extension doesn't satisfy requiredNamespaces extension for ${s}`))})):n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy requiredNamespaces events for ${s}`):n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy requiredNamespaces methods for ${s}`):n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy requiredNamespaces chains for ${s}`)}):n=He("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces`),n}var ry=ce(js()),Kt=ce(Li());var fF="wc",dF=2,hF="client",a4=`${fF}@${dF}:${hF}:`,t4={name:hF,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var Gne="proposal";var Wne="session",ty=Kt.SEVEN_DAYS,Yne="engine",sh={wc_sessionPropose:{req:{ttl:Kt.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Kt.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Kt.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Kt.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Kt.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Kt.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Kt.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Kt.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Kt.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Kt.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Kt.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Kt.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Kt.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Kt.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Kt.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Kt.THIRTY_SECONDS,prompt:!1,tag:1115}}},Xne="request",Jne=Object.defineProperty,Qne=Object.defineProperties,eoe=Object.getOwnPropertyDescriptors,uF=Object.getOwnPropertySymbols,toe=Object.prototype.hasOwnProperty,roe=Object.prototype.propertyIsEnumerable,lF=(e,t,r)=>t in e?Jne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gi=(e,t)=>{for(var r in t||(t={}))toe.call(t,r)&&lF(e,r,t[r]);if(uF)for(var r of uF(t))roe.call(t,r)&&lF(e,r,t[r]);return e},r4=(e,t)=>Qne(e,eoe(t)),n4=class extends ey{constructor(t){super(t),this.name=Yne,this.events=new ry.default,this.initialized=!1,this.ignoredPayloadTypes=[qL],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(sh)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized(),await this.isValidConnect(r);let{pairingTopic:n,requiredNamespaces:o,relays:i}=r,s=n,a,u=!1;if(s&&(u=this.client.core.pairing.pairings.get(s).active),!s||!u){let{topic:N,uri:M}=await this.client.core.pairing.create();s=N,a=M}let l=await this.client.core.crypto.generateKeyPair(),p={requiredNamespaces:o,relays:i!=null?i:[{protocol:Gx}],proposer:{publicKey:l,metadata:this.client.metadata}},{reject:h,resolve:y,done:b}=uu();if(this.events.once(Er("session_connect"),async({error:N,session:M})=>{if(N)h(N);else if(M){M.self.publicKey=l;let T=r4(Gi({},M),{requiredNamespaces:M.requiredNamespaces});await this.client.session.set(M.topic,T),await this.setExpiry(M.topic,M.expiry),s&&await this.client.core.pairing.updateMetadata({topic:s,metadata:M.peer.metadata}),y(T)}}),!s){let{message:N}=He("NO_MATCHING_KEY",`connect() pairing topic: ${s}`);throw new Error(N)}let v=await this.sendRequest(s,"wc_sessionPropose",p),C=su(Kt.FIVE_MINUTES);return await this.setProposal(v,Gi({id:v,expiry:C},p)),{uri:a,approval:b}},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}=r,s=this.client.proposal.get(n),{pairingTopic:a,proposer:u,requiredNamespaces:l}=s;oh(l)||(l=GL(i,"approve()"),this.client.proposal.set(n,r4(Gi({},s),{requiredNamespaces:l})));let p=await this.client.core.crypto.generateKeyPair(),h=u.publicKey,y=await this.client.core.crypto.generateSharedKey(p,h),b={relay:{protocol:o!=null?o:"irn"},namespaces:i,requiredNamespaces:l,controller:{publicKey:p,metadata:this.client.metadata},expiry:su(ty)};await this.client.core.relayer.subscribe(y);let v=await this.sendRequest(y,"wc_sessionSettle",b),{done:C,resolve:N,reject:M}=uu();this.events.once(Er("session_approve",v),({error:I})=>{I?M(I):N(this.client.session.get(y))});let T=r4(Gi({},b),{topic:y,acknowledged:!1,self:b.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:p});return await this.client.session.set(y,T),await this.setExpiry(y,su(ty)),a&&await this.client.core.pairing.updateMetadata({topic:a,metadata:T.peer.metadata}),a&&n&&(await this.sendResult(n,a,{relay:{protocol:o!=null?o:"irn"},responderPublicKey:p}),await this.client.proposal.delete(n,An("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a})),{topic:y,acknowledged:C}},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,An("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:u}=uu();return this.events.once(Er("session_update",i),({error:l})=>{l?u(l):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}=uu();return this.events.once(Er("session_extend",o),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,su(ty)),{acknowledged:i}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:o,topic:i}=r,s=await this.sendRequest(i,"wc_sessionRequest",{request:o,chainId:n}),{done:a,resolve:u,reject:l}=uu();return this.events.once(Er("session_request",s),({error:p,result:h})=>{p?l(p):u(h)}),await a()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:o}=r,{id:i}=o;mo(o)?await this.sendResult(i,n,o.result):pn(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}=uu();this.events.once(Er("session_ping",o),({error:u})=>{u?a(u):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",An("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=>YL(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,An("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,An("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=sh.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,n)},this.sendRequest=async(r,n,o)=>{let i=Ws(n,o),s=await this.client.core.crypto.encode(r,i),a=sh[n].req;return this.client.core.history.set(r,i),this.client.core.relayer.publish(r,s,a),i.id},this.sendResult=async(r,n,o)=>{let i=Pc(r,o),s=await this.client.core.crypto.encode(n,i),a=await this.client.core.history.get(n,r),u=sh[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(i)},this.sendError=async(r,n,o)=>{let i=Qa(r,o),s=await this.client.core.crypto.encode(n,i),a=await this.client.core.history.get(n,r),u=sh[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(o=>{au(o.expiry)&&r.push(o.topic)}),this.client.proposal.getAll().forEach(o=>{au(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(Gi({},n.params));let s=su(Kt.FIVE_MINUTES),a=Gi({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(mo(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 u=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u});let l=await this.client.core.crypto.generateSharedKey(a,u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:r})}else pn(n)&&(await this.client.proposal.delete(o,An("USER_DISCONNECTED")),this.events.emit(Er("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:u,namespaces:l,requiredNamespaces:p}=n.params,h={topic:r,relay:s,expiry:u,namespaces:l,acknowledged:!0,requiredNamespaces:p,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}};await this.sendResult(n.id,r,!0),this.events.emit(Er("session_connect"),{session:h})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:o}=n;mo(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Er("session_approve",o),{})):pn(n)&&(await this.client.session.delete(r,An("USER_DISCONNECTED")),this.events.emit(Er("session_approve",o),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:o,id:i}=n;try{this.isValidUpdate(Gi({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;mo(n)?this.events.emit(Er("session_update",o),{}):pn(n)&&this.events.emit(Er("session_update",o),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:o}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,su(ty)),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;mo(n)?this.events.emit(Er("session_extend",o),{}):pn(n)&&this.events.emit(Er("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(()=>{mo(n)?this.events.emit(Er("session_ping",o),{}):pn(n)&&this.events.emit(Er("session_ping",o),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:o}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await this.sendResult(o,r,!0),await this.deleteSession(r),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(Gi({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;mo(n)?this.events.emit(Er("session_request",o),{result:n.result}):pn(n)&&this.events.emit(Er("session_request",o),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:o,params:i}=n;try{this.isValidEmit(Gi({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(!go(r)){let{message:a}=He("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(a)}let{pairingTopic:n,requiredNamespaces:o,relays:i}=r;if(Ro(n)||await this.isValidPairingTopic(n),!Ro(o)&&oh(o)===0)return;let s=QL(o,"connect()");if(s)throw new Error(s.message);if(!eF(i,!0)){let{message:a}=He("MISSING_OR_INVALID",`connect() relays: ${i}`);throw new Error(a)}},this.isValidApprove=async r=>{if(!go(r))throw new Error(He("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:o,relayProtocol:i}=r;await this.isValidProposalId(n);let s=this.client.proposal.get(n),a=ih(o,"approve()");if(a)throw new Error(a.message);let u=e4(s.requiredNamespaces,o,"update()");if(u)throw new Error(u.message);if(!Qr(i,!0)){let{message:l}=He("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}},this.isValidReject=async r=>{if(!go(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),!rF(o)){let{message:i}=He("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(o)}`);throw new Error(i)}},this.isValidSessionSettleRequest=r=>{if(!go(r)){let{message:l}=He("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:o,namespaces:i,expiry:s}=r;if(!Jx(n)){let{message:l}=He("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=XL(o,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=ih(i,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(au(s)){let{message:l}=He("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!go(r)){let{message:u}=He("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(u)}let{topic:n,namespaces:o}=r;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=ih(o,"update()");if(s)throw new Error(s.message);let a=e4(i.requiredNamespaces,o,"update()");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!go(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(!go(r)){let{message:a}=He("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(a)}let{topic:n,request:o,chainId:i}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!Qx(s,i)){let{message:a}=He("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(a)}if(!nF(o)){let{message:a}=He("MISSING_OR_INVALID",`request() ${JSON.stringify(o)}`);throw new Error(a)}if(!sF(s,i,o.method)){let{message:a}=He("MISSING_OR_INVALID",`request() method: ${o.method}`);throw new Error(a)}},this.isValidRespond=async r=>{if(!go(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),!oF(o)){let{message:i}=He("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`);throw new Error(i)}},this.isValidPing=async r=>{if(!go(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(!go(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(!Qx(s,i)){let{message:a}=He("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(a)}if(!iF(o)){let{message:a}=He("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(o)}`);throw new Error(a)}if(!aF(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(!go(r)){let{message:o}=He("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(o)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)}}isInitialized(){if(!this.initialized){let{message:t}=He("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(mn.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);Dc(o)?(this.client.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):eu(o)&&(await this.client.core.history.resolve(o),this.onRelayEventResponse({topic:r,payload:o}))})}registerExpirerEvents(){this.client.core.expirer.on(Xn.expired,async t=>{let{topic:r,id:n}=ZL(t.target);if(n&&this.getPendingSessionRequests()[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)})}isValidPairingTopic(t){if(!Qr(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(au(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=He("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!Qr(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(au(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(Qr(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(!tF(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(au(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=He("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},o4=class extends iu{constructor(t,r){super(t,r,Gne,a4),this.core=t,this.logger=r}},i4=class extends iu{constructor(t,r){super(t,r,Wne,a4),this.core=t,this.logger=r}},s4=class extends iu{constructor(t,r){super(t,r,Xne,a4),this.core=t,this.logger=r}},kc=class extends Qg{constructor(t){super(t),this.protocol=fF,this.version=dF,this.name=t4.name,this.events=new ry.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)||t4.name,this.metadata=(t==null?void 0:t.metadata)||KL();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,cF.default)((0,Lc.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||t4.logger}));this.core=(t==null?void 0:t.core)||new kL(t),this.logger=(0,Lc.generateChildLogger)(r,this.name),this.session=new i4(this.core,this.logger),this.proposal=new o4(this.core,this.logger),this.pendingRequest=new s4(this.core,this.logger),this.engine=new n4(this)}static async init(t){let r=new kc(t);return await r.initialize(),r}get context(){return(0,Lc.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initilization Success")}catch(t){throw this.logger.info("SignClient Initilization Failure"),this.logger.error(t.message),t}}};c();d();f();var noe=ce(og()),ooe=ce(ig()),ioe=ce(qa()),pF=ce(ug()),mF=ce(fg());var u4=ce(Li()),l4=ce(jd()),soe=ce(pg()),gF=ce(mg());var aoe={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 yF(e,t){let{message:r,code:n}=aoe[e];return{message:t?`${r} ${t}`:r,code:n}}var ah,loe=Rh()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",initConnection:async(r,n,o="c3e6053f10efbb423808783ee874cf6a")=>{e({config:{action_id:r,signal:n,walletconnect_id:o}}),ah=await kc.init({projectId:o,metadata:{name:"World ID",description:"Verify with World ID",url:"#",icons:["https://worldcoin.org/icons/logo-small.svg"]}});try{let{uri:i,approval:s}=await ah.connect({requiredNamespaces:{eip155:{methods:["wld_worldIDVerification"],chains:["eip155:1"],events:["chainChanged","accountsChanged"]}}});if(i){t().setUri(i);let a=await s();if(typeof a<"u")return e({topic:a.topic}),t().onConnectionEstablished();ah.on("session_delete",()=>{t().initConnection(r,n,o)})}}catch(i){e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${i}`)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:Mb(r),mobile:Mb(r,window.location.href)}})},onConnectionEstablished:async()=>{e({verificationState:"awaiting_verification"}),await ah.request({topic:t().topic,chainId:"eip155:1",request:coe(t().config.action_id,t().config.signal)}).then(r=>{if(!foe(r))return e({errorCode:"unexpected_response"});e({result:r,verificationState:"confirmed"})}).catch(r=>{let n="generic_error",o=r.message;o&&Object.values(Cb).includes(o)&&(n=o),e({errorCode:n,verificationState:"failed"})}).finally(async()=>await ah.disconnect({topic:t().topic,reason:yF("USER_DISCONNECTED")})).catch(r=>console.error("Unable to kill session",r))},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,verificationState:"loading_widget"})}})),coe=(e,t)=>({jsonrpc:"2.0",method:"wld_worldIDVerification",id:h9(1e5,9999999),params:[{signal:Xc(t).digest,action_id:Xc(e).digest}]}),foe=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||!yE(o))return!1;return!0},doe=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,initConnection:e.initConnection,verificationState:e.verificationState}),hoe=(e,t,r)=>{let{result:n,verificationState:o,errorCode:i,qrData:s,initConnection:a,reset:u}=loe(doe);return(0,vF.useEffect)(()=>{!e||!t||a(e,t,r)},[e,a,t,r]),{result:n,reset:u,verificationState:o,errorCode:i,qrData:s}},wF=hoe;var moe=e=>({signal:e.signal,actionId:e.actionId,walletconnectId:e.walletconnectId,handleVerify:e.handleVerify}),goe=()=>{let{actionId:e,signal:t,walletconnectId:r,handleVerify:n}=Gt(moe),{result:o,qrData:i,verificationState:s,reset:a}=wF(e,t,r);return console.log(s),(0,c4.useEffect)(()=>a,[a]),(0,c4.useEffect)(()=>{!o||n({signal_type:"orb",nullifier_hash:o.nullifier_hash,proof_payload:{proof:o.proof,merkle_root:o.merkle_root}})},[o,a,n]),m.createElement("div",{className:"space-y-6"},s==="awaiting_verification"?m.createElement(BO,null):m.createElement($O,{qrData:i}))},bF=goe;c();d();f();var Je=ce(ve());c();d();f();var f4=ce(ve());var yoe=f4["useId".toString()]||(()=>{}),voe=0;function ny(e){let[t,r]=f4.useState(yoe());return Fa(()=>{e||r(n=>n!=null?n:String(voe++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var Nn=ce(ve());var d4="focusScope.autoFocusOnMount",h4="focusScope.autoFocusOnUnmount",_F={bubbles:!1,cancelable:!0};var CF=(0,Nn.forwardRef)((e,t)=>{let C=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i}=C,s=Te(C,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,Nn.useState)(null),l=Wr(o),p=Wr(i),h=(0,Nn.useRef)(null),y=Gr(t,N=>u(N)),b=(0,Nn.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Nn.useEffect)(()=>{if(n){let N=function(T){if(b.paused||!a)return;let I=T.target;a.contains(I)?h.current=I:lu(h.current,{select:!0})},M=function(T){b.paused||!a||a.contains(T.relatedTarget)||lu(h.current,{select:!0})};return document.addEventListener("focusin",N),document.addEventListener("focusout",M),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",M)}}},[n,a,b.paused]),(0,Nn.useEffect)(()=>{if(a){EF.add(b);let N=document.activeElement;if(!a.contains(N)){let T=new CustomEvent(d4,_F);a.addEventListener(d4,l),a.dispatchEvent(T),T.defaultPrevented||(woe(Soe(MF(a)),{select:!0}),document.activeElement===N&&lu(a))}return()=>{a.removeEventListener(d4,l),setTimeout(()=>{let T=new CustomEvent(h4,_F);a.addEventListener(h4,p),a.dispatchEvent(T),T.defaultPrevented||lu(N!=null?N:document.body,{select:!0}),a.removeEventListener(h4,p),EF.remove(b)},0)}}},[a,l,p,b]);let v=(0,Nn.useCallback)(N=>{if(!r&&!n||b.paused)return;let M=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,T=document.activeElement;if(M&&T){let I=N.currentTarget,[U,K]=boe(I);U&&K?!N.shiftKey&&T===K?(N.preventDefault(),r&&lu(U,{select:!0})):N.shiftKey&&T===U&&(N.preventDefault(),r&&lu(K,{select:!0})):T===I&&N.preventDefault()}},[r,n,b.paused]);return(0,Nn.createElement)(br.div,pt({tabIndex:-1},s,{ref:y,onKeyDown:v}))});function woe(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(lu(n,{select:t}),document.activeElement!==r)return}function boe(e){let t=MF(e),r=xF(t,e),n=xF(t.reverse(),e);return[r,n]}function MF(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 xF(e,t){for(let r of e)if(!_oe(r,{upTo:t}))return r}function _oe(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 xoe(e){return e instanceof HTMLInputElement&&"select"in e}function lu(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&xoe(e)&&t&&e.select()}}var EF=Eoe();function Eoe(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=SF(e,t),e.unshift(t)},remove(t){var r;e=SF(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function SF(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Soe(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var PF=ce(ve()),p4=0;function OF(){(0,PF.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:TF()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:TF()),p4++,()=>{p4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),p4--}},[])}function TF(){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 ay=ce(ve());c();d();f();var en=ce(ve());c();d();f();var cu="right-scroll-bar-position",fu="width-before-scroll-bar",m4="with-scroll-bars-hidden",g4="--removed-body-scroll-bar-size";c();d();f();c();d();f();function DF(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var IF=ce(ve());function AF(e,t){var r=(0,IF.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 y4(e,t){return AF(t||null,function(r){return e.forEach(function(n){return DF(n,r)})})}c();d();f();c();d();f();c();d();f();function Coe(e){return e}function Moe(e,t){t===void 0&&(t=Coe);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 u=function(){var p=s;s=[],p.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){s.push(p),l()},filter:function(p){return s=s.filter(p),r}}}};return o}function v4(e){e===void 0&&(e={});var t=Moe(null);return t.options=ho({async:!0,ssr:!1},e),t}c();d();f();var NF=ce(ve()),RF=function(e){var t=e.sideCar,r=gm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return NF.createElement(n,ho({},r))};RF.isSideCarExport=!0;function w4(e,t){return e.useMedium(t),RF}var oy=v4();var b4=function(){},uh=en.forwardRef(function(e,t){var r=en.useRef(null),n=en.useState({onScrollCapture:b4,onWheelCapture:b4,onTouchMoveCapture:b4}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,y=e.sideCar,b=e.noIsolation,v=e.inert,C=e.allowPinchZoom,N=e.as,M=N===void 0?"div":N,T=gm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),I=y,U=y4([r,t]),K=ho(ho({},T),o);return en.createElement(en.Fragment,null,p&&en.createElement(I,{sideCar:oy,removeScrollBar:l,shards:h,noIsolation:b,inert:v,setCallbacks:i,allowPinchZoom:!!C,lockRef:r}),s?en.cloneElement(en.Children.only(a),ho(ho({},K),{ref:U})):en.createElement(M,ho({},K,{className:u,ref:U}),a))});uh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uh.classNames={fullWidth:fu,zeroRight:cu};c();d();f();c();d();f();var Ht=ce(ve());c();d();f();c();d();f();var iy=ce(ve());c();d();f();c();d();f();c();d();f();var FF=ce(ve());c();d();f();c();d();f();var kF;var LF=function(){if(kF)return kF;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Toe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LF();return t&&e.setAttribute("nonce",t),e}function Poe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ooe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _4=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Toe())&&(Poe(t,r),Ooe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var x4=function(){var e=_4();return function(t,r){FF.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var lh=function(){var e=x4(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};c();d();f();var Doe={left:0,top:0,right:0,gap:0},E4=function(e){return parseInt(e||"",10)||0},Ioe=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[E4(r),E4(n),E4(o)]},S4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Doe;var t=Ioe(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 Aoe=lh(),Noe=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(m4,` {
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(cu,` {
65
+ right: `).concat(a,"px ").concat(n,`;
66
+ }
67
+
68
+ .`).concat(fu,` {
69
+ margin-right: `).concat(a,"px ").concat(n,`;
70
+ }
71
+
72
+ .`).concat(cu," .").concat(cu,` {
73
+ right: 0 `).concat(n,`;
74
+ }
75
+
76
+ .`).concat(fu," .").concat(fu,` {
77
+ margin-right: 0 `).concat(n,`;
78
+ }
79
+
80
+ body {
81
+ `).concat(g4,": ").concat(a,`px;
82
+ }
83
+ `)},C4=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=iy.useMemo(function(){return S4(o)},[o]);return iy.createElement(Aoe,{styles:Noe(i,!t,o,r?"":"!important")})};c();d();f();var M4=!1;if(typeof window<"u")try{ch=Object.defineProperty({},"passive",{get:function(){return M4=!0,!0}}),window.addEventListener("test",ch,ch),window.removeEventListener("test",ch,ch)}catch(e){M4=!1}var ch,du=M4?{passive:!1}:!1;c();d();f();var Roe=function(e){return e.tagName==="TEXTAREA"},UF=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Roe(e)&&r[t]==="visible")},koe=function(e){return UF(e,"overflowY")},Loe=function(e){return UF(e,"overflowX")},T4=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=$F(e,r);if(n){var o=BF(e,r),i=o[1],s=o[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Foe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Uoe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$F=function(e,t){return e==="v"?koe(t):Loe(t)},BF=function(e,t){return e==="v"?Foe(t):Uoe(t)},$oe=function(e,t){return e==="h"&&t==="rtl"?-1:1},VF=function(e,t,r,n,o){var i=$oe(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,u=t.contains(a),l=!1,p=s>0,h=0,y=0;do{var b=BF(e,a),v=b[0],C=b[1],N=b[2],M=C-N-i*v;(v||M)&&$F(e,a)&&(h+=M,y+=v),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&y===0||!o&&-s>y))&&(l=!0),l};var sy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jF=function(e){return[e.deltaX,e.deltaY]},zF=function(e){return e&&"current"in e?e.current:e},Boe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Voe=function(e){return`
84
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
85
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
86
+ `)},joe=0,Fc=[];function HF(e){var t=Ht.useRef([]),r=Ht.useRef([0,0]),n=Ht.useRef(),o=Ht.useState(joe++)[0],i=Ht.useState(function(){return lh()})[0],s=Ht.useRef(e);Ht.useEffect(function(){s.current=e},[e]),Ht.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var C=nT([e.lockRef.current],(e.shards||[]).map(zF),!0).filter(Boolean);return C.forEach(function(N){return N.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=Ht.useCallback(function(C,N){if("touches"in C&&C.touches.length===2)return!s.current.allowPinchZoom;var M=sy(C),T=r.current,I="deltaX"in C?C.deltaX:T[0]-M[0],U="deltaY"in C?C.deltaY:T[1]-M[1],K,J=C.target,j=Math.abs(I)>Math.abs(U)?"h":"v";if("touches"in C&&j==="h"&&J.type==="range")return!1;var Z=T4(j,J);if(!Z)return!0;if(Z?K=j:(K=j==="v"?"h":"v",Z=T4(j,J)),!Z)return!1;if(!n.current&&"changedTouches"in C&&(I||U)&&(n.current=K),!K)return!0;var le=n.current||K;return VF(le,N,C,le==="h"?I:U,!0)},[]),u=Ht.useCallback(function(C){var N=C;if(!(!Fc.length||Fc[Fc.length-1]!==i)){var M="deltaY"in N?jF(N):sy(N),T=t.current.filter(function(K){return K.name===N.type&&K.target===N.target&&Boe(K.delta,M)})[0];if(T&&T.should){N.cancelable&&N.preventDefault();return}if(!T){var I=(s.current.shards||[]).map(zF).filter(Boolean).filter(function(K){return K.contains(N.target)}),U=I.length>0?a(N,I[0]):!s.current.noIsolation;U&&N.cancelable&&N.preventDefault()}}},[]),l=Ht.useCallback(function(C,N,M,T){var I={name:C,delta:N,target:M,should:T};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(U){return U!==I})},1)},[]),p=Ht.useCallback(function(C){r.current=sy(C),n.current=void 0},[]),h=Ht.useCallback(function(C){l(C.type,jF(C),C.target,a(C,e.lockRef.current))},[]),y=Ht.useCallback(function(C){l(C.type,sy(C),C.target,a(C,e.lockRef.current))},[]);Ht.useEffect(function(){return Fc.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",u,du),document.addEventListener("touchmove",u,du),document.addEventListener("touchstart",p,du),function(){Fc=Fc.filter(function(C){return C!==i}),document.removeEventListener("wheel",u,du),document.removeEventListener("touchmove",u,du),document.removeEventListener("touchstart",p,du)}},[]);var b=e.removeScrollBar,v=e.inert;return Ht.createElement(Ht.Fragment,null,v?Ht.createElement(i,{styles:Voe(o)}):null,b?Ht.createElement(C4,{gapMode:"margin"}):null)}var qF=w4(oy,HF);var KF=ay.forwardRef(function(e,t){return ay.createElement(uh,ho({},e,{ref:t,sideCar:qF}))});KF.classNames=uh.classNames;var P4=KF;c();d();f();var zoe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Uc=new WeakMap,uy=new WeakMap,ly={},O4=0,ZF=function(e){return e&&(e.host||ZF(e.parentNode))},Hoe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ZF(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)})},qoe=function(e,t,r,n){var o=Hoe(t,Array.isArray(e)?e:[e]);ly[r]||(ly[r]=new WeakMap);var i=ly[r],s=[],a=new Set,u=new Set(o),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};o.forEach(l);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(y){if(a.has(y))p(y);else{var b=y.getAttribute(n),v=b!==null&&b!=="false",C=(Uc.get(y)||0)+1,N=(i.get(y)||0)+1;Uc.set(y,C),i.set(y,N),s.push(y),C===1&&v&&uy.set(y,!0),N===1&&y.setAttribute(r,"true"),v||y.setAttribute(n,"true")}})};return p(t),a.clear(),O4++,function(){s.forEach(function(h){var y=Uc.get(h)-1,b=i.get(h)-1;Uc.set(h,y),i.set(h,b),y||(uy.has(h)||h.removeAttribute(n),uy.delete(h)),b||h.removeAttribute(r)}),O4--,O4||(Uc=new WeakMap,Uc=new WeakMap,uy=new WeakMap,ly={})}},GF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||zoe(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),qoe(n,o,r,"aria-hidden")):function(){return null}};var WF="Dialog",[YF,o3e]=jl(WF),[Koe,Wi]=YF(WF),Zoe=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=(0,Je.useRef)(null),u=(0,Je.useRef)(null),[l=!1,p]=_m({prop:n,defaultProp:o,onChange:i});return(0,Je.createElement)(Koe,{scope:t,triggerRef:a,contentRef:u,contentId:ny(),titleId:ny(),descriptionId:ny(),open:l,onOpenChange:p,onOpenToggle:(0,Je.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var XF="DialogPortal",[Goe,JF]=YF(XF,{forceMount:void 0}),Woe=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Wi(XF,t);return(0,Je.createElement)(Goe,{scope:t,forceMount:r},Je.Children.map(n,s=>(0,Je.createElement)(Ua,{present:r||i.open},(0,Je.createElement)(wm,{asChild:!0,container:o},s))))},D4="DialogOverlay",Yoe=(0,Je.forwardRef)((e,t)=>{let r=JF(D4,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,o=Te(s,["forceMount"]),i=Wi(D4,e.__scopeDialog);return i.modal?(0,Je.createElement)(Ua,{present:n||i.open},(0,Je.createElement)(Xoe,pt({},o,{ref:t}))):null}),Xoe=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Te(i,["__scopeDialog"]),o=Wi(D4,r);return(0,Je.createElement)(P4,{as:Ls,allowPinchZoom:!0,shards:[o.contentRef]},(0,Je.createElement)(br.div,pt({"data-state":tU(o.open)},n,{ref:t,style:te({pointerEvents:"auto"},n.style)})))}),$c="DialogContent",Joe=(0,Je.forwardRef)((e,t)=>{let r=JF($c,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,o=Te(s,["forceMount"]),i=Wi($c,e.__scopeDialog);return(0,Je.createElement)(Ua,{present:n||i.open},i.modal?(0,Je.createElement)(Qoe,pt({},o,{ref:t})):(0,Je.createElement)(eie,pt({},o,{ref:t})))}),Qoe=(0,Je.forwardRef)((e,t)=>{let r=Wi($c,e.__scopeDialog),n=(0,Je.useRef)(null),o=Gr(t,r.contentRef,n);return(0,Je.useEffect)(()=>{let i=n.current;if(i)return GF(i)},[]),(0,Je.createElement)(QF,pt({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hr(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:hr(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:hr(e.onFocusOutside,i=>i.preventDefault())}))}),eie=(0,Je.forwardRef)((e,t)=>{let r=Wi($c,e.__scopeDialog),n=(0,Je.useRef)(!1);return(0,Je.createElement)(QF,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()}}))}),QF=(0,Je.forwardRef)((e,t)=>{let p=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i}=p,s=Te(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=Wi($c,r),u=(0,Je.useRef)(null),l=Gr(t,u);return OF(),(0,Je.createElement)(Je.Fragment,null,(0,Je.createElement)(CF,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,Je.createElement)(kw,pt({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":tU(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),eU="DialogTitle",tie=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Te(i,["__scopeDialog"]),o=Wi(eU,r);return(0,Je.createElement)(br.h2,pt({id:o.titleId},n,{ref:t}))});var rie="DialogClose",nie=(0,Je.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Te(i,["__scopeDialog"]),o=Wi(rie,r);return(0,Je.createElement)(br.button,pt({type:"button"},n,{ref:t,onClick:hr(e.onClick,()=>o.onOpenChange(!1))}))});function tU(e){return e?"open":"closed"}var oie="DialogTitleWarning",[i3e,s3e]=aT(oie,{contentName:$c,titleName:eU,docsSlug:"dialog"});var rU=Zoe;var nU=Woe,oU=Yoe,iU=Joe,sU=tie;var aU=nie;c();d();f();var sie=({className:e=""})=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:e,viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"},m.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"})),uU=sie;c();d();f();c();d();f();var e$=ce(hU(),1);c();d();f();c();d();f();var N4=ce(ve());function cy(){return cy=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},cy.apply(this,arguments)}function hie(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 pie=["cdnSuffix","cdnUrl","countryCode","style","svg"],mie="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/4.1.4/flags/4x3/",gie="svg",yie=127397,vie=function(t){var r=t.cdnSuffix,n=r===void 0?gie:r,o=t.cdnUrl,i=o===void 0?mie:o,s=t.countryCode,a=t.style,u=t.svg,l=u===void 0?!1:u,p=hie(t,pie);if(typeof s!="string")return null;if(l){var h=""+i+s.toLowerCase()+"."+n;return(0,N4.createElement)("img",Object.assign({},p,{src:h,style:cy({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},a)}))}var y=s.toUpperCase().replace(/./g,function(b){return String.fromCodePoint(b.charCodeAt(0)+yie)});return(0,N4.createElement)("span",Object.assign({role:"img"},p,{style:cy({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},a)}),y)},R4=vie;var G4=ce(vU(),1);c();d();f();var wie=e=>m.createElement("svg",Se(te({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})),wU=wie;c();d();f();var _U=ce(ve(),1);c();d();f();var py=ce(ve(),1);c();d();f();var hy=typeof window>"u"||typeof document>"u";var pr=hy?py.useEffect:py.useLayoutEffect;c();d();f();var bU=ce(ve(),1);function yn(e){let t=(0,bU.useRef)(e);return pr(()=>{t.current=e},[e]),t}function k4(e,t){let[r,n]=(0,_U.useState)(e),o=yn(e);return pr(()=>n(o.current),[o,n,...t]),r}c();d();f();var my=ce(ve(),1);c();d();f();c();d();f();function xU(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ko(){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 xU(()=>{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()}};return r}function Ji(){let[e]=(0,my.useState)(ko);return(0,my.useEffect)(()=>()=>e.dispose(),[e]),e}c();d();f();var EU=ce(ve(),1);var _t=function(e){let t=yn(e);return EU.default.useCallback((...r)=>t.current(...r),[t])};c();d();f();var F4=ce(ve(),1);c();d();f();var hh=ce(ve(),1),L4={serverHandoffComplete:!1};function ph(){let[e,t]=(0,hh.useState)(L4.serverHandoffComplete);return(0,hh.useEffect)(()=>{e!==!0&&t(!0)},[e]),(0,hh.useEffect)(()=>{L4.serverHandoffComplete===!1&&(L4.serverHandoffComplete=!0)},[]),e}var SU,bie=0;function CU(){return++bie}var mh=(SU=F4.default.useId)!=null?SU:function(){let e=ph(),[t,r]=F4.default.useState(e?CU:null);return pr(()=>{t===null&&r(CU())},[t]),t!=null?""+t:void 0};c();d();f();var yh=ce(ve(),1);c();d();f();c();d();f();function er(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,er),n}c();d();f();function gy(e){return hy?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var MU=["[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(","),_ie=(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))(_ie||{}),xie=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(xie||{}),Eie=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Eie||{});var gh=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(gh||{});function yy(e,t=0){var r;return e===((r=gy(e))==null?void 0:r.body)?!1:er(t,{[0](){return e.matches(MU)},[1](){let n=e;for(;n!==null;){if(n.matches(MU))return!0;n=n.parentElement}return!1}})}var U3e=["textarea","input"].join(",");function TU(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 PU=ce(ve(),1);function vy(e,t,r){let n=yn(t);(0,PU.useEffect)(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function OU(e,t,r=!0){let n=(0,yh.useRef)(!1);(0,yh.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(s,a){if(!n.current||s.defaultPrevented)return;let u=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e),l=a(s);if(l!==null&&!!l.getRootNode().contains(l)){for(let p of u){if(p===null)continue;let h=p instanceof HTMLElement?p:p.current;if(h!=null&&h.contains(l)||s.composed&&s.composedPath().includes(h))return}return!yy(l,gh.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}}let i=(0,yh.useRef)(null);vy("mousedown",s=>{var a,u;n.current&&(i.current=((u=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:u[0])||s.target)},!0),vy("click",s=>{!i.current||(o(s,()=>i.current),i.current=null)},!0),vy("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}c();d();f();var IU=ce(ve(),1);function DU(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 AU(e,t){let[r,n]=(0,IU.useState)(()=>DU(e));return pr(()=>{n(DU(e))},[e.type,e.as]),pr(()=>{r||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}c();d();f();var wy=ce(ve(),1);var Sie=Symbol();function Qi(...e){let t=(0,wy.useRef)(e);(0,wy.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[Sie]))?void 0:r}c();d();f();function Cie(e){throw new Error("Unexpected object: "+e)}var vn=(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))(vn||{});function NU(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,u,l)=>o!==-1&&l.length-u-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:Cie(e)}})();return i===-1?n:i}c();d();f();var yo=ce(ve(),1);var Bc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Bc||{}),ui=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ui||{});function Lo({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:s}){let a=RU(t,e);if(i)return by(a,r,n,s);let u=o!=null?o:0;if(u&2){let l=a,{static:h=!1}=l,y=Te(l,["static"]);if(h)return by(y,r,n,s)}if(u&1){let p=a,{unmount:h=!0}=p,y=Te(p,["unmount"]);return er(h?0:1,{[0](){return null},[1](){return by(Se(te({},y),{hidden:!0,style:{display:"none"}}),r,n,s)}})}return by(a,r,n,s)}function by(e,t={},r,n){let h=U4(e,["unmount","static"]),{as:o=r,children:i,refName:s="ref"}=h,a=Te(h,["as","children","refName"]),u=e.ref!==void 0?{[s]:e.ref}:{},l=typeof i=="function"?i(t):i;a.className&&typeof a.className=="function"&&(a.className=a.className(t));let p={};if(t){let y=!1,b=[];for(let[v,C]of Object.entries(t))typeof C=="boolean"&&(y=!0),C===!0&&b.push(v);y&&(p["data-headlessui-state"]=b.join(" "))}if(o===yo.Fragment&&Object.keys(_y(a)).length>0){if(!(0,yo.isValidElement)(l)||Array.isArray(l)&&l.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(a).map(y=>` - ${y}`).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(y=>` - ${y}`).join(`
88
+ `)].join(`
89
+ `));return(0,yo.cloneElement)(l,Object.assign({},RU(l.props,_y(U4(a,["ref"]))),p,u,Mie(l.ref,u.ref)))}return(0,yo.createElement)(o,Object.assign({},U4(a,["ref"]),o!==yo.Fragment&&u,o!==yo.Fragment&&p),l)}function Mie(...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 RU(...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 u of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;u(i,...s)}}});return r}function vo(e){var t;return Object.assign((0,yo.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function _y(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function U4(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}c();d();f();function kU(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&&Tie(r)?!1:n}function Tie(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 $4(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))FU(r,LU(t,n),o);return r}function LU(e,t){return e?e+"["+t+"]":t}function FU(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())FU(e,LU(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,""]):$4(r,t,e)}c();d();f();var Pie="div",B4=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(B4||{}),UU=vo(function(e,t){let i=e,{features:r=1}=i,n=Te(i,["features"]),o={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:te({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 Lo({ourProps:o,theirProps:n,slot:{},defaultTag:Pie,name:"Hidden"})});c();d();f();var Vc=ce(ve(),1),V4=(0,Vc.createContext)(null);V4.displayName="OpenClosedContext";var li=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(li||{});function vh(){return(0,Vc.useContext)(V4)}function xy({value:e,children:t}){return Vc.default.createElement(V4.Provider,{value:e},t)}c();d();f();var Sr=(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))(Sr||{});c();d();f();var jc=ce(ve(),1);function $U(e,t,r){let[n,o]=(0,jc.useState)(r),i=e!==void 0,s=(0,jc.useRef)(i),a=(0,jc.useRef)(!1),u=(0,jc.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&&!u.current&&(u.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(l=>(i||o(l),t==null?void 0:t(l)))]}c();d();f();var VU=ce(ve(),1);function BU(e){return[e.screenX,e.screenY]}function jU(){let e=(0,VU.useRef)([-1,-1]);return{wasMoved(t){let r=BU(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=BU(t)}}}c();d();f();var zU=ce(ve(),1);function Ey(){let e=(0,zU.useRef)(!1);return pr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}c();d();f();var lt=ce(ve(),1);var Oie=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oie||{}),Die=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Die||{}),Iie=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Iie||{}),Aie=(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))(Aie||{});function j4(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=TU(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 Nie={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:Se(te({},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),Se(te({},e),{listboxState:0,activeOptionIndex:t})},[2](e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=j4(e),o=NU(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return Se(te(te({},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?Se(te({},e),{searchQuery:n}):Se(te({},e),{searchQuery:n,activeOptionIndex:i,activationTrigger:1})},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:Se(te({},e),{searchQuery:""})},[5]:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=j4(e,o=>[...o,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),te(te({},e),n)},[6]:(e,t)=>{let r=j4(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return Se(te(te({},e),r),{activationTrigger:1})},[7]:(e,t)=>Se(te({},e),{labelId:t.id})},z4=(0,lt.createContext)(null);z4.displayName="ListboxActionsContext";function wh(e){let t=(0,lt.useContext)(z4);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wh),r}return t}var H4=(0,lt.createContext)(null);H4.displayName="ListboxDataContext";function bh(e){let t=(0,lt.useContext)(H4);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 Rie(e,t){return er(t.type,Nie,e,t)}var kie=lt.Fragment,Lie=vo(function(e,t){let V=e,{value:r,defaultValue:n,name:o,onChange:i,by:s=(ie,O)=>ie===O,disabled:a=!1,horizontal:u=!1,multiple:l=!1}=V,p=Te(V,["value","defaultValue","name","onChange","by","disabled","horizontal","multiple"]),h=u?"horizontal":"vertical",y=Qi(t),[b=l?[]:void 0,v]=$U(r,i,n),[C,N]=(0,lt.useReducer)(Rie,{dataRef:(0,lt.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),M=(0,lt.useRef)({static:!1,hold:!1}),T=(0,lt.useRef)(null),I=(0,lt.useRef)(null),U=(0,lt.useRef)(null),K=_t(typeof s=="string"?(ie,O)=>{let Y=s;return(ie==null?void 0:ie[Y])===(O==null?void 0:O[Y])}:s),J=(0,lt.useCallback)(ie=>er(j.mode,{[1]:()=>b.some(O=>K(O,ie)),[0]:()=>K(b,ie)}),[b]),j=(0,lt.useMemo)(()=>Se(te({},C),{value:b,disabled:a,mode:l?1:0,orientation:h,compare:K,isSelected:J,optionsPropsRef:M,labelRef:T,buttonRef:I,optionsRef:U}),[b,a,l,C]);pr(()=>{C.dataRef.current=j},[j]),OU([j.buttonRef,j.optionsRef],(ie,O)=>{var Y;N({type:1}),yy(O,gh.Loose)||(ie.preventDefault(),(Y=j.buttonRef.current)==null||Y.focus())},j.listboxState===0);let Z=(0,lt.useMemo)(()=>({open:j.listboxState===0,disabled:a,value:b}),[j,a,b]),le=_t(ie=>{let O=j.options.find(Y=>Y.id===ie);!O||E(O.dataRef.current.value)}),me=_t(()=>{if(j.activeOptionIndex!==null){let{dataRef:ie,id:O}=j.options[j.activeOptionIndex];E(ie.current.value),N({type:2,focus:vn.Specific,id:O})}}),fe=_t(()=>N({type:0})),W=_t(()=>N({type:1})),A=_t((ie,O,Y)=>ie===vn.Specific?N({type:2,focus:vn.Specific,id:O,trigger:Y}):N({type:2,focus:ie,trigger:Y})),g=_t((ie,O)=>(N({type:5,id:ie,dataRef:O}),()=>N({type:6,id:ie}))),w=_t(ie=>(N({type:7,id:ie}),()=>N({type:7,id:null}))),E=_t(ie=>er(j.mode,{[0](){return v==null?void 0:v(ie)},[1](){let O=j.value.slice(),Y=O.findIndex(ne=>K(ne,ie));return Y===-1?O.push(ie):O.splice(Y,1),v==null?void 0:v(O)}})),D=_t(ie=>N({type:3,value:ie})),k=_t(()=>N({type:4})),B=(0,lt.useMemo)(()=>({onChange:E,registerOption:g,registerLabel:w,goToOption:A,closeListbox:W,openListbox:fe,selectActiveOption:me,selectOption:le,search:D,clearSearch:k}),[]),q={ref:y},$=(0,lt.useRef)(null),_=Ji();return(0,lt.useEffect)(()=>{!$.current||n!==void 0&&_.addEventListener($.current,"reset",()=>{E(n)})},[$,E]),lt.default.createElement(z4.Provider,{value:B},lt.default.createElement(H4.Provider,{value:j},lt.default.createElement(xy,{value:er(j.listboxState,{[0]:li.Open,[1]:li.Closed})},o!=null&&b!=null&&$4({[o]:b}).map(([ie,O],Y)=>lt.default.createElement(UU,te({features:B4.Hidden,ref:Y===0?ne=>{var ae;$.current=(ae=ne==null?void 0:ne.closest("form"))!=null?ae:null}:void 0},_y({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:ie,value:O})))),Lo({ourProps:q,theirProps:p,slot:Z,defaultTag:kie,name:"Listbox"}))))}),Fie="button",Uie=vo(function(e,t){var r;let n=mh(),N=e,{id:o=`headlessui-listbox-button-${n}`}=N,i=Te(N,["id"]),s=bh("Listbox.Button"),a=wh("Listbox.Button"),u=Qi(s.buttonRef,t),l=Ji(),p=_t(M=>{switch(M.key){case Sr.Space:case Sr.Enter:case Sr.ArrowDown:M.preventDefault(),a.openListbox(),l.nextFrame(()=>{s.value||a.goToOption(vn.First)});break;case Sr.ArrowUp:M.preventDefault(),a.openListbox(),l.nextFrame(()=>{s.value||a.goToOption(vn.Last)});break}}),h=_t(M=>{switch(M.key){case Sr.Space:M.preventDefault();break}}),y=_t(M=>{if(kU(M.currentTarget))return M.preventDefault();s.listboxState===0?(a.closeListbox(),l.nextFrame(()=>{var T;return(T=s.buttonRef.current)==null?void 0:T.focus({preventScroll:!0})})):(M.preventDefault(),a.openListbox())}),b=k4(()=>{if(s.labelId)return[s.labelId,o].join(" ")},[s.labelId,o]),v=(0,lt.useMemo)(()=>({open:s.listboxState===0,disabled:s.disabled,value:s.value}),[s]),C={ref:u,id:o,type:AU(e,s.buttonRef),"aria-haspopup":!0,"aria-controls":(r=s.optionsRef.current)==null?void 0:r.id,"aria-expanded":s.disabled?void 0:s.listboxState===0,"aria-labelledby":b,disabled:s.disabled,onKeyDown:p,onKeyUp:h,onClick:y};return Lo({ourProps:C,theirProps:i,slot:v,defaultTag:Fie,name:"Listbox.Button"})}),$ie="label",Bie=vo(function(e,t){let r=mh(),p=e,{id:n=`headlessui-listbox-label-${r}`}=p,o=Te(p,["id"]),i=bh("Listbox.Label"),s=wh("Listbox.Label"),a=Qi(i.labelRef,t);pr(()=>s.registerLabel(n),[n]);let u=_t(()=>{var h;return(h=i.buttonRef.current)==null?void 0:h.focus({preventScroll:!0})}),l=(0,lt.useMemo)(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return Lo({ourProps:{ref:a,id:n,onClick:u},theirProps:o,slot:l,defaultTag:$ie,name:"Listbox.Label"})}),Vie="ul",jie=Bc.RenderStrategy|Bc.Static,zie=vo(function(e,t){var r;let n=mh(),M=e,{id:o=`headlessui-listbox-options-${n}`}=M,i=Te(M,["id"]),s=bh("Listbox.Options"),a=wh("Listbox.Options"),u=Qi(s.optionsRef,t),l=Ji(),p=Ji(),h=vh(),y=(()=>h!==null?h===li.Open:s.listboxState===0)();(0,lt.useEffect)(()=>{var T;let I=s.optionsRef.current;!I||s.listboxState===0&&I!==((T=gy(I))==null?void 0:T.activeElement)&&I.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let b=_t(T=>{switch(p.dispose(),T.key){case Sr.Space:if(s.searchQuery!=="")return T.preventDefault(),T.stopPropagation(),a.search(T.key);case Sr.Enter:if(T.preventDefault(),T.stopPropagation(),s.activeOptionIndex!==null){let{dataRef:I}=s.options[s.activeOptionIndex];a.onChange(I.current.value)}s.mode===0&&(a.closeListbox(),ko().nextFrame(()=>{var I;return(I=s.buttonRef.current)==null?void 0:I.focus({preventScroll:!0})}));break;case er(s.orientation,{vertical:Sr.ArrowDown,horizontal:Sr.ArrowRight}):return T.preventDefault(),T.stopPropagation(),a.goToOption(vn.Next);case er(s.orientation,{vertical:Sr.ArrowUp,horizontal:Sr.ArrowLeft}):return T.preventDefault(),T.stopPropagation(),a.goToOption(vn.Previous);case Sr.Home:case Sr.PageUp:return T.preventDefault(),T.stopPropagation(),a.goToOption(vn.First);case Sr.End:case Sr.PageDown:return T.preventDefault(),T.stopPropagation(),a.goToOption(vn.Last);case Sr.Escape:return T.preventDefault(),T.stopPropagation(),a.closeListbox(),l.nextFrame(()=>{var I;return(I=s.buttonRef.current)==null?void 0:I.focus({preventScroll:!0})});case Sr.Tab:T.preventDefault(),T.stopPropagation();break;default:T.key.length===1&&(a.search(T.key),p.setTimeout(()=>a.clearSearch(),350));break}}),v=k4(()=>{var T,I,U;return(U=(T=s.labelRef.current)==null?void 0:T.id)!=null?U:(I=s.buttonRef.current)==null?void 0:I.id},[s.labelRef.current,s.buttonRef.current]),C=(0,lt.useMemo)(()=>({open:s.listboxState===0}),[s]),N={"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:b,role:"listbox",tabIndex:0,ref:u};return Lo({ourProps:N,theirProps:i,slot:C,defaultTag:Vie,features:jie,visible:y,name:"Listbox.Options"})}),Hie="li",qie=vo(function(e,t){let r=mh(),K=e,{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i}=K,s=Te(K,["id","disabled","value"]),a=bh("Listbox.Option"),u=wh("Listbox.Option"),l=a.activeOptionIndex!==null?a.options[a.activeOptionIndex].id===n:!1,p=a.isSelected(i),h=(0,lt.useRef)(null),y=yn({disabled:o,value:i,domRef:h,get textValue(){var J,j;return(j=(J=h.current)==null?void 0:J.textContent)==null?void 0:j.toLowerCase()}}),b=Qi(t,h);pr(()=>{if(a.listboxState!==0||!l||a.activationTrigger===0)return;let J=ko();return J.requestAnimationFrame(()=>{var j,Z;(Z=(j=h.current)==null?void 0:j.scrollIntoView)==null||Z.call(j,{block:"nearest"})}),J.dispose},[h,l,a.listboxState,a.activationTrigger,a.activeOptionIndex]),pr(()=>u.registerOption(n,y),[y,n]);let v=_t(J=>{if(o)return J.preventDefault();u.onChange(i),a.mode===0&&(u.closeListbox(),ko().nextFrame(()=>{var j;return(j=a.buttonRef.current)==null?void 0:j.focus({preventScroll:!0})}))}),C=_t(()=>{if(o)return u.goToOption(vn.Nothing);u.goToOption(vn.Specific,n)}),N=jU(),M=_t(J=>N.update(J)),T=_t(J=>{!N.wasMoved(J)||o||l||u.goToOption(vn.Specific,n,0)}),I=_t(J=>{!N.wasMoved(J)||o||!l||u.goToOption(vn.Nothing)}),U=(0,lt.useMemo)(()=>({active:l,selected:p,disabled:o}),[l,p,o]);return Lo({ourProps:{id:n,ref:b,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":p,disabled:void 0,onClick:v,onFocus:C,onPointerEnter:M,onMouseEnter:M,onPointerMove:T,onMouseMove:T,onPointerLeave:I,onMouseLeave:I},theirProps:s,slot:U,defaultTag:Hie,name:"Listbox.Option"})}),zc=Object.assign(Lie,{Button:Uie,Label:Bie,Options:zie,Option:qie});c();d();f();var We=ce(ve(),1);c();d();f();c();d();f();c();d();f();function HU(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function q4(e,...t){e&&t.length>0&&e.classList.add(...t)}function K4(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Kie(e,t){let r=ko();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,s]=[n,o].map(a=>{let[u=0]=a.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,p)=>p-l);return u});if(i+s!==0){let a=r.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),a())})}else t();return r.add(()=>t()),r.dispose}function qU(e,t,r,n){let o=r?"enter":"leave",i=ko(),s=n!==void 0?HU(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=er(o,{enter:()=>t.enter,leave:()=>t.leave}),u=er(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=er(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return K4(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),q4(e,...a,...l),i.nextFrame(()=>{K4(e,...l),q4(e,...u),Kie(e,()=>(K4(e,...a),q4(e,...t.entered),s()))}),i.dispose}function KU({container:e,direction:t,classes:r,onStart:n,onStop:o}){let i=Ey(),s=Ji(),a=yn(t);pr(()=>{let u=ko();s.add(u.dispose);let l=e.current;if(!!l&&a.current!=="idle"&&!!i.current)return u.dispose(),n.current(a.current),u.add(qU(l,r.current,a.current==="enter",()=>{u.dispose(),o.current(a.current)})),u.dispose},[t])}c();d();f();function ZU(...e){return e.filter(Boolean).join(" ")}function pu(e=""){return e.split(" ").filter(t=>t.trim().length>1)}var Sy=(0,We.createContext)(null);Sy.displayName="TransitionContext";var Zie=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Zie||{});function Gie(){let e=(0,We.useContext)(Sy);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Wie(){let e=(0,We.useContext)(Cy);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}var Cy=(0,We.createContext)(null);Cy.displayName="NestingContext";function My(e){return"children"in e?My(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function WU(e,t){let r=yn(e),n=(0,We.useRef)([]),o=Ey(),i=Ji(),s=_t((b,v=ui.Hidden)=>{let C=n.current.findIndex(({el:N})=>N===b);C!==-1&&(er(v,{[ui.Unmount](){n.current.splice(C,1)},[ui.Hidden](){n.current[C].state="hidden"}}),i.microTask(()=>{var N;!My(n)&&o.current&&((N=r.current)==null||N.call(r))}))}),a=_t(b=>{let v=n.current.find(({el:C})=>C===b);return v?v.state!=="visible"&&(v.state="visible"):n.current.push({el:b,state:"visible"}),()=>s(b,ui.Unmount)}),u=(0,We.useRef)([]),l=(0,We.useRef)(Promise.resolve()),p=(0,We.useRef)({enter:[],leave:[],idle:[]}),h=_t((b,v,C)=>{u.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([N])=>N!==b)),t==null||t.chains.current[v].push([b,new Promise(N=>{u.current.push(N)})]),t==null||t.chains.current[v].push([b,new Promise(N=>{Promise.all(p.current[v].map(([M,T])=>T)).then(()=>N())})]),v==="enter"?l.current=l.current.then(()=>t==null?void 0:t.wait.current).then(()=>C(v)):C(v)}),y=_t((b,v,C)=>{Promise.all(p.current[v].splice(0).map(([N,M])=>M)).then(()=>{var N;(N=u.current.shift())==null||N()}).then(()=>C(v))});return(0,We.useMemo)(()=>({children:n,register:a,unregister:s,onStart:h,onStop:y,wait:l,chains:p}),[a,s,n,h,y,p,l])}function Yie(){}var Xie=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function GU(e){var t;let r={};for(let n of Xie)r[n]=(t=e[n])!=null?t:Yie;return r}function Jie(e){let t=(0,We.useRef)(GU(e));return(0,We.useEffect)(()=>{t.current=GU(e)},[e]),t}var Qie="div",YU=Bc.RenderStrategy,XU=vo(function(e,t){let q=e,{beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:u,entered:l,leave:p,leaveFrom:h,leaveTo:y}=q,b=Te(q,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),v=(0,We.useRef)(null),C=Qi(v,t),N=b.unmount?ui.Unmount:ui.Hidden,{show:M,appear:T,initial:I}=Gie(),[U,K]=(0,We.useState)(M?"visible":"hidden"),J=Wie(),{register:j,unregister:Z}=J,le=(0,We.useRef)(null);(0,We.useEffect)(()=>j(v),[j,v]),(0,We.useEffect)(()=>{if(N===ui.Hidden&&!!v.current){if(M&&U!=="visible"){K("visible");return}return er(U,{hidden:()=>Z(v),visible:()=>j(v)})}},[U,v,j,Z,M,N]);let me=yn({enter:pu(s),enterFrom:pu(a),enterTo:pu(u),entered:pu(l),leave:pu(p),leaveFrom:pu(h),leaveTo:pu(y)}),fe=Jie({beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i}),W=ph();(0,We.useEffect)(()=>{if(W&&U==="visible"&&v.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,U,W]);let A=I&&!T,g=(()=>!W||A||le.current===M?"idle":M?"enter":"leave")(),w=_t($=>er($,{enter:()=>fe.current.beforeEnter(),leave:()=>fe.current.beforeLeave(),idle:()=>{}})),E=_t($=>er($,{enter:()=>fe.current.afterEnter(),leave:()=>fe.current.afterLeave(),idle:()=>{}})),D=WU(()=>{K("hidden"),Z(v)},J);KU({container:v,classes:me,direction:g,onStart:yn($=>{D.onStart(v,$,w)}),onStop:yn($=>{D.onStop(v,$,E),$==="leave"&&!My(D)&&(K("hidden"),Z(v))})}),(0,We.useEffect)(()=>{!A||(N===ui.Hidden?le.current=null:le.current=M)},[M,A,U]);let k=b,B={ref:C};return T&&M&&(typeof window>"u"||typeof document>"u")&&(k=Se(te({},k),{className:ZU(b.className,...me.current.enter,...me.current.enterFrom)})),We.default.createElement(Cy.Provider,{value:D},We.default.createElement(xy,{value:er(U,{visible:li.Open,hidden:li.Closed})},Lo({ourProps:B,theirProps:k,defaultTag:Qie,features:YU,visible:U==="visible",name:"Transition.Child"})))}),Z4=vo(function(e,t){let M=e,{show:r,appear:n=!1,unmount:o}=M,i=Te(M,["show","appear","unmount"]),s=(0,We.useRef)(null),a=Qi(s,t);ph();let u=vh();if(r===void 0&&u!==null&&(r=er(u,{[li.Open]:!0,[li.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,p]=(0,We.useState)(r?"visible":"hidden"),h=WU(()=>{p("hidden")}),[y,b]=(0,We.useState)(!0),v=(0,We.useRef)([r]);pr(()=>{y!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),b(!1))},[v,r]);let C=(0,We.useMemo)(()=>({show:r,appear:n,initial:y}),[r,n,y]);(0,We.useEffect)(()=>{if(r)p("visible");else if(!My(h))p("hidden");else{let T=s.current;if(!T)return;let I=T.getBoundingClientRect();I.x===0&&I.y===0&&I.width===0&&I.height===0&&p("hidden")}},[r,h]);let N={unmount:o};return We.default.createElement(Cy.Provider,{value:h},We.default.createElement(Sy.Provider,{value:C},Lo({ourProps:Se(te({},N),{as:We.Fragment,children:We.default.createElement(XU,te(te({ref:a},N),i))}),theirProps:{},defaultTag:We.Fragment,features:YU,visible:l==="visible",name:"Transition"})))}),ese=vo(function(e,t){let r=(0,We.useContext)(Sy)!==null,n=vh()!==null;return We.default.createElement(We.default.Fragment,null,!r&&n?We.default.createElement(Z4,te({ref:t},e)):We.default.createElement(XU,te({ref:t},e)))}),JU=Object.assign(Z4,{Child:ese,Root:Z4});var Fo=ce(ve(),1),tse=({value:e,onChange:t})=>{let[r,n]=(0,Fo.useState)("us"),o=(0,Fo.useRef)(null);(0,Fo.useEffect)(()=>{let s=o.current;if(!s)return;let a=0,u=h=>{s.scrollTop+=h.deltaY},l=h=>{a=s.scrollTop+h.touches[0].pageY},p=h=>{s.scrollTop=a-h.touches[0].pageY};return s.addEventListener("wheel",u),s.addEventListener("touchstart",l),s.addEventListener("touchmove",p),()=>{s.removeEventListener("wheel",u),s.removeEventListener("touchstart",l),s.removeEventListener("touchmove",p)}},[]);let i=(0,Fo.useCallback)(()=>{let s=o.current;if(!s)return;let a=s.getBoundingClientRect();s.style.maxHeight=`${window.innerHeight-a.top-12}px`},[]);return(0,Fo.useEffect)(()=>{t(G4.allCountries.find(s=>s.iso2===r).dialCode)},[r,t]),m.createElement(zc,{value:r,onChange:n},({open:s})=>m.createElement(m.Fragment,null,m.createElement(zc.Label,{className:"sr-only block text-sm font-medium text-gray-700"},"Country Code"),m.createElement(zc.Button,{className:"flex flex-none items-center"},m.createElement(R4,{svg:!0,countryCode:r,style:{width:24,height:24,flexShrink:0,objectFit:"cover",borderRadius:"50%"}}),m.createElement("p",{className:"ml-2.5 mr-1 dark:text-white"},"+",e),m.createElement(wU,{className:"text-9eafc0 h-4 w-4 shrink-0 basis-4","aria-hidden":"true"})),m.createElement(JU,{show:s,as:Fo.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",beforeEnter:i,unmount:!1},m.createElement(zc.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-y-scroll rounded-2xl bg-white px-2 py-1 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},G4.allCountries.map(a=>m.createElement(zc.Option,{key:a.iso2,className:({selected:u,active:l})=>Nr("dark:text-white",u?"bg-indigo-500 text-white font-medium":l?"bg-indigo-50/50 dark:bg-ece8fb/10":"text-gray-900 dark:text-white","relative flex items-center justify-between px-2 py-2 w-full rounded-2xl text-sm focus:bg-gray-100 dark:focus:bg-ece8fb/25","focus:outline-none select-none"),value:a.iso2},({selected:u})=>m.createElement(m.Fragment,null,m.createElement("div",{className:"flex items-center"},m.createElement(R4,{svg:!0,countryCode:a.iso2,style:{width:24,height:24,flexShrink:0}}),m.createElement("p",{className:"mx-2 whitespace-pre-wrap"},a.name),u?m.createElement("span",{className:"text-white"},m.createElement(Mm,{className:"h-5 w-5","aria-hidden":"true"})):null),m.createElement("span",{className:Nr("font-medium",u?"text-white":"text-6445dd dark:text-white")},"+",a.dialCode))))))))},QU=tse;var es=ce(ve(),1),rse=({setPhoneNumber:e})=>({setFullPhone:e}),nse=({disabled:e,onSubmit:t})=>{let{setFullPhone:r}=Gt(rse),[n,o]=(0,es.useState)("1"),[i,s]=(0,es.useState)("");return(0,es.useEffect)(()=>{let a=(0,e$.phone)(`+${n} ${i}`);if(!a.isValid){r("");return}r(a.phoneNumber)},[n,i,r]),m.createElement(es.Fragment,null,m.createElement("label",{htmlFor:"phone-number",className:"sr-only block text-sm font-medium text-gray-700"},"Phone Number"),m.createElement("div",{className:"dark:bg-29343f relative mt-1 flex rounded-2xl border border-transparent bg-gray-100 py-4 px-3 shadow-sm transition-colors focus-within:border-[#5b52f3]"},m.createElement("div",{className:"flex items-center"},m.createElement("label",{htmlFor:"country",className:"sr-only"},"Country"),m.createElement(QU,{value:n,onChange:o})),m.createElement("input",{type:"tel",id:"phone-number",name:"phone-number",value:i,placeholder:"Phone number",onChange:a=>s(a.target.value),className:"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())})))},t$=(0,es.memo)(nse);c();d();f();var r$="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 ise=n=>{var o=n,{border:e,size:t="sm"}=o,r=Te(o,["border","size"]);let i=t==="md"?36:24;return m.createElement(m.Fragment,null,e&&m.createElement("svg",{className:Nr(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"},m.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"})),m.createElement("img",Se(te({src:r$},r),{alt:"Verified",width:i,height:i})))},Ty=ise;c();d();f();var sse="https://developer.worldcoin.org/api/v1";async function Py(e,t,r,n){let o=await i$("/phone/request",{phone_number:e,action_id:t,channel:r,ph_distinct_id:n});if(!o.ok)throw await o.json()}async function n$(e,t,r,n){let o=await i$("/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 Oy(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"detail")}function o$(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")}var i$=(e,t)=>fetch(`${sse}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});var use=({processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,setStage:o,setProcessing:i,setErrorState:s,copy:a})=>({copy:a,processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,useWorldID:()=>o("WORLD_ID"),onSubmit:async()=>{try{i(!0),s(null),await Py(r,n,"sms",xu()),IE(),i(!1),o("ENTER_CODE")}catch(u){console.error(u),i(!1);let l;Oy(u)?(l=Object.values(hv).includes(u.code)&&u.detail||void 0,u.code!=="timeout"&&o("ERROR")):o("ERROR"),s({code:"PHONE_OTP_REQUEST_ERROR",message:l})}},onResetErrorState:()=>{s(null)}}),lse=()=>{let{copy:e,phoneNumber:t,processing:r,useWorldID:n,onSubmit:o,errorState:i,onResetErrorState:s}=Gt(use);return m.createElement("div",{className:"space-y-6"},m.createElement(NT,{className:"absolute -mt-1 flex gap-4 rounded-md bg-[#fecaca] p-3 shadow-lg",open:!!i,onOpenChange:s,asChild:!0},m.createElement(Dt.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},transition:{duration:.3}},m.createElement(RT,{className:"text-xs font-medium text-red-600"},(i==null?void 0:i.message)||"Unable to send code. Please try again."),m.createElement(kT,{altText:"Close"},m.createElement(Ju,{className:"h-4 w-4"})))),m.createElement("div",null,m.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(e==null?void 0:e.heading)||oa.heading),m.createElement("p",{className:"text-70868f mt-3 text-center md:mt-2"},(e==null?void 0:e.subheading)||oa.subheading)),m.createElement("div",{className:"mt-2 space-y-2"},m.createElement(t$,{disabled:r,onSubmit:o}),m.createElement("p",{className:"text-9eafc0 dark:text-596673 text-center text-xs"},"We'll call or text to confirm your number. No data is stored.")),m.createElement("div",{className:"flex items-center justify-center space-x-1"},m.createElement("div",{className:"flex items-center space-x-2"},m.createElement(Ty,null),m.createElement("p",{className:"text-9eafc0 dark:text-70868f font-medium"},"I have World ID")),m.createElement("span",{className:"font-medium text-gray-400"},"\u2022"),m.createElement("button",{onClick:n,className:"bg-gradient-to-r from-[#FF6848] to-[#4940E0] bg-clip-text font-medium text-transparent"},"Verify human")),m.createElement("div",{className:"mt-4 flex justify-center"},m.createElement(Dt.button,{animate:{opacity:t?1:.4},type:"button",transition:{layout:{duration:.15}},onClick:()=>void o(),layoutId:"submit-button",disabled:!t||r,className:Nr("inline-flex items-center px-8 py-3 border border-transparent font-medium rounded-full shadow-sm","text-white bg-indigo-600 hover:bg-indigo-700","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/50 disabled:text-9eafc0")},m.createElement(Dt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Continue"))))},s$=lse;c();d();f();var Ny=ce(ve(),1);c();d();f();var Iy=ce(ve(),1);c();d();f();var Uo=ce(ve()),Et=ce(D6());function u$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a$(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 l$(e,t,r){return t&&a$(e.prototype,t),r&&a$(e,r),e}function c$(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&&W4(e,t)}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Dy(e)}function W4(e,t){return W4=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},W4(e,t)}function cse(){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 fse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dse(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:fse(e)}function f$(e){var t=cse();return function(){var n=Dy(e),o;if(t){var i=Dy(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return dse(this,o)}}function hse(e){return pse(e)||mse(e)||gse(e)||yse()}function pse(e){if(Array.isArray(e))return Y4(e)}function mse(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gse(e,t){if(!!e){if(typeof e=="string")return Y4(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 Y4(e,t)}}function Y4(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 yse(){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 _h(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:(hse(Array(t)).map(function(){return"0"}).join("")+s).slice(t*-1);return"".concat(o).concat(a).concat(i)}var d$={daysInHours:!1,zeroPadTime:2};function vse(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,u=a===void 0?0:a,l=t.overtime,p;typeof e=="string"?p=new Date(e).getTime():e instanceof Date?p=e.getTime():p=e,s||(p+=u);var h=s?p:p-n(),y=Math.min(20,Math.max(0,i)),b=Math.round(parseFloat(((l?h:Math.max(0,h))/1e3).toFixed(y))*1e3),v=Math.abs(b)/1e3;return{total:b,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:b<=0}}function wse(e,t){var r=e.days,n=e.hours,o=e.minutes,i=e.seconds,s=Object.assign(Object.assign({},d$),t),a=s.daysInHours,u=s.zeroPadTime,l=s.zeroPadDays,p=l===void 0?u:l,h=Math.min(2,u),y=a?_h(n+r*24,u):_h(n,h);return{days:a?"":_h(r,p),hours:y,minutes:_h(o,h),seconds:_h(i,h)}}var h$=function(e){c$(r,e);var t=f$(r);function r(){var n;return u$(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 l$(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,Uo.cloneElement)(this.props.children,{count:this.state.count}):null}}]),r}(Uo.Component);h$.propTypes={count:Et.number,children:Et.element,onComplete:Et.func};var X4=function(e){c$(r,e);var t=f$(r);function r(n){var o;if(u$(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,Uo.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 l$(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,u=o.controlled,l=o.overtime;return vse(i,{now:s,precision:a,controlled:u,offsetTime:this.offsetTime,overtime:l})}},{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 u=o.completed&&!this.state.timeDelta.completed,l=o.completed&&i==="STARTED";u&&!this.props.overtime&&this.clearTimer();var p=function(){s&&s(a.state.timeDelta),a.props.onComplete&&(u||l)&&a.props.onComplete(o,l)};return this.setState(function(h){var y=i||h.status;return o.completed&&!a.props.overtime?y="COMPLETED":!i&&y==="COMPLETED"&&(y="STOPPED"),{timeDelta:o,status:y}},p)}}},{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,u=this.state.timeDelta;return Object.assign(Object.assign({},u),{api:this.getApi(),props:this.props,formatted:wse(u,{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,Uo.createElement)(h$,{ref:this.legacyCountdownRef,count:i,onComplete:a},s)}var u=this.props,l=u.className,p=u.overtime,h=u.children,y=u.renderer,b=this.getRenderProps();if(y)return y(b);if(h&&this.state.timeDelta.completed&&!p)return(0,Uo.cloneElement)(h,{countdown:b});var v=b.formatted,C=v.days,N=v.hours,M=v.minutes,T=v.seconds;return(0,Uo.createElement)("span",{className:l},b.total<0?"-":"",C,C?":":"",N,":",M,":",T)}}]),r}(Uo.Component);X4.defaultProps=Object.assign(Object.assign({},d$),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});X4.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 p$=X4;var m$=59*1e3,bse=({minutes:e,seconds:t,completed:r})=>{if(!r)return m.createElement("span",null,"in ",e,":",t<10?`0${t}`:t)},_se=()=>{let{phoneNumber:e,stringifiedActionId:t,setProcessing:r,setStage:n,setErrorState:o}=Gt(),[i,s]=(0,Iy.useState)(new Date().getTime()+m$),a=async u=>{s(new Date().getTime()+m$);try{r(!0),await Py(e,t,u,xu()),AE(u),r(!1)}catch(l){r(!1),s(void 0),Oy(l)&&l.code!=="server_error"?(o({code:"GENERIC_ERROR"}),console.error(l)):n("ERROR")}};return m.createElement(m.Fragment,null,m.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&&m.createElement(p$,{onComplete:()=>s(void 0),date:i,renderer:bse}))," ","or"," ",m.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"))},g$=(0,Iy.memo)(_se);c();d();f();var mr=ce(ve(),1),Ay=e=>new Array(6).fill("").map((t,r)=>e[r]||""),xse=({code:e,setCode:t})=>({code:e,setCode:t}),Ese=({submitRef:e,disabled:t})=>{let{code:r,setCode:n}=Gt(xse),o=(0,mr.useMemo)(()=>new Array(6).fill(null).map(()=>(0,mr.createRef)()),[]),[i,s]=(0,mr.useState)(Ay("")),[a,u]=(0,mr.useState)(-1);(0,mr.useEffect)(()=>{r||s(Ay(""))},[r]);let l=(0,mr.useCallback)(M=>{requestAnimationFrame(()=>{var T;(T=o[M].current)==null||T.select()})},[o]),p=(0,mr.useCallback)((M,T)=>{let I=[...i];I[T]=M,s(I);let U=I.join("");n(""),U.length===6&&n(U)},[n,i]),h=(0,mr.useCallback)(M=>{requestAnimationFrame(()=>{var T,I;(I=(T=o[M])==null?void 0:T.current)==null||I.focus()})},[o]),y=(0,mr.useCallback)(M=>{requestAnimationFrame(()=>{var T;(T=o[M].current)==null||T.blur()})},[o]),b=M=>{var T;!((T=o[M])!=null&&T.current)||(u(M),l(M))},v=(0,mr.useCallback)((M,T)=>{let I=M.target.value.replace(i[T],"");if(!/^\d/.test(I))return l(T);if(I.length>1)return s(Ay(M.target.value)),M.target.value.length!==6?void 0:(n(M.target.value),y(T));p(I,T),T===5?requestAnimationFrame(()=>{var U;(U=e.current)==null||U.focus()}):h(T+1)},[y,e,h,l,n,p,i]),C=(0,mr.useCallback)((M,T)=>{if(M.key==="Backspace"||M.key==="Delete")return M.preventDefault(),p("",a),h(T-1);if(M.key===i[T]){if(T===5)return y(T);h(T+1)}},[h,y,a,p,i]),N=(0,mr.useCallback)((M,T)=>{M.preventDefault();let U=M.clipboardData.getData("text").slice(0,6);if(!!/^\d/.test(U)){if(s(Ay(U)),U.length!==6)return h(U.length);n(U),y(T)}},[y,h,n]);return(0,mr.useEffect)(()=>{h(0)},[h,o]),m.createElement("fieldset",{className:"flex items-center justify-center space-x-3"},m.createElement("legend",{className:"sr-only"},"Enter your SMS code"),o.map((M,T)=>m.createElement("input",{ref:M,key:T,maxLength:1,type:"number",pattern:"[0-9]*",value:i[T],inputMode:"numeric",autoComplete:"one-time-code",autoFocus:T===0,onFocus:()=>b(T),onPaste:I=>N(I,T),onChange:I=>v(I,T),onKeyDown:I=>C(I,T),className:Nr("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})))},y$=(0,mr.memo)(Ese);var Sse=({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,setStage:o,setProcessing:i,setCode:s,copy:a,handleVerify:u,setErrorState:l,errorState:p})=>({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,errorState:p,setCode:s,setErrorState:l,copy:a,onSubmit:async()=>{try{l(null),i(!0);let h=await n$(t,r,n,xu()),{nullifier_hash:y}=h,b=Te(h,["nullifier_hash"]);u({signal_type:"phone",nullifier_hash:y,proof_payload:b})}catch(y){i(!1),s(""),o$(y)?(l({code:"INVALID_CODE"}),console.error(y)):o("ERROR")}},useWorldID:()=>o("WORLD_ID")}),Cse=()=>{let e=(0,Ny.useRef)(null),{phoneNumber:t,processing:r,code:n,onSubmit:o,useWorldID:i,errorState:s}=Gt(Sse),a=(0,Ny.useMemo)(()=>{if(!r&&s)return{x:[0,-16,16,-8,8,0]}},[r,s]);return m.createElement("div",{className:"space-y-6"},m.createElement("div",null,m.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Enter your 6-digit code to complete the verification."),m.createElement("p",{className:"text-70868f mt-2 text-center"},"Code has been sent to ",m.createElement("span",{className:"font-medium"},t))),m.createElement("form",{className:"mt-2 space-y-2"},m.createElement(Dt.div,{animate:a,transition:{type:"spring",stiffness:30}},m.createElement(y$,{submitRef:e,disabled:r})),m.createElement("p",{className:"text-70868f text-center text-xs"},s?m.createElement("span",{className:"text-red-400"},"That code is invalid. Please try again."):"Did not receive a code?"," ",m.createElement(g$,null))),m.createElement("div",{className:"flex items-center justify-center space-x-1"},m.createElement("div",{className:"flex items-center space-x-2"},m.createElement(Ty,null),m.createElement("p",{className:"text-70868f font-medium"},"I have World ID")),m.createElement("span",{className:"font-medium text-gray-400"},"\u2022"),m.createElement("button",{type:"button",onClick:i,className:"bg-gradient-to-r from-[#FF6848] to-[#4940E0] bg-clip-text font-medium text-transparent"},"Verify human")),m.createElement("div",{className:"mt-4 flex justify-center"},m.createElement(Dt.button,{layoutId:"submit-button",type:"button",animate:{opacity:n?1:.4},transition:{layout:{duration:.15}},onClick:()=>void o(),disabled:!n||r,ref:e,className:"inline-flex w-full items-center justify-center rounded-2xl border border-transparent bg-indigo-600 px-8 py-4 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"},m.createElement(Dt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Continue"))))},v$=Cse;c();d();f();var Mse=({className:e=""})=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,fill:"currentColor",viewBox:"0 0 6 12"},m.createElement("path",{d:"m4.683 4.08.63.407-.63-.406ZM.25 3a.75.75 0 0 0 1.5 0H.25Zm2 4.5a.75.75 0 0 0 1.5 0h-1.5Zm1.5 2.5a.75.75 0 0 0-1.5 0h1.5Zm-1.5 1a.75.75 0 0 0 1.5 0h-1.5Zm2-8c0 .25-.073.48-.198.675l1.262.812c.276-.43.436-.94.436-1.487h-1.5Zm-2.5 0c0-.69.56-1.25 1.25-1.25V.25A2.75 2.75 0 0 0 .25 3h1.5ZM3 1.75c.69 0 1.25.56 1.25 1.25h1.5A2.75 2.75 0 0 0 3 .25v1.5ZM2.25 7v.5h1.5V7h-1.5Zm1.802-3.325a7.592 7.592 0 0 1-.468.628c-.178.22-.386.473-.573.73C2.642 5.54 2.25 6.201 2.25 7h1.5c0-.305.15-.64.474-1.084.159-.219.334-.43.528-.672.187-.232.389-.489.562-.757l-1.262-.812ZM2.25 10v1h1.5v-1h-1.5Z"})),w$=Mse;c();d();f();var Tse=e=>m.createElement("svg",Se(te({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),b$=Tse;var ts=ce(ve(),1);c();d();f();var _$=ce(ve(),1);var Pse=()=>m.createElement("div",{className:"space-y-6"},m.createElement("div",{className:"flex justify-center"},m.createElement(Vl,{className:"h-24 w-24"})),m.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),x$=(0,_$.memo)(Pse);var Dse=({copy:e,open:t,processing:r,onOpenChange:n,stage:o,setStage:i,theme:s,setOptions:a})=>({copy:e,stage:o,theme:s,setStage:i,processing:r,setOptions:a,isOpen:t,onOpenChange:n}),Ise=({children:e,actionId:t,signal:r,walletconnectId:n,theme:o,handleVerify:i,onSuccess:s,autoClose:a,copy:u})=>{let{isOpen:l,onOpenChange:p,processing:h,stage:y,setStage:b,setOptions:v,copy:C,theme:N}=Gt(Dse),[M,T]=(0,ts.useState)(!1);(0,ts.useEffect)(()=>{v({actionId:t,signal:r,walletconnectId:n,onSuccess:s,handleVerify:i,autoClose:a,copy:u,theme:o},"props")},[t,r,n,s,o,i,a,u,v]),(0,ts.useEffect)(()=>T(window.innerWidth<768),[]);let I=(0,ts.useMemo)(()=>{switch(y){case"ENTER_PHONE":return s$;case"WORLD_ID":return bF;case"ENTER_CODE":return v$;case"SUCCESS":return UT;case"ERROR":return iT;case"ABOUT":return oT;case"PRIVACY":return FT;case"HOST_APP_VERIFICATION":return x$;default:throw new Error("Invalid IDKitStage.")}},[y]);return m.createElement(rU,{open:l,onOpenChange:p},e==null?void 0:e({open:()=>p(!0)}),m.createElement(nU,{forceMount:!0},m.createElement(ts.Fragment,null,m.createElement(dm,null,l&&m.createElement(f9.div,{mode:"open",id:"idkit-widget"},m.createElement(d9,null),m.createElement("div",{id:"modal",className:Nr(N=="dark"&&"dark","fixed z-10 font-sans")},m.createElement(oU,{asChild:!0},m.createElement(Dt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),m.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},m.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},m.createElement(iU,{asChild:!0},m.createElement(Dt.div,{layout:!0,animate:M?"animateMob":"animate",initial:M?"initMob":"init",exit:M?"initMob":"init",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"},m.createElement(IT,null,m.createElement(AT,{className:"flex justify-center"}),m.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},y=="ENTER_PHONE"?m.createElement("button",{onClick:()=>b("ABOUT"),className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},m.createElement(w$,{className:"w-1.5"})):["ENTER_CODE","WORLD_ID","PRIVACY","ABOUT"].includes(y)?m.createElement("button",{onClick:()=>b("ENTER_PHONE"),className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},m.createElement(b$,{className:"w-4"})):null,m.createElement(sU,{className:"dark:text-d3dfea font-medium text-gray-900"},y!="ABOUT"&&((C==null?void 0:C.title)||oa.title)),m.createElement(aU,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},m.createElement(Ju,{className:"h-4 w-4"}))),m.createElement("div",{className:"relative"},m.createElement(Dt.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:h?"hidden":"visible"},transition:{layout:{duration:.15}}},m.createElement(I,null)),m.createElement(dm,null,h&&m.createElement(Dt.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},m.createElement(Vl,{className:"h-24 w-24"})))),m.createElement("div",{className:"dark:bg-29343f flex items-center justify-between bg-gray-100 py-3 px-6 md:rounded-b-3xl"},m.createElement("p",{className:"text-70868f flex items-center gap-1 text-sm"},m.createElement("span",null,"Verified with"),m.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},m.createElement(uU,{className:"h-4 text-black dark:text-white"}))),m.createElement("button",{onClick:()=>b("PRIVACY"),className:"text-70868f text-sm hover:underline"},"Privacy Policy")))))))))))))},E$=Ise;var C$=(0,S$.memo)(E$);var J4,Hc=!1,Ase=e=>{if(Hc)throw new Error("IDKit is already initialized");if(!e.actionId)throw new Error("You must provide your Action ID");e.walletconnectId||(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(!Hc){let r=document.createElement("div");document.body.appendChild(r),J4=(0,M$.createRoot)(r),J4.render(m.createElement(C$,te({},e))),OE(e.enableTelemetry),Hc=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},Nse=e=>{if(!Hc)throw new Error("IDKit is not initialized");Gt.getState().setOptions(e,"props")},Rse=()=>new Promise((e,t)=>{if(!Hc)return t("IDKitWidget is not initialized");Gt.getState().addSuccessCallback(e,"manual"),Gt.setState({open:!0})}),kse=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),J4.unmount(),Hc=!1,Gt.destroy()};return r3(Lse);})();
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
+ */