1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,906085,t=>{"use strict";var r="undefined"!=typeof self?self:"undefined"!=typeof window?window:t.g;let e=r.fetch,n=r.fetch.bind(r),i=r.Headers,o=r.Request,f=r.Response;t.s(["Headers",0,i,"Request",0,o,"Response",0,f,"default",0,n,"fetch",0,e])},467034,(t,r,e)=>{var n={675:function(t,r){"use strict";r.byteLength=function(t){var r=u(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,o=u(t),f=o[0],a=o[1],s=new i((f+a)*3/4-a),l=0,h=a>0?f-4:f;for(e=0;e<h;e+=4)r=n[t.charCodeAt(e)]<<18|n[t.charCodeAt(e+1)]<<12|n[t.charCodeAt(e+2)]<<6|n[t.charCodeAt(e+3)],s[l++]=r>>16&255,s[l++]=r>>8&255,s[l++]=255&r;return 2===a&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,s[l++]=255&r),1===a&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,s[l++]=r>>8&255,s[l++]=255&r),s},r.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],f=0,a=n-i;f<a;f+=16383)o.push(function(t,r,n){for(var i,o=[],f=r;f<n;f+=3)i=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),o.push(e[i>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return o.join("")}(t,f,f+16383>a?a:f+16383));return 1===i?o.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===i&&o.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),o.join("")};for(var e=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,a=o.length;f<a;++f)e[f]=o[f],n[o.charCodeAt(f)]=f;function u(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},72:function(t,r,e){"use strict";var n=e(675),i=e(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,a.prototype),r}function a(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,r,e)}function u(t,r,e){if("string"==typeof t){var n=t,i=r;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=f(o),s=u.write(n,i);return s!==o&&(u=u.slice(0,s)),u}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),a.prototype),n}(t,r,e);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return a.from(l,r,e);var d=function(t){if(a.isBuffer(t)){var r=0|c(t.length),e=f(r);return 0===e.length||t.copy(e,0,0,r),e}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?f(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(d)return d;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),r,e);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return s(t),f(t<0?0:0|c(t))}function h(t){for(var r=t.length<0?0:0|c(t.length),e=f(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}r.Buffer=a,r.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,r,e){return u(t,r,e)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,r,e){return(s(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)}
vendor: 15,249 bytes, line 1
1,a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)};function c(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,r){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return C(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return U(t).length;default:if(i)return n?-1:C(t).length;r=(""+r).toLowerCase(),i=!0}}function d(t,r,e){var i,o,f,a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=I[t[o]];return i}(this,r,e);case"utf8":case"utf-8":return m(this,r,e);case"ascii":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}(this,r,e);case"latin1":case"binary":return function(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}(this,r,e);case"base64":return i=this,o=r,f=e,0===o&&f===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,f));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,r,e);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function y(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function g(t,r,e,n,i){var o;if(0===t.length)return -1;if("string"==typeof e?(n=e,e=0):e>0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(o=e*=1)!=o&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(i)return -1;else e=t.length-1;else if(e<0)if(!i)return -1;else e=0;if("string"==typeof r&&(r=a.from(r,n)),a.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,i);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return v(t,[r],e,n,i)}throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,i){var o,f=1,a=t.length,u=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,a/=2,u/=2,e/=2}function s(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(i){var l=-1;for(o=e;o<a;o++)if(s(t,o)===s(r,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*f}else -1!==l&&(o-=o-l),l=-1}else for(e+u>a&&(e=a-u),o=e;o>=0;o--){for(var h=!0,c=0;c<u;c++)if(s(t,o+c)!==s(r,c)){h=!1;break}if(h)return o}return -1}a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,r){if(T(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),T(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(t)||!a.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:+(n<e)},a.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}},a.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===r)for(e=0,r=0;e<t.length;++e)r+=t[e].length;var e,n=a.allocUnsafe(r),i=0;for(e=0;e<t.length;++e){var o=t[e];if(T(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)y(this,r,r+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)y(this,r,r+3),y(this,r+1,r+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)y(this,r,r+7),y(this,r+1,r+6),y(this,r+2,r+5),y(this,r+3,r+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?m(this,0,t):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,r,e,n,i){if(T(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,f=e-r,u=Math.min(o,f),s=this.slice(n,i),l=t.slice(r,e),h=0;h<u;++h)if(s[h]!==l[h]){o=s[h],f=l[h];break}return o<f?-1:+(f<o)},a.prototype.includes=function(t,r,e){return -1!==this.indexOf(t,r,e)},a.prototype.indexOf=function(t,r,e){return g(this,t,r,e,!0)},a.prototype.lastIndexOf=function(t,r,e){return g(this,t,r,e,!1)};function m(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,f,a,u,s=t[i],l=null,h=s>239?4:s>223?3:s>191?2:1;if(i+h<=e)switch(h){case 1:s<128&&(l=s);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&s)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],f=t[i+2],(192&o)==128&&(192&f)==128&&(u=(15&s)<<12|(63&o)<<6|63&f)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],f=t[i+2],a=t[i+3],(192&o)==128&&(192&f)==128&&(192&a)==128&&(u=(15&s)<<18|(63&o)<<12|(63&f)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var c=n,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var d="",y=0;y<p;)d+=String.fromCharCode.apply(String,c.slice(y,y+=4096));return d}function w(t,r,e){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>e)throw RangeError("Trying to access beyond buffer length")}function b(t,r,e,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw RangeError('"value" argument is out of bounds');if(e+n>t.length)throw RangeError("Index out of range")}function E(t,r,e,n,i,o){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,o){return r*=1,e>>>=0,o||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),i.write(t,r,e,n,23,4),e+4}function x(t,r,e,n,o){return r*=1,e>>>=0,o||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),i.write(t,r,e,n,52,8),e+8}a.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,f,a,u,s,l,h,c=this.length-r;if((void 0===e||e>c)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;n>o/2&&(n=o/2);for(var f=0;f<n;++f){var a,u=parseInt(r.substr(2*f,2),16);if((a=u)!=a)break;t[e+f]=u}return f}(this,t,r,e);case"utf8":case"utf-8":return i=r,o=e,R(C(t,this.length-i),this,i,o);case"ascii":return f=r,a=e,R(S(t),this,f,a);case"latin1":case"binary":return function(t,r,e,n){return R(S(r),t,e,n)}(this,t,r,e);case"base64":return u=r,s=e,R(U(t),this,u,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=r,h=e,R(function(t,r){for(var e,n,i=[],o=0;o<t.length&&!((r-=2)<0);++o)n=(e=t.charCodeAt(o))>>8,i.push(e%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},a.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},a.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},a.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},a.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},a.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var i=Math.pow(2,8*e)-1;b(this,t,r,e,i,0)}var o=1,f=0;for(this[r]=255&t;++f<e&&(o*=256);)this[r+f]=t/o&255;return r+e},a.prototype.writeUIntBE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var i=Math.pow(2,8*e)-1;b(this,t,r,e,i,0)}var o=e-1,f=1;for(this[r+o]=255&t;--o>=0&&(f*=256);)this[r+o]=t/f&255;return r+e},a.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,1,255,0),this[r]=255&t,r+1},a.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},a.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var i=Math.pow(2,8*e-1);b(this,t,r,e,i-1,-i)}var o=0,f=1,a=0;for(this[r]=255&t;++o<e&&(f*=256);)t<0&&0===a&&0!==this[r+o-1]&&(a=1),this[r+o]=(t/f|0)-a&255;return r+e},a.prototype.writeIntBE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var i=Math.pow(2,8*e-1);b(this,t,r,e,i-1,-i)}var o=e-1,f=1,a=0;for(this[r+o]=255&t;--o>=0&&(f*=256);)t<0&&0===a&&0!==this[r+o+1]&&(a=1),this[r+o]=(t/f|0)-a&255;return r+e},a.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},a.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},a.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},a.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||b(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},a.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},a.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},a.prototype.writeDoubleLE=function(t,r,e){return x(this,t,r,!0,e)},a.prototype.writeDoubleBE=function(t,r,e){return x(this,t,r,!1,e)},a.prototype.copy=function(t,r,e,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i=n-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,n);else if(this===t&&e<r&&r<n)for(var o=i-1;o>=0;--o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return i},a.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<e)throw RangeError("Out of range index");if(e<=r)return this;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var f=a.isBuffer(t)?t:a.from(t,n),u=f.length;
1if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<e-r;++i)this[i+r]=f[i%u]}return this};var B=/[^+/0-9A-Za-z-_]/g;function C(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],f=0;f<n;++f){if((e=t.charCodeAt(f))>55295&&e<57344){if(!i){if(e>56319||f+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return o}function S(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function U(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length)&&!(i>=t.length);++i)r[i+e]=t[i];return i}function T(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var I=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()},783:function(t,r){r.read=function(t,r,e,n,i){var o,f,a=8*i-n-1,u=(1<<a)-1,s=u>>1,l=-7,h=e?i-1:0,c=e?-1:1,p=t[r+h];for(h+=c,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[r+h],h+=c,l-=8);for(f=o&(1<<-l)-1,o>>=-l,l+=n;l>0;f=256*f+t[r+h],h+=c,l-=8);if(0===o)o=1-s;else{if(o===u)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,n),o-=s}return(p?-1:1)*f*Math.pow(2,o-n)},r.write=function(t,r,e,n,i,o){var f,a,u,s=8*o-i-1,l=(1<<s)-1,h=l>>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,y=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(a=+!!isNaN(r),f=l):(f=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+h>=1?r+=c/u:r+=c*Math.pow(2,1-h),r*u>=2&&(f++,u/=2),f+h>=l?(a=0,f=l):f+h>=1?(a=(r*u-1)*Math.pow(2,i),f+=h):(a=r*Math.pow(2,h-1)*Math.pow(2,i),f=0));i>=8;t[e+p]=255&a,p+=d,a/=256,i-=8);for(f=f<<i|a,s+=i;s>0;t[e+p]=255&f,p+=d,f/=256,s-=8);t[e+p-d]|=128*y}}},i={};function o(t){var r=i[t];if(void 0!==r)return r.exports;var e=i[t]={exports:{}},f=!0;try{n[t](e,e.exports,o),f=!1}finally{f&&delete i[t]}return e.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",r.exports=o(72)},424439,t=>{"use strict";t.i(692262),t.s([])},475254,t=>{"use strict";var r=t.i(271645);let e=t=>{let r=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,e)=>e?e.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},n=(...t)=>t.filter((t,r,e)=>!!t&&""!==t.trim()&&e.indexOf(t)===r).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,r.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:o=2,absoluteStrokeWidth:f,className:a="",children:u,iconNode:s,...l},h)=>(0,r.createElement)("svg",{ref:h,...i,width:e,height:e,stroke:t,strokeWidth:f?24*Number(o)/Number(e):o,className:n("lucide",a),...!u&&!(t=>{for(let r in t)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(l)&&{"aria-hidden":"true"},...l},[...s.map(([t,e])=>(0,r.createElement)(t,e)),...Array.isArray(u)?u:[u]])),f=(t,i)=>{let f=(0,r.forwardRef)(({className:f,...a},u)=>(0,r.createElement)(o,{ref:u,iconNode:i,className:n(`lucide-${e(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,f),...a}));return f.displayName=e(t),f};t.s(["default",()=>f],475254)},991918,820783,225913,t=>{"use strict";var r=t.i(271645);function e(t,r){if("function"==typeof t)return t(r);null!=t&&(t.current=r)}function n(...t){return r=>{let n=!1,i=t.map(t=>{let i=e(t,r);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let r=0;r<i.length;r++){let n=i[r];"function"==typeof n?n():e(t[r],null)}}}}function i(...t){return r.useCallback(n(...t),t)}t.s(["composeRefs",()=>n,"useComposedRefs",()=>i],820783);var o=t.i(843476);function f(t){var e;let i,f=(e=t,(i=r.forwardRef((t,e)=>{let{children:i,...o}=t;if(r.isValidElement(i)){var f;let t,a,u=(f=i,(a=(t=Object.getOwnPropertyDescriptor(f.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?f.ref:(a=(t=Object.getOwnPropertyDescriptor(f,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?f.props.ref:f.props.ref||f.ref),s=function(t,r){let e={...r};for(let n in r){let i=t[n],o=r[n];/^on[A-Z]/.test(n)?i&&o?e[n]=(...t)=>{let r=o(...t);return i(...t),r}:i&&(e[n]=i):"style"===n?e[n]={...i,...o}
1:"className"===n&&(e[n]=[i,o].filter(Boolean).join(" "))}return{...t,...e}}(o,i.props);return i.type!==r.Fragment&&(s.ref=e?n(e,u):u),r.cloneElement(i,s)}return r.Children.count(i)>1?r.Children.only(null):null})).displayName=`${e}.SlotClone`,i),a=r.forwardRef((t,e)=>{let{children:n,...i}=t,a=r.Children.toArray(n),u=a.find(l);if(u){let t=u.props.children,n=a.map(e=>e!==u?e:r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null);return(0,o.jsx)(f,{...i,ref:e,children:r.isValidElement(t)?r.cloneElement(t,void 0,n):null})}return(0,o.jsx)(f,{...i,ref:e,children:n})});return a.displayName=`${t}.Slot`,a}var a=f("Slot"),u=Symbol("radix.slottable");function s(t){let r=({children:t})=>(0,o.jsx)(o.Fragment,{children:t});return r.displayName=`${t}.Slottable`,r.__radixId=u,r}function l(t){return r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===u}t.s(["Slot",()=>a,"createSlot",()=>f,"createSlottable",()=>s],991918);var h=t.i(207670);let c=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,p=h.clsx;t.s(["cva",0,(t,r)=>e=>{var n;if((null==r?void 0:r.variants)==null)return p(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:i,defaultVariants:o}=r,f=Object.keys(i).map(t=>{let r=null==e?void 0:e[t],n=null==o?void 0:o[t];if(null===r)return null;let f=c(r)||c(n);return i[t][f]}),a=e&&Object.entries(e).reduce((t,r)=>{let[e,n]=r;return void 0===n||(t[e]=n),t},{});return p(t,f,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((t,r)=>{let{class:e,className:n,...i}=r;return Object.entries(i).every(t=>{let[r,e]=t;return Array.isArray(e)?e.includes({...o,...a}[r]):({...o,...a})[r]===e})?[...t,e,n]:t},[]),null==e?void 0:e.class,null==e?void 0:e.className)}],225913)},573518,t=>{"use strict";var r=t.i(843476),e=t.i(271645);t.i(424439);var n=t.i(692262),i=t.i(604570);let o=(0,e.createContext)({});t.s(["AuthProvider",0,({children:t})=>{let[f,a]=(0,e.useState)(null),[u,s]=(0,e.useState)(!0),[l,h]=(0,e.useState)(null);(0,e.useEffect)(()=>{let t;try{if(!(t=(0,n.createClient)()))return void s(!1);(async()=>{try{let{data:{session:r}}=await t.auth.getSession();a(r?.user??null),s(!1)}catch(t){console.error("Error getting session:",t),s(!1)}})();let{data:{subscription:r}}=t.auth.onAuthStateChange(async(t,r)=>{a(r?.user??null),s(!1),r?.user&&("SIGNED_IN"===t||"TOKEN_REFRESHED"===t||"USER_UPDATED"===t)&&i.default.identify(r.user.email||r.user.id,{email:r.user.email,provider:r.user.app_metadata?.provider})});return()=>r?.unsubscribe()}catch(t){console.error("Failed to initialize auth:",t),h(t.message),s(!1)}},[]);let c=async(t,r,e={})=>{let i=(0,n.createClient)();if(!i)return{data:null,error:Error("Supabase not initialized")};let{data:o,error:f}=await i.auth.signUp({email:t,password:r,options:e});return{data:o,error:f}},p=async(t,r)=>{let e=(0,n.createClient)();if(!e)return{data:null,error:Error("Supabase not initialized")};let{data:i,error:o}=await e.auth.signInWithPassword({email:t,password:r});return{data:i,error:o}},d=async()=>{let t=(0,n.createClient)();if(!t)return{error:Error("Supabase not initialized")};i.default.capture("user_signed_out"),i.default.reset();let{error:r}=await t.auth.signOut();return{error:r}},y=async t=>{let r=(0,n.createClient)();if(!r)return{data:null,error:Error("Supabase not initialized")};let{data:e,error:i}=await r.auth.resetPasswordForEmail(t,{redirectTo:"https://www.statementdesk.com/auth/update-password"});return{data:e,error:i}},g=async t=>{let r=(0,n.createClient)();if(!r)return{data:null,error:Error("Supabase not initialized")};let{data:e,error:i}=await r.auth.updateUser({password:t});return{data:e,error:i}},v=async()=>{let t=(0,n.createClient)();if(!t)return{data:null,error:Error("Supabase not initialized")};let{data:r,error:e}=await t.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback`,scopes:"email profile https://www.googleapis.com/auth/drive.file",queryParams:{access_type:"offline",prompt:"consent"}}});return{data:r,error:e}},m=async()=>{let t=(0,n.createClient)();if(!t)return{data:null,error:Error("Supabase not initialized")};if(!f)return{data:null,error:Error("User must be authenticated to link Google account")};let{data:r,error:e}=await t.auth.linkIdentity({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback?link=true`,scopes:"email profile https://www.googleapis.com/auth/drive.file",queryParams:{access_type:"offline",prompt:"consent"}}});return{data:r,error:e}},w=async()=>{let t=(0,n.createClient)();if(!t)return{data:null,error:Error("Supabase not initialized")};let{data:{user:r},error:e}=await t.auth.getUser();if(e)return{data:null,error:e};let i=r?.identities?.find(t=>"google"===t.provider);if(!i)return{data:null,error:Error("No Google account linked")};let{data:o,error:f}=await t.auth.unlinkIdentity(i);return{data:o,error:f}},b=async()=>{let t=(0,n.createClient)();if(!t)return{data:null,error:Error("Supabase not initialized")};if(!f)return{data:null,error:Error("User not authenticated")};let{data:r,error:e}=await t.from("google_tokens").select("*").eq("user_id",f.id).single();return{data:r,error:e}};return l&&!u?(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:(0,r.jsx)("div",{className:"max-w-md w-full bg-white shadow-md rounded-lg p-6",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold text-red-600 mb-4",children:"Configuration Error"}),(0,r.jsx)("p",{className:"text-gray-600 mb-4",children:"Unable to initialize the application. Please check your environment c
1onfiguration."}),(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded p-3 text-sm text-red-700",children:l}),(0,r.jsx)("p",{className:"text-xs text-gray-500 mt-4",children:"Make sure your .env.local file contains valid Supabase credentials."})]})})}):(0,r.jsx)(o.Provider,{value:{user:f,loading:u,error:l,signUp:c,signIn:p,signOut:d,resetPassword:y,updatePassword:g,signInWithGoogle:v,linkGoogleAccount:m,unlinkGoogleAccount:w,getGoogleTokens:b},children:t})},"useAuth",0,()=>{let t=(0,e.useContext)(o);if(!t)throw Error("useAuth must be used within an AuthProvider");return t}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.