1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,570028,(t,e,r)=>{var o={675:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),r=e[0],o=e[1];return(r+o)*3/4-o},e.toByteArray=function(t){var e,r,i=s(t),a=i[0],f=i[1],u=new n((a+f)*3/4-f),l=0,h=f>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===f&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===f&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,o=t.length,n=o%3,i=[],a=0,f=o-n;a<f;a+=16383)i.push(function(t,e,o){for(var n,i=[],a=e;a<o;a+=3)n=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}(t,a,a+16383>f?f:a+16383));return 1===n?i.push(r[(e=t[o-1])>>2]+r[e<<4&63]+"=="):2===n&&i.push(r[(e=(t[o-2]<<8)+t[o-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],o=[],n="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=i.length;a<f;++a)r[a]=i[a],o[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var o=r===e?0:4-r%4;return[r,o]}o[45]=62,o[95]=63},72:function(t,e,r){"use strict";var o=r(675),n=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t){var o=t,n=e;if(("string"!=typeof n||""===n)&&(n="utf8"),!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|p(o,n),s=a(i),u=s.write(o,n);return u!==i&&(s=s.slice(0,u)),s}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(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return function(t,e,r){var o;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),f.prototype),o}(t,e,r);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 f.from(l,e,r);var d=function(t){if(f.isBuffer(t)){var e=0|c(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(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 u(t),a(t<0?0:0|c(t))}function h(t){for(var e=t.length<0?0:0|c(t.length),r=a(e),o=0;o<e;o+=1)r[o]=255&t[o];return r}e.Buffer=f,e.SlowBuffer=function(t){return+t!=t&&(t=0),f.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!f.TYPED_ARRAY_SUPPORT&&"u">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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(u(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},f.allocUnsafe=function(t){return l(t)},f.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,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(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 r=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(n)return o?-1:T(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n,i,a,f=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var n="",i=e;i<r;++i)n+=I[t[i]];return n}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){var o="";r=Math.min(t.length,r);for(var n=e;n<r;++n)o+=String.fromCharCode(127&t[n]);return o}(this,e,r);case"latin1":case"binary":return function(t,e,r){var o="";r=Math.min(t.length,r);for(var n=e;n<r;++n)o+=String.fromCharCode(t[n]);return o}(this,e,r);case"base64":return n=this,i=e,a=r,0===i&&a===n.length?o.fromByteArray(n):o.fromByteArray(n.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var o=t.slice(e,r),n="",i=0;i<o.length;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}(this,e,r);default:if(f)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),f=!0}}function g(t,e,r){var o=t[e];t[e]=t[r],t[r]=o}function m(t,e,r,o,n){var i;if(0===t.length)return -1;if("string"==typeof r?(o=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(n)return -1;else r=t.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,o)),f.isBuffer(e))return 0===e.length?-1:y(t,e,r,o,n);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return y(t,[e],r,o,n)}throw TypeError("val must be string, number or Buffer")}function y(t,e,r,o,n){var i,a=1,f=t.length,s=e.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)
vendor: 13,993 bytes, line 1
1){if(t.length<2||e.length<2)return -1;a=2,f/=2,s/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(n){var l=-1;for(i=r;i<f;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+s>f&&(r=f-s),i=r;i>=0;i--){for(var h=!0,c=0;c<s;c++)if(u(t,i+c)!==u(e,c)){h=!1;break}if(h)return i}return -1}f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(C(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),C(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,o=e.length,n=0,i=Math.min(r,o);n<i;++n)if(t[n]!==e[n]){r=t[n],o=e[n];break}return r<o?-1:+(o<r)},f.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}},f.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,o=f.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var i=t[r];if(C(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(o,n),n+=i.length}return o},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},f.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):d.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(f.prototype[i]=f.prototype.inspect),f.prototype.compare=function(t,e,r,o,n){if(C(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),e<0||r>t.length||o<0||n>this.length)throw RangeError("out of range index");if(o>=n&&e>=r)return 0;if(o>=n)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,o>>>=0,n>>>=0,this===t)return 0;for(var i=n-o,a=r-e,s=Math.min(i,a),u=this.slice(o,n),l=t.slice(e,r),h=0;h<s;++h)if(u[h]!==l[h]){i=u[h],a=l[h];break}return i<a?-1:+(a<i)},f.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)};function v(t,e,r){r=Math.min(t.length,r);for(var o=[],n=e;n<r;){var i,a,f,s,u=t[n],l=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(i=t[n+1]))==128&&(s=(31&u)<<6|63&i)>127&&(l=s);break;case 3:i=t[n+1],a=t[n+2],(192&i)==128&&(192&a)==128&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=t[n+1],a=t[n+2],f=t[n+3],(192&i)==128&&(192&a)==128&&(192&f)==128&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&f)>65535&&s<1114112&&(l=s)}null===l?(l=65533,h=1):l>65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l),n+=h}var c=o,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,c.slice(g,g+=4096));return d}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,o,n,i){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<i)throw RangeError('"value" argument is out of bounds');if(r+o>t.length)throw RangeError("Index out of range")}function x(t,e,r,o,n,i){if(r+o>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,o,i){return e*=1,r>>>=0,i||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,r,o,23,4),r+4}function E(t,e,r,o,i){return e*=1,r>>>=0,i||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,r,o,52,8),r+8}f.prototype.write=function(t,e,r,o){if(void 0===e)o="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)o=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,a,f,s,u,l,h,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var p=!1;;)switch(o){case"hex":return function(t,e,r,o){r=Number(r)||0;var n=t.length-r;o?(o=Number(o))>n&&(o=n):o=n;var i=e.length;o>i/2&&(o=i/2);for(var a=0;a<o;++a){var f,s=parseInt(e.substr(2*a,2),16);if((f=s)!=f)break;t[r+a]=s}return a}(this,t,e,r);case"utf8":case"utf-8":return n=e,i=r,L(T(t,this.length-n),this,n,i);case"ascii":return a=e,f=r,L(U(t),this,a,f);case"latin1":case"binary":return function(t,e,r,o){return L(U(e),t,r,o)}(this,t,e,r);case"base64":return s=e,u=r,L(B(t),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,L(function(t,e){for(var r,o,n=[],i=0;i<t.length&&!((e-=2)<0);++i)o=(r=t.charCodeAt(i))>>8,n.push(r%256),n.push(o);return n}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var o=this.subarray(t,e);return Object.setPrototypeOf(o,f.prototype),o},f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var o=this[t],n=1,i=0;++i<e&&(n*=256);)o+=this[t+i]*n;return o},f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var o=this[t+--e],n=1;e>0&&(n*=256);)o+=this[t+--e]*n;return o},f.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var o=this[t],n=1,i=0;++i<e&&(n*=256);)o+=this[t+i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var o=e,n=1,i=this[t+--o];o>0&&(n*=256);)i+=this[t+--o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},f.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),n.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),n.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),n.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,o){if(t*=1,e>>>=0,r>>>=0,!o){var n=Math.pow(2,8*r)-1;w(this,t,e,r,n,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,o){if(t*=1,e>>>=0,r>>>=0,!o){var n=Math.pow(2,8*r)-1;w(this,t,e,r,n,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,o){if(t*=1,e>>>=0,!o){var n=Math.pow(2,8*r-1);w(this,t,e,r,n-1,-n)}var i=0,a=1,f=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===f&&0!==this[e+i-1]&&(f=1),this[e+i]=(t/a|0)-f&255;return e+r},f.prototype.writeIntBE=function(t,e,r,o){if(t*=1,e>>>=0,!o){var n=Math.pow(2,8*r-1);w(this,t,e,r,n-1,-n)}var i=r-1,a=1,f=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===f&&0!==this[e+i+1]&&(f=1),this[e+i]=(t/a|0)-f&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return E(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return E(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,o){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<r&&(o=r),o===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-r&&(o=t.length-e+r);var n=o-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,o);else if(this===t&&r<e&&e<o)for(var i=n-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,o),e);return n},f.prototype.fill=function(t,e,r,o){if("string"==typeof t){if("string"==typeof e?(o=e,e=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!f.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===t.length){var n,i=t.charCodeAt(0);("utf8"===o&&i<128||"latin1"===o)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(n=e;n<r;++n)this[n]=t;else{var a=f.isBuffer(t)?t:f.from(t,o),s=a.length;if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<r-e;++n)this[n+e]=a[n%s]}return this};var S=/[^+/0-9A-Za-z-_]/g;function T(t,e){e=e||1/0;for(var r,o=t.length,n=null,i=[],a=0;a<o;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319||a+1===o){(e-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function U(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function B(t){return o.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function L(t,e,r,o){for(var n=0;n<o&&!(n+r>=e.length)&&!(n>=t.length);++n)e[n+r]=t[n];return n}function C(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var I=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var o=16*r,n=0;n<16;++n)e[o+n]=t[r]+t[n];return e}()},783:function(t,e){e.read=function(t,e,r,o,n){var i,a,f=8*n-o-1,s=(1<<f)-1,u=s>>
11,l=-7,h=r?n-1:0,c=r?-1:1,p=t[e+h];for(h+=c,i=p&(1<<-l)-1,p>>=-l,l+=f;l>0;i=256*i+t[e+h],h+=c,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=o;l>0;a=256*a+t[e+h],h+=c,l-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=u}return(p?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,r,o,n,i){var a,f,s,u=8*i-n-1,l=(1<<u)-1,h=l>>1,c=5960464477539062e-23*(23===n),p=o?0:i-1,d=o?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(f=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+h>=1?e+=c/s:e+=c*Math.pow(2,1-h),e*s>=2&&(a++,s/=2),a+h>=l?(f=0,a=l):a+h>=1?(f=(e*s-1)*Math.pow(2,n),a+=h):(f=e*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;t[r+p]=255&f,p+=d,f/=256,n-=8);for(a=a<<n|f,u+=n;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*g}}},n={};function i(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}},a=!0;try{o[t](r,r.exports,i),a=!1}finally{a&&delete n[t]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_0126cb17395f414812cec6093f6ca10d/node_modules/next/dist/compiled/buffer/",e.exports=i(72)},182938,t=>{"use strict";t.s(["default",0,{defaultTitle:"AI Hero",description:"AI Engineering for Curious Professional Developers",author:"Matt Pocock",additionalLinkTags:[{rel:"icon",href:"https://www.aihero.dev/favicon.svg"},{rel:"mask-icon",href:"https://www.aihero.dev/favicon.svg",color:"#363438"},{rel:"apple-touch-icon",href:"https://www.aihero.dev/apple-touch-icon.png"}],additionalMetaTags:[{property:"author",content:"Matt Pocock"},{property:"keywords",content:"AI, artificial intelligence, typescript, LLM, large language model, prompt engineering, prompt engineering for developers, matt pocock"}],twitter:{cardType:"summary_large_image",handle:"@mattpocockuk"},bluesky:{handle:"@mattpocock.com"},sameAs:["https://twitter.com/mattpocockuk"],openGraph:{type:"website",site_name:"AI Hero",profile:{firstName:"Matt",lastName:"Pocock"},images:[{url:"https://www.aihero.dev/api/og/default",width:1200,height:630}]}}])},397357,t=>{"use strict";var e=t.i(130384),r=t.i(31350),o=t.i(87422);let n={brand:[[.866,.431,.122],[.949,.749,.722],[.122,.31,.788],[.941,.902,.839],[.957,.769,.141],[.839,.224,.141]],brandVibrant:[[1,.42,.08],[1,.36,.62],[.07,.28,.95],[1,.78,.32],[1,.78,0],[.96,.16,.12]],brandHot:[[.957,.769,.141],[.866,.431,.122],[.839,.224,.141],[.949,.749,.722],[.122,.31,.788],[.941,.902,.839]],rainbow:[[1,.2,.2],[1,.55,.1],[1,.85,.15],[.25,.8,.35],[.2,.45,.95],[.65,.25,.9]]},i=`#version 300 es 2in vec2 aPos; 3out vec2 vUv; 4void main() { 5 vUv = aPos * 0.5 + 0.5; 6 gl_Position = vec4(aPos, 0.0, 1.0); 7} 8`,a=`#version 300 es 9precision highp float; 10in vec2 vUv; 11uniform vec2 uRes; 12uniform vec2 uMouse; 13uniform float uTime; 14uniform float uSpeed; 15uniform float uSeed; 16uniform float uFreq; 17uniform float uDispAmp; 18uniform float uDispFreq; 19uniform float uFlowY; 20uniform float uFlowX; 21uniform float uIntensity; 22uniform float uSaturation; 23uniform float uSharpness; 24uniform float uGrain; 25uniform float uGrainTexture; 26uniform float uGrainScale; 27uniform float uGrainSpeed; 28uniform float uChromaOffset; 29uniform float uVignette; 30uniform float uMouseHalo; 31uniform float uPosterize; 32uniform float uColorDrift; 33uniform vec3 uC0; 34uniform vec3 uC1; 35uniform vec3 uC2; 36uniform vec3 uC3; 37uniform vec3 uC4; 38uniform vec3 uC5; 39out vec4 fragColor; 40 41float grainHash(vec2 p) { 42 return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); 43} 44 45vec3 ramp(float t) { 46 t = fract(t); 47 float s = t * 6.0; 48 float idx = floor(s); 49 float w = mix(0.5, 0.04, clamp(uSharpness, 0.0, 1.0)); 50 float f = smoothstep(0.5 - w, 0.5 + w, fract(s)); 51 vec3 a, b; 52 if (idx < 0.5) { a = uC0; b = uC1; } 53 else if (idx < 1.5) { a = uC1; b = uC2; } 54 else if (idx < 2.5) { a = uC2; b = uC3; } 55 else if (idx < 3.5) { a = uC3; b = uC4; } 56 else if (idx < 4.5) { a = uC4; b = uC5; } 57 else { a = uC5; b = uC0; } 58 return mix(a, b, f); 59} 60 61vec2 gentleDisplacement(vec2 uv, vec2 mouse, float t) { 62 float dist = length(uv - mouse); 63 return uv + uDispAmp * sin(uv.xy * uDispFreq + dist * uDispFreq + t); 64} 65 66float flowPattern(vec2 uv, float t) { 67 float a = sin(uv.x * uFreq + t) * 0.5 + 0.5; 68 float b = sin((uv.x + uv.y * uFlowX) * uFreq * 0.7 - t * 0.6) * 0.5 + 0.5; 69 float c = sin((uv.x * 0.5 - uv.y * uFlowY * 0.4) * uFreq * 1.3 + t * 0.4) * 0.5 + 0.5; 70 return (a + b * 0.7 + c * 0.5) / 2.2; 71} 72 73void main() { 74 float aspect = uRes.x / uRes.y; 75 vec2 uv = vUv; 76 uv.x *= aspect; 77 78 vec2 mouse = uMouse; 79 mouse.x *= aspect; 80 81 float t = uTime * uSpeed + uSeed; 82 uv = gentleDisplacement(uv, mouse, t); 83 84 // Sample the flow at three slightly offset positions â when chromaOffset > 0 85 // the R and B channels split horizontally like CMYK misregistration. 86 vec2 chromaOff = vec2(uChromaOffset / max(uRes.y, 1.0), 0.0); 87 float patG = flowPattern(uv, t); 88 float patR = flowPattern(uv + chromaOff, t); 89 float patB = flowPattern(uv - chromaOff, t); 90 91 // Optional posterize: snap pattern values into N flat bands. 92 float steps = max(uPosterize, 1.0); 93 float poster = step(1.5, uPosterize); 94 patG = mix(patG, (floor(patG * steps) + 0.5) / steps, poster); 95 patR = mix(patR, (floor(patR * steps) + 0.5) / steps, poster); 96 patB = mix(patB, (floor(patB * steps) + 0.5) / steps, poster); 97 98 float drift = t * uColorDrift; 99 vec3 col = vec3( 100 ramp(patR + drift).r, 101 ramp(patG + drift).g, 102 ramp(patB + drift).b 103 ); 104 105 // Saturation boost before grain so the chroma boost doesn't amplify noise. 106 float luma = dot(col, vec3(0.299, 0.587, 0.114)); 107 col = mix(vec3(luma), col, uSaturation); 108 col *= uIntensity; 109 110 // ---- GRAIN ---- 111 // Threshold-gated binary stipple â most pixels stay clean, a percentage 112 // get a discrete dark/light ink dot. Feels like riso print, not luma fuzz. 113 vec2 px = gl_FragCoord.xy / max(uGrainScale, 0.0001); 114 float grainTime = floor(uTime * uGrainSpeed); 115 116 // Fine layer (1px dots). Grain knob controls density AND amplitude together 117 // so at low values there are few dots AND they're faint. 118 float g1 = clamp(uGrain, 0.0, 1.0); 119 float density1 = g1 * 0.45; 120 float amp1 = g1 * 0.22; 121 float h1 = grainHash(px + grainTime); 122 float h2 = grainHash(px + grainTime + 71.3); 123 col += vec3(step(1.0 - density1, h2) - step(1.0 - density1, h1)) * amp1; 124 125 // Chunky layer (2-3px blobs) via quantization. 126 float g2 = clamp(uGrainTexture, 0.0, 1.0); 127 vec2 px2 = floor(px * 0.45); 128 float density2 = g2 * 0.5; 129 float amp2 = g2 * 0.18; 130 float h3 = grainHash(px2 + grainTime); 131 float h4 = grainHash(px2 + grainTime + 41.7); 132 col += vec3(step(1.0 - density2, h4) - step(1.0 - density2, h3)) * amp2; 133 134 // ---- MOUSE HALO ---- 135 // Soft additive bloom around the cursor â calmer than displacement. 136 float md = distance(uv, mouse); 137 col += exp(-md * md * 18.0) * uMouseHalo; 138 139 // ---- VIGNETTE ---- 140 // Pull corners down a touch to integrate with surrounding page. 141 vec2 vc = vUv * 2.0 - 1.0; 142 float vd = dot(vc, vc); 143 float vig = 1.0 - smoothstep(0.55, 1.6, vd); 144 col *= mix(1.0, vig, uVignette); 145 146 col = clamp(col, 0.0, 1.0); 147 fragColor = vec4(col, 1.0); 148} 149`;function f(t,e,r){let o=t.createShader(e);return o?(t.shaderSource(o,r),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS))?o:(console.error("shader compile error:",t.getShaderInfoLog(o)),t.deleteShader(o),null):null}t.s(["HeroShader",0,function({speed:t=.6,seed:s=0,frequency:u=8,displacement:l=.122,displacementFreq:h=5,mouseFollow:c=.035,flowY:p=.5,flowX:d=0,intensity:g=1,saturation:m=1.25,sharpness:y=0,grain:v=0,grainTexture:b=0,grainScale:w=.5,grainSpeed:x=0,mouseInfluence:A=.6,chromaOffset:E=0,vignette:S=0,mouseHalo:T=0,posterize:U=0,
149colorDrift:B=.04,colors:L=n.brandVibrant,className:C}){let I=r.useRef(null),k=r.useRef({speed:t,seed:s,frequency:u,displacement:l,displacementFreq:h,mouseFollow:c,flowY:p,flowX:d,intensity:g,saturation:m,sharpness:y,grain:v,grainTexture:b,grainScale:w,grainSpeed:x,mouseInfluence:A,chromaOffset:E,vignette:S,mouseHalo:T,posterize:U,colorDrift:B,colors:L});return r.useEffect(()=>{k.current={speed:t,seed:s,frequency:u,displacement:l,displacementFreq:h,mouseFollow:c,flowY:p,flowX:d,intensity:g,saturation:m,sharpness:y,grain:v,grainTexture:b,grainScale:w,grainSpeed:x,mouseInfluence:A,chromaOffset:E,vignette:S,mouseHalo:T,posterize:U,colorDrift:B,colors:L}},[t,s,u,l,h,c,p,d,g,m,y,v,b,w,x,A,E,S,T,U,B,L]),r.useEffect(()=>{let t,e=I.current;if(!e)return;let r=e.getContext("webgl2",{antialias:!1,premultipliedAlpha:!1,powerPreference:"low-power"});if(!r)return;let o=f(r,r.VERTEX_SHADER,i),s=f(r,r.FRAGMENT_SHADER,a);if(!o||!s)return;let u=(t=r.createProgram())?(r.attachShader(t,o),r.attachShader(t,s),r.linkProgram(t),r.getProgramParameter(t,r.LINK_STATUS))?t:(console.error("program link error:",r.getProgramInfoLog(t)),r.deleteProgram(t),null):null;if(!u)return;let l=r.createVertexArray();r.bindVertexArray(l);let h=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,h),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),r.STATIC_DRAW);let c=r.getAttribLocation(u,"aPos");r.enableVertexAttribArray(c),r.vertexAttribPointer(c,2,r.FLOAT,!1,0,0);let p=r.getUniformLocation(u,"uRes"),d=r.getUniformLocation(u,"uMouse"),g=r.getUniformLocation(u,"uTime"),m=r.getUniformLocation(u,"uSpeed"),y=r.getUniformLocation(u,"uSeed"),v=r.getUniformLocation(u,"uFreq"),b=r.getUniformLocation(u,"uDispAmp"),w=r.getUniformLocation(u,"uDispFreq"),x=r.getUniformLocation(u,"uFlowY"),A=r.getUniformLocation(u,"uFlowX"),E=r.getUniformLocation(u,"uIntensity"),S=r.getUniformLocation(u,"uSaturation"),T=r.getUniformLocation(u,"uSharpness"),U=r.getUniformLocation(u,"uGrain"),B=r.getUniformLocation(u,"uGrainTexture"),L=r.getUniformLocation(u,"uGrainScale"),C=r.getUniformLocation(u,"uGrainSpeed"),R=r.getUniformLocation(u,"uChromaOffset"),P=r.getUniformLocation(u,"uVignette"),_=r.getUniformLocation(u,"uMouseHalo"),O=r.getUniformLocation(u,"uPosterize"),M=r.getUniformLocation(u,"uColorDrift"),F=[r.getUniformLocation(u,"uC0"),r.getUniformLocation(u,"uC1"),r.getUniformLocation(u,"uC2"),r.getUniformLocation(u,"uC3"),r.getUniformLocation(u,"uC4"),r.getUniformLocation(u,"uC5")];r.useProgram(u);let N=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,j=()=>{let t=Math.min(window.devicePixelRatio||1,2),o=Math.max(1,Math.floor(e.clientWidth*t)),n=Math.max(1,Math.floor(e.clientHeight*t));(e.width!==o||e.height!==n)&&(e.width=o,e.height=n,r.viewport(0,0,o,n))},D=new ResizeObserver(j);D.observe(e),j();let G=!0,z=new IntersectionObserver(t=>{G=t[0]?.isIntersecting??!0},{threshold:0});z.observe(e);let q={x:.5,y:.5},Y={x:.5,y:.5},H=t=>{let r=e.getBoundingClientRect();0!==r.width&&0!==r.height&&(q.x=(t.clientX-r.left)/r.width,q.y=1-(t.clientY-r.top)/r.height)};window.addEventListener("pointermove",H,{passive:!0});let V=0,X=performance.now(),W=t=>{if(G){let o=k.current;Y.x+=(q.x-Y.x)*o.mouseFollow,Y.y+=(q.y-Y.y)*o.mouseFollow;let i=.5+(Y.x-.5)*o.mouseInfluence,a=.5+(Y.y-.5)*o.mouseInfluence;r.uniform2f(p,e.width,e.height),r.uniform2f(d,i,a),r.uniform1f(g,N?1.7:(t-X)/1e3),r.uniform1f(m,o.speed),r.uniform1f(y,o.seed),r.uniform1f(v,o.frequency),r.uniform1f(b,o.displacement),r.uniform1f(w,o.displacementFreq),r.uniform1f(x,o.flowY),r.uniform1f(A,o.flowX),r.uniform1f(E,o.intensity),r.uniform1f(S,o.saturation),r.uniform1f(T,o.sharpness),r.uniform1f(U,o.grain),r.uniform1f(B,o.grainTexture),r.uniform1f(L,o.grainScale),r.uniform1f(C,o.grainSpeed),r.uniform1f(R,o.chromaOffset),r.uniform1f(P,o.vignette),r.uniform1f(_,o.mouseHalo),r.uniform1f(O,o.posterize),r.uniform1f(M,o.colorDrift);let f=o.colors??n.brand;for(let t=0;t<6;t++){let e=f[t]??f[f.length-1],o=F[t]??null;r.uniform3f(o,e[0],e[1],e[2])}r.drawArrays(r.TRIANGLES,0,3)}N||(V=requestAnimationFrame(W))};return V=requestAnimationFrame(W),()=>{cancelAnimationFrame(V),window.removeEventListener("pointermove",H),D.disconnect(),z.disconnect(),r.deleteBuffer(h),r.deleteVertexArray(l),r.deleteProgram(u),r.deleteShader(o),r.deleteShader(s)}}
149,[]),(0,e.jsx)("canvas",{ref:I,"aria-hidden":!0,className:(0,o.cn)("block h-full w-full",C)})},"PALETTES",0,n])},123790,t=>{"use strict";var e=t.i(130384),r=t.i(241849),o=t.i(182938);let n={"newsletter-subscribed-logged-in":({resource:t})=>(0,e.jsxs)(e.Fragment,{children:["Ready to learn? Check out"," ",(0,e.jsx)(r.default,{className:"underline underline-offset-2",href:t?.path||"/vercel-ai-sdk-tutorial",children:t?.title||"AI SDK tutorial"}),"."]}),"newsletter-subscribed-logged-out":({resource:t})=>(0,e.jsxs)(e.Fragment,{children:["Ready to learn?"," ",(0,e.jsx)(r.default,{href:"/login",className:"underline underline-offset-2",children:"Log in"})," ","to track your progress and check out"," ",(0,e.jsx)(r.default,{href:t?.path||"/vercel-ai-sdk-tutorial",className:"underline underline-offset-2",children:t?.title||"AI SDK tutorial"}),"."]}),"primary-newsletter-button-cta-label":"Subscribe","primary-newsletter-tittle":"Join over 90,000 Developers Becoming AI Heroes","primary-newsletter-byline":(0,e.jsx)(e.Fragment,{children:"Engineering fundamentals are your biggest advantage. Learn how to leverage them and leave vibe coding behind."}),"tip-newsletter-button-cta-label":"Subscribe","tip-newsletter-tittle":"New AI Engineering tips delivered to your inbox:","video-newsletter-title":"Ship AI Apps That Work","video-newsletter-subtitle":"New AI Engineering content straight to your inbox","video-block-newsletter-button-cta-label":"Continue Watching","video-block-newsletter-tittle":t=>`Level up with ${t}`,"video-block-newsletter-description":` 150In exchange for your email address, you'll get full access to this and other free ${o.default.defaultTitle} tutorials. 151 152Why? First and foremost, your inbox allows us to directly communicate about the latest ${o.default.defaultTitle} material. This includes free tutorials, NextJS Tips, and periodic update about trends, tools, and NextJS happenings that I'm excited about. 153 154In addition to the piles of free NextJS content, you'll get the earliest access and best discounts to the paid courses when they launch. 155 156There won't be any spam, and every email you get will have an unsubscribe link. 157 158If this sounds like a fair trade, let's go! 159 `};t.s(["default",0,n])},133604,t=>{"use strict";var e=t.i(130384),r=t.i(233526),o=t.i(41037);t.i(600559);var n=t.i(559535),i=t.i(271392),a=t.i(214625),f=t.i(801145),s=t.i(43004),u=t.i(578427),l=t.i(514553),h=t.i(123790);t.s(["PrimaryNewsletterCta",0,({resource:t,children:c,className:p,id:d="primary-newsletter-cta",title:g=h.default["primary-newsletter-tittle"],byline:m=h.default["primary-newsletter-byline"],actionLabel:y=h.default["primary-newsletter-button-cta-label"],titleElement:v="h2",trackProps:b={event:"subscribed",params:{}},isHiddenForSubscribers:w=!0,reserveSpaceWhenHidden:x=!1,formId:A,fields:E,onSuccess:S,backdrop:T})=>{let U=(0,r.useRouter)(),{subscriber:B}=(0,a.useCtaGate)(),{data:L}=(0,u.useSession)(),C=(0,f.isOnEmailList)(B),I=w&&C;return I&&!x?null:(0,e.jsxs)("section",{id:d,"aria-label":"Newsletter sign-up","aria-hidden":!!I||void 0,className:(0,l.cn)("relative flex flex-col items-center px-5",{"pointer-events-none invisible select-none":I},p),children:[T&&(0,e.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 select-none overflow-hidden",children:T}),(0,e.jsxs)("div",{className:(0,l.cn)("border-border relative w-full max-w-[720px] rounded-lg border px-6 py-6 sm:px-8 sm:py-[30px]",T?"bg-card":"bg-[color:var(--ah-band)]"),children:[c||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{className:(0,l.cn)(o.TYPE.panelTitle,"text-balance font-sans"),children:g}),m&&(0,e.jsx)("p",{className:(0,l.cn)(o.TYPE.metaProse,"mt-2 max-w-[56ch] text-pretty text-[color:var(--ah-fg-muted)]"),children:m})]}),(0,e.jsx)("div",{className:"not-prose mt-5",children:C?(0,e.jsxs)("p",{className:(0,l.cn)(o.TYPE.metaProse,"text-[color:var(--ah-fg-muted)]"),children:["Youâre subscribed, thanks."," ",L?.user?h.default["newsletter-subscribed-logged-in"]({resource:t}):h.default["newsletter-subscribed-logged-out"]({resource:t})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.SubscribeToConvertkitForm,{onSuccess:S||(t=>{if(t){(0,s.track)(b.event,b.params);let e=(0,n.redirectUrlBuilder)(t,"/confirm");U.push(e)}}),actionLabel:y,formId:A,fields:E,className:"[&_button]:bg-accent-fill [&_button]:text-accent-fill-foreground [&_button]:hover:bg-accent-fill-hover [&_button]:shadow-none [&_input]:border-input [&_input]:bg-background [&_input]:text-foreground grid w-full grid-cols-1 gap-2.5 desk:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)_auto] [&_button]:h-[50px] desk:[&_button]:h-11 [&_button]:rounded-[9px] [&_button]:border-0 [&_button]:px-[18px] [&_button]:text-sm [&_button]:font-bold [&_input]:h-12 desk:[&_input]:h-11 [&_input]:min-w-0 [&_input]:rounded-[9px] [&_input]:border [&_input]:px-3.5 [&_input]:text-sm [&_input]:placeholder:text-[color:var(--ah-fg-faint)] [&_label]:sr-only"}),(0,e.jsx)("p",{"data-nospam":"",className:(0,l.cn)(o.TYPE.command,"mt-3 text-[color:var(--ah-fg-faint)]"),children:"No spam. Unsubscribe anytime."})]})})]})]})}])},233774,t=>{t.v(e=>
159Promise.all(["static/chunks/1v_skh1yxue9l.js","static/chunks/3qbf3eahbo3bt.js"].map(e=>t.l(e))).then(()=>e(98565)))},164577,t=>{t.v(e=>Promise.all(["static/chunks/40us6_bpz6svk.js","static/chunks/1aftbk09q9_4v.js"].map(e=>t.l(e))).then(()=>e(885896)))}]);
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.