mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 13:53:09 +00:00
1 line
993 KiB
JavaScript
1 line
993 KiB
JavaScript
|
|
(self.webpackChunkrelay_angular_chat=self.webpackChunkrelay_angular_chat||[]).push([[179],{7497:(Q,K,x)=>{"use strict";var y={};x.r(y),x.d(y,{identity:()=>SB});var u={};x.r(u),x.d(u,{base2:()=>CB});var g={};x.r(g),x.d(g,{base8:()=>IB});var w={};x.r(w),x.d(w,{base10:()=>TB});var m={};x.r(m),x.d(m,{base16:()=>AB,base16upper:()=>xB});var h={};x.r(h),x.d(h,{base32:()=>so,base32hex:()=>MB,base32hexpad:()=>kB,base32hexpadupper:()=>LB,base32hexupper:()=>OB,base32pad:()=>PB,base32padupper:()=>NB,base32upper:()=>RB,base32z:()=>BB});var c={};x.r(c),x.d(c,{base36:()=>FB,base36upper:()=>UB});var f={};x.r(f),x.d(f,{base58btc:()=>si,base58flickr:()=>VB});var d={};x.r(d),x.d(d,{base64:()=>Ud,base64pad:()=>HB,base64url:()=>KB,base64urlpad:()=>$B});var b={};x.r(b),x.d(b,{base256emoji:()=>qB});var S={};x.r(S),x.d(S,{sha256:()=>hi,sha512:()=>gF});var E={};x.r(E),x.d(E,{identity:()=>Lc});var v={};x.r(v),x.d(v,{code:()=>vF,decode:()=>bF,encode:()=>EF,name:()=>mF});var p={};x.r(p),x.d(p,{code:()=>SF,decode:()=>IF,encode:()=>CF,name:()=>DF});var I={};x.r(I),x.d(I,{RsaPrivateKey:()=>Xd,RsaPublicKey:()=>W0,fromJwk:()=>m6,generateKeyPair:()=>v6,unmarshalRsaPrivateKey:()=>g6,unmarshalRsaPublicKey:()=>y6});var A={};x.r(A),x.d(A,{Ed25519PrivateKey:()=>_l,Ed25519PublicKey:()=>pm,generateKeyPair:()=>j6,generateKeyPairFromSeed:()=>G6,unmarshalEd25519PrivateKey:()=>K6,unmarshalEd25519PublicKey:()=>$6});var P={};function D(n){return"function"==typeof n}function T(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}x.r(P),x.d(P,{Secp256k1PrivateKey:()=>bm,Secp256k1PublicKey:()=>Em,generateKeyPair:()=>e5,unmarshalSecp256k1PrivateKey:()=>X6,unmarshalSecp256k1PublicKey:()=>J6});const M=T(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function k(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class F{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(D(r))try{r()}catch(s){e=s instanceof M?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{O(s)}catch(o){e=e??[],o instanceof M?e=[...e,...o.errors]:e.push(o)}}if(e)throw new M(e)}}add(e){var t;if(e&&e!==this)if(this.closed)O(e);else{if(e instanceof F){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&k(t,e)}remove(e){const{_finalizers:t}=this;t&&k(t,e),e instanceof F&&e._removeParent(this)}}F.EMPTY=(()=>{const n=new F;return n.closed=!0,n})();const $=F.EMPTY;function C(n){return n instanceof F||n&&"closed"in n&&D(n.remove)&&D(n.add)&&D(n.unsubscribe)}function O(n){D(n)?n():n.unsubscribe()}const U={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},L={setTimeout(n,e,...t){const{delegate:r}=L;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=L;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function H(n){L.setTimeout(()=>{const{onUnhandledError:e}=U;if(!e)throw n;e(n)})}function ne(){}const G=W("C",void 0,void 0);function W(n,e,t){return{kind:n,value:e,error:t}}let te=null;function oe(n){if(U.useDeprecatedSynchronousErrorHandling){const e=!te;if(e&&(te={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=te;if(te=null,t)throw r}}else n()}class he extends F{constructor(e){super(),this.isStopped=!1,
|