import{r as O}from"./components-Ccluv6t5.js";import"./_shopId.orders._token.authenticate-DzG6I0o7.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[f]="8a4665c1-6272-46e8-991f-10bba3238329",c._sentryDebugIdIdentifier="sentry-dbid-8a4665c1-6272-46e8-991f-10bba3238329")}catch{}})();function J(c){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];c&&c.addEventListener&&c.addEventListener.apply(c,f)}function z(c){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];c&&c.removeEventListener&&c.removeEventListener.apply(c,f)}var sr=typeof window<"u",zr=function(c,f){var p=O.useRef(function(){});O.useEffect(function(){p.current=c}),O.useEffect(function(){if(f!==null){var w=setInterval(function(){return p.current()},f||0);return function(){return clearInterval(w)}}},[f])},pr=function(c){var f=window.history,p=f[c];f[c]=function(w){var a=p.apply(this,arguments),l=new Event(c.toLowerCase());return l.state=w,window.dispatchEvent(l),a}};sr&&(pr("pushState"),pr("replaceState"));var Nr=function(){return{trigger:"load",length:1}},Y=function(c){var f=window.history,p=f.state,w=f.length,a=window.location,l=a.hash,s=a.host,o=a.hostname,x=a.href,R=a.origin,m=a.pathname,I=a.port,C=a.protocol,A=a.search;return{trigger:c,state:p,length:w,hash:l,host:s,hostname:o,href:x,origin:R,pathname:m,port:I,protocol:C,search:A}},Dr=function(){var c=O.useState(Y("load")),f=c[0],p=c[1];return O.useEffect(function(){var w=function(){return p(Y("popstate"))},a=function(){return p(Y("pushstate"))},l=function(){return p(Y("replacestate"))};return J(window,"popstate",w),J(window,"pushstate",a),J(window,"replacestate",l),function(){z(window,"popstate",w),z(window,"pushstate",a),z(window,"replacestate",l)}},[]),f},kr=typeof Event=="function";const Kr=sr&&kr?Dr:Nr;var Pr={},W={};W.byteLength=Gr;W.toByteArray=Wr;W.fromByteArray=Vr;var L=[],T=[],$r=typeof Uint8Array<"u"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var D=0,Or=K.length;D<Or;++D)L[D]=K[D],T[K.charCodeAt(D)]=D;T[45]=62;T[95]=63;function ar(c){var f=c.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=c.indexOf("=");p===-1&&(p=f);var w=p===f?0:4-p%4;return[p,w]}function Gr(c){var f=ar(c),p=f[0],w=f[1];return(p+w)*3/4-w}function Yr(c,f,p){return(f+p)*3/4-p}function Wr(c){var f,p=ar(c),w=p[0],a=p[1],l=new $r(Yr(c,w,a)),s=0,o=a>0?w-4:w,x;for(x=0;x<o;x+=4)f=T[c.charCodeAt(x)]<<18|T[c.charCodeAt(x+1)]<<12|T[c.charCodeAt(x+2)]<<6|T[c.charCodeAt(x+3)],l[s++]=f>>16&255,l[s++]=f>>8&255,l[s++]=f&255;return a===2&&(f=T[c.charCodeAt(x)]<<2|T[c.charCodeAt(x+1)]>>4,l[s++]=f&255),a===1&&(f=T[c.charCodeAt(x)]<<10|T[c.charCodeAt(x+1)]<<4|T[c.charCodeAt(x+2)]>>2,l[s++]=f>>8&255,l[s++]=f&255),l}function qr(c){return L[c>>18&63]+L[c>>12&63]+L[c>>6&63]+L[c&63]}function Hr(c,f,p){for(var w,a=[],l=f;l<p;l+=3)w=(c[l]<<16&16711680)+(c[l+1]<<8&65280)+(c[l+2]&255),a.push(qr(w));return a.join("")}function Vr(c){for(var f,p=c.length,w=p%3,a=[],l=16383,s=0,o=p-w;s<o;s+=l)a.push(Hr(c,s,s+l>o?o:s+l));return w===1?(f=c[p-1],a.push(L[f>>2]+L[f<<4&63]+"==")):w===2&&(f=(c[p-2]<<8)+c[p-1],a.push(L[f>>10]+L[f>>4&63]+L[f<<2&63]+"=")),a.join("")}var Z={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Z.read=function(c,f,p,w,a){var l,s,o=a*8-w-1,x=(1<<o)-1,R=x>>1,m=-7,I=p?a-1:0,C=p?-1:1,A=c[f+I];for(I+=C,l=A&(1<<-m)-1,A>>=-m,m+=o;m>0;l=l*256+c[f+I],I+=C,m-=8);for(s=l&(1<<-m)-1,l>>=-m,m+=w;m>0;s=s*256+c[f+I],I+=C,m-=8);if(l===0)l=1-R;else{if(l===x)return s?NaN:(A?-1:1)*(1/0);s=s+Math.pow(2,w),l=l-R}return(A?-1:1)*s*Math.pow(2,l-w)};Z.write=function(c,f,p,w,a,l){var s,o,x,R=l*8-a-1,m=(1<<R)-1,I=m>>1,C=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=w?0:l-1,k=w?1:-1,P=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(o=isNaN(f)?1:0,s=m):(s=Math.floor(Math.log(f)/Math.LN2),f*(x=Math.pow(2,-s))<1&&(s--,x*=2),s+I>=1?f+=C/x:f+=C*Math.pow(2,1-I),f*x>=2&&(s++,x/=2),s+I>=m?(o=0,s=m):s+I>=1?(o=(f*x-1)*Math.pow(2,a),s=s+I):(o=f*Math.pow(2,I-1)*Math.pow(2,a),s=0));a>=8;c[p+A]=o&255,A+=k,o/=256,a-=8);for(s=s<<a|o,R+=a;R>0;c[p+A]=s&255,A+=k,s/=256,R-=8);c[p+A-k]|=P*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(c){const f=W,p=Z,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;c.Buffer=o,c.SlowBuffer=yr,c.INSPECT_MAX_BYTES=50;const a=2147483647;c.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=l(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function l(){try{const n=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(n,r),n.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(n){if(n>a)throw new RangeError('The value "'+n+'" is invalid for option "size"');const r=new Uint8Array(n);return Object.setPrototypeOf(r,o.prototype),r}function o(n,r,t){if(typeof n=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(n)}return x(n,r,t)}o.poolSize=8192;function x(n,r,t){if(typeof n=="string")return C(n,r);if(ArrayBuffer.isView(n))return k(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(S(n,ArrayBuffer)||n&&S(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(S(n,SharedArrayBuffer)||n&&S(n.buffer,SharedArrayBuffer)))return P(n,r,t);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const e=n.valueOf&&n.valueOf();if(e!=null&&e!==n)return o.from(e,r,t);const i=lr(n);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return o.from(n[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}o.from=function(n,r,t){return x(n,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function R(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function m(n,r,t){return R(n),n<=0?s(n):r!==void 0?typeof t=="string"?s(n).fill(r,t):s(n).fill(r):s(n)}o.alloc=function(n,r,t){return m(n,r,t)};function I(n){return R(n),s(n<0?0:q(n)|0)}o.allocUnsafe=function(n){return I(n)},o.allocUnsafeSlow=function(n){return I(n)};function C(n,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const t=Q(n,r)|0;let e=s(t);const i=e.write(n,r);return i!==t&&(e=e.slice(0,i)),e}function A(n){const r=n.length<0?0:q(n.length)|0,t=s(r);for(let e=0;e<r;e+=1)t[e]=n[e]&255;return t}function k(n){if(S(n,Uint8Array)){const r=new Uint8Array(n);return P(r.buffer,r.byteOffset,r.byteLength)}return A(n)}function P(n,r,t){if(r<0||n.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let e;return r===void 0&&t===void 0?e=new Uint8Array(n):t===void 0?e=new Uint8Array(n,r):e=new Uint8Array(n,r,t),Object.setPrototypeOf(e,o.prototype),e}function lr(n){if(o.isBuffer(n)){const r=q(n.length)|0,t=s(r);return t.length===0||n.copy(t,0,0,r),t}if(n.length!==void 0)return typeof n.length!="number"||X(n.length)?s(0):A(n);if(n.type==="Buffer"&&Array.isArray(n.data))return A(n.data)}function q(n){if(n>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return n|0}function yr(n){return+n!=n&&(n=0),o.alloc(+n)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(S(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),S(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let e=r.length,i=t.length;for(let u=0,h=Math.min(e,i);u<h;++u)if(r[u]!==t[u]){e=r[u],i=t[u];break}return e<i?-1:i<e?1:0},o.isEncoding=function(r){switch(String(r).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}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let e;if(t===void 0)for(t=0,e=0;e<r.length;++e)t+=r[e].length;const i=o.allocUnsafe(t);let u=0;for(e=0;e<r.length;++e){let h=r[e];if(S(h,Uint8Array))u+h.length>i.length?(o.isBuffer(h)||(h=o.from(h)),h.copy(i,u)):Uint8Array.prototype.set.call(i,h,u);else if(o.isBuffer(h))h.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return i};function Q(n,r){if(o.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||S(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const t=n.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return V(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return cr(n).length;default:if(i)return e?-1:V(n).length;r=(""+r).toLowerCase(),i=!0}}o.byteLength=Q;function wr(n,r,t){let e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return Ur(this,r,t);case"utf8":case"utf-8":return rr(this,r,t);case"ascii":return Fr(this,r,t);case"latin1":case"binary":return Ar(this,r,t);case"base64":return mr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rr(this,r,t);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}o.prototype._isBuffer=!0;function b(n,r,t){const e=n[r];n[r]=n[t],n[t]=e}o.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)b(this,t,t+1);return this},o.prototype.swap32=function(){const r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},o.prototype.swap64=function(){const r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},o.prototype.toString=function(){const r=this.length;return r===0?"":arguments.length===0?rr(this,0,r):wr.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="";const t=c.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},w&&(o.prototype[w]=o.prototype.inspect),o.prototype.compare=function(r,t,e,i,u){if(S(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),e===void 0&&(e=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||e>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=e)return 0;if(i>=u)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,i>>>=0,u>>>=0,this===r)return 0;let h=u-i,y=e-t;const E=Math.min(h,y),d=this.slice(i,u),g=r.slice(t,e);for(let B=0;B<E;++B)if(d[B]!==g[B]){h=d[B],y=g[B];break}return h<y?-1:y<h?1:0};function j(n,r,t,e,i){if(n.length===0)return-1;if(typeof t=="string"?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,X(t)&&(t=i?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(i)return-1;t=n.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=o.from(r,e)),o.isBuffer(r))return r.length===0?-1:v(n,r,t,e,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(n,r,t):Uint8Array.prototype.lastIndexOf.call(n,r,t):v(n,[r],t,e,i);throw new TypeError("val must be string, number or Buffer")}function v(n,r,t,e,i){let u=1,h=n.length,y=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;u=2,h/=2,y/=2,t/=2}function E(g,B){return u===1?g[B]:g.readUInt16BE(B*u)}let d;if(i){let g=-1;for(d=t;d<h;d++)if(E(n,d)===E(r,g===-1?0:d-g)){if(g===-1&&(g=d),d-g+1===y)return g*u}else g!==-1&&(d-=d-g),g=-1}else for(t+y>h&&(t=h-y),d=t;d>=0;d--){let g=!0;for(let B=0;B<y;B++)if(E(n,d+B)!==E(r,B)){g=!1;break}if(g)return d}return-1}o.prototype.includes=function(r,t,e){return this.indexOf(r,t,e)!==-1},o.prototype.indexOf=function(r,t,e){return j(this,r,t,e,!0)},o.prototype.lastIndexOf=function(r,t,e){return j(this,r,t,e,!1)};function xr(n,r,t,e){t=Number(t)||0;const i=n.length-t;e?(e=Number(e),e>i&&(e=i)):e=i;const u=r.length;e>u/2&&(e=u/2);let h;for(h=0;h<e;++h){const y=parseInt(r.substr(h*2,2),16);if(X(y))return h;n[t+h]=y}return h}function Br(n,r,t,e){return G(V(r,n.length-t),n,t,e)}function dr(n,r,t,e){return G(Lr(r),n,t,e)}function Er(n,r,t,e){return G(cr(r),n,t,e)}function gr(n,r,t,e){return G(_r(r,n.length-t),n,t,e)}o.prototype.write=function(r,t,e,i){if(t===void 0)i="utf8",e=this.length,t=0;else if(e===void 0&&typeof t=="string")i=t,e=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(e)?(e=e>>>0,i===void 0&&(i="utf8")):(i=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-t;if((e===void 0||e>u)&&(e=u),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return xr(this,r,t,e);case"utf8":case"utf-8":return Br(this,r,t,e);case"ascii":case"latin1":case"binary":return dr(this,r,t,e);case"base64":return Er(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,r,t,e);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mr(n,r,t){return r===0&&t===n.length?f.fromByteArray(n):f.fromByteArray(n.slice(r,t))}function rr(n,r,t){t=Math.min(n.length,t);const e=[];let i=r;for(;i<t;){const u=n[i];let h=null,y=u>239?4:u>223?3:u>191?2:1;if(i+y<=t){let E,d,g,B;switch(y){case 1:u<128&&(h=u);break;case 2:E=n[i+1],(E&192)===128&&(B=(u&31)<<6|E&63,B>127&&(h=B));break;case 3:E=n[i+1],d=n[i+2],(E&192)===128&&(d&192)===128&&(B=(u&15)<<12|(E&63)<<6|d&63,B>2047&&(B<55296||B>57343)&&(h=B));break;case 4:E=n[i+1],d=n[i+2],g=n[i+3],(E&192)===128&&(d&192)===128&&(g&192)===128&&(B=(u&15)<<18|(E&63)<<12|(d&63)<<6|g&63,B>65535&&B<1114112&&(h=B))}}h===null?(h=65533,y=1):h>65535&&(h-=65536,e.push(h>>>10&1023|55296),h=56320|h&1023),e.push(h),i+=y}return Ir(e)}const tr=4096;function Ir(n){const r=n.length;if(r<=tr)return String.fromCharCode.apply(String,n);let t="",e=0;for(;e<r;)t+=String.fromCharCode.apply(String,n.slice(e,e+=tr));return t}function Fr(n,r,t){let e="";t=Math.min(n.length,t);for(let i=r;i<t;++i)e+=String.fromCharCode(n[i]&127);return e}function Ar(n,r,t){let e="";t=Math.min(n.length,t);for(let i=r;i<t;++i)e+=String.fromCharCode(n[i]);return e}function Ur(n,r,t){const e=n.length;(!r||r<0)&&(r=0),(!t||t<0||t>e)&&(t=e);let i="";for(let u=r;u<t;++u)i+=br[n[u]];return i}function Rr(n,r,t){const e=n.slice(r,t);let i="";for(let u=0;u<e.length-1;u+=2)i+=String.fromCharCode(e[u]+e[u+1]*256);return i}o.prototype.slice=function(r,t){const e=this.length;r=~~r,t=t===void 0?e:~~t,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),t<r&&(t=r);const i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function F(n,r,t){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||F(r,t,this.length);let i=this[r],u=1,h=0;for(;++h<t&&(u*=256);)i+=this[r+h]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||F(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||F(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||F(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||F(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||F(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||F(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=_(function(r){r=r>>>0,N(r,"offset");const t=this[r],e=this[r+7];(t===void 0||e===void 0)&&$(r,this.length-8);const i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+e*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=_(function(r){r=r>>>0,N(r,"offset");const t=this[r],e=this[r+7];(t===void 0||e===void 0)&&$(r,this.length-8);const i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+e;return(BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||F(r,t,this.length);let i=this[r],u=1,h=0;for(;++h<t&&(u*=256);)i+=this[r+h]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||F(r,t,this.length);let i=t,u=1,h=this[r+--i];for(;i>0&&(u*=256);)h+=this[r+--i]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h},o.prototype.readInt8=function(r,t){return r=r>>>0,t||F(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||F(r,2,this.length);const e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||F(r,2,this.length);const e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||F(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||F(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=_(function(r){r=r>>>0,N(r,"offset");const t=this[r],e=this[r+7];(t===void 0||e===void 0)&&$(r,this.length-8);const i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(e<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=_(function(r){r=r>>>0,N(r,"offset");const t=this[r],e=this[r+7];(t===void 0||e===void 0)&&$(r,this.length-8);const i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+e)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||F(r,4,this.length),p.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||F(r,4,this.length),p.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||F(r,8,this.length),p.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||F(r,8,this.length),p.read(this,r,!1,52,8)};function U(n,r,t,e,i,u){if(!o.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(t+e>n.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){const y=Math.pow(2,8*e)-1;U(this,r,t,e,y,0)}let u=1,h=0;for(this[t]=r&255;++h<e&&(u*=256);)this[t+h]=r/u&255;return t+e},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,e=e>>>0,!i){const y=Math.pow(2,8*e)-1;U(this,r,t,e,y,0)}let u=e-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+e},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function nr(n,r,t,e,i){fr(r,e,i,n,t,7);let u=Number(r&BigInt(4294967295));n[t++]=u,u=u>>8,n[t++]=u,u=u>>8,n[t++]=u,u=u>>8,n[t++]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return n[t++]=h,h=h>>8,n[t++]=h,h=h>>8,n[t++]=h,h=h>>8,n[t++]=h,t}function er(n,r,t,e,i){fr(r,e,i,n,t,7);let u=Number(r&BigInt(4294967295));n[t+7]=u,u=u>>8,n[t+6]=u,u=u>>8,n[t+5]=u,u=u>>8,n[t+4]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return n[t+3]=h,h=h>>8,n[t+2]=h,h=h>>8,n[t+1]=h,h=h>>8,n[t]=h,t+8}o.prototype.writeBigUInt64LE=_(function(r,t=0){return nr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=_(function(r,t=0){return er(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){const E=Math.pow(2,8*e-1);U(this,r,t,e,E-1,-E)}let u=0,h=1,y=0;for(this[t]=r&255;++u<e&&(h*=256);)r<0&&y===0&&this[t+u-1]!==0&&(y=1),this[t+u]=(r/h>>0)-y&255;return t+e},o.prototype.writeIntBE=function(r,t,e,i){if(r=+r,t=t>>>0,!i){const E=Math.pow(2,8*e-1);U(this,r,t,e,E-1,-E)}let u=e-1,h=1,y=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&y===0&&this[t+u+1]!==0&&(y=1),this[t+u]=(r/h>>0)-y&255;return t+e},o.prototype.writeInt8=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||U(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=_(function(r,t=0){return nr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=_(function(r,t=0){return er(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ir(n,r,t,e,i,u){if(t+e>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function or(n,r,t,e,i){return r=+r,t=t>>>0,i||ir(n,r,t,4),p.write(n,r,t,e,23,4),t+4}o.prototype.writeFloatLE=function(r,t,e){return or(this,r,t,!0,e)},o.prototype.writeFloatBE=function(r,t,e){return or(this,r,t,!1,e)};function ur(n,r,t,e,i){return r=+r,t=t>>>0,i||ir(n,r,t,8),p.write(n,r,t,e,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,e){return ur(this,r,t,!0,e)},o.prototype.writeDoubleBE=function(r,t,e){return ur(this,r,t,!1,e)},o.prototype.copy=function(r,t,e,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(e||(e=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<e&&(i=e),i===e||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-e&&(i=r.length-t+e);const u=i-e;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,e,i):Uint8Array.prototype.set.call(r,this.subarray(e,i),t),u},o.prototype.fill=function(r,t,e,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,e=this.length):typeof e=="string"&&(i=e,e=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){const h=r.charCodeAt(0);(i==="utf8"&&h<128||i==="latin1")&&(r=h)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;t=t>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u<e;++u)this[u]=r;else{const h=o.isBuffer(r)?r:o.from(r,i),y=h.length;if(y===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<e-t;++u)this[u+t]=h[u%y]}return this};const M={};function H(n,r,t){M[n]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,this.stack,delete this.name}get code(){return n}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}H("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(n,r){return`The "${n}" argument must be of type number. Received type ${typeof r}`},TypeError),H("ERR_OUT_OF_RANGE",function(n,r,t){let e=`The value of "${n}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=hr(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=hr(i)),i+="n"),e+=` It must be ${r}. Received ${i}`,e},RangeError);function hr(n){let r="",t=n.length;const e=n[0]==="-"?1:0;for(;t>=e+4;t-=3)r=`_${n.slice(t-3,t)}${r}`;return`${n.slice(0,t)}${r}`}function Tr(n,r,t){N(r,"offset"),(n[r]===void 0||n[r+t]===void 0)&&$(r,n.length-(t+1))}function fr(n,r,t,e,i,u){if(n>t||n<r){const h=typeof r=="bigint"?"n":"";let y;throw r===0||r===BigInt(0)?y=`>= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:y=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`,new M.ERR_OUT_OF_RANGE("value",y,n)}Tr(e,i,u)}function N(n,r){if(typeof n!="number")throw new M.ERR_INVALID_ARG_TYPE(r,"number",n)}function $(n,r,t){throw Math.floor(n)!==n?(N(n,t),new M.ERR_OUT_OF_RANGE("offset","an integer",n)):r<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${r}`,n)}const Cr=/[^+/0-9A-Za-z-_]/g;function Sr(n){if(n=n.split("=")[0],n=n.trim().replace(Cr,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function V(n,r){r=r||1/0;let t;const e=n.length;let i=null;const u=[];for(let h=0;h<e;++h){if(t=n.charCodeAt(h),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(h+1===e){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function Lr(n){const r=[];for(let t=0;t<n.length;++t)r.push(n.charCodeAt(t)&255);return r}function _r(n,r){let t,e,i;const u=[];for(let h=0;h<n.length&&!((r-=2)<0);++h)t=n.charCodeAt(h),e=t>>8,i=t%256,u.push(i),u.push(e);return u}function cr(n){return f.toByteArray(Sr(n))}function G(n,r,t,e){let i;for(i=0;i<e&&!(i+t>=r.length||i>=n.length);++i)r[i+t]=n[i];return i}function S(n,r){return n instanceof r||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===r.name}function X(n){return n!==n}const br=function(){const n="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){const e=t*16;for(let i=0;i<16;++i)r[e+i]=n[t]+n[i]}return r}();function _(n){return typeof BigInt>"u"?Mr:n}function Mr(){throw new Error("BigInt not supported")}})(Pr);export{Kr as a,z as b,sr as i,J as o,zr as u};
//# sourceMappingURL=index-D6Mjl0V3.js.map