1import{_ as $t}from"./D1Quzoay.js";import{_ as Ot}from"./BZJbdzp4.js";import{a as qt}from"./DBJ-txd6.js";import{d as Yt,a as Gt,I as zt,H as Wt,x as jt,u as Vt,z as Ht,A as Jt,B as Xt,C as Kt,r as wt,o as X,e as mt,h as V,l as dt,i as O,f as Y,j as xt,t as nt,k as Zt,w as Qt,g as vt,m as K,M as tr,Y as rr}from"./BWypbmDt.js";import"./DlHjm_2r.js";import"./BHPNds_h.js";import"./kNH74kVj.js";import"./CVa4PBbl.js";import"./CsSv04Nh.js";import"./oZdtkJQs.js";import"./CzYpZZpk.js";import"./s-0yHz39.js";import"./Dm3yS-kU.js";var it={},H={},Bt;function er(){if(Bt)return H;Bt=1,H.byteLength=o,H.toByteArray=b,H.fromByteArray=M;for(var B=[],f=[],S=typeof Uint8Array<"u"?Uint8Array:Array,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,F=L.length;y<F;++y)B[y]=L[y],f[L.charCodeAt(y)]=y;f[45]=62,f[95]=63;function a(c){var h=c.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=c.indexOf("=");l===-1&&(l=h);var _=l===h?0:4-l%4;return[l,_]}function o(c){var h=a(c),l=h[0],_=h[1];return(l+_)*3/4-_}function k(c,h,l){return(h+l)*3/4-l}function b(c){var h,l=a(c),_=l[0],R=l[1],U=new S(k(c,_,R)),w=0,C=R>0?_-4:_,x;for(x=0;x<C;x+=4)h=f[c.charCodeAt(x)]<<18|f[c.charCodeAt(x+1)]<<12|f[c.charCodeAt(x+2)]<<6|f[c.charCodeAt(x+3)],U[w++]=h>>16&255,U[w++]=h>>8&255,U[w++]=h&255;return R===2&&(h=f[c.charCodeAt(x)]<<2|f[c.charCodeAt(x+1)]>>4,U[w++]=h&255),R===1&&(h=f[c.charCodeAt(x)]<<10|f[c.charCodeAt(x+1)]<<4|f[c.charCodeAt(x+2)]>>2,U[w++]=h>>8&255,U[w++]=h&255),U}function A(c){return B[c>>18&63]+B[c>>12&63]+B[c>>6&63]+B[c&63]}function m(c,h,l){for(var _,R=[],U=h;U<l;U+=3)_=(c[U]<<16&16711680)+(c[U+1]<<8&65280)+(c[U+2]&255),R.push(A(_));return R.join("")}function M(c){for(var h,l=c.length,_=l%3,R=[],U=16383,w=0,C=l-_;w<C;w+=U)R.push(m(c,w,w+U>C?C:w+U));return _===1?(h=c[l-1],R.push(B[h>>2]+B[h<<4&63]+"==")):_===2&&(h=(c[l-2]<<8)+c[l-1],R.push(B[h>>10]+B[h>>4&63]+B[h<<2&63]+"=")),R.join("")}return H}var Z={};var gt;function nr(){return gt||(gt=1,Z.read=function(B,f,S,L,y){var F,a,o=y*8-L-1,k=(1<<o)-1,b=k>>1,A=-7,m=S?y-1:0,M=S?-1:1,c=B[f+m];for(m+=M,F=c&(1<<-A)-1,c>>=-A,A+=o;A>0;F=F*256+B[f+m],m+=M,A-=8);for(a=F&(1<<-A)-1,F>>=-A,A+=L;A>0;a=a*256+B[f+m],m+=M,A-=8);if(F===0)F=1-b;else{if(F===k)return a?NaN:(c?-1:1)*(1/0);a=a+Math.pow(2,L),F=F-b}return(c?-1:1)*a*Math.pow(2,F-L)},Z.write=function(B,f,S,L,y,F){var a,o,k,b=F*8-y-1,A=(1<<b)-1,m=A>>1,M=y===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=L?0:F-1,h=L?1:-1,l=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(o=isNaN(f)?1:0,a=A):(a=Math.floor(Math.log(f)/Math.LN2),f*(k=Math.pow(2,-a))<1&&(a--,k*=2),a+m>=1?f+=M/k:f+=M*Math.pow(2,1-m),f*k>=2&&(a++,k/=2),a+m>=A?(o=0,a=A):a+m>=1?(o=(f*k-1)*Math.pow(2,y),a=a+m):(o=f*Math.pow(2,m-1)*Math.pow(2,y),a=0));y>=8;B[S+c]=o&255,c+=h,o/=256,y-=8);for(a=a<<y|o,b+=y;b>0;B[S+c]=a&255,c+=h,a/=256,b-=8);B[S+c-h]|=l*128}),Z}var Et;function ir(){return Et||(Et=1,(function(B){const f=er(),S=nr(),L=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;B.Buffer=o,B.SlowBuffer=U,B.INSPECT_MAX_BYTES=50;const y=2147483647;B.kMaxLength=y,o.TYPED_ARRAY_SUPPORT=F(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u";function F(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.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 a(e){if(e>y)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(e)}return k(e,t,r)}o.poolSize=8192;function k(e,t,r){if(typeof e=="string")return M(e,t);if(ArrayBuffer.isView(e))return h(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return l(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,t,r);const i=_(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,t,r){return k(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');
1if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function A(e,t,r){return b(e),e<=0?a(e):t!==void 0?typeof r=="string"?a(e).fill(t,r):a(e).fill(t):a(e)}o.alloc=function(e,t,r){return A(e,t,r)};function m(e){return b(e),a(e<0?0:R(e)|0)}o.allocUnsafe=function(e){return m(e)},o.allocUnsafeSlow=function(e){return m(e)};function M(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=w(e,t)|0;let n=a(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function c(e){const t=e.length<0?0:R(e.length)|0,r=a(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function h(e){if(P(e,Uint8Array)){const t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return c(e)}function l(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,o.prototype),n}function _(e){if(o.isBuffer(e)){const t=R(e.length)|0,r=a(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||et(e.length)?a(0):c(e);if(e.type==="Buffer"&&Array.isArray(e.data))return c(e.data)}function R(e){if(e>=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return e|0}function U(e){return+e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==o.prototype},o.compare=function(t,r){if(P(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),P(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(t)||!o.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let u=0,s=Math.min(n,i);u<s;++u)if(t[u]!==r[u]){n=t[u],i=r[u];break}return n<i?-1:i<n?1:0},o.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}},o.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return o.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;const i=o.allocUnsafe(r);let u=0;for(n=0;n<t.length;++n){let s=t[n];if(P(s,Uint8Array))u+s.length>i.length?(o.isBuffer(s)||(s=o.from(s)),s.copy(i,u)):Uint8Array.prototype.set.call(i,s,u);else if(o.isBuffer(s))s.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=s.length}return i};function w(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return yt(e).length;default:if(i)return n?-1:rt(e).length;t=(""+t).toLowerCase(),i=!0}}o.byteLength=w;function C(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Tt(this,t,r);case"utf8":case"utf-8":return ot(this,t,r);case"ascii":return Ct(this,t,r);case"latin1":case"binary":return Rt(this,t,r);case"base64":return Ut(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function x(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}o.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)x(this,r,r+1);return this},o.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)x(this,r,r+3),x(this,r+1,r+2);return this},o.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)x(this,r,r+7),x(this,r+1,r+6),x(this,r+2,r+5),x(this,r+3,r+4);return this},o.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?ot(this,0,t):C.apply(this,arguments)}
1,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:o.compare(this,t)===0},o.prototype.inspect=function(){let t="";const r=B.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},L&&(o.prototype[L]=o.prototype.inspect),o.prototype.compare=function(t,r,n,i,u){if(P(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),r<0||n>t.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&r>=n)return 0;if(i>=u)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,u>>>=0,this===t)return 0;let s=u-i,p=n-r;const E=Math.min(s,p),g=this.slice(i,u),I=t.slice(r,n);for(let d=0;d<E;++d)if(g[d]!==I[d]){s=g[d],p=I[d];break}return s<p?-1:p<s?1:0};function q(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,et(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=o.from(t,n)),o.isBuffer(t))return t.length===0?-1:G(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):G(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function G(e,t,r,n,i){let u=1,s=e.length,p=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;u=2,s/=2,p/=2,r/=2}function E(I,d){return u===1?I[d]:I.readUInt16BE(d*u)}let g;if(i){let I=-1;for(g=r;g<s;g++)if(E(e,g)===E(t,I===-1?0:g-I)){if(I===-1&&(I=g),g-I+1===p)return I*u}else I!==-1&&(g-=g-I),I=-1}else for(r+p>s&&(r=s-p),g=r;g>=0;g--){let I=!0;for(let d=0;d<p;d++)if(E(e,g+d)!==E(t,d)){I=!1;break}if(I)return g}return-1}o.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1},o.prototype.indexOf=function(t,r,n){return q(this,t,r,n,!0)},o.prototype.lastIndexOf=function(t,r,n){return q(this,t,r,n,!1)};function Q(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;const u=t.length;n>u/2&&(n=u/2);let s;for(s=0;s<n;++s){const p=parseInt(t.substr(s*2,2),16);if(et(p))return s;e[r+s]=p}return s}function v(e,t,r,n){return J(rt(t,e.length-r),e,r,n)}function D(e,t,r,n){return J(Mt(t),e,r,n)}function Ft(e,t,r,n){return J(yt(t),e,r,n)}function At(e,t,r,n){return J(Nt(t,e.length-r),e,r,n)}o.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const u=this.length-r;if((n===void 0||n>u)&&(n=u),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return Q(this,t,r,n);case"utf8":case"utf-8":return v(this,t,r,n);case"ascii":case"latin1":case"binary":return D(this,t,r,n);case"base64":return Ft(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ut(e,t,r){return t===0&&r===e.length?f.fromByteArray(e):f.fromByteArray(e.slice(t,r))}function ot(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const u=e[i];let s=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=r){let E,g,I,d;switch(p){case 1:u<128&&(s=u);break;case 2:E=e[i+1],(E&192)===128&&(d=(u&31)<<6|E&63,d>127&&(s=d));break;
1case 3:E=e[i+1],g=e[i+2],(E&192)===128&&(g&192)===128&&(d=(u&15)<<12|(E&63)<<6|g&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:E=e[i+1],g=e[i+2],I=e[i+3],(E&192)===128&&(g&192)===128&&(I&192)===128&&(d=(u&15)<<18|(E&63)<<12|(g&63)<<6|I&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,p=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=p}return _t(n)}const ut=4096;function _t(e){const t=e.length;if(t<=ut)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=ut));return r}function Ct(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Rt(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Tt(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let u=t;u<r;++u)i+=Dt[e[u]];return i}function St(e,t,r){const n=e.slice(t,r);let i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(t,r){const n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);const i=this.subarray(t,r);return Object.setPrototypeOf(i,o.prototype),i};function T(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||T(t,r,this.length);let i=this[t],u=1,s=0;for(;++s<r&&(u*=256);)i+=this[t+s]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||T(t,r,this.length);let i=this[t+--r],u=1;for(;r>0&&(u*=256);)i+=this[t+--r]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(t,r){return t=t>>>0,r||T(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||T(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||T(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||T(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=$(function(t){t=t>>>0,W(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j(t,this.length-8);const i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,u=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=$(function(t){t=t>>>0,W(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j(t,this.length-8);const i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],u=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||T(t,r,this.length);let i=this[t],u=1,s=0;for(;++s<r&&(u*=256);)i+=this[t+s]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*r)),i},o.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||T(t,r,this.length);let i=r,u=1,s=this[t+--i];for(;i>0&&(u*=256);)s+=this[t+--i]*u;return u*=128,s>=u&&(s-=Math.pow(2,8*r)),s},o.prototype.readInt8=function(t,r){return t=t>>>0,r||T(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},o.prototype.readInt16LE=function(t,r){t=t>>>0,r||T(t,2,this.length);const n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(t,r){t=t>>>0,r||T(t,2,this.length);const n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(t,r){return t=t>>>0,r||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,r){return t=t>>>0,r||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=$(function(t){t=t>>>0,W(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j(t,this.length-8);const i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),o.prototype.readBigInt64BE=$(function(t){t=t>>>0,W(t,"offset");const r=this[t],n=this[t+7];(r===void 0||n===void 0)&&j(t,this.length-8);const i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)}),o.prototype.readFloatLE=function(t,r){return t=t>>>0,r||T(t,4,this.length),S.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,r){return t=t>>>0,r||T(t,4,this.length),S.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||T(t,8,this.length),S.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||T(t,8,this.length),S.read(this,t,!1,52,8)};function N(e,t,r,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){const p=Math.pow(2,8*n)-1;N(this,t,r,n,p,0)}let u=1,s=0;for(this[r]=t&255;++s<n&&(u*=256);)this[r+s]=t/u&255;return r+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){const p=Math.pow(2,8*n)-1;N(this,t,r,n,p,0)}let u=n-1,s=1;for(this[r+u]=t&255;--u>=0&&(s*=256);)this[r+u]=t/s&255;return r+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,1,255,0),this[r]=t&255,r+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function st(e,t,r,n,i){lt(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u,u=u>>8,e[r++]=u;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function ct(e,t,r,n,i){lt(t,n,i,e,r,7);let u=Number(t&BigInt(4294967295));e[r+7]=u,u=u>>8,e[r+6]=u,u=u>>8,e[r+5]=u,u=u>>8,e[r+4]=u;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}o.prototype.writeBigUInt64LE=$(function(t,r=0){return st(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=$(function(t,r=0){return ct(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){const E=Math.pow(2,8*n-1);N(this,t,r,n,E-1,-E)}let u=0,s=1,p=0;for(this[r]=t&255;++u<n&&(s*=256);)t<0&&p===0&&this[r+u-1]!==0&&(p=1),this[r+u]=(t/s>>0)-p&255;return r+n},o.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){const E=Math.pow(2,8*n-1);N(this,t,r,n,E-1,-E)}let u=n-1,s=1,p=0;for(this[r+u]=t&255;--u>=0&&(s*=256);)t<0&&p===0&&this[r+u+1]!==0&&(p=1),this[r+u]=(t/s>>0)-p&255;return r+n},o.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1},o.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2},o.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2},o.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},o.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||N(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4},o.prototype.writeBigInt64LE=$(function(t,r=0){return st(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=$(function(t,r=0){return ct(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function at(e,t,r,n,i,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function ht(e,t,r,n,i){return t=+t,r=r>>>0,i||at(e,t,r,4),S.write(e,t,r,n,23,4),r+4}o.prototype.writeFloatLE=function(t,r,n){return ht(this,t,r,!0,n)},o.prototype.writeFloatBE=function(t,r,n){return ht(this,t,r,!1,n)};function ft(e,t,r,n,i){return t=+t,r=r>>>0,i||at(e,t,r,8),S.write(e,t,r,n,52,8),r+8}o.prototype.writeDoubleLE=function(t,r,n){return ft(this,t,r,!0,n)},o.prototype.writeDoubleBE=function(t,r,n){return ft(this,t,r,!1,n)},o.prototype.copy=function(t,r,n,i){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);const u=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),u},o.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="str
1ing")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){const s=t.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(t=s)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let u;if(typeof t=="number")for(u=r;u<n;++u)this[u]=t;else{const s=o.isBuffer(t)?t:o.from(t,i),p=s.length;if(p===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(u=0;u<n-r;++u)this[u+r]=s[u%p]}return this};const z={};function tt(e,t,r){z[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}tt("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),tt("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),tt("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=pt(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=pt(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function pt(e){let t="",r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Lt(e,t,r){W(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&j(t,e.length-(r+1))}function lt(e,t,r,n,i,u){if(e>r||e<t){const s=typeof t=="bigint"?"n":"";let p;throw t===0||t===BigInt(0)?p=`>= 0${s} and < 2${s} ** ${(u+1)*8}${s}`:p=`>= -(2${s} ** ${(u+1)*8-1}${s}) and < 2 ** ${(u+1)*8-1}${s}`,new z.ERR_OUT_OF_RANGE("value",p,e)}Lt(n,i,u)}function W(e,t){if(typeof e!="number")throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function j(e,t,r){throw Math.floor(e)!==e?(W(e,r),new z.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}const kt=/[^+/0-9A-Za-z-_]/g;function bt(e){if(e=e.split("=")[0],e=e.trim().replace(kt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function rt(e,t){t=t||1/0;let r;const n=e.length;let i=null;const u=[];for(let s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&u.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;u.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return u}function Mt(e){const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Nt(e,t){let r,n,i;const u=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,u.push(i),u.push(n);return u}function yt(e){return f.toByteArray(bt(e))}function J(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function P(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function et(e){return e!==e}const Dt=(function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function $(e){return typeof BigInt>"u"?Pt:e}function Pt(){throw new Error("BigInt not supported")}})(it)),it}var It=ir();const or={class:"column is-narrow is-relative"},ur={class:"box py-6"},sr={key:1,class:"columns is-mobile is-centered"},cr={class:"column is-10-mobile is-7-tablet"},ar={class:"title is-uppercase has-text-centered"},hr={class:"columns is-centered"},fr={class:"column is-10-mobile is-7-desktop is-centered"},pr={class:"separator my-5"},lr={class:"control has-text-centered mt-5"},Rr=Yt({__name:"[...method]",setup(B){const{$thirdPartyHelper:f}=Gt(),{getSession:S}=zt(),L=Wt(),{t:y}=jt(),F=Vt(),a=Ht(),o=Jt(),k=a.query.external_id;let b=a.query.upi?It.Buffer.from(a.query.upi,"base64").toString("ascii"):"";const A=a.query.token,m=K(!1),M=K(!1),c=K(""),h=K(!1),l=a.params.method,_=f.getMethodInformations(a.params.method);Xt({title:y("Create an account")}
1);async function R(w){w.success&&w.data&&await U(w.data)}async function U(w){const C=_.environment?{platform_environment:_.environment}:{};tr(`/api/os/user/authentication/associate/${l}`,{method:"POST",body:{...C,external_id:k,token:A},headers:{Authorization:`Bearer ${w}`}},"$ugEAGDYW5C").then(async({data:x,error:q})=>{if(q.value||!x.value.success)throw rr({statusMessage:"Impossible d'associer le compte"});m.value||await S();const G=m.value?y("Your account has just been created, and we are happy to count you among the MyNacon community! Please confirm your account before login."):y("Your account has just been linked !");L.notification.open({message:G,variant:"success"})}).catch(x=>{L.notification.open({message:y("Impossible d'associer le compte"),variant:"danger"})}),o.replace(m.value?F("/login"):F("/"))}return Kt(()=>{!b&&a.query.upi&&(b=It.Buffer.from(a.query.upi,"base64").toString("ascii"))}),(w,C)=>{const x=wt("o-loading"),q=$t,G=Ot,Q=qt,v=wt("o-button");return X(),mt("div",or,[V(x,{fullPage:!1,"can-cancel":!1,active:O(M),"onUpdate:active":C[0]||(C[0]=D=>dt(M)?M.value=D:null),iconSize:"size-1"},null,8,["active"]),Y("div",ur,[V(q,{variant:"info",class:"mb-6",message:w.$t("We could not find a linked MyNacon account")},null,8,["message"]),O(m)?(X(),xt(G,{key:0,isLinking:!0,showLoginBtn:!1,externalData:O(b),onAccountCreated:R},null,8,["externalData"])):(X(),mt("div",sr,[V(x,{fullPage:!1,"can-cancel":!1,active:O(h),"onUpdate:active":C[1]||(C[1]=D=>dt(h)?h.value=D:null),iconSize:"size-1"},null,8,["active"]),Y("div",cr,[Y("h1",ar,nt(w.$t("Link an existing account")),1),O(c)?(X(),xt(q,{key:0,variant:"danger",class:"mb-6",message:w.$t(O(c))},null,8,["message"])):Zt("",!0),V(Q,{isLinking:!0,onComponentLoading:C[2]||(C[2]=D=>h.value=D),onLoginSuccess:R,onComponentErrorMessage:C[3]||(C[3]=D=>c.value=D)})])])),Y("div",hr,[Y("div",fr,[Y("div",pr,nt(w.$t("Or")),1),Y("div",lr,[V(v,{size:"medium",variant:"primary",onClick:C[4]||(C[4]=D=>m.value=!O(m)),outlined:""},{default:Qt(()=>[vt(nt(O(m)?w.$t("Link an existing account"):w.$t("Link a new account")),1)]),_:1})])])])])])}}});export{Rr as default};
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.