UNPKG

wowok_agent

Version:

Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.

1 lines 11.8 kB
"use strict";(this.webpackChunkwowok_agent=this.webpackChunkwowok_agent||[]).push([[319],{1454:(t,e,h)=>{h.d(e,{w:()=>r});var s=h(9190),i=h(2531);class n extends i.Vw{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,s.sd)(t);const h=(0,i.ZJ)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,r=new Uint8Array(n);r.set(h.length>n?t.create().update(h).digest():h);for(let t=0;t<r.length;t++)r[t]^=54;this.iHash.update(r),this.oHash=t.create();for(let t=0;t<r.length;t++)r[t]^=106;this.oHash.update(r),r.fill(0)}update(t){return(0,s.CC)(this),this.iHash.update(t),this}digestInto(t){(0,s.CC)(this),(0,s.DO)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:h,finished:s,destroyed:i,blockLen:n,outputLen:r}=this;return t.finished=s,t.destroyed=i,t.blockLen=n,t.outputLen=r,t.oHash=e._cloneInto(t.oHash),t.iHash=h._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const r=(t,e,h)=>new n(t,e).update(h).digest();r.create=(t,e)=>new n(t,e)},2200:(t,e,h)=>{h.d(e,{A:()=>r});var s=h(9190),i=h(1454),n=h(2531);function r(t,e,h,r){const{c:o,dkLen:c,DK:a,PRF:l,PRFSalt:d}=function(t,e,h,r){(0,s.sd)(t);const o=(0,n.tY)({dkLen:32,asyncTick:10},r),{c,dkLen:a,asyncTick:l}=o;if((0,s.Fe)(c),(0,s.Fe)(a),(0,s.Fe)(l),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,n.ZJ)(e),f=(0,n.ZJ)(h),b=new Uint8Array(a),y=i.w.create(t,d),u=y._cloneInto().update(f);return{c,dkLen:a,asyncTick:l,DK:b,PRF:y,PRFSalt:u}}(t,e,h,r);let f;const b=new Uint8Array(4),y=(0,n.O8)(b),u=new Uint8Array(l.outputLen);for(let t=1,e=0;e<c;t++,e+=l.outputLen){const h=a.subarray(e,e+l.outputLen);y.setInt32(0,t,!1),(f=d._cloneInto(f)).update(b).digestInto(u),h.set(u.subarray(0,h.length));for(let t=1;t<o;t++){l._cloneInto(f).update(u).digestInto(u);for(let t=0;t<h.length;t++)h[t]^=u[t]}}return function(t,e,h,s,i){return t.destroy(),e.destroy(),s&&s.destroy(),i.fill(0),h}(l,d,a,f,u)}},2531:(t,e,h)=>{h.d(e,{Vw:()=>y,Fc:()=>l,c:()=>a,My:()=>f,tY:()=>u,O8:()=>r,qv:()=>o,po:()=>A,ZJ:()=>b,DH:()=>n,ld:()=>x,t6:()=>v});const s="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=h(9190);function n(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function r(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const o=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function c(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const a=o?t=>t:t=>c(t);function l(t){for(let e=0;e<t.length;e++)t[e]=c(t[e])}const d=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function f(t){(0,i.DO)(t);let e="";for(let h=0;h<t.length;h++)e+=d[t[h]];return e}function b(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),(0,i.DO)(t),t}class y{clone(){return this._cloneInto()}}function u(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("Options should be object or undefined");return Object.assign(t,e)}function x(t){const e=e=>t().update(b(e)).digest(),h=t();return e.outputLen=h.outputLen,e.blockLen=h.blockLen,e.create=()=>t(),e}function v(t){const e=(e,h)=>t(h).update(b(e)).digest(),h=t({});return e.outputLen=h.outputLen,e.blockLen=h.blockLen,e.create=e=>t(e),e}function A(t=32){if(s&&"function"==typeof s.getRandomValues)return s.getRandomValues(new Uint8Array(t));if(s&&"function"==typeof s.randomBytes)return s.randomBytes(t);throw new Error("crypto.getRandomValues must be defined")}},4443:(t,e,h)=>{h.d(e,{Zf:()=>d});var s=h(6013),i=h(9271),n=h(2531);const[r,o]=(()=>i.Ay.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),c=new Uint32Array(80),a=new Uint32Array(80);class l extends s.ol{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:h,Bl:s,Ch:i,Cl:n,Dh:r,Dl:o,Eh:c,El:a,Fh:l,Fl:d,Gh:f,Gl:b,Hh:y,Hl:u}=this;return[t,e,h,s,i,n,r,o,c,a,l,d,f,b,y,u]}set(t,e,h,s,i,n,r,o,c,a,l,d,f,b,y,u){this.Ah=0|t,this.Al=0|e,this.Bh=0|h,this.Bl=0|s,this.Ch=0|i,this.Cl=0|n,this.Dh=0|r,this.Dl=0|o,this.Eh=0|c,this.El=0|a,this.Fh=0|l,this.Fl=0|d,this.Gh=0|f,this.Gl=0|b,this.Hh=0|y,this.Hl=0|u}process(t,e){for(let h=0;h<16;h++,e+=4)c[h]=t.getUint32(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0|s)),({h:n,l}=i.Ay.add(0|this.Bh,0|this.Bl,0|n,0|l)),({h:d,l:f}=i.Ay.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h:b,l:y}=i.Ay.add(0|this.Dh,0|this.Dl,0|b,0|y)),({h:u,l:x}=i.Ay.add(0|this.Eh,0|this.El,0|u,0|x)),({h:v,l:A}=i.Ay.add(0|this.Fh,0|this.Fl,0|v,0|A)),({h:p,l:H}=i.Ay.add(0|this.Gh,0|this.Gl,0|p,0|H)),({h:L,l:g}=i.Ay.add(0|this.Hh,0|this.Hl,0|L,0|g)),this.set(h,s,n,l,d,f,b,y,u,x,v,A,p,H,L,g)}roundClean(){c.fill(0),a.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const d=(0,n.ld)((()=>new l))},8740:(t,e,h)=>{h.d(e,{S:()=>d});var s=h(8447),i=h(9271),n=h(2531);const r=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),o=new Uint32Array(32);function c(t,e,h,s,n,r){const c=n[r],a=n[r+1];let l=o[2*t],d=o[2*t+1],f=o[2*e],b=o[2*e+1],y=o[2*h],u=o[2*h+1],x=o[2*s],v=o[2*s+1],A=i.Ay.add3L(l,f,c);d=i.Ay.add3H(A,d,b,a),l=0|A,({Dh:v,Dl:x}={Dh:v^d,Dl:x^l}),({Dh:v,Dl:x}={Dh:i.Ay.rotr32H(v,x),Dl:i.Ay.rotr32L(v,x)}),({h:u,l:y}=i.Ay.add(u,y,v,x)),({Bh:b,Bl:f}={Bh:b^u,Bl:f^y}),({Bh:b,Bl:f}={Bh:i.Ay.rotrSH(b,f,24),Bl:i.Ay.rotrSL(b,f,24)}),o[2*t]=l,o[2*t+1]=d,o[2*e]=f,o[2*e+1]=b,o[2*h]=y,o[2*h+1]=u,o[2*s]=x,o[2*s+1]=v}function a(t,e,h,s,n,r){const c=n[r],a=n[r+1];let l=o[2*t],d=o[2*t+1],f=o[2*e],b=o[2*e+1],y=o[2*h],u=o[2*h+1],x=o[2*s],v=o[2*s+1],A=i.Ay.add3L(l,f,c);d=i.Ay.add3H(A,d,b,a),l=0|A,({Dh:v,Dl:x}={Dh:v^d,Dl:x^l}),({Dh:v,Dl:x}={Dh:i.Ay.rotrSH(v,x,16),Dl:i.Ay.rotrSL(v,x,16)}),({h:u,l:y}=i.Ay.add(u,y,v,x)),({Bh:b,Bl:f}={Bh:b^u,Bl:f^y}),({Bh:b,Bl:f}={Bh:i.Ay.rotrBH(b,f,63),Bl:i.Ay.rotrBL(b,f,63)}),o[2*t]=l,o[2*t+1]=d,o[2*e]=f,o[2*e+1]=b,o[2*h]=y,o[2*h+1]=u,o[2*s]=x,o[2*s+1]=v}class l extends s.Y{constructor(t={}){super(128,void 0===t.dkLen?64:t.dkLen,t,64,16,16),this.v0l=0|r[0],this.v0h=0|r[1],this.v1l=0|r[2],this.v1h=0|r[3],this.v2l=0|r[4],this.v2h=0|r[5],this.v3l=0|r[6],this.v3h=0|r[7],this.v4l=0|r[8],this.v4h=0|r[9],this.v5l=0|r[10],this.v5h=0|r[11],this.v6l=0|r[12],this.v6h=0|r[13],this.v7l=0|r[14],this.v7h=0|r[15];const e=t.key?t.key.length:0;if(this.v0l^=this.outputLen|e<<8|65536|1<<24,t.salt){const e=(0,n.DH)((0,n.ZJ)(t.salt));this.v4l^=(0,n.c)(e[0]),this.v4h^=(0,n.c)(e[1]),this.v5l^=(0,n.c)(e[2]),this.v5h^=(0,n.c)(e[3])}if(t.personalization){const e=(0,n.DH)((0,n.ZJ)(t.personalization));this.v6l^=(0,n.c)(e[0]),this.v6h^=(0,n.c)(e[1]),this.v7l^=(0,n.c)(e[2]),this.v7h^=(0,n.c)(e[3])}if(t.key){const e=new Uint8Array(this.blockLen);e.set((0,n.ZJ)(t.key)),this.update(e)}}get(){let{v0l:t,v0h:e,v1l:h,v1h:s,v2l:i,v2h:n,v3l:r,v3h:o,v4l:c,v4h:a,v5l:l,v5h:d,v6l:f,v6h:b,v7l:y,v7h:u}=this;return[t,e,h,s,i,n,r,o,c,a,l,d,f,b,y,u]}set(t,e,h,s,i,n,r,o,c,a,l,d,f,b,y,u){this.v0l=0|t,this.v0h=0|e,this.v1l=0|h,this.v1h=0|s,this.v2l=0|i,this.v2h=0|n,this.v3l=0|r,this.v3h=0|o,this.v4l=0|c,this.v4h=0|a,this.v5l=0|l,this.v5h=0|d,this.v6l=0|f,this.v6h=0|b,this.v7l=0|y,this.v7h=0|u}compress(t,e,h){this.get().forEach(((t,e)=>o[e]=t)),o.set(r,16);let{h:n,l}=i.Ay.fromBig(BigInt(this.length));o[24]=r[8]^l,o[25]=r[9]^n,h&&(o[28]=~o[28],o[29]=~o[29]);let d=0;const f=s.y;for(let h=0;h<12;h++)c(0,4,8,12,t,e+2*f[d++]),a(0,4,8,12,t,e+2*f[d++]),c(1,5,9,13,t,e+2*f[d++]),a(1,5,9,13,t,e+2*f[d++]),c(2,6,10,14,t,e+2*f[d++]),a(2,6,10,14,t,e+2*f[d++]),c(3,7,11,15,t,e+2*f[d++]),a(3,7,11,15,t,e+2*f[d++]),c(0,5,10,15,t,e+2*f[d++]),a(0,5,10,15,t,e+2*f[d++]),c(1,6,11,12,t,e+2*f[d++]),a(1,6,11,12,t,e+2*f[d++]),c(2,7,8,13,t,e+2*f[d++]),a(2,7,8,13,t,e+2*f[d++]),c(3,4,9,14,t,e+2*f[d++]),a(3,4,9,14,t,e+2*f[d++]);this.v0l^=o[0]^o[16],this.v0h^=o[1]^o[17],this.v1l^=o[2]^o[18],this.v1h^=o[3]^o[19],this.v2l^=o[4]^o[20],this.v2h^=o[5]^o[21],this.v3l^=o[6]^o[22],this.v3h^=o[7]^o[23],this.v4l^=o[8]^o[24],this.v4h^=o[9]^o[25],this.v5l^=o[10]^o[26],this.v5h^=o[11]^o[27],this.v6l^=o[12]^o[28],this.v6h^=o[13]^o[29],this.v7l^=o[14]^o[30],this.v7h^=o[15]^o[31],o.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const d=(0,n.t6)((t=>new l(t)))}}]);